OSDN Git Service

PR lto/46879
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-13  Jakub Jelinek  <jakub@redhat.com>
2
3         PR lto/46879
4         * lto-streamer-out.c (output_gimple_stmt): Never replace first
5         GIMPLE_DEBUG argument with MEM_REF.
6
7         PR debug/46867
8         * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
9         (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
10         (vt_emit_notes): Don't initialize and destroy emitted_notes.
11
12 2010-12-13  Jan Hubicka  <jh@suse.cz>
13
14         PR middle-end/45388
15         * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
16         (cgraph_build_static_cdtor): ... here.
17         (build_cdtor): Use cgraph_build_static_cdtor_1.
18
19 2010-12-13  Nathan Froyd  <froydnj@codesourcery.com>
20
21         PR target/46040
22         * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
23         (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
24
25 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
26
27         * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
28         WCHAR_TYPE_SIZE): Define.
29         * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
30
31 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
32
33         * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
34         Don't use svr4.h.
35
36 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
37
38         * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
39         WCHAR_TYPE_SIZE): Undefine.
40         * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
41         WCHAR_TYPE_SIZE): Define.
42         * config.gcc (mn10300-*-*): Don't use svr4.h.
43
44 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
45
46         * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
47         redefine.
48         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
49         * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
50
51 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
52
53         PR debug/46576
54         * jump.c (mark_all_labels): Skip debug insns.
55
56 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
57
58         PR debug/46782
59         * cfgcleanup.c (try_forward_edges): Skip debug insns.
60
61 2010-12-12  Jan Hubicka  <jh@suse.cz>
62             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
63
64         * varasm.c (default_function_section): Check flag_reorder_functions
65         and targetm.have_named_sections.
66         * config/darwin.c (darwin_function_section): Check
67         flag_reorder_functions.
68
69 2010-12-12  Finn Thain  <fthain@telegraphics.com.au>
70
71         PR target/46179
72         * config/m68k/m68k.c (handle_move_double): Insert calls to
73         m68k_final_prescan_insn to clean up @TLS operand syntax.
74
75 2010-12-10  Sebastian Pop  <sebastian.pop@amd.com>
76
77         PR tree-optimization/43023
78         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
79         Removed.
80         (stores_zero_from_loop): Call stmt_stores_zero.
81         * tree-data-ref.h (stmt_stores_zero): New.
82         * tree-loop-distribution.c (generate_memset_zero): Do not return a
83         boolean.  Call gcc_assert on stride_of_unit_type_p.
84         (generate_builtin): Call stmt_stores_zero.
85         (rdg_flag_all_uses): Removed.
86         (rdg_flag_similar_memory_accesses): Removed.
87         (build_rdg_partition_for_component): Removed parameter
88         other_stores.  Removed call to rdg_flag_similar_memory_accesses.
89         (can_generate_builtin): New.
90         (similar_memory_accesses): New.
91         (fuse_partitions_with_similar_memory_accesses): New.
92         (rdg_build_partitions): Call
93         fuse_partitions_with_similar_memory_accesses.
94
95 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
96
97         PR rtl-optimization/46804
98         * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
99         on the setter of src_reg rather than on insn.  If it is
100         equal to the setter's original SET_SRC, replace it with its
101         zero or sign extension instead of dropping it.
102
103 2010-12-10  Richard Guenther  <rguenther@suse.de>
104
105         PR lto/46808
106         * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
107         after errors.
108         (lto_symtab_merge_decls_1): Adjust.
109
110 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
111
112         PR middle-end/46674
113         PR lto/43157
114         * target.def (mangle_assembler_name): New target asm_out hook.
115         * targhooks.c (default_mangle_assembler_name): Add default hook
116         implementation.
117         * targhooks.h (default_mangle_assembler_name): Add prototype.
118         * lto-symtab.c (lto_symtab_register_decl): Use new hook when
119         processing DECL_ASSEMBLER_NAMEs for lto symtabs.
120         (lto_symtab_get_resolution): Likewise.
121         (lto_cgraph_replace_node): Likewise.
122         (lto_symtab_prevailing_decl): Likewise.
123         * lto-streamer-out.c (write_symbol): Likewise.
124         * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
125         * doc/tm.texi: Regenerate.
126         * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
127         point at i386_pe_mangle_assembler_name.
128         * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
129         * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
130         prototype.
131
132 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
133
134         * c-typeck.c (readonly_error): Delete.
135
136 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
137
138         PR rtl-optimization/46865
139         * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
140         ASM_OPERANDS and ASM_INPUT if integers are different,
141         call locator_eq.
142         * jump.c (rtx_renumbered_equal_p): Likewise.
143
144         PR tree-optimization/46864
145         * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
146         when there are EDGE_EH exit edges.
147
148 2010-12-10  Tobias Burnus  <burnus@net-b.de>
149
150         PR fortran/46540
151         * configure.ac: Handle --disable-libquadmath-support.
152         * doc/install.texi: Document --disable-libquadmath and
153         --disable-libquadmath-support
154         * configure: Regenerate.
155         * config.in: Regenerate.
156
157 2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
158             Iain Sandoe  <iains@gcc.gnu.org>
159
160         PR 43751/target
161         * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
162
163 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
164
165         * config/rs6000/rs6000.c
166         (rs6000_darwin64_record_arg_advance_recurse): Name register increment
167         explicitly.  (rs6000_darwin64_record_arg_recurse): Make sure we split
168         long doubles when we run out of regs.   Also flag that this requires
169         stack and therefore cannot be returned by value.
170         (rs6000_darwin64_record_arg): Update comment.
171         (rs6000_function_value): Likewise.
172
173 2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
174
175         * c-parser.c (c_parser_objc_class_definition): Recognize
176         Objective-C 2.0 class extensions.
177
178 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
179
180         * config/darwin.c: Remove c-tree.h and c-lang.h
181         * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
182
183 2010-12-10  Joern Rennecke  <amylaar@spamcop.net>
184
185         PR target/46881
186         * doc/tm.texi: Regenerate.
187         * target.def: Fix "preferred" spelling.  Refer to rclass by its
188         exact name.
189         * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
190         to rclass.
191
192 2010-12-09  Paul Koning  <ni1d@arrl.net>
193
194         * config/pdp11/pdp11-protos.h (output_move_double,
195         output_move_quad): Delete.
196         (output_move_multiple, pdp11_expand_operands): New functions.
197         (pdp11_action, pdp11_partorder): New enums.
198         * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
199         output_move_multiple.
200         (adddi3, subdi3, negdi2): New patterns.
201         (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
202         (abshi2): Delete.
203         (neghi2, negqi2): Use PDPint iterator.
204         * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
205         output_move_quad): Delete.
206         (pdp11_expand_operands, output_move_multiple): New functions.
207
208 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
209
210         * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
211         * config.gcc (vax-*-linux*): Don't use svr4.h.
212
213 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
214
215         * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
216
217 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
218
219         * doc/extend.texi (Attribute Syntax): Correct description of
220         attributes in pointer declarators.
221
222 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
223
224         * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
225         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
226         mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
227
228 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
229
230         * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
231         WCHAR_TYPE_SIZE): Define.
232         * config.gcc (mep-*-*): Don't use svr4.h.
233
234 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
235
236         * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
237         WCHAR_TYPE_SIZE): Define.
238         * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
239         WCHAR_TYPE_SIZE): Don't define.
240         * config.gcc (mcore-*-elf): Don't use svr4.h.
241
242 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
243
244         * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
245         m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
246
247 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
248
249         * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
250         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
251         * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
252
253 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
254
255         * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
256
257 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
258
259         * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
260         * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
261         svr4.h.
262
263 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
264
265         * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
266         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
267         * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
268         WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
269         * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
270
271 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
272
273         * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
274         WCHAR_TYPE_SIZE): Define.
275         * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
276
277 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
278
279         * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
280         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
281         * config.gcc (fr30-*-elf): Don't use svr4.h.
282
283 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
284
285         * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
286         * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
287
288 2010-12-09  Richard Guenther  <rguenther@suse.de>
289
290         PR middle-end/46844
291         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
292         addresses.
293
294 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
295
296         * config/i386/netware.h (TARGET_POSIX_IO): Define.
297         * config/i386/nto.h (TARGET_POSIX_IO): Define.
298         * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
299         * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
300         * config/openbsd.h (TARGET_POSIX_IO): Define.
301         * config/rtems.h (TARGET_POSIX_IO): Define.
302         * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
303         * config/sol2.h (TARGET_POSIX_IO): Define.
304         * config/svr4.h (TARGET_POSIX_IO): Don't define.
305         * config/vxworksae.h (TARGET_POSIX_IO): Define.
306
307 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
308
309         * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
310         * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
311         Define.
312         * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
313         undefine.
314         * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
315         undefine.
316         * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
317         Don't undefine.
318         * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
319         Don't undefine.
320         * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
321         Don't undefine.
322         * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
323         * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
324         Don't undefine.
325         * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
326         Don't undefine.
327         * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
328         Don't undefine.
329         * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
330         define.
331         * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
332         undefine.
333
334 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
335
336         * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
337         non-GNU assembler.
338         * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
339         Remove.
340         * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
341         * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
342         * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
343         non-GNU assembler.
344         * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
345         * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
346
347 2010-12-09  Martin Jambor  <mjambor@suse.cz>
348
349         * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
350         zero is the first phi parameter.
351
352 2010-12-09  Martin Jambor  <mjambor@suse.cz>
353
354         * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
355         * ipa-prop.c (ipa_modify_call_arguments): Use it.
356         * tree-sra.c (splice_param_accesses): Test that all accesses have the
357         same alias reference type.
358         (turn_representatives_into_adjustments): Set alias_ptr_type of the
359         adjustment.
360
361 2010-12-09  Martin Jambor  <mjambor@suse.cz>
362
363         PR middle-end/46734
364         * tree-sra.c (splice_param_accesses): Check that there are not
365         multiple ADDRESSABLE types.
366
367 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
368
369         * config/arc/arc.h (ASM_SPEC): Remove %{v}.
370         * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
371         * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
372         * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
373         * config/frv/frv.h (ASM_SPEC): Remove %{v}.
374         * config/i386/linux.h (ASM_SPEC): Remove %{v}.
375         * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
376         * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
377         * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
378         * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
379         * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
380         * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
381         * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
382         * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
383         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
384         * config/mips/mips.h (ASM_SPEC): Remove %{v}.
385         * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
386         * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
387         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
388         * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
389         * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
390         * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
391         * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
392         * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
393         * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
394
395 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
396
397         * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
398         * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
399         * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
400         %{r*:}.
401         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
402         %{r*:}.
403         * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
404         * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
405
406 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
407
408         * config/alpha/freebsd.h (LINK_SPEC): Don't use
409         %{!dynamic-linker:}.
410         * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
411         * config/arm/freebsd.h (LINK_SPEC): Likewise.
412         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
413         * config/bfin/linux.h (LINK_SPEC): Likewise.
414         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
415         * config/frv/linux.h (LINK_SPEC): Likewise.
416         * config/i386/freebsd.h (LINK_SPEC): Likewise.
417         * config/i386/freebsd64.h (LINK_SPEC): Likewise.
418         * config/i386/linux.h (LINK_SPEC): Likewise.
419         * config/i386/linux64.h (LINK_SPEC): Likewise.
420         * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
421         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
422         * config/ia64/linux.h (LINK_SPEC): Likewise.
423         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
424         * config/m32r/linux.h (LINK_SPEC): Likewise.
425         * config/m68k/linux.h (LINK_SPEC): Likewise.
426         * config/microblaze/linux.h (LINK_SPEC): Likewise.
427         * config/mips/linux.h (LINK_SPEC): Likewise.
428         * config/mips/linux64.h (LINK_SPEC): Likewise.
429         * config/mips/openbsd.h (LINK_SPEC): Likewise.
430         * config/mn10300/linux.h (LINK_SPEC): Likewise.
431         * config/netbsd-elf.h (LINK_SPEC): Likewise.
432         * config/pa/pa-linux.h (LINK_SPEC): Likewise.
433         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
434         LINK_OS_LINUX_SPEC64): Likewise.
435         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
436         LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
437         Likewise.
438         * config/s390/linux.h (LINK_SPEC): Likewise.
439         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
440         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
441         * config/sparc/linux.h (LINK_SPEC): Likewise.
442         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
443         LINK_SPEC): Likewise.
444         * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
445         * config/vax/linux.h (LINK_SPEC): Likewise.
446         * config/xtensa/linux.h (LINK_SPEC): Likewise.
447
448 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
449
450         * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
451         * config/frv/frv.h (ASM_SPEC): Likewise.
452         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
453         * config/i386/sol2.h (ASM_SPEC): Likewise.
454         * config/m68k/linux.h (ASM_SPEC): Likewise.
455         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
456         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
457         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
458         * config/sol2.h (ASM_SPEC): Likewise.
459         * config/sparc/linux.h (ASM_SPEC): Likewise.
460         * config/sparc/linux64.h (ASM_SPEC): Likewise.
461         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
462         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
463         * config/svr4.h (SVR4_ASM_SPEC): Likewise.
464
465 2010-12-09  Richard Guenther  <rguenther@suse.de>
466
467         * reginfo.c (struct subregs_of_mode_node): Remove.
468         (subregs_of_mode): Likewise.
469         (som_hash): Likewise.
470         (som_eq): Likewise.
471         (invalid_mode_changes): New bitmap.
472         (record_subregs_of_mode): Get subregs_of_mode argument.
473         Fill in invalid_mode_changes bitmap.
474         (find_subregs_of_mode): Get subregs_of_mode argument and pass
475         it through.
476         (init_subregs_of_mode): Adjust.
477         (finish_subregs_of_mode): Likewise.
478         (invalid_mode_change_p): Query invalid_mode_changes bitmap.
479
480 2010-12-09  Richard Guenther  <rguenther@suse.de>
481
482         * ira.c (ira): Do not call finish_subregs_of_mode.
483         * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
484
485 2010-12-09  Richard Guenther  <rguenther@suse.de>
486
487         * rtl.h (invalid_mode_change_p): Adjust prototype.
488         * reginfo.c (invalid_mode_change_p): Remove from argument.
489         * ira-costs.c (print_allocno_costs): Adjust callers.
490         (find_costs_and_classes): Likewise.
491
492 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
493
494         * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
495         locg and stocg even in comment.
496         (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
497
498         PR target/41082
499         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
500         instead of stve*x.
501         (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
502         of operand 0.
503         * config/rs6000/altivec.md (VI_scalar): New mode attr.
504         (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
505         vector mode for operand 0, put operand 1 into UNSPEC.
506
507 2010-12-09  Yao Qi  <yao@codesourcery.com>
508
509         * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
510         PREFERRED_RENAME_CLASS.
511
512 2010-12-08  Ian Lance Taylor  <iant@google.com>
513
514         * doc/sourcebuild.texi (Front End): Remove reference to
515         snapshot-README and snapshot-index.html.
516
517 2010-12-08  Ian Lance Taylor  <iant@google.com>
518
519         * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
520         to update_web_docs_svn.
521         (Front End): Likewise.
522
523 2010-12-08  Iain Sandoe <iains@gcc.gnu.org>
524
525         gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
526         x86_64-*-darwin* to with_cpu:-core2.
527         gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
528         with movd for darwin assembler.
529         gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
530         (*vec_concatv2di_rex64_sse): Ditto.
531
532 2010-12-08  Richard Guenther  <rguenther@suse.de>
533             Sebastian Pop  <sebastian.pop@amd.com>
534
535         PR tree-optimization/45230
536         PR tree-optimization/45231
537         PR tree-optimization/45370
538         * sese.c (rename_uses): Returns a bool.  Call
539         recompute_tree_invariant_for_addr_expr only on the RHS of a
540         GIMPLE_ASSIGN.
541         (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
542         rename_uses returns true.
543         * tree-ssa-copy.c (replace_exp): Add a comment about calling
544         fold_stmt_inplace after replace_exp.
545
546 2010-12-08  Mike Stump  <mikestump@comcast.net>
547
548         PR debug/46749
549         * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
550         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
551         * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
552         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
553         * collect2.c (post_ld_pass): Add.
554         (process_args): Add.
555         (maybe_run_lto_and_relink): Call post_ld_pass after ld.
556         (main): Likewise.  Call process_args.
557
558 2010-12-08  Jakub Jelinek  <jakub@redhat.com>
559
560         PR middle-end/46844
561         * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
562         parameter.
563
564 2010-12-08  Richard Earnshaw  <rearnsha@arm.com>
565
566         PR target/46631
567         * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
568         into a 16-bit instruction.
569
570 2010-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
571
572         PR middle-end/42694
573         * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
574         where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
575         instruction, but do optimize if y is 0.5 or 1./3. since that
576         changes an expensive call into a cheaper one.
577
578 2010-12-08  Richard Guenther  <rguenther@suse.de>
579
580         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
581         instead of a division to divide by BITS_PER_UNIT.
582
583 2010-12-08  Richard Guenther  <rguenther@suse.de>
584
585         * gimplify.c (gimple_tree_eq): Assert hashes are equal only
586         when checking is enabled.
587
588 2010-12-07  Andrey Belevantsev  <abel@ispras.ru>
589
590         PR target/43603
591         * haifa-sched.c (sched_create_recovery_edges): Update
592         dominator info.
593         * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
594         after deleting an empty block.
595         (tidy_control_flow): Also verify dominators.
596         (sel_remove_bb): Update dominator info after removing a block.
597         (sel_redirect_edge_and_branch_force): Assert that no unreachable
598         blocks will be created. Update dominator info.
599         (sel_redirect_edge_and_branch): Update dominator info when
600         basic blocks do not become unreachable.
601         (sel_remove_loop_preheader): Update dominator info.
602
603 2010-12-07  Richard Guenther  <rguenther@suse.de>
604
605         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
606         Reset alignment information.
607         (bump_vector_ptr): Likewise.
608
609 2010-12-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
610
611         PR middle-end/46671
612         PR target/46685
613         * config/pa/pa.c (pa_function_section): New function.
614         (TARGET_ASM_FUNCTION_SECTION): Define.
615
616 2010-12-07  Ian Lance Taylor  <iant@google.com>
617             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
618
619         PR bootstrap/46810
620         * configure.ac: Disable AC_MSG_ERROR while looking for the C++
621         preprocessor.
622         * configure: Rebuild.
623
624 2010-12-07  Paul Koning  <ni1d@arrl.net>
625
626         * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
627         values with sign rather than as unsigned.
628
629 2010-12-07  Paul Koning  <ni1d@arrl.net>
630
631         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
632         (pdp11_function_section): New function.
633
634 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
635
636         * config/mcore/mcore.c Don't include assert.h.
637         (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
638         * config/spu/spu.c: Don't include assert.h.
639         (spu_sms_res_mii): Use gcc_assert.
640
641 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
642
643         PR tree-optimization/42327
644         * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
645         instead of using integer_minus_one_node.
646
647 2010-12-07  Nathan Froyd  <froydnj@codesourcery.com>
648
649         PR c++/45330
650         * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
651         * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
652
653 2010-12-07  Richard Guenther  <rguenther@suse.de>
654
655         PR tree-optimization/46832
656         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
657         that the call has a lhs.
658
659 2010-12-07  Yao Qi  <yao@codesourcery.com>
660
661         * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
662         * regrename.c (struct du_head): Add new element length.
663         (sort_du_head, get_element, merge, merge_sort_comparison):
664         New functions of merge sort implementation to du_head list.
665         (regrename_optimize): Sort du_head linked list by length.
666         Iterate registers in a preferred-register-first order.
667         Move some code to ...
668         (check_new_reg_p): here.  New function.
669         (create_new_chain):  Initialize length.
670         (scan_rtx_reg): Increase length for non-debug insns.
671         * target.def: New hook preferred_rename_class.
672         * targhook.c (default_preferred_rename_class): New.
673         * targhook.h: Declare it.
674         * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
675         * doc/tm.texi: Regenerate.
676
677 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
678
679         PR debug/46799
680         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
681         instead of BUILTINS_LOCATION.
682         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
683         BUILTINS_LOCATION.
684         (create_parallel_loop): Add LOC argument, use it for OMP clauses
685         and GIMPLE_*OMP* statements.
686         (gen_parallel_loop): Determine locus for the parallel loop, pass it
687         to create_loop_fn and create_parallel_loop.
688         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
689         set_curr_insn_source_location (UNKNOWN_LOCATION).
690
691 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
692             Richard Guenther  <rguenther@suse.de>
693
694         PR target/46737
695         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
696         (bfin_reorder_loops): Change type of index to intptr_t.
697
698 2010-12-07  Richard Guenther  <rguenther@suse.de>
699
700         PR tree-optimization/46726
701         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
702
703 2010-12-07  Richard Guenther  <rguenther@suse.de>
704
705         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
706         virtual operands.
707
708 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
709
710         * c-parser.c (c_parser_typeof_specifier): Removed special
711         treatment of objc_volatilized attribute for Objective-C.
712
713 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
714
715         * ira.c (update_equiv_regs): Prohibit move insns if
716         pressure-sensitive scheduling was done.
717
718 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
719
720         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
721         of c_process_expr_stmt() for the iterating and collection
722         expressions of an Objective-C fast enumeration loop.
723
724 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
725
726         PR debug/45997
727         * dwarf2out.c (modified_type_die): If both is_const_type and
728         is_volatile_type is set, start with DW_TAG_const_type or
729         DW_TAG_volatile_type depending on where we get qualified type
730         in the recursive call.
731
732         PR target/43897
733         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
734         as a store into that register.
735
736         PR tree-optimization/46528
737         PR debug/46338
738         * profile.c (branch_prob): Make sure last is never set to a debug
739         stmt.
740
741         PR debug/46771
742         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
743         on DEBUG_INSNs.
744
745         PR rtl-optimization/46777
746         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
747         also barrier after tablejump.
748
749 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
750             Richard Henderson  <rth@redhat.com>
751
752         PR target/46740
753         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
754
755 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
756
757         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
758         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
759
760 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
761
762         PR target/46735
763         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
764         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
765         (int12_operand, int_2word_operand, uint16_operand): Likewise.
766         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
767         (uint5_operand, uint4_operand): Likewise.
768         * config/frv/frv.h (IN_RANGE_P): Delete.
769         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
770         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
771         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
772         (CONST_OK_FOR_P): Likewise.
773         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
774         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
775         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
776         (*movsicc_internal2_float, casesi): Likewise.
777         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
778         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
779         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
780         (frv_split_cond_move, frv_rtx_costs): Likewise.
781
782         PR target/46739
783         * config/mmix/mmix.c (mmix_intval): Split shift count.
784
785 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
786
787         * config/i386/i386.c (m_COREI7): New.
788         (initial_ix86_tune_features): Turn on
789         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
790         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
791
792 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
795
796         * config/i386/driver-i386.c (host_detect_local_cpu): Support
797         Sandy Bridge.
798
799         * config/i386/i386.c (override_options): Handle "corei7-avx".
800
801         * doc/invoke.texi: Document corei7-avx.
802
803 2010-12-06  Richard Guenther  <rguenther@suse.de>
804
805         PR tree-optimization/46806
806         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
807         coalesce different types.
808
809 2010-12-06  Richard Guenther  <rguenther@suse.de>
810
811         PR tree-optimization/46785
812         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
813         call statements as operand definition.
814
815 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
816
817         * doc/tm.texi.in: Fix typo.
818         * doc/tm.texi: Regenerate.
819
820 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
821
822         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
823         last change.
824
825 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
826
827         * c-family/c-common.h: Removed the declarations of all the objc_
828         callbacks, and moved them into c-objc.h.  Removed
829         objc_ivar_visibility_kind and moved it into c-objc.h.
830         * c-family/c-objc.h: New file.
831         * c-family/c-common.c: Include c-objc.h.
832         * c-family/c-format.c: Same change.
833         * c-family/stub-objc.c: Same change.
834         * c-decl.c: Include c-family/c-objc.h.
835         * c-parser.c: Same change.
836         * c-typeck.c: Same change.
837         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
838         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
839         (c-parser.o): same change.
840         (c-typeck.o): Same change.
841         (c-family/c-format.o): Same change.
842         (c-family/stub-objc.o): Same change.
843         (c-family/c-common.o): Same change.
844         (PLUGIN_HEADERS): Added c-family/c-objc.h.
845
846 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
847
848         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
849         --with-dwarf2 option.
850
851 2010-12-03  Jan Hubicka  <jh@suse.cz>
852
853         * lto-streamer-in.c (input_cfg): Fix pasto.
854
855 2010-12-03  Jan Hubicka  <jh@suse.cz>
856
857         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
858         and functions with user asm defined names.
859         (varpool_externally_visible_p): Do not localize vars with user
860         asm defined names.
861
862 2010-12-03  Jan Hubicka  <jh@suse.cz>
863
864         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
865         to prevent mangling with lto frontend.
866
867 2010-12-03  Jan Hubicka  <jh@suse.cz>
868
869         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
870         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
871
872 2010-12-03  Jan Hubicka  <jh@suse.cz>
873
874         PR tree-optimization/46760
875         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
876         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
877         * lto-cgraph.c (lto_output_edge): Fix assert.
878         (lto_output_node): Output count_materialization_scale.
879         (output_profile_summary): Output only runs and sum_max.
880         (input_node): Input count_materialization_scale.
881         (input_profile_summary): Read data into file specific gcov summary.
882         (merge_profile_summaries): New function.
883         (input_cgraph): Update call of input_profile_summary;
884         call merge_profile_summaries.
885         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
886         rescale counts at read in.
887         (intput_bb): Likewise.
888         (input_function): Update call of input_bb.
889         (lto_read_body): Update call of input_cfg.
890         * lto-streamer.h: Inlclude gcov-io.h
891         (lto_file_decl_data): Add gcov_ctr_summary.
892
893 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
894
895         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
896         (Cond Exec Macros): ... to this.
897         * doc/tm.texi: Regenerate.
898
899 2010-12-03  Jason Merrill  <jason@redhat.com>
900
901         PR debug/46123
902         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
903         a declaration DIE.
904
905 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
906
907         * config/arm/arm.c (arm_legitimate_index_p): Split
908         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
909         slightly larger constants in the latter case.
910         (thumb2_legitimate_index_p): Likewise.
911
912 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
913
914         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
915         * gcc.c (cc1_options): Add %{Qy:}.
916
917 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
918
919         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
920         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
921         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
922
923 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
924
925         PR rtl-optimization/45354
926         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
927         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
928         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
929         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
930
931 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
932
933         * basic-block.h (struct edge_prediction): Remove forward
934         declaration.
935         * tree-flow.h (struct edge_prediction): Move from here...
936         * predict.c (struct edge_prediction): ...to here.
937         * cselib.h (struct elt_list): Move from here...
938         * cselib.c (struct elt_list): ...to here.
939
940 2010-12-02  Ian Lance Taylor  <iant@google.com>
941
942         * gcc.c (default_compilers): Add entry for ".go".
943         * common.opt: Add -static-libgo as a driver option.
944         * doc/install.texi (Configuration): Mention libgo as an option for
945         --enable-shared.  Mention go as an option for --enable-languages.
946         * doc/invoke.texi (Overall Options): Mention .go as a file name
947         suffix.  Mention go as a -x option.
948         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
949         language.
950         * doc/sourcebuild.texi (Top Level): Mention libgo.
951         * doc/standards.texi (Standards): Add section on Go language.
952         Move references for other languages into their own section.
953         * doc/contrib.texi (Contributors): Mention that I contributed the
954         Go frontend.
955
956 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
957
958         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
959         (const_call_expr_arg_iterator_d): Likewise.
960         (expanded_location): Likewise.
961         * c-tree.h (struct c_arg_tag_d): Likewise.
962         * dwarf2out.c (struct cfa_loc): Likewise.
963         (struct skeleton_chain_struct): Likewise.
964         * except.c (struct ttypes_filter): Likewise.
965         * cselib.h (struct cselib_val_struct): Likewise.
966         (elt_loc_list): Likewise.
967         (elt_list): Likewise.
968         * varasm.c (struct addr_const): Likewise.
969         * tree-flow.h (struct edge_prediction): Likewise.
970         (struct int_tree_map): Likewise.
971         (struct _edge_var_map): Likewise.
972
973 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
974
975         PR target/46768
976         * config/i386/i386.c (initial_ix86_tune_features): Turn on
977         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
978
979 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
980
981         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
982
983 2010-12-02  Ian Lance Taylor  <iant@google.com>
984
985         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
986         header files unordered_map, tr1/unordered_map, and ext/hash_map.
987         * configure, config.in: Rebuild.
988
989 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
990
991         PR target/46685
992         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
993         (sparc_expand_move): Call it to decide whether to emit the special
994         mov{si,di}_pic_label_ref patterns.
995         (sparc_legitimize_pic_address): Call it to decide whether to emit
996         the regular PIC sequence for labels.  Fix long line.
997         (sparc_file_end): Set is_thunk for the PIC helper.
998
999 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1000
1001         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
1002         for a non-shared type.
1003
1004 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
1005
1006         PR middle-end/45297
1007         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
1008         with MEM_REFs as POINTER_PLUS_EXPR.
1009
1010 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1011
1012         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
1013         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
1014         mentioning /lib/elf.
1015
1016 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1017
1018         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
1019         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
1020         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
1021         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
1022         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
1023         * config/sol2.h (LINK_SPEC): Remove %{b}.
1024         * config/svr4.h (LINK_SPEC): Remove %{b}.
1025
1026 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1027
1028         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
1029         * config/i386/linux.h (LINK_SPEC): Cut long comment.
1030         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
1031         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
1032         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
1033         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
1034         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1035         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
1036         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1037         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
1038         %{v:%{!V:-V}}.
1039
1040 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1041
1042         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
1043         -ftraditional.
1044
1045 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1046
1047         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
1048         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
1049         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
1050         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
1051         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
1052         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
1053         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
1054         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1055         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
1056         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
1057         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
1058         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
1059         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
1060         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
1061         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
1062         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
1063         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1064         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
1065
1066 2010-12-02  Paul Koning  <ni1d@arrl.net>
1067
1068         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
1069         opcodes if CC_NO_OVERFLOW is set.
1070         (notice_update_cc_on_set): Correct setting of CC0 as a side
1071         effect; set CC_NO_OVERFLOW for cases where C flag is not
1072         meaningful.
1073
1074 2010-12-02  Ian Lance Taylor  <iant@google.com>
1075
1076         * doc/install.texi (Configuration): Update default for
1077         --with-boot-ldflags.
1078
1079 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
1080
1081         PR c/45062
1082         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
1083         !funcdef_flag.
1084
1085 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
1086
1087         PR tree-optimization/45199
1088         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
1089         (stores_zero_from_loop): Call
1090         mem_write_stride_of_same_size_as_unit_type_p.
1091         * tree-data-ref.h (stride_of_unit_type_p): New.
1092         * tree-loop-distribution.c (generate_memset_zero): Simplified.
1093         Call stride_of_unit_type_p.
1094         (build_rdg_partition_for_component): Do not call
1095         rdg_flag_similar_memory_accesses when
1096         flag_tree_loop_distribute_patterns is set.
1097
1098 2010-12-02  Richard Guenther  <rguenther@suse.de>
1099
1100         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
1101         sign-changing conversions for induction detection.
1102
1103 2010-12-02  Richard Guenther  <rguenther@suse.de>
1104
1105         PR tree-optimization/46723
1106         * tree-vect-loop.c (get_initial_def_for_induction): Strip
1107         conversions from the induction evolution and apply it to
1108         the result instead.
1109         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
1110         assigns for induction defs.
1111
1112 2010-12-02  Richard Guenther  <rguenther@suse.de>
1113
1114         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
1115         the case we need to split the edge and not the block.
1116
1117 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
1118
1119         DFA model for Core 2 and Core i7 scheduling.
1120
1121         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
1122         * config/i386/i386.c (ix86_option_override_internal): Update entries
1123         for Core 2 and Core i7.
1124         (ix86_issue_rate): Set issue rate to 3 [be realistic].
1125         * config/i386/i386.md: Include "core2.md".
1126         (define_attr cpu): Add "corei7".
1127
1128 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
1129
1130         Define tuning for Core 2 and Core i7.
1131
1132         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
1133         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
1134         (m_CORE2): Replace with m_CORE2_{32,64}.
1135         (m_CORE2I7{,_32,_64}): New macros.
1136         (m_GENERIC32, m_GENERIC64): Update.
1137         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
1138         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
1139         set m_CORE2I7_64 iff m_GENERIC64.
1140         (processor_target_table): Use generic costs for Core 2 and Core i7.
1141         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
1142         (ix86_issue_rate): Remove entry for Core 2.
1143         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
1144         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
1145         (TARGET_CORE2): Update.
1146         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
1147         (PROCESSOR_CORE2): Remove.
1148
1149 2010-12-02  Richard Guenther  <rguenther@suse.de>
1150
1151         * lto-streamer.h (LTO_major_version): Bump to 2.
1152
1153 2010-12-02  Richard Guenther  <rguenther@suse.de>
1154
1155         PR lto/44871
1156         * gimple.c (canonical_type_hash_cache): New hashtable.
1157         (gimple_type_hash): Make a wrapper around ...
1158         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
1159         (gimple_canonical_type_hash): Likewise.
1160         (gtc_visit): Take a gtc_mode argument.
1161         (gimple_types_compatible_p_1): Likewise. Do not compare struct
1162         tag names or field names when computing canonical types.
1163         (gimple_types_compatible_p): Adjust.
1164         (visit): Take a gtc_mode argument.
1165         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
1166         names or field names when computing hashes of canonical types.
1167         (gimple_register_canonical_type): Use gimple_canonical_type_hash
1168         for the hash.
1169         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1170         (free_gimple_type_tables): Free canonical_type_hash_cache.
1171
1172 2010-12-02  Richard Guenther  <rguenther@suse.de>
1173             Ira Rosen  <irar@il.ibm.com>
1174
1175         PR tree-optimization/46663
1176         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1177         FUNCTION_DECL exists and that it's a builtin.
1178
1179 2010-12-02  Jie Zhang  <jie@codesourcery.com>
1180
1181         PR middle-end/46674
1182         * varasm.c (compute_visible_aliases): Handle user set
1183         assembler name.
1184
1185 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1186
1187         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1188         thinko regarding setting -mno-<xxx> debug switches.
1189         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
1190
1191 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1192
1193         * intl.c: Don't include tm.h.
1194         * Makefile.in (intl.o): Don't depend on $(TM_H).
1195
1196 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1197
1198         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1199         unused warning.
1200         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1201
1202 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1203
1204         * graphite-sese-to-poly.c (analyze_drs): Removed.
1205         (build_scop_drs): Do not call analyze_drs.
1206         (analyze_drs_in_stmts): New.
1207         (insert_stmts): New.
1208         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1209         (insert_out_of_ssa_copy_on_edge): Same.
1210         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1211         (rewrite_phi_out_of_ssa): Same.
1212         (rewrite_cross_bb_scalar_dependence): Same.
1213         (split_reduction_stmt): Move data references in the new basic blocks.
1214         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1215
1216 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1217
1218         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1219
1220 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1221
1222         PR middle-end/45297
1223         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
1224         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
1225         * graphite-poly.h (new_poly_bb): Update declaration.
1226         (gbb_from_bb): Moved here...
1227         (pbb_from_bb): New.
1228         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1229         Removed.
1230         (graphite_stmt_p): Removed.
1231         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
1232         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
1233         new_poly_bb.
1234         (build_scop_bbs_1): Do not pass in sbitmap reductions.
1235         (build_scop_bbs): Same.
1236         (gbb_from_bb): ... from here.
1237         (add_conditions_to_constraints): Moved up.
1238         (analyze_drs): New.
1239         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
1240         not contain data references.
1241         (new_pbb_from_pbb): New.
1242         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1243         block is split.
1244         (rewrite_close_phi_out_of_ssa): Update call to
1245         insert_out_of_ssa_copy_on_edge.
1246         (rewrite_reductions_out_of_ssa): Now static.
1247         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1248         (split_pbb): New.
1249         (split_reduction_stmt): Call split_pbb.
1250         (translate_scalar_reduction_to_array): Pass in the scop, do not
1251         pass in the sbitmap reductions.
1252         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1253         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1254         (rewrite_commutative_reductions_out_of_ssa): Same.
1255         (build_poly_scop): Call build_scop_bbs,
1256         rewrite_commutative_reductions_out_of_ssa,
1257         rewrite_reductions_out_of_ssa, and
1258         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
1259         before scop_to_lst.
1260         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1261         Removed declaration.
1262         (rewrite_reductions_out_of_ssa): Same.
1263         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1264         (build_scop_bbs): Same.
1265         * graphite.c (graphite_transform_loops): Do not initialize reductions.
1266         Do not call build_scop_bbs,
1267         rewrite_commutative_reductions_out_of_ssa,
1268         rewrite_reductions_out_of_ssa, and
1269         rewrite_cross_bb_scalar_deps_out_of_ssa.
1270         * sese.h (struct gimple_bb): Add field pbb.
1271         (GBB_PBB): New.
1272
1273 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1274
1275         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1276         New.
1277         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
1278         handle_scalar_deps_crossing_scop_limits.
1279         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1280         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
1281
1282 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1283
1284         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1285         when replacing a constant in an ADDR_EXPR.
1286
1287 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1288
1289         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1290         for the stride.
1291         (lst_do_strip_mine): Same.
1292         (scop_do_strip_mine): Same.
1293         * graphite-poly.c (apply_poly_transforms): Update call to
1294         scop_do_strip_mine.
1295         * graphite-poly.h (scop_do_strip_mine): Update declaration.
1296
1297 2010-12-01  Jan Hubicka  <jh@suse.cz>
1298
1299         * tree.c (build_common_builtin_nodes): Do not initialize
1300         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1301         * builtins.c (expand_builtin_profile_func): Remove.
1302         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1303         BUILT_IN_PROFILE_FUNC_EXIT.
1304         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1305         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1306         * gimplify.c (gimplify_function_tree): Reorganize code calling
1307         profiling functions.
1308
1309 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1310
1311         * opts.c: Expand comment on tm.h include.
1312
1313 2010-12-01  Yao Qi  <yao@codesourcery.com>
1314
1315         * config/arm/predicates.md ("vfp_register_operand"): Return true for
1316         VFP_D0_D7_REGS classes.
1317
1318 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1319
1320         * common.opt (flag_stack_check): New Variable entry.
1321         (fcompare-debug-second): Use Var.
1322         * flags.h (flag_compare_debug, flag_stack_check): Remove.
1323         * opts.c (flag_compare_debug): Remove.
1324         (common_handle_option): Don't handle OPT_fcompare_debug_second.
1325         Set opts->x_flag_stack_check for OPT_fstack_check_.
1326         * toplev.c (flag_stack_check): Remove.
1327
1328 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1329
1330         * common.opt (main_input_filename, main_input_basename,
1331         main_input_baselength): New Variable entries.  From toplev.c.
1332         * final.c (output_quoted_string): Move from toplev.c.
1333         * output.h (output_quoted_string): Move from toplev.h.
1334         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1335         access main_input_filename, main_input_baselength and
1336         main_input_basename.
1337         * targhooks.c: Include intl.h and opts.h.
1338         (option_affects_pch_p, default_get_pch_validity): Move from
1339         toplev.c.
1340         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1341         Move from toplev.h.
1342         * toplev.c (main_input_filename, main_input_basename,
1343         main_input_baselength): Move to common.opt.
1344         (output_quoted_string): Move to final.c.
1345         (warn_deprecated_use): Move to tree.c.
1346         (option_affects_pch_p, default_get_pch_validity,
1347         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1348         * toplev.h (skip_leading_substring): Move to tree-dump.c.
1349         (warn_deprecated_use): Move to tree.h.
1350         (output_quoted_string): Move to output.h.
1351         (main_input_filename, main_input_basename, main_input_baselength):
1352         Move to common.opt.
1353         (default_get_pch_validity, default_pch_valid_p): Move to
1354         targhooks.c.
1355         * tree-dump.c (skip_leading_substring): Move from toplev.h.
1356         * tree.c (warn_deprecated_use): Move from toplev.c.
1357         * tree.h (warn_deprecated_use): Move from toplev.h.
1358         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1359         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1360         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1361         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1362         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1363         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1364         config/mcore/mcore.c, config/mep/mep.c,
1365         config/microblaze/microblaze.c, config/mips/mips.c,
1366         config/mmix/mmix.c, config/mn10300/mn10300.c,
1367         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1368         config/picochip/picochip.c, config/s390/s390.c,
1369         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1370         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1371         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1372         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1373         varasm.c, xcoffout.c: Don't include toplev.h.
1374         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1375         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1376         varasm.o, xcoffout.o): Update dependencies.
1377         * config/arm/t-arm (arm.o): Update dependencies.
1378         * config/spu/t-spu-elf (spu.o): Update dependencies.
1379
1380 2010-12-01  Richard Guenther  <rguenther@suse.de>
1381
1382         PR tree-optimization/46730
1383         * value-prof.c (gimple_ic): Always generate a separate merge BB.
1384
1385 2010-11-30  Ian Lance Taylor  <iant@google.com>
1386
1387         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
1388         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1389         * config/i386/linux64.h (ASM_SPEC): Likewise.
1390         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1391         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1392         * config/i386/vxworks.h (ASM_SPEC): Likewise.
1393         * config/i386/x86-64.h (ASM_SPEC): Likewise.
1394         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1395         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1396
1397 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1398
1399         * c-decl.c (finish_function): Call objc_finish_function in
1400         Objective-C.
1401         * c-typeck.c (convert_for_assignment): Do not call
1402         objc_type_quals_match().
1403
1404 2010-11-30  Richard Guenther  <rguenther@suse.de>
1405
1406         PR tree-optimization/46722
1407         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1408         operands as arguments.
1409         (execute_optimize_widening_mul): Also handle power of two as
1410         multiplication.
1411
1412 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1413
1414         PR middle-end/46709
1415         * cgraphunit.c (process_function_and_variable_attributes): Fix
1416         cut'n'pasteo.
1417
1418 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1419
1420         * hwint.c:  New.  Extracted from toplev.c.
1421         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1422         Move from toplev.h.
1423         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1424         Move to hwint.c.
1425         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1426         Move to hwint.h.
1427         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1428         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1429         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1430         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1431         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1432         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1433         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1434         tree-vrp.c: Don't include toplev.h.
1435         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1436         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1437         toplev.h in generated output.
1438         * Makefile.in (OBJS-common): Add hwint.o.
1439         Dependencies for above files changed to remove toplev.h.
1440         (hwint.o): New.
1441         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1442         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1443         toplev.h.
1444         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1445         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1446
1447 2010-11-30  Richard Guenther  <rguenther@suse.de>
1448
1449         PR tree-optimization/46717
1450         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1451         call.  Manually create EH edges for the direct call and update
1452         target PHI nodes.
1453
1454 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1455
1456         * diagnostic-core.h: Include bversion.h.
1457         * toplev.h: Don't include input.h or bversion.h.
1458         (parse_optimize_options): Don't declare here.
1459         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1460         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1461         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1462         config/host-darwin.c, config/i386/host-cygwin.c,
1463         config/i386/host-mingw32.c, config/i386/msformat-c.c,
1464         config/i386/netware.c, config/i386/nwld.c,
1465         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1466         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1467         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1468         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1469         config/score/score3.c, config/score/score7.c,
1470         config/sh/symbian-base.c, config/sh/symbian-c.c,
1471         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1472         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1473         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1474         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1475         graphite-blocking.c, graphite-clast-to-gimple.c,
1476         graphite-dependences.c, graphite-flattening.c,
1477         graphite-interchange.c, graphite-poly.c,
1478         graphite-scop-detection.c, graphite.c, haifa-sched.c,
1479         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1480         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1481         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1482         lto-opts.c, lto-section-in.c, lto-section-out.c,
1483         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1484         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1485         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1486         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1487         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1488         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1489         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1490         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1491         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1492         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1493         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1494         include toplev.h.
1495         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
1496         toplev.h.  Dependencies for above files and c-family files changed
1497         to remove $(TOPLEV_H) or toplev.h.
1498         (C_TREE_H): Don't include $(TOPLEV_H).
1499         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
1500         bversion.h.
1501         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1502         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1503         config/t-darwin, config/t-sol2,
1504         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1505         Dependencies for above files changed to remove $(TOPLEV_H) or
1506         toplev.h.
1507
1508 2010-11-30  Richard Guenther  <rguenther@suse.de>
1509
1510         PR lto/44986
1511         * gcc.c (main): Use the first input with a compiler as infile
1512         for link spec processing.
1513
1514 2010-11-30  Richard Guenther  <rguenther@suse.de>
1515
1516         PR lto/45949
1517         * cgraphunit.c (ipa_passes): Stop after errors from
1518         small IPA passes.
1519
1520 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
1521
1522         * gcc-plugin.h: Include coretypes.h.
1523         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1524
1525 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1526
1527         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1528         * ggc-none.c (ggc_internal_alloc_zone_stat)
1529         (ggc_internal_cleared_alloc_zone_stat): New.
1530
1531 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
1532
1533         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1534         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1535         (rs6000_emit_prologue): Don't set PIC register if
1536         TARGET_SINGLE_PIC_BASE.
1537         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1538         * doc/invoke.texi (msingle-pic-base): Document.
1539
1540 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
1541
1542         PR driver/46712
1543         * exec-tool.in (id): New.
1544         Check and export LT_RCU_$id instead of LT_RCU.
1545
1546 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
1547
1548         PR tree-optimization/46675
1549         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1550         in offset calculation.
1551
1552 2010-11-29  Jan Hubicka  <jh@suse.cz>
1553
1554         * collect2.c (main): Do not imply verbose output with
1555         LTO and linker plugin.
1556
1557 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
1558
1559         * dwarf2out.c (print_die): Print the address of the current DIE or
1560         of any DIE referenced by the current one.
1561
1562 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
1563
1564         PR debug/46101
1565         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1566         function.
1567         (scope_die_for, gen_type_die_for_member): Replace uses of
1568         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1569
1570 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
1571
1572         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1573         (darwin_asm_declare_object_name): Correct spelling.
1574         (darwin_output_aligned_bss): Likewise.
1575
1576 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
1577             Mike Stump  <mrs@gcc.gnu.org>
1578
1579         PR target/26427
1580         PR target/33120
1581         PR testsuite/35710
1582         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1583         (ASM_OUTPUT_LOCAL): Likewise.
1584         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1585         (darwin_output_aligned_bss): Likewise.
1586         (darwin_asm_output_aligned_decl_local): Likewise.
1587         (darwin_asm_output_aligned_decl_common): Likewise.
1588         (darwin_use_anchors_for_symbol_p): Likewise.
1589         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1590         (TARGET_ASM_OUTPUT_ANCHOR): Define.
1591         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1592         (DARWIN_SECTION_ANCHORS): Set to 1.
1593         * config/darwin.c (emit_aligned_common): New var.
1594         (darwin_init_sections): Check that the Darwin private zero-size section
1595         marker is in range.
1596         (darwin_text_section): Check for zero-sized objects.
1597         (darwin_mergeable_string_section): Likewise.
1598         (darwin_mergeable_constant_section): Likewise.
1599         (machopic_select_section): Adjust to check for zero-sized objects.
1600         Assert that OBJC meta data are non-zero sized.
1601         (darwin_asm_declare_object_name): New.
1602         (darwin_asm_declare_constant_name): Adjust for zero-sized
1603         object sections.
1604         (BYTES_ZFILL): Define.
1605         (darwin_emit_weak_or_comdat): New.
1606         (darwin_emit_local_bss): New.
1607         (darwin_emit_common): New.
1608         (darwin_output_aligned_bss): New.
1609         (darwin_asm_output_aligned_decl_common): New.
1610         (darwin_asm_output_aligned_decl_local): New.
1611         (darwin_file_end): Disable subsections_via_symbols when section
1612         anchoring is active.
1613         (darwin_asm_output_anchor): Re-enable.
1614         (darwin_use_anchors_for_symbol_p): New.
1615         (darwin_override_options): Check for versions that can emit
1616         aligned common.  Update usage of flags to current.
1617         * config/darwin-sections.def: Update comments and flags for
1618         non-anchor sections.  zobj_const_section, zobj_data_section,
1619         zobj_bss_section, zobj_const_data_section: New.
1620         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1621         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1622         (L2_MAX_OFILE_ALIGNMENT): Define.
1623         (ASM_OUTPUT_ALIGNED_BSS): Define.
1624         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1625         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1626         (SECTION_NO_ANCHOR): Define.
1627         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1628         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1629
1630 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
1631
1632         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1633         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1634         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1635         Conditionally define.
1636         (GET_ENVIRONMENT): Poison.
1637         * configure.ac: Don't test for mincore.
1638         * configure: Regenerate.
1639         * config.in: Regenerate.
1640         * collect2-aix.c: Don't include <sys/mman.h>.
1641         * collect2.c: Don't include <signal.h>.
1642         (SIGCHLD): Don't define.
1643         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1644         * config/alpha/alpha.c: Include "splay-tree.h" instead of
1645         <splay-tree.h>.
1646         * config/arm/arm.c (arm_target_help): Use getenv instead of
1647         GET_ENVIRONMENT.
1648         * config/avr/driver-avr.c: Don't include <stdlib.h>.
1649         * config/frv/frv.c: Don't include <ctype.h>.
1650         * config/host-darwin.c: Don't include <sys/mman.h>.
1651         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1652         (MAP_FAILED): Don't define.
1653         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1654         * config/host-solaris.c: Don't include <sys/mman.h>.
1655         * config/i386/cygming.h: Don't include <stdio.h>.
1656         * config/i386/driver-i386.c: Don't include <stdlib.h>.
1657         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1658         * config/iq2000/iq2000.c: Don't include <signal.h>.
1659         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1660         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1661         * config/mep/mep-pragma.c: Don't include <stdio.h>.
1662         * config/microblaze/microblaze.c: Don't include <signal.h>.
1663         * config/mips/mips.c: Don't include <signal.h>.
1664         * config/rs6000/host-darwin.c: Don't include <signal.h>.
1665         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1666         * defaults.h (GET_ENVIRONMENT): Don't define.
1667         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1668         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1669         (SIGCHLD, MAP_FAILED, kill): Don't define.
1670         (process_command): Use getenv instead of GET_ENVIRONMENT.
1671         * genhooks.c: Don't include <string.h>.
1672         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1673         <sys/types.h>.
1674         (MAP_FAILED): Don't define.
1675         * ggc-page.c Don't include <sys/mman.h>.
1676         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1677         * ggc-zone.c: Don't include <sys/mman.h>.
1678         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1679         * graph.c: Include "config.h" instead of <config.h>.
1680         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1681         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1682         (SIGCHLD, kill): Don't define.
1683         * mips-tfile.c: Don't include <signal.h>.
1684         * opts.c: Don't include <signal.h> or <sys/resource.h>.
1685         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1686         * passes.c: Don't include <signal.h>, <sys/resource.h> or
1687         <sys/times.h>.
1688         * sparseset.h: Don't include <assert.h>.
1689         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1690         * tlink.c: Don't include "libiberty.h".
1691         * toplev.c: Don't include <signal.h> or <sys/times.h>.
1692         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1693         * tree-switch-conversion.c: Don't include <signal.h>.
1694         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1695
1696 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1697
1698         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1699         c_parser_objc_try_catch_finally_statement for consistency with the
1700         C++ parser.  Parse @catch(...) and pass NULL_TREE to
1701         objc_begin_catch_clause() in that case.  Improved error recovery.
1702         Reorganized code to be almost identical to
1703         cp_parser_objc_try_catch_finally_statement.
1704
1705 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
1706
1707         PR tree-optimization/46621
1708         * gimple.h: Don't include tm.h or hard-reg-set.h .
1709         * Makefile.in (GIMPLE_H): Remove $(TM_H).
1710
1711         PR bootstrap/44756
1712         * cppbuiltin.c: Include target.h .
1713         (define_builtin_macros_for_type_sizes):
1714         Use targetm.float_words_big_endian.
1715
1716 2010-11-27  Jan Hubicka  <jh@suse.cz>
1717
1718         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1719         and output cold_text_section_label.
1720         (dwarf2out_init): Don't do that there.
1721         (dwarf2out_finish): Handle cold section end label only if cold
1722         section was used.
1723
1724 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1725
1726         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1727         VLA variables.
1728
1729 2010-11-27  Richard Guenther  <rguenther@suse.de>
1730
1731         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1732         (gimple_assign_ssa_name_copy_p): Likewise.
1733         (gimple_assign_unary_nop_p): Use is_gimple_assign.
1734         (is_gimple_cast): Remove.
1735         (gimple_assign_single_p): Move ...
1736         * gimple.h (gimple_assign_single_p): ... here.
1737         (is_gimple_cast): Remove.
1738         (gimple_assign_rhs_code): Simplify.
1739         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1740         instead of is_gimple_cast.
1741         * ipa-type-escape.c (look_for_casts): Likewise.
1742
1743 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
1744
1745         * doc/options.texi (Enum, EnumValue): Document new record types.
1746         (Enum): Document new option flag.
1747         * opt-functions.awk
1748         * optc-gen.awk: Handle enumerated option arguments.
1749         * opth-gen.awk: Handle enumerated option arguments.
1750         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1751         enum_value_to_arg): New.
1752         (decode_cmdline_option): Handle enumerated arguments.
1753         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1754         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1755         * opts.c (print_filtered_help, print_specific_help): Take
1756         lang_mask arguments.
1757         (print_filtered_help): Handle printing values of enumerated
1758         options.  Print possible arguments for enumerated options.
1759         (print_specific_help): Update call to print_filtered_help.
1760         (common_handle_option): Update calls to print_specific_help.  Use
1761         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
1762         handle OPT_ffp_contract_, OPT_fexcess_precision_,
1763         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1764         OPT_fira_region_ here.
1765         * opts.h (enum cl_var_type): Add CLVC_ENUM.
1766         (struct cl_option): Add var_enum.
1767         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1768         struct cl_enum, cl_enums, cl_enums_count): New.
1769         (CL_ERR_ENUM_ARG): Define.
1770         (CL_ERR_NEGATIVE): Update value.
1771         (enum_value_to_arg): Declare.
1772         * common.opt (flag_ira_algorithm, flag_ira_region,
1773         flag_fp_contract_mode, flag_excess_precision_cmdline,
1774         default_visibility, flag_tls_default): Remove Variable entries.
1775         (help_enum_printed): New Variable.
1776         (fdiagnostics-show-location=): Use Enum.  Add associated
1777         SourceInclude, Enum and EnumValue entries.
1778         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1779         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
1780         associated Enum and EnumValue entries.
1781
1782 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
1783
1784         PR target/46623
1785         * config/microblaze/microblaze.c (microblaze_block_move_straight):
1786         Use XALLOCAVEC.
1787         (microblaze_option_override): Don't use C++ style comments.
1788         (save_restore_insns): Remove unused variable base_offset.
1789         (microblaze_expand_prologue): Remove unused variable insn.
1790         (microblaze_secondary_reload): Adjust type to match target.h .
1791         (microblaze_elf_in_small_data_p): Move declarations to start of block.
1792         (microblaze_expand_move): Likewise.
1793         * config/microblaze/microblaze.h (LARGE_INT):
1794         Avoid signed / unsigned comparisons.
1795         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1796         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1797         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
1798
1799 2010-11-26  Michael Matz  <matz@suse.de>
1800
1801         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1802
1803         * passes.c (init_optimization_passes): Remove superfluous
1804         copy-prop pass.
1805
1806 2010-11-26  Richard Guenther  <rguenther@suse.de>
1807
1808         PR lto/46648
1809         * gimple.c (gtc_visit): Do not return true for members of an
1810         SCC still being processed but the current lattice value of
1811         the member.  Treat SCC members comparison state as lattice,
1812         starting at equal, eventually dropping to unequal.
1813         (gimple_types_compatible_p_1): Likewise.
1814
1815 2010-11-26  Richard Guenther  <rguenther@suse.de>
1816
1817         PR middle-end/46559
1818         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1819         for location list processing.
1820
1821 2010-11-26  Richard Guenther  <rguenther@suse.de>
1822
1823         PR lto/46560
1824         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1825         flags manually.
1826
1827 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1828
1829         * config/s390/s390.c (print_operand_address): Replace assert with
1830         error message.
1831         (print_operand): Replace assertions, gcc_unreachable and
1832         fatal_insn with error messages.
1833
1834 2010-11-26  Richard Guenther  <rguenther@suse.de>
1835
1836         PR tree-optimization/46665
1837         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1838
1839 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
1840
1841         * config/arm/arm.c (arm_option_override): enable loop array
1842         prefetching at -O3 for suitable targets, and configure params.
1843         * config/arm/arm-protos.h (struct tune_params): Add fields for
1844         configuring loop array prefetching.
1845
1846 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
1847
1848         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1849
1850 2010-11-26  Richard Guenther  <rguenther@suse.de>
1851
1852         PR tree-optimization/46664
1853         * tree-affine.c (aff_combination_to_tree): Add rest last.
1854
1855 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1856
1857         PR target/33637
1858         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1859         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1860         * configure: Regenerated.
1861         * exec-tool.in: Not quoting command, may have extra arguments.
1862
1863 2010-11-26  Richard Guenther  <rguenther@suse.de>
1864
1865         PR tree-optimization/46528
1866         PR debug/46338
1867         * profile.c (branch_prob): Do not split blocks based on locations
1868         from debug statements.
1869
1870 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
1871
1872         PR middle-end/46647
1873         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1874         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
1875
1876         PR bootstrap/45700
1877         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1878         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1879         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1880         build6_loc): Define.
1881         * fold-const.c (protected_set_expr_location_unshare): New inline.
1882         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1883         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1884         pedantic_omit_one_operand_loc, omit_two_operands_loc,
1885         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1886         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1887         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1888         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1889         instead of buildN followed by SET_EXPR_LOCATION or
1890         protected_set_expr_location.
1891         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1892         Use buildN_stat_loc instead of buildN_stat followed by
1893         SET_EXPR_LOCATION.
1894
1895 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
1896
1897         * Makefile.in (s-tm-texi): Remove spurous tab.
1898
1899 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1900
1901         PR debug/46258
1902         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1903         debug stmts.
1904
1905 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1906
1907         * toplev.c (finalize): Add no_backend parameter.  Don't finish
1908         passes when preprocessing only.  Adjust...
1909         (do_compile): ... caller.
1910
1911 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1912
1913         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1914         flag_unsafe_math_optimizations.
1915         (negsf2): Likewise.
1916         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1917         to negate a multiply if !flag_signed_zeros is true.
1918
1919 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1920
1921         * gengtype-state.c (read_state_structures): Initialize "previous".
1922
1923 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1924             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1925
1926         * gengtype-state.c: Add new file.
1927
1928         * gengtype.c (type count): New variable.
1929         (new_structure, find_param_structure, create_pointer)
1930         (create_array): Use it to set state_number in types.
1931         (dump_everything): Improve comment.
1932         (main): Call read_state and write_state. Print type_count.
1933
1934         * gengtype.h (type_lineloc): New function.
1935         (read_state, write_state): New declarations.
1936
1937         * Makefile.in (GENGTYPE_FLAGS): New variable.
1938         (s-gtype): Run gengtype twice and generate gtype.state.
1939         (build/gengtype-state.o): New rule.
1940         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1941         (mostlyclean): Update comment.  Remove gtype.state.
1942
1943 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1944
1945         PR middle-end/46637
1946         * combine.c (try_combine): When substing i2dest for i2src, pass
1947         1 as last argument even if
1948         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1949
1950 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1951
1952         PR middle-end/46647
1953         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1954         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1955
1956 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1957
1958         * target.def (supports_split_stack, except_unwind_info): Take
1959         gcc_options parameters.
1960         * targhooks.c (default_except_unwind_info,
1961         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1962         gcc_options parameters.
1963         * targhooks.h (default_except_unwind_info,
1964         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1965         prototypes.
1966         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1967         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1968         Document that hooks must not be modified.
1969         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1970         * doc/tm.texi: Regenerate.
1971         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1972         &global_options to targetm.except_unwind_info.
1973         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1974         dwarf2out_begin_prologue, dwarf2out_frame_init,
1975         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1976         &global_options to targetm.except_unwind_info.
1977         * except.c (init_eh, finish_eh_generation,
1978         gate_convert_to_eh_region_ranges,
1979         output_one_function_exception_table): Pass &global_options to
1980         targetm.except_unwind_info.
1981         * expr.c (build_personality_function): Pass &global_options to
1982         targetm.except_unwind_info.
1983         * function.c (expand_function_end): Pass &global_options to
1984         targetm.except_unwind_info.
1985         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1986         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1987         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1988         and targetm.supports_split_stack.  Remove assertions about opts
1989         and opts_set.
1990         (common_handle_option): Remove assertions about opts, opts_set and dc.
1991         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1992         &global_options to targetm.except_unwind_info.
1993         * tree.c (build_common_builtin_nodes: Pass &global_options to
1994         targetm.except_unwind_info.
1995         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1996         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1997         thumb1_expand_prologue, thumb1_output_function_prologue,
1998         arm_unwind_emit, arm_output_fn_unwind): Update calls to
1999         arm_except_unwind_info.
2000         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
2001         parameter.
2002         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
2003         parameter.
2004         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
2005         ia64_reorg, ia64_asm_unwind_emit): Update calls to
2006         ia64_except_unwind_info.
2007         * config/pa/pa.c (pa_option_override): Pass &global_options to
2008         targetm.except_unwind_info.
2009         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2010         Remove prototype.
2011
2012 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
2013
2014         * cgraphunit.c (process_function_and_variable_attributes):
2015         Mark dllexport-ed function/variables as needed.
2016         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
2017         as externally visible.
2018
2019 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
2020
2021         PR rtl-optimization/46585
2022         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
2023         (vinsn_init): Skip computation of dependencies for local NOPs.
2024         (vinsn_delete): Don't try to free regsets for local NOPs.
2025         (setup_nop_and_exit_insns): Change definition of nop_pattern.
2026
2027 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
2028
2029         PR rtl-optimization/46602
2030         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
2031         (tidy_control_flow): Here.
2032
2033 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
2034             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2035
2036         PR bootstrap/45888
2037         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
2038         Fix target.def pathname in timestamp comparison.
2039
2040 2010-11-24  Richard Henderson  <rth@redhat.com>
2041
2042         * config/ia64/predicates.md (pmpyshr_operand): New.
2043         * config/ia64/ia64.c (ia64_expand_unpack): New.
2044         (ia64_expand_widen_mul_v4hi): New.
2045         (ia64_expand_widen_sum): Update for pattern renames.
2046         (ia64_expand_dot_prod_v8qi): Likewise.
2047         * config/ia64/ia64-protos.h: Update.
2048         * config/ia64/vect.md (vecwider): New mode attribute.
2049         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
2050         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
2051         (pmpyshr2, pmpyshr2_u): New.
2052         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
2053         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
2054         (mulv2si3): New.
2055         (vec_pack_ssat_v4hi): Rename from pack2_sss.
2056         (vec_pack_usat_v4hi): Rename from *pack2_uss.
2057         (vec_pack_ssat_v2si): Rename from pack4_sss.
2058         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
2059         vec_select operation.
2060         (vec_interleave_highv8qi): Similarly.
2061         (mux1_alt): Rename from *mux1_alt.
2062         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
2063         (vec_interleave_lowv4hi): Rename from unpack2_l.
2064         (vec_interleave_highv4hi): Rename from unpack2_h.
2065         (mix2_r): Rename from *mix2_r.
2066         (mix2_l): Similarly.
2067         (vec_extract_evenodd_helper): New.
2068         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
2069         (vec_interleave_lowv2si): Rename from *unpack4_l.
2070         (vec_interleave_highv2si): Rename from *unpack4_h.
2071         (vec_extract_evenv2si, vec_extract_oddv2si): New.
2072         (vec_interleave_lowv2sf): Rename from fmix_r.
2073         (vec_interleave_highv2sf): Rename from *fmix_l.
2074         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
2075         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
2076         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
2077         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
2078
2079 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
2080
2081         * targhooks.c (default_except_unwind_info): Remove
2082         MUST_USE_SJLJ_EXCEPTIONS case.
2083         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2084         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2085         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2086         * doc/tm.texi: Regenerate.
2087         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
2088
2089 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
2090
2091         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2092         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
2093         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
2094         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
2095         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
2096
2097 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
2098
2099         PR target/46519
2100         * config/i386/i386.c (ix86_expand_call): Don't check
2101         TREE_THIS_VOLATILE.
2102
2103 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
2104
2105         PR target/46519
2106         * config/i386/i386.c (upper_128bits_state): New.
2107         (block_info_def): Remove upper_128bits_set and done.  Add state,
2108         referenced, count, processed and rescanned.
2109         (check_avx256_stores): Updated.
2110         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
2111         Call note_stores only if needed.  Set referenced and count.
2112         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
2113         (rescan_move_or_delete_vzeroupper): New.
2114         (move_or_delete_vzeroupper):  Process and rescan all all basic
2115         blocks instead of predecessor blocks of all exit points.
2116         (ix86_option_override_internal): Enable vzeroupper optimization
2117         only for -fexpensive-optimizations and not optimizing for size.
2118         (use_avx256_p): Removed.
2119         (init_cumulative_args): Don't set use_avx256_p.
2120         (ix86_function_arg): Likewise.
2121         (ix86_expand_move): Likewise.
2122         (ix86_expand_vector_move_misalign): Likewise.
2123         (ix86_local_alignment): Likewise.
2124         (ix86_minimum_alignment): Likewise.
2125         (ix86_expand_epilogue): Don't check use_avx256_p when generating
2126         vzeroupper.
2127         (ix86_expand_call): Likewise.
2128
2129         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
2130         and use_avx256_p.  Add rescan_vzeroupper_p.
2131
2132 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
2133
2134         * toplev.c: Include <signal.h>.
2135
2136 2010-11-24  Richard Guenther  <rguenther@suse.de>
2137
2138         PR lto/43218
2139         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
2140         conflicting function signatures as non-inlineable.
2141
2142 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
2143
2144         PR rtl-optimization/46614
2145         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
2146          (deps_analyze_insn): Mark JUMP_INSNs in
2147         last_pending_memory_flush that weren't added through
2148         flush_pending_lists with NON_FLUSH_JUMP_KIND.
2149         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
2150         on INSN_LIST instead of JUMP_P check on its operand.
2151         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
2152
2153 2010-11-24  Richard Guenther  <rguenther@suse.de>
2154
2155         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2156
2157 2010-11-24  Richard Guenther  <rguenther@suse.de>
2158
2159         PR lto/46606
2160         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2161         a FIELD_DECL that is type correct issue a warning and fixup
2162         with a VIEW_CONVERT_EXPR.
2163
2164 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
2165
2166         * doc/invoke.texi (Options for Debugging Your Program or GCC):
2167         Explain static numbering of dump files.
2168
2169 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
2170
2171         * common.opt (user_vect_verbosity_level): New Variable entry.
2172         (ftree-vectorizer-verbose=): Mark as UInteger.
2173         * flag-types.h (enum vect_verbosity_levels): Move from enum
2174         verbosity_levels in tree-vectorizer.h.
2175         * opts.c: Don't include tree.h.
2176         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
2177         gcc_options parameter; take integer option argument.
2178         (common_handle_option): Update call to vect_set_verbosity_level.
2179         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2180         (vect_set_verbosity_level): Move to opts.c.
2181         (vect_verbosity_level, vect_print_dump_info): Update for change of
2182         enum name.
2183         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2184         (vect_print_dump_info): Update for change of enum name.
2185         * tree.h (vect_set_verbosity_level): Remove.
2186         * Makefile.in (opts.o): Update dependencies.
2187
2188 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
2189
2190         PR middle-end/46629
2191         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2192         instead of insn with any_condjump_p.
2193
2194 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
2195
2196         * config/mips/loongson.md: Change the description comment of the file
2197         and update the copyright years.
2198         (define_insn "<u>div<mode>3): Add loongson3a support.
2199         (define_insn "<u>mod<mode>3"): Likewise.
2200         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2201         mul<mode>3_mul3_loongson.
2202         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2203         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2204
2205 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2206
2207         * common.opt (initial_max_fld_align, flag_debug_asm,
2208         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2209         flag_print_asm_name, graph_dump_format, help_printed,
2210         help_columns, flag_opts_finished): New Variable entries.
2211         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2212         frandom-seed=): Mark deferred.
2213         (fsched-verbose=): Use UInteger and Var.
2214         * flags.h (set_struct_debug_option, flag_print_asm_name,
2215         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2216         graph_dump_format): Don't declare here.
2217         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2218         * opts-global.c: Include dbgcnt.h and debug.h.
2219         (decode_options): Pass location to finish_options.
2220         (handle_common_deferred_options): Check flag_dump_all_passed.
2221         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2222         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
2223         OPT_fstack_limit.
2224         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2225         (set_struct_debug_option): Add location_t parameter.  Update
2226         recursive call.  Use error_at.
2227         (default_options_optimization): Use error_at.
2228         (finish_options): Add location_t parameter.  Use
2229         opts->x_flag_opts_finished instead of first_time_p.  Use
2230         opts->x_optimize instead of optimize.  Use error_at.  Pass
2231         location to inform.
2232         (print_filtered_help): Use opts->x_help_printed to track what
2233         options have been printed.
2234         (print_specific_help): Use opts->x_help_columns to track number of
2235         columns.
2236         (common_handle_option): Pass locations and gcc_options pointers to
2237         more functions.  Use warning_at instead of fnotice and warning.
2238         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2239         OPT_fdebug_prefix_map_.  Use error_at.  Set
2240         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2241         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
2242         OPT_fsched_verbose_.
2243         (handle_param): Add location_r parameter.  Use error_at.
2244         (set_debug_level): Add location_r parameter.  Use error_at and
2245         warning_at.
2246         (setup_core_dumping): Add diagnostic_context parameter.
2247         (decode_d_option): Add gcc_options, location_t and
2248         diagnostic_context parameters and use them instead of global
2249         state.  Use warning_at.
2250         (enable_warning_as_error): Use error_at.
2251         * opts.h (finish_options): Update prototype.
2252         (set_struct_debug_option): Declare here.
2253         * rtl.h (fix_sched_param): Remove.
2254         * stor-layout.c (initial_max_fld_align): Remove.
2255         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2256         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2257         (process_options): Set maximum_field_alignment.
2258         * tree.h (initial_max_fld_align) Don't declare here.
2259         * Makefile.in (opts.o, opts-global.o): Update dependencies.
2260
2261 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2262
2263         * flag-types.h (struct visibility_flags): Don't declare here.
2264         * flags.h (strip_off_ending, fast_math_flags_set_p,
2265         fast_math_flags_struct_set_p): Declare here.
2266         (visibility_options): Don't declare here.
2267         * opts-common.c (option_enabled, get_option_state): Move from
2268         opts.c.
2269         * opts-global.c: Include diagnostic.h instead of
2270         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
2271         and toplev.h.
2272         (const_char_p, ignored_options, in_fnames, num_in_fnames,
2273         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2274         print_ignored_options, unknown_option_callback,
2275         post_handling_callback, lang_handle_option, add_input_filename,
2276         read_cmdline_options, initial_lang_mask, init_options_once,
2277         decode_cmdline_options_to_array_default_mask,
2278         set_default_handlers, decode_options): Move from opts.c.
2279         (print_ignored_options): Use warning_at instead of saving and
2280         restoring input_location.
2281         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
2282         instead of expr.h.  Don't include langhooks.h, except.h or
2283         lto-streamer.h.  Add more comments on includes.
2284         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2285         toplev.c.
2286         (visibility_options): Move to c-family/c-common.c.
2287         (const_char_p, ignored_options, in_fnames, num_in_fnames,
2288         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2289         print_ignored_options, unknown_option_callback,
2290         post_handling_callback, lang_handle_option, add_input_filename,
2291         read_cmdline_options, initial_lang_mask, init_options_once,
2292         decode_cmdline_options_to_array_default_mask,
2293         set_default_handlers, decode_options): Move to opts-global.c.
2294         (target_handle_option, default_options_optimization,
2295         finish_options, common_handle_option): Remove static.
2296         (option_enabled, get_option_state): Move to opts-common.c.
2297         * opts.h (common_handle_option, target_handle_option,
2298         finish_options, default_options_optimization): Declare.
2299         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2300         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2301         opts.c.
2302         * toplev.h (strip_off_ending, decode_d_option,
2303         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2304         declare here.
2305         * Makefile.in (opts.o, opts-global.o): Update dependencies.
2306
2307 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
2308
2309         PR driver/42690
2310         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2311         options, replace by call of pass-through-libs spec function to process
2312         link_gcc_c_sequence spec.
2313         (lto_libgcc_spec): Delete variable.
2314         (static_specs[]): Remove related entry.
2315         (static_spec_functions[]): Add new entry for pass-through-libs.
2316         (main): Don't generate deleted lto_libgcc_spec.
2317         (pass_through_libs_spec_func): New function to implement the new
2318         pass-through-libs spec function.
2319         * doc/invoke.texi (pass-through-libs): Document new spec function.
2320
2321 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2322
2323         * doc/options.texi (Warning, Optimization): Document.
2324
2325 2010-11-23  Jan Hubicka  <jh@suse.cz>
2326
2327         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2328         (tree_decl_with_vis): Add implicit_section_name_p.
2329         * targhooks.h (default_function_section): Declare.
2330         * target.def (function_section): New hook.
2331         * defaults.h (HOT_TEXT_SECTION_NAME,
2332         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2333         * predict.c (choose_function_section): Remove.
2334         (estimate_bb_frequencies): Do not use choose_function_section.
2335         * coretypes.h (enum node_frequency): Move here from cgraph.h
2336         * cgraph.h (enum node_frequency): Remove.
2337         * varasm.c (initialize_cold_section_name, unlikely_text_section,
2338         unlikely_text_section_p): Remove.
2339         (named_subsection_entry): New structure.
2340         (get_text_section): New function.
2341         (default_function_section): New function.
2342         (function_section_1): Break out from ...; handle profile info.
2343         (function_section): ... here.
2344         (unlikely_text_section): Remove.
2345         (unlikely_text_section_p): Use function_section_1.
2346         (assemble_start_function): Do not initialize cold section.
2347         (default_section_type_flags): Do not special case cold subsection.
2348         (switch_to_section): Likewise.
2349         * output.h (get_text_section): Define.
2350         * config/i386/winnt.c: Do not special case cold section.
2351         * config/darwin-protos.h (darwin_function_section): Declare.
2352         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2353         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2354         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2355         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2356         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2357         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2358         * config/darwin.c (machopic_select_section): Use
2359         darwin_function_section.
2360         (darwin_function_section): New function.
2361         * config/darwin.h (HOT_TEXT_SECTION_NAME,
2362         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2363         (TARGET_ASM_FUNCTION_SECTION): Define.
2364         * system.h (HOT_TEXT_SECTION_NAME,
2365         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2366
2367 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
2368
2369         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2370         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2371
2372 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
2373
2374         PR middle-end/46499
2375         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2376         following unconditional jumps.
2377
2378 2010-11-23  Richard Guenther  <rguenther@suse.de>
2379
2380         * doc/md.texi (386 constraints): Clarify A constraint documentation.
2381
2382 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
2383             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2384
2385         * gengtype.c (enum typekind, struct options)
2386         (struct nested_ptr_data, struct pair, NUM_PARAM)
2387         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2388         Move to gengtype.h.
2389         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2390         Remove static, add zero state_number.
2391         (typedefs, structures, param_structs, variables): Remove static.
2392         (create_option): Remove.
2393         (create_string_option, create_type_option, create_nested_option):
2394         New functions.
2395         (create_nested_ptr_option): Use create_nested_option.
2396         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2397         new create*option functions.
2398         (process_gc_options): Adjust for discriminated option.
2399         (output_mangled_typename): Handle TYPE_NONE.
2400         (walk_type): Test option kinds.
2401         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2402         (write_func_for_structure, write_type, write_local, write_root)
2403         (write_roots, note_def_vec, dump_options): Adjust for
2404         discriminated option.
2405
2406         * gengtype.h (typedefs, structures, param_structs, variables
2407         enum typekind): Move from gengtype.c
2408         (enum option_kind): New discriminating enumeration.
2409         (struct options): Becomes discriminated.
2410         (struct nested_ptr_data): Nove from gengtype.c
2411         (create_string_option, create_type_option, create_nested_option)
2412         (create_nested_ptr_option): New functions
2413         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2414         (UNION_OR_STRUCT_P): Move from gengtype.c
2415
2416         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2417         discriminated options.
2418
2419 2010-11-23  Richard Guenther  <rguenther@suse.de>
2420
2421         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2422         twice.  Avoid re-allocating the ops vector all the time.
2423
2424 2010-11-23  Richard Guenther  <rguenther@suse.de>
2425
2426         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2427         is_gimple_min_invariant, group tree code checks to allow
2428         combining them.
2429         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2430         of is_gimple_reg.
2431
2432 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
2433
2434         * config.gcc (sparc*-*-*): Reorder.
2435
2436 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
2437
2438         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2439         Remove ENABLE_CHECKING around DBGPRINTF.
2440
2441 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
2442
2443         * common.opt (exit_after_options, write_symbols, debug_info_level,
2444         use_gnu_debug_info_extensions): New Variable entries.
2445         (fprofile-dir=): Use Var.
2446         * flag-types.h (enum debug_info_level): Rename to enum
2447         debug_info_levels.
2448         * flags.h (write_symbols, debug_info_level,
2449         use_gnu_debug_info_extensions): Remove declarations.
2450         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2451         (set_struct_debug_option): Make static variables const.
2452         (use_gnu_debug_info_extensions): Remove.
2453         (set_debug_level, print_filtered_help, print_specific_help,
2454         fast_math_flags_set_p): Take gcc_options parameters and use them
2455         in place of global variables.
2456         (print_filtered_help): Make new_help non-static.
2457         (print_specific_help): Update call to print_filtered_help.
2458         (common_handle_option): Update calls to print_specific_help.  Use
2459         gcc_options structure for more settings.  Make --help table
2460         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
2461         set_debug_level.
2462         * toplev.c (profile_data_prefix): Remove.
2463         * toplev.h (profile_data_prefix, exit_after_options): Remove
2464         declarations.
2465         (fast_math_flags_set_p): Update prototype.
2466         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2467         Update call to fast_math_flags_set_p.
2468
2469 2010-11-22  Richard Henderson  <rth@redhat.com>
2470
2471         PR target/46434
2472         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2473         return the address register extracted.
2474         (crx_decompose_address): Update the extracted address register.
2475
2476 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
2477
2478         PR driver/43335
2479         * gcc.c (main): Don't crash when lto-wrapper program is not found.
2480
2481 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
2482
2483         PR target/46608
2484         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2485         * config/picochip/picochip-protos.h: Don't include "target.h" .
2486         (picochip_secondary_reload): Don't declare.
2487
2488         PR target/46613
2489         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2490         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2491         static.
2492
2493 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
2494
2495         PR bootstrap/46609
2496         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2497         (source_dot_c_frul): Likewise.
2498
2499 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
2500
2501         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2502
2503 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
2504
2505         PR bootstrap/44970
2506         * Makefile.in (fwprop.o) Add sparseset.h.
2507         * fwprop.c: Include sparseset.h
2508         (struct find_occurrence_data, find_occurrence_callback,
2509         find_occurrence): Remove.
2510         (active_defs, active_defs_check, register_active_defs,
2511         update_df_init, update_uses): New.
2512         (update_df): Rewrite.
2513         (try_fwprop_subst, forward_propagate_asm): Add calls to
2514         update_df_init and update_df.
2515         (fwprop_init): Allocate active_defs and active_defs_check.
2516         (fwprop_done): Free them.
2517         (fwprop, fwprop_addr): Adjust comments.
2518         * df.h (df_uses_create): Declare.
2519         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2520         (df_ref_create): Return result of df_ref_create_structure directly.
2521         (df_ref_create_structure): Call df_install_ref_incremental when
2522         no collection_rec is passed.
2523         (df_ref_record): Do not create multiword hard reg info when no
2524         collection_rec is passed.
2525         (df_uses_create): New.
2526
2527 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2528
2529         PR middle-end/43057
2530         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2531         setting location.
2532
2533 2010-11-22  Richard Guenther  <rguenther@suse.de>
2534
2535         * gimple-fold.c (maybe_fold_reference): When canonicalizing
2536         MEM_REFs, preserve volatileness.
2537         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2538         addresses.
2539
2540 2010-11-22  Richard Guenther  <rguenther@suse.de>
2541
2542         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2543
2544 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
2545
2546         PR rtl-optimization/45652
2547         * alias.c (get_reg_base_value): New.
2548         * rtl.h (get_reg_base_value): Add prototype.
2549         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
2550         non-null REG_BASE_VALUE for renaming.
2551
2552 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
2553             Basile Starynkevitch  <basile@starynkevitch.net>
2554
2555         * gengtype.c: Include xregex.h and obstack.h
2556         Added comments about role of get_output_file_with_visibility and
2557         our regexpr machinery.
2558         (frul_actionrout_t, struct file_rule_st): New.
2559         (hader_dot_h_frul, source_dot_c_frul): New functions.
2560         (NULL_REGEX,  NULL_FRULACT): New.
2561         (files_rules): New.
2562         (matching_file_name_substitute): New function.
2563         (get_output_file_with_visibility): Updated comments and rewritten
2564         to use the new files_rules machinery.
2565
2566         * Makefile.in (XREGEX_H): Added variable.
2567         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2568
2569 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
2570
2571         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2572
2573 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
2574
2575         * target.def (conditional_register_usage): Define.
2576         * reginfo.c (init_reg_sets_1): Call
2577         targetm.conditional_register_usage.
2578         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2579         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2580         for making it a hook.
2581         * doc/tm.texi: Regenerate.
2582         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2583         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2584         New function.
2585         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2586         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2587         * config/arc/arc.c (arc_conditional_register_usage): ...here.
2588         New function.
2589         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2590         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2591         * config/arm/arm.c (arm_conditional_register_usage): ...here.
2592         New function.
2593         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2594         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2595         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2596         * config/bfin/bfin.c (conditional_register_usage): Move code into...
2597         (bfin_conditional_register_usage): ...here.  New function.
2598         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2599         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2600         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2601         * config/cris/cris.c (cris_conditional_register_usage): Make static.
2602         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2603         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2604         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2605         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2606         * config/frv/frv.c (frv_conditional_register_usage): Make static.
2607         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2608         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2609         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2610         New function.
2611         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2612         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2613         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2614         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2615         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2616         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2617         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2618         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2619         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2620         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2621         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2622         New function.
2623         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2624         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2625         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2626         Delete.
2627         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2628         static.
2629         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2630         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2631         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2632         * config/mep/mep.c (mep_conditional_register_usage): Make static.
2633         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2634         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2635         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2636         * config/mips/mips.c (mips_conditional_register_usage): Make static.
2637         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2638         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2639         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2640         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2641         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2642         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2643         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2644         ...here.  New function.
2645         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2646         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2647         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2648         * config/pa/pa.c (pa_conditional_register_usage): ...here.
2649         New function.
2650         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2651         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2652         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2653         New function.
2654         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2655         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2656         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2657         Delete.
2658         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2659         static.
2660         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2661         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2662         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2663         * config/rx/rx.c (rx_conditional_register_usage): Make static.
2664         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2665         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2666         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2667         * config/s390/s390.c (s390_conditional_register_usage): Make static.
2668         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2669         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2670         * config/score/score.c (score_conditional_register_usage): ...here.
2671         New function.
2672         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2673         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2674         * config/sh/sh.c (sh_conditional_register_usage): ...here.
2675         New function.
2676         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2677         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2678         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2679         New function.
2680         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2681         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2682         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2683         * config/spu/spu.c (spu_conditional_register_usage): Make static.
2684         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2685         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2686         * config/v850/v850.c (v850_conditional_register_usage): ...here.
2687         New function.
2688         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2689
2690 2010-11-21  Jan Hubicka  <jh@suse.cz>
2691             Dominique d'Humieres <dominiq@lps.ens.ft>
2692
2693         PR target/46510
2694         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2695         finalize external decls.
2696
2697 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
2698
2699         * system.h (strerror): Poison.
2700
2701 2010-11-21  Richard Henderson  <rth@redhat.com>
2702
2703         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2704         for infq/huge_valq.
2705
2706 2010-11-21  Richard Henderson  <rth@redhat.com>
2707
2708         PR rtl-optimization/46571
2709         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2710         (compute_hash_table_work): Use NONDEBUG_INSN_P.
2711
2712 2010-11-21  Paul Koning  <ni1d@arrl.net>
2713
2714         * config/mips/pdp11.md (negsi2): Fix wrong code.
2715
2716 2010-11-21  Paul Koning  <ni1d@arrl.net>
2717
2718         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2719         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2720
2721 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2722
2723         * config/mips/mips.c (machine_function): Rename load_label_length to
2724         load_label_num_insns.
2725         (mips_load_label_length): Rename to...
2726         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
2727         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
2728
2729 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2730
2731         PR target/46533
2732         * config/alpha/predicates.md (direct_call_operand): Return false
2733         for !TARGET_SMALL_TEXT targets.
2734
2735 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2736
2737         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2738         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2739         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2740         * doc/tm.texi: Regenerate.
2741         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2742         HANDLE_PRAGMA_WEAK): Poison.
2743         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2744         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2745         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2746         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2747         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2748         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2749         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2750         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2751         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2752         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2753         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2754         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2755         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2756         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2757         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2758         (HANDLE_PRAGMA_WEAK): Don't undefine.
2759         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2760         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2761         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2762         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2763         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2764         (HANDLE_PRAGMA_WEAK): Don't undefine.
2765         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2766         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2767         (HANDLE_PRAGMA_PACK): Don't undefine.
2768         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2769         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2770         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2771         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2772         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2773         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2774         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2775         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2776         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2777         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2778         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2779         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2780         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2781         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2782         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2783         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2784         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2785
2786 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2787
2788         PR target/31100
2789         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2790         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2791         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2792
2793 2010-11-20  Jan Hubicka  <jh@suse.cz>
2794
2795         * cgraph.c (ld_plugin_symbol_resolution_names): New.
2796         (dump_cgraph_node): Dump resolution.
2797         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2798         (cgraph_comdat_can_be_unshared_p): Dclare.
2799         * lto-streamer-out.c (produce_symtab): Use
2800         cgraph_comdat_can_be_unshared_p.
2801         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2802         (cgraph_comdat_can_be_unshared_p): New function based on logic
2803         in cgraph_externally_visible_p.
2804         (cgraph_externally_visible_p): Use it.
2805         (varpool_externally_visible_p): Virtual tables can be unshared.
2806         * varpool.c (dump_varpool_node): Dump resolution.
2807
2808 2010-11-20  Jan Hubicka  <jh@suse.cz>
2809
2810         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2811
2812 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2813
2814         PR other/46202
2815         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2816         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2817         shell quoting.
2818         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2819         (install-strip): New target.
2820         (STRIPPROG): New variable, exported if STRIP is set.
2821         * doc/install.texi (Final install): Minor markup and code style
2822         fixes.  Document install-strip target.
2823
2824 2010-11-20  Paul Koning  <ni1d@arrl.net>
2825
2826         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2827         pdp11_regno_reg_class): New functions.
2828         * config/pdp11/pdp11.md (define_constants): Add register numbers.
2829         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2830         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2831         functions.
2832         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2833         frame pointer and argument pointer pseudo-registers.
2834         (ARG_POINTER_REGNUM): Define.
2835         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2836         argument pointer.
2837         (FIRST_PARM_OFFSET): Update for argument pointer.
2838         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2839         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2840         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2841         frame pointer and argument pointer.
2842
2843 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
2844
2845         PR debug/46561
2846         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2847         when looking for immediate uses.
2848
2849         PR tree-optimization/45830
2850         * stmt.c (expand_switch_using_bit_tests_p): New function.
2851         (expand_case): Use it.
2852         * tree.h (expand_switch_using_bit_tests_p): New prototype.
2853         * tree-switch-conversion.c (struct switch_conv_info): Add
2854         bit_test_uniq, bit_test_count and bit_test_bb fields.
2855         (check_range): Fix a comment.
2856         (check_process_case): Compute bit_test_uniq and bit_test_count.
2857         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2858         allocation.
2859         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2860         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2861         (array_value_type): New function.
2862         (build_one_array): Use it, if it returned different type,
2863         fold_convert all constructor fields and convert back to the
2864         wider type in the generated code.
2865         (process_switch): Initialize bit_test_uniq, bit_test_count and
2866         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
2867         returned true.
2868
2869 2010-11-19  Michael Matz  <matz@suse.de>
2870
2871         PR tree-optimization/46077
2872         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2873
2874 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
2875
2876         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2877         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2878         function.
2879         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2880
2881 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2882
2883         * mode-switching.c (optimize_mode_switching): Use
2884         FOR_BB_INSNS instead of open-coded loop.
2885         * cfgrtl.c (redirect_branch_edge): Ditto.
2886
2887 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
2888
2889         PR target/46436
2890         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2891         to accomodate 32 bit HOST_WIDE_INT.
2892         (m68hc11_emit_logical): Remove unused variable insn.
2893         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2894         this_insn_uses_iy before use.
2895
2896         PR target/46434
2897         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2898
2899 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2900
2901         PR c/46547
2902         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2903         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2904
2905 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2906
2907         * doc/extend.texi (Function attributes): Document PowerPC target
2908         attributes that are supported.
2909         (Pragmas): Document that PowerPC now supports target pragmas.
2910
2911         * doc/options.texi (TargetVariable): Document TargetVariable,
2912         HeaderInclude, and SourceInclude.
2913
2914         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2915         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2916         -ffp-contract=off.
2917
2918         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2919         SourceInclude directives.  Fix a cut+paste error with target save
2920         enum variables.  Sort enums in the structures after ints and
2921         before shorts.
2922         * opth-gen.awk: Ditto.
2923
2924         * configure.ac: Add support for HeaderInclude and SourceInclude option
2925         directives to add the appropriate files to the dependency lists.
2926         * configure: Regenerate.
2927         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2928         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2929         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2930         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2931         (gcc-options.o): Ditto.
2932         * opt-include.awk: New awk script to handle HeaderInclude and
2933         TargetInclude.
2934
2935         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2936         gets saved in the target options.
2937         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2938         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2939         (-mprototype): Ditto.
2940         (-mbit-word): ditto.
2941         (-mregnames): Ditto.
2942         (-msecure-plt): Ditto.
2943         (-mbss-plt): Ditto.
2944         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2945         (-mpowerpc-gfxopt): Ditto.
2946         (-mmfcrf): Ditto.
2947         (-mpopcntb): Ditto.
2948         (-mfprnd): Ditto.
2949         (-mcmpb): Ditto.
2950         (-mmmfpgpr): Ditto.
2951         (-maltivec): Ditto.
2952         (-mhard-dfp): Ditto.
2953         (-mmulhw): Ditto.
2954         (-mdlmzb): Ditto.
2955         (-mmultiple): Ditto.
2956         (-mstring): Ditto.
2957         (-mpopcntd): Ditto.
2958         (-mfriz): Ditto.
2959         (-mvsx): Ditto.
2960         (-mno-update): Ditto.
2961         (-mavoid-indexed-addresses): Ditto.
2962         (-mtls-markers): Ditto.
2963         (-msched-epilog): Ditto.
2964         (-msched-prolog): Ditto.
2965         (-maix-struct-return): Ditto.
2966         (-msvr4-struct-return): Ditto.
2967         (-mxl-compat): Ditto.
2968         (-mrecip-precision): Ditto.
2969         (-mfp-in-toc): Ditto.
2970         (-msum-in-toc): Ditto.
2971         (-mvrsave): Ditto.
2972         (-mblock-move-inline-limit=): Ditto.
2973         (-misel): Ditto.
2974         (-mpaired): Ditto.
2975         (-mlongcall): Ditto.
2976         (-mgen-cell-microcode): Ditto.
2977         (-mwarn-cell-microcode): Ditto.
2978         (-mwarn-altivec-long): Ditto.
2979         (-mprioritize-restricted-insns=): Ditto.
2980         (-msingle-float): Ditto.
2981         (-mdouble-float): Ditto.
2982         (-msimple-fpu): Ditto.
2983         (-mxilinx-fpu): Ditto.
2984         * config/rs6000/aix64.opt (-mpe): Ditto.
2985
2986         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2987         (rs6000_cpu): Move variable to be a target variable.  Rename
2988         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
2989         -mdebug=<xxx> variables into a single int.
2990         (rs6000_always_hint): Ditto.
2991         (rs6000_sched_groups): Ditto.
2992         (rs6000_align_branch_targets): Ditto.
2993         (rs6000_sched_costly_dep): Ditto.
2994         (rs6000_sched_insert_nops): Ditto.
2995         (rs6000_long_double_type_size): Ditto.
2996         (rs6000_ieeequad): Ditto.
2997         (rs6000_altivec_abi): Ditto.
2998         (rs6000_spe): Ditto.
2999         (rs6000_spe_abi): Ditto.
3000         (rs6000_float_gprs): Ditto.
3001         (rs6000_darwin64_abi): Ditto.
3002         (can_override_loop_align): Ditto.
3003         (rs6000_sdata): Ditto.
3004         (rs6000_tls_size): Ditto.
3005         (rs6000_current_abi): Ditto.
3006         (rs6000_traceback): Ditto.
3007         (rs6000_alignment_flags): Ditto.
3008         (rs6000_current_cmodel): Ditto.
3009         (rs6000_recip_control): Ditto.
3010         (rs6000_cpu_index): Ditto.
3011         (rs6000_tune_index): Ditto.
3012         (rs6000_debug): Ditto.
3013         (rs6000_target_flags_explict): Ditto.
3014
3015         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
3016         declaration.
3017
3018         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
3019         cmodel.  Change all uses.
3020
3021         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
3022         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
3023         Rename cmodel to rs6000_current_cmodel.
3024         (rs6000_sched_groups): Ditto.
3025         (rs6000_align_branch_targets): Ditto.
3026         (rs6000_sched_costly_dep): Ditto.
3027         (rs6000_sched_insert_nops): Ditto.
3028         (rs6000_long_double_type_size): Ditto.
3029         (rs6000_ieeequad): Ditto.
3030         (rs6000_altivec_abi): Ditto.
3031         (rs6000_spe): Ditto.
3032         (rs6000_spe_abi): Ditto.
3033         (rs6000_float_gprs): Ditto.
3034         (rs6000_darwin64_abi): Ditto.
3035         (can_override_loop_align): Ditto.
3036         (rs6000_sdata): Ditto.
3037         (rs6000_tls_size): Ditto.
3038         (rs6000_current_abi): Ditto.
3039         (rs6000_traceback): Ditto.
3040         (rs6000_alignment_flags): Ditto.
3041         (rs6000_current_cmodel): Ditto.
3042         (rs6000_recip_control): Ditto.
3043         (rs6000_cpu_index): Ditto.
3044         (rs6000_tune_index): Ditto.
3045         (rs6000_debug): Ditto.
3046         (rs6000_target_flags_explict): Ditto.
3047         (rs6000_sched_insert_nops_str): Make static.
3048         (rs6000_sched_costly_dep_str): Ditto.
3049         (rs6000_recip_name): Ditto.
3050         (rs6000_abi_name): Ditto.
3051         (rs6000_sdata_name): Ditto.
3052         (enum rs6000_traceback_name): Move to rs6000-opts.h.
3053         (rs6000_parse_tls_size_option): Delete.
3054         (rs6000_valid_attribute_p): New function for target attributes and
3055         pragmas.
3056         (rs6000_function_specific_save): Ditto.
3057         (rs6000_function_specific_restore): Ditto.
3058         (rs6000_function_specific_print): Ditto.
3059         (rs6000_can_inline_p): Ditto.
3060         (rs6000_set_current_function): Ditto.
3061         (rs6000_inner_target_options): Ditto.
3062         (rs6000_debug_target_options): Ditto.
3063         (rs6000_pragma_target_parse): Ditto.
3064         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
3065         attributes and pragmas.
3066         (TARGET_OPTION_SAVE): Ditto.
3067         (TARGET_OPTION_RESTORE): Ditto.
3068         (TARGET_OPTION_PRINT): Ditto.
3069         (TARGET_CAN_INLINE_P): Ditto.
3070         (TARGET_SET_CURRENT_FUNCTION): Ditto.
3071         (POWER_MASKS): Move to file level scope from the
3072         rs6000_option_override_internal function.
3073         (POWERPC_MASKS): Ditto.
3074         (ISA_*_MASKS): Ditto.
3075         (struct rs6000_ptt): Ditto.
3076         (processor_target_table): Ditto.
3077         (rs6000_cpu_name_lookup): Map cpu name to an index in
3078         processor_target_table.
3079         (rs6000_debug_reg_global): Print more information on processor
3080         options for -mdebug=reg.
3081         (rs6000_init_hard_regno_mode_ok): Add support for target
3082         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
3083         Allow -mdebug=val1,val2.  Rename cmodel variable.
3084         (rs6000_option_override_internal): Ditto.
3085         (rs6000_option_override): Ditto.
3086         (rs6000_handle_option): Ditto.
3087         (rs6000_conditional_register_usage): Add debug trace message.
3088         (struct rs6000_opt_mask): New for target attribute/pragma support.
3089         (rs6000_opt_masks): Ditto.
3090         (struct rs6000_opt_var): Ditto.
3091         (rs6000_opt_vars): Ditto.
3092         (rs6000_previous_function): Ditto.
3093
3094         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
3095         wasn't already included.
3096         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
3097         (enum processor_type): Ditto.
3098         (rs6000_cpu): Ditto.
3099         (enum fpu_type_t): Ditto.
3100         (fpu_type): Ditto.
3101         (enum rs6000_dependence_cost): Ditto.
3102         (enum rs6000_nop_insertion): Ditto.
3103         (enum group_termination): Ditto.
3104         (rs6000_long_double_type_size): Ditto.
3105         (rs6000_ieeequad): Ditto.
3106         (rs6000_altivec_abi): Ditto.
3107         (rs6000_spe_abi): Ditto.
3108         (rs6000_spe): Ditto.
3109         (rs6000_float_gprs): Ditto.
3110         (rs6000_alignment_flags): Ditto.
3111         (rs6000_sched_insert_nops): Ditto.
3112         (enum rs6000_vector): Ditto.
3113         (enum rs6000_abi): Ditto.
3114         (rs6000_current_opt): Ditto.
3115         (rs6000_debug_*): Delete.
3116         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
3117         (TARGET_DEBUG*): Ditto.
3118
3119         * config/rs6000/rs6000-opts.h: New header file to define the enums
3120         that are used in target variables that are now defined in rs6000.opt.
3121
3122         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
3123         rs6000-opts.h.
3124         (rs6000_sdata): Ditto.
3125         (rs6000_abi_name): Delete.
3126         (rs6000_sdata_name): Ditto.
3127         (rs6000_tls_size_string): Ditto.
3128
3129 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3130
3131         * common.opt (debug_struct_ordinary, debug_struct_generic): New
3132         Variable entries.
3133         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
3134         should_emit_struct_debug): Move from opts.c.
3135         * flag-types.h (enum debug_struct_file): Move from opts.c.
3136         * flags.h (should_emit_struct_debug): Remove.
3137         (base_of_path): Declare.
3138         (set_struct_debug_option): Add gcc_options parameter.
3139         * optc-gen.awk, opth-gen.awk: Handle array variables.
3140         * opts.c (enum debug_struct_file, debug_struct_ordinary,
3141         debug_struct_generic): Remove.
3142         (set_struct_debug_option): Add gcc_options parameter.
3143         (base_of_path): Remove static.
3144         (main_input_basename, main_input_baselength, matches_main_base,
3145         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
3146         Remove.
3147         * toplev.c (main_input_basename, main_input_baselength): Define
3148         here.
3149         * toplev.h (main_input_basename, main_input_baselength): Declare
3150         here.
3151
3152 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3153
3154         * common.opt (flag_instrument_functions_exclude_functions,
3155         flag_instrument_functions_exclude_files): New Variable definitions.
3156         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3157         * gimplify.c (char_p): Declare type and vectors.
3158         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
3159         * opts.c (flag_instrument_functions_exclude_functions,
3160         flag_instrument_functions_exclude_files): Remove.
3161         (add_comma_separated_to_vector): Take void **.
3162         (flag_instrument_functions_exclude_p): Move to gimplify.c.
3163         (common_handle_option): Use options structure for
3164         -finstrument-functions-exclude- options.
3165
3166 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3167
3168         * doc/options.texi (Var): Document effects of Defer.
3169         (Defer): Document.
3170         * opt-functions.awk (var_type, var_set): Handle deferred options.
3171         * opts-common.c (set_option): Handle CLVC_DEFER.
3172         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3173         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3174         fstack-limit-symbol=): Mark as deferred.
3175         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3176         plugin.h.
3177         (print_filtered_help): Don't report state of CLVC_DEFER options.
3178         (common_handle_option): Move code for OPT_fcall_used_,
3179         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3180         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3181         OPT_fstack_limit_symbol_ to opts-global.c.
3182         (option_enabled, get_option_state): Handle CLVC_DEFER.
3183         * opts.h: Include vec.h.
3184         (enum cl_var_type): Add CLVC_DEFER.
3185         (cl_deferred_option): Define type and vectors.
3186         (handle_common_deferred_options): Declare.
3187         * opts-global.c: New.
3188         * toplev.c (toplev_main): Call handle_common_deferred_options
3189         * Makefile.in (OPTS_H): Include $(VEC_H).
3190         (OBJS-common): Include opts-global.o.
3191         (opts.o): Update dependencies.
3192         (opts-global.o): Add dependencies.
3193
3194 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3195
3196         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3197         to objc_declare_protocols.
3198
3199 2010-11-19  Richard Guenther  <rguenther@suse.de>
3200
3201         PR lto/45789
3202         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3203         IDENTIFIERs do not stream TREE_TYPE.
3204         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3205
3206 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
3207
3208         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3209
3210 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
3211
3212         PR target/45870
3213         * dwarf2out.c (const_ok_for_output_1): Don't complain about
3214         non-delegitimized TLS UNSPECs.
3215
3216 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
3217             Ian Lance Taylor  <iant@google.com>
3218
3219         * config/darwin-c.c (darwin_additional_format_types): Export.
3220
3221 2010-11-18  Paul Koning  <ni1d@arrl.net>
3222
3223         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3224         pointer.
3225
3226 2010-11-18  Paul Koning  <ni1d@arrl.net>
3227
3228         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3229         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3230         * config/pdp11/pdp11.opt (-mabshi): Delete.
3231
3232 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
3233
3234         * resource.h (struct resources): Fix typo in the comment.
3235
3236 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
3237
3238         PR target/46546
3239         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3240
3241 2010-11-18  Richard Henderson  <rth@redhat.com>
3242
3243         PR middle-end/46515
3244         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3245         maybe_copy_epilogue_insn; handle prologue insns as well.
3246         * rtl.h, cfglayout.c: Update for rename.
3247         * recog.c (peep2_attempt): Copy prologue/epilogue data for
3248         RTX_FRAME_RELATED_P insns.
3249
3250 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
3251
3252         PR middle-end/46534
3253         * builtins.c (fold_builtin_printf): Don't copy and modify string
3254         before build_string_literal, instead modify what
3255         build_string_literal returned.
3256
3257 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3258
3259         PR c/33193
3260         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3261         REALPART_EXPR and IMAGPART_EXPR.
3262
3263 2010-11-18  Richard Guenther  <rguenther@suse.de>
3264
3265         PR tree-optimization/46172
3266         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3267         function.
3268         (slpeel_tree_peel_loop_to_edge): Call it.
3269
3270 2010-11-18  Jeff Law  <law@redhat.com>
3271
3272         PR middle-end-optimization/46297
3273         * postreload.c (reload_combine_note_store): Deal with embedded
3274         side effects in MEM expressions.
3275
3276 2010-11-18  Richard Guenther  <rguenther@suse.de>
3277
3278         PR lto/45089
3279         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3280         when checking is not enabled.
3281
3282 2010-11-18  Richard Guenther  <rguenther@suse.de>
3283
3284         PR lto/46525
3285         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3286         type leaders.
3287         (gimple_register_canonical_type): Also cache the canoncial type
3288         for non type leaders.
3289
3290 2010-11-18  Richard Guenther  <rguenther@suse.de>
3291
3292         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3293
3294 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
3295
3296         PR middle-end/46518
3297         * sel-sched-ir.c (init_expr): Use the correct type for
3298         target_available.
3299         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3300
3301 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
3302
3303         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3304         as well as -mrelocatable at the same time.
3305
3306 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
3307
3308         PR target/46422
3309         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3310         Call the clz builtin.
3311
3312 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
3313             Steve Ellcey  <sje@cup.hp.com>
3314
3315         PR middle-end/31490
3316         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3317         if section attribute used.
3318
3319 2010-11-17  Jan Hubicka  <jh@suse.cz>
3320
3321         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3322         expand errno setting variant when optimizing for size.
3323
3324 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
3325
3326         * postreload.c (reload_combine): Call control_flow_insn_p only once.
3327         Reverse backward loop.  Fix formatting issues.
3328
3329 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
3330
3331         * c-parser.c (c_token_is_qualifier,
3332         c_parser_next_token_is_qualifier): New.
3333         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3334         Improve error message on specs->tagdef_seen_p.
3335         (c_parser_struct_or_union_specifier): Improve error recovery.
3336         (c_parser_declspecs): Move exit condition on C_ID_ID early.
3337         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3338         using c_parser_next_token_is_qualifier; extend it to cover
3339         a ctsk_tagdef typespec and !typespec_ok in general.
3340
3341 2010-11-17  Richard Guenther  <rguenther@suse.de>
3342
3343         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3344         (gimple_mod_pow2_value_transform): Likewise.
3345         (gimple_mod_subtract_transform): Likewise.
3346
3347 2010-11-17  Richard Guenther  <rguenther@suse.de>
3348
3349         PR lto/46504
3350         * gimple.c (gimple_register_canonical_type): Make sure to only
3351         make type leaders canonical types.
3352
3353 2010-11-17  Michael Matz  <matz@suse.de>
3354
3355         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3356         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3357         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3358         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3359         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3360         (pass_build_ssa): ... but here.
3361         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3362         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3363         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3364         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3365         * predict.c (rebuild_frequencies): Ditto.
3366         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3367         * emit-rtl.c (verify_rtl_sharing): Ditto.
3368         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3369         * tree-ssa-live.c (remove_unused_locals): Ditto.
3370         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3371         * tree-ssa.c (pass_early_warn_uninitialized,
3372         execute_update_addresses_taken, pass_update_address_taken): Ditto.
3373         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3374         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3375         * passes.c (pass_postreload, execute_todo): Ditto.
3376         * tree-ssanames.c (pass_release_ssa_names): Ditto.
3377
3378 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3379
3380         * doc/invoke.texi (-dy): Remove.
3381         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3382         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3383         * langhooks.c (lhd_do_nothing_i): Remove.
3384         * langhooks.h (lang_hooks.parse_file): Take no arguments.
3385         * toplev.c (set_yydebug): Remove.
3386         (compile_file): Update call to lang_hooks.parse_file.
3387         (decode_d_option): Don't handle -dy.
3388
3389 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
3390
3391         PR rtl-optimization/46440
3392         * combine.c (update_cfg_for_uncondjump): When changing
3393         an indirect jump into unconditional jump, remove BARRIERs
3394         from bb's footer.
3395
3396 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3397
3398         * opts.c (target_handle_option): Do not assert that loc ==
3399         UNKNOWN_LOCATION.
3400
3401 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
3402             Richard Guenther  <rguenther@suse.de>
3403
3404         PR middle-end/45838
3405         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3406         call_may_clobber_ref_p_1): Return true for __sync_* and some
3407         OpenMP builtins that act as threading barriers.
3408
3409 2010-11-17  Richard Guenther  <rguenther@suse.de>
3410
3411         PR tree-optimization/46498
3412         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3413
3414 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3415
3416         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3417         (xtensa_function_arg_boundary): ...this.
3418         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3419         thinko in declaration.
3420         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3421         number of parameters to picochip_function_arg_boundary.
3422         (picochip_arg_advance): Likewise.
3423
3424 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3425
3426         PR target/46512
3427         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3428         under check for type.
3429
3430 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3431
3432         * ifcvt.c (dead_or_predicable): Fix typo.
3433
3434 2010-11-16  Richard Henderson  <rth@redhat.com>
3435
3436         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3437         * config/s390/s390.opt (mfused-madd): Remove.
3438         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3439         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3440         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3441         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3442
3443 2010-11-16  Richard Henderson  <rth@redhat.com>
3444
3445         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3446         * config/rs6000/rs6000.opt (mfused-madd): Remove.
3447         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3448         (*altivec_vmaddfp_1): Remove.
3449         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3450         (altivec_mulv4sf3): Expand to FMA directly.
3451         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3452         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3453         * config/rs6000/paired.md (paired_madds0): Use FMA.
3454         (paired_madds1): Likewise.
3455         (*paired_madd): Rename from paired_madd; use FMA.
3456         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3457         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3458         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3459         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3460         (rs6000_emit_madd): Use fma_optab.
3461         (rs6000_emit_msub): Use fms_optab.
3462         (rs6000_emit_nmsub): Expand the FMA pattern directly.
3463         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3464         (*fmasf4_fpr): Rename from fmasf4_fpr.
3465         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3466         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3467         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3468         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3469         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3470         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3471         (*fmadf4_fpr): Rename from fmadf4_fpr.
3472         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3473         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3474         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3475         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3476         (fmasf4, fmadf4): Macroize into...
3477         (fma<FMA_F>4): ... here.
3478         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3479         (nfma<FMA_F>4, nfms<FMA_F>4): New.
3480         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3481         TARGET_FUSED_MADD.
3482         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3483         (*vsx_fmadd<mode>4_1): Remove.
3484         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3485         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3486         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3487         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3488         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3489         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3490         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3491
3492 2010-11-16  Richard Henderson  <rth@redhat.com>
3493
3494         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3495         (fmasf4, fnmadf4, fnmasf4): Likewise.
3496         (unnamed plus+mult insns and splitters): Delete.
3497
3498 2010-11-16  Richard Henderson  <rth@redhat.com>
3499
3500         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3501         (fnma<VSF>4): Rename from fnms_<VSF>.
3502         (fms<VSF>4): Rename from fms_<VSF>.
3503         (fma<VDF>4): Rename from fma_<VDF>.
3504         (fms<VDF>4): Rename from fms_<VDF>.
3505         (nfma<VDF>4): Rename from fnma_<VDF>.
3506         (nfms<VDF>4): Rename from fnms_<VDF>.
3507         (fnma<VDF>4, fnms<VDF>4): New expanders.
3508         (floatunsdisf2): Update for the renames.
3509         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3510         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3511
3512 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3513
3514         PR rtl-optimization/46490
3515         * combine.c (expand_compound_operation): Fix thinko.
3516
3517 2010-11-16  Richard Henderson  <rth@redhat.com>
3518
3519         PR target/46470
3520         * recog.c (peep2_attempt): Convert frame-related info when possible.
3521         (peep2_fill_buffer): Allow frame-related insns into the buffer.
3522         (peephole2_optimize): Allow peep2_attempt to fail.
3523
3524 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3525
3526         PR rtl-optimization/46315
3527         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3528         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3529         extracted from...
3530         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
3531         (remove_reg_equal_equiv_notes_for_defs): ...this.
3532         (delete_unmarked_insns): Adjust to above renaming.
3533         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3534         referring to registers set in the insns being moved, if any.
3535
3536         * df-core.c (df_ref_dump): New function extracted from...
3537         (df_refs_chain_dump): ...here.  Call it.
3538         (df_regs_chain_dump): Likewise.
3539         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3540         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
3541
3542 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
3543
3544         PR rtl-optimization/46395
3545         * postreload.c (reload_combine): Invalidate register use
3546         information on all control flow insns.
3547
3548         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3549         LABEL_REF in UNSPEC operand.
3550
3551 2010-11-16  Jan Hubicka  <jh@suse.cz>
3552
3553         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3554         when !flag_toplevel_reorder do not remove unless variable is
3555         COMDAT or ARTIFICIAL.
3556         * ipa.c (varpool_can_remove_if_no_refs): ... here.
3557         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3558         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3559         * varpool.c (decide_is_variable_needed): Do not handle visibility
3560         issues.
3561         (varpool_finalize_decl): Likewise.
3562         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3563         update outdated comment on DECL_RTL_SET_P check.
3564
3565 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3566
3567         * config/sol2.h (NM_FLAGS): Define.
3568         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3569         * doc/tm.texi: Update.
3570
3571 2010-11-16  Nick Clifton  <nickc@redhat.com>
3572
3573         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3574         (msubsf4): Rename to fmssf4, and use fma.
3575         (nmaddsf4): Rename to fnmasf4 and use fma.
3576         (nmsubsf4): Rename to fnmssf4 and use fma.
3577
3578 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
3579
3580         PR target/44762
3581         * config/score/score3.c (score3_return_in_memory): Constify arguments.
3582         (score3_in_small_data_p, score3_function_value): Likewise.
3583         (score3_trampoline_init): Use LCT_NORMAL.
3584         (score3_print_operand): Initialize code as UNKNOWN.
3585         * config/score/predicates.md (score_load_multiple_operation):
3586         Remove unused variable.
3587         (score_store_multiple_operation): Likewise.
3588         * config/score/score7.c (score7_return_in_memory): Constify arguments.
3589         (score7_in_small_data_p, score7_function_value): Likewise.
3590         (score7_trampoline_init): Use LCT_NORMAL.
3591         (score7_print_operand): Initialize code as UNKNOWN.
3592         * config/score/score3.h (score3_return_in_memory): Update prototype.
3593         (score3_in_small_data_p, score3_function_value): Likewise.
3594         * config/score/score-protos.h (score_function_value): Likewise.
3595         * config/score/score7.h (score7_return_in_memory): Update prototype.
3596         (score7_in_small_data_p, score7_function_value): Likewise.
3597         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3598         (score_return_in_memory, score_pass_by_reference): Constify arguments.
3599         (score_output_mi_thunk, score_function_prologue): Don't return a value.
3600         (score_function_epilogue, score_in_small_data_p): Likewise.
3601         (score_option_override, score_asm_trampoline_template): Likewise.
3602         (score_trampoline_init, score_print_operand): Likewise.
3603         (score_print_operand_address, score_prologue): Likewise.
3604         (score_epilogue, score_call, score_call_value): Likewise.
3605         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3606         (score_function_arg_advance): Likewise. Make static.
3607         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3608         (score_function_arg, score_legitimate_address_p): Make static.
3609         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3610         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3611         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3612         Allow (W) == HOST_BITS_PER_WIDE_INT.
3613
3614         PR java/46386
3615         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3616         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3617
3618 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3619
3620         * config/arc/arc.c: Delete pasto.
3621         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3622
3623 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
3624
3625         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3626         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3627         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3628         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3629         (mn10300_preferred_reload_class,
3630         mn10300_preferred_output_reload_class): New functions.
3631
3632 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3633
3634         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3635         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3636         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3637         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3638
3639 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3640
3641         * builtins.c (std_gimplify_va_arg_expr): Use
3642         targetm.calls.function_arg_boundary.
3643         * function.c (assign_parms, locate_and_pad_parm): Likewise.
3644         * calls.c (struct arg_data): Update comment.
3645         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3646         * target.def (function_arg_boundary): Define.
3647         * targhooks.h (default_function_arg_boundary): Declare.
3648         * targhooks.c (default_function_arg_boundary): Define.
3649         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3650         TARGET_FUNCTION_ARG_BOUNDARY.
3651         (FUNCTION_ARG_BOUNDARY): Delete.
3652         (TARGET_FUNCTION_ARG_BOUNDARY): New.
3653         * doc/tm.texi: Regenerate.
3654         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3655         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3656         * config/arc/arc.c (arc_function_arg_boundary): Define.
3657         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3658         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3659         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3660         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3661         (arm_function_arg_boundary): Define.
3662         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3663         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3664         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3665         * config/frv/frv.c (frv_function_arg_boundary): Make static.
3666         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3667         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3668         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3669         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3670         (ix86_compat_function_arg_boundary): Take and return unsigned int.
3671         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3672         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3673         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3674         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3675         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3676         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3677         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3678         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3679         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3680         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3681         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3682         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3683         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3684         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3685         * config/mips/mips.c (mips_function_arg_boundary): Make static.
3686         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3687         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3688         * config/pa/pa.c (pa_function_arg_boundary): Define.
3689         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3690         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3691         * config/picochip/picochip-protos.h
3692         (picochip_get_function_arg_boundary): Delete.
3693         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3694         Rename to...
3695         (picochip_function_arg_boundary): ...this.  Make static.
3696         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3697         (picochip_arg_advance): Adjust.
3698         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3699         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3700         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3701         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3702         (rs6000_function_arg_boundary): ...this.  Make static.
3703         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3704         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3705         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3706         * config/rx/rx.c (rx_function_arg_boundary): Define.
3707         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3708         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3709         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3710         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3711         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3712         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3713         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3714         (xtensa_function_arg_boundary): ...this.  Make static.
3715         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3716
3717 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3718
3719         * expr.c (alignment_for_piecewise_move): New function.
3720         (widest_int_mode_for_size): New function.
3721         (move_by_pieces, move_by_pieces_ninsns): Call them.
3722         (can_store_by_pieces, store_by_pieces_1): Likewise.
3723
3724 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3725
3726         * gcc.c (char_p): Define.  Define a VEC of it.
3727         (n_linker_options, n_assembler_options, n_preprocessor_options):
3728         Delete.
3729         (linker_options, assembler_options, preprocessor_options): Convert
3730         to a VEC.
3731         (add_preprocessor_option): Adjust.
3732         (add_assembler_option): Adjust.
3733         (add_linker_option): Adjust.
3734         (do_specs_vec): New function.
3735         (do_spec_1): Call it.  Adjust for new types.
3736
3737 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3738
3739         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3740         (sreal.o, statistics.o, stringpool.o): Likewise.
3741
3742 2010-11-16  Richard Guenther  <rguenther@suse.de>
3743
3744         PR tree-optimization/44545
3745         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3746         statements are not reassociatable.
3747         (reassociate_bb): Likewise.
3748
3749 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3750
3751         * bitmap.c: Delete unnecessary includes.
3752         * ebitmap.c: Likewise.
3753         * et-forest.c: Likewise.
3754         * sreal.c: Likewise.
3755         * statistics.c: Likewise.
3756         * stringpool.c: Likewise.
3757         * double-int.c: Add comment for inclusion of tm.h.
3758
3759 2010-11-16  Richard Guenther  <rguenther@suse.de>
3760
3761         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3762         (visit_nary_op): ... this.
3763         (visit_binary_op): Remove.
3764         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3765
3766 2010-11-16  Richard Guenther  <rguenther@suse.de>
3767
3768         PR middle-end/45172
3769         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3770
3771 2010-11-16  Nick Clifton  <nickc@redhat.com>
3772
3773         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3774         record is packed.
3775
3776 2010-11-15  Richard Henderson  <rth@redhat.com>
3777
3778         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3779         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3780         DOT_PROD_EXPR.
3781
3782 2010-11-15  Richard Henderson  <rth@redhat.com>
3783
3784         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3785         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
3786         fma rtx_code.
3787
3788 2010-11-15  Richard Henderson  <rth@redhat.com>
3789
3790         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3791         and *mulsubsf4 respectively.  Use fma rtx_code.
3792
3793 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
3794
3795         * gcc.c: Include "vec.h".
3796         (argbuf): Make into a VEC.
3797         (argbuf_length, argbuf_index): Remove.
3798         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3799         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3800         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3801         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3802         (gcc.o): Depend on $(VEC_H).
3803
3804 2010-11-15  Richard Henderson  <rth@redhat.com>
3805
3806         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3807         via FMA if unsafe math.
3808         (insert_var_expansion_initialization): Handle FMA.
3809         (combine_var_copies_in_loop_exit): Likewise.
3810
3811 2010-11-15  Richard Henderson  <rth@redhat.com>
3812
3813         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3814         * config/ia64/ia64.opt: Remove mfused-madd.
3815         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3816         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3817         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3818         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3819         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3820         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3821         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3822         (fmav2sf4): Rename from fpma; use FMA code.
3823         (fmsv2sf4): Rename from fpms; use FMA code.
3824         (fnmav2sf4): Rename from *fpnma; use FMA code.
3825         * config/ia64/ia64.md (MODE_SDF): New iterator.
3826         (suffix): New mode attribute.
3827         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3828         (fmssf4): Rename from *fmssf4.
3829         (fnmasf4): Rename from *nfmasf4.
3830         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3831         (*nmadddf4, *nmadddf4_truncsf): Remove.
3832         (fmsdf4): Rename from *fmsdf4.
3833         (fnmadf4): Rename from *nfmadf4.
3834         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3835         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3836         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3837         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3838         (fmsxf4): Rename from *fmsxf4.
3839         (fnmaxf4): Rename from *nfmaxf4.
3840         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3841         (*fnmaxf_trunc_<MODE_SDF>): New.
3842
3843 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3844
3845         PR tree-optimization/46461
3846         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3847         a gimple val.
3848
3849 2010-11-15  Ian Lance Taylor  <iant@google.com>
3850
3851         * godump.c: New file.
3852         * common.opt (fdump-go-spec=): New option.
3853         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3854         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3855         (TYPE_SYMTAB_IS_DIE): Define.
3856         (struct tree_type): Change GTY for symtab field to use
3857         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3858         to pick the union field.
3859         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3860         (dump_go_spec_init): Declare.
3861         * toplev.c (process_options): Handle flag_dump_go_spec.
3862         * debug.c: Include "tree.h".
3863         (do_nothing_debug_hooks): Set tree_type_symtab_field.
3864         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3865         * dbxout.c (dbx_debug_hooks): Likewise.
3866         (xcoff_debug_hooks): Likewise.
3867         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3868         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
3869         SDB_DEBUGGING_INFO is not defined.
3870         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3871         (Overall Options): Document -fdump-go-spec.
3872         * Makefile.in (OBJS-common): Add godump.o.
3873         (debug.o): Add dependency on $(TREE_H).
3874         (godump.o): New target.
3875         (GTFILES): Add $(srcdir)/godump.c.
3876
3877 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3878
3879         PR debug/46095
3880         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3881         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3882         style < 0, add REG_FRAME_RELATED_EXPR.
3883
3884         PR debug/46387
3885         * rtl.h (vt_equate_reg_base_value): New prototype.
3886         * alias.c (vt_equate_reg_base_value): New function.
3887         * var-tracking.c (vt_init_cfa_base): Use it.
3888
3889 2010-11-15  Jan Hubicka  <jh@suse.cz>
3890             Diego Novillo  <dnovillo@google.com>
3891
3892         PR lto/41528
3893         * doc/lto.texi: Add.
3894         * doc/gccint.texi: Add reference to lto.texi.
3895         * doc/invoke.texi: Update user documentation for LTO.
3896         Move internal flags to lto.texi
3897
3898 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3899
3900         * c-typeck.c (build_unary_op): Use
3901         objc_build_incr_expr_for_property_ref to build the pre/post
3902         increment/decrement of an Objective-C property ref, and skip the
3903         lvalue_or_else check in that case.
3904
3905 2010-11-15  Martin Jambor  <mjambor@suse.cz>
3906
3907         PR tree-optimization/46349
3908         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3909         (contains_vce_or_bfcref_p): Likewise.
3910         (sra_modify_assign): Use them.
3911
3912 2010-11-15  Richard Guenther  <rguenther@suse.de>
3913
3914         PR tree-optimization/46467
3915         * tree-ssa-structalias.c (do_structure_copy): Properly treat
3916         variables without subvars.
3917
3918 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
3919
3920         * config/picochip/picochip.c (file header): Picochip name change.
3921         * config/picochip/picochip.md (file header): Likewise.
3922         * config/picochip/predicates.md (file header): Likewise.
3923         * config/picochip/dfa_space.md (file header): Likewise.
3924         * config/picochip/dfa_speed.md (file header): Likewise.
3925         * config/picochip/picochip.h(file header): Likewise.
3926         * config/picochip/constraints.md (file header): Likewise.
3927         * config/picochip/picochip-protos.h (file header): Likewise.
3928         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3929         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3930         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3931         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3932         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3933         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3934         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3935         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3936         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3937         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3938         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3939         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3940         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3941         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3942
3943 2010-11-15  Richard Guenther  <rguenther@suse.de>
3944
3945         PR bootstrap/46474
3946         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3947
3948 2010-11-15  Nick Clifton  <nickc@redhat.com>
3949
3950         * config/stormy16/stormy16.c (direct_return): Do not generate a
3951         direct return for interrupt handlers.
3952
3953 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
3954
3955         * Makefile.in (tm.texi): Replace with rule for:
3956         ($(srcdir)/doc/tm.texi).
3957         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3958         $(srcdir)/doc/tm.texi .
3959         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3960         tm.texi .
3961
3962         PR target/46427
3963         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3964
3965         PR bootstrap/45444
3966         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3967         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3968
3969         PR target/46432
3970         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3971
3972 2010-11-15  Richard Guenther  <rguenther@suse.de>
3973
3974         PR lto/44150
3975         * lto-opts.c (lto_write_options): Write -fexceptions even if
3976         not set by the user.
3977
3978 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3979
3980         PR c/46462
3981         * c-decl.c (declspecs_add_type): Make variables with error types
3982         integers.
3983         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3984         do not start a declaration before an Objective-C foreach.
3985         (c_parser_declaration_or_fndef): Improve recovery after unknown
3986         type name.
3987         (c_parser_for_statement): Hoist entrance of "foreach context"
3988         before ifs, add corresponding reset where it was missing.  Do
3989         not set objc_could_be_foreach_context for C.
3990
3991 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
3992
3993         PR tree-optimization/45722
3994         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3995         this is a reference to a component.
3996         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3997         (ipa_note_param_call): Adjust comment.
3998
3999 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
4000
4001         * config/mips/mips.c (machine_function): Remove
4002         initialized_mips16_gp_pseudo_p.
4003         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
4004         detect whether a pseudo has already been created.  Unconditionally
4005         create a new one if not.
4006         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
4007         expanding to rtl.  Create a new pseudo otherwise, if allowed.
4008
4009 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
4010
4011         PR target/43440
4012         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
4013         * tm.texi: Regenerated.
4014         * output.h (decode_reg_name_and_count): Declare.
4015         * varasm.c (decode_reg_name_and_count): New function.
4016         (decode_reg_name): Reimplement using decode_reg_name_and_count.
4017         * reginfo.c (fix_register): Use decode_reg_name_and_count and
4018         iterate over all regs used.
4019         * stmt.c (expand_asm_operands): Likewise.
4020         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
4021         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
4022         multiple machine registers.
4023
4024 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4025
4026         * stor-layout.c (place_union_field): Do not put location information
4027         on offset expressions.
4028         (place_field): Likewise.
4029         (finalize_record_size): Likewise on size expressions.
4030         (finalize_type_size): Likewise.
4031         (layout_type): Likewise.
4032
4033 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
4034
4035         PR debug/42889
4036         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
4037         * df-core.c (df_set_bb_dirty_nonrl): Remove.
4038         * df.h (df_set_bb_dirty_nonlr): Likewise.
4039
4040 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
4041
4042         * config/mips/mips.md (call_internal): Pass curr_insn to
4043         mips_split_call.
4044         (call_internal_direct): Ditto.
4045         (call_value_internal): Ditto.
4046         (call_value_internal_direct): Ditto.
4047         (call_value_multiple_internal): Ditto.
4048         * config/mips/mips.c (mips_split_call): Do not copy
4049         CALL_INSN_FUNCTION_USAGE here.
4050
4051 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
4052
4053         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
4054         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
4055         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
4056         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
4057         (TUNE_LOONGSON_3A): Define.
4058         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
4059         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
4060         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
4061         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
4062         (mips_rtx_cost_data): Add Loongson-3A.
4063
4064 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
4065
4066         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
4067         switches.
4068
4069 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
4070
4071         * dwarf2out.c (macinfo_entry): New struct.
4072         (output_comp_unit): Emit the section start label here and flag that we
4073         will emit an info section.
4074         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
4075         emitting directly.
4076         (dwarf2out_end_source_file): Likewise.
4077         (dwarf2out_define): Likewise.
4078         (dwarf2out_undef): Likewise.
4079         (output_macinfo): New.
4080         (dwarf2out_init): Do not emit debug section switches here, allocate a
4081         vec for macinfo, when required.
4082         (dwarf2out_finish): First switch to debug_abbrev_section here.
4083         debug_line_section,  debug_macinfo_section, Likewise.
4084         Check that the pubtypes table has at least one unpruned entry before
4085         trying to emit it.
4086
4087 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
4088
4089         PR c/20385
4090         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
4091         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
4092         token lookahead.
4093         (c_parser_compound_statement_nostart, c_parser_label,
4094         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
4095         (c_parser_declaration_or_fndef): Detect the case now matched by
4096         c_parser_next_tokens_start_declaration, give error and correct it.
4097
4098 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
4099
4100         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
4101         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
4102         with typespec_kind.
4103         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
4104         (shadow_tag_warned, check_compound_literal_type): Adjust
4105         uses of tag_defined_p.
4106         (declspecs_add_type): Set typespec_kind.
4107         * c-parser.c (c_parser_declaration_or_fndef,
4108         c_parser_declspecs, c_parser_struct_declaration,
4109         c_parser_parameter_declaration, c_parser_type_name,
4110         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
4111         of type_seen_p.
4112         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
4113         tag_defined_p, pass ctsk_firstref through.
4114
4115 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
4116
4117         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
4118         (struct format_wanted_type): Replace field "name" with "kind", add
4119         "format_start" and "format_length".
4120         (check_format_info_main): Fill in new fields.  Fill in
4121         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
4122         after the final NUL outside the while loop.  Do not include
4123         width and precision modifiers in the format_start/format_length
4124         of the main format.
4125         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
4126         arguments.  Compute WANTED_TYPE first so that format_type_warning
4127         can be called for missing arguments.  Adjust calls to
4128         format_type_warning.
4129         (format_type_warning): Fetch as much information as possible
4130         from format_wanted_type.  Adjust printing now that every
4131         warning has a "descr", as well as for missing argument warnings
4132         and to include % sign for format specifiers.
4133
4134 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
4135
4136         PR rtl-optimization/46204
4137         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
4138         Update all callers.  Do not recompute topological order.  Adjust
4139         fallthrough edges following a degenerate conditional jump.
4140
4141 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4142
4143         * opts-common.c (control_warning_option): New.
4144         * opts.c (set_default_handlers): New.
4145         (decode_options): Use set_default_handlers and
4146         control_warning_option.
4147         (common_handle_option): Update call to enable_warning_as_error.
4148         (enable_warning_as_error): Take gcc_options parameters.  Use
4149         control_warning_option.
4150         * opts.h (set_default_handlers, control_warning_option): Declare.
4151
4152 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4153
4154         * Makefile.in (OPTS_H): Define.
4155         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
4156         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
4157         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
4158         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
4159         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
4160         * gcc.c (driver_handle_option): Take location_t parameter.
4161         (process_command, do_self_spec): Update calls to
4162         read_cmdline_option.
4163         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
4164         * langhooks.c (lhd_handle_option): Take location_t parameter.
4165         * langhooks.h (handle_option): Take location_t parameter.
4166         * lto-opts.c (lto_reissue_options): Update call to set_option.
4167         * opts-common.c (handle_option): Make static.  Take location_t
4168         parameter and pass it to other functions.
4169         (handle_generated_option): Take location_t parameter and pass it
4170         to other functions.
4171         (read_cmdline_option): Take location_t parameter and pass it to
4172         other functions.  Use warning_at and error_at.
4173         (set_option): Take location_t parameter and pass it to other
4174         functions.
4175         * opts.c (common_handle_option): Take location_t parameter and
4176         pass it to other functions.
4177         (enable_warning_as_error): Make static.  Take location_t parameter
4178         and pass it to other functions.
4179         (lang_handle_option): Take location_t parameter and pass it to
4180         other functions.
4181         (target_handle_option): Take location_t parameter.
4182         (read_cmdline_options, maybe_default_option,
4183         maybe_default_options, default_options_optimization,
4184         decode_options): Take location_t parameter and pass it to other
4185         functions.
4186         * opts.h: Include input.h.
4187         (struct cl_option_handler_func, decode_options, set_option,
4188         handle_generated_option, read_cmdline_option): Take location_t
4189         parameters.
4190         (handle_option, enable_warning_as_error): Remove.
4191         * toplev.c (toplev_main): Update call to decode_options.
4192
4193 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
4194
4195         * graphite-cloog-util.c (oppose_constraint,
4196         cloog_matrix_to_ppl_constraint,
4197         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
4198         CLooG isl uses unsigned integers.  This triggered a warning.
4199
4200 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
4201
4202         PR target/46438
4203         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
4204         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
4205         (xtensa_function_arg_1): De-constify cum.
4206         (xtensa_expand_prologue): Use add_reg_note.
4207
4208         PR target/46435
4209         * config/cris/cris.c (saved_regs_mentioned): Delete.
4210         (cris_reload_address_legitimized): Cast itype to enum reload_type.
4211         Remove unused variable op0p.
4212         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
4213         (cris_emit_movem_store): Use add_reg_note.
4214
4215         PR bootstrap/46456
4216         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
4217
4218 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4219
4220         * function.c (expand_function_end): Set the locator of the prologue on
4221         the stack checking insns.
4222
4223 2010-11-12  Richard Henderson  <rth@redhat.com>
4224
4225         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
4226         * config/xtensa/xtensa.opt (mfused-madd): Remove.
4227         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
4228         MASK_FUSED_MADD.
4229         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
4230         (fnmasf4): Rename from mulsubsf3; use fma.
4231
4232 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
4233             Richard Henderson  <rth@redhat.com>
4234
4235         PR target/46428
4236         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
4237         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
4238         comparison.
4239
4240 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
4241
4242         * opts-common.c (decode_cmdline_option): Initialize separate_args.
4243
4244 2010-11-12  Jan Hubicka  <jh@suse.cz>
4245
4246         * doc/invoke.texi (early-inlining-insns): Update default.
4247         * params.def (early-inlining-insns): Default to 10.
4248
4249 2010-11-12  Olivier Hainque  <hainque@adacore.com>
4250
4251         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
4252
4253 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4254
4255         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
4256         (SUPPORTS_INIT_PRIORITY): Define.
4257
4258 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
4259
4260         PR target/46430
4261         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
4262         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
4263         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
4264         (avr_device_to_devicelib): Likewise.
4265         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
4266         into block.
4267         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
4268         (zero_extendhidi2, zero_extendsidi2): Likewise.
4269         * config/avr/avr.c (avr_num_arg_regs): Constify type.
4270         (avr_return_addr_rtx): De-constify tem.
4271         (avr_rotate_bytes): Move declarations to start of block.
4272         Don't use variable length array.  Put nested if/else into block.
4273
4274         PR rtl-optimization/46433
4275         * var-tracking.c: Include tm_p.h .
4276
4277         PR bootstrap/44756
4278         PR build/44767
4279         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
4280         should be unsigned.
4281         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
4282         * doc/tm.texi: Regenerate.
4283
4284         PR target/46412
4285         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
4286         * config/bfin/bfin.c: Include sel-sched.h .
4287         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
4288         (expand_interrupt_handler_prologue): Remove unused variable insn.
4289         (bfin_load_pic_reg): Likewise.
4290         (bfin_rtx_costs): Make code / outer_code variables of type
4291         enum rtx_code, copied from re-named parameters.
4292         (bfin_local_alignment): Change align argument and return type
4293         to unsigned.
4294         (bfin_adjust_cost): Remove unused variable insn_type.
4295         Declare variables at start of block.
4296         (struct loop_info): Rename to...
4297         (struct loop_info_d).
4298         (workaround_rts_anomaly): Change type of icode to int.
4299         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
4300         with int-typed variable.
4301         (note_np_check_stores): Likewise.
4302         (trapping_loads_p): Remove unused variable pat.
4303         (bfin_expand_binop_builtin): Use expand_normal.
4304         (bfin_expand_unop_builtin): Likewise.
4305         (bfin_expand_builtin): Likewise.  Set tmode before use.
4306
4307         PR middle-end/44769
4308         * final.c (split_double): Don't use BITS_PER_WORD directly in
4309         shift count.
4310
4311         PR target/46431
4312         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
4313         assignment.
4314
4315         PR target/46450
4316         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
4317         Use add_reg_note.
4318         (xstormy16_function_arg): Dereference cum.
4319         (xstormy16_expand_builtin): Use expand_normal.
4320         Change type of omode to enum machine_mode.
4321         (combine_bnp): Rename and to and_insn.
4322
4323         PR target/46437
4324         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
4325         localreg.
4326
4327 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4328
4329         PR debug/46375
4330         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
4331
4332 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
4333
4334         PR lto/46376
4335         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
4336
4337 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
4338
4339         PR c/44782
4340         * common.opt (fmax-errors=): New option.
4341         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
4342         * diagnostic.h (struct diagnostic_context): Add max_errors field.
4343         * diagnostic.c (diagnostic_initialize): Initialize it.
4344         (diagnostic_action_after_output): Exit if more than max_errors
4345         have been output.
4346         * doc/invoke.texi (Warning Options): Add -fmax-errors.
4347         (-fmax-errors): Document.
4348
4349 2010-11-11  Richard Henderson  <rth@redhat.com>
4350
4351         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
4352
4353 2010-11-11  Richard Henderson  <rth@redhat.com>
4354
4355         * config/fused-madd.opt: New file.
4356         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
4357         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
4358         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4359         * config/i386/i386.opt (mfused-madd): Remove.
4360         * config/i386/sse.md (split_fma): Remove.
4361         (split_fms, split_fnma, split_fnms): Remove.
4362
4363 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
4364
4365         PR target/46088
4366         * config/i386/i386.md (*ashl<mode>3_cconly,
4367         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
4368         change nonimmediate_operand predicate to register_operand.
4369
4370 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
4371
4372         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
4373
4374 2010-11-11  Jan Hubicka  <jh@suse.cz>
4375
4376         * opts.c (finish_options): Do not error on -flto-partition alone.
4377
4378         * doc/invoke.texi (-fwhopr): Merge into -flto section.
4379         (-flto-partition): Document none.
4380         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
4381         * lto-wrapper.c: Update comment.
4382         (run_gcc): Update LTO option parsing.
4383         * opts.c (finish_options): add support -flto-partition=none
4384         (common_handle_option): Remove fwhopr.
4385         * common.opt: Turn fwhopr into flto.
4386         * collect2.c (main): Update option handling.
4387         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
4388         * ipa-split.c (execute_split_functions): Remove flag_whopr.
4389         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
4390         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
4391         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
4392
4393 2010-11-11  Jan Hubicka  <jh@suse.cz>
4394
4395         PR tree-optimize/40436
4396         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
4397         (eliminated_by_inlining_prob): ... this one; return 50% probability
4398         for SRA.
4399         (estimate_function_body_sizes): Update use of
4400         eliminated_by_inlining_prob; estimate static function size
4401         for 2 instructions.
4402
4403 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
4404
4405         PR target/44749
4406         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
4407         declare.  Change type of argument four to type int.
4408         (mep_secondary_input_reload_class): Returns enum reg_class.
4409         (mep_secondary_output_reload_class): Likewise.
4410         (mep_function_value): Change types of arguments to cont_tree.
4411         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
4412         argument four to type int.
4413         (mep_secondary_input_reload_class): Returns enum reg_class.
4414         (mep_secondary_output_reload_class): Likewise.
4415         (mep_function_value): Change types of arguments to cont_tree.
4416         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
4417         mep_regno_reg_class to enum reg_class.
4418
4419 2010-11-11  Richard Henderson  <rth@redhat.com>
4420
4421         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
4422         that the target has the exact fma operation that we matched.
4423
4424 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4425
4426         * reginfo.c (fix_register): Avoid inserting English word in
4427         diagnostic sentence.  Use %qs for quoting and %'.
4428
4429 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
4430
4431         * config/i386/driver-i386.c (host_detect_local_cpu): Support
4432         Intel processor family 6, model 0x2c.
4433
4434 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4435
4436         * opts.c (warning_as_error_callback,
4437         register_warning_as_error_callback): Remove.
4438         (enable_warning_as_error): Don't use warning_as_error_callback.
4439         * opts.h (register_warning_as_error_callback): Remove.
4440
4441 2010-11-11  Richard Henderson  <rth@redhat.com>
4442
4443         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
4444         in between the MULT and the PLUS/MINUS.
4445
4446 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
4447
4448         PR middle-end/46388
4449         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
4450         BLKmode mode for it.
4451         (expand_expr_real_1): Similarly for op0.
4452
4453 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4454
4455         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
4456         Document optional target selector.
4457
4458 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
4459
4460         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
4461         assembling high and low parts of size if not using 32-bit HWINT; else
4462         use DECL_SIZE_UNITS, not DECL_SIZE.
4463
4464 2010-11-11  Martin Jambor  <mjambor@suse.cz>
4465
4466         PR tree-optimization/46383
4467         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
4468         offsets.
4469         (compute_complex_ancestor_jump_func): Likewise.
4470         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
4471
4472 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
4473
4474         PR debug/46150
4475         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
4476         true if expr1->hash != expr2->hash.
4477
4478 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4479
4480         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
4481         diagnostics with lowercase letters.
4482         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
4483         lowercase letters.
4484         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
4485         diagnostic.
4486         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4487         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
4488         lowercase letters.
4489         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4490         Remove trailing ' ' from diagnostic.
4491         * config/avr/avr.c (print_operand_address): Start diagnostic with
4492         a lowercase letter and remove trailing '.'.
4493         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
4494         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
4495         with lowercase letters.  Use %' in diagnostics.  Remove trailing
4496         '.' from diagnostics.
4497         (bfin_handle_longcall_attribute): Use %' in diagnostic.
4498         * config/cris/cris.c (cris_split_movdx,
4499         cris_expand_pic_call_address): Start diagnostics with lowercase
4500         letters.
4501         (cris_asm_output_label_ref): Use %' in diagnostic.
4502         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
4503         letter.
4504         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
4505         lowercase letter.
4506         * config/darwin-c.c (version_as_macro): Start diagnostic with a
4507         lowercase letter.
4508         * config/darwin-driver.c (darwin_default_min_version): Use %' in
4509         diagnostic.
4510         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
4511         diagnostic.
4512         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4513         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
4514         diagnostics.
4515         * config/i386/i386.c (ix86_option_override_internal): Write
4516         diagnostic as a single sentence without trailing '.'.  Use %' in
4517         diagnostics.
4518         (ix86_function_sseregparm, classify_argument): Start diagnostics
4519         with lowercase letters.
4520         (ix86_expand_prologue): Use %' in diagnostic.
4521         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
4522         diagnostic.
4523         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
4524         lowercase letter.
4525         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
4526         diagnostic.
4527         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4528         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
4529         '`' in help text.
4530         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
4531         lowercase letter.
4532         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
4533         lowercase letters.
4534         * config/microblaze/microblaze.c (microblaze_handle_option):
4535         Remove trailing '.' from diagnostic.
4536         (print_operand): Start diagnostic with a lowercase letter.
4537         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
4538         lowercase letters.  Avoid '`' in diagnostics.
4539         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
4540         lowercase letters.  Avoid '`' in diagnostics.
4541         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
4542         lowercase letters.  Avoid '`' in diagnostics.
4543         * config/picochip/picochip.c (picochip_option_override,
4544         picochip_emit_save_register, picochip_function_arg,
4545         picochip_output_label, picochip_output_internal_label,
4546         picochip_asm_output_opcode, picochip_output_cbranch,
4547         picochip_output_compare, picochip_output_branch,
4548         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
4549         diagnostics. Start diagnostics with lowercase letters.  Use %' in
4550         diagnostics.
4551         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
4552         "SPE" capitalization.  Start diagnostic with a lowercase letter.
4553         (rs6000_handle_option): Start diagnostics with lowercase letters.
4554         (def_builtin): Remove trailing '.' from diagnostic.
4555         (rs6000_savres_routine_name): Start diagnostic with a lowercase
4556         letter.
4557         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
4558         diagnostic.
4559         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
4560         lowercase letter.
4561         * config/s390/s390.c (s390_option_override) Start diagnostics with
4562         lowercase letters.  Use %' in diagnostic.
4563         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
4564         lowercase letters.
4565         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
4566         diagnostic.
4567         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
4568         diagnostic.
4569         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
4570         diagnostic.
4571         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4572         * config/spu/spu.c (spu_option_override): Start diagnostics with
4573         lowercase letters.  Use %qs for quoting in diagnostics.
4574         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
4575         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
4576         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
4577         from diagnostic.
4578         * convert.c (convert_to_integer, convert_to_vector): Use %' in
4579         diagnostics.
4580         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
4581         letter and use "cannot" spelling.
4582         * expmed.c (extract_fixed_bit_field): Start diagnostic with
4583         lowercase letter and format as a single sentence without '.'.
4584         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
4585         Use %' in diagnostics.
4586         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
4587         Use %' in diagnostics.
4588         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
4589         Use %' in diagnostics.
4590         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
4591         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
4592         with lowercase letters and remove tailing '.' and '\n'.
4593         * lto-cgraph.c (input_profile_summary): Start diagnostic with
4594         lowercase letter and remove trailing '.'.
4595         (input_cgraph): Start diagnostics with lowercase letters and
4596         remove trailing '\n'.
4597         * opts.c (finish_options, common_handle_option): Start diagnostics
4598         with lowercase letters and remove trailing '.'.  Fix typo in
4599         diagnostic.
4600         * passes.c (position_pass): Start diagnostic with lowercase letter.
4601         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
4602         register_callback, try_init_one_plugin): Start diagnostics with
4603         lowercase letters.
4604         * reload1.c (spill_failure): Use %' in diagnostic.
4605         (gen_reload): Start diagnostic with a lowercase letter.
4606         * stor-layout.c (place_field): Start diagnostic with a lowercase
4607         letter.
4608         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
4609         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
4610         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
4611         Start diagnostics with lowercase letters, remove trailing '.' and
4612         use %' in diagnostics.
4613         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
4614         (verify_ssa): Don't split diagnostic across two error calls.
4615         Spell out "number" and use %' in diagnostic.
4616         * value-prof.c (visit_hist, check_counter): Start diagnostics with
4617         lowercase letters.
4618
4619 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
4620
4621         PR middle-end/46419
4622         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
4623         (_mm_cvtpu16_ps): Ditto.
4624
4625 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4626
4627         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
4628         warn_larger_than, larger_than_size, warn_frame_larger_than,
4629         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
4630         default_visibility, flag_tls_default): New Variable declarations.
4631         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
4632         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
4633         (v): Declare as Common and document here.
4634         * flags.h (default_visibility, flag_generate_lto,
4635         warn_larger_than, larger_than_size, warn_frame_larger_than,
4636         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
4637         flag_shlib, flag_excess_precision_cmdline): Remove.
4638         (set_Wstrict_aliasing): Update prototype.
4639         * gcc.c (verbose_flag): Remove.
4640         (driver_handle_option): Add diagnostic_context parameter.  Don't
4641         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
4642         incrementing it.
4643         * opts-common.c (handle_option): Pass dc to handler.
4644         * opts.c (warn_larger_than, larger_than_size,
4645         warn_frame_larger_than, frame_larger_than_size,
4646         default_visibility): Remove.
4647         (common_handle_option): Add diagnostic_context parameter.
4648         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
4649         gcc_options parameters.
4650         (lang_handle_option, target_handle_option, read_cmdline_options,
4651         decode_options): Add diagnostic_context parameters.
4652         (finish_options): Access option state through opts pointer where
4653         possible.
4654         (common_handle_option): Access option state through opts pointer
4655         where possible.  Do not set local static variable verbose.  Do not
4656         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
4657         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
4658         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
4659         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
4660         OPT_fwhopr_.  Do not explicitly set .opt file variables for
4661         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
4662         (set_Wstrict_aliasing): Add gcc_options parameter.
4663         * opts.h (struct cl_option_handler_func): Add diagnostic_context
4664         parameter to handler.
4665         (decode_options): Add diagnostic_context parameter.
4666         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
4667         asm_file_name, flag_generate_lto, flag_gen_aux_info,
4668         aux_info_file_name, flag_shlib, flag_tls_default,
4669         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
4670         (toplev_main): Pass global_dc to decode_options.
4671         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
4672         aux_info_file_name, asm_file_name): Remove.
4673         * tree.h (flag_tls_default): Remove.
4674
4675 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
4676
4677         PR target/45986
4678         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
4679         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
4680
4681 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
4682
4683         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
4684         (x86_64-*-*): Likewise.
4685         * config/i386/cpuid.h: Define TBM bit.
4686         * config/i386/driver-i386.c (host_detect_local_cpu): Define
4687         and set has_tbm.
4688         * config/i386/i386-c.c (ix86_target_macros_internal): Check
4689         isa_flag for TBM.
4690         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
4691         (OPTION_MASK_ISA_TBM_UNSET): New.
4692         (ix86_handle_option): Handle -mtbm.
4693         (isa_opts): Add -mtbm.
4694         (enum pta_flags): Add PTA_TBM.
4695         (ix86_option_override_internal): Add TBM support.
4696         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
4697         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
4698         (IX86_BUILTIN_BEXTRI64): Likewise.
4699         (bdesc_args): Add TBM intrinsics.
4700         (ix86_expand_builtin): Add TBM specific case.
4701         * config/i386/i386.h (TARGET_TBM): New for TBM.
4702         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
4703         (tbm_bextri_<mode>): Likewise.
4704         (*tbm_blcfill_<mode>): Likewise.
4705         (*tbm_blci_<mode>): Likewise.
4706         (*tbm_blcic_<mode>): Likewise.
4707         (*tbm_blcmsk_<mode>): Likewise.
4708         (*tbm_blcs_<mode>): Likewise.
4709         (*tbm_blsfill_<mode>): Likewise.
4710         (*tbm_blsic_<mode>): Likewise.
4711         (*tbm_t1mskc_<mode>): Likewise.
4712         (*tbm_tzmsk_<mode>): Likewise.
4713         * config/i386/i386.opt: Add -mtbm.
4714         * config/i386/tbmintrin.h (__bextri_u32): New.
4715         (__blcfill_u32): Likewise.
4716         (__blci_u32): Likewise.
4717         (__blcic_u32): Likewise.
4718         (__blcmsk_u32): Likewise.
4719         (__blcs_u32): Likewise.
4720         (__blsfill_u32): Likewise.
4721         (__blsic_u32): Likewise.
4722         (__t1mskc_u32): Likewise.
4723         (__tzmsk_u32): Likewise.
4724         (__bextri_u64): Likewise.
4725         (__blcfill_u64): Likewise.
4726         (__blci_u64): Likewise.
4727         (__blcic_u64): Likewise.
4728         (__blcmsk_u64): Likewise.
4729         (__blcs_u64): Likewise.
4730         (__blsfill_u64): Likewise.
4731         (__blsic_u64): Likewise.
4732         (__t1mskc_u64): Likewise.
4733         (__tzmsk_u64): Likewise.
4734         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
4735         * doc/invoke.texi: Document -mtbm.
4736         * doc/extend.texi: Document TBM built-in functions.
4737
4738 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
4739
4740         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
4741         (x86_64-*-*): Likewise.
4742         * config/i386/cpuid.h: Define BMI bit.
4743         * config/i386/driver-i386.c (host_detect_local_cpu): Define
4744         and set has_bmi.
4745         * config/i386/i386-c.c (ix86_target_macros_internal): Check
4746         isa_flag for BMI.
4747         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
4748         (OPTION_MASK_ISA_BMI_UNSET): New.
4749         (ix86_handle_option): Handle -mbmi.
4750         (isa_opts): Add -mbmi.
4751         (enum pta_flags): Add PTA_BMI.
4752         (ix86_option_override_internal): Add BMI support.
4753         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
4754         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
4755         (IX86_BUILTIN_BEXTR64): Likewise.
4756         (IX86_BUILTIN_CTZS): Likewise.
4757         (bdesc_args): Add BMI intrinsics.
4758         (ix86_expand_args_builtin): Add BMI specific cases.
4759         * config/i386/i386.h (TARGET_BMI): New for BMI.
4760         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
4761         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
4762         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
4763         (UNSPEC_TZCNT): Likewise.
4764         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
4765         (bmi_andn_<mode>): New for BMI.
4766         (bmi_bextr_<mode>): Likewise.
4767         (bmi_blsi_<mode>): Likewise.
4768         (bmi_blsmsk_<mode>): Likewise.
4769         (bmi_blsr_<mode>): Likewise.
4770         * config/i386/i386.opt: Add -mbmi.
4771         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
4772         * config/i386/bmiintrin.h (__lzcnt_u16): New.
4773         (__tzcnt_u16): Likewise.
4774         (__andn_u32): Likewise.
4775         (__bextr_u32): Likewise.
4776         (__blsi_u32): Likewise.
4777         (__blsmsk_u32): Likewise.
4778         (__blsr_u32): Likewise.
4779         (__lzcnt_u32): Likewise.
4780         (__tzcnt_u32): Likewise.
4781         (__andn_u64): Likewise.
4782         (__bextr_u64): Likewise.
4783         (__blsi_u64): Likewise.
4784         (__blsmsk_u64): Likewise.
4785         (__blsr_u64): Likewise.
4786         (__lzcnt_u64): Likewise.
4787         (__tzcnt_u64): Likewise.
4788         * doc/invoke.texi: Document -mbmi and -mno-bmi.
4789         * doc/extend.texi: Document BMI built-in functions.
4790
4791 2010-11-10  Jan Hubicka  <jh@suse.cz>
4792
4793         PR tree-optimize/46228
4794         * doc/invoke.texi (comdat-sharing-probability): Document.
4795         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
4796         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
4797
4798 2010-11-10  Jan Hubicka  <jh@suse.cz>
4799
4800         PR tree-optimize/46228
4801         * cgraph.c (cgraph_propagate_frequency): Fix typo.
4802
4803 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
4804
4805         PR tree-optimization/46414
4806         * tree-inline.c (estimate_move_cost): Check preferred vector
4807         mode for vector type.
4808
4809 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4810
4811         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
4812
4813 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
4814
4815         PR tree-optimization/45971
4816         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
4817         for phi nodes analyzable by scev.
4818
4819 2010-11-10  Richard Guenther  <rguenther@suse.de>
4820
4821         PR tree-optimization/44964
4822         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
4823
4824 2010-11-10  Martin Jambor  <mjambor@suse.cz>
4825
4826         PR tree-optimization/46351
4827         PR tree-optimization/46377
4828         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
4829         aggregate bit-fields.
4830
4831 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4832
4833         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4834         * doc/tm.texi: Regenerate.
4835         * opts-common.c (tm.h): Don't include.
4836         (target_option_translations): Remove.
4837         (decode_cmdline_options_to_array): Don't handle translating options.
4838         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
4839         * config/darwin-driver.c: Don't condition includes on
4840         CROSS_DIRECTORY_STRUCTURE.
4841         (darwin_default_min_version): Make static.
4842         (darwin_driver_init): New.  Call darwin_default_min_version if not
4843         CROSS_DIRECTORY_STRUCTURE.
4844         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4845         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
4846         (ASM_SPEC): Add %{static}.
4847         (darwin_default_min_version): Don't declare.
4848         (darwin_driver_init): Declare.
4849         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
4850         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
4851         * config/darwin.opt (all_load, allowable_client,
4852         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
4853         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
4854         exported_symbols_list, filelist, findirect-virtual-calls,
4855         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
4856         framework, fterminated-vtables, gfull, gused, image_base, init,
4857         install_name, multi_module, multiply_defined,
4858         multiply_defined_unused, no_dead_strip_inits_and_terms,
4859         seg_addr_table, seg_addr_table_filename, segaddr,
4860         segs_read_only_addr, segs_read_write_addr, single_module,
4861         umbrella, unexported_symbols_list, weak_reference_mismatches,
4862         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
4863         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
4864         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
4865         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
4866         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
4867         (ASM_SPEC): Add %{static}.
4868         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4869         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4870         (DRIVER_SELF_SPECS): Handle options formerly in
4871         TARGET_OPTION_TRANSLATE_TABLE.
4872         * config/mep/mep.opt (mfar): New.
4873         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4874         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
4875         TARGET_OPTION_TRANSLATE_TABLE.
4876         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
4877         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4878         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
4879         ffix-and-continue, findirect-data): New.
4880         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4881         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
4882         (mnofpu): Define mask and use Report here.
4883
4884 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4885
4886         * config/s390/s390.c (s390_emit_prologue): Report the stack
4887         size if -fstack-usage is used.
4888
4889 2010-11-10  Richard Guenther  <rguenther@suse.de>
4890
4891         PR tree-optimization/46398
4892         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
4893
4894 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
4895
4896         PR target/44760
4897         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
4898         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
4899         GP_REG_OR_PSEUDO_STRICT_P.
4900         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
4901         unexpected alternative.
4902         (*movsf_internal): Likewise.
4903         (indirect_jump): Replace call to non-existant function with call to
4904         internal_error.
4905         (tablejump): Likewise.
4906         * config/iq2000/iq2000.c: Include df.h .
4907         (iq2000_function_arg_advance): Use CONST_CAST2.
4908         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
4909         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
4910         a non-zero function address.
4911         (iq2000_initial_elimination_offset): Add gcc_unreachable for
4912         unexpected value of FROM.
4913         (symbolic_expression_p): Delete.
4914         (iq2000_function_value): Constify func.
4915         (expand_one_builtin): Use expand_normal.
4916         (iq2000_print_operand): Don't print VALUE if calculating it failed.
4917
4918         PR rtl-optimization/44764
4919         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
4920
4921         PR target/46407
4922         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
4923         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
4924         with ATTRIBUTE_UNUSED.
4925         (valid_psw_flag): Constify parameter which.
4926         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
4927
4928         PR target/46415
4929         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
4930         (mmix_dbx_register_number): Likewise.
4931         * config/mmix/mmix.c: Include df.h .
4932         (mmix_local_alignment): Change argument basic_align and return type
4933         to unsigned.
4934         (mmix_dbx_register_number): Change argument and return type to
4935         unsigned.
4936         (mmix_expand_prologue): Use add_reg_note.
4937
4938         PR target/46417
4939         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
4940         (spu_split_store): Use aform.
4941         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
4942
4943 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4944
4945         PR/46268
4946         * doc/gty.texi (GTY Options): Clarify that variable_size produces
4947         allocators taking size in bytes, compare with length option.  Add
4948         size calculation example.
4949         (Invoking the garbage collector): Ensure that sentences are
4950         followed by two spaces.  Describe that pointer fields must be
4951         initialized at ggc_collect call.
4952         (Troubleshooting): New section.
4953
4954 2010-11-09  Jan Hubicka  <jh@suse.cz>
4955
4956         PR tree-optimization/40436
4957         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
4958         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
4959         normal instructions; be sure bultin is not implemented in this file;
4960         compute non-zero return cost.
4961         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
4962         * tree-inline.h (eni_weights_d): Add return cost.
4963
4964 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
4965
4966         * c-parser.c (c_parser_struct_declaration): Handle declaration
4967         specifiers followed by CPP_CLOSE_BRACE.
4968
4969 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4970
4971         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
4972         split occurs before reload, and we allocate memory at the time of
4973         the split, not during expansion.  Add attributes.
4974         (floatsi<mode>2_lfiwax_mem): Ditto.
4975         (floatunssi<mode>2_lfiwzx): Ditto.
4976         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4977         (floatsidf2): Ditto.
4978         (floatunssisf2): Ditto.
4979         (floatunssidf2): Ditto.
4980         (fix_trunc<mode>si2): Ditto.
4981         (fix_trunc<mode>si2_stfiwx): Ditto.
4982         (fix_trunc<mode>si2_internal): Ditto.
4983         (fix_trunc<mode>si2): Ditto.
4984         (fix_trunc<mode>di2): Ditto.
4985         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4986         (floatsisf2): Ditto.
4987         (floatdidf2_mem): Ditto.
4988         (floatunsdidf2_mem): Ditto.
4989         (floatunsdidf2): Ditto.
4990         (floatdisf2_internal1): Ditto.
4991         (floatdisf2_mem): Ditto.
4992         (floatunsdisf2_mem): Ditto.
4993         (floatsi<mode>2_lfiwax_mem2): Delete.
4994         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4995         (fix_trunc<mode>si2_mem): Ditto.
4996         (fixuns_trunc<mode>si2_mem): Ditto.
4997         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
4998         type operations to reduce copying the values to multiple memory slots.
4999         (roundu32<mode>2_fprs): Ditto.
5000
5001         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
5002         PRE_INC, PRE_DEC, PRE_MODIFY.
5003         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
5004
5005         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
5006         Delete prototype.
5007
5008 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
5009
5010         PR target/43808
5011         * cfgexpand.c (partition_stack_vars): Call
5012         update_alias_info_with_stack_vars unconditionally.
5013         (update_alias_info_with_stack_vars): Allow unused
5014         unreferenced vars when not optimizing.
5015
5016 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
5017
5018         PR tree-optimization/46036
5019         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
5020         add_to_dst_predicate_list.
5021
5022 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
5023
5024         PR debug/46171
5025         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
5026         earlier.
5027         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
5028         argument, call dead_debug_reset when adding REG_UNUSED note.
5029         (dead_debug_reset): New function.
5030         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
5031         df_create_unused_note callers.
5032
5033 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
5034
5035         * config/fr30/fr30.c: Include "df.h".
5036
5037 2010-11-09  Richard Guenther  <rguenther@suse.de>
5038
5039         PR tree-optimization/46355
5040         * tree-loop-distribution.c (tree_loop_distribution): Do not
5041         distribute loops without a single exit.
5042
5043 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5044
5045         PR rtl-optimization/46237
5046         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
5047         saved hard regs if they might get partially clobbered.
5048
5049 2010-11-09  Paul Koning  <ni1d@arrl.net>
5050
5051         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
5052
5053 2010-11-09  Richard Guenther  <rguenther@suse.de>
5054
5055         PR tree-optimization/46177
5056         * tree-loop-distribution.c (prop_phis): Remove.
5057         (generate_builtin): Re-use the old loop exit edge to avoid
5058         needing to update PHI nodes.
5059
5060 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
5061
5062         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
5063         type of args_size to unsigned HOST_WIDE_INT.
5064
5065         PR target/44755
5066         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
5067         * config/t-pnt16-warn: New file.
5068         * config/picochip/picochip.c (picochip_emit_stack_allocate):
5069         Use add_reg_note.
5070         (picochip_emit_save_register): Likewise.
5071         (picochip_emit_restore_register): Remove variable insn.
5072         (picochip_legitimize_address): Don't use C++ style comments.
5073         (picochip_legitimize_reload_address): Likewise.
5074         (reorder_var_tracking_notes): Remove variable vliw_start.
5075         (picochip_reorg): Cast first arguemnt to emit_note_after to
5076         enum insn_note.
5077         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
5078         (picochip_expand_builtin_3op): Likewise.
5079         (picochip_expand_builtin_2opvoid): Likewise.
5080         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
5081         (picochip_expand_array_testport): Likewise.
5082         (picochip_init_builtins): Remove unused variables.
5083         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
5084         to unsigned long, and output it as such.
5085         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
5086         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
5087         (schedType): Cast result of picochip_schedule_type to
5088         enum attr_schedType.
5089
5090         PR target/44759
5091         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
5092         conditional to type of S.
5093         (mn10300_function_arg): Remove unused variable align.
5094         (mn10300_arg_partial_bytes): Likewise.
5095         * config/mn10300/mn10300.md (attribute cpu): Cast value to
5096         enum attr_cpu.
5097
5098 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
5099
5100         PR bootstrap/46392
5101         * gengtype-parse.c (type): Call get_input_file_name to get file name.
5102
5103 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5104
5105         * tree.h (contains_placeholder_p): Fix comment.
5106         (type_contains_placeholder_p): Adjust comment.
5107         * tree.c (contains_placeholder_p): Fix comment.
5108         (type_contains_placeholder_1): Do not recurse on pointed-to types and
5109         adjust comment.
5110         (type_contains_placeholder_p): Add comment.
5111
5112 2010-11-09  Paul Koning  <ni1d@arrl.net>
5113
5114         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
5115         output of byte values.
5116
5117 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
5118
5119         PR middle-end/46360
5120         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
5121         not in SSA mode.
5122
5123 2010-11-09  Richard Guenther  <rguenther@suse.de>
5124
5125         PR middle-end/46221
5126         * varasm.c (compute_visible_aliases): New function.
5127         (remove_unreachable_alias_pairs): Aliases make a target available
5128         even though we reclaimed the cgraph node.
5129         (finish_aliases_1): Likewise.
5130         * Makefile.in (varasm.o): Add pointer-set.h dependency.
5131
5132 2010-11-09  Nick Clifton  <nickc@redhat.com>
5133
5134         * config/mn10300/mn10300-modes.def: New file.
5135
5136 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
5137             Jeremie Salvucci  <jeremie.salvucci@free.fr>
5138
5139         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
5140         (plugin_files, get_file_basename, get_file_realbasename)
5141         (get_file_langdir, error_at_line, gt_files, this_file)
5142         (system_h_file, read_input_list, create_field_all)
5143         (get_file_srcdir_relative_path, get_file_basename)
5144         (get_file_langdir, get_file_gtfilename)
5145         (get_output_file_with_visibility, get_output_file_name)
5146         (struct flist, put_mangled_filename, walk_type)
5147         (put_mangled_filename, finish_root_table, write_roots): Use
5148         input_file-s.
5149         (lang_dir_names, num_lang_dirs): Remove static.
5150         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
5151         (main): Use input_file-s.
5152
5153         * gengtype.h: (struct input_file_st, input_file): New type.
5154         (struct fileloc): Use it.
5155         (gt_files, num_gt_files, this_file, system_h_file)
5156         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
5157         (get_input_file_name): New function.
5158         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
5159         use input_file.
5160         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
5161         (get_output_file_name): Ditto.
5162
5163         * gengtype-lex.l (yybegin): Use input_file.
5164
5165         * gengtype-parse.c (parse_error): Use input_file.
5166
5167 2010-11-08  Xinliang David Li  <davidxl@google.com>
5168
5169         PR tree-optimization/46316
5170         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
5171         * double-int.h (double_int_mul_with_sign): New function.
5172         * double-int.c (double_int_mul_with_sign): New function.
5173
5174 2010-11-08  Paul Koning  <ni1d@arrl.net>
5175
5176         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
5177
5178 2010-11-08  Paul Koning  <ni1d@arrl.net>
5179
5180         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
5181
5182 2010-11-08  Paul Koning  <ni1d@arrl.net>
5183
5184         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
5185         to 8 bits.
5186
5187 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5188
5189         PR target/46378
5190         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5191         turn on ISA 2.04 rounding instructions for power5.
5192
5193         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
5194         not ISA 2.02.
5195
5196         PR target/45585
5197         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
5198         in FPR registers.
5199         (movdi_low_st): Ditto.
5200
5201 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
5202             Richard Henderson  <rth@redhat.com>
5203
5204         PR target/44758
5205         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
5206         (attribute acc_group): Cast value to enum attr_acc_group.
5207         (*movdi_nodouble+6): Use gen_int_mode.
5208         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
5209         if RTX_CODE is defined or not.
5210         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
5211         struct frv_io.
5212         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
5213         (frv_frame_access, frv_expand_prologue): Remove unused variables.
5214         (frv_expand_block_clear): Likewise.
5215         (frv_trampoline_init): Use LCT_NORMAL.
5216         (struct frv_packet_group): New struct, broken out of type of
5217         frv_packet.
5218         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
5219         use cast in loop counter increment.
5220         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
5221         assigning to io->type.
5222         (bdesc_set): Use rtx_code UNKNOWN in initializer.
5223         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
5224         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
5225         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
5226         (frv_read_argument): Use expand_normal.
5227
5228         PR target/44757
5229         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
5230         lm32_legitimate_constant_p.
5231         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5232         * config/lm32/lm32.c (gen_int_relational): Make new block for
5233         LE / LT / LEU / LTU case.  Declare variables at start of block.
5234         (lm32_block_move_inline): Use XALLOCAVEC.
5235
5236 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5237
5238         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
5239
5240 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
5241
5242         * gengtype (get_output_file_for_structure): Ensure type is union
5243         or struct.
5244         (write_splay_tree_allocator_def): Use
5245         get_output_file_with_visibility.
5246
5247 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5248
5249         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
5250         to defined values in case of an error.
5251         (s390_option_override): Skip further processing if the -march
5252         parameter wasn't recognized.
5253
5254 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
5255
5256         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
5257         assert that REG is a hard register number before using it as an index.
5258
5259         PR bootstrap/46358
5260         * config/i386/i386.c (ix86_expand_split_stack_prologue):
5261         Avoid warnings when HOST_WIDE_INT is 32 bit.
5262
5263 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5264
5265         PR target/46208
5266         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
5267         (sparc_promote_prototypes): Likewise.
5268         (sparc_promote_function_mode): Promote in 32-bit mode as well.
5269         (sparc_return_in_memory): Remove superfluous parentheses.
5270         (sparc_struct_value_rtx): Fix long lines.
5271         (sparc_function_value_1): Promote in 32-bit mode as well.
5272
5273 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
5274
5275         PR rtl-optimization/45352
5276         * sel-sched.c (find_best_expr): Do not set pneed_stall when
5277         the variable_issue hook is not implemented.
5278         (fill_insns): Remove dead variable stall_iterations.
5279         (init_seqno_1): Force EBB start for resetting sched cycles on any
5280         successor blocks of the rescheduled region.
5281         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
5282         (reset_sched_cycles_in_current_ebb): Add debug printing.
5283         New variable issued_insns.  Advance state when we have issued
5284         issue_rate insns.
5285
5286 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
5287
5288         * gengtype (main): Get here's position using POS_HERE macro for
5289         do*typedef calls.
5290
5291 2010-11-07  Ian Lance Taylor  <iant@google.com>
5292
5293         PR target/46089
5294         * config/i386/i386.c (split_stack_fn_large): New static variable.
5295         (ix86_expand_split_stack_prologue): Handle large model.
5296
5297 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
5298
5299         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
5300         all possible addressing modes.
5301
5302 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
5303
5304         PR tree-optimization/46346
5305         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
5306
5307 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
5308
5309         * config/mips/mips.c: Revert previous patch.
5310         * config/mips/mips.md: Likewise.
5311
5312 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
5313
5314         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
5315         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
5316         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
5317         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
5318         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
5319         to use FMA.
5320         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
5321         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
5322         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
5323         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
5324
5325 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
5326
5327         PR c/43384
5328         * c-decl.c (lookup_label): Labels can only be referenced in a
5329         function's scope.
5330         (store_parm_decls_oldstyle): Skip erroneous parameters.
5331
5332 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
5333
5334         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5335         LIBCALL_VALUE): Remove macros.
5336         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5337         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5338         (fr30_function_value_regno_p, fr30_function_value,
5339         fr30_libcall_value): New functions.
5340
5341 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
5342
5343         PR middle-end/46314
5344         * target.def (generate_internal_label): New asm_out hook.
5345         * output.h (default_generate_internal_label): Declare.
5346         * varasm.c (default_generate_internal_label): Define.
5347
5348 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
5349
5350         PR target/44981
5351         * doc/extend.tex (format): Document NSString extension.
5352         (format_arg): Likewise.
5353         (Darwin Format Checks): New section.
5354         * doc/tm.texi: Document string object hooks (generated).
5355         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
5356         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5357         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5358         * target.def (objc_construct_string_object): Rename, amend
5359         documentation.
5360         (string_object_ref_type_p): New hook.
5361         (check_string_object_format_arg): New hook.
5362         * c-parser.c (c_parser_attributes): Allow objective-c class names as
5363         attribute identifiers.
5364         * config/darwin-c.c (darwin_cfstring_ref_p): New.
5365         (darwin_check_cfstring_format_arg): New.
5366         (darwin_additional_format_types): New.
5367         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
5368         (darwin_check_cfstring_format_arg): New.
5369         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
5370         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5371         (TARGET_N_FORMAT_TYPES): New.
5372         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5373
5374 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
5375             Pascal Obry  <obry@adacore.com>
5376
5377         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
5378         in 64-bit mode and 17 otherwise.
5379
5380 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5381
5382         PR debug/45939
5383         * var-tracking.c (emit_note_insn_var_location): Make sure that
5384         call related var location notes come before the normal ones.
5385
5386 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
5387
5388         PR target/46326
5389         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
5390         in the last change.
5391
5392 2010-11-05  Ian Lance Taylor  <iant@google.com>
5393
5394         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
5395
5396 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
5397
5398         PR c/44772
5399         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
5400         pointer_set_contains if DECL_NAME is NULL.
5401
5402 2010-11-05  Ian Lance Taylor  <iant@google.com>
5403
5404         PR target/46084
5405         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
5406         request enough additional space for alignment, and force alignment.
5407
5408 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
5409
5410         * config/i386/i386.c (legitimate_pic_address_disp_p):
5411         Handle UNSPEC_PCREL.
5412         (ix86_legitimate_address_p): Likewise.
5413         (legitimize_pic_address): Likewise.
5414         (output_pic_addr_const): Likewise.
5415         (ix86_delegitimize_address): Likewise.
5416         (ix86_find_base_term): Likewise.
5417         (memory_address_length): Likewise.
5418         (x86_output_mi_thunk): Handle special case x64
5419         for non local binding.
5420         * config/i386/i386.md (UNSPEC_PCREL): New.
5421         * config/i386/winnt.c (i386_pe_binds_local_p):
5422         Allow weak symbol for x64 windows with non-local binding.
5423
5424 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
5425
5426         PR target/45670
5427         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
5428         instead of EXPAND_NORMAL for base expansion.
5429
5430 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
5431
5432         * config.gcc: Support --with-fpmath=avx for x86.
5433         * config/i386/avxmath.h: New.
5434         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
5435
5436 2010-11-05  Ian Lance Taylor  <iant@google.com>
5437
5438         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
5439         * gengtype.c (walk_type): Don't recognize descbits option.
5440
5441 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
5442
5443         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
5444         WORD_SWITCH_TAKES_ARG): Remove.
5445         * doc/options.texi (Args): Document.
5446         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
5447         * doc/tm.texi: Regenerate.
5448         * opt-functions.awk (switch_flags): Handle Args.
5449         * opts-common.c: Update comment on tm.h include.
5450         (decode_cmdline_option): Handle options with multiple arguments.
5451         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
5452         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
5453         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5454         CL_COMMON): Update values.
5455         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
5456         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
5457         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
5458         sectobjectsymbols, sectorder, segcreate, segprot): New.
5459
5460 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
5461             Uros Bizjak  <ubizjak@gmail.com>
5462
5463         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
5464         256bit AVX register is used.
5465         (ix86_expand_vector_move_misalign): Likewise.
5466         (ix86_expand_vector_move): Replace use_avx256_p with
5467         VALID_AVX256_REG_MODE.
5468
5469 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
5470
5471          PR target/44750
5472         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
5473         change.  Set $@-warn.o to -Wno-error.
5474
5475         PR bootstrap/44756
5476         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
5477         comparing it to a signed value.
5478
5479         PR middle-end/44766
5480         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
5481         PR bootstrap/44770
5482         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
5483         to i.
5484
5485         PR target/44754
5486         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
5487         (m32c_function_arg).  Add comma between arguments two and three.
5488         (m32c_promote_prototypes): Remove declaration.
5489         (current_function_special_page_vector): Likewise.
5490         (m32c_regno_reg_class): Change return type to enum reg_class.
5491         (m32c_pushm_popm): Use add_reg_note.
5492         (m32c_push_rounding): Change return type to unsigned int.
5493         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
5494         enum reload_type.
5495         (m32c_insert_attributes): Constify variable name.
5496         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
5497         (m32c_prepare_shift): Remove variable lref.
5498         (m32c_expand_movcc): Remove variable cmp.
5499         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
5500         (m32c_compare_redundant): Remove variable op2.
5501         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
5502         (m32c_pragma_memregs): Assign the number to target_memregs.
5503         (m32c_pragma_address): Remove variable var_str.
5504         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
5505         enum reg_class.
5506         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
5507         * config/m32c/bitops.md (andsi3): Add default case to switch.
5508         (iorsi3, xorsi3): Likewise.
5509         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
5510         * config/m32c/jump.md (call, call_value): Likewise.
5511         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
5512         (m32c_regno_reg_class): Likewise.
5513         (current_function_special_page_vector): Declare.
5514
5515 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
5516
5517         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
5518
5519         PR tree-optimization/46099
5520         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
5521         if it is NULL and uid wasn't found in the hash table.  Just fold the
5522         result if it is NULL otherwise.  Insert other potentially needed
5523         stmts right before current stmt instead of on the entry edge.
5524         (struct elv_data): Add gsi and reset fields.
5525         (eliminate_local_variables_1): Adjust caller.  If take_address_of
5526         failed for debug stmt, set dta->reset and return.
5527         (eliminate_local_variables_stmt): Change STMT argument for GSI,
5528         pass GSI through to the callback, handle resetting of debug stmts.
5529         (eliminate_local_variables): Adjust caller.  Process debug stmts
5530         in second phase.
5531
5532         PR middle-end/43690
5533         * gimplify.c (gimplify_asm_expr): If a "m" input is a
5534         {pre,post}{in,de}crement, fail.
5535
5536         PR debug/46307
5537         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
5538         * tree-pretty-print.c (dump_generic_node): Likewise.
5539         (op_code_prio): Likewise.
5540         * cfgexpand.c (expand_debug_expr): Likewise.
5541
5542 2010-11-04  Paul Koning  <ni1d@arrl.net>
5543
5544         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
5545         constraints.
5546
5547 2010-11-04  Chao-ying Fu  <fu@mips.com>
5548
5549         * configure.ac: Test assembler support for DSP Rev1 mult.
5550         * configure: Regenerate.
5551         * config.in: Regenerate.
5552         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
5553         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
5554         (CODE_FOR_mips_multu): New define.
5555         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
5556         dspr2_32 to dsp_32.
5557         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
5558         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
5559         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
5560         New define_expand patterns.
5561         * config/mips/constraints.md (ka): Update the constraint to test
5562         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
5563         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
5564         mips_multu): Delete.
5565         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
5566         Change target constraint to "ka".
5567         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
5568         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
5569         Emit the accumulator destination when ISA_HAS_DSP_MULT.
5570         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
5571         Emit the accumulator destination when ISA_HAS_DSP_MULT.
5572         (<u>maddsidi4): Likewise.
5573         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
5574         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
5575
5576 2010-11-04  Paul Koning  <ni1d@arrl.net>
5577
5578         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
5579
5580 2010-11-04  Paul Koning  <ni1d@arrl.net>
5581
5582         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
5583
5584 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
5585
5586         Fixed using the Objective-C 2.0 dot-syntax with class names.
5587         * c-parser.c (c_parser_next_token_starts_declspecs): In
5588         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
5589         (c_parser_next_token_starts_declaration): Same.
5590         (c_parser_postfix_expression): Parse the Objective-C 2.0
5591         dot-syntax with a class name.
5592
5593 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
5594
5595         * final.c (compute_alignments): Compute/free loop info all the time.
5596         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
5597         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
5598         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
5599         * config/rs6000/rs6000.c (cfgloop.h): Include.
5600         (can_override_loop_align): New.
5601         (rs6000_option_override_internal): Set it.
5602         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
5603         (rs6000_loop_align): New function.
5604         (rs6000_loop_align_max_skip): Likewise.
5605
5606 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5607
5608         PR driver/45703
5609         * collect2.c (main): Print --help output to stdout.  Do not
5610         exit right away, so ld --help is appended.  Add empty lines
5611         to separate output suitably.
5612
5613 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
5614
5615         PR tree-optimization/46233
5616         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
5617         after calling analyze_function, not before.
5618
5619         PR target/46234
5620         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
5621         instead of build_va_arg_indirect_ref.
5622         * config/spu/spu.c (spu_va_start): Likewise.
5623         * config/s390/s390.c (s390_va_start): Likewise.
5624
5625 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
5626
5627         PR middle-end/46292
5628         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
5629         if the innermode is not vector mode, determine the mode of a subreg
5630         by using mode_for_size of inner_size.
5631
5632 2010-11-04  Richard Guenther  <rguenther@suse.de>
5633
5634         PR rtl-optimization/46183
5635         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
5636         (execute_rtl_pre): Likewise.
5637         (execute_rtl_hoist): Likewise.
5638
5639 2010-11-04  Richard Guenther  <rguenther@suse.de>
5640
5641         PR tree-optimization/46068
5642         * ipa-split.c (consider_split): Remove gcc_unreachable.
5643
5644 2010-11-04  Richard Guenther  <rguenther@suse.de>
5645
5646         * tree-nested.c (build_addr): Use build_fold_addr_expr.
5647
5648 2010-11-04  Richard Guenther  <rguenther@suse.de>
5649
5650         PR tree-optimization/45991
5651         * gimplify.c (force_gimple_operand_1): Use the provded test
5652         function in the initial test.
5653
5654 2010-11-04  Jeff Law  <law@redhat.com>
5655
5656         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
5657         of readonly memory equivalances for const/pure calls.
5658
5659 2010-11-04  Richard Guenther  <rguenther@suse.de>
5660
5661         PR tree-optimization/45733
5662         * tree-vect-stmts.c (reverse_vec_elements): Honor the
5663         permute builtins function return type.
5664
5665 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
5666
5667         PR middle-end/44765
5668         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
5669         as an index, check it is not INVALID_REGNUM.
5670
5671         PR bootstrap/44756
5672         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
5673         unsignedp.
5674         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
5675
5676         PR bootstrap/44756
5677         * function.c (thread_prologue_and_epilogue_insns): Add
5678         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
5679
5680         PR bootstrap/44756
5681         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
5682
5683         PR target/44750
5684         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
5685         (pdp11_preferred_reload_class): Rename class to rclass.
5686         (pdp11_preferred_output_reload_class): Likewise.
5687         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
5688         ALL_COMPILERFLAGS .
5689         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
5690
5691         PR bootstrap/44756
5692         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
5693         iteration variables to enum machine_mode.
5694
5695         PR target/44751
5696         * config/h8300/h8300.c: Include df.h.
5697         (push, pop): Use add_reg_note.
5698         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
5699         (compute_a_shift_cc): Likewise.
5700         (expand_a_shift): Argument code has type enum rtx_code.
5701         (struct shift_insn): Member cc_valid has type enum attr_cc.
5702         (struct shift_info) <cc_inline, cc_special>: Likewise.
5703         enum attr_cc.
5704         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
5705         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
5706
5707 2010-11-04  Ira Rosen  <irar@il.ibm.com>
5708
5709         PR tree-optimization/46213
5710         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
5711         MINUS_EXPR only if the first operand is reduction operand.
5712
5713 2010-11-04  Richard Guenther  <rguenther@suse.de>
5714             Richard Henderson  <rth@redhat.com>
5715
5716         * tree.def (FMA_EXPR): New tree code.
5717         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
5718         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
5719         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
5720         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
5721         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5722         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
5723         (execute_optimize_widening_mul): Call it.  Reorganize to allow
5724         dead stmt removal.  Move TODO flags ...
5725         (pass_optimize_widening_mul): ... here.
5726         * flag-types.h (enum fp_contract_mode): New enum.
5727         * common.opt (flag_fp_contract_mode): New variable.
5728         (-ffp-contract): New option.
5729         * opts.c (common_handle_option): Handle it.
5730         * doc/invoke.texi (-ffp-contract): Document.
5731         * tree.h (fold_fma): Declare.
5732         * builtins.c (fold_fma): New function.
5733         (fold_builtin_fma): Likewise.
5734         (fold_builtin_3): Call it for fma.
5735         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
5736         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
5737         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
5738         New expanders.
5739         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
5740         named patterns.
5741         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
5742         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
5743         (fms_optab, fnma_optab, fnms_optab): New defines.
5744         * gimplify.c (gimplify_expr): Handle binary truth expressions
5745         explicitly.  Handle FMA_EXPR.
5746         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
5747         operations.
5748
5749 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5750             Richard Guenther  <rguenther@suse.de>
5751
5752         * passes.c (init_optimization_passes): Move veclower after SSA.
5753         * tree-vect-generic.c (uniform_vector_p): New function.
5754         (expand_vector_operations_1): Handle conversion.
5755         (pass_lower_vector): Update SSA form.
5756
5757 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
5758
5759         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
5760         plugin capabilities.
5761         * configure: Regenerate.
5762
5763 2010-11-03  Xinliang David Li  <davidxl@google.com>
5764
5765         PR target/46200
5766         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
5767         Adjust cbase if the use stmt is after iv update.
5768
5769 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5770
5771         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
5772
5773 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5774
5775         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
5776         comment.  Pass true to the last argument of output_stack_adjust.
5777
5778 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5779
5780         PR target/46295
5781         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
5782         if 256bit AVX register is used.
5783
5784 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5785
5786         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
5787         xsmindp/xsmaxdp on VSX for single precision min/max.
5788         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
5789         (vsx_sminsf3): Ditto.
5790
5791 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5792
5793         * combine.c (try_combine): Fix formatting issues, improve comments and
5794         fix a pasto.
5795
5796 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5797
5798         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
5799         of the result before building binary expressions.
5800
5801 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5802
5803         PR rtl-optimization/45865
5804         * Makefile.in (df-problems.o): Revert revision 164552.
5805         * basic-block.h (enum bb_flags): Likewise.
5806         * cfgcleanup.c (block_was_dirty): Likewise.
5807         (try_forward_edges): Likewise.
5808         (try_crossjump_bb): Likewise.
5809         (try_head_merge_bb): Likewise.
5810         (try_optimize_cfg): Likewise.
5811         (cleanup_cfg): Likewise.
5812         * df-core.c (df_set_bb_dirty): Likewise.
5813         * df-problems.c: Likewise.
5814         (df_simulate_find_uses): Likewise.
5815         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
5816         (find_memory, find_memory_store): Likewise.
5817         (can_move_insns_across): Likewise.
5818         * df.h (can_move_insns_across): Likewise.
5819         * ifcvt.c (find_memory): Likewise.
5820         (dead_or_predicable): Likewise.
5821
5822 2010-11-03  Richard Guenther  <rguenther@suse.de>
5823
5824         PR middle-end/46288
5825         * predict.c (strip_predict_hints): Simply DCE builtin expect if
5826         the result is unused.
5827
5828 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5829
5830         PR tree-optimization/46009
5831         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
5832         cond_if_else_store_replacement if bb1 and bb2 have the same
5833         single successor.
5834         (cond_store_replacement): Use gimple_assign_single_p, don't
5835         check if rhs is SSA_NAME or invariant.  Call release_defs for
5836         assign.
5837         (cond_if_else_store_replacement): New function.
5838
5839 2010-11-03  Richard Guenther  <rguenther@suse.de>
5840
5841         * opts.c (finish_options): Properly check for all WHOPR
5842         flags before complaining about -flto-partition.
5843
5844 2010-11-04  Alan Modra  <amodra@gmail.com>
5845
5846         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
5847         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
5848         TARGET_SECURE_PLT.
5849         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
5850         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
5851         on input, "r" on output.
5852
5853 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
5854
5855         Implemented -fobjc-std=objc1 flag.
5856         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
5857         option.
5858         * doc/standards.texi (Standards): Updated the section on
5859         Objective-C; mention support for Objective-C 2.0 features and the
5860         new -fstd-objc=objc1 flag to disable them.
5861
5862 2010-11-03  Richard Guenther  <rguenther@suse.de>
5863
5864         PR middle-end/46241
5865         * dwarf2out.c (scope_die_for): Properly detect global scope.
5866
5867 2010-11-03  Richard Guenther  <rguenther@suse.de>
5868
5869         PR tree-optimization/46190
5870         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5871         Properly compute peel iterations.
5872
5873 2010-11-03  Richard Guenther  <rguenther@suse.de>
5874
5875         PR tree-optimization/46286
5876         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
5877         re-allocated vector data.
5878
5879 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5880
5881         PR target/46285
5882         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
5883         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
5884         is completed.
5885
5886 2010-11-03  Richard Guenther  <rguenther@suse.de>
5887
5888         PR tree-optimization/46217
5889         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
5890         flag matches.
5891         (execute_update_addresses_taken): Likewise.
5892
5893 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
5894
5895         PR bootstrap/44335
5896         * targhooks.c (targhook_words_big_endian): New function.
5897         (targhook_float_words_big_endian): Likewise.
5898         * targhooks.h (targhook_words_big_endian): Declare.
5899         (targhook_float_words_big_endian): Likewise.
5900         * target.def (words_big_endian, float_words_big_endian): New hooks.
5901
5902 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5903
5904         PR tree-optimization/46165
5905         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
5906         a normal call into noreturn call.
5907
5908 2010-11-03  Richard Guenther  <rguenther@suse.de>
5909
5910         PR middle-end/46251
5911         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
5912         not INDIRECT_REFs.
5913
5914 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5915
5916         PR tree-optimization/46107
5917         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
5918         if cfg_hook_duplicate_loop_to_header_edge failed.
5919
5920 2010-11-03  Ian Lance Taylor  <iant@google.com>
5921
5922         PR lto/46273
5923         * config.gcc: Don't set lto_binary_reader.
5924         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5925         (Configuration): Mention --disable-lto.  Remove --with-libelf
5926         paragraph.
5927
5928 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5929
5930         PR debug/46252
5931         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
5932         prev_real_insn.
5933         * gcse.c (insert_insn_end_basic_block): Likewise.
5934
5935         PR rtl-optimization/46034
5936         PR rtl-optimization/46212
5937         PR rtl-optimization/46248
5938         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
5939         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
5940         before i0dest -> i0src substitution and pass 1 instead of 0 as last
5941         argument to subst on i2pat.
5942
5943 2010-11-02  Ian Lance Taylor  <iant@google.com>
5944
5945         * configure.ac: Use AC_SYS_LARGEFILE.
5946         * configure: Rebuild.
5947         * config.in: Rebuild.
5948
5949 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5950
5951         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
5952         fold_convert.
5953         * c-typeck.c (build_function_call_vec): Likewise.
5954         * cfgexpand.c (expand_debug_expr): Likewise.
5955         * cgraphunit.c (assemble_thunk): Likewise.
5956         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5957         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
5958         (fold_binary_loc, fold_ternary_loc): Likewise.
5959         * gimple-fold.c (get_symbol_constant_value): Likewise.
5960         * gimple-low.c (lower_builtin_setjmp): Likewise.
5961         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
5962         * gimplify.c (gimplify_init_constructor): Likewise.
5963         * lambda.h (build_linear_expr): Likewise.
5964         * omp-low.c (omp_reduction_init): Likewise.
5965         * tree-inline.c (remap_ssa_name): Likewise.
5966         * tree-object-size.c (compute_object_sizes): Likewise.
5967         * tree-sra.c (init_subtree_with_zero): Likewise.
5968         (sra_ipa_modify_assign): Likewise.
5969         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
5970         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
5971         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
5972         (undistribute_ops_list): Likewise.
5973         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5974         * tree-vect-stmts.c (vectorizable_call): Likewise.
5975         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
5976         (build_zero_cst): Handle more cases directly.  Update comment.
5977
5978 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5979
5980         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
5981         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
5982
5983         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
5984         and call ix86_split_call_vzeroupper instead of
5985         ix86_split_call_pop_vzeroupper.
5986         (*call_pop_1_vzeroupper): Likewise.
5987         (*sibcall_pop_1_vzeroupper): Likewise.
5988         (*call_value_pop_0_vzeroupper): Likewise.
5989         (*call_value_pop_1_vzeroupper): Likewise.
5990         (*sibcall_value_pop_1_vzeroupper): Likewise.
5991
5992 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5993
5994         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
5995
5996 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
5997
5998         * basic-block.h (insert_insn_end_bb_new): Delete.
5999         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
6000
6001 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
6002             H.J. Lu  <hongjiu.lu@intel.com>
6003
6004         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
6005         (ix86_split_call_pop_vzeroupper): Likewise.
6006
6007         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
6008         (ix86_expand_call): Conditionally decorate calls with
6009         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
6010         (ix86_split_call_vzeroupper): New.
6011         (ix86_split_call_pop_vzeroupper): Likewise.
6012
6013         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
6014         (*call_pop_0_vzeroupper): New insn_and_split pattern.
6015         (*call_pop_1_vzeroupper): Likewise.
6016         (*sibcall_pop_1_vzeroupper): Likewise.
6017         (*call_0_vzeroupper): Likewise.
6018         (*call_1_vzeroupper): Likewise.
6019         (*sibcall_1_vzeroupper): Likewise.
6020         (*call_1_rex64_vzeroupper): Likewise.
6021         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
6022         (*call_1_rex64_large_vzeroupper): Likewise.
6023         (*sibcall_1_rex64_vzeroupper): Likewise.
6024         (*call_value_pop_0_vzeroupper): Likewise.
6025         (*call_value_pop_1_vzeroupper): Likewise.
6026         (*sibcall_value_pop_1_vzeroupper): Likewise.
6027         (*call_value_0_vzeroupper): Likewise.
6028         (*call_value_0_rex64_vzeroupper): Likewise.
6029         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
6030         (*call_value_1_vzeroupper): Likewise.
6031         (*sibcall_value_1_vzeroupper): Likewise.
6032         (*call_value_1_rex64_vzeroupper): Likewise.
6033         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
6034         (*call_value_1_rex64_large_vzeroupper): Likewise.
6035         (*sibcall_value_1_rex64_vzeroupper): Likewise.
6036
6037 2010-11-02  Ian Lance Taylor  <iant@google.com>
6038
6039         PR lto/46273
6040         * config.gcc: Revert last patch: set lto_binary_reader.
6041
6042 2010-11-02  Richard Guenther  <rguenther@suse.de>
6043
6044         PR tree-optimization/46149
6045         * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
6046         non-indirect MEM_REF variants.
6047
6048 2010-11-02  Richard Guenther  <rguenther@suse.de>
6049
6050         PR tree-optimization/46216
6051         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6052         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
6053
6054 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6055
6056         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
6057         (*-*-osf*): Likewise.
6058         * configure: Regenerate.
6059
6060 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
6061
6062         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
6063         for Intel Core 2 and Core i7.
6064
6065 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
6066
6067         Model decoder of Core 2/i7 for multipass scheduling.
6068
6069         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
6070         New type to hold target-specific data for multipass scheduling.
6071         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
6072         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
6073         Core 2/i7.
6074         (core2i7_secondary_decoder_max_insn_size,)
6075         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
6076         New static variables.
6077         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
6078         ([_]ix86_first_cycle_multipass_data): New static variable.
6079         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
6080         Implement targetm.sched hooks.
6081         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
6082         of ...
6083         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
6084         Implement new targetm.sched hooks.
6085         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
6086         targetm.sched hook to install multipass scheduling hooks on demand.
6087
6088         * doc/tm.texi.in: Document new targetm.sched hooks.
6089         * doc/tm.texi: Regenerate.
6090
6091         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
6092         (first_cycle_multipass_data_t): New typedef.
6093         (struct choice_entry: target_data): New field.
6094         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
6095         to allow target model restrictions not represented in DFA.
6096         (choose_ready, schedule_block): Update.
6097         (sched_extend_ready_list, sched_finish_ready_list): Call new target
6098         hooks to initialize target-specific data for multipass scheduling.
6099         * sched-int.h (max_issue): Update declaration.
6100         * sel-sched.c (choose_best_insn): Update.
6101         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
6102         (first_cycle_multipass_{init, fini}): Define and document new
6103         targetm.sched hooks.
6104
6105 2010-11-02  Richard Guenther  <rguenther@suse.de>
6106
6107         PR tree-optimization/46184
6108         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
6109         input vector type from the reduction operand as well.
6110
6111 2010-11-02  Richard Guenther  <rguenther@suse.de>
6112
6113         PR tree-optimization/46177
6114         * tree-loop-distribution.c (prop_phis): Use
6115         mark_virtual_phi_result_for_renaming.
6116
6117 2010-11-02  Martin Jambor  <mjambor@suse.cz>
6118
6119         PR middle-end/46120
6120         * tree.c (get_binfo_at_offset): Bail out on artificial
6121         fields.  Identify primary bases according to their offsets.
6122
6123 2010-11-02  Martin Jambor  <mjambor@suse.cz>
6124
6125         PR tree-optimization/45875
6126         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
6127         (gimple_get_relevant_ref_binfo): Detect primary bases according to
6128         their field offset.
6129
6130 2010-11-02  Ian Lance Taylor  <iant@google.com>
6131
6132         * doc/install.texi (Configuration): Note in two places that Java
6133         is not enabled by default.
6134
6135 2010-11-02  Ian Lance Taylor  <iant@google.com>
6136
6137         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
6138         (Configuration): Mention --disable-lto.  Remove --with-libelf
6139         paragraph.
6140
6141 2010-11-02  Ian Lance Taylor  <iant@google.com>
6142
6143         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
6144         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
6145         LIBELFINC.  Remove HAVE_libelf.
6146         * config.gcc: Don't set lto_binary_reader.
6147         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
6148         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
6149         (LIBS): Remove $(LIBELFLIBS).
6150         (INCLUDES): Remove $(LIBELFINC).
6151         * configure: Rebuild.
6152         * config.in: Rebuild.
6153
6154 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
6155
6156         * config/microblaze/microblaze-protos.h (function_arg): Delete.
6157         (function_arg_advance): Delete.
6158         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
6159         (FUNCTION_ARG): Delete.
6160         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
6161         (microblaze_function_arg_advance): ...this.  Make static.  Take a
6162         const_tree and a bool.
6163         (function-arg): Rename to...
6164         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
6165         and a bool.
6166         (microblaze_expand_prologue): Call targetm.calls.function_arg and
6167         targetm.calls.function_arg_advance.
6168         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6169
6170 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
6171
6172         Merge from FSF "apple/trunk" branch.
6173
6174         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
6175         * config/darwin.opt: .. to here.
6176         (matt-stubs): New option.
6177         * config/i386/darwin.opt: Delete.
6178         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
6179         (MACHO_DYNAMIC_NO_PIC_P): New.
6180         (MACHOPIC_INDIRECT): New.
6181         (MACHOPIC_PURE): New.
6182         * config/i386/darwin.h (DARWIN_X86) Define to 1.
6183         (MACHOPIC_ATT_STUB): New.
6184         (CC1_SPEC): Do not remove mdynamic-no-pic.
6185         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6186         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6187         (FUNCTION_PROFILER): Correct over-length line.
6188         (SUBTARGET_OVERRIDE_OPTIONS): New.
6189         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6190         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
6191         (legitimate_constant_p): Handle mdynamic-no-pic.
6192         (ix86_legitimate_address_p): Likewise.
6193         (ix86_legitimize_address): Likewise.
6194         (ix86_expand_move): Likewise.
6195         (machopic_output_stub): Update for ATT-style stubs and
6196         mdynamic-no-pic.
6197         * config/darwin-protos.h (machopic_symbol_defined_p): New.
6198         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
6199         TARGET_DYNAMIC_NO_PIC: Remove.
6200         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6201         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6202         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
6203         Remove handling of mdynamic-no-pic.
6204         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
6205         Define if required.
6206         (machopic_symbol_defined_p): Do not try to use current_function_decl
6207         when generating _get_pc thunks within stubs.
6208         (machopic_indirect_data_reference): Rework for direct conditionals
6209         rather than #ifdefs, add x86 mdynamic-no-pic
6210         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
6211         defined value.
6212         (darwin_override_options): Handle mdynamic-no-pic here.
6213         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
6214         (machopic_lazy_symbol_ptr3_section): New.
6215         (machopic_picsymbol_stub2_section): New.
6216         (machopic_picsymbol_stub3_section): New.
6217         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
6218         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6219         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6220         Moved common definition from x86 and rs6000.
6221         (MACHO_DYNAMIC_NO_PIC_P): Override value.
6222         (MACHOPIC_INDIRECT): Likewise.
6223         (MACHOPIC_PURE): Likewise.
6224         * config.gcc (x86-darwin-*): Remove darwin.opt.
6225
6226 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
6227
6228         PR debug/46255
6229         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
6230         instead of gsi_last_bb.
6231
6232 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
6233             Maxim Kuvyrkov  <maxim@codesourcery.com>
6234
6235         * config/i386/i386.c (cpu_names): Add "corei7".
6236         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
6237
6238 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
6239             Maxim Kuvyrkov  <maxim@codesourcery.com>
6240
6241         Tune alignment for Intel Core i7
6242
6243         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
6244         (enum processor_type): Update comment.  Add entries for Core i7.
6245         * config/i386-c.c (ix86_target_macros_internal): Update.
6246         * config/i386.c (m_COREI7{_32,_64}): New macros.
6247         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
6248         (processor_target_table): Tune alignment for Core i7.
6249         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
6250
6251         * doc/invoke.texi: Document "corei7" option value.
6252
6253 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
6254             Maxim Kuvyrkov  <maxim@codesourcery.com>
6255             H.J. Lu  <hjl.tools@gmail.com>
6256
6257         Basic support for Intel Core i7
6258
6259         * i386.c (ix86_option_override_internal): Add entry for corei7, use
6260         generic tuning.  Use generic32 when compiling for 32-bit ABI.
6261
6262 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
6263
6264         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
6265         sections and call darwin_asm_dwarf_section() to handle them.
6266         (darwin_asm_dwarf_section): New.
6267         (darwin_file_start): Remove code emitting dwarf section symbols.
6268
6269 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
6270
6271         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
6272         explicitly disable stack protection when building libgcc.
6273         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
6274
6275 2010-11-01  Jason Merrill  <jason@redhat.com>
6276
6277         * fold-const.c (fold_indirect_ref_1): Handle folding
6278         POINTER_PLUS_EXPR to ARRAY_REF.
6279
6280 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
6281
6282         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6283         (sh_delegitimize_address): New function.
6284
6285 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
6286
6287         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
6288         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
6289         (CC1_SPEC): Don't handle -target.
6290         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
6291         options.
6292         * config/darwin.opt (Zallowable_client, Zbundle_loader,
6293         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
6294         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
6295         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
6296         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
6297         Zweak_reference_mismatches, client_name, compatibility_version,
6298         current_version, dylinker_install_name, pagezero_size,
6299         read_only_relocs, seg1addr, segs_read_only_addr,
6300         segs_read_write_addr, sub_library, sub_umbrella): New.
6301         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
6302         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
6303         * config/freebsd.opt: New.
6304         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
6305         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
6306         * config/rpath.opt: New.
6307         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
6308         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
6309         Use rpath.opt.
6310
6311 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
6312
6313         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
6314         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
6315         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
6316         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
6317         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
6318         Document that options in .opt files do not need to be included.
6319         * doc/tm.texi: Regenerate.
6320         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
6321         * opts-common.c: Update comment on tm.h include.
6322         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
6323         * system.h (SWITCH_TAKES_ARG): Poison.
6324         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
6325         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
6326         in darwin.opt.
6327         (LINK_COMMAND_SPEC_A): Don't include %{x}.
6328         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6329         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
6330         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
6331         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6332         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
6333         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
6334         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
6335         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
6336         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6337         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
6338         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
6339         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
6340         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
6341         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
6342         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
6343         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
6344         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
6345         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
6346         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
6347         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
6348         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
6349         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
6350         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6351
6352 2010-11-01  Paul Koning  <ni1d@arrl.net>
6353
6354         * config/pdp11/pdp11.md: Use iterators.
6355         (addqi3, subqi3, iorsi3, xorsi3): Delete.
6356
6357 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
6358
6359         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
6360         GCC_INSN_FLAGS_H.
6361         * libgcov.c (__gcov_indirect_call_profiler): Set
6362         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
6363         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
6364
6365 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
6366
6367         PR tree-optimization/46259
6368
6369         Revert:
6370         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
6371         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
6372         build_vector_from_val.
6373
6374 2010-11-01  DJ Delorie  <dj@redhat.com>
6375
6376         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
6377         as well as an assertion.
6378
6379 2010-11-01  Paul Koning  <ni1d@arrl.net>
6380
6381         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
6382         complex modes in memory.
6383
6384 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
6385
6386         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
6387
6388 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
6389
6390         PR target/45250
6391         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
6392         (cfa_base_offset): New variable.
6393         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
6394         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
6395         is NULL.
6396         (vt_init_cfa_base): Initialize cfa_base_offset.
6397
6398 2010-11-01  Alan Modra  <amodra@gmail.com>
6399
6400         PR target/46030
6401         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
6402         and savres_strategy.
6403         (stack_info): New file scope var.
6404         (rs6000_init_machine_status): Init stack_info.
6405         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
6406         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
6407         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
6408         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
6409         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
6410         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
6411         (rs6000_savres_strategy): Rewrite.
6412         (rs6000_stack_info): Use "stack_info" in place of local "info".
6413         Return cached stack info when reload_completed unless ENABLE_CHECKING
6414         in which case confirm newly calculated stack info matches old info.
6415         Delay calculation of lr_save_p, set it for out of line gp save/restore
6416         as well as fp.  Call rs6000_savres_strategy from here..
6417         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
6418         (rs6000_output_function_prologue): Use info->savres_strategy to
6419         determine whether fp save/restore externs need to be emitted.
6420
6421 2010-10-31  Jason Merrill  <jason@redhat.com>
6422
6423         * tree.h (EXPR_LOC_OR_HERE): New macro.
6424         * builtins.c (c_strlen): Use it.
6425         * c-decl.c (build_enumerator): Likewise.
6426         * gimplify.c (internal_get_tmp_var): Likewise.
6427         (shortcut_cond_expr): Likewise.
6428         (gimplify_one_sizepos): Likewise.
6429
6430 2010-10-31  Richard Henderson  <rth@redhat.com>
6431
6432         * config/i386/cygming.h (TARGET_SEH): New.
6433         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
6434         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
6435         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
6436         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
6437         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
6438         (ASM_DECLARE_FUNCTION_SIZE): New.
6439         * config/i386/i386-protos.h: Update.
6440         * config/i386/i386.c (ix86_option_override_internal): Enable
6441         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
6442         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
6443         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
6444         (ix86_compute_frame_layout): For SEH, disable
6445         use_fast_prologue_epilogue, move frame pointer to the end of
6446         the frame.  Initialize hfp_save_offset.
6447         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
6448         at end of prologue for SEH.
6449         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
6450         emit blockage at beginning of epilogue.
6451         (ix86_expand_binary_operator): After reload, emit LEA if needed.
6452         (ix86_output_call_insn): New.
6453         * config/i386/i386.h (TARGET_SEH): New.
6454         (struct machine_function): Add member seh.
6455         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
6456         * config/i386/winnt.c (struct seh_frame_state): New.
6457         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
6458         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
6459         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
6460         i386_pe_start_function, i386_pe_end_function): New.
6461
6462         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
6463         as CFA_STORE in rules 12 and 13.
6464
6465 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
6466
6467         PR tree-optimization/46142
6468         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
6469         accommodate third function argument.
6470
6471 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
6472
6473         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
6474
6475 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
6476
6477         * fold-const.c (build_zero_vector): Use build_vector_from_val.
6478         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
6479         (get_initial_def_for_reduction): Likewise.
6480         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6481         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
6482         * tree.c (build_one_cst): Likewise.
6483         (build_vector_from_val): Use types_compatible_p for assert.
6484
6485 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
6486
6487         * emit-rtl.c (mark_used_flags): New function.
6488         (set_used_flags, reset_used_flags): Call it.
6489
6490 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
6491
6492         PR middle-end/44569
6493         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
6494         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
6495
6496 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
6497
6498         PR target/46195
6499         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
6500         (ix86_compat_aligned_value_p): This.
6501         (ix86_old_function_arg_boundary): Renamed to ...
6502         (ix86_compat_function_arg_boundary): This.  Updated.
6503         (ix86_contains_aligned_value_p): New.
6504         (ix86_function_arg_boundary): Align long double parameters on
6505         stack to 4byte in 32bit.
6506
6507 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
6508
6509         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6510         * c-parser.c (c_parser_objc_at_property_declaration): Removed
6511         parsing of RID_COPIES and RID_IVAR.  Updated call to
6512         objc_add_property_declaration.
6513         * c-typecheck.c (build_component_ref): Call
6514         objc_maybe_build_component_ref instead of objc_build_setter_call.
6515         Use objc_is_property_ref to improve Objective-C checks.
6516         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
6517         of objc_build_getter_call.
6518
6519 2010-10-29  Paul Koning  <ni1d@arrl.net>
6520
6521         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
6522         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
6523         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
6524         (REG_OK_STRICT): Move description.
6525
6526 2010-10-29  Paul Koning  <ni1d@arrl.net>
6527
6528         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
6529
6530 2010-10-29  Paul Koning  <ni1d@arrl.net>
6531
6532         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
6533
6534 2010-10-29  Paul Koning  <ni1d@arrl.net>
6535
6536         PR/41822
6537         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
6538
6539 2010-10-29  Richard Henderson  <rth@redhat.com>
6540
6541         PR rtl-opt/46226
6542         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
6543         for asm goto.
6544
6545 2010-10-29  Paul Koning  <ni1d@arrl.net>
6546
6547         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
6548         register to register move.
6549
6550 2010-10-29  Paul Koning  <ni1d@arrl.net>
6551
6552         * config/pdp11/pdp11.c (print_operand_address): Correct handling
6553         of integer constant addresses, delete vax-only logic.
6554
6555 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
6556
6557         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
6558         a conditional expression.
6559
6560 2010-10-29  Paul Koning  <ni1d@arrl.net>
6561
6562         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
6563         instruction encoding.
6564
6565 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
6566             Andrew Pinski  <pinskia@gmail.com>
6567
6568         * tree.h (build_vector_from_val): Declare.
6569         * tree.c (build_vector_from_val): New function.
6570         * c-typeck.c (build_binary_op): Handle vector shifting.
6571         * doc/extend.texi: Description of the vector shifting operation.
6572
6573 2010-10-29  Paul Koning  <pkoning@equallogic.com>
6574
6575         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
6576         pdp11_secondary_memory_needed): Declare.
6577         * config/pdp11/predicates.md (float_operand): New predicate.
6578         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
6579         (cbranchdf4, movdf): Change predicate.
6580         (movsf): Handle FPU register case.
6581         (truncdfsf2, extendsfdf2): Add FPU register case.
6582         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
6583         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
6584         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6585         (pdp11_register_move_cost): Update cost matrix.
6586         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
6587         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
6588         pdp11_secondary_memory_needed): New function.
6589         (pdp11_return_in_memory): Add other float types.
6590         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
6591         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
6592         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
6593         REGISTER_MOVE_COST): Delete.
6594         (BASE_RETURN_VALUE_REG): Add other float types.
6595
6596 2010-10-29  Nick Clifton  <nickc@redhat.com>
6597
6598         * doc/invoke.texi: Document -mam34 and -mtune options.
6599         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
6600         (mn10300_tune_cpu): New variable.
6601         (mn10300_handle_option): Handle -mam34 and -mtune options.
6602         (mn10300_option_override): Convert tune string into tune cpu variable.
6603         (mn10300_legitimate_constant_p): Delete unused local variable.
6604         (is_load_insn): New function.
6605         (is_store_insn): New function.
6606         (mn10300_adjust_schedule_cost): New function.
6607         (TARGET_SCHED_ADJUST_COST): Define.
6608         * config/mn10300/mn10300.opt (mam34): New option.
6609         (mtune): New option.
6610         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
6611         (enum processor_type): Add AM34.
6612         (TARGET_AM34): Define.
6613         * config/mn10300/mn10300.md (attr cpu): Add am34.
6614         Add pipeline description.
6615         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
6616         Remove unneeded alternatives.  Add timing attribute.
6617         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
6618         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
6619         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
6620         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
6621         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
6622         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
6623         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
6624         float_conditional_branch, jump, indirect_jump, tablejump,
6625         call_internal, call_value_internal, zero_extendqisi2_am33,
6626         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
6627         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
6628         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
6629         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
6630         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
6631         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
6632         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
6633         return_internal_regs, store_movm, return, call_next_insn):
6634         Add timing attribute.
6635         (am33_subsi3): Add missing clobber of CC_REG.
6636         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
6637         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
6638         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
6639         extendqisi2): Fix predicates.
6640         (call_internal, call_internal_value): Separate alternatives.
6641         * config/mn10300/t-mn10300: Add AM34 multilib.
6642
6643 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
6644
6645         * config/sh/sh.c (sh_promote_function_mode): Use
6646         default_promote_function_mode if !sh_promote_prototypes.
6647
6648 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
6649
6650         * recog.c (split_all_insns): Remove dead code.
6651
6652 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6653
6654         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6655
6656 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6657
6658         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6659         (FUNCTION_ARG_ADVANCE): Delete.
6660         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
6661         functions.
6662         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
6663         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6664         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6665
6666 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6667
6668         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
6669         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6670         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
6671         Take a const_tree and a bool.
6672         (mcore_function_arg_advance): New function.
6673         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6674
6675 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6676
6677         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
6678         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6679         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
6680         Take a const_tree and a bool.
6681         (mcore_function_arg_advance): New function.
6682         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6683
6684 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6685
6686         * config/h8300/h8300-protos.h (function_arg): Delete.
6687         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6688         * config/h8300/h8300.c (function_arg): Rename to...
6689         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
6690         a bool.
6691         (h8300_function_arg_advance): New function.
6692         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6693
6694 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6695
6696         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
6697         to...
6698         * config/arc/arc.c (arc_function_arg): ...here and...
6699         (arc_function_arg_advance): ...here.  New functions.
6700         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6701
6702 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6703
6704         * config/crx/crx-protos.h (crx_function_arg): Delete.
6705         (crx_function_arg_advance): Delete.
6706         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6707         * config/crx/crx.c (crx_function_arg): Make static.  Take a
6708         const_tree and a bool.
6709         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
6710         (enough_regs_for_param): Take a const_tree.
6711         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6712
6713 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6714
6715         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
6716         (m68hc11_function_arg_advance): Delete.
6717         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
6718         (FUNCTION_ARG_ADVANCE): Delete.
6719         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
6720         Take a const_tree and a bool.
6721         (m68hc11_function_arg_advance): Likewise.
6722         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6723
6724 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6725
6726         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
6727         (xstormy16_function_arg_advance): Delete.
6728         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
6729         (FUNCTION_ARG_ADVANCE): Delete.
6730         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
6731         Take a const_tree and a bool.
6732         (xstormy16_function_arg_advance): Likewise.  Return void, updating
6733         the CUM parameter instead.
6734         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6735
6736 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6737
6738         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
6739         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6740         (MOXIE_FUNCTION_ARG_SIZE): Move to...
6741         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
6742         (moxie_function_arg): Make static.  Take a const_tree and a bool.
6743         (moxie_function_arg_advance): New function.
6744         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6745
6746 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6747
6748         * config/mn10300/mn10300-protos.h (function_arg): Delete.
6749         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
6750         (FUNCTION_ARG_ADVANCE): Delete.
6751         * config/mn10300/mn10300.c (function_arg): Rename to...
6752         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
6753         and a bool.
6754         (mn10300_function_arg_advance): New function.
6755         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6756
6757 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6758
6759         * config/iq2000/iq2000-protos.h (function_arg): Delete.
6760         (function_arg_advance): Delete.
6761         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6762         * config/iq2000/iq2000.c (function_arg): Rename to...
6763         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
6764         a bool.
6765         (function_arg_advance): Rename to...
6766         (iq2000_function_arg_advance): ...this.  Make static.  Take a
6767         const_tree and a bool.
6768         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
6769         iq2000_function_arg.
6770         (iq2000_pass_by_reference): Call iq2000_function_arg).
6771         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6772
6773 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6774
6775         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
6776         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6777         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
6778         const_tree.
6779         (fr30_function_arg): New function.
6780         (fr30_function_arg_advance): New function.
6781         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6782
6783 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6784
6785         * config/frv/frv-protos.h (frv_function_arg): Delete.
6786         (frv_function_arg_advance): Delete.
6787         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6788         * config/frv/frv.c (frv_function_arg): Rename to...
6789         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
6790         (frv_function_arg, frv_function_incoming_arg): New functions.
6791         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
6792         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6793         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6794
6795 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
6796
6797         PR target/46153
6798         * config/i386/sse.md (sse_movhlps_exp): Use destination
6799         returned from ix86_fixup_binary_operands to expand insn.
6800         (sse_movlhps_exp): Ditto.
6801         (sse_loadhps_exp): Ditto.
6802         (sse_loadlps_exp): Ditto.
6803         (sse2_loadhpd_exp): Ditto.
6804         (sse2_loadlpd_exp): Ditto.
6805
6806 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
6807
6808         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
6809         constants in thumb2.
6810
6811 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
6812
6813         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
6814         arithmetics in masking operations.
6815         (contains_muldiv): Likewise.
6816         (try_combine): Likewise.
6817         (find_split_point): Likewise.
6818         (combine_simplify_rtx): Likewise.
6819         (simplify_if_then_else): Likewise.
6820         (simplify_set): Likewise.
6821         (expand_compound_operation): Likewise.
6822         (expand_field_assignment): Likewise.
6823         (make_extraction): Likewise.
6824         (extract_left_shift): Likewise.
6825         (make_compound_operation): Likewise.
6826         (force_to_mode): Likewise.
6827         (make_field_assignment): Likewise.
6828         (reg_nonzero_bits_for_combine): Likewise.
6829         (simplify_shift_const_1): Likewise.
6830         (simplify_comparison): Likewise.
6831
6832 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
6833
6834         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
6835         (ia64_function_arg_advance): Delete.
6836         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6837         (FUNCTION_ARG_ADVANCE): Delete.
6838         * config/ia64/ia64.c (ia64_function_arg): Rename to...
6839         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
6840         bool arguments.
6841         (ia64_function_arg, ia64_function_incoming_arg): New functions.
6842         (ia64_function_arg_advance): Make static.  Take a const_tree and
6843         a bool.
6844         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6845         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6846
6847 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
6848
6849         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
6850         (TARGET_GET_RAW_ARG_MODE): New.
6851         * doc/tm.texi: Regenerate.
6852         * target.def (get_raw_result_mode): New.
6853         (get_raw_arg_mode): New.
6854         * targhooks.c (default_get_reg_raw_mode): New.
6855         * targhooks.h (default_get_reg_raw_mode): New.
6856         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
6857         (apply_result_size): Ditto.
6858         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
6859         (TARGET_GET_RAW_RESULT_MODE): Define.
6860         (TARGET_GET_RAW_ARG_MODE): Ditto.
6861
6862 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6863
6864         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
6865         for newer Solaris 10 release.
6866         (sparc_fallback_frame_state): Likewise.
6867
6868 2010-10-27  Jason Merrill  <jason@redhat.com>
6869
6870         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
6871         variables sooner.
6872
6873 2010-10-27  Jie Zhang  <jie@codesourcery.com>
6874             Maxim Kuvyrkov  <maxim@codesourcery.com>
6875
6876         * haifa-sched.c (ISSUE_POINTS): Remove.
6877         (max_issue): Don't issue more than issue_rate instructions.
6878
6879 2010-10-27  Ian Lance Taylor  <iant@google.com>
6880
6881         PR target/46197
6882         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
6883         (split_stack_return): Replace UNSPEC_STACK_CHECK with
6884         UNSPECV_SPLIT_STACK_RETURN.
6885
6886 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6887
6888         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
6889
6890         * config/i386/i386.c (block_info): New.
6891         (BLOCK_INFO): Likewise.
6892         (call_avx256_state): Likewise.
6893         (check_avx256_stores): Likewise.
6894         (move_or_delete_vzeroupper_2): Likewise.
6895         (move_or_delete_vzeroupper_1): Likewise.
6896         (move_or_delete_vzeroupper): Likewise.
6897         (use_avx256_p): Likewise.
6898         (function_pass_avx256_p): Likewise.
6899         (flag_opts): Add -mvzeroupper.
6900         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
6901         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
6902         is disabled.
6903         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
6904         generate vzeroupper.
6905         (init_cumulative_args): Add an int to indicate caller.  Set
6906         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
6907         based on return type.
6908         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
6909         caller_pass_avx256_p based on argument type.
6910         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
6911         is used, but not returned by caller.
6912         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
6913         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
6914         is used.
6915         (ix86_minimum_alignment): Likewise.
6916         (ix86_expand_special_args_builtin): Set target to
6917         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
6918         (ix86_reorg): Run the vzeroupper optimization if needed.
6919
6920         * config/i386/i386.h (ix86_args): Add caller.
6921         (INIT_CUMULATIVE_ARGS): Updated.
6922         (machine_function): Add use_vzeroupper_p, use_avx256_p,
6923         caller_pass_avx256_p, caller_return_avx256_p,
6924         callee_pass_avx256_p and callee_return_avx256_p.
6925
6926         * config/i386/i386.opt (-mvzeroupper): New.
6927
6928         * config/i386/predicates.md (vzeroupper_operation): Removed.
6929
6930         * config/i386/sse.md (avx_vzeroupper): Removed.
6931         (*avx_vzeroupper): Removed.
6932         (avx_vzeroupper): New.
6933
6934         * doc/invoke.texi: Document -mvzeroupper.
6935
6936 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6937
6938         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
6939         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
6940         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6941
6942 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6943             Olivier Hainque  <hainque@adacore.com>
6944
6945         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
6946         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
6947         fs->signal_frame instead.
6948
6949 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6950
6951         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
6952         parsing of RID_COPIES and RID_IVAR.
6953
6954 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6955
6956         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
6957         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
6958         Do not use objc_set_property_attr, but use local variables
6959         instead.  Detect repeated usage of setter, getter and ivar
6960         attributes.  Improved error processing when a setter name does not
6961         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
6962         that the token is a keyword.  Updated call to
6963         objc_add_property_declaration.
6964
6965 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6966
6967         * c-parser.c (c_parser_objc_at_property): Renamed to
6968         c_parser_objc_at_property_declaration.  Updated calls to
6969         objc_add_property_variable, now objc_add_property_declaration.
6970         Code rewritten to be much more robust in recovering from syntax
6971         errors.  Added comments.
6972         (c_parser_objc_property_attrlist): Removed.
6973         (c_parser_external_declaration): Updated calls to
6974         c_parser_objc_at_property, now
6975         c_parser_objc_at_property_declaration.
6976         (c_parser_objc_methodprotolist): Same change.
6977
6978 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6979
6980         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
6981
6982 2010-10-26  Jan Hubicka  <jh@suse.cz>
6983
6984         * ipa.c (process_references): Enqueue all referenced nodes;
6985         mark as reachable only non-external nodes.
6986         (cgraph_remove_unreachable_nodes): All referenced nodes should
6987         be enqueued; remove bogues node->needed check.
6988
6989 2010-10-26  Jan Hubicka  <jh@suse.cz>
6990
6991         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
6992         to represent OMP.
6993
6994 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6995
6996         * config/i386/i386.md (split_stack_return): Replace
6997         unspec_volatile with unspec.
6998
6999 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
7000
7001         * doc/install.texi: Fix typo in --with-sysroot description.
7002
7003 2010-10-26  Jan Hubicka  <jh@suse.cz>
7004
7005         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7006         Use info provided by linker plugin.
7007
7008 2010-10-26  Jason Merrill  <jason@redhat.com>
7009
7010         * varasm.c (constructor_static_from_elts_p): Don't require a
7011         CONSTRUCTOR to have elements to be suitable for static
7012         initialization.  Allow ARRAY_TYPE as well.
7013
7014 2010-10-26  Jan Hubicka  <jh@suse.cz>
7015
7016         PR middle-end/45736
7017         * cgraph.c (cgraph_set_readonly_flag): Rename to...
7018         (cgraph_set_const_flags) ... this one; get also looping argument;
7019         clear constructor/destructor flags.
7020         (cgraph_set_pure_flag): Likewise.
7021         (cgraph_set_looping_const_or_pure_flag): Remove.
7022         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
7023         to optimize away static ctors/dtors; it does not work on inline clones;
7024         external functions can always be rmeoved.
7025         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
7026         inline clones; in LTO external functions always can go.
7027         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
7028         (cgraph_mark_address_taken_node): Assert that we are not taking
7029         address of inline clone.
7030         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
7031         external functions.
7032         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
7033         address taken.
7034         (ipcp_initialize_node_lattices): Only local functions can be
7035         handled without cloning.
7036         * cgraph.h (cgraph_set_readonly_flag,
7037         cgraph_set_looping_const_or_pure_flag): Remove.
7038         (cgraph_set_const_flag): Declare.
7039         (cgraph_set_pure_flag): Update.
7040         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
7041         flags setting code.
7042         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
7043         look at inline clones; fix handling of external definitions.
7044         (cgraph_postorder): Do not look at inline clones in the first pass.
7045         (function_and_variable_visibility): Drop constructors/destructor
7046         flags at pure and const functions.
7047         * tree-profile.c (tree_profiling): Update.
7048         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
7049         address taken; external functions do not account to whole program size.
7050         (cgraph_decide_inlining): Likewise; do not try to inline
7051         functions already inlined.
7052
7053 2010-10-26  Jie Zhang  <jie@codesourcery.com>
7054
7055         * doc/invoke.texi: Improve documentation of
7056         -fstrict-volatile-bitfields.
7057
7058 2010-10-26  Ira Rosen  <irar@il.ibm.com>
7059
7060         PR tree-optimization/46167
7061         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
7062         is basic block for the statement.
7063
7064 2010-10-26  Paul Koning  <ni1d@arrl.net>
7065
7066         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
7067         current definition of struct_real_format.
7068
7069 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
7070
7071         PR target/44948
7072         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
7073         (ix86_function_arg_boundary): Always align parameters on stack
7074         in 64bit and align parameters with alignment >= 16byte on stack
7075         in 32bit.  Warn alignment change.
7076
7077 2010-10-26  Ian Lance Taylor  <iant@google.com>
7078
7079         PR middle-end/45687
7080         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
7081         offset.
7082
7083 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
7084
7085         Implement opaque-enum-specifiesr for C++0x
7086         * tree.h (ENUM_IS_OPAQUE): New.
7087         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
7088
7089 2010-10-26  Jie Zhang  <jie@codesourcery.com>
7090
7091         * stor-layout.c (layout_decl): Use the field's type to
7092         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
7093         * config/arm/arm.c (arm_override_options): Default to
7094         -fstrict-volatile-bitfields.
7095
7096 2010-10-25  Paul Koning  <ni1d@arrl.net>
7097
7098         * config/pdp11/pdp11.md: Add define_constants for register
7099         numbers, branch offset limits.
7100         * config/pdp11/pdp11.c: Use named constants instead of numbers.
7101         * config/pdp11.pdp11.h: Ditto.
7102
7103 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7104
7105         * configure.ac: Use $cpu_type instead of $target to define the nop.
7106         * configure: Regenerate.
7107
7108 2010-10-25  Jie Zhang  <jie@codesourcery.com>
7109
7110         * combine.c (try_combine): If insns need to be kept around, check that
7111         they can be copied in the merged instruction.
7112
7113 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
7114
7115         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
7116         has been modified.
7117         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
7118         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
7119         it has been modified.
7120
7121 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
7122
7123         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
7124
7125 2010-10-24  Paul Koning  <ni1d@arrl.net>
7126
7127         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
7128         * config/pdp11/pdp11.c (output_jump): Ditto.
7129
7130 2010-10-24  Ian Lance Taylor  <iant@google.com>
7131
7132         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
7133
7134 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
7135
7136         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
7137         least one insn with a locus corresponding to an edge's goto_locus,
7138         disregard non-fallthru edges to the exit block and merge the blocks
7139         created for the same goto_locus.
7140
7141 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
7142
7143         * gcc.c (n_switches_alloc_debug_check): New.
7144         (set_option_handlers): New.
7145         (process_command): Use set_option_handlers.
7146         (do_self_spec): Pass spec-generated options through option handlers.
7147         (main): Also save and restore n_switches_alloc when swapping
7148         switch arrays.
7149
7150 2010-10-23  Richard Henderson  <rth@redhat.com>
7151
7152         PR target/46144
7153         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
7154         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
7155         Honor matching operands when splitting to XOR.
7156
7157 2010-10-23  Ian Lance Taylor  <iant@google.com>
7158
7159         * tree-vrp.c (extract_range_from_binary_expr): If
7160         flag_non_call_exceptions don't eliminate division by zero.
7161         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7162
7163 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
7164
7165         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
7166         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
7167         __ORDER_PDP_ENDIAN__.
7168         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7169         (struct DWstruct): Define based on __BYTE_ORDER__.
7170         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7171         (struct INTstruct): Define based on __BYTE_ORDER__.
7172         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7173         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
7174         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
7175         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7176         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7177         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7178         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7179         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7180         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7181         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7182         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7183         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7184         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7185         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7186         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7187         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7188         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7189         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7190         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7191         * doc/tm.texi: Regenerate.
7192         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
7193         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
7194
7195 2010-10-23  Jie Zhang  <jie@codesourcery.com>
7196
7197         PR rtl-optimization/37360
7198         * config/mips/mips.c (cached_can_issue_more): New local variable.
7199         (mips_sched_reorder_1): New.
7200         (mips_sched_reorder): Use mips_sched_reorder_1.
7201         (mips_sched_reorder2): New.
7202         (mips_variable_issue): Set cached_can_issue_more.
7203         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
7204         instead of mips_sched_reorder.
7205
7206         Revert:
7207         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
7208         PR rtl-optimization/37360
7209         * haifa-sched.c (max_issue): Do not assert that we never issue more
7210         insns than issue_rate.  Add comment.
7211
7212 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
7213
7214         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
7215         location info of the expression.
7216
7217 2010-10-22  DJ Delorie  <dj@redhat.com>
7218
7219         * doc/extend.texi (Named Address Spaces): Document the M32C named
7220         address space.
7221
7222         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
7223         __far address space.
7224         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
7225         "__far" address space for R8C and M16C processor variants.
7226         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
7227         (far_addr_space_p): New.
7228         (encode_pattern_1): Add sign and zero extend support.
7229         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
7230         (m32c_extra_constraint_p2): Add SF constraint.
7231         (m32c_legitimate_address_p): Support __far addresses.
7232         (m32c_addr_space_pointer_mode): New.
7233         (m32c_addr_space_address_mode): New.
7234         (m32c_addr_space_legitimate_address_p): New.
7235         (m32c_addr_space_legitimize_address): New.
7236         (m32c_addr_space_subset_p): New.
7237         (m32c_addr_space_convert): New.
7238         (conversions): Add __far operand patterns.
7239         (m32c_prepare_move): Force constants into registers for __far moves.
7240         (m32c_split_move): __far moves are always split.
7241         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
7242         * config/m32c/mov.md (mov<mode>_far_op1): New.
7243         (mov<mode>_far_op2): New.
7244         (movqi_op): Add __far (SF) support.
7245         (movhi_op): Likewise.
7246         (movsi_splittable): Split A1A0 also.
7247
7248 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7249             Andrew Pinski  <pinskia@gmail.com>
7250
7251         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
7252         * doc/extend.texi: New paragraph
7253
7254 2010-10-22  Paul Koning  <ni1d@arrl.net>
7255
7256         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
7257
7258 2010-10-22  DJ Delorie  <dj@redhat.com>
7259
7260         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
7261
7262 2010-10-22  Paul Koning  <ni1d@arrl.net>
7263
7264         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
7265
7266 2010-10-22  Richard Henderson  <rth@redhat.com>
7267
7268         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
7269         cases for __builtin_fma and __builtin_fmaf.
7270
7271 2010-10-22  Richard Henderson  <rth@redhat.com>
7272
7273         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
7274         NEG+USE for vectors as well.
7275         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
7276         and splitter.
7277
7278 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
7281         SWITCH_CURTAILS_COMPILATION): Remove.
7282         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
7283         * doc/tm.texi: Regenerate.
7284         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
7285
7286 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
7287
7288         * config/i386/bdver1.md: New file.
7289         * config/i386/i386.md (include "bdver1.md"): Invoke the
7290         pipeline description for bdver1.
7291         (x86_sahf_1): Add "bdver1_decode" attribute.
7292         (*cmpfp_i_mixed): Likewise.
7293         (*cmpfp_i_sse): Likewise.
7294         (*cmpfp_i_i387): Likewise.
7295         (*cmpfp_iu_mixed): Likewise.
7296         (*cmpfp_iu_sse): Likewise.
7297         (*cmpfp_iu_387): Likewise.
7298         (*swap<mode>,*swap<mode>_1): Likewise.
7299         (fixuns_trunc<mode>hi2): Likewise.
7300         (fix_trunc<mode>si_sse): Likewise.
7301         (x86_fnstcw_1): Likewise.
7302         (x86_fldcw_1): Likewise.
7303         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
7304         (*floatsi<mode>2_vector_mixed): Likewise.
7305         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
7306         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7307         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7308         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
7309         (*floatsi<mode>2_vector_sse): Likewise.
7310         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
7311         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7312         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7313         (*mul<mode>3_1): Likewise.
7314         (*mulsi3_1_zext): Likewise.
7315         (*mulhi3_1): Likewise.
7316         (*mulqi3_1): Likewise.
7317         (*<u>mul<mode><dwi>3_1): Likewise.
7318         (*<u>mulqihi3_1): Likewise.
7319         (*<s>muldi3_highpart_1): Likewise.
7320         (*<s>mulsi3_highpart_1): Likewise.
7321         (*<s>mulsi3_highpart_zext): Likewise.
7322         (x86_64_shld): Likewise.
7323         (x86_shld): Likewise.
7324         (x86_64_shrd): Likewise.
7325         (x86_shrd): Likewise.
7326         (sqrtxf2): Likewise.
7327         (sqrt_extend<mode>xf2_i387): Likewise.
7328         (*sqrt<mode>2_sse): Likewise.
7329         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
7330         (sse_cvtsi2ssq): Likewise.
7331         (sse_cvtss2si): Likewise.
7332         (sse_cvtss2si_2): Likewise.
7333         (sse_cvtss2siq): Likewise.
7334         (sse_cvtss2siq_2): Likewise.
7335         (sse_cvttss2si): Likewise.
7336         (sse_cvttss2siq): Likewise.
7337         (sse2_cvtpi2pd): Likewise.
7338         (sse2_cvttpd2pi): Likewise.
7339         (sse2_cvtsi2sd): Likewise.
7340         (sse2_cvtsi2sdq): Likewise.
7341         (sse2_cvtsd2si): Likewise.
7342         (sse2_cvtsd2si_2): Likewise.
7343         (sse2_cvtsd2siq): Likewise.
7344         (sse2_cvtsd2siq_2): Likewise.
7345         (sse2_cvttsd2si): Likewise.
7346         (sse2_cvttsd2siq): Likewise.
7347         (*sse2_cvtpd2dq): Likewise.
7348         (*sse2_cvttpd2dq): Likewise.
7349         (sse2_cvtsd2ss): Likewise.
7350         (sse2_cvtss2sd): Likewise.
7351         (*sse2_cvtpd2ps): Likewise.
7352         (sse2_cvtps2pd): Likewise.
7353
7354 2010-10-22  Richard Guenther  <rguenther@suse.de>
7355
7356         PR middle-end/46137
7357         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
7358         remove the virtual operands if they are not needed.
7359
7360 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
7361
7362         * config/i386/i386.c (processor_costs bdver1_cost): Update
7363         insn costs and architectural parameters for bdver1.
7364
7365 2010-10-22  Richard Guenther  <rguenther@suse.de>
7366
7367         * gimple.h (gimple_register_canonical_type): Declare.
7368         * gimple.c (gimple_canonical_types): New global hashtable.
7369         (struct gimple_type_leader_entry_s): New type.
7370         (gimple_type_leader): New global cache.
7371         (gimple_lookup_type_leader): New function.
7372         (gtc_visit): Query the proper cache.
7373         (gimple_types_compatible_p): Likewise.
7374         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
7375         (gimple_canonical_type_eq): New function.
7376         (gimple_register_canonical_type): Likewise.
7377         (print_gimple_types_stats): Adjust for gimple_canonical_types.
7378         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
7379         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
7380         gimple_types_compatible_p for LTO.
7381
7382 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
7383
7384         PR target/46098
7385         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
7386         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
7387         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
7388         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
7389         (<sse>_movu<ssemodesuffix>): New expander.
7390         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
7391         (avx_movdqu<avxmodesuffix>): New expander.
7392         (*sse2_movdqu): Rename from sse2_movdqu.
7393         (sse2_movdqu): New expander.
7394
7395 2010-10-22  Richard Guenther  <rguenther@suse.de>
7396
7397         PR tree-optimization/45720
7398         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7399         Handle negative step.
7400         (vect_enhance_data_refs_alignment): Likewise.
7401         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
7402         (vect_create_cond_for_align_checks): Likewise.
7403         (vect_create_cond_for_alias_checks): Likewise.
7404
7405 2010-10-22  Ira Rosen  <irar@il.ibm.com>
7406
7407         PR tree-optimization/46126
7408         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
7409         vectorizable_shift in case of basic block vectorization.
7410
7411 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
7412
7413         * target.h (enum opt_levels, struct default_options): New.
7414         * target.def (handle_ofast): Remove hook.
7415         (target_option.optimization): Change to
7416         target_option.optimization_table.
7417         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
7418         TARGET_OPTION_OPTIMIZATION_TABLE.
7419         (CAN_DEBUG_WITHOUT_FP): Remove.
7420         * doc/tm.texi: Regenerate.
7421         * opts.c (maybe_default_option, maybe_default_options,
7422         default_options_table): New.
7423         (default_options_optimization): Take extra parameters.  Don't
7424         assert that global_options and global_options_set are in use.  Use
7425         maybe_default_options.
7426         (decode_options): Pass extra parameters to
7427         default_options_optimization.
7428         * common.opt (falign-loops): Use value 0 with Var.
7429         (frerun-cse-after-loop, ftree-ter): Remove Init.
7430         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
7431         TARGET_OPTION_OPTIMIZATION): Remove.
7432         * targhooks.c (empty_optimization_table): New.
7433         * targhooks.h (empty_optimization_table): Declare.
7434         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
7435         * config/alpha/alpha.c (alpha_option_optimization_table,
7436         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7437         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
7438         * config/arm/arm.c (arm_option_optimization: Change to
7439         arm_option_optimization_table.
7440         (TARGET_OPTION_OPTIMIZATION): Change to
7441         TARGET_OPTION_OPTIMIZATION_TABLE.
7442         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
7443         * config/avr/avr.c (avr_option_optimization_table,
7444         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7445         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
7446         * config/cris/cris.c (cris_option_optimization): Change to
7447         cris_option_optimization_table.
7448         (TARGET_OPTION_OPTIMIZATION): Change to
7449         TARGET_OPTION_OPTIMIZATION_TABLE.
7450         * config/crx/crx.c (crx_option_optimization): Change to
7451         crx_option_optimization_table.
7452         (TARGET_OPTION_OPTIMIZATION): Change to
7453         TARGET_OPTION_OPTIMIZATION_TABLE.
7454         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
7455         * config/fr30/fr30.c (fr30_option_optimization_table,
7456         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7457         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
7458         * config/frv/frv.c (frv_option_optimization_table,
7459         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7460         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
7461         * config/h8300/h8300.c (h8300_option_optimization): Change to
7462         h8300_option_optimization_table.
7463         (TARGET_OPTION_OPTIMIZATION): Change to
7464         TARGET_OPTION_OPTIMIZATION_TABLE.
7465         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
7466         * config/i386/i386.c (ix86_option_optimization): Change to
7467         ix86_option_optimization_table.
7468         (TARGET_OPTION_OPTIMIZATION): Change to
7469         TARGET_OPTION_OPTIMIZATION_TABLE.
7470         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7471         as initializer.
7472         * config/ia64/ia64.c (ia64_option_optimization): Change to
7473         ia64_option_optimization_table.
7474         (TARGET_OPTION_OPTIMIZATION): Change to
7475         TARGET_OPTION_OPTIMIZATION_TABLE.
7476         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
7477         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
7478         initializer.
7479         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
7480         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7481         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
7482         * config/lm32/lm32.c (lm32_option_optimization_table,
7483         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7484         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
7485         * config/m32r/m32r.c (m32r_option_optimization): Change to
7486         m32r_option_optimization_table.
7487         (TARGET_OPTION_OPTIMIZATION): Change to
7488         TARGET_OPTION_OPTIMIZATION_TABLE.
7489         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
7490         CAN_DEBUG_WITHOUT_FP): Remove.
7491         * config/mcore/mcore.c (mcore_option_optimization): Change to
7492         mcore_option_optimization_table.
7493         (TARGET_OPTION_OPTIMIZATION): Change to
7494         TARGET_OPTION_OPTIMIZATION_TABLE.
7495         * config/mep/mep.c (mep_option_optimization): Change to
7496         mep_option_optimization_table.
7497         (TARGET_OPTION_OPTIMIZATION): Change to
7498         TARGET_OPTION_OPTIMIZATION_TABLE.
7499         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
7500         * config/microblaze/microblaze.c
7501         (microblaze_option_optimization_table,
7502         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7503         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
7504         * config/mips/mips.c (mips_option_optimization_table,
7505         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7506         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
7507         * config/mmix/mmix.c (mmix_option_optimization): Change to
7508         mmix_option_optimization_table.
7509         (TARGET_OPTION_OPTIMIZATION): Change to
7510         TARGET_OPTION_OPTIMIZATION_TABLE.
7511         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
7512         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
7513         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7514         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
7515         * config/pa/pa.c (pa_option_optimization_table,
7516         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7517         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
7518         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
7519         pdp11_option_optimization_table.
7520         (TARGET_OPTION_OPTIMIZATION): Change to
7521         TARGET_OPTION_OPTIMIZATION_TABLE.
7522         * config/picochip/picochip.c (picochip_option_optimization_table,
7523         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7524         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
7525         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
7526         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7527         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
7528         * config/rx/rx.c (rx_option_optimization_table,
7529         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7530         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
7531         * config/s390/s390.c (s390_option_optimization): Change to
7532         s390_option_optimization_table.
7533         (s390_option_override): Update comment.
7534         (TARGET_OPTION_OPTIMIZATION): Change to
7535         TARGET_OPTION_OPTIMIZATION_TABLE.
7536         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
7537         * config/score/score.c (score_option_optimization_table,
7538         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7539         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
7540         * config/sh/sh.c (sh_option_optimization): Change to
7541         sh_option_optimization_table.
7542         (TARGET_OPTION_OPTIMIZATION): Change to
7543         TARGET_OPTION_OPTIMIZATION_TABLE.
7544         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
7545         (sh_option_override, expand_block_move, multcosts, find_barrier,
7546         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
7547         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
7548         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
7549         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
7550         instead of TARGET_SMALLCODE.
7551         * config/sh/sh.opt (mspace): Make into an alias for -Os.
7552         * config/sparc/sparc.c (sparc_option_optimization_table,
7553         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7554         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
7555         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
7556         TARGET_OPTION_OPTIMIZATION_TABLE): New.
7557         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
7558         * config/v850/v850.c (v850_option_optimization): Change to
7559         v850_option_optimization_table.
7560         (TARGET_OPTION_OPTIMIZATION): Change to
7561         TARGET_OPTION_OPTIMIZATION_TABLE.
7562         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
7563         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
7564         xtensa_option_optimization_table.
7565         (TARGET_OPTION_OPTIMIZATION): Change to
7566         TARGET_OPTION_OPTIMIZATION_TABLE.
7567         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
7568
7569 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
7570
7571         Based on the CFString implementation in FSF apple/trunk branch.
7572
7573         * target.def (objc_construct_string): New Hook.
7574         * doc/tm.texi (objc_construct_string): Document.
7575         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
7576         * config/t-darwin: Amend build rules for darwin.o.
7577         * config/darwin.opt: Add cfstrings flags.
7578         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
7579         (darwin_objc_construct_string): New.
7580         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
7581         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
7582         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
7583         (darwin_fold_builtin): Likewise.
7584         (darwin_build_constant_cfstring): Likewise.
7585         (darwin_objc_construct_string): Likewise.
7586         (darwin_cfstring_p): Likewise.
7587         (darwin_enter_string_into_cfstring_table): Likewise.
7588         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
7589         * config/darwin.c (darwin_running_cxx): New var.
7590         (machopic_select_section): Return cfstring_constant_object_section.
7591         (darwin_override_options): Set darwin_running_cxx.
7592         (add_builtin_field_decl): New.
7593         (darwin_init_cfstring_builtins): New.
7594         (darwin_build_constant_cfstring): New.
7595         (darwin_fold_builtin): New.
7596         (cfstring_hash): New.
7597         (cfstring_eq): New.
7598         (darwin_enter_string_into_cfstring_table): New.
7599         * config/darwin-sections.def (cfstring_constant_object_section): New.
7600         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
7601         (TARGET_OBJC_CONSTRUCT_STRING): Define.
7602
7603 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7604
7605         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
7606         TYPE_STUB_DECL instead of TREE_CHAIN.
7607         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
7608         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
7609         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
7610         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
7611         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
7612         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
7613         Likewise.
7614         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
7615
7616 2010-10-22  Jie Zhang  <jie@codesourcery.com>
7617
7618         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
7619         (copy_blkmode_from_reg): Likewise.
7620         (read_complex_part): Likewise.
7621         (expand_expr_real_1): Calculate packedp and pass it to
7622         extract_bit_field.
7623         * expr.h (extract_bit_field): Update declaration.
7624         * calls.c (store_unaligned_arguments_into_pseudos): Update call
7625         to extract_bit_field.
7626         * expmed.c (extract_fixed_bit_field): Update calls to
7627         extract_fixed_bit_field.
7628         (store_split_bit_field): Likewise.
7629         (extract_bit_field_1): Add new argument packedp.
7630         (extract_bit_field): Add new argument packedp.
7631         (extract_fixed_bit_field): Add new argument packedp and let
7632         packed attribute override volatile.
7633         * stmt.c (expand_return): Update call to extract_bit_field.
7634
7635 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7636
7637         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
7638
7639 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7640
7641         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
7642         of gcc_checking_assert.
7643         * sel-sched.c (code_motion_process_successors): Likewise.
7644
7645 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
7646
7647         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
7648         when stopping because of a different locus on edge or insn.
7649         (try_optimize_cfg): Add comment.
7650         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
7651         block is a forwarder block, propagate locus on the edge.
7652         (cfg_layout_merge_blocks): Likewise.
7653
7654 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
7655
7656         PR target/45946
7657         * config/i386/i386.md (*pushti2): New insn pattern.
7658         (pushti2 splitter): New insn splitter.
7659         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
7660         DWI mode iterator.
7661
7662 2010-10-21  Paul Koning  <ni1d@arrl.net>
7663
7664         * config/pdp11/pdp11-protos.md (arith_operand,
7665         const_immediate_operand, expand_shift_operand,
7666         immediate15_operand): Delete
7667         * config/pdp11/pdp11.c: Ditto.
7668         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
7669         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
7670         EXTRA_CONSTRAINT): Delete.
7671         * config/pdp11/pdp11.md (various): Use standard constraints
7672         instead of removed ones.
7673         * config/pdp11/constraints.md: New file.
7674         * config/pdp11/predicates.md: New file.
7675
7676 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
7677
7678         PR c/45834
7679         * alias.c (true_dependence_1): Remove obsolete check for QImode.
7680         (may_alias_p): Ditto.
7681
7682 2010-10-21  Martin Jambor  <mjambor@suse.cz>
7683
7684         PR tree-optimization/45875
7685         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
7686
7687 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7688
7689         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
7690         variables.
7691         (create_new_def_for): Likewise.
7692
7693 2010-10-21  Nick Clifton  <nickc@redhat.com>
7694
7695         * config/mn10300/mn10300.c: Fold code to 80-character width.
7696         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7697         MEM, CONST_INT and CONST_DOUBLE.
7698         (targetm): Move initialization to end of file.
7699         (print_operand): Rename to mn10300_print_operand.
7700         (print_operand_address): Rename to mn10300_print_operand_address.
7701         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
7702         (expand_prologue): Rename to mn10300_expand_prologue.
7703         (expand_epilogue): Rename to mn10300_expand_epilogue.
7704         (initial_offset): Rename to mn10300_initial_offset.
7705         (function_arg): Rename to mn10300_function_arg.
7706         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
7707         (symbolic_operand): Rename to mn10300_symbolic_operand.
7708         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
7709         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
7710         * config/mn10300/mn10300-protos.h: Update prototypes.
7711         * config/mn10300/mn10300.h: Fold code to 80-character width.
7712         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7713         MEM, CONST_INT and CONST_DOUBLE.
7714         (CPP_SPEC): Move to...
7715         (TARGET_CPU_CPP_BUILTINS): ... here.
7716         * config/mn10300/mn10300.md: Fold code to 80-character width.
7717         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7718         MEM, CONST_INT and CONST_DOUBLE.
7719
7720 2010-10-21  Ira Rosen  <irar@il.ibm.com>
7721
7722         PR tree-optimization/46049
7723         PR tree-optimization/46052
7724         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
7725         (vect_get_slp_defs): Add arguments.
7726         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
7727         operands to vect_get_slp_defs.
7728         (vectorizable_reduction): Fix comment, pass scalar operands to
7729         vect_get_slp_defs.
7730         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
7731         type to determine number of units in the created vector.
7732         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
7733         (vectorizable_conversion): Fix comment.
7734         (vectorizable_shift): New function.
7735         (vectorizable_operation): Move code that handles shifts to
7736         vectorizable_shift.
7737         (vectorizable_type_demotion): Fix comment, pass scalar operands to
7738         vect_get_slp_defs.
7739         (vectorizable_type_promotion, vectorizable_store): Likewise.
7740         (vectorizable_condition): Fix comment.
7741         (vect_analyze_stmt): Call vectorizable_shift.
7742         (vect_transform_stmt): Likewise.
7743         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
7744         Use it as the operand to create vectors for, except reduction
7745         initial definition and store.  Use operands type.
7746         (vect_get_slp_defs): Add new arguments.  Pass them to
7747          vect_get_constant_vectors.
7748
7749 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7750
7751         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
7752         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
7753         * cfghooks.c (fixup_reorder_chain): Likewise.
7754         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
7755         * cgraph.c (cgraph_add_thunk): Likewise.
7756         (cgraph_create_edge_1): Likewise.
7757         (cgraph_create_virtual_clone): Likewise.
7758         * ddg.c (add_cross_iteration_register_deps): Likewise.
7759         * dwarf2out.c (modified_type_die): Likewise.
7760         * emit-rtl.c (set_mem_alias_set): Likewise.
7761         * ggc-zone.c (zone_allocate_marks): Likewise.
7762         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
7763         * gimple.c (iterative_hash_gimple_type): Likewise.
7764         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
7765         (create_single_exit_edge): Likewise.
7766         * haifa-sched.c (choose_ready): Likewise.
7767         * lto-streamer-in.c (input_gimple_stmt): Likewise.
7768         * passes.c (execute_todo): Likewise.
7769         * sched-ebb.c (begin_schedule_ready): Likewise.
7770         * sel-sched.c (code_motion_process_successors): Likewise.
7771         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
7772         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
7773         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
7774         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
7775         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
7776         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
7777         (ssa_conflicts_add): Likewise.
7778         * tree-ssa-copy.c (replace_exp): Likewise.
7779         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
7780         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
7781         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7782         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
7783         (compute_antic): Likewise.
7784         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
7785         (add_dependence): Likewise.
7786         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
7787         * tree-vrp.c (supports_overflow_infinity): Likewise.
7788         (make_overflow_infinity, negative_overflow_infinity): Likewise.
7789         (avoid_overflow_infinity, register_new_assert_for): Likewise.
7790         (process_assert_insertions_for): Likewise.
7791         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
7792         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
7793         (intersect_loc_chains, variable_merge_over_cur): Likewise.
7794
7795 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7796
7797         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
7798         * reload1.c (has_nonexceptional_receiver): Likewise.
7799         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
7800         (create_new_def_for): Likewise.
7801         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7802         (merge_phi_nodes): Likewise.
7803         (has_abnormal_incoming_edge_p): Delete.
7804
7805 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7806
7807         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
7808
7809 2010-10-21  Richard Guenther  <rguenther@suse.de>
7810             Michael Matz  <matz@suse.de>
7811
7812         PR tree-optimization/45764
7813         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7814         Adjust initial misalignment for negative DR_STEP.
7815         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
7816         do not have the same alignment over the whole iteration domain.
7817
7818 2010-10-21  Richard Guenther  <rguenther@suse.de>
7819
7820         PR tree-optimization/46111
7821         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
7822
7823 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7824
7825         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
7826
7827 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7828
7829         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
7830         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
7831
7832 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7833
7834         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
7835         signal_frame.
7836         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
7837
7838 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7839
7840         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
7841         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
7842
7843 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
7844
7845         * basic-block.h (find_fallthru_edge): Define.
7846         * cfgcleanup.c (merge_blocks_move): Use it.
7847         (try_crossjump_bb): Likewise.
7848         * cfglayout.c (fixup_reorder_chains): Likewise.
7849         (fixup_fallthru_exit_predecessor): Likewise.
7850         * cfgrtl.c (rtl_split_edge): Likewise.
7851         (rtl_verify_flow_info): Likewise.
7852         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7853         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
7854         * ifcvt.c (block_fallthru): Likewise.
7855         * reload1.c (fixup_abnormal_edges): Likewise.
7856         * sched-ebb.c (being_schedule_ready): Likewise.
7857         (schedule_ebb): Likwise.
7858         * sched-rgn.c (find_single_block_region): Likewise.
7859         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
7860         * tree-complex.c (expand_complex_move): Likewise.
7861         * sched-int.h (find_fallthru_edge): Rename to...
7862         (find_fallthru_edge_from): ...this.
7863         * haifa-sched.c (find_fallthru_edge): Rename to...
7864         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
7865         (init_before_recovery): Call find_fallthru_edge_from.
7866         * sel-sched-ir.c (merge_fences): Likewise.
7867         * sel-sched.c (in_fallthru_bb_p): Likewise.
7868         (move_cond_jump): Likewise.
7869
7870 2010-10-20  Paul Koning  <ni1d@arrl.net>
7871
7872         * config/pdp11/pdp11.md (various): Fix conditions on a number of
7873         insn to check for target 11/40 or higher.
7874
7875 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7876
7877         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
7878         bool instead of a tree.
7879         (c_parser_objc_method_decl): Added bool argument.  Updated call to
7880         objc_build_method_signature.
7881         (c_parser_objc_method_definition): Do not call
7882         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
7883         c_parser_objc_method_decl and objc_start_method_definition.
7884         (c_parser_objc_methodproto): Do not call objc_set_method_type.
7885         Updated calls to c_parser_objc_method_type,
7886         c_parser_objc_method_decl and objc_add_method_declaration.
7887
7888 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
7889
7890         PR tree-optimization/45919
7891         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
7892         array members.
7893
7894         PR tree-optimization/46066
7895         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
7896         instead of gsi_last_bb.
7897
7898 2010-10-20  DJ Delorie  <dj@redhat.com>
7899
7900         * config/m32c/m32c.c (m32c_option_override): Always disable
7901         function-cse in 16-bit mode.  Indirect calls are always worse than
7902         direct calls as there is no 16-bit indirect call opcode.
7903         (m32c_override_options_after_change): New, likewise.
7904
7905 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
7906
7907         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
7908         emitting the conditional move in the inner mode of the SUBREG.
7909
7910 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
7911
7912         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
7913         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
7914         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7915         (ia64_preferred_reload_class): Make static.  Change rclass argument
7916         and result types from enum reg_class to reg_class_t.
7917
7918 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
7919
7920         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
7921         call for single operand expression.
7922
7923 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7924
7925         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
7926         if there is a call statement to pure or const function in the block.
7927
7928 2010-10-20  Paul Koning  <pkoning@equallogic.com>
7929
7930         Fix several build errors for pdp11 target.
7931         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
7932         (cbranchdf4): Conditional on TARGET_FPU.
7933         (movdf): Ditto; correct alternatives check.
7934         (movmemhi): Fix predicate and constraint.
7935         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
7936
7937 2010-10-20  Richard Guenther  <rguenther@suse.de>
7938
7939         PR lto/45667
7940         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
7941         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
7942         (verify_gimple_assign_single): Disable ADDR_EXPR type check
7943         when in LTO.
7944
7945 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7946
7947         PR fortran/42169
7948         * ira-emit.c (store_can_be_removed_p): Return false instead of
7949         gcc_unreachable.
7950
7951 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
7952
7953         * fold-const.c (fold_binary_loc): New transformation.
7954
7955 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7956
7957         PR target/46085
7958         * config/i386/sse.md (reduc_splus_v8sf): Updated.
7959         (reduc_splus_v4df): Likewise.
7960
7961 2010-10-20  Richard Guenther  <rguenther@suse.de>
7962
7963         PR tree-optimization/45860
7964         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
7965         conditional store replacement for non-register type stores.
7966
7967 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7968
7969         * stor-layout.c (skip_simple_constant_arithmetic): New function.
7970         (self_referential_size): Use it instead of skip_simple_arithmetic.
7971
7972 2010-10-20  Olivier Hainque  <hainque@adacore.com>
7973
7974         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
7975         If the current function calls eh_return, claim live all registers
7976         that we need to check for liveness otherwise.
7977
7978 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7979
7980         * c-decl.c (c_write_global_declarations): Call
7981         objc_write_global_declarations when compiling Objective-C.
7982         * c-lang.c (finish_file): Removed.
7983
7984 2010-10-19  DJ Delorie  <dj@redhat.com>
7985
7986         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
7987         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
7988         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7989         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7990         * doc/tm.texi: Regenerate.
7991         * targhooks.h (default_label_align_after_barrier_max_skip,
7992         default_loop_align_max_skip, default_label_align_max_skip,
7993         default_jump_align_max_skip): Declare.
7994         * target.def (label_align_after_barrier_max_skip): New.
7995         (loop_align_max_skip): New.
7996         (label_align_max_skip): New.
7997         (jump_align_max_skip): New.
7998         * system.h (poison): Add those macros to the list.
7999         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
8000         (LOOP_ALIGN_MAX_SKIP): Remove.
8001         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
8002         (JUMP_ALIGN_MAX_SKIP): Remove.
8003         (default_label_align_after_barrier_max_skip): New.
8004         (default_loop_align_max_skip): New.
8005         (default_label_align_max_skip): New.
8006         (default_jump_align_max_skip): New.
8007         (compute_alignments): Use the new hooks.
8008         (shorten_branches): Likewise.
8009
8010 2010-10-19  Richard Henderson  <rth@redhat.com>
8011
8012         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
8013         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
8014         (fma4i_fmadd_<mode>): New.
8015         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
8016         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
8017         standard fma patterns.
8018         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
8019         enable for FMA.
8020         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
8021         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
8022         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
8023
8024 2010-10-19  Paul Koning  <pkoning@equallogic.com>
8025
8026         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
8027         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
8028
8029 2010-10-19  Richard Henderson  <rth@redhat.com>
8030
8031         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
8032         (fmadf4, *fmsdf4, *nfmadf4): New.
8033         (fmaxf4, *fmsxf4, *nfmaxf4): New.
8034
8035 2010-10-19  Michael Eager  <eager@eagercon.com>
8036
8037         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
8038         Use sjlj unwind info for exceptions.
8039
8040 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
8041
8042         PR fortran/43414
8043         * dwarf2out.c (add_calling_convention_attribute): Flag main
8044         Fortran subroutine with DW_AT_main_subprogram.
8045
8046 2010-10-19  Nick Clifton  <nickc@redhat.com>
8047
8048         * config/rx/rx.c (rx_function_value): Small integer types are
8049         promoted to SImode.
8050         (rx_promote_function_mode): New function.
8051         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8052
8053 2010-10-19  Nick Clifton  <nickc@redhat.com>
8054
8055         * config/mep/mep.c (mep_print_operand): Use
8056         targetm.strip_name_encoding.
8057         (mep_output_aligned_common): Likewise.
8058
8059 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
8060
8061         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
8062
8063 2010-10-18  Richard Henderson  <rth@redhat.com>
8064
8065         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
8066         (fma (neg a) (neg b) c) and (fma a (neg b) c).
8067
8068 2010-10-18  Richard Henderson  <rth@redhat.com>
8069
8070         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
8071         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
8072         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
8073         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
8074         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
8075         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
8076         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
8077         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
8078         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
8079         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
8080         (bdesc_multi_arg): Remove the corresponding builtins.
8081         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
8082         (UNSPEC_FMA4_FMSUBADD): Remove.
8083         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
8084         * config/i386/sse.md (FMA4MODEF4): Remove.
8085         (FMAMODE): Add.
8086         (fma<mode>4): New expander.
8087         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
8088         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
8089         (*fma4i_fmsub_<mode>): Similarly.
8090         (*fma4i_fnmadd_<mode>): Similarly.
8091         (*fma4i_fnmsub_<mode>): Similarly.
8092         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
8093         with the first operand.
8094         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
8095         of explicit arithmetic.  Macroize with AVXMODEF2P.
8096         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
8097         (xop_frcz<mode>2): Macroize with FMAMODE.
8098         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
8099         the first operand.
8100         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
8101         extra negations.
8102         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
8103         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
8104         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
8105         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
8106         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
8107         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
8108         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
8109         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
8110
8111 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
8112
8113         PR rtl-optimization/45966
8114         * combine.c (try_combine): If added_sets_2, deal with the case
8115         where i0 feeds i1 and i1 feeds i2.
8116
8117 2010-10-18  Jan Hubicka  <jh@suse.cz>
8118
8119         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
8120         preserve flags before trying to guess on visibility.
8121         (varpool_externally_visible_p): New function.
8122         (function_and_variable_visibility): Use it.
8123
8124 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8125
8126         Implemented parsing @synthesize and @dynamic for Objective-C.
8127         * c-parser.c (c_parser_external_declaration): Recognize
8128         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8129         (c_parser_objc_at_synthesize_declaration): New.
8130         (c_parser_objc_at_dynamic_declaration): New.
8131
8132 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8133
8134         * c-parser.c (c_parser_objc_class_declaration): After finding an
8135         error, parse the whole declaration then reset parser->error.
8136
8137 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8138
8139         PR target/46041
8140         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
8141         * builtins.c (mode_has_fma): Ditto.
8142
8143 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
8144
8145         PR target/36898
8146         PR middle-end/43760
8147         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
8148
8149 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
8150
8151         * config/i386/i386.c (ix86_option_override_internal): Define and
8152         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
8153         default.
8154         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8155         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
8156
8157 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8158
8159         Merge from 'apple/trunk' branch on FSF servers.
8160         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
8161         following Objective-C change:
8162
8163         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
8164
8165         Radar 4301047
8166         * c-parse.in (objc_quals): Build objc qualifier list same way
8167         as gcc-3.3
8168
8169 2010-10-18  Jan Hubicka  <jh@suse.cz>
8170
8171         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
8172         function_and_variable_visibility): Revert accidental commit.
8173
8174 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8175
8176         Merge from 'apple/trunk' branch on FSF servers.
8177         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
8178         the following Objective-C change:
8179
8180         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
8181
8182         Radar 4204796
8183         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
8184         'volatilized' type used in a typeof operator.
8185
8186 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
8187
8188         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
8189         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
8190         rewrite modelled on gimple_purge_dead_eh_edges.
8191         (gimple_purge_all_dead_abnormal_call_edges): New function.
8192         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
8193         directly instead of through gimple_purge_dead_abnormal_call_edges.
8194         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
8195         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
8196         removed AB side-effects from one of its statements.
8197         (init_pre): Initialize need_ab_cleanup.
8198         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
8199         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
8200
8201 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
8202
8203         PR c/46015
8204         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
8205         on computed goto argument.
8206
8207 2010-10-18  Richard Guenther  <rguenther@suse.de>
8208
8209         PR tree-optimization/45967
8210         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
8211         (could_have_pointers): Likewise.
8212         (handle_rhs_call, handle_const_call, handle_pure_call,
8213         find_func_aliases, intra_create_variable_infos): Remove calls to them.
8214         (struct fieldoff): Add must_have_pointers field.
8215         (type_must_have_pointers): New function.
8216         (field_must_have_pointers): Likewise.
8217         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
8218         Adjust field merging.
8219         (create_function_info_for): May-have-pointers of varinfo is
8220         almost always true.
8221         (create_variable_info_for_1): Likewise.
8222
8223 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
8224
8225         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
8226         of operands to vec_concat.
8227
8228 2010-10-18  Richard Guenther  <rguenther@suse.de>
8229
8230         PR lto/44950
8231         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
8232         also clear references to entries of it.
8233
8234 2010-10-18  Andi Kleen  <ak@linux.intel.com>
8235
8236         PR other/43448
8237         * gccbug.in: Remove.
8238         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
8239         (doc, distclean, install-common): Remove reference to gccbug.
8240         * configure: Regenerate.
8241         * configure.ac (all_outputs): Remove gccbug.
8242         * doc/configfiles.texi: Remove references to gccbug.
8243         * doc/sourcebuild.texi: Dito.
8244
8245 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
8246
8247         PR middle-end/46019
8248         * fold-const.c (fold_binary_loc): If integer_pow2p has
8249         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
8250
8251 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
8252             Jeremie Salvucci  <jeremie.salvucci@free.fr>
8253
8254         * gengtype.c (verbosity_level): Add variable.
8255         (set_gc_used): Count variables for verbosity.
8256         (close_output_files): Backing up files, counting written ones
8257         verbosily.
8258         (write_types): Count emitted functions for verbosity. Added
8259         debug messages.
8260         (write_enum_defn): Count structures for verbosity. Added debug
8261         messages.
8262         (gengtype_long_options): Add "verbose" & "backupdir".
8263         (print_usage): Ditto.
8264         (main): Verbose display of parsed files.
8265
8266         * gengtype.h (verbosity_level): Add declaration.
8267
8268 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
8269
8270         * gengtype.c (parse_program_options): Add allocation of
8271         plugin_files, and correct test on nb_plugin_files.
8272
8273 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8274
8275         Merge from 'apple/trunk' branch on FSF servers.
8276
8277         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
8278
8279         Radar 4133425
8280         * c-decl.c (undeclared_variable): Issue diagnostic on
8281         private 'ivar' access.
8282
8283 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
8284
8285         PR target/46051
8286         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
8287         generated sequence to match *avx_vperm2f128<mode>_nozero.
8288         (vec_interleave_lowv4df): Ditto.
8289         (vec_interleave_highv8sf): Ditto.
8290         (vec_interleave_lowv8sf): Ditto.
8291
8292 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
8293
8294         * libgcov.c (create_file_directory): Enable it for win32 case.
8295         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
8296         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
8297         (GCOV_PREFIX_SKIP): Likewise.
8298
8299 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8300
8301         * doc/objc.texi (GNU Objective-C runtime API): New section.
8302         (Modern GNU Objective-C runtime API): New section.
8303         (Traditional GNU Objective-C runtime API): New section.
8304         (Executing code before main): Mention that this section is
8305         specific to the GNU Objective-C runtime.
8306         (Garbage Collection): Same.
8307
8308 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
8309
8310         * c-parser.c (c_parser_for_statement): Move initialization of
8311         cond and incr before if.
8312
8313 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
8314
8315         * target.def (preferred_output_reload_class): New hook.
8316         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
8317         * doc/tm.texi: Regenerate.
8318         * targhooks.c (default_preferred_output_reload_class): New function.
8319         * targhooks.h (default_preferred_output_reload_class): Declare.
8320         * reload.c (find_dummy_reload): Change rclass argument type from
8321         enum reg_class to reg_class_t. Change this_alternative array type
8322         from enum reg_class to reg_class_t.
8323         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8324         (push_reload): Change preferred_class variable type to reg_class_t.
8325         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8326         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
8327         argument type from enum reg_class to reg_class_t. Use
8328         HARD_REGISTER_NUM_P predicate.
8329         * recog.h (reg_fits_class_p): Update prototype.
8330
8331         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8332         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
8333         Remove.
8334         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
8335         static. Change regclass argument and result types from enum reg_class
8336         to reg_class_t.
8337         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8338
8339 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
8340
8341         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
8342         visibility enum, and handle @package.
8343
8344 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8345
8346         * doc/objc.texi (What you can and what you cannot do in +load):
8347         Document that sending messages to constant string objects in +load
8348         is not guaranteed to work.
8349
8350 2010-10-16  Jan Hubicka  <jh@suse.cz>
8351
8352         PR middle-end/44206
8353         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
8354         existence of refrences before removing the function.
8355
8356 2010-10-16  Jan Hubicka  <jh@suse.cz>
8357
8358         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
8359         only_called_at_startup and only_called_at_exit.
8360         (cgraph_propagate_frequency): Compute only_called_at_startup and
8361         only_called_at_exit.
8362         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
8363         only_called_at_exit.
8364         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
8365         flags.
8366         * predict.c (compute_function_frequency): Initialize the new flags.
8367
8368 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
8369
8370         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
8371         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
8372         on the bounds of its domain.
8373         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
8374
8375 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
8376
8377         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
8378         * config/avr/avr-protos.h (preferred_reload_class): Remove.
8379         * config/avr/avr.c (preferred_reload_class): Remove.
8380         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
8381         * config/pa/pa.c (emit_move_sequence): Update comment
8382         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
8383         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
8384         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
8385         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
8386         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
8387         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
8388         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
8389         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
8390         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
8391         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
8392         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
8393         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
8394         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
8395
8396 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
8397
8398         * opts.c (set_fast_math_flags,
8399         set_unsafe_math_optimizations_flags): Make static.
8400         * toplev.h (set_fast_math_flags,
8401         set_unsafe_math_optimizations_flags): Remove prototypes.
8402
8403 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
8404
8405         * config/arm/arm.c (arm_option_optimization): Set
8406         flag_section_anchors to 1 not 2.
8407         * config/i386/i386.c (ix86_option_override_internal): Check
8408         global_options_set.x_flag_zee and
8409         global_options_set.x_flag_omit_frame_pointer.
8410         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
8411         flag_zee to 2.
8412         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
8413         global_options_set.x_flag_omit_frame_pointer.
8414         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
8415         opts->x_flag_section_anchors to 1 not 2.
8416         * config/sh/sh.c (sh_option_optimization): Don't set
8417         flag_schedule_insns to 2.
8418         (sh_option_override): Check
8419         global_options_set.x_flag_schedule_insns.
8420         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
8421
8422 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
8423
8424         * configure.ac: Make sure inhibit_libc remains false for mingw targets
8425         as cross.
8426         * configure: Regenerated.
8427
8428 2010-10-15  Xinliang David Li  <davidxl@google.com>
8429
8430         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
8431         function.
8432         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
8433         into a recursive function.
8434
8435 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
8436
8437         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
8438         (*movdfcc_1): ditto.
8439
8440 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
8441
8442         * target.def (target_option.init_struct): New hook.
8443         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
8444         * doc/tm.texi: Regenerate.
8445         * hooks.c (hook_void_gcc_optionsp): New.
8446         * hooks.h (hook_void_gcc_optionsp): Declare.
8447         * langhooks-def.h (lhd_init_options_struct): Remove.
8448         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
8449         * langhooks.c (lhd_init_options_struct): Remove.
8450         * opts.c (init_options_struct): Also call
8451         targetm.target_option.init_struct.
8452         * config/i386/i386.c (ix86_option_init_struct,
8453         TARGET_OPTION_INIT_STRUCT): New.
8454         (ix86_option_optimization): Move some settings to
8455         ix86_option_init_struct.
8456         * config/pdp11/pdp11.c (pdp11_option_init_struct,
8457         TARGET_OPTION_INIT_STRUCT): New.
8458         (pdp11_option_optimization): Move some settings to
8459         pdp11_option_init_struct.
8460         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
8461         rs6000_option_init_struct.  Use options structure pointer.
8462         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
8463         * config/s390/s390.c (s390_option_init_struct,
8464         TARGET_OPTION_INIT_STRUCT): New.
8465         (s390_option_optimization): Don't set
8466         flag_asynchronous_unwind_tables here.
8467         * config/sh/sh.c (sh_option_init_struct,
8468         TARGET_OPTION_INIT_STRUCT): New.
8469         (sh_option_optimization): Don't set flag_finite_math_only here.
8470         * config/spu/spu.c (spu_option_optimization): Replace by
8471         spu_option_optimization.  Use options structure pointer.
8472         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
8473
8474 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8475
8476         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
8477
8478         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
8479         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
8480         (Standard names): Document fma.
8481
8482         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
8483         __FP_FAST_FMAF, __FP_FAST_FMAL.
8484
8485         * builitns.c (expand_builtin_mathfn_ternary): New function for
8486         expanding ternary math functions, like fma.
8487         (expand_builtin): Call it for the fma builtins.
8488
8489         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
8490         ops at present.
8491
8492         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
8493         vectorizable functions to support vectorizing fma.
8494
8495         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8496         Handle fma builtins.
8497
8498         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
8499         (UNSPEC_VSX_MSUB): Ditto.
8500         (UNSPEC_VSX_NMADD): Ditto.
8501         (UNSPEC_VSX_NMSUB): Ditto.
8502         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
8503         of UNSPEC. Renumber combiner patterns.
8504         (vsx_fmsub<mode>4*): Ditto.
8505         (vsx_fnmadd<mode>4*): Ditto.
8506         (vsx_fnmsub<mode>4*): Ditto.
8507
8508         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
8509         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
8510         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
8511         (altivec_vmaddfp_1): Ditto.
8512         (altivec_vmaddfp_2): Ditto.
8513         (atlivec_mulv4sf3): Ditto.
8514         (altivec_vnmsubfp): Ditto.
8515         (altivec_vnmsubfp_1): Ditto.
8516         (altivec_vnmsubfp_2): Ditto.
8517         (altivec_vnmsubfp_3): Delete.
8518
8519         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
8520         (fmasf4_fpr): Ditto.
8521         (fmssf4_fpr): Ditto.
8522         (fnmasf4_fpr): Ditto.
8523         (fnmssf4_fpr): Ditto.
8524         (fmadf4): Ditto.
8525         (fmadf4_fpr): Ditto.
8526         (fmsdf4_fpr): Ditto.
8527         (fnmadf4_fpr): Ditto.
8528         (fnmsdf4_fpr): Ditto.
8529
8530         * optabs.h (OTI_fma): Add fma optab.
8531         (fma_optab): Ditto.
8532
8533         * genopinit.c (optabs): Set fma optab.
8534
8535         * rtl.def (FMA): Add FMA rtl.
8536
8537         * tree.h (mode_has_fma): New function to return if MODE supports a
8538         fast multiply and add instruction.
8539         * builtins.c (mode_has_fma): Ditto.
8540
8541 2010-10-15  Jan Hubicka  <jh@suse.cz>
8542
8543         * lto-streamer-out.c (write_symbol): Use pointer set of seen
8544         objects instead of bitmap.
8545         (produce_symtab): Likewise; output defined symbols first.
8546
8547 2010-10-15  Jie Zhang  <jie@codesourcery.com>
8548
8549         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
8550         Option Summary and Index.
8551
8552 2010-10-15  Richard Guenther  <rguenther@suse.de>
8553
8554         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
8555         for automatic variables again.
8556
8557 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
8558
8559         * doc/extend.texi (Variable Length): Don't refer to VLAs not
8560         conforming to C99.
8561
8562 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
8563
8564         * config/rx/rx.c (rx_option_optimization): Change to
8565         rx_override_options_after_change.  Don't change
8566         flag_lto_compression_level.  Don't check for changes to whether
8567         FPU instructions can be used.  Check and set only
8568         flag_finite_math_only, not other fast-math flags.
8569         (rx_option_override): Call rx_override_options_after_change.
8570         (TARGET_OPTION_OPTIMIZATION): Remove.
8571         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8572
8573 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
8574
8575         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
8576         disable section anchors for lang_hooks.name[4] != 'O'.
8577
8578 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
8579
8580         * config/frv/frv.c (frv_option_optimization,
8581         TARGET_OPTION_OPTIMIZATION): Remove.
8582         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
8583
8584 2010-10-15  Michael Matz  <matz@suse.de>
8585
8586         * cgraphunit.c (clone_of_p): Define unconditionally.
8587
8588 2010-10-15  Richard Guenther  <rguenther@suse.de>
8589
8590         PR lto/45957
8591         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
8592
8593 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
8594
8595         * ifcvt.c (find_active_insn_before): New function.
8596         (find_active_insn_after): New function.
8597         (cond_exec_process_if_block): Use new functions to replace
8598         prev_active_insn() and next_active_insn().
8599
8600 2010-10-14  Yao Qi  <yao@codesourcery.com>
8601
8602         PR target/45447
8603         * config/arm/arm.c (arm_build_builtin_va_list): Assign
8604         va_list_name to TYPE_STUB_DECL (va_list_type).
8605
8606 2010-10-14  Jan Hubicka  <jh@suse.cz>
8607
8608         PR middle-end/45621
8609         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
8610         redirected to clone, be happy.
8611         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
8612         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
8613         former_clone_of unconditionally.
8614
8615 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
8616
8617         Merge from FSF apple 'trunk' branch.
8618         2006 Fariborz Jahanian  <fjahanian@apple.com>
8619
8620         Radars 4436866, 4505126, 4506903, 4517826
8621         * c-parser.c (c_parser, objc_property_attr_context) New flag.
8622         (c_lex_one_token): Handle property attributes.
8623         (c_parser_external_declaration): Handle @property.
8624         (c_parser_declaration_or_fndef): Warn on invalid attributes before
8625         @alias, @class, @end and @property objc keywords.
8626         (c_parser_objc_methodprotolist): Handle @property.
8627         (c_parser_objc_property_attrlist): New.
8628         (c_parser_objc_at_property): New.
8629         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
8630         (build_modify_expr): Likewise.
8631
8632 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
8633
8634         PR tree-optimization/46008
8635         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
8636
8637 2010-10-14  Richard Guenther  <rguenther@suse.de>
8638
8639         PR tree-optimization/44913
8640         * tree-data-ref.c (disjoint_objects_p): Remove.
8641         (dr_may_alias_p): Simplify.  Only hand the base object to
8642         the alias-oracle.
8643         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8644         some more trees, bail out instead of asserting.
8645         (ptr_derefs_may_alias_p): Likewise.  Export.
8646         (refs_may_alias_p_1): Handle STRING_CSTs.
8647         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
8648
8649 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
8650
8651         PR c/45969
8652         * c-typeck.c (build_binary_op): Don't try to compute a semantic
8653         type with excess precision for boolean operations.
8654
8655 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
8656             Basile Starynkevitch  <basile@starynkevitch.net>
8657
8658         * gengtype.c:  Include getopt.h and version.h.
8659
8660         (lang_bitmap, struct outf, outf_p)
8661         (get_output_file_with_visibility, oprintf): Definitions moved to
8662         gengtype.h
8663         (output_files, header_file, srcdir, srcdir_len, this_file)
8664         (do_dump): No more static variables.
8665         (do_debug): New.
8666         (dbgprint_count_type_at): Added new function.
8667         (gengtype_long_options): New.
8668         (print_usage, print_version, parse_program_options): New.
8669         (main): Call parse_program_options, and removed old option
8670         handling code.  Added some debug output.
8671
8672         * gengtype.h:  Updated copyright year.
8673         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
8674         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
8675         Moved from gengtype.c to here.
8676         (do_debug, read_state_filename, write_state_filename): New variables.
8677         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
8678
8679         * Makefile.in:
8680         (REVISION): Always defined.
8681         (version.o): Removed ifdef REVISION_c.
8682         (s-gtype): Pass arguments to build/gengtype program.
8683         (build/version.o): Added building rule.
8684         (build/gengtype$(build_exeext)): Added build/version.o.
8685
8686 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
8687
8688         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
8689         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
8690         __strong macros.
8691
8692 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
8693
8694         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
8695         may_trap_or_fault_p instead of may_trap_p predicate.
8696         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
8697         (substitute_placeholder_in_expr): Likewise.
8698         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
8699         flag on MEM_REF nodes.
8700         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
8701         flags on INDIRECT_REF nodes.
8702
8703 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
8704
8705         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
8706         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
8707         (arm*-*-eabi*) <tm_file>: Likewise.
8708         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
8709         (frv-*-*linux*) <tm_file>: Likewise.
8710         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
8711         and associated helper macros.
8712         * config/frv/frv-abi.h: Delete.
8713
8714 2010-10-14  Richard Guenther  <rguenther@suse.de>
8715
8716         PR lto/44561
8717         * tree.def (NULLPTR_TYPE): New tree code.
8718         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
8719         * dwarf2out.c (is_base_type): Likewise.
8720         (gen_type_die_with_usage): Likewise.
8721         * sdbout.c (plain_type_1): Likewise.
8722         * tree.c (build_int_cst_wide): Likewise.
8723         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
8724
8725 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
8726
8727         * params.c (params_finished): New.
8728         (add_params): Assert !params_finished.
8729         (finish_params): New.
8730         (set_param_value_internal): Take params and params_set
8731         parameters.  Assert params_finished.
8732         (set_param_value, maybe_set_param_value): Take params and
8733         params_set parameters.  Update calls to set_param_value_internal.
8734         (set_default_param_value): Assert !params_finished.  Don't use
8735         set_param_value_internal.
8736         (default_param_value, init_param_values): New.
8737         * params.h (struct param_info): Change value to default_value.
8738         Remove set.
8739         (set_param_value, maybe_set_param_value): Add params and
8740         params_set parameters.
8741         (PARAM_VALUE): Get parameters from global_options.
8742         (PARAM_SET_P): Remove.
8743         (finish_params, default_param_value, init_param_values): New.
8744         * common.opt (param_values): New Variable.
8745         * config/arm/arm.c (arm_option_override): Pass extra arguments to
8746         maybe_set_param_value.
8747         * config/i386/i386.c (ix86_option_override_internal): Pass extra
8748         arguments to maybe_set_param_value.
8749         * config/picochip/picochip.c (picochip_option_override): Pass
8750         extra arguments to maybe_set_param_value.
8751         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
8752         extra arguments to maybe_set_param_value.
8753         * config/s390/s390.c (s390_option_override): Use
8754         maybe_set_param_value instead of set_param_value.  Pass extra
8755         arguments to maybe_set_param_value.
8756         * config/sparc/sparc.c (sparc_option_override): Pass extra
8757         arguments to maybe_set_param_value.
8758         * config/spu/spu.c (spu_option_override): Pass extra arguments to
8759         maybe_set_param_value.
8760         * opts.c (handle_param): Take opts and opts_set parameters.
8761         Update call to set_param_value.
8762         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
8763         initial_loop_invariant_max_bbs_in_loop): Remove.
8764         (init_options_once): Don't set them.
8765         (init_options_struct): Initialize parameters structures.
8766         (default_options_optimization): Use default_param_value when
8767         restoring defaults.  Update calls to maybe_set_param_value.
8768         (finish_options): Update calls to maybe_set_param_value.
8769         (common_handle_option): Update calls to handle_param and
8770         set_param_value.
8771         * toplev.c (DEFPARAM): Update definition for changes to param_info.
8772         (general_init): Call finish_params.
8773
8774 2010-10-14  Nick Clifton  <nickc@redhat.com>
8775
8776         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
8777         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
8778         (FIRST_PSEUDO_REGISTER): Increase by one.
8779         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
8780         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
8781         (MODES_TIEABLE): Call mn10300_modes_tieable.
8782         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
8783         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
8784         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
8785         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
8786         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
8787         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8788         (mn10300_cc_status_mdep): Delete.
8789         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
8790         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
8791         the combine-stack-adjust pass.
8792         (print_operand): Use the mode of the comparison operation to
8793         select the comparison suffix.
8794         (notice_update_cc): Delete.
8795         (mn10300_secondary_reload_class): Remove test for stack pointer
8796         based arithmetic.
8797         (output_tst): Rename to mn10300_output_cmp.
8798         (impossible_plus_operand): Move into predicates.md.
8799         (mn10300_legitimize_address): Make static.
8800         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
8801         constant pic operands.
8802         (mn10300_legitimate_constant_p): New function.
8803         (mn10300_case_values_threshold): Make static.
8804         (mn10300_hard_regno_mode_ok): New function.
8805         (mn10300_modes_tieable): New function.
8806         (mn10300_select_cc_mode): New function.
8807         * config/mn10300/predicates.md (impossible_plus_operand): Define.
8808         * config/mn10300/mn10300-protos.h: Tidy.
8809         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
8810         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
8811         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
8812         with clobbers or sets of CC_REG.
8813         (CC_REG): Define.
8814         (mov*): Remove use of CLR instruction.
8815         (cbranch_si4_<code>): New pattern/split.
8816         (integer_conditional_branch): New pattern.
8817         (cbranch_sf4_<code>): New pattern/split.
8818         (float_conditional_branch): New pattern.
8819         (casesi): Use addsi3 pattern instead of movsi pattern to add and
8820         move a value at the same time.
8821         (cc0 peepholes): Remove.
8822
8823 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8824
8825         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
8826         on RTX_FRAME_RELATED_P insns and the insn to which
8827         NOTE_INSN_EPILOGUE_BEG is attached.
8828         * sched-vis.c (print_value): Allow NULL value.
8829
8830 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8831
8832         PR rtl-optimization/45570
8833         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
8834         assert that we are pipelining outer loops.  Allow returning
8835         zero predecessors.
8836
8837 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8838
8839         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
8840         (tidy_control_flow): Tidy vertical space.
8841         (sel_remove_bb): New variable idx.  Use it to remember the basic
8842         block index before deleting the block.
8843         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
8844         (sel_merge_blocks): ... here.
8845         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
8846
8847 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
8848
8849         * cse.c (is_dead_reg): Change into inline function that is not
8850         called through for_each_rtx.
8851         (set_live_p): Adjust caller.
8852         (insn_live_p): Don't reset DEBUG_INSNs here.
8853         (struct dead_debug_insn_data): New data.
8854         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
8855         (delete_trivially_dead_insns): If there is just one setter for the
8856         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
8857         and add DEBUG_INSN for it right before the removed setter and
8858         use the DEBUG_EXPR instead of the dead pseudo.
8859
8860 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
8861
8862         * et-forest.c (et_nca): Return NULL immediately when
8863         the dominance forest has disjoint components.
8864
8865 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
8866
8867         * ira.c (setup_class_hard_regs): Fix typo in indexing
8868         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
8869
8870 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
8871
8872         * graph.c (inbb): New variable.
8873         (start_bb): Set inbb to 1 if output is inside of a building block.
8874         (end_bb): Check if output is inside of a building block.
8875
8876 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8877
8878         PR rtl-optimization/45912
8879         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
8880         regno of registers instead of their index to compute the alignment.
8881
8882 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
8883
8884         * config/i386/i386.c (ix86_build_const_vector): Check vector
8885         mode instead of scalar mode.
8886         (ix86_build_signbit_mask): Likewise.
8887         (ix86_expand_fp_absneg_operator): Updated.
8888         (ix86_expand_copysign): Likewise.
8889         (ix86_expand_int_vcond): Likewise.
8890         (ix86_emit_swdivsf): Likewise.
8891         (ix86_sse_copysign_to_positive): Likewise.
8892         (ix86_expand_sse_fabs): Likewise.
8893         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
8894         * config/i386/sse.md (copysign<mode>3): Likewise.
8895         (sse2_cvtudq2ps): Likewise.
8896         (vec_unpacku_float_hi_v4si): Likewise.
8897         (vec_unpacku_float_lo_v4si): Likewise.
8898
8899         * config/i386/i386.c (ix86_builtins): Add
8900         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
8901         (bdesc_args): Likewise.
8902         (ix86_builtin_vectorized_function): Support
8903         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
8904         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
8905         and IX86_BUILTIN_CVTPS2DQ256.
8906         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
8907
8908         * config/i386/sse.md (STORENT_MODE): New.
8909         (VEC_FLOAT_MODE): Likewise.
8910         (VEC_EXTRACT_MODE): Likewise.
8911         (*avx_cvtdq2pd256_2): Likewise.
8912         (vec_pack_trunc_v4df): Likewise.
8913         (vec_interleave_highv8sf): Likewise.
8914         (vec_interleave_lowv8sf): Likewise.
8915         (storent<mode>): Macroized.
8916         (<code><mode>2: absneg): Likewise.
8917         (copysign<mode>3): Likewise.
8918         (vec_extract<mode>): Likewise.
8919
8920         PR target/44180
8921         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
8922         for V8SFmode.
8923
8924 2010-10-13  Richard Guenther  <rguenther@suse.de>
8925             H.J. Lu  <hongjiu.lu@intel.com>
8926
8927         * config/i386/sse.md (reduc_splus_v8sf): Add.
8928         (reduc_splus_v4df): Likewise.
8929         (vec_unpacks_hi_v8sf): Likewise.
8930         (vec_unpacks_lo_v8sf): Likewise.
8931         (*avx_cvtps2pd256_2): Likewise.
8932         (vec_unpacks_float_hi_v8si): Likewise.
8933         (vec_unpacks_float_lo_v8si): Likewise.
8934         (vec_interleave_highv4df): Likewise.
8935         (vec_interleave_lowv4df): Likewise.
8936
8937 2010-10-13  Richard Guenther  <rguenther@suse.de>
8938
8939         PR objc/45878
8940         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
8941         alone if there are no virtual methods.
8942
8943 2010-10-13  Richard Henderson  <rth@redhat.com>
8944
8945         * expr.c (build_personality_function): Take parameter LANG instead
8946         of parameter NAME.  Build the name based on the lang prefix and the
8947         unwind method in use.
8948         * tree.c (lhd_gcc_personality): Update call to
8949         build_personality_function.
8950
8951 2010-10-13  Richard Guenther  <rguenther@suse.de>
8952
8953         PR objc/45878
8954         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
8955
8956 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8957
8958         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
8959         Canonicalize input operands of ASM_OPERANDS insns.
8960
8961 2010-10-13  Richard Guenther  <rguenther@suse.de>
8962
8963         PR tree-optimization/45788
8964         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
8965         EH update until fixup-cfg.
8966
8967 2010-10-13  Julian Brown  <julian@codesourcery.com>
8968
8969         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
8970         from CORE_REGS and GENERAL_REGS classes.
8971         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
8972         final constraint for register preferencing.
8973
8974 2010-10-13  Richard Guenther  <rguenther@suse.de>
8975
8976         PR tree-optimization/45970
8977         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
8978         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
8979         (stmt_kills_ref_p): Likewise.
8980         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
8981
8982 2010-10-13  Richard Guenther  <rguenther@suse.de>
8983
8984         PR tree-optimization/45982
8985         * tree-ssa-structalias.c (make_constraints_to): New function.
8986         (make_constraint_to): Implement in terms of make_constraints_to.
8987         (find_func_aliases): Properly make return values of pure/const
8988         functions escape if they assign to sth that is not a pointer.
8989
8990 2010-10-13  Richard Guenther  <rguenther@suse.de>
8991
8992         PR middle-end/45874
8993         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8994         Fixup the CFG when EH was fixed up.
8995
8996 2010-10-13  Ira Rosen  <irar@il.ibm.com>
8997
8998         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
8999         Use operand's type for POINTER_PLUS_EXPR.
9000
9001 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
9002
9003         * c-parser.c (c_parser_for_statement): Initialize incr.
9004
9005 2010-10-12  Xinliang David Li  <davidxl@google.com>
9006
9007         PR tree-optimization/45972
9008         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
9009         with too many arguments.
9010
9011 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
9012
9013         PR fortran/45636
9014         * tree-ssa-forwprop.c: Include expr.h.
9015         (constant_pointer_difference, simplify_builtin_call): New functions.
9016         (tree_ssa_forward_propagate_single_use_vars): Call
9017         simplify_builtin_call on builtin calls.
9018
9019 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
9020
9021         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
9022         (*adddi3_extend_sp32): Likewise.
9023         (*subdi3_insn_sp32): Likewise.
9024         (*subdi3_extend_sp32): Likewise.
9025         (*negdi2_sp32): Use negative test for consistency.
9026
9027 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
9028
9029         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
9030         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9031         * config/fixed-bit.h: Likewise.
9032         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9033         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9034         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
9035         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
9036         (DF_SIZE): Likewise.
9037         * doc/tm.texi: Regenerate.
9038
9039 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
9040
9041         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
9042         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
9043         (*isel_reversed_unsigned_<mode>): New.
9044         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
9045         as valid comparisons and adjust operands and output appropriately.
9046         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
9047
9048 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
9049
9050         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
9051         DATA_ALIGNMENT and add COND parameter. Update comments above.
9052         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
9053         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
9054
9055 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9056
9057         PR bootstrap/45958
9058         * exec-tool.in: Support '-plugin' as the second option to the linker.
9059
9060 2010-10-12  Richard Henderson  <rth@redhat.com>
9061
9062         PR middle-end/45962
9063         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
9064         (expand_stack_vars): Assert large base allocated when used.
9065
9066 2010-10-12  Richard Guenther  <rguenther@suse.de>
9067
9068         * tree-ssa-structalias.c (get_constraint_for_1): Constants
9069         only point to nonlocal, not anything.
9070
9071 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
9072
9073         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
9074         unwind info for exceptions.
9075
9076 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9077
9078         PR testsuite/45851
9079         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
9080         Document optional target selector.
9081
9082 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
9083
9084         * flag-types.h: New.
9085         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
9086         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
9087         options.h.
9088         (OPTIONS_H): Define.
9089         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
9090         of options.h.
9091         * configure.ac (tm_include_list): Include options.h not flags.h.
9092         * configure: Regenerate.
9093         * flags.h: Include flag-types.h.  Include options.h at top of file
9094         again.
9095         (enum debug_info_type, enum debug_info_level, enum
9096         debug_info_usage, enum symbol_visibility, struct visibility_flags,
9097         enum ira_algorithm, enum ira_region, enum excess_precision, enum
9098         graph_dump_types, enum stack_check_type,
9099         enum warn_strict_overflow_code): Move to flag-types.h
9100         * opth-gen.awk: Include flag-types.h in options.h.
9101
9102 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
9103
9104         * expr.c (store_expr): Share code for STRING_CST and
9105         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
9106         check if target is a MEM.
9107
9108         * rtl.h: Include hashtab.h.
9109         (iterative_hash_rtx): New prototype.
9110         * rtl.c (iterative_hash_rtx): New function.
9111         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
9112         (output_loc_list): Return immediately if emitted is set, set it.
9113         (hash_loc_operands, hash_locs, hash_loc_list,
9114         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
9115         optimize_location_lists_1, optimize_location_lists): New function.
9116         (dwarf2out_finish): Call optimize_location_lists.
9117         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
9118
9119 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9120
9121         PR testsuite/45974
9122         Revert:
9123         * Makefile.in ($(lang_checks_parallel))
9124         ($(lang_checks_parallelized)): Use single quotes for
9125         $(RUNTESTFLAGS), to allow passing quoted content.
9126
9127 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9128
9129         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
9130         actual_oldval.  Use __builtin_expect.
9131         (SUBWORD_VAL_CAS): Likewise.
9132
9133 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
9134
9135         * recog.c (nonmemory_operand): Call immediate_operand for
9136         CONSTANT_P operands.
9137
9138 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
9139
9140         * config/i386/i386.md (movmem<mode>): Macroize expander from
9141         movmem{si,di} using SWI48 mode iterator.
9142         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
9143         *strmovsi_rex_1 using P mode iterator.
9144         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
9145         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
9146         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
9147         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
9148         (setmem<mode>): Macroize expander from setmem{si,di} using
9149         SWI48 mode iterator.
9150         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
9151         *strsetsi_rex_1 using P mode iterator.
9152         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
9153         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
9154         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
9155         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
9156         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
9157         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
9158         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
9159         mode iterator.
9160         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
9161         *strlenqi_rex_1 using P mode iterator.
9162
9163 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
9164
9165         PR bootstrap/45445
9166         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
9167         static functions.
9168         (mark_ref_live, mark_ref_dead): Use them.
9169         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
9170         Save the original reg, and use the new functions.
9171         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
9172         changed.
9173         (check_and_make_def_conflict): Save the original reg.
9174
9175 2010-10-11  Martin Jambor  <mjambor@suse.cz>
9176
9177         PR middle-end/45699
9178         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
9179         thunks.
9180
9181 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9182
9183         * Makefile.in ($(lang_checks_parallel))
9184         ($(lang_checks_parallelized)): Use single quotes for
9185         $(RUNTESTFLAGS), to allow passing quoted content.
9186
9187         PR bootstrap/35855
9188         * opt-functions.awk (BEGIN): New section.
9189         (lower, upper, digit, alnum): New variables.
9190         (static_var, opt_sanitized_name): Use alnum instead of character
9191         classes, for non-C locale.
9192         * optc-gen.awk: Likewise.
9193         * opth-gen.awk: Likewise.
9194
9195 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
9196
9197         * target.def (preferred_reload_class): New hook.
9198         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
9199         * doc/tm.texi: Regenerate.
9200         * targhooks.c (default_preferred_reload_class): New function.
9201         * targhooks.h (default_preferred_reload_class): Declare.
9202         * reload.c (find_dummy_reload): Change preferred_class variable type
9203         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
9204         target hook.
9205         (find_reloads): Change goal_alternative array type from int to
9206         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
9207         (push_reload, find_reloads_address_part): Use
9208         TARGET_PREFERRED_RELOAD_CLASS target hook.
9209         * reload1.c (emit_input_reload_insns): Ditto.
9210         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
9211         hook. Change rclass argument and secondary_class variable types from
9212         'enum reg_class' to reg_class_t.
9213
9214         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
9215         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
9216         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
9217         Change regclass argument and result types from enum reg_class to
9218         reg_class_t.
9219         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9220
9221 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
9222
9223         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
9224         in masking operations.
9225         (simplify_const_unary_operation): Likewise.
9226         (simplify_binary_operation_1): Likewise.
9227         (simplify_const_binary_operation): Likewise.
9228         (simplify_const_relational_operation): Likewise.
9229         (simplify_ternary_operation): Likewise.
9230         (simplify_immed_subreg): Likewise.
9231
9232 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9233
9234         PR middle-end/45862
9235         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
9236         (TARGET_SUPPORTS_WEAK): New.
9237         * doc/tm.texi: Regenerate.
9238         * defaults.h (SUPPORTS_WEAK): Update comment.
9239         (TARGET_SUPPORTS_WEAK): New.
9240         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
9241         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
9242         SUPPORTS_WEAK.
9243         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
9244         make_decl_one_only): Likewise.
9245         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
9246         TARGET_SUPPORTS_WEAK.
9247         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
9248         instead of SUPPORTS_WEAK.
9249
9250 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9251
9252         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
9253
9254 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
9255
9256         * vec.h (VEC_qsort): Define.
9257         * dbxout.c (output_used_types): Use it.
9258         * df-scan.c (df_sort_and_compress_refs): Likewise.
9259         (df_sort_and_compress_mws): Likewise.
9260         * genautomata.c (uniq_sort_alt_states): Likewise.
9261         (evaluate_equiv_classes): Likewise.
9262         (output_trans_table): Likewise.
9263         (output_state): Likewise.
9264         * gimplify.c (compare_case_labels): Likewise.
9265         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
9266         * ipa.c (build_cdtor_fns): Likewise.
9267         * lto.c (lto_wpa_write_files): Likewise.
9268         * sel-sched.c (fill_vec_av_set): Likewise.
9269         * tree-predcom.c (determine_roots_comp): Likewise.
9270         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
9271         (splice_param_accesses): Likewise.
9272         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
9273         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9274         (reassociate_bb): Likewise.
9275         * tree-ssa-sccvn.c (sort_scc): Likewise.
9276         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
9277
9278 2010-10-11  Ian Lance Taylor  <iant@google.com>
9279
9280         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
9281         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
9282         TREE_THIS_NOTRAP when appropriate.
9283         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
9284         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
9285         newly created MEM_REF.
9286
9287 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
9288
9289         Nathan Froyds patch to hooks FUNCTION_ARG etc.
9290         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
9291         (picochip_incoming_function_arg): Delete.
9292         (picochip_arg_advance): Delete.
9293         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
9294         (FUNCTION_INCOMING_ARG): Delete.
9295         (FUNCTION_ARG_ADVANCE): Delete.
9296         * config/picochip/picochip.c (picochip_function_arg): Take a
9297         const_tree and a bool.
9298         (picochip_incoming_function_arg): Likewise.
9299         (picochip_arg_advance): Likewise.
9300         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9301         (TARGET_FUNCTION_ARG_ADVANCE): Define.
9302
9303 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9304
9305         PR middle-end/45955
9306         * ipa.c (build_cdtor): Delete endless loop.
9307
9308 2010-10-07  Andi Kleen  <ak@linux.intel.com>
9309
9310         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
9311         checksum-options.
9312         (checksum-options): Add.
9313         (cc1-dummy): Remove.
9314         (cc1-checksum): Change to run checksum over object files
9315         and options only.
9316         * dummy-checksum.c: Remove.
9317         * genchecksum.c: Update copyright.
9318         (usage): Allow multiple arguments.
9319         (BLOCKSIZE): Add.
9320         (dosum): Change for incremental checksum. Remove C output.
9321         (main): Iterate over all argument files. Add C output.
9322
9323 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
9324
9325         * params.c (set_param_value_internal): New.
9326         (set_param_value): Use set_param_value_internal.
9327         (maybe_set_param_value, set_default_param_value): New.
9328         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
9329         (maybe_set_param_value, set_default_param_value): Declare.
9330         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
9331         * config/i386/i386.c (ix86_option_override_internal): Use
9332         maybe_set_param_value.
9333         * config/ia64/ia64.c (ia64_option_default_params,
9334         TARGET_OPTION_DEFAULT_PARAMS): New.
9335         (ia64_option_optimization): Move some code to
9336         ia64_option_default_params.
9337         * config/picochip/picochip.c (picochip_option_override): Use
9338         maybe_set_param_value.
9339         * config/rs6000/rs6000.c (rs6000_option_default_params,
9340         TARGET_OPTION_DEFAULT_PARAMS): New.
9341         (rs6000_option_override_internal): Use maybe_set_param_value.
9342         (rs6000_option_optimization): Move some code to
9343         rs6000_option_default_params.
9344         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
9345         * config/sh/sh.c (sh_option_default_params,
9346         TARGET_OPTION_DEFAULT_PARAMS): New.
9347         (sh_option_optimization): Move some code to sh_option_default_params.
9348         * config/sparc/sparc.c (sparc_option_override): Use
9349         maybe_set_param_value.
9350         * config/spu/spu.c (spu_option_default_params,
9351         TARGET_OPTION_DEFAULT_PARAMS): New.
9352         (spu_option_optimization): Move some code to spu_option_default_params.
9353         (spu_option_override): Use maybe_set_param_value.
9354         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
9355         * doc/tm.texi: Regenerate.
9356         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
9357         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
9358         compiler_params.
9359         (default_options_optimization): Use maybe_set_param_value.
9360         (finish_options): Use maybe_set_param_value.
9361         * target.def (target_option.default_params): New hook.
9362         * toplev.c (general_init): Call targetm.target_option.default_params.
9363
9364 2010-10-11  Ira Rosen  <irar@il.ibm.com>
9365
9366         PR tree-optimization/45902
9367         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
9368         vector type for constants, unless it's a pointer.
9369
9370 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9371
9372         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
9373
9374 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
9375
9376         PR target/45870
9377         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
9378         (ix86_delegitimize_address): Use it.
9379
9380 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
9381
9382         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
9383
9384 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
9385
9386         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
9387         to cum struct in the call to function_arg_advance.
9388         (alpha_function_arg_advance): Mark named as unused.
9389
9390 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
9391
9392         * config/mips/mips.c (mips_handle_option): Make "value" with
9393         ATTRIBUTE_UNUSED.
9394
9395 2010-10-09  Richard Henderson  <rth@redhat.com>
9396
9397         PR rtl-opt/33721
9398         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
9399         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
9400         required_align, tidy the code a bit.  Emit split_stack code in the
9401         right place.  Mark the return value with the alignment properly.
9402         * expr.h (allocate_dynamic_stack_space): Update decl.
9403         * builtins.c (expand_builtin_apply): Update call to
9404         allocate_dynamic_stack_space.
9405         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
9406         * calls.c (initialize_argument_information): Update call to
9407         allocate_dynamic_stack_space.
9408         (expand_call): Likewise.
9409
9410         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
9411         Don't update_stack_alignment here.
9412         (alloc_stack_frame_space): Make ALIGN unsigned.
9413         (stack_var_cmp): Sort by alignment too.
9414         (partition_stack_vars): Don't merge large and small alignment vars.
9415         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
9416         Take care when BASE is not virtual_stack_vars_rtx.
9417         (expand_stack_vars): Allocate dynamic stack space for large
9418         alignment variables.
9419         (expand_one_stack_var): Update all to expand_one_stack_var_at.
9420         (defer_stack_allocation): True for large alignment vars.
9421         (update_stack_alignment): Merge into ...
9422         (expand_one_var): ... here.
9423         (gimple_expand_cfg): Place code from expand_stack_vars.
9424
9425 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9426
9427         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9428         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
9429         (pdp11_function_arg_advance): New function.
9430         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9431
9432 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9433
9434         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
9435         * libgcc2.c: Likewise.
9436
9437 2010-10-09  Richard Guenther  <rguenther@suse.de>
9438
9439         PR lto/45956
9440         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
9441         Properly check if a decl is an automatic var.
9442
9443 2010-10-09  Richard Guenther  <rguenther@suse.de>
9444
9445         PR lto/45947
9446         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
9447
9448 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9449
9450         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
9451         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9452         * config/mmix/mmix.c (mmix_function_arg): Rename to...
9453         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
9454         bool arguments.
9455         (mmix_function_arg): New function.
9456         (mmix_function_incoming_arg): New function.
9457         (mmix_function_arg_advance): New function.
9458         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9459         (TARGET_FUNCTION_ARG_ADVANCE): Define.
9460
9461 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9462
9463         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9464         * config/vax/vax.c (vax_function_arg): New function.
9465         (vax_function_arg_advance): New function.
9466         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9467
9468 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9469
9470         * config/pa/pa-protos.h (function_arg): Delete.
9471         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9472         * config/pa/pa.c (function_arg): Rename to...
9473         (pa_function_arg): ...this.  Make static.  Take a const_tree and
9474         a bool.
9475         (pa_function_arg_advance): New function.
9476         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9477
9478 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9479
9480         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9481         * config/m68k/m68k.c (m68k_function_arg): New function.
9482         (m68k_function_arg_advance): New function.
9483         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9484
9485 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9486
9487         * config/avr/avr-protos.h (function_arg): Delete.
9488         (function_arg_advance): Delete.
9489         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9490         * config/avr/avr.c (function_arg): Rename to...
9491         (avr_function_arg): ...this.  Make static.  Take a const_tree and
9492         a bool.
9493         (function_arg_advance): Rename to...
9494         (avr_function_arg_advance): ...this.  Make static.  Take a
9495         const_tree and a bool.
9496         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9497
9498 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9499
9500         * config/alpha/alpha-protos.h (function_arg): Delete.
9501         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9502         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
9503         * config/alpha/alpha.c (function_arg): Rename to...
9504         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
9505         a bool.  Delete TARGET_ABI_UNICOSMK code.
9506         (alpha_function_arg_advance): New function.
9507         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9508
9509 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9510
9511         * config/mep/mep-protos.h (mep_function_arg): Delete.
9512         (mep_function_arg_advance): Delete.
9513         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9514         * config/mep/mep.c (mep_function_arg): Make static.  Take a
9515         const_tree and a bool.
9516         (mep_function_arg_advance): Likewise.
9517         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9518
9519 2010-10-09  Richard Guenther  <rguenther@suse.de>
9520
9521         PR tree-optimization/45945
9522         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
9523
9524 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
9525
9526         PR tree-optimization/45612
9527         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
9528         Test LABEL_DECLs as well.  Fix formatting issues.
9529         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
9530         whose label is present in NON_SSA_VARS.
9531         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
9532         as well.  Fix formatting issues.
9533         (visit_bb): Fix typos and formatting issue.
9534
9535 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
9536
9537         PR tree-optimization/45950
9538         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
9539         before initializing vno->op.
9540
9541 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
9542
9543         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
9544         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
9545
9546 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
9547
9548         PR target/45913
9549         * config/i386/i386.c (ix86_binary_operator_ok): Support
9550         "andhi/andsi/anddi" as a zero-extending move.
9551
9552 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9553
9554         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
9555         into a temporary array.
9556
9557 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
9558
9559         PR tree-optimization/45903
9560         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
9561         of {A,L}SHIFTRT of MEM.
9562
9563 2010-10-08  Richard Guenther  <rguenther@suse.de>
9564
9565         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9566         Re-construct BLOCK_VARS.
9567         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
9568         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9569         * tree.c (free_lang_data_in_block): Remove.
9570         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
9571         Do not touch the BLOCK tree.
9572         * expr.c (expand_expr_real_1): Allow externals.
9573
9574 2010-10-08  Richard Guenther  <rguenther@suse.de>
9575
9576         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
9577         Do not output BLOCK_SUBBLOCKS.
9578         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
9579         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
9580         Re-construct BLOCK_SUBBLOCKS of parent block.
9581         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
9582         for BINFO_BASE_ACCESSES.
9583
9584 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
9585
9586         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
9587         (TREE_H): Include $(FLAGS_H) instead of options.h.
9588         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
9589         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
9590         * common.opt (flag_complex_method, flag_evaluation_order,
9591         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
9592         Variable declarations.
9593         * configure.ac (tm_include_list): Include flags.h instead of options.h.
9594         * configure: Regenerate.
9595         * flags.h: Condition out contents for target libraries.  Include
9596         options.h at end of file.
9597         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
9598         flag_evaluation_order, flag_warn_unused_result): Remove.
9599         * gcc.c (main): Intialize global_options with global_options_init.
9600         * langhooks-def.h (lhd_init_options_struct): Declare.
9601         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
9602         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
9603         * langhooks.c (lhd_init_options_struct): New.
9604         * langhooks.h (struct lang_hooks): Add init_options_struct.
9605         Update comment on init_options.
9606         * optc-gen.awk: Generate initializer for global_options_init, not
9607         global_options.
9608         * opth-gen.awk: Condition out structure declarations for target
9609         libraries.  Declare global_options_init.
9610         * opts-common.c: Include flags.h instead of options.h.
9611         * opts.c (flag_warn_unused_result): Remove.
9612         (read_cmdline_options): Take gcc_options parameters.  Pass them to
9613         read_cmdline_option.
9614         (initial_lang_mask, initial_min_crossjump_insns,
9615         initial_max_fields_for_field_sensitive,
9616         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
9617         (init_options_once): New.  Split out of decode_options.
9618         (init_options_struct): New.  Split out of decode_options.
9619         (decode_cmdline_options_to_array_default_mask): New.
9620         (default_options_optimization): New.  Split out of decode_options.
9621         (decode_options): Move most code to other functions.  Update call
9622         to read_cmdline_options.
9623         (finish_options): New.  Split out of decode_options.
9624         * opts.h (decode_options): Add gcc_options parameters.
9625         (init_options_once, init_options_struct,
9626         decode_cmdline_options_to_array_default_mask): New.
9627         * toplev.c (flag_complex_method, flag_ira_algorithm,
9628         flag_ira_region, flag_evaluation_order): Remove.
9629         (general_init): Use global_options_init for initial flag values
9630         for global_dc.
9631         (toplev_main): Call init_options_once, init_options_struct,
9632         lang_hooks.init_options_struct,
9633         decode_cmdline_options_to_array_default_mask and
9634         lang_hooks.init_option before decode_options.  Update arguments to
9635         decode_options.
9636         * tree.h: Include flags.h instead of options.h.
9637
9638 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9639
9640         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9641
9642 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9643
9644         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
9645         Delete.
9646         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9647         (FUNCTION_INCOMING_ARG): Delete.
9648         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
9649         (function_arg_slotno): Likewise.  Take bool arguments.
9650         (sparc_arg_partial_bytes): Update call to it.
9651         (function_arg): Rename to...
9652         (sparc_function_arg_1): ...this.  Take bool arguments.
9653         (sparc_function_arg, sparc_function_incoming_arg): New functions.
9654         (function_arg_advance): Rename to...
9655         (sparc_function_arg_advance): ...this.  Take bool argument.
9656         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
9657         (TARGET_FUNCTION_INCOMING_ARG): Define.
9658
9659 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9660
9661         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
9662         Delete.
9663         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9664         * config/bfin/bfin.c (function_arg_advance): Rename to...
9665         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
9666         and bool arguments.
9667         (function_arg): Rename to...
9668         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
9669         arguments.
9670         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9671
9672 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9673
9674         * config/score/score-protos.h (score_function_arg): Delete.
9675         (score_function_arg_advance): Delete.
9676         * config/score/score3.h (score3_function_arg_advance): Take a
9677         const_tree and a bool.
9678         (score3_function_arg): Likewise.
9679         * config/score/score7.h (score7_function_arg_advance): Likewise.
9680         (score7_function_arg): Likewise.
9681         * config/score/score3.c (score3_classify_arg): Likewise.
9682         (score3_function_arg_advance, score3_function_arg): Likewise.
9683         * config/score/score7.c (score7_classify_arg): Likewise.
9684         (score7_function_arg_advance, score7_function_arg): Likewise.
9685         * config/score/score.c (score_function_arg_advance): Likewise.
9686         (score_function_arg): Likewise.  De-const-ify `cum' argument.
9687         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9688
9689 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9690
9691         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
9692         (s390_function_arg): Delete.
9693         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9694         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
9695         (s390_function_arg_integer): Likewise.
9696         (s390_function_arg_advance): Make static.  Take a const_tree and
9697         a bool.
9698         (s390_function_arg): Likewise.
9699         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9700
9701 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9702
9703         * config/spu/spu-protos.h (spu_function_arg): Delete.
9704         * config/spu/spu.h (FUNCTION_ARG): Delete.
9705         (FUNCTION_ARG_ADVANCE): Move code to ...
9706         * config/spu/spu.c (spu_function_arg_advance): New function.
9707         (spu_function_arg): Make static.  Take a const_tree and a bool.
9708         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
9709         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9710
9711 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9712
9713         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9714
9715 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9716
9717         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
9718         (init_vn_nary_op_from_op): New function.
9719         (init_vn_nary_op_from_stmt): New function.
9720         (vn_nary_op_lookup_1): New function.
9721         (sizeof_vn_nary_op): New function.
9722         (alloc_vn_nary_op_noinit): New function.
9723         (alloc_vn_nary_op): New function.
9724         (vn_nary_op_insert_into): New function.
9725         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
9726         (vn_nary_op_lookup): Likewise.
9727         (vn_nary_op_lookup_stmt): Likewise.
9728         (vn_nary_op_insert_pieces): Likewise.
9729         (vn_nary_op_insert): Likewise.
9730         (vn_nary_op_insert_stmt): Likewise.
9731         (copy_nary): Likewise.
9732         (set_value_id_for_result): New function.
9733         (set_hashtable_value_ids): Call it.
9734
9735 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9736
9737         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9738         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
9739
9740 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9741
9742         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
9743         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9744
9745 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
9746
9747         PR debug/45656
9748         * cse.c (cse_extended_basic_block): Preserve cc0 info across
9749         debug isnsn.  Skip them when searching for cc0 setter.
9750         (set_live_p): Skip debug insns when searching for cc0 user.
9751
9752 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
9753
9754         PR debug/45673
9755         PR debug/45604
9756         PR debug/45419
9757         PR debug/45408
9758         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
9759         type of MEM_REFs to INTEGER_CSTs.
9760
9761 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
9762
9763         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
9764         m68hc11_print_operand_address.
9765
9766 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
9767
9768         * builtins.c (rewrite_call_expr): Move code to...
9769         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
9770         (rewrite_call_expr_array): New function.
9771         (fold_builtin_sprintf_chk_1): New function.
9772         (fold_builtin_sprintf_chk): Call it.
9773         (gimple_fold_builtin_sprintf_chk): Likewise.
9774         (fold_builtin_snprintf_chk_1): New function.
9775         (fold_builtin_snprintf_chk): Call it.
9776         (gimple_fold_builtin_snprintf_chk): Likewise.
9777         (gimple_rewrite_call_expr): Delete.
9778
9779 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9780
9781         * config.host: Update copyright year.
9782
9783 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9784
9785         * config.host (host_lto_plugin_soname): New shell variable.
9786         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
9787         * config.in: Regenerate.
9788         * configure: Regenerate.
9789         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
9790         LTO plugin shared library.
9791
9792 2010-10-07  Richard Henderson  <rth@redhat.com>
9793
9794         * target.h (enum unwind_info_type): Move ...
9795         * coretypes.h: ... here.
9796
9797 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
9798
9799         * doc/objc.texi (Fast enumeration protocol): Mention that
9800         'unsigned int' can also be used instead of 'unsigned long' in
9801         countByEnumeratingWithState:objects:count:.
9802
9803 2010-10-07  Martin Jambor  <mjambor@suse.cz>
9804
9805         * tree-sra.c (struct access): New field grp_assignment_write.
9806         (dump_access): Dump grp_assignment_write.
9807         (build_accesses_from_assign): Set grp_assignment_write.
9808         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
9809         (mark_read_status): Renamed to mark_rw_status, individual values
9810         renamed too.
9811         (analyze_access_subtree): Changed type of mark_write to
9812         mark_read_status.  Fixed propagating of mark_read and
9813         mark_write.  Changed benefit estimate.  Updated comment.
9814
9815 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
9816
9817         PR Tree-Vect/45847
9818         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
9819         check for vectype_out returned by get_vectype_for_scalar_type().
9820
9821 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
9822
9823         PR target/45805
9824         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
9825         constraint, add register specifier in instruction template.
9826         (neon_vec_pack_trunc_<mode>): Likewise.
9827         (neon_vec_<US>mult_<mode>): Add register specifier to
9828         instruction template.
9829
9830 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9831
9832         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
9833         cygwin2.o.
9834         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
9835         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
9836         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
9837         (cygwin2.o): Likewise.
9838         * config/i386/cygwin1.c: Delete file.
9839         * config/i386/cygwin2.c: Likewise.
9840         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
9841         make all {%!mno-cygwin} ones unconditional.
9842         (STARTFILE_SPEC): Likewise.
9843         (REAL_LIBGCC_SPEC): Likewise.
9844         (LIB_SPEC): Likewise.
9845         (CXX_WRAP_SPEC): Likewise.
9846         (LINK_SPEC): Likewise.
9847         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
9848         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
9849         (cygwin_gplusplus_include_dir): Delete now-unused array.
9850         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
9851         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
9852         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
9853         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
9854         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
9855         (cygwin_local_include_dir): Delete now-unused array.
9856         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
9857         (cygwin_cross_include_dir): Delete now-unused array.
9858         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
9859         (cygwin_tool_include_dir): Delete now-unused array.
9860         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
9861         (cygwin_standard_include_dir): Delete now-unused array.
9862         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
9863         (GEN_CVT_ARRAY): Delete now-unused macro definition.
9864         (cvt_to_mingw): Delete now-unused array.
9865         (mingw_scan): Remove prototype of deleted function.
9866         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
9867         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
9868         * doc/invoke.texi (-mcygwin): Don't document removed option.
9869         (-mno-cygwin): Likewise.
9870
9871 2010-10-07  Richard Guenther  <rguenther@suse.de>
9872
9873         * machmode.h (mode_for_vector): Declare.
9874         * stor-layout.c (mode_for_vector): New function, split out from ...
9875         (layout_type): ... here.
9876         * tree-vectorizer.h (current_vector_size): Declare.
9877         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
9878         mask vector type is available.
9879         (get_vectype_for_scalar_type): Rename to ...
9880         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
9881         size argument.
9882         (get_vectype_for_scalar_type): New wrapper around
9883         get_vectype_for_scalar_type_and_size using current_vector_size.
9884         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
9885         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
9886         of vect_analyze_loop here.
9887         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
9888         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
9889         to autodetect.
9890         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
9891         V8SF to V8SI conversion builtin.
9892
9893 2010-10-07  Richard Guenther  <rguenther@suse.de>
9894
9895         * target.def (autovectorize_vector_sizes): New target hook.
9896         * targhooks.c (default_autovectorize_vector_sizes): New function.
9897         * targhooks.h (default_autovectorize_vector_sizes): Declare.
9898         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
9899         Document.
9900         * doc/tm.texi: Update.
9901         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
9902         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9903
9904 2010-10-07  Richard Guenther  <rguenther@suse.de>
9905
9906         * target.def (units_per_simd_word): Rename to ...
9907         (preferred_simd_mode): ... this.  Return mode instead of size.
9908         * targhooks.c (default_units_per_simd_word): Rename to ...
9909         (default_preferred_simd_mode): ... this.  Return word_mode.
9910         * targhooks.h (default_preferred_simd_mode): Declare.
9911         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
9912         (arm_preferred_simd_mode): ... this.  Re-implement.
9913         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
9914         (ix86_preferred_simd_mode): ... this.  Re-implement.
9915         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
9916         (sparc_preferred_simd_mode): ... this.  Re-implement.
9917         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
9918         (mips_preferred_simd_mode): ... this.  Re-implement.
9919         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
9920         (rs6000_preferred_simd_mode): ... this.  Re-implement.
9921         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
9922         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
9923         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
9924         * doc/tm.texi: Update.
9925
9926 2010-10-07  Richard Guenther  <rguenther@suse.de>
9927
9928         PR middle-end/45869
9929         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
9930         of pointers.
9931
9932 2010-10-07  Alan Modra  <amodra@gmail.com>
9933
9934         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
9935         rather than sign extension by hand.
9936
9937 2010-10-07  Jan Hubicka  <jh@suse.cz>
9938
9939         PR middle-end/45926
9940         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
9941
9942 2010-10-07  Richard Guenther  <rguenther@suse.de>
9943
9944         PR bootstrap/45914
9945         * configure.ac: Fix typo.
9946         * configure: Regenerated.
9947
9948 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9949
9950         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
9951         define_builtin_std where it's unnecessary.
9952         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
9953
9954 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
9955
9956         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
9957         * doc/tm.texi.in: Regenerate.
9958         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
9959         * targhooks.c (default_class_likely_spilled_p): Don't use the
9960         CLASS_LIKELY_SPILLED_P macro.
9961
9962         * config/arm/arm.md: Update comment.
9963
9964 2010-10-06  Jan Hubicka  <jh@suse.cz>
9965
9966         * ipa.c (cgraph_remove_unreachable_nodes): External references can
9967         always be removed.
9968         (cgraph_externally_visible_p): We can not bring local comdats that
9969         are known to linker; fix handling of internal visibility.
9970         (function_and_variable_visibility): Likewise.
9971
9972 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9973
9974         PR rtl-optimization/45394
9975         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
9976         (struct rtx_subst_pair): Remove AFTER field.
9977         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
9978         (propagate_for_debug): Remove MOVE parameter and adjust.
9979         (try_combine): In the special case where I2 is a PARALLEL, combine only
9980         destinations of SETs and set I2SRC to the I2 source.
9981         Adjust calls to propagate_for_debug throughout.
9982         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
9983         insns.
9984
9985 2010-10-06  Olivier Hainque  <hainque@adacore.com>
9986
9987         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
9988         switch on insn codes as sequence of ifs.
9989
9990 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
9991
9992         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
9993         be UI_NONE for picochip.
9994         (picochip_option_override): Do not disable exception flags.
9995         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
9996         Declare.
9997
9998 2010-10-06  Richard Guenther  <rguenther@suse.de>
9999
10000         * Makefile.in (regmove.o): Depend on $(TARGET_H).
10001
10002 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
10003
10004         Implemented fast enumeration for Objective-C.
10005         * c-parser.c (objc_could_be_foreach_context): New.
10006         (c_lex_one_token): Recognize RID_IN keyword in a potential
10007         Objective-C foreach context.
10008         (c_parser_declaration_or_fndef): Added parameter.  Accept
10009         Objective-C RID_IN keyword as terminating a declaration; in that
10010         case, return the declaration in the new parameter.
10011         (c_parser_extenral_declaration): Updated calls to
10012         c_parser_declaration_or_fndef.
10013         (c_parser_declaration_or_fndef): Same change.
10014         (c_parser_compound_statement_nostart): Same change.
10015         (c_parser_label): Same change.
10016         (c_parser_objc_methodprotolist): Same change.
10017         (c_parser_omp_for_loop): Same change.
10018         (c_parser_for_statement): Detect and parse Objective-C foreach
10019         statements.
10020         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
10021         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
10022         fast enumeration parsing code to turn off the c99 error but still
10023         perform checks on the loop declarations.
10024         * c-tree.h (check_for_loop_decls): Updated declaration.
10025         * doc/objc.texi: Document fast enumeration.
10026
10027 2010-10-06  Nick Clifton  <nickc@redhat.com>
10028
10029         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
10030         (MDR_REGNUM): Define.
10031         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
10032         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
10033         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
10034         (REGISTER_NAMES): Add MDR.
10035         (DWARF2_DEBUGGING_INFO): Define to 1.
10036         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10037         (F): New function.  Sets RTX_FRAME_RELATED_P.
10038         (mn10300_gen_multiple_store): Use F.
10039         (expand_prologue): Use F.  Use gen_movsf() to push floating
10040         point registers.
10041         (expand_epilogue): Use gen_movsf() to pop floating point registers.
10042         (mn10300_option_override): Disable combine stack adjust pass.
10043
10044 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
10045
10046         PR target/45901
10047         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
10048         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
10049
10050 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
10051
10052         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
10053         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
10054         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
10055         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
10056         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
10057         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
10058         BUILT_IN_TOUPPER): Mark as leaf.
10059
10060         PR middle-end/45838
10061         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10062         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10063         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10064         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10065         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
10066         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
10067         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
10068
10069 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
10070
10071         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
10072         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10073         (m68hc11_class_likely_spilled_p): New function.
10074
10075 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
10076
10077         * c-parser.c (c_parser_objc_method_definition): Updated comment.
10078
10079 2010-10-05  Jan Hubicka  <jh@suse.cz>
10080
10081         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
10082         Document.
10083         * opts.c (decode_options): Handle lto partitions.
10084         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
10085         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
10086
10087 2010-10-05  Jan Hubicka  <jh@suse.cz>
10088
10089         * cgraphunit.c (assemble_function): Output thunks and aliases before
10090         the function itself.
10091
10092 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
10093
10094         * config/picochip/picochip.c (picochip_option_override): Disable
10095         exception flags for picochip.
10096
10097 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
10098
10099         * opts-common.c (handle_option, handle_generated_option,
10100         read_cmdline_option, set_option): Add diagnostic_context
10101         parameter.  Update calls among these functions.
10102         (set_option): Don't use global_dc.
10103         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
10104         (decode_options): Pass global_dc to enable_warning_as_error.
10105         (common_handle_option): Pass global_dc to enable_warning_as_error.
10106         (enable_warning_as_error): Add diagnostic_context parameter.
10107         Document parameters.  Don't use global_dc.  Pass
10108         diagnostic_context parameter to handle_generated_option.
10109         * opts.h (set_option, handle_option, handle_generated_option,
10110         read_cmdline_option, enable_warning_as_error): Add
10111         diagnostic_context parameter.
10112         * Makefile.in (lto-opts.o): Update dependencies.
10113         * coretypes.h (struct diagnostic_context, diagnostic_context):
10114         Declare here.
10115         * diagnostic.h (diagnostic_context): Don't declare typedef here.
10116         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
10117         * langhooks-def.h (struct diagnostic_context): Don't declare here.
10118         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
10119         using diagnostic_context typedef.
10120         * langhooks.c (lhd_initialize_diagnostics): Declare using
10121         diagnostic_context typedef.
10122         * langhooks.h (struct diagnostic_context): Don't declare here.
10123         (initialize_diagnostics, print_error_function): Declare using
10124         diagnostic_context typedef.
10125         * lto-opts.c: Include diagnostic.h.
10126         (lto_reissue_options): Pass global_dc to set_option.  Pass
10127         DK_UNSPECIFIED not 0.
10128         * plugin.c (plugins_internal_error_function): Declare using
10129         diagnostic_context typedef.
10130         * plugin.h (struct diagnostic_context): Don't declare here.
10131         (plugins_internal_error_function): Declare using
10132         diagnostic_context typedef.
10133
10134 2010-10-05  Olivier Hainque  <hainque@adacore.com>
10135             Nicolas Roche  <roche@adacore.com>
10136
10137         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
10138         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
10139
10140 2010-10-05  Ira Rosen  <irar@il.ibm.com>
10141
10142         PR tree-optimization/45752
10143         * tree-vect-slp.c (vect_get_mask_element): Remove static
10144         variables, make them function arguments.
10145         (vect_transform_slp_perm_load): Pass new arguments to
10146         vect_get_mask_element.
10147
10148 2010-10-05  Richard Guenther  <rguenther@suse.de>
10149
10150         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
10151         (gimple_mod_pow2): Likewise.
10152         (gimple_mod_subtract): Likewise.
10153         (gimple_ic): Likewise.
10154         (gimple_stringop_fixed_value): Likewise.
10155         * tree-profile.c (tree_init_edge_profiler): Mark profile
10156         functions nothrow and leaf.
10157         (add_abnormal_goto_call_edges): Remove.
10158         (tree_gen_edge_profiler): Work on SSA form.
10159         (tree_gen_ic_profiler): Likewise.  Simplify.
10160         (do_tree_profiling): Update SSA form.
10161         (pass_tree_profile): Remove.
10162         (do_tree_profiling): Likewise.
10163         (gate_tree_profile_ipa): New function.
10164         (pass_ipa_tree_profile): New.
10165         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
10166         state of instrumented functions.
10167         * passes.c (init_optimization_passes): Remove early non-SSA
10168         inlining.  Move profiling after early optimizations.
10169         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
10170         (pass_ipa_early_inline): Likewise.
10171         * tree-pass.h (pass_ipa_early_inline): Remove.
10172         (pass_tree_profile): Likewise.
10173         (pass_ipa_tree_profile): Declare.
10174
10175 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10176             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
10177
10178         * config/s390/s390.c (z196_cost): New.
10179         (s390_handle_arch_option): Add -march=z196.
10180         (s390_option_override): Use the new cost function and use the z10
10181         defaults also for z196.
10182         (legitimate_reload_constant_p): Adjust comment.
10183         (legitimate_reload_fp_constant_p): New function.
10184         (s390_preferred_reload_class): Distingiush between FP and Int constants.
10185         (preferred_la_operand_p): Avoid la with index on z196.
10186         (s390_adjust_priority): Trigger also for z196.
10187         (s390_issue_rate): Issue rate for z196 is 3.
10188         (s390_z10_fix_long_loop_prediction): Rename to ...
10189         (s390_fix_long_loop_prediction): ... this.
10190         (s390_reorg): Apply the z10 adjustments also for z196.
10191         (s390_loop_unroll_adjust): Do this also for z196.
10192         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
10193         (enum processor_flags): Add PF_Z196.
10194         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
10195         (TARGET_CPU_Z196, TARGET_Z196): New macros.
10196         * config.gcc: Enable z196 for --with-arch.
10197         * config/s390/2817.md: New file.
10198         * config/s390/2084.md: New type for multiply and add.
10199         * config/s390/2097.md: Likewise.
10200         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
10201         (UNSPECV_ATOMIC_OP): New constants.
10202         (fmadddf, fmaddsf): New values for type attribute.
10203         (z196prop): New insn attribute.
10204         (cpu, cpu_facility): Add z196.
10205         (ATOMIC_Z196): New code iterator.
10206         (noxa): New code attribute.
10207         (gk): New mode attribute.
10208         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
10209         Support load zero for fp constants.
10210         (fixuns_truncdddi2, fixuns_trunctddi2)
10211         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
10212         for z196.
10213         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
10214         (popcounthi2, popcountqi2): New expander.
10215         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
10216         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
10217         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
10218         insn definition.
10219         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
10220         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
10221         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
10222         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
10223         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
10224         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
10225         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
10226         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
10227         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
10228         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
10229         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
10230         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
10231         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
10232         Support new z196 instructions.
10233
10234 2010-10-05  Richard Guenther  <rguenther@suse.de>
10235
10236         PR middle-end/45877
10237         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
10238         case where gimplification optimizes away the stmt.
10239
10240 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
10241
10242         PR debug/45849
10243         * var-tracking.c (strip_pointer_flags): New function.
10244         (emit_note_insn_var_location): If rtx_equal_p check failed,
10245         retry on locations simplified with simplify_replace_fn_rtx
10246         and strip_pointer_flags as its callback.
10247
10248 2010-10-04  Jan Hubicka  <jh@suse.cz>
10249
10250         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
10251         (can_refer_decl_in_current_unit_p): ... this one; reverse return
10252         value; handle comdats too.
10253         (canonicalize_constructor_val): Use it; handle function_decls
10254         correctly.
10255         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10256         * gimple.c (get_base_address): Accept all kinds of decls.
10257
10258 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
10259
10260         * flags.h (g_switch_value, g_switch_set): Remove.
10261         * opts.c (g_switch_value, g_switch_set): Remove.
10262         * config/g.opt (G): Add Var(g_switch_value).
10263         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
10264         (alpha_option_override): Check global_options_set.x_g_switch_value
10265         instead of g_switch_set.
10266         (alpha_in_small_data_p): Remove cast in comparison with
10267         g_switch_value.
10268         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
10269         g_switch_value to unsigned HOST_WIDE_INT.
10270         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
10271         with g_switch_value.
10272         (frv_handle_option): Don't handle -G here.
10273         (frv_option_override): Check global_options_set.x_g_switch_value
10274         instead of g_switch_set.  Don't modify g_switch_set.
10275         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
10276         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
10277         g_switch_value to unsigned HOST_WIDE_INT.
10278         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
10279         (ia64_option_override): Check global_options_set.x_g_switch_value
10280         instead of g_switch_set.
10281         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
10282         Remove.
10283         (lm32_in_small_data_p): Remove cast in comparison with
10284         g_switch_value.
10285         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
10286         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
10287         HOST_WIDE_INT.
10288         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
10289         (m32r_init): Check global_options_set.x_g_switch_value instead of
10290         g_switch_set.
10291         (m32r_in_small_data_p): Remove cast in comparison with
10292         g_switch_value.
10293         (m32r_file_start): Format g_switch_value with %d.
10294         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
10295         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
10296         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
10297         handle -G here.
10298         (microblaze_option_override): Check
10299         global_options_set.x_g_switch_value instead of g_switch_set.
10300         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
10301         (mips_option_override): Check global_options_set.x_g_switch_value
10302         instead of g_switch_set.
10303         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
10304         (rs6000_file_start): Format g_switch_value with %d.
10305         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
10306         comparisons with g_switch_value.
10307         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
10308         global_options_set.x_g_switch_value instead of g_switch_set.
10309         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10310         global_options_set.x_g_switch_value instead of g_switch_set.
10311         * config/score/score.c (score_handle_option): Don't handle -G here.
10312         * config/score/score3.c (score3_option_override): Check
10313         global_options_set.x_g_switch_value instead of g_switch_set.
10314         * config/score/score7.c (score7_option_override): Check
10315         global_options_set.x_g_switch_value instead of g_switch_set.
10316
10317 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
10318
10319         * common.opt (fira-coalesce): Remove.
10320
10321         * doc/invoke.texi (flag_ira_coalesce): Remove.
10322
10323         * ira-color.c (allocno_coalesced_p): Move before
10324         copy_freq_compare_func.
10325         processed_coalesced_allocno_bitmap): Ditto.
10326         (update_conflict_hard_regno_costs): Don't use
10327         ALLOCNO_FIRST_COALESCED_ALLOCNO.
10328         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
10329         (assign_hard_reg): Assume no coalesced allocnos.
10330         (get_coalesced_allocnos_attributes): Remove.
10331         (bucket_allocno_compare_func): Assume no coalesced allocnos.
10332         (push_allocno_to_stack): Ditto.
10333         (remove_allocno_from_bucket_and_push): Use
10334         ira_print_expanded_allocno instead of print_coalesced_allocno.
10335         (push_allocnos_to_stack): Assume uncoalesced allocnos.
10336         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
10337         all_conflicting_hard_regs.
10338         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
10339         (setup_allocno_left_conflicts_size): Ditto.
10340         (put_allocno_into_bucket): Ditto.
10341         (copy_freq_compare_func): Remove.
10342         (copy_freq_compare_func, merge_allocnos): Move before
10343         coalesced_pseudo_reg_freq_compare.
10344         coalesced_allocno_conflict_p): Ditto.
10345         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
10346         parameter.  Assume it true.
10347         (color_allocnos): Assume uncoalesced allocnos.  Use
10348         ira_print_expanded_allocno instead of print_coalesced_allocno.
10349         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
10350         parameter.
10351
10352         * ira.c: Remove comment about coalescing.
10353
10354 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
10355
10356         * config/mips/mips.h (target_flags_explicit): Declare for
10357         GENERATOR_FILE.
10358
10359 2010-10-04  Andi Kleen  <ak@linux.intel.com>
10360
10361         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
10362         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
10363
10364 2010-10-04  Matthias Klose  <doko@ubuntu.com>
10365
10366         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
10367         multilib osdirname if it exists.
10368         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
10369
10370 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
10371
10372         PR middle-end/45876
10373         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
10374         arg0's type or its unsigned counterpart as utype.  Convert
10375         arg1 to utype unconditionally.
10376
10377 2010-10-04  Julian Brown  <julian@codesourcery.com>
10378
10379         * expr.c (expand_assignment): Add assertion to prevent emitting
10380         null rtx for movmisalign pattern.
10381         (expand_expr_real_1): Likewise.
10382         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
10383         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
10384         (arm_vector_alignment_reachable): New.
10385         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
10386         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
10387         (arm_print_operand): Include alignment qualifier in %A.
10388         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
10389         (movmisalign<mode>): New expander.
10390         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
10391         insn patterns.
10392
10393 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
10394
10395         * optc-gen.awk: Define global_options_set.  Don't define
10396         target_flags_explicit.
10397         * opth-gen.awk: Declare global_options_set.  Define
10398         target_flags_explicit as macro.
10399         * opts-common.c (handle_option): Take opts_set and generated_p
10400         parameters.
10401         (handle_generated_option, read_cmdline_option, set_option): Take
10402         opts_set parameter.
10403         (set_option): Use opts_set instead of hardcoding target_flags and
10404         target_flags_explicit.
10405         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
10406         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
10407         flag_value_profile_transformations_set, flag_peel_loops_set,
10408         flag_branch_probabilities_set, flag_inline_functions_set,
10409         flag_ipa_cp_set, flag_ipa_cp_clone_set,
10410         flag_predictive_commoning_set, flag_unswitch_loops_set,
10411         flag_gcse_after_reload_set): Remove.
10412         (common_handle_option, lang_handle_option, target_handle_option):
10413         Take opts_set parameter.  Assert that it is &global_options_set.
10414         (common_handle_option): Don't set _set variables.  Check opts_set
10415         instead of such variables.
10416         (enable_warning_as_error): Pass &global_options_set to
10417         handle_generated_option.
10418         * opts.h (cl_option_handler_func.handler, set_option,
10419         handle_option, handle_generated_option, read_cmdline_option): Add
10420         opts_set parameters.
10421         (handle_option): Add generated_p parameter.
10422         * config/i386/i386.c (ix86_function_specific_save,
10423         ix86_function_specific_restore): Updat for renaming of
10424         target_flags_explicit field.
10425         * config/i386/i386.opt (target_flags_explicit): Rename to
10426         ix86_target_flags_explicit.
10427         * config/ia64/ia64.c (ia64_override_options_after_change): Check
10428         global_options_set.x_flag_selective_scheduling and
10429         global_options_set.x_flag_selective_scheduling2, not
10430         sel_sched_switch_set.
10431         * flags.h (sel_sched_switch_set,
10432         flag_speculative_prefetching_set): Remove.
10433         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
10434         that it is &global_options_set.
10435         (process_command): Pass &global_options_set to read_cmdline_option.
10436         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
10437         set_option.
10438         * toplev.c (target_flags_explicit): Remove.
10439
10440 2010-10-04  Jan Hubicka  <jh@suse.cz>
10441
10442         PR middle-end/45871
10443         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
10444         use get_ref_base_and_offset to handle references.
10445         (fold_const_aggregate_ref): Update.
10446
10447 2010-10-04  Martin Jambor  <mjambor@suse.cz>
10448
10449         PR tree-optimization/45572
10450         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
10451         ipa_check_create_node_params.
10452         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
10453
10454 2010-10-04  Yao Qi  <yao@codesourcery.com>
10455
10456         * doc/passes.texi: Clean up.
10457
10458 2010-10-03  Ian Lance Taylor  <iant@google.com>
10459
10460         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
10461         referring to a field using a typedef name.
10462         (find_anonymous_field_with_type): New static function.
10463         (convert_to_anonymous_field): New static function.
10464         (convert_for_assignment): If -fplan9-extensions, permit converting
10465         pointer to struct to pointer to anonymous field.
10466         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
10467         (is_duplicate_field): New static function.
10468         (detect_field_duplicates_hash): If -fplan9-extensions, check for
10469         typedef names duplicating field names.
10470         (detect_field_duplicates): Likewise.
10471         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
10472         (C Dialect Options): Document -fplan9-extensions.
10473         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
10474
10475 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
10476
10477         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
10478         revision 164914.
10479         (vect_create_data_ref_ptr): Likewise.
10480         * tree-vect-stmts.c (vectorizable_store): Likewise.
10481         (perm_mask_for_reverse): Likewise.
10482         (reverse_vec_elements): Likewise.
10483         (vectorizable_load): Likewise.
10484
10485 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10486
10487         * cppbuiltin.c: New file.
10488         * cppbuiltin.h: New file.
10489         * Makefile.in: Take into account cppbuiltin.{h,c}.
10490
10491 2010-10-03  Andi Kleen  <ak@linux.intel.com>
10492
10493         * lto-cgraph.c (input_cgraph): Check for missing sections.
10494
10495 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
10496
10497         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
10498         to nonimmediate_operand.  Force operand 2 to register when allowed.
10499         (*<shiftrt_insn><mode>3_mask): Ditto.
10500         (*<rotate_insn><mode>3_mask): Ditto.
10501
10502 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
10503
10504         PR tree-optimization/45720
10505         PR tree-optimization/45764
10506         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
10507         Don't accept backwards consecutive accesses.
10508         (vect_create_data_ref_ptr): Disallow negative steps.
10509
10510         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
10511         (perm_mask_for_reverse): Removed.
10512         (reverse_vec_elements): Likewise.
10513         (vectorizable_load): Don't handle negative steps.
10514
10515 2010-10-02  Jan Hubicka  <jh@suse.cz>
10516
10517         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
10518         call destination is known.
10519
10520 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10521
10522         PR target/45820
10523         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
10524         earlier.
10525
10526 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10527
10528         * doc/install.texi (Configuration): Document build_configargs,
10529         host_configargs, target_configargs.
10530
10531 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
10532
10533         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
10534         (*<shiftrt_insn><mode>3_mask): Ditto.
10535         (*<rotate_insn><mode>3_mask): Ditto.
10536
10537 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
10538
10539         PR tree-optimization/44716
10540         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
10541         (HOT_TEXT_SECTION_NAME): Define.
10542
10543 2010-10-01  Nick Clifton  <nickc@redhat.com>
10544
10545         * common.opt: Add -fcombine-stack-adjustments.
10546         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
10547         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
10548         flag_combine_stack_adjustments.
10549         * doc/invoke.texi: Document the new option.
10550
10551 2010-10-01  Richard Guenther  <rguenther@suse.de>
10552
10553         PR tree-optimization/45854
10554         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
10555
10556 2010-10-01  Anthony Green  <green@moxielogic.com>
10557
10558         * config.gcc: Fix moxie-*-rtems* configuration.
10559
10560 2010-10-01  Richard Guenther  <rguenther@suse.de>
10561
10562         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
10563         (gen_decl_die): Likewise.
10564
10565 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10566
10567         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
10568         to the function code for SPU MD builtins.
10569         (spu_expand_builtin): Update.
10570         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
10571
10572 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10573
10574         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
10575         sjlj_except_unwind_info.
10576
10577 2010-10-01  Tristan Gingold  <gingold@adacore.com>
10578
10579         * configure.ac: Define the nop insn for avr*-*-*
10580         * configure: Regenerate.
10581
10582 2010-10-01  Alan Modra  <amodra@gmail.com>
10583
10584         PR target/45807
10585         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
10586         extend toc_restore_insn.
10587
10588 2010-09-30  Richard Guenther  <rguenther@suse.de>
10589
10590         PR tree-optimization/43959
10591         * function.c (gimplify_parameters): Use create_tmp_reg instead of
10592         create_tmp_var.
10593
10594 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
10595
10596         * config/sh/sh.c (sh_expand_prologue): Set
10597         current_function_static_stack_size.
10598
10599 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10600
10601         * configure.ac: Check for Solaris 8 ld with .hidden support.
10602         * configure: Regenerate.
10603
10604 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10605
10606         PR middle-end/45758
10607         * graphite.c (graphite_initialize): Call scev_reset.
10608
10609 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10610
10611         * sese.h (scev_analyzable_p): Return false for real or floating
10612         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
10613
10614 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10615
10616         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
10617         and ps.
10618         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
10619         domain.
10620         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
10621         Do not allocate ub_expr, it is passed in initialized.
10622
10623 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10624
10625         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
10626         (build_cloog_prog): Dump CLooG input file when
10627         flag_graphite_dump_cloog is set.  This is disabled on trunk.
10628         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
10629
10630 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10631
10632         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
10633         verify_dominators for CDI_POST_DOMINATORS.
10634         * sese.h: Remove comment about CDI_POST_DOMINATORS.
10635         (recompute_all_dominators): Remove call to free_dominance_info
10636         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
10637         for CDI_POST_DOMINATORS.
10638
10639 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10640
10641         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
10642         over pbb_dim_iter_domain.
10643
10644 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10645
10646         * graphite-flattening.c: Fix comments.
10647
10648 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10649
10650         * Makefile.in (OBJS-common): Add graphite-flattening.o.
10651         (graphite-flattening.o): New rule.
10652         * common.opt (floop-flatten): New flag.
10653         * doc/invoke.texi (-floop-flatten): Documented.
10654         * graphite-flattening.c: New.
10655         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
10656         * graphite-poly.h (flatten_all_loops): Declared.
10657         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
10658         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
10659         is set, also set flag_graphite.
10660
10661 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10662
10663         * graphite-poly.c (cloog_checksum): New.
10664         * graphite-poly.h (cloog_checksum): Declared.
10665
10666 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10667
10668         * graphite-poly.c (pbb_number_of_iterations): Removed.
10669         (pbb_number_of_iterations_at_time): Correctly compute the number
10670         of iterations in the transformed loop.
10671         * graphite-poly.h (pbb_number_of_iterations): Removed.
10672
10673 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10674
10675         * graphite-poly.h (lst_update_scattering_seq): Removed.
10676         (lst_update_scattering): Correctly handle outermost loop dewey
10677         renumbering.
10678
10679 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10680
10681         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
10682         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
10683         * graphite-poly.h (lst_niter_for_loop): New.
10684
10685 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10686
10687         * graphite-poly.c (apply_poly_transforms): Do not abort when the
10688         transform read from disk is not legal.  Call fatal_error instead.
10689
10690 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10691
10692         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
10693         (print_scop_header): Removed.  Inlined in the only call place...
10694         (print_scop): ... here.
10695
10696 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10697
10698         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
10699
10700 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10701
10702         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
10703
10704 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10705
10706         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
10707         (dot_deps_stmt): Same.
10708         * graphite-poly.c (dot_lst): Same.
10709
10710 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10711
10712         * graphite-blocking.c (scop_do_strip_mine): Do not call
10713         graphite_legal_transform.
10714         (scop_do_block): Same.
10715
10716 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
10717
10718         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
10719         description.
10720
10721 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10722
10723         * tree-scalar-evolution.c (instantiate_array_ref): New.
10724         (instantiate_scev_r): Also handle ARRAY_REFs.
10725
10726 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10727
10728         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10729         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
10730         RESULT_DECL, and FIELD_DECL.  Return false for an
10731         SSA_NAME_IS_DEFAULT_DEF.
10732         (compute_scalar_evolution_in_loop): Do not further analyze the
10733         scalar evolution when no_evolution_in_loop_p returns true.
10734
10735 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10736
10737         * tree-chrec.h (evolution_function_is_affine_p): Do not check
10738         whether CHREC_LEFT is invariant.  A function is affine when
10739         CHREC_RIGHT is invariant.
10740
10741 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10742
10743         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
10744         is_gimple_reg.
10745         (rewrite_degenerate_phi): Same.
10746         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
10747
10748 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
10749
10750         * graphite-scop-detection.c (graphite_can_represent_scev,
10751         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
10752         graphite_can_represent_loop): Remove outermost_loop.
10753
10754 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10755
10756         PR middle-end/45229
10757         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
10758         handle GIMPLE_CALLs with no LHS.
10759
10760 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10761
10762         * graphite-poly.c (init_graphite_out_file): New.
10763         (init_graphite_in_file): New.
10764         (apply_poly_transforms): Updated to enable reading and writing of
10765         multiple scop files.
10766
10767 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
10768
10769         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
10770         redundant checks.
10771
10772 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10773
10774         * graphite-clast-to-gimple.c (precision_for_value): Adjust
10775         computation of precision by 1.
10776
10777 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10778
10779         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
10780         (openscop_read_polyhedron_matrix): New.
10781         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
10782         (openscop_read_N_int): Same.
10783         * graphite-poly.c (openscop_read_N_int): New.
10784         (openscop_read_one_int): New.
10785         (openscop_read_N_string): New.
10786         (openscop_read_one_string): New.
10787         (openscop_read_powerset_matrix): New.
10788         (graphite_read_transforms): Remove.
10789         (graphite_read_scatt): New.
10790         (graphite_read_scop_file): New.
10791         (apply_poly_transforms): Updated to call graphite_read_scop_file.
10792
10793 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10794
10795         * graphite-poly.c: Change include order.
10796
10797 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10798
10799         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
10800         (cloog_matrix_nrows): New.
10801
10802 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10803
10804         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
10805         from matrix lines.
10806         * graphite-poly.c (openscop_print_scattering_function_1): Same.
10807         (print_scattering_function_1): Same.
10808         (openscop_print_pbb_domain): Same.
10809         (openscop_print_scop_context): Same.
10810         (print_scop_context): Same.
10811
10812 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
10813
10814         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
10815         (openscop_print_pdr_polyhedron): Print pph.
10816
10817 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10818
10819         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
10820         priority signed types.
10821
10822 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10823
10824         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
10825         the call to lang_hooks.types.type_for_size.  Call
10826         build_nonstandard_integer_type.
10827
10828 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10829
10830         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
10831         (openscop_print_polyhedron_matrix): New.
10832         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
10833         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
10834         (openscop_print_pdr_powerset): New.
10835         (openscop_print_powerset_matrix): New.
10836         (openscop_print_scattering_function_1): New.
10837         (print_scattering_function): Add support for scattering names and
10838         OpenScop format.
10839         (graphite_write_transforms): Remove.
10840         (print_pdr_access_layout): Updated to support OpenScop format.
10841         (print_pdr): Same.
10842         (openscop_print_pbb_domain): New.
10843         (print_pbb_body): Added a parameter to allow indicating that pbb_body
10844         is not provided.
10845         (print_pbb): Updated to call the new print_pbb_body.
10846         (openscop_print_scop_context): New.
10847         (print_scop_header): New.
10848         (print_scop): Updated to call print_scop_header.
10849         * graphite-poly.h: Document OpenScop format.
10850
10851 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
10852
10853         * config/cris/m32c.c (cris_memory_move_cost): New.
10854         (cris_register_move_cost): Make static. Change arguments type from
10855         enum reg_class to reg_class_t.
10856         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10857         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10858         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
10859
10860 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
10861
10862         PR target/45843
10863         * config/i386/i386.c (ix86_gimplify_va_arg): Use
10864         INTVAL (XEXP (slot, 1)) as prev_size.
10865
10866 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
10867
10868         PR target/45837
10869         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
10870         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
10871         defined.
10872         * config/rs6000/option-defaults.h (toplevel): Change #if
10873         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
10874         global option changes.
10875
10876 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
10877
10878         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
10879
10880         PR tree-optimization/31261
10881         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
10882         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
10883
10884 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10885
10886         PR bootstrap/45796
10887         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
10888         special-casing for generators and turn into ...
10889         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
10890         rule, for better error messages in case of toplevel dependency errors.
10891         (genprog): Add hooks, rename to ...
10892         (genprogerr): ... this, and let genprog also contain check,
10893         checksum, condmd.
10894         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
10895         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
10896         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
10897
10898 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
10899             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10900
10901         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
10902         for GMP, MPFR and MPC.
10903
10904 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10905
10906         * config/sparc/sparc.opt (mimpure-text): Move ...
10907         * config/sol2.opt: ... here.  Correct description.
10908         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
10909         * doc/invoke.texi (Option Summary, SPARC Options): Move
10910         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
10911         (Option Summary, Solaris 2 Options): ... here.
10912         (Submodel Options, Solaris 2 Options): New menu entry.
10913         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
10914         (Solaris 2 Options): ... here.
10915
10916 2010-09-30  Michael Eager  <eager@eagercon.com>
10917
10918         * extend.texi (interrupt_handler): Add MicroBlaze to list.
10919         (save_volatiles): Describe option for MicroBlaze.
10920         * invoke.texi: Add MicroBlaze Options.
10921         * contrib.texi: Add acknowledgment.
10922         * md.texi: Add MicroBlaze d and z constraints.
10923         * install.texi: Add microblaze-*-elf.
10924         * configure.ac: Add microblaze-*-* to target list.
10925         * configure: Regenerate.
10926         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
10927         * config/microblaze/microblaze-protos.h: New.
10928         * config/microblaze/crti.s: New.
10929         * config/microblaze/predicates.md: New.
10930         * config/microblaze/linux.h: New.
10931         * config/microblaze/microblaze.md: New.
10932         * config/microblaze/constraints.md: New.
10933         * config/microblaze/crtn.s: New.
10934         * config/microblaze/microblaze.opt: New.
10935         * config/microblaze/microblaze-c.c: New.
10936         * config/microblaze/t-microblaze: New.
10937         * config/microblaze/microblaze.c: New.
10938         * config/microblaze/microblaze.h: New.
10939
10940 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
10941
10942         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
10943         parse @optional/@required and set the flags as appropriate.
10944
10945 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
10946
10947         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
10948
10949 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
10950
10951         * opt-functions.awk (static_var): Update comment.
10952         (var_ref): Return offsetof expression or -1, not variable address.
10953         * optc-gen.awk: Generate structure field initializers instead of
10954         static variables.  Expect -1 for missing variables instead of null
10955         pointer.  Add gcc_options parameters to generated functions.
10956         * opth-gen.awk: Generate structure fields for static variables.
10957         Add gcc_options parameters to generated functions.
10958         * common.opt (optimize, optimize_size): Add variables.
10959         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
10960         &global_options to cl_target_option_restore.
10961         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
10962         &global_options to cl_optimization_restore, cl_target_option_save
10963         and cl_target_option_restore.
10964         (ix86_set_current_function): Pass &global_options to
10965         cl_target_option_restore.
10966         * config/pdp11/pdp11.h (optimize): Remove.
10967         * config/rs6000/rs6000.h (optimize): Remove.
10968         * config/sh/sh.h (optimize): Remove.
10969         * config/xtensa/xtensa.h (optimize): Remove.
10970         * coretypes.h (struct gcc_options): Declare.
10971         * diagnostic.c (diagnostic_initialize): Initialize
10972         context->option_state.
10973         (diagnostic_report_diagnostic): Pass option_state to
10974         option_enabled hook.
10975         * diagnostic.h (diagnostic_context.option_enabled): Add void *
10976         parameter.
10977         (diagnostic_context.option_state): New field.
10978         * final.c (final_start_function, final, final_scan_insn): Rename
10979         optimize parameter to optimize_p.
10980         * flags.h (optimize, optimize_size): Remove.
10981         * function.c (invoke_set_current_function_hook): Pass
10982         &global_options to cl_optimization_restore.
10983         * gcc.c (driver_handle_option): Take gcc_options parameter.
10984         Assert that it is &global_options.
10985         (process_command): Pass &global_options to read_cmdline_option.
10986         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
10987         option_enabled.
10988         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
10989         &global_options to set_option.
10990         * opts-common.c (handle_option, handle_generated_option,
10991         read_cmdline_option, set_option): Take explicit gcc_options
10992         parameters.  Use option_flag_var.
10993         (option_flag_var): New.
10994         * opts.c (common_handle_option, lang_handle_option,
10995         target_handle_option): Take gcc_options parameter.  Assert that it
10996         is &global_options.
10997         (read_cmdline_options): Pass &global_options to read_cmdline_option.
10998         (print_filtered_help): Use option_flag_var.  Pass &global_options
10999         to option_enabled.
11000         (common_handle_option): Use option_flag_var.
11001         (option_enabled): Take opts parameter.  Use option_flag_var.
11002         (get_option_state): Take gcc_options parameter.  Use
11003         option_flag_var.  Pass gcc_options parameter to option_enabled.
11004         (enable_warning_as_error): Pass &global_options to
11005         handle_generated_option.
11006         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
11007         (cl_option_handler_func.handler): Take gcc_options parameter.
11008         (option_enabled, get_option_state, set_option, handle_option,
11009         handle_generated_option, read_cmdline_option): Take gcc_options
11010         parameters.
11011         * toplev.c (optimize, optimize_size): Remove.
11012         (print_switch_values): Pass &global_options to option_enabled.
11013         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
11014         to get_option_state.
11015         (general_init): Initialize global_dc->option_state.
11016         * tree.c (build_optimization_node): Pass &global_options to
11017         cl_optimization_save.
11018         (build_target_option_node): Pass &global_options to
11019         cl_target_option_save.
11020
11021 2010-09-30  Martin Jambor  <mjambor@suse.cz>
11022
11023         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
11024         zero sized bit-fields.
11025
11026 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
11027
11028         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
11029         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
11030         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
11031         (c_parser_objc_class_declaration): Same change.
11032         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
11033         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
11034         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
11035         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
11036         and RID_AT_PUBLIC instead of RID_PUBLIC.
11037         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
11038         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
11039
11040 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
11041
11042         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
11043         Add links to current providers of packages for Solaris and IRIX.
11044
11045 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11046
11047         Merge from 'apple/trunk' branch on FSF servers.
11048         * c-parser.c: Applied change originally in c-parse.in.
11049
11050         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
11051
11052         Radar 4281748
11053         * c-decl.c (start_decl): Check for redeclaration of class name.
11054         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
11055
11056 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
11057
11058         * config/ia64/ia64.c (ia64_builtin_decl): New.
11059         (TARGET_BUILTIN_DECL): Define.
11060         (ia64_builtins): New.
11061         (ia64_init_builtins): Save decls in ia64_builtins.
11062
11063 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
11064
11065         PR target/40457
11066         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
11067         (move2add_use_add3_insn): Likewise.
11068         (reload_cse_move2add): Likewise.
11069         * rtlanal.c (get_full_rtx_cost): New function.
11070         * rtl.h (struct full_rtx_costs): New.
11071         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
11072         costs_add_n_insns): New inline functions.
11073         (get_full_rtx_cost): Declare.
11074
11075         PR c/45054
11076         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
11077         invariants.  Check for reg_equiv_invariant.
11078         (reload): Assert that spilled_pseudos is empty when returning.
11079
11080 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
11081
11082         * config/i386/mingw32.h (TARGET_64BIT): replaced by
11083         TARGET_64BIT_DEFAULT in #if check.
11084
11085 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
11086
11087         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
11088
11089 2010-09-29  Mike Stump  <mikestump@comcast.net>
11090
11091         * config/darwin.h (flag_mkernel): Remove.
11092         (flag_apple_kext): Likewise.
11093
11094 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
11095             Jack Howarth  <howarth@bromo.med.uc.edu>
11096
11097         * config/darwin.opt (undefined): Add.
11098
11099 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
11100
11101         PR testsuite/45664
11102         * configure.ac: Add --enable-indirect-function option.
11103         * config.gcc: Add default_gnu_indirect_function.
11104         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
11105         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
11106         * varasm.c (do_assemble_alias): Adjust for macro name change.
11107         * configure: Rebuilt.
11108         * doc/install.texi: Document --enable-indirect-function.
11109
11110 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
11111
11112         * doc/options.texi (Variable, Var, Init): Update documentation
11113         without reference to VarExists.
11114         (VarExists): Remove.
11115         * common.opt, config/i386/i386.opt, config/linux.opt,
11116         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
11117         Don't use VarExists.
11118
11119 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
11120
11121         * optc-gen.awk: Generate global_options initializer instead of
11122         individual variables.  Add x_ prefix to names of structure members.
11123         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
11124         names of structure members.
11125         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11126         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
11127         * doc/tm.texi: Regenerate.
11128         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11129         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11130         * c-parser.c (disable_extension_diagnostics,
11131         restore_extension_diagnostics): Update names of cpp_options members.
11132         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11133         * common.opt (fcompare-debug-second): Don't use Var.
11134         * config/alpha/alpha.h (target_flags): Remove.
11135         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11136         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11137         * config/bfin/bfin.h (target_flags): Remove.
11138         * config/cris/cris.h (target_flags): Remove.
11139         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
11140         cl_target_option members.
11141         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
11142         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
11143         ix86_can_inline_p): Update names of cl_target_option members.
11144         * config/i386/i386.h (ix86_isa_flags): Remove.
11145         * config/lm32/lm32.h (target_flags): Remove.
11146         * config/mcore/mcore.h (mcore_stack_increment): Remove.
11147         * config/mcore/mcore.md (addsi3): Remove extern declaration of
11148         flag_omit_frame_pointer.
11149         * config/mep/mep.h (target_flags): Remove.
11150         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11151         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11152         * config/mmix/mmix.h (target_flags): Remove.
11153         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
11154         flag_expensive_optimizations): Remove.
11155         * config/s390/s390.h (flag_pic): Remove.
11156         * config/score/score-conv.h (target_flags): Remove.
11157         * config/sh/sh.h (sh_fixed_range_str): Remove.
11158         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
11159         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11160         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11161         * diagnostic.c (diagnostic_initialize): Update names of
11162         diagnostic_context members.
11163         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
11164         warn_system_headers.
11165         (diagnostic_report_warnings_p): Update for new names.
11166         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11167         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
11168         HARD_FRAME_POINTER_IS_ARG_POINTER.
11169         * flags.h (flag_compare_debug): Declare.
11170         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11171         * opts.c (flag_compare_debug): Define.
11172         (common_handle_option): Update names of diagnostic_context
11173         members.  Handle -fcompare-debug-second.
11174         (fast_math_flags_struct_set_p): Update names of cl_optimization
11175         members.
11176         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11177         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11178         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11179         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11180         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11181         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11182         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
11183         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11184         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11185
11186 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
11187
11188         * config/picochip/picochip.c (picochip_output_internal_label):
11189         This function can now be called for debug CFI labels, which can come
11190         in the middle of a vliw instruction.  Postpone until end of vliw.
11191
11192 2010-09-29  Richard Guenther  <rguenther@suse.de>
11193
11194         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
11195         (DECL_FILE_SCOPE_P): Use it.
11196         (TYPE_FILE_SCOPE_P): New macro.
11197
11198 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11199
11200         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
11201         a CPP_NAME which is a reserved word, clearly separate cases for
11202         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
11203
11204 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11205
11206         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
11207         token->value with the canonical spelling.  Do exactly like C and
11208         C++ and leave it as it is.
11209
11210 2010-09-28  Richard Henderson  <rth@redhat.com>
11211
11212         * config/alpha/alpha.c (alpha_builtins): New.
11213         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
11214         (alpha_builtin_function): New.
11215         (alpha_add_builtins, alpha_init_builtins): Use it.
11216
11217 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
11218
11219         * doc/standards.texi (Standards): Expanded the section on
11220         Objective-C and Objective-C++.
11221
11222 2010-09-28  DJ Delorie  <dj@redhat.com>
11223
11224         PR target/45800
11225         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
11226         volatile MEMs.
11227
11228 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
11229
11230         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
11231         attributes on methods.
11232          (c_parser_objc_method_definition): Handle attributes.
11233         (c_parser_objc_methodproto): Likewise.
11234         (c_parser_objc_maybe_method_attributes): New.
11235         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
11236         missing definition, similar to that in ObjC++.
11237
11238 2010-09-28  Richard Henderson  <rth@redhat.com>
11239
11240         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
11241         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11242         (CONFIG_SJLJ_EXCEPTIONS): Remove.
11243         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
11244         (STACK_CHECK_PROTECT): Likewise.
11245         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
11246         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
11247         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
11248         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
11249         (dwarf2out_assembly_start): Likewise.
11250         * except.c (init_eh): Use targetm.except_unwind_info.
11251         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
11252         (output_one_function_exception_table): Likewise.
11253         * final.c: Unconditionally include dwarf2out.h.
11254         (final_start_function): Unconditionally call dwarf2out routines.
11255         (final_end_function, final_scan_insn): Likewise.
11256         * function.c (expand_function_end): Use targetm.except_unwind_info.
11257         * opts.c (decode_options): Use targetm.except_unwind_info.
11258         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
11259         * target.def (debug_unwind_info, except_unwind_info): New.
11260         * target.h (enum unwind_info_type): New.
11261         * targhooks.c (default_debug_unwind_info): New.
11262         (default_except_unwind_info): New.
11263         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
11264         * targhooks.h: Declare them.
11265         * tree-tailcall.c: Include "target.h"
11266         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
11267         * Makefile.in (tree-tailcall.o): Update.
11268         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
11269         (lhd_gcc_personality): Likewise.
11270
11271         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
11272         (TARGET_EXCEPT_UNWIND_INFO): New.
11273         (DWARF2_UNWIND_INFO): Update.
11274         (TARGET_DEBUG_UNWIND_INFO): New.
11275         * doc/tm.texi: Rebuild.
11276
11277         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
11278         targetm.except_unwind_info.
11279
11280         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
11281         (arm_except_unwind_info): New.
11282         (arm_compute_func_type): Use it.
11283         (arm_expand_prologue, thumb_pushpop): Likewise.
11284         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
11285         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
11286         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
11287         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
11288         (DWARF2_UNWIND_INFO): Remove.
11289         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11290         (ARM_EABI_UNWIND_TABLES): Remove.
11291
11292         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
11293         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
11294         (ia64_except_unwind_info): New.
11295         (ia64_output_function_prologue): Use it.
11296         (ia64_add_bundle_selector_before): Likewise.
11297         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
11298         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
11299         (TARGET_UNWIND_INFO): Remove.
11300
11301         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
11302
11303 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
11304
11305         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
11306         (c_parser_objc_protocol_definition): Likewise.
11307         (c_parser_external_declaration): Provide dummy attribute arguments.
11308         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
11309         (c_parser_objc_class_definition): Handle attributes.
11310         (c_parser_objc_protocol_definition): Likewise.
11311
11312 2010-09-28  Tobias Burnus  <burnus@net-b.de>
11313
11314         PR fortran/40569
11315         PR fortran/40568
11316         * toplev.h (save_decoded_options, save_decoded_options_count):
11317         New global variables.
11318         * toplev.c (save_decoded_options, save_decoded_options_count):
11319         Export variables.
11320
11321 2010-09-28  Ian Lance Taylor  <iant@google.com>
11322
11323         * config/i386/i386.c (ix86_supports_split_stack): Test
11324         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
11325
11326 2010-09-28  Ian Lance Taylor  <iant@google.com>
11327
11328         PR target/45815
11329         * opts.c (decode_options): Don't test whether the target supports
11330         split stack if flag_split_stack == 0.
11331
11332 2010-09-28  Jan Hubicka  <jh@suse.cz>
11333
11334         * builtin-attrs.def (ATTR_LEAF): New attribute.
11335         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
11336         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
11337         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
11338         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
11339         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
11340         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
11341         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
11342         * sync-builtins.def: Annotate all builtins by leaf.
11343         * omp-builtins.def: Annotate all builtins by leaf.
11344         * builtins.def: Annotate relevant builtins with leaf attribute.
11345         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11346         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
11347         leaf.
11348
11349 2010-09-28  Jan Hubicka  <jh@suse.cz>
11350
11351         * tree-ssa-ccp.c (fold_ctor_reference): New function.
11352         (fold_const_aggregate_ref): Use it.
11353         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
11354         into external static.
11355
11356 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11357
11358         PR target/44452
11359         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
11360         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
11361         (ix86_solaris_return_in_memory): Remove.
11362         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
11363         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11364         (TARGET_SUBTARGET_DEFAULT): Redefine.
11365         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
11366         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11367         (TARGET_SUBTARGET_DEFAULT): Redefine.
11368         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
11369         -mvect8-ret-in-mem.
11370         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
11371
11372 2010-09-29  Alan Modra  <amodra@gmail.com>
11373
11374         PR target/45807
11375         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
11376         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
11377         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
11378         Delete.
11379         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
11380         (rs6000_emit_prologue): Don't just create frame save info for r2,
11381         actually save r2.
11382
11383 2010-09-28  Richard Henderson  <rth@redhat.com>
11384
11385         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
11386         when 8 bytes are requested.
11387
11388 2010-09-28  Tristan Gingold  <gingold@adacore.com>
11389
11390         * config/avr/avr.c (expand_prologue): Set
11391         current_function_static_stack_size.
11392
11393 2010-09-28  Tristan Gingold  <gingold@adacore.com>
11394
11395         * config/alpha/alpha.md: Change the initial condition of the
11396         probing loop.
11397
11398 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
11399
11400         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
11401         Split from *avx_<maxmin:code><mode>3.
11402         (*avx_<smaxmin:code><mode>3): Ditto.
11403         * config/i386/i386.md (maxmin): Remove code iterator.
11404
11405 2010-09-27  Ian Lance Taylor  <iant@google.com>
11406
11407         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
11408         requires assembler support for CFI directives.
11409
11410 2010-09-27  Richard Henderson  <rth@redhat.com>
11411
11412         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
11413
11414 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
11415
11416         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
11417         that AFTER is not in the range FROM..TO, inclusive.
11418
11419 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
11420             Bernd Schmidt  <bernds@codesourcery.com>
11421
11422         PR rtl-optimization/45792
11423         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
11424         If not all insns are to be merged, for each edge, stash the
11425         next candidate after the to-be-merged insns before doing the
11426         merge, and use them for the retry at the new insertion point.
11427         Handle CC0 targets when retrying.
11428
11429 2010-09-27  Ian Lance Taylor  <iant@google.com>
11430
11431         * common.opt (fsplit-stack): New option.
11432         * opts.c (decode_options): Set flag_split_stack to final value.
11433         * target.def (supports_split_stack): New hook.
11434         * gcc.c (STACK_SPLIT_SPEC): Define.
11435         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
11436         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
11437         (Code Gen Options): Document -fsplit-stack.
11438         * doc/extend.texi (Function Attributes): Mention no_split_stack.
11439         (Function Attributes): Document no_split_stack.
11440         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
11441         TARGET_SUPPORTS_SPLIT_STACK.
11442         * doc/tm.texi: Rebuild.
11443         * function.c (thread_prologue_and_epilogue_insns): If
11444         flag_split_stack, add split stack prologue.
11445         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
11446         * varasm.c (saw_no_split_stack): New static variable.
11447         (assemble_start_function): Set saw_no_split_stack if the function
11448         has the no_split_stack attribute.
11449         (file_end_indicate_split_stack): New function.
11450         * output.h (file_end_indicate_split_stack): Declare.
11451         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
11452         and function.
11453         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
11454         routines.
11455         * config/i386/i386.c (ix86_option_override_internal): Don't set
11456         expand_builtin_va_start to NULL if -fsplit-stack.
11457         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
11458         -fsplit-stack.
11459         (ix86_va_start): If -fsplit-stack, get overflow pointer from
11460         scratch register set by prologue.
11461         (ix86_code_end): If -fsplit-stack, call
11462         file_end_indicate_split_stack.
11463         (ix86_supports_split_stack): New static function.
11464         (SPLIT_STACK_AVAILABLE): Define.
11465         (split_stack_prologue_scratch_regno): New static function.
11466         (split_stack_fn): New static variable.
11467         (ix86_expand_split_stack_prologue): New function.
11468         (ix86_live_on_entry): New static function.
11469         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
11470         (output_pic_addr_const): Likewise.
11471         (i386_asm_output_addr_const_extra): Likewise.
11472         (ix86_expand_call): Change return type to rtx.  Return the new
11473         call instruction.
11474         (TARGET_SUPPORTS_SPLIT_STACK): Define.
11475         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11476         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
11477         (split_stack_prologue, split_stack_return): New insns.
11478         (split_stack_space_check): New insn.
11479         * config/i386/i386.h (struct machine_function): Add
11480         split_stack_varargs_pointer field.
11481         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
11482         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11483         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11484         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11485         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
11486         Declare.
11487         (ix86_expand_call): Update declaration.
11488
11489 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
11490
11491         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
11492         code.  Added byref, which was missing in the list of codes.
11493         Explain that enumeration values are encoded as the integer type
11494         that the compiler uses to store them.  Explain and make examples
11495         of how 'const' interacts with pointers, and the complication of
11496         the encoding of 'const char *'.
11497         (Legacy type encoding): New subsection, explaining that GCC emits
11498         incorrect type encodings for the NeXT runtime for compatibility
11499         reasons.
11500         (@@encode): New subsection, explaining @encode and particularly
11501         that protocol qualifiers are not recognized inside an @encode()
11502         expression.
11503         (Method signatures): New subsection, explaining how method
11504         signatures are encoded.
11505
11506 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
11507
11508         Merge from 'apple/trunk' branch on FSF servers.  Removed small
11509         change in build_conditional_expr that had been added when fixing
11510         PR objc/27377 and which did the same check in a less complete way.
11511
11512         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
11513
11514         Radar 4229905
11515         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
11516         looking for objective-c common pointer types.
11517
11518         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
11519
11520         Radar 4154928
11521         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
11522         use their ObjC common type.
11523
11524 2010-09-27  Richard Guenther  <rguenther@suse.de>
11525
11526         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
11527
11528 2010-09-27  Jie Zhang  <jie@codesourcery.com>
11529
11530         * print-tree.c (print_node): Print in-constant-pool.
11531
11532 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
11533
11534         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
11535         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
11536         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
11537         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
11538
11539 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
11540
11541         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
11542         from pro_epilogue_adjust_stack_<mode>_{1,2}.
11543         (pro_epilogue_adjust_stack_<mode>_add): Rename from
11544         pro_epilogue_adjust_stack_<mode>_3.
11545         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
11546         renamed pro_epilogue_adjust_stack_{si,di}_add.
11547         (ix86_expand_prologue): Use indirect functions.  Update for renamed
11548         pro_epilogue_adjust_stack_{si,di}_sub.
11549
11550 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
11551
11552         * config/i386/i386.md (movmsk_df): New insn.
11553         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
11554         sequence for TARGET_SSE_MATH.
11555
11556 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
11557
11558         * config/mips/mips.c (mips_builtin_decls): Declare.
11559         (mips_init_builtins): Store function declarations in
11560         mips_builtin_decls.
11561         (mips_builtin_decl): New function.
11562         (TARGET_BUILTIN_DECL): Define.
11563
11564 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
11565             Richard Henderson  <rth@redhat.com>
11566
11567         * config/i386/cygwin.asm: Include auto-host.h.
11568         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
11569         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
11570         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
11571         alignment code from the 64-bit path.  Use gas local labels.
11572         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
11573         from _di_2.  Remove the useless constant integer argument.
11574         (pro_epilogue_adjust_stack_<mode>_3): New.
11575         (allocate_stack_worker_probe_<mode>): Macroize from
11576         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
11577         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
11578         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
11579         (__chkstk_ms): New function.
11580         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
11581         * config/i386/t-interix: Likewise.
11582         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
11583         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
11584         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
11585         * configure, config.in: Rebuild.
11586
11587 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
11588
11589         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
11590         statements because of the return slot optimization.
11591
11592 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
11593
11594         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
11595         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
11596         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11597         (class_likely_spilled_p): Rename to...
11598         (avr_class_likely_spilled_p): ...this. Make static. Change argument
11599         type to reg_class_t.
11600
11601 2010-09-24  Jan Hubicka  <jh@suse.cz>
11602
11603         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
11604         (lto_symtab_resolve_symbols): Set it.
11605         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
11606         store resolution field in cgraph/varpool.
11607         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
11608         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
11609         (cgraph_dump_node): Drop used_from_object_file.
11610         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
11611         (cgraph_function_body_availability): Use decl_replaceable_p.
11612         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
11613         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
11614         cgraph_used_from_object_file_p.
11615         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
11616         cgraph_used_from_object_file_p.
11617         (resolution_used_from_other_file_p): New functoin.
11618         (cgraph_used_from_object_file_p): New predicate.
11619         * cgraph.h: Include plugin-api.h
11620         (struct cgraph_local_info): Remove used_from_object_file.
11621         (struct cgraph_node): Add resolution field.
11622         (struct varpool_node): Likewise; remove used_from_object_file;
11623         reove const_value_known.
11624         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
11625         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
11626         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11627         varpool_used_from_object_file_p): Declare.
11628         (varpool_get_node, varpool_extra_name_alias): Update prototype.
11629         * tree.h (DECL_REPLACEABLE_P): Remove.
11630         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
11631         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
11632         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11633         input_overwrite_node, input_node, input_varpool_node): Stream
11634         resolution.
11635         * expr.c (expand_expr_real_1): Use const_value_known_p
11636         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
11637         const_value_known.
11638         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
11639         (function_and_variable_visibility): Set resolution for local vars
11640         and functions; use varpool_used_from_object_file_p.
11641         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
11642         static functions.
11643         (default_binds_local_p_1): Use resolutoin info.
11644         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
11645         * varpool.c (varpool_get_node): Constify.
11646         (const_value_known_p): Do not use vnode->const_value_known;
11647         use decl_replaceable_p.
11648         (varpool_finalize_decl): Do not set const_value_known.
11649         (cgraph_variable_initializer_availability): Use decl_replaceable_p
11650         (varpool_extra_name_alias): Return new node.
11651         (varpool_used_from_object_file_p): New function.
11652
11653 2010-09-24  Richard Henderson  <rth@redhat.com>
11654
11655         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
11656         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
11657         (do_spill): Use REG_CFA_OFFSET.
11658         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
11659         as appropriate.
11660         (ia64_expand_epilogue): Likewise.
11661         (process_set): Split into ...
11662         (process_cfa_adjust_cfa): this,
11663         (process_cfa_register): this,
11664         (process_cfa_offset): and this new function.
11665         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
11666         instead of REG_FRAME_RELATED_EXPR.
11667
11668 2010-09-24  Olivier Hainque  <hainque@adacore.com>
11669
11670         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
11671
11672 2010-09-24  Jan Hubicka  <jh@suse.cz>
11673
11674         * doc/extend.texi: (attribute leaf): Document.
11675         * tree.c (local_define_builtin): Handle ECF_LEAF.
11676         (build_common_builtin_nodes): Set ECF_LEAF where needed.
11677         * tree.h (ECF_LEAF): New.
11678         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
11679         overwrittable and unavailable functions.
11680         (ipa_init): Put all_module_statics into optimization_summary_obstack.
11681         (copy_global_bitmap): Do not copy all_module_statics.
11682         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
11683         (propagate): Handle overwritable and unavailable leaf functions;
11684         initialize global info for overwritable and unavailable leaf functions;
11685         do not free all module statics.
11686         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
11687         local statics.
11688         * calls.c (flags_from_decl_or_type): Handle leaf.
11689         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
11690         abnormal gotos.
11691
11692 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
11693
11694         * gengtype.c: Reindented.
11695         * gengtype.h: Reindented.
11696         * gengtype-parse.c: Reindented.
11697
11698 2010-09-24  Jan Hubicka  <jh@suse.cz>
11699
11700         PR tree-optimization/45738
11701         PR tree-optimization/45741
11702         * expr.c (string_constant): Allow CONST_DECL too;
11703         check that DECL_INITIAL is set.
11704         * varpool.c (const_value_known_p): Only look into VAR_DECL
11705         and CONST_DECL.
11706
11707 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
11708
11709         * common.opt (undef): New.
11710
11711 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
11712
11713         PR middle-end/45234
11714         * rtl.h (enum global_rtl_index): Add
11715         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
11716         (LAST_VIRTUAL_POINTER_REGISTER): Define.
11717         (virtual_preferred_stack_boundary_rtx,
11718         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
11719         (LAST_VIRTUAL_REGISTER): Increase by one.
11720         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
11721         instead of LAST_VIRTUAL_REGISTER.
11722         * function.c (instantiate_new_reg): Handle
11723         virtual_preferred_stack_boundary_rtx.
11724         * emit-rtl.c (init_virtual_regs): Handle
11725         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11726         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
11727         * explow.c (round_push): If crtl->preferred_stack_boundary
11728         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
11729         virtual_preferred_stack_boundary_rtx alignment instead of
11730         crtl->preferred_stack_boundary alignment.
11731         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
11732         macros.  Never decrease crtl->preferred_stack_boundary,
11733         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
11734         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
11735         stack_pointer_delta in dynamic allocation, even when size
11736         is constant.
11737         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
11738         macro.
11739         * print-rtl.c (print_rtx): Handle
11740         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11741         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
11742         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
11743         * config/frv/frv.c (frv_emit_movsi): Likewise.
11744         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
11745         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
11746         Likewise.
11747
11748         Revert:
11749         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11750
11751         PR middle-end/45234
11752         * calls.c (expand_call): Make sure that all variable sized
11753         adjustments are multiple of preferred stack boundary after
11754         stack alignment.
11755
11756 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
11757             Dominique Dhumieres  <dominiq@lps.ens.fr>
11758
11759         PR bootstrap/45751
11760         * config/darwin-driver.c (darwin_default_min_version):
11761         Adjust size passed to memcpy in two places.
11762
11763 2010-09-24  Richard Guenther  <rguenther@suse.de>
11764
11765         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
11766         Make sure to not call set_type_context with error_mark_node.
11767         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
11768
11769 2010-09-24  Richard Guenther  <rguenther@suse.de>
11770
11771         * Makefile.in (OBJS-onestep): Remove.
11772         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
11773         (libbackend.a): Remove onestep support.
11774         (libbackend.o): Remove.
11775         * configure.ac (--enable-intermodule): Remove.
11776         * configure: Regenerate.
11777
11778 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
11779
11780         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
11781         reaching the end of a block if it occurs at a DEBUG_INSN.
11782
11783 2010-09-09  Tristan Gingold  <gingold@adacore.com>
11784
11785         PR target/44242
11786         * config/vms/vms-crt0-64.c: Removed.
11787         * config/vms/vms-crt0.c: Removed.
11788         * config/vms/vms-psxcrt0-64.c: Removed.
11789         * config/vms/vms-psxcrt0.c: Removed.
11790         * config/vms/vms-ucrt0.c: New file.
11791         * config/vms/t-vms64: Removed.
11792         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
11793         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
11794         * config.gcc (alpha-dec-vms): Use t-vms.
11795
11796 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11797
11798         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
11799         underfull hbox in DVI output.
11800         (-fobjc-class-cxx-cdtors): Same change.
11801         (-fobjc-exceptions): Tidied up documentation.  Explain what the
11802         option does, but moved the (lenghty) description of the exception
11803         syntax into objc.texi.
11804         (-fobjc-gc): Explain that the option is not useful with the GNU
11805         runtime.
11806         (-fzero-link): Explain that the GNU runtime always works in
11807         "zero-link" mode.
11808         * doc/objc.texi: All sections: simplified @node declarations
11809         removing specification of next, previous, up node.
11810         (Objective-C): Updated introduction.
11811         (Garbage Collection): Updated.  The bohem-gc library is now
11812         included in gcc itself.  Mention that this section only applies to
11813         the GNU Objective-C runtime.
11814         (compatibility_alias): Small tidy up.
11815         (Exceptions): New section mostly containing text previously in the
11816         description of the -fobjc-exception command-line option.
11817         (Synchronization): Same.
11818
11819 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
11820
11821         * config/i386/i386.md (ix86_code_end): Move the initialization of
11822         xops array near the consumer.  Use AX_REG and SP_REG instead of
11823         numerical constants.
11824
11825 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11826
11827         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
11828         method [methodname]' for an Objective-C method instead of the less
11829         satisfactory 'too many arguments to function' (with no method name).
11830
11831 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
11832
11833         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
11834         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
11835         (execute_update_addresses_taken): Remove parameter.  Execute the
11836         optimization unconditionally.
11837         * passes.c (execute_function_todo): Call execute_update_addresses_taken
11838         unconditionally if TODO_rebuild_alias is set, else only when optimizing
11839         if TODO_update_address_taken is set.
11840
11841 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
11842
11843         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11844         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
11845         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11846         (arm_output_addr_const_extra): Make static.
11847
11848 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
11849
11850         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
11851         define as unspec_volatile.
11852         ("nops"): Define as unspec_volatile. Use fputs to write to
11853         asm_out_file directly.  Output NOPs on separate lines using while loop.
11854         * config/i386/i386.c (ix86_code_end): Use fputs to write to
11855         asm_out_file directly.  Output NOPs on separate lines using while loop.
11856
11857 2010-09-23  Richard Guenther  <rguenther@suse.de>
11858
11859         PR tree-optimization/45565
11860         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
11861         Make sure to adjust the fndecl before replacing the stmt.
11862
11863 2010-09-23  Richard Guenther  <rguenther@suse.de>
11864
11865         PR middle-end/45750
11866         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
11867         gimplifying MEM_REF.
11868
11869 2010-09-23  Alan Modra  <amodra@gmail.com>
11870
11871         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
11872         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
11873
11874 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
11875
11876         PR rtl-optimization/44374
11877         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
11878         * df-core.c (df_set_bb_dirty): Set it.
11879         * ifcvt.c (find_memory): Remove function.
11880         (dead_or_predicable): Use can_move_insns_across.
11881         * df.h (can_move_insns_across): Declare function.
11882         * cfgcleanup.c (block_was_dirty): New static variable.
11883         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
11884         than df_get_bb_dirty.
11885         (try_head_merge_bb): New static function.
11886         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
11887         is set.
11888         * df-problems.c: Include "target.h"
11889         (df_simulate_find_uses): New static function.
11890         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
11891         (find_memory, find_memory_store): New static functions.
11892         (can_move_insns_across): New function.
11893         * Makefile.in (df-problems.o): Update dependencies.
11894
11895 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11896
11897         PR java/44095
11898         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
11899         is specified and the suffix of the file isn't ".c".
11900         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11901
11902 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11903
11904         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
11905         * doc/cppopts.texi: Fix markup of index entry.
11906         * doc/extend.texi (Constructing Calls): Fix markup of
11907         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
11908         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
11909         (Vague Linkage, C++ Attributes): Fix markup of index entries and
11910         keywords.
11911         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
11912         avoid long lines.
11913         (C Dialect Options, C++ Dialect Options, Warning Options)
11914         (Debugging Options, Spec Files, Darwin Options)
11915         (i386 and x86-64 Options, MIPS Options)
11916         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
11917         index entries, avoid abbreviations, allow URLs to wrap, avoid
11918         long lines, avoid overlong pages from long @itemx lists.
11919         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
11920         * doc/standards.texi (Standards): Likewise.
11921         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
11922
11923 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11924
11925         * opts-common.c (prune_options): Make static.  Work with decoded
11926         options.
11927         (decode_cmdline_options_to_array): Call prune_options.  Don't
11928         resize option array here.
11929         * opts.h (prune_options): Remove prototype.
11930         * gcc.c (process_command): Take decoded options; don't call
11931         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
11932         (main): Call decode_cmdline_options_to_array here instead of
11933         prune_options.  Update call to process_command.
11934         * config/darwin-driver.c: Include opts.h.
11935         (darwin_default_min_version): Work with decoded options.  Don't
11936         handle -b or -V here.
11937         * config/darwin.h (darwin_default_min_version): Update prototype.
11938         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
11939         darwin_default_min_version.
11940         * config/i386/cygwin.h (mingw_scan): Update prototype.
11941         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
11942         * config/i386/cygwin1.c: Include opts.h.
11943         (mingw_scan): Work with decoded options.
11944         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
11945         * config/t-darwin (darwin-driver.o): Update dependencies.
11946
11947 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11948
11949         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
11950         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
11951         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
11952         -force-link, -force-link=, -language, -language=,
11953         -library-directory, -library-directory=, -no-canonical-prefixes,
11954         -no-standard-libraries, -no-warnings, -optimize, -output,
11955         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
11956         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
11957         -print-file-name=, -print-libgcc-file-name,
11958         -print-multi-directory, -print-multi-lib,
11959         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
11960         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
11961         -profile, -save-temps, -shared, -specs, -specs=, -static,
11962         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
11963         symbolic): New.
11964         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
11965         * gcc.c (A Short Introduction to Adding a Command-Line Option):
11966         Remove comment.
11967         (cc1_options): Correct specs for passing down --help,
11968         --target-help and --help=*.  Add spec for passing down --version.
11969         (struct option_map, option_map, target_option_translations,
11970         translate_options): Remove.
11971         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
11972         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
11973         OPT_fhelp_ and OPT_ftarget_help.
11974         (process_command): Don't call translate_options.  Call
11975         decode_cmdline_options_to_array before checking for
11976         -no-canonical-prefixes using decoded options.
11977         * opts-common.c (tm.h): Update comment on #include.
11978         (find_opt): Allow abbreviations of long options.
11979         (struct option_map, option_map): New.
11980         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
11981         and -mno handling.
11982         (target_option_translations): New.
11983         (decode_cmdline_options_to_array): Handle
11984         TARGET_OPTION_TRANSLATE_TABLE in driver.
11985         * opts.c (common_handle_option): Don't handle OPT_fhelp,
11986         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
11987
11988 2010-09-22  Richard Guenther  <rguenther@suse.de>
11989
11990         * tree-inline.c (optimize_inline_calls): Schedule cleanups
11991         only if we inlined something.  Block compaction and conditional
11992         folding are done by cfg cleanup.  Schedule update-address-taken.
11993         (tree_function_versioning): Remove redundant call to number_blocks.
11994         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
11995         folding is done by cfg cleanup.
11996         * passes.c (init_optimization_passes): Remove update-address-taken
11997         pass after IPA inlining.
11998
11999 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
12000
12001         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
12002         to update conditions. Fix reg_mode[] check.
12003
12004 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
12005
12006         * config/picochip/picochip.md (movhicc): Use expand to check whether
12007         movhicc is available and split it after reload.
12008
12009 2010-09-22  Richard Guenther  <rguenther@suse.de>
12010
12011         * tree-ssanames.c (release_dead_ssa_names): Do not remove
12012         callee edges here.
12013         * passes.c (init_optimization_passes): Remove early CFG cleanup.
12014         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
12015         (pass_cleanup_cfg): Likewise.
12016         (execute_fixup_cfg): Cleanup.
12017         * tree-pass.h (pass_cleanup_cfg): Remove.
12018
12019 2010-09-22  Martin Jambor  <mjambor@suse.cz>
12020
12021         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
12022         builtins if it is true.
12023         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
12024         parameter.
12025
12026 2010-09-22  Martin Jambor  <mjambor@suse.cz>
12027
12028         * tree-sra.c (struct access): New field grp_no_warning.
12029         (create_access_replacement): Set TREE_NO_WARNING according to
12030          grp_no_warning.
12031         (create_artificial_child_access): Use build_ref_for_model and set
12032         grp_no_warning if build_user_friendly_ref_for_offset fails.
12033         (propagate_subaccesses_across_link): Likewise.
12034
12035 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
12036
12037         PR target/35664
12038         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
12039         ('f'): Likewise.
12040
12041 2010-09-22  Tristan Gingold  <gingold@adacore.com>
12042
12043         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
12044
12045 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
12046
12047         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
12048         * config/i386/i386.c (decide_alg): Update for rename.
12049
12050 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
12051
12052         PR rtl-optimization/45739
12053         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
12054         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
12055
12056 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
12057
12058         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
12059         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
12060         Remove.
12061         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
12062         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12063
12064 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12065
12066         PR objc/23710
12067         * c-parser.c (c_parser_objc_method_definition): Check the return
12068         value of objc_start_method_definition and if false is returned,
12069         parse the method definition but emit no code.
12070
12071 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12072
12073         PR objc/25965
12074         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
12075         call objc_get_interface_ivars ().
12076
12077 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
12078
12079         PR target/45694
12080         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
12081         static chain-register is used for 64-bit.
12082
12083 2010-09-21  Richard Guenther  <rguenther@suse.de>
12084
12085         * dwarf2out.c (is_cu_die): New function.
12086         (add_pubtype): Use it.
12087         (gen_subprogram_die): Likewise.
12088         (gen_struct_or_union_type_die): Likewise.
12089         (dwarf2out_finish): Likewise.
12090         (comp_unit_die): Rename to ...
12091         (single_comp_unit_die): ... this.
12092         (comp_unit_die): New function lazily constructing and
12093         returning single_comp_unit_die.
12094         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
12095         base_type_die, subrange_type_die, modified_type_die,
12096         lower_bound_default, add_bound_info, add_prototyped_attribute,
12097         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
12098         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
12099         force_decl_die, gen_namespace_die, dwarf2out_decl,
12100         dwarf2out_start_source_file, dwarf2out_end_source_file,
12101         prune_unused_types, dwarf2out_finish): Use it.
12102         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
12103         the global list of translation-unit decls.
12104         (dwarf2out_init): Do not create single_comp_unit_die here.
12105         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
12106
12107 2010-09-21  Richard Guenther  <rguenther@suse.de>
12108
12109         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
12110         for bool for C++.
12111
12112 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
12113
12114         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
12115         (qhs_extenddi_cstr): Likewise.
12116         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
12117         them for the source operand.
12118
12119 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
12120
12121         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
12122         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
12123         (ix86_split_ashr): Ditto.
12124         (ix86_split_lshr): Ditto.
12125
12126 2010-09-21  Richard Guenther  <rguenther@suse.de>
12127
12128         PR tree-optimization/45580
12129         * tree-ssa-propagate.c (substitute_and_fold): Always replace
12130         regular uses.
12131         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
12132         virtuals fold the call into a regular indirect one.
12133
12134 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
12135
12136         PR rtl-optimization/42775
12137         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
12138         scheduling is enabled.
12139
12140 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
12141
12142         PR rtl-optimization/45728
12143         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
12144         gen_lowpart_common first and if that fails, force_reg first
12145         before calling gen_lowpart.
12146
12147         PR middle-end/45678
12148         * cfgexpand.c (expand_one_stack_var_at): Use
12149         crtl->max_used_stack_slot_alignment as max_align, instead
12150         of maximum of that and PREFERRED_STACK_BOUNDARY.
12151         Don't call update_stack_alignment.
12152
12153 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
12154
12155         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
12156         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
12157         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
12158         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
12159         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
12160         (build_nonstandard_integer_type): Likewise.
12161         (build_range_type_1): New function, built from...
12162         (build_range_type): ...this.  Call build_range_type_1.
12163         (build_nonshared_range_type): New function.
12164         (build_array_type_1): New function, built from...
12165         (build_array_type: ...this.  Call build_array_type_1.
12166         (build_nonshared_array_type): New function.
12167         * tree.h (build_nonshared_range_type): Declare.
12168         (build_nonshared_array_type): Likewise.
12169
12170 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
12171
12172         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
12173         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12174         (arm_class_likely_spilled_p): New function.
12175
12176 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
12177
12178         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
12179         indirect functions.
12180         (ix86_split_ashl): Ditto.
12181         (ix86_split_ashr): Ditto.
12182         (ix86_split_lshr): Ditto.
12183         (ix86_adjust_counter): Ditto.
12184
12185 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
12186
12187         * c-family/c-common.h (constant_string_class): Documented with
12188         comment identical to the one already in c-common.c.
12189
12190 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
12191
12192         * dwarf2out.c (any_cfis_emitted): New static variable.
12193         (add_fde_cfi): Set it.
12194         (dwarf2out_frame_debug): Clear it before processing,
12195         if it is set afterwards, flush any queued reg saves.
12196
12197         PR debug/45124
12198         * dwarf2out.c (add_accessibility_attribute): Assume
12199         DW_ACCESS_private as the default for dwarf_version > 2
12200         and DW_TAG_class_type parent.
12201         (gen_inheritance_die): Assume DW_ACCESS_public as the default
12202         for dwarf_version > 2 and parent other than DW_TAG_class_type.
12203
12204 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
12205
12206         PR target/45726
12207         * arm.md (arm_movt): Only enable on machines with MOVT.
12208
12209 2010-09-20  Jie Zhang  <jie@codesourcery.com>
12210
12211         * config/arm/arm.c (arm_address_offset_is_imm): New.
12212         (arm_early_store_addr_dep): New.
12213         (arm_early_load_addr_dep): New.
12214         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
12215         (arm_early_load_addr_dep): Declare.
12216         (arm_address_offset_is_imm): Declare.
12217         * config/arm/cortex-m4.md: New file.
12218         * config/arm/cortex-m4-fpu.md: New file.
12219         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
12220         (attr generic_sched): Exclude cortexm4.
12221         (attr generic_vfp): Exclude cortexm4.
12222
12223 2010-09-20  Richard Guenther  <rguenther@suse.de>
12224
12225         PR middle-end/45704
12226         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
12227
12228 2010-09-20  Jan Hubicka  <jh@suse.cz>
12229
12230         PR tree-optimize/45605
12231         * cgraph.h (const_value_known_p): Declare.
12232         (varpool_decide_const_value_known): Remove.
12233         * tree-ssa-ccp.c (get_base_constructor): Use it.
12234         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
12235         * expr.c (string_constant): Likewise.
12236         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
12237         * ipa.c (ipa_discover_readonly_nonaddressable_var,
12238         function_and_variable_visibility): Likewise.
12239         * gimplify.c (gimplify_call_expr): Likewise.
12240         * gimple-fold.c (get_symbol_constant_value): Likewise.
12241         * varpool.c (varpool_decide_const_value_known): Replace by...
12242         (const_value_known_p): ... this one; handle other kinds of DECLs
12243         too and work for automatic vars.
12244         (varpool_finalize_decl): Use const_value_known_p.
12245
12246 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
12247
12248         PR target/45726
12249         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
12250
12251 2010-09-20  Richard Guenther  <rguenther@suse.de>
12252
12253         PR tree-optimization/45705
12254         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
12255
12256 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
12257
12258         PR rtl-optimization/45695
12259         * combine.c (try_combine): When splitting a two set pattern,
12260         make sure the pattern which will be put into i2 doesn't use REGs
12261         or MEMs set by insns in between i2 and i3.
12262
12263 2010-09-19  Jan Hubicka  <jh@suse.cz>
12264
12265         PR lto/44246
12266         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
12267         processing same node twice.
12268
12269 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
12270
12271         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
12272         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12273         (bfin_class_likely_spilled_p): New function
12274
12275 2010-09-19  Ira Rosen  <irar@il.ibm.com>
12276
12277         PR tree-optimization/45714
12278         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
12279         created in vectorizable_call instead of the original statement in
12280         def stmt updates.
12281
12282 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
12283
12284         * config/i386/i386-protos.h (split_double_mode): New prototype.
12285         (split_di, split_ti): Remove prototypes.
12286         * config/i386/i386.c (split_double_mode): New function.
12287         (split_di, split_ti): Remove.
12288         (ix86_expand_branch): Use split_double_mode.
12289         (ix86_split_to_parts): Ditto.
12290         (ix86_split_ashl): Ditto.
12291         (ix86_split_ashr): Ditto.
12292         (ix86_split_lshr): Ditto.
12293         (ix86_force_to_memory): Ditto.
12294         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
12295
12296 2010-09-18  Jan Hubicka  <jh@suse.cz>
12297
12298         PR tree-optimization/45453
12299         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
12300         virtual functions are reachable.
12301         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
12302         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
12303         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
12304         when modifying function.
12305
12306 2010-09-18  Jan Hubicka  <jh@suse.cz>
12307
12308         PR tree-optimization/45605
12309         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
12310         * gimple-fold.c (static_object_in_other_unit_p): New function.
12311         (canonicalize_constructor_val): Use it.
12312         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
12313         returning NULL.
12314         (gimple_fold_obj_type_ref_known_binfo): Use
12315         static_object_in_other_unit_p.
12316
12317 2010-09-18  Richard Guenther  <rguenther@suse.de>
12318
12319         PR tree-optimization/45709
12320         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
12321         insertions until after all PHI nodes of the block are processed.
12322
12323 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
12324
12325         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
12326
12327 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
12328
12329         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
12330
12331 2010-09-18  Richard Guenther  <rguenther@suse.de>
12332
12333         PR tree-optimization/45709
12334         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
12335
12336 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
12337
12338         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
12339         (dot_deps_stmt): Same.
12340         * graphite-poly.c (dot_lst): Same.
12341         * graphite-scop-detection.c (dot_all_scops): Same.
12342         (dot_scop): Same.
12343
12344 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
12345
12346         Revert:
12347         2009-12-16  Ben Elliston  <bje@au.ibm.com>
12348
12349         * tree-data-ref.c (dot_rdg_1): Added back.
12350         (dot_rdg): Same.  Added "#if 0" around system call.
12351
12352 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12353             Richard Henderson  <rth@redhat.com>
12354
12355         * config/i386/i386.c (initial_ix86_tune_features): Add
12356         X86_TUNE_PAD_SHORT_FUNCTION.
12357         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
12358         (ix86_count_insn): New.
12359         (ix86_pad_short_function): Likewise.
12360         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
12361
12362         * config/i386/i386.h (ix86_tune_indices): Add
12363         X86_TUNE_PAD_SHORT_FUNCTION.
12364         (TARGET_PAD_SHORT_FUNCTION): New.
12365
12366         * config/i386/i386.md (UNSPEC_NOPS): New.
12367         (nops): Likewise.
12368
12369 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12370
12371         PR middle-end/45234
12372         * calls.c (expand_call): Make sure that all variable sized
12373         adjustments are multiple of preferred stack boundary after
12374         stack alignment.
12375
12376 2010-09-17  DJ Delorie  <dj@redhat.com>
12377
12378         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
12379         passed an invalid value, print an error instead of ICEing.
12380         (valid_psw_flag): New.
12381         (rx_expand_builtin): Call it for setpsw/clrpsw.
12382         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
12383
12384         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
12385         (bitclr_in_memory): Likewise.
12386         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
12387
12388 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12389
12390         PR middle-end/45678
12391         * cfgexpand.c (update_stack_alignment): New.
12392         (get_decl_align_unit): Use it.
12393         (expand_one_stack_var_at): Call update_stack_alignment.
12394
12395 2010-09-17  Richard Guenther  <rguenther@suse.de>
12396
12397         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
12398         Properly copy the read string.
12399
12400 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
12401
12402         * doc/options.texi (Variable): Document.
12403         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
12404         generate target_flags declarations explicitly.  Don't define
12405         VarExists variables for the driver.
12406         * common.opt (target_flags): New Variable record.
12407         (flag_dump_unnumbered, flag_dump_unnumbered_links,
12408         flag_var_tracking, flag_var_tracking_assignments,
12409         flag_var_tracking_assignments_toggle): Don't mark variables with
12410         VarExists.
12411         * config/i386/i386.c (ix86_isa_flags): Don't define here.
12412         * config/i386/i386.opt (ix86_isa_flags): Define here.
12413         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
12414         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
12415         VarExists.
12416         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
12417         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
12418         Only define for generator programs.
12419         * rtlanal.c (target_flags): Remove.
12420         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
12421         flag_var_tracking_assignments_toggle): Remove.
12422
12423 2010-09-17  Michael Matz  <matz@suse.de>
12424
12425         PR tree-optimization/43432
12426         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
12427         Accept backwards consecutive accesses.
12428         (vect_create_data_ref_ptr): If step is negative generate
12429         decreasing IVs.
12430         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
12431         (perm_mask_for_reverse, reverse_vec_elements): New functions.
12432         (vectorizable_load): Handle loads with negative steps when easily
12433         possible.
12434
12435 2010-09-03  Jan Hubicka  <jh@suse.cz>
12436
12437         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
12438
12439 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
12440
12441         * config/v850/v850.c (v850_function_value_regno_p): Make static.
12442         Adjust comments. Declare.
12443         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12444         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
12445
12446 2010-09-17  Richard Guenther  <rguenther@suse.de>
12447
12448         * common.opt (combine): Remove.
12449         * gcc.c (default_compilers): Remove specs testing combine.
12450         The C compilers no longer can combine.
12451         (option_map): Remove -combine.
12452         (display_help): Remove -combine.
12453         (driver_handle_option): Remove OPT_combine handling.
12454         (compile_input_file_p): Remove.
12455         (do_spec): Remove code concerning combine.
12456         (main): Likewise.
12457         * doc/invoke.texi: Remove traces of -combine.
12458         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
12459
12460 2010-09-17  Richard Guenther  <rguenther@suse.de>
12461
12462         PR middle-end/45678
12463         * builtins.c (fold_builtin_memory_op): Always properly adjust
12464         alignment of memory accesses.
12465
12466 2010-09-16  Jan Hubicka  <jh@suse.cz>
12467
12468         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
12469         processing clone.
12470
12471 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
12472
12473         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
12474
12475         * config/i386/i386.c (predict_jump): Add prototype.
12476         (flag_opts): Add -m8bit-idiv.
12477         (ix86_split_idivmod): New.
12478
12479         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
12480         Add 2 splitters for SI/DI mode divide.
12481         (divmod<mode>4_1): New pattern.
12482         (udivmod<mode>4_1): Likewise.
12483         (testdi_ccno_1): Likewise.
12484
12485         * config/i386/i386.opt (m8bit-idiv): New.
12486
12487         * doc/invoke.texi: Document -m8bit-idiv.
12488
12489 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
12490
12491         PR bootstrap/45680
12492         * config/i386/i386.c (min_insn_size): Moved out of the
12493         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
12494
12495 2010-09-16  Jan Hubicka  <jh@suse.cz>
12496
12497         * lto-cgraph.c (lto_output_node): Fix handling of clones.
12498         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
12499         unreachable clones with reachable clones.
12500         * tree-inline.c (copy_bb): Fix sanity checking when producing
12501         unreachable clone.
12502
12503 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
12504
12505         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
12506         (TARGET_MEMORY_MOVE_COST): Define.
12507         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
12508
12509 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
12510
12511         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
12512         maybe_tidy_empty_bb.
12513
12514         Revert:
12515         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
12516         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
12517
12518 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
12519
12520         * target.def (target_option.optimization): New hook.
12521         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
12522         TARGET_OPTION_OPTIMIZATION hook.
12523         * doc/tm.texi: Regenerate.
12524         * hooks.c (hook_void_int_int): New.
12525         * hooks.h (hook_void_int_int): Declare.
12526         * opts.c: Don't include tm_p.h.
12527         (decode_options): Use targetm.target_option.optimization instead
12528         of OPTIMIZATION_OPTIONS.
12529         * system.h (OPTIMIZATION_OPTIONS): Poison.
12530         * config/arm/arm-protos.h (arm_optimization_options): Remove.
12531         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
12532         (arm_optimization_options): Rename to arm_option_optimization.
12533         Make static.
12534         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
12535         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
12536         (cris_option_optimization): New.
12537         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
12538         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
12539         (crx_option_optimization): New.
12540         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
12541         * config/frv/frv-protos.h (frv_optimization_options): Remove.
12542         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
12543         (frv_optimization_options): Rename to frv_option_optimization.
12544         Make static.
12545         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
12546         * config/h8300/h8300.c (h8300_option_optimization): New.
12547         (TARGET_OPTION_OPTIMIZATION): Define.
12548         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
12549         * config/i386/i386-protos.h (optimization_options): Remove.
12550         * config/i386/i386.c (optimization_options): Rename to
12551         ix86_option_optimization.  Make static.
12552         (TARGET_OPTION_OPTIMIZATION): Define.
12553         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
12554         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
12555         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
12556         (ia64_optimization_options): Rename to ia64_option_optimization.
12557         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
12558         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
12559         commented-out definition.
12560         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
12561         instead of OPTIMIZATION_OPTIONS.
12562         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
12563         (m32r_option_optimization): New.
12564         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
12565         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
12566         Remove.
12567         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
12568         (mcore_option_optimization): New.
12569         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
12570         * config/mep/mep-protos.h (mep_optimization_options): Remove.
12571         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
12572         (mep_optimization_options): Rename to mep_option_optimization.
12573         Make static.  Take unused level and size parameters.
12574         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
12575         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
12576         (mmix_option_optimization): New.
12577         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
12578         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
12579         (pdp11_option_optimization): New.
12580         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
12581         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
12582         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
12583         (optimization_options): Rename to rs6000_option_optimization.
12584         Make static.
12585         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
12586         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
12587         * config/rx/rx.c (rx_set_optimization_options): Rename to
12588         rx_option_optimization.  Make static.  Take unused level and size
12589         parameters.
12590         (TARGET_OPTION_OPTIMIZATION): Define.
12591         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
12592         * config/s390/s390-protos.h (optimization_options): Remove.
12593         * config/s390/s390.c (optimization_options): Rename to
12594         s390_option_optimization.  Make static.  Don't mark size parameter
12595         unused.
12596         (TARGET_OPTION_OPTIMIZATION): Define.
12597         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
12598         * config/sh/sh-protos.h (sh_optimization_options): Remove.
12599         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
12600         (sh_optimization_options): Rename to sh_option_optimization.  Make
12601         static.  Don't mark parameters unused.
12602         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
12603         * config/spu/spu-protos.h (spu_optimization_options): Remove.
12604         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
12605         (spu_optimization_options): Rename to spu_option_optimization.
12606         Make static.
12607         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
12608         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
12609         (v850_option_optimization): New.
12610         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
12611         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
12612         (xtensa_option_optimization): New.
12613         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
12614
12615 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
12616
12617         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
12618         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
12619         * doc/tm.texi: Regenerate.
12620         * system.h (OVERRIDE_OPTIONS): Poison.
12621         * target.def (override): Default to hook_void_void.
12622         * targhooks.c (default_target_option_override): Remove.
12623         * genmodes.c, machmode.def: Update comments mentioning
12624         OVERRIDE_OPTIONS.
12625         * config/alpha/alpha-modes.def: Update comment mentioning
12626         alpha_override_options.
12627         * config/alpha/alpha-protos.h (override_options): Remove.
12628         * config/alpha/alpha.c (override_options): Rename to
12629         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
12630         (TARGET_OPTION_OVERRIDE): Define.
12631         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
12632         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
12633         of OVERRIDE_OPTIONS.
12634         * config/arc/arc-protos.h (arc_init): Remove.
12635         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
12636         (arc_init): Rename to arc_option_override.  Make static.
12637         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
12638         (OVERRIDE_OPTIONS): Remove.
12639         * config/arm/arm-protos.h (arm_override_options): Remove.
12640         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
12641         (arm_override_options): Rename to arm_option_override.  Make
12642         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
12643         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
12644         * config/arm/arm.md: Update comment referring to arm_override_options.
12645         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12646         instead of OVERRIDE_OPTIONS.
12647         * config/avr/avr-protos.h (avr_override_options): Remove.
12648         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
12649         (avr_override_options): Rename to avr_option_override.  Make static.
12650         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
12651         * config/bfin/bfin-protos.h (override_options): Remove (twice).
12652         * config/bfin/bfin.c (override_options): Rename to
12653         bfin_option_override.  Make static.
12654         (TARGET_OPTION_OVERRIDE): Define.
12655         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
12656         * config/cris/cris-protos.h (cris_override_options): Remove.
12657         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
12658         (cris_override_options): Rename to cris_option_override.  Make static.
12659         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
12660         * config/frv/frv-protos.h (frv_override_options): Remove.
12661         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
12662         (frv_override_options): Rename to frv_option_override.  Make static.
12663         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
12664         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
12665         * config/h8300/h8300.c (h8300_init_once): Rename to
12666         h8300_option_override.  Make static.
12667         (TARGET_OPTION_OVERRIDE): Define.
12668         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
12669         * config/i386/i386-protos.h (override_options): Remove.
12670         * config/i386/i386.c (override_options): Rename to
12671         ix86_option_override_internal.  Make static.  Comments referring
12672         to this function and callers changed.
12673         (ix86_option_override): New.
12674         (TARGET_OPTION_OVERRIDE): Define.
12675         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
12676         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
12677         * config/ia64/ia64.c (ia64_file_start): Update comment referring
12678         to ia64_override_options.
12679         * config/iq2000/iq2000-protos.h (override_options): Remove.
12680         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
12681         (override_options): Rename to iq2000_option_override.  Make static.
12682         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
12683         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
12684         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
12685         (lm32_override_options): Rename to lm32_option_override.  Make static.
12686         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
12687         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
12688         (m32r_option_override): New.
12689         (m32r_init): Update comment.
12690         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
12691         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
12692         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
12693         (m68hc11_override_options): Rename to m68hc11_option_override.
12694         Make static.  Return void.
12695         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
12696         * config/m68k/m68k-protos.h (override_options): Remove.
12697         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
12698         (override_options): Rename to m68k_option_override.  Make static.
12699         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
12700         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
12701         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
12702         (mcore_override_options): Rename to mcore_option_override.  Make
12703         static.
12704         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
12705         * config/mep/mep-protos.h (mep_override_options): Remove.
12706         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
12707         (mep_override_options): Rename to mep_option_override.  Make static.
12708         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
12709         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
12710         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
12711         (mmix_override_options): Rename to mmix_option_override.  Make static.
12712         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
12713         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
12714         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
12715         (mn10300_override_options): Rename to mn10300_option_override.
12716         Make static.
12717         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
12718         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
12719         * config/moxie/moxie.c (moxie_override_options): Rename to
12720         moxie_option_override.  Make static.
12721         (TARGET_OPTION_OVERRIDE): Define.
12722         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
12723         * config/picochip/picochip-protos.h (picochip_override_options):
12724         Remove.  Update comment referring to picochip_override_options.
12725         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
12726         (picochip_override_options): Rename to picochip_option_override.
12727         Make static.  Update comment and definition of
12728         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
12729         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
12730         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12731         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12732         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12733         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12734         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12735         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
12736         instead of OVERRIDE_OPTIONS.
12737         * config/rs6000/rs6000-modes.def: Update comment referring to
12738         rs6000_override_options.
12739         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
12740         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
12741         (rs6000_override_options): Rename to
12742         rs6000_option_override_internal.  Make static.  Commented
12743         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
12744         (rs6000_option_override): New.
12745         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
12746         instead of OVERRIDE_OPTIONS.
12747         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12748         * config/s390/s390-protos.h (override_options): Remove.
12749         * config/s390/s390.c (override_options): Rename to
12750         s390_option_override.  Make static.
12751         (TARGET_OPTION_OVERRIDE): Define.
12752         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
12753         * config/score/score-protos.h (score_override_options): Remove.
12754         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
12755         (score_override_options): Rename to score_option_override.  Make
12756         static.
12757         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
12758         Update comment referring to override_options.
12759         * config/score/score3.c (score3_override_options): Rename to
12760         score3_option_override.
12761         * config/score/score3.h (score3_override_options): Rename to
12762         score3_option_override.
12763         * config/score/score7.c (score7_override_options): Rename to
12764         score7_option_override.
12765         * config/score/score7.h (score7_override_options): Rename to
12766         score7_option_override.
12767         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
12768         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
12769         (sparc_override_options): Rename to sparc_option_override.  Make
12770         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
12771         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
12772         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12773         instead of OVERRIDE_OPTIONS.
12774         * config/spu/spu-protos.h (spu_override_options): Remove.
12775         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
12776         (spu_override_options): Rename to spu_option_override.  Make
12777         static.
12778         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
12779         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
12780         OVERRIDE_OPTIONS.
12781         * config/vax/vax-protos.h (override_options): Remove.
12782         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
12783         (override_options): Rename to vax_option_override.  Make static.
12784         Call SUBTARGET_OVERRIDE_OPTIONS.
12785         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
12786         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
12787         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
12788         * config/xtensa/xtensa-protos.h (override_options): Remove.
12789         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
12790         (override_options): Rename to xtensa_option_override.  Make static.
12791         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
12792
12793 2010-09-16  Richard Guenther  <rguenther@suse.de>
12794
12795         PR tree-optimization/45623
12796         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
12797         (get_constraint_for_component_ref): If computing a constraint
12798         for the rhs handle type punning through unions.
12799         (get_constraint_for_address_of): Adjust.
12800         (get_constraint_for_1): Likewise.
12801         (get_constraint_for): Likewise.
12802         (get_constraint_for_rhs): New function.
12803         (do_structure_copy): Adjust.
12804         (make_constraint_to): Likewise.
12805         (handle_const_call): Likewise.
12806         (find_func_aliases): Likewise.
12807         (process_ipa_clobber): Likewise.
12808         (create_variable_info_for): Likewise.
12809
12810 2010-09-16  Ira Rosen  <irar@il.ibm.com>
12811
12812         * tree-vectorizer.c: Fix documentation.
12813         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
12814         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
12815         is_pattern_stmt_p, is_loop_header_bb_p,
12816         stmt_vinfo_set_inside_of_loop_cost,
12817         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
12818         known_alignment_for_access_p): Likewise.
12819         * tree-vect-loop.c: Fix documentation.
12820         (vect_get_cost): Start function name from new line.
12821         * tree-vect-data-refs.c: Fix documentation.
12822         * tree-vect_stmts.c: Likewise.
12823         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
12824         (vectorizable_store): Free vec_oprnds if allocated.
12825         (vectorizable_condition): Initialize several variables to avoid
12826         warnings.
12827         * tree-vect-slp.c: Fix documentation.
12828
12829 2010-09-16  Richard Guenther  <rguenther@suse.de>
12830
12831         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
12832         is TS_TRANSLATION_UNIT_DECL.
12833         (initialize_tree_contains_struct): Adjust.
12834         (all_translation_units): New global vector.
12835         (build_translation_unit_decl): New function.
12836         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
12837         (struct tree_translation_unit_decl): New.
12838         (all_translation_units): Declare.
12839         (union tree_node): Add translation_unit_decl member.
12840         (build_translation_unit_decl): Declare.
12841         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
12842         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
12843         New function.
12844         (pack_value_fields): Call it.
12845         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
12846         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
12847         (lto_output_tree_pointers): Call it.
12848         * lto-streamer-in.c (lto_input_tree_ref): Handle references
12849         to TRANSLATION_UNIT_DECL.
12850         (unpack_ts_translation_unit_decl_value_fields): New function.
12851         (unpack_value_fields): Call it.
12852         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
12853         (lto_input_tree_pointers): Call it.
12854         * lto-streamer.c (check_handled_ts_structures): Adjust.
12855         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
12856         * c-decl.c (all_translation_units): Remove.
12857         (pop_scope): Use build_translation_unit_decl.
12858         (collect_all_refs): Adjust.
12859         (for_each_global_decl): Likewise.
12860         (c_write_global_declarations): Likewise.
12861
12862 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
12863
12864         PR bootstrap/45686
12865         * fold-const.c (fold_checksum_tree): Change slot from const void **
12866         to void **, use CONST_CAST_TREE to store into *slot.
12867
12868 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
12869
12870         * config/i386/i386.md: Remove unneeded empty conditions and
12871         preparation statements from expanders.
12872         * config/i386/mmx.md: Ditto.
12873         * config/i386/sse.md: Ditto.
12874
12875 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
12876
12877         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
12878
12879 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12880
12881         PR rtl-optimization/45593
12882         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
12883         insns that were in delay slots as stand-alone insns.
12884
12885 2010-09-15  Ian Lance Taylor  <iant@google.com>
12886
12887         * incpath.c (remove_duplicates): If name is not a directory, issue
12888         a warning rather than an error.
12889
12890 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12891
12892         PR middle-end/45644
12893         * tree-sra.c (create_access): Check for bit-fields directly.
12894
12895 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
12896
12897         PR tree-optimization/45633
12898         * tree-cfg.c (verify_gimple_assign_binary): Allow
12899         MINUS_EXPR with lhs and rhs1 pointer vector and
12900         rhs2 sizetype vector.
12901         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
12902         or vector pointer use TER to optimize pointer subtraction.
12903
12904 2010-09-15  Jie Zhang  <jie@codesourcery.com>
12905
12906         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
12907         fcmpd to fcmps.
12908
12909 2010-09-15  Ian Lance Taylor  <iant@google.com>
12910
12911         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
12912
12913 2010-09-15  Ian Lance Taylor  <iant@google.com>
12914
12915         * function.c (get_arg_pointer_save_area): Set
12916         arg_pointer_save_area_init to true.
12917
12918 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12919
12920         * tree-sra.c (generate_subtree_copies): Updated comment.
12921         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
12922         obtained from the statement iterator instead.
12923         (load_assign_lhs_subreplacements): Removed parameters lhs and
12924         right_offset, which is obtained from top_racc instead.  Parameter lacc
12925         is now expected to be the root of the processed tree rather than root's
12926         first child.  Updated all callers.
12927
12928 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12929
12930         * config/pdp11/pdp11.c (register_move_cost): Rename to
12931         pdp11_register_move_cost.
12932         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
12933         pdp11_register_move_cost.
12934         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
12935         pdp11_register_move_cost instead of register_move_cost.
12936
12937 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
12938
12939         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
12940         pattern for vmovn. Expansion in case of non
12941         -mvectorize-with-neon-quad.
12942         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
12943         non- -mvectorize-with-neon-quad case.
12944         (move_lo_quad_<mode>): New expansion to vmov into low part.
12945         (move_hi_quad_<mode>): New expansion to vmov into high part.
12946         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
12947         (move_lo_quad_v4sf): Likewise.
12948         (move_lo_quad_v8hi): Likewise.
12949         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
12950         low part.
12951         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
12952         high part.
12953         * config/arm/iterators.md (ANY128): New mode iterator.
12954         (V_narrow_pack): New mode attribute.
12955         (V_HALF): Add attribute.
12956         (V_DOUBLE): Add attribute.
12957         (V_mode_nunits): Add attribute.
12958
12959 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12960
12961         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
12962         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
12963
12964 2010-09-15  Olivier Hainque  <hainque@adacore.com>
12965             Jose Ruiz  <ruiz@adacore.com>
12966
12967         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
12968         * config/alpha/osf5-unwind.h: New file.
12969
12970 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12971
12972         PR bootstrap/45672
12973         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
12974         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12975         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12976
12977 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12978
12979         * c-lang.h (struct lang_type): Add variable_size GTY option.
12980
12981 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12982
12983         PR bootstrap/45672
12984         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12985
12986 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12987
12988         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
12989         result isn't used in memory address.
12990
12991 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12992
12993         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
12994         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
12995         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12996         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12997         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12998         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12999
13000         * target.def: Add units_per_simd_word to vectorize.
13001
13002         * targhooks.c (default_units_per_simd_word): New.
13003         * targhooks.h (default_units_per_simd_word): Likewise.
13004         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
13005         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13006         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
13007         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13008         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
13009         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13010         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
13011         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13012
13013         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
13014         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
13015
13016         * tree-vect-stmts.c: Don't include "tm_p.h".
13017         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
13018         with targetm.vectorize.units_per_simd_word.
13019
13020         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
13021
13022         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
13023
13024         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
13025         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
13026
13027         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
13028         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
13029
13030         * doc/tm.texi: Regenerated.
13031
13032 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
13033
13034         * tree-vect-stmts.c: Include "tm_p.h".
13035
13036         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
13037         out of RTX_CODE.
13038
13039 2010-09-14  Martin Jambor  <mjambor@suse.cz>
13040
13041         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
13042         location of generated statement.  Changed all callers.
13043         (build_ref_for_model): New parameter loc which used to set location of
13044         all generated expressions.  Changed all callers.
13045         (generate_subtree_copies): Likewise.
13046         (init_subtree_with_zero): Likewise.
13047         (sra_modify_expr): Set locations of all generated statements and
13048         expressions to the location the original statement.
13049         (handle_unscalarized_data_in_subtree): Likewise.
13050         (load_assign_lhs_subreplacements): Likewise.
13051         (sra_modify_constructor_assign): Likewise.
13052         (sra_modify_assign): Likewise.
13053
13054 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
13055
13056         PR target/45277
13057         PR target/45363
13058         PR target/45407
13059         * doc/install.texi (sparc*-*-*): New section.
13060         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
13061
13062 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
13063
13064         PR middle-end/45567
13065         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
13066         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
13067         (expand_builtin): Adjust caller.
13068         (expand_builtin_unop): Only use subtarget if it has the right mode.
13069
13070 2010-09-14  Tristan Gingold  <gingold@adacore.com>
13071
13072         * configure.ac (plugins): Fix typos.
13073         * configure: Regenerate.
13074
13075 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
13076
13077         PR debug/45660
13078         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
13079         gen_type_die for function/method return type.
13080
13081 2010-09-14  Ira Rosen  <irar@il.ibm.com>
13082
13083         PR tree-optimization/45470
13084         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13085         can throw an exception.
13086         * tree-vect-stmts.c (vectorizable_call): Likewise.
13087
13088 2010-09-14  DJ Delorie  <dj@redhat.com>
13089
13090         PR target/44749
13091         * config/mep/mep-protos.h (mep_save_register_info,
13092         mep_reinit_regs, mep_init_regs): Declare.
13093
13094         * config/mep/mep.c: Move all target definitions to the end of the
13095         file to avoid the need for duplicate declarations.
13096         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
13097         (mep_reorg_erepeat): Remove unused variables.
13098         (mep_expand_builtin): Likewise.
13099
13100         * config/mep/mep-pragma.c: Don't include rtl.h.
13101         (INVALID_REGNUM): New.
13102         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
13103         functions.
13104         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
13105         Avoid enum/integer math.
13106
13107 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
13108
13109         PR target/44749
13110         * config/mep/t-mep (GTM_H): Add insn-constants.h.
13111         * config/mep/mep.c (mep_conditional_register_usage): Take no
13112         parameters.
13113         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
13114         prototype.
13115         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
13116         call to mep_conditional_register_usage.
13117
13118 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
13119
13120         PR debug/43937
13121         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
13122         the DECL as well.
13123
13124 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
13125
13126         PR rtl-optimization/45617
13127         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
13128         even if low N bits of X aren't known to be zero.
13129
13130 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
13131
13132         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
13133
13134         * config/i386/i386.c (initial_ix86_tune_features): Add
13135         X86_TUNE_VECTORIZE_DOUBLE.
13136         (ix86_units_per_simd_word): New.
13137
13138         * config/i386/i386.h (ix86_tune_indices): Add
13139         X86_TUNE_VECTORIZE_DOUBLE.
13140         (TARGET_VECTORIZE_DOUBLE): New.
13141         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
13142
13143 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
13144
13145         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
13146         (new_temp_expr_table): Allocate call_cnt vector.
13147         (free_temp_expr_table): Free it.
13148         (process_replaceable): Add call_cnt parm and set in vector.
13149         (find_replaceable_in_bb): Skip replacement if def/use span a call.
13150         (debug_ter): Dump call_cnt value, remove stderr uses.
13151
13152 2010-09-13  Jan Hubicka  <jh@suse.cz>
13153
13154         * tree.c (build_zero_cst): New.
13155         * tree.h (build_zero_cst): Declare.
13156         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
13157         (get_base_constructor): Break out from ...
13158         (fold_const_aggregate_ref): Here; handle empty constructors.
13159
13160 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13161
13162         * config/arm/arm.md: (define_attr "conds"): Update comment.
13163         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
13164         conds attribute to clob.
13165         (arm_sync_compare_and_swapsi): Likewise.
13166         (arm_sync_compare_and_swap<mode>): Likewise.
13167         (arm_sync_lock_test_and_setsi): Likewise.
13168         (arm_sync_lock_test_and_set<mode>): Likewise.
13169         (arm_sync_new_<sync_optab>si): Likewise.
13170         (arm_sync_new_nandsi): Likewise.
13171         (arm_sync_new_<sync_optab><mode>): Likewise.
13172         (arm_sync_new_nand<mode>): Likewise.
13173         (arm_sync_old_<sync_optab>si): Likewise.
13174         (arm_sync_old_nandsi): Likewise.
13175         (arm_sync_old_<sync_optab><mode>): Likewise.
13176         (arm_sync_old_nand<mode>): Likewise.
13177
13178 2010-09-13  Olivier Hainque  <hainque@adacore.com>
13179
13180         * fwprop.c (forward_propagate_and_simplify): Only attach a
13181         REG_EQUAL note to an insn if the destination is a register.
13182         * gcse.c (try_replace_reg): Likewise.
13183
13184 2010-09-13  Richard Guenther  <rguenther@suse.de>
13185
13186         PR tree-optimization/45611
13187         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
13188         (copy_ref_info): Likewise.
13189
13190 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
13191
13192         PR debug/45604
13193         PR debug/45419
13194         PR debug/45408
13195         * tree-pretty-print.c (dump_generic_node): Disregard top-level
13196         types of MEM_REF pointer types to the same type.
13197
13198 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
13199
13200         PR rtl-optimization/41087
13201         * ifcvt.c (noce_get_condition): Don't allow conditions with
13202         side-effects.
13203
13204 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
13205
13206         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13207         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
13208         * config/frv/frv.c (frv_register_move_cost): Make static. Change
13209         arguments type to reg_class_t. Add mode argument.
13210         (frv_memory_move_cost): New.
13211         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
13212
13213 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
13214
13215         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
13216         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
13217
13218 2010-09-10  Jan Hubicka  <jh@suse.cz>
13219
13220         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
13221
13222 2010-09-10  Richard Guenther  <rguenther@suse.de>
13223
13224         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
13225         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
13226         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
13227         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
13228         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
13229
13230 2010-09-10  Richard Guenther  <rguenther@suse.de>
13231
13232         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
13233         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
13234         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
13235         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
13236
13237 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
13238
13239         PR middle-end/45634
13240         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
13241         of string folding is of integral type.
13242
13243 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
13244
13245         * doc/invoke.texi (-x): Fix typo.
13246
13247 2010-09-10  Richard Guenther  <rguenther@suse.de>
13248
13249         PR debug/44115
13250         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
13251         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13252         Output DECL_DEBUG_EXPR.
13253         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13254         Input DECL_DEBUG_EXPR.
13255
13256 2010-09-10  Richard Guenther  <rguenther@suse.de>
13257
13258         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
13259         (build_index_type): Implement in terms of build_range_type.
13260         (build_range_type): Do not allow NULL_TREE type, improve
13261         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
13262         if we didn't hash.
13263         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
13264         create a distinct copy of the type.
13265
13266 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
13267
13268         * configure: Regenerated.
13269         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
13270
13271 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13272
13273         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
13274         * config/arm/cortex-a9-neon.md: New and partially generated.
13275         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
13276
13277 2010-09-10  Richard Guenther  <rguenther@suse.de>
13278
13279         * tree.h (build_index_2_type): Remove.
13280         * tree.c (build_index_2_type): Remove.
13281
13282 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
13283
13284         PR bootstrap/45630
13285         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
13286         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
13287         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
13288
13289 2010-09-10  Martin Jambor  <mjambor@suse.cz>
13290
13291         PR tree-optimization/44972
13292         * tree-sra.c: Include toplev.h.
13293         (build_ref_for_offset): Entirely reimplemented.
13294         (build_ref_for_model): New function.
13295         (build_user_friendly_ref_for_offset): New function.
13296         (analyze_access_subtree): Removed build_ref_for_offset check.
13297         (propagate_subaccesses_across_link): Likewise.
13298         (create_artificial_child_access): Use
13299         build_user_friendly_ref_for_offset.
13300         (propagate_subaccesses_across_link): Likewise.
13301         (ref_expr_for_all_replacements_p): Removed.
13302         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
13303         (sra_modify_expr): Use build_ref_for_model.
13304         (load_assign_lhs_subreplacements): Likewise.
13305         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
13306         checks for return values of build_ref_for_offset.
13307         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
13308         build_ref_for_offset.
13309         * ipa-prop.h: Include gimple.h
13310         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
13311         (ipa_analyze_indirect_call_uses): Update comment.
13312         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
13313         (IPA_PROP_H): Likewise.
13314
13315 2010-09-10  Martin Jambor  <mjambor@suse.cz>
13316
13317         PR tree-optimization/44972
13318         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
13319         calling build_ref_for_offset.
13320
13321 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13322
13323         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
13324         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
13325         * config/arm/arm-tune.md: Regenerate.
13326         * doc/invoke.texi (ARM Options): Document it.
13327
13328 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
13329
13330         * config/i386/i386.c: Include sched-int.h.
13331         (TARGET_SCHED_DISPATCH): Defined.
13332         (TARGET_SCHED_DISPATCH_DO): Defined.
13333         (DISPATCH_WINDOW_SIZE): Defined.
13334         (MAX_DISPATCH_WINDOWS): Defined.
13335         (MAX_INSN): Defined.
13336         (MAX_IMM): Defined.
13337         (MAX_IMM_SIZE): Defined.
13338         (MAX_IMM_32): Defined.
13339         (MAX_IMM_64): Defined.
13340         (MAX_LOAD): Defined.
13341         (MAX_STORE): Defined.
13342         (BIG): Defined.
13343         (dispatch_group): New.
13344         (num_allowable_groups): New.
13345         (group_name): New.
13346         (sched_insn_info_s): New.
13347         (dispatch_windows_s): New.
13348         (imm_info_s): New.
13349         (dispatch_window_list): New.
13350         (dispatch_window_list1): New.
13351         (get_mem_group): New.
13352         (is_cmp): New.
13353         (dispatch_violation): New.
13354         (is_branch): New.
13355         (is_prefetch): New.
13356         (init_window): New.
13357         (allocate_window): New.
13358         (init_dispatch_sched): New.
13359         (is_end_basic_block): New.
13360         (process_end_window): New.
13361         (allocate_next_window): New.
13362         (find_constant_1): New.
13363         (find_constant): New.
13364         (get_num_immediates): New.
13365         (has_immediate): New.
13366         (get_insn_path): New.
13367         (get_insn_group): New.
13368         (count_num_restricted): New.
13369         (fits_dispatch_window): New.
13370         (add_insn_window): New.
13371         (add_to_dispatch_window): New.
13372         (debug_dispatch_window_file): New.
13373         (debug_dispatch_window): New.
13374         (debug_insn_dispatch_info_file): New.
13375         (debug_ready_dispatch): New.
13376         (do_dispatch): New.
13377         (has_dispatch): New.
13378         * config/i386/i386.h (debug_ready_dispatch): Declared.
13379         (debug_dispatch_window): Declared.
13380         * config/i386/i386.opt (mdispatch-scheduler): New flag.
13381         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
13382         (TARGET_SCHED_DISPATCH_DO): New.
13383         * doc/tm.texi: Regererated.
13384         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
13385         ready_remove_first_dispatch
13386         (schedule_block): Call targetm.sched.dispatch and
13387         targetm.sched.dispatch_do.
13388         (sched_init): Call targetm.sched.dispatch and
13389         targetm.sched.dispatch_do.
13390         (ready_remove_first_dispatch): New.
13391         (number_in_ready): New.
13392         (get_ready_element): New.
13393         * hooks.c (hook_bool_rtx_int_false): New.
13394         (hook_void_rtx_int): New.
13395         * hooks.h (hook_bool_rtx_int_false): Declared.
13396         (hook_void_rtx_int): Declared.
13397         * sched-int.h (IS_DISPATCH_ON): Defined.
13398         (IS_CMP): Defined.
13399         (DISPATCH_VIOLATION): Defined.
13400         (FITS_DISPATCH_WINDOW): Defined.
13401         (DISPATCH_INIT): Defined.
13402         (ADD_TO_DISPATCH_WINDOW): Defined.
13403         (get_ready_element): Declared.
13404         (number_in_ready): Declared.
13405         * target.def (dispatch): Defined.
13406         (dispatch_do): Defined.
13407
13408 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
13409
13410         PR middle-end/45312
13411         * reload1.c (merge_assigned_reloads): Remove.
13412         (reload_as_needed): Don't call it.
13413
13414 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
13415
13416         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
13417         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13418         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13419
13420 2010-09-09  Matthias Klose  <doko@ubuntu.com>
13421
13422         PR bootstrap/43847
13423         * configure.ac (--enable-plugin): Enhance for cross builds.
13424         * configure: Regenerate.
13425
13426 2010-09-09  Jan Hubicka  <jh@suse.cz>
13427
13428         PR tree-optimization/45598
13429         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
13430         string folding is of integral type.
13431
13432 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
13433
13434         * configure.ac (gnu_indirect_function): New test.
13435         * configure: Rebuilt.
13436         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
13437         * defaults.h (IFUNC_ASM_TYPE): Provide default.
13438
13439         * doc/extend.texi (Function Attributes): Document ifunc.
13440         * varasm.c (do_assemble_alias): Deal with ifuncs too.
13441
13442 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
13443
13444         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
13445         epilogue instruction move.
13446
13447 2010-09-09  Jan Hubicka  <jh@suse.cz>
13448
13449         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
13450         command line to allow more partitions than input files.
13451
13452 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
13453
13454         PR middle-end/44554
13455         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
13456
13457 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
13458
13459         PR middle-end/40386
13460         * ira.c (pseudo_for_reload_consideration_p): Don't use
13461         flag_ira_share_spill_slots.
13462
13463 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13464
13465         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
13466         point zero operands that fit into a single GPR.
13467         (s390_preferred_reload_class): Ensure we only return general-purpose
13468         register classes.
13469         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
13470         floating-point zero operands into GPRs.
13471         ("*mov<mode>_64"): Likewise.
13472         ("mov<mode>"): Likewise using lhi.
13473
13474 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13475
13476         * config/s390/s390.c (s390_symref_operand_p): Return false for
13477         literal pool references.
13478         (s390_check_qrst_address): Update caller.
13479
13480 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
13481
13482         * config/i386/predicates.md (ext_register_operand): Check that
13483         SUBREG_REG is really a register before looking for REGNO.
13484         (reg_not_xmm0_operand): Handle SUBREGs correctly.
13485         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
13486
13487 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
13488
13489         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
13490         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
13491         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
13492         * print-rtl.c (print_rtx): Likewise.
13493         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13494         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
13495         for ADDR_EXPR with non-addressable object.
13496         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
13497         (struct dw_val_struct): Add v.val_decl_ref.
13498         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
13499         Handle DW_OP_GNU_implicit_pointer.
13500         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
13501         (get_ref_die_offset_label): New function.
13502         (implicit_ptr_descriptor): New function.
13503         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
13504         (loc_descriptor): Likewise.
13505         (gen_variable_die): Put even definitions into decl_die_table.
13506         (resolve_addr_in_expr): Resolve still unresolved
13507         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
13508         return false.
13509         (dwarf2out_finish): Call output_location_lists after outputting
13510         .debug_info and .debug_abbrev instead of before.
13511
13512 2010-09-09  Roland McGrath  <roland@redhat.com>
13513
13514         * dwarf2out.c (DWARF_REF_SIZE): Define.
13515         (size_of_loc_descr): Use it for DW_OP_call_ref.
13516
13517 2010-09-09  Alan Modra  <amodra@gmail.com>
13518
13519         * doc/invoke.text: Reinstate mcmodel=medium.
13520         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13521         CMODEL_MEDIUM as default.
13522         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
13523         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
13524         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
13525         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
13526
13527 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13528
13529         PR target/45250
13530         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
13531         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
13532         (builtin_longjmp): Likewise.
13533         (allocate_stack): Use hard_frame_pointer_rtx instead of
13534         frame_pointer_rtx.
13535         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
13536         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
13537         (pa_can_eliminate): Likewise.
13538         (TARGET_INTERNAL_ARG_POINTER): Define.
13539         (TARGET_CAN_ELIMINATE): Define.
13540         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
13541         pointer.
13542         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
13543         (pa_internal_arg_pointer, pa_can_eliminate,
13544         pa_initial_elimination_offset): New.
13545         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
13546         (HARD_FRAME_POINTER_REGNUM): Set to register three.
13547         (INITIAL_FRAME_POINTER_OFFSET): Delete.
13548         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
13549         Define.
13550         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
13551         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
13552         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
13553         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
13554         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
13555         new soft frame pointer.
13556         * config/pa/pa64-regs.h: Likewise.
13557
13558 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
13559
13560         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
13561         numerical constant.
13562         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
13563
13564 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
13565
13566         PR debug/45531
13567         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
13568
13569 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
13570
13571         PR debug/45419
13572         PR debug/45408
13573         * tree-pretty-print.c (dump_generic_node): Disregard top-level
13574         qualifiers in otherwise equal MEM_REF pointer types.
13575         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
13576         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
13577
13578 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13579
13580         PR target/44392
13581         * config/arm/arm.md (bswapsi2): Handle condition correctly
13582         for armv6 and optimize_size.
13583
13584 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13585
13586         PR other/18555
13587         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
13588
13589 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
13590
13591         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
13592         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
13593         ix86_expand_strlen, legitimate_pic_address_disp_p,
13594         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
13595         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
13596         ix86_check_movabs, ix86_secondary_memory_needed): Change function
13597         prototype to bool.
13598         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
13599         return_in_memory_ms_64, ix86_check_movabs,
13600         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
13601         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
13602         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
13603         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
13604         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
13605         ix86_secondary_memory_needed): Change to bool.  Return
13606         "true" and "false" values.
13607         * config/i386/i386.md: Return "true" and "false" values.
13608
13609 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13610
13611         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13612         run_expensive_tests.
13613
13614 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13615
13616         * toplev.c (output_stack_usage): Use lbasename instead of basename.
13617
13618 2010-09-08  Martin Jambor  <mjambor@suse.cz>
13619
13620         PR other/45443
13621         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
13622         at -O3.
13623
13624 2010-09-08  Richard Guenther  <rguenther@suse.de>
13625
13626         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
13627         (visit): Adjust.
13628         (iterative_hash_gimple_type): Likewise.
13629         (gimple_type_hash): Likewise.
13630         (gimple_register_type): Likewise.
13631         (print_gimple_types_stats): Likewise.
13632         (free_gimple_type_tables): Likewise.
13633
13634 2010-09-08  Michael Matz  <matz@suse.de>
13635
13636         PR tree-optimization/43430
13637         * tree-vect-stmts.c (vectorizable_condition): Support multiple
13638         copies for conditional statements if it's not part of a reduction.
13639
13640 2010-09-08  Michael Matz  <matz@suse.de>
13641
13642         PR tree-optimization/33244
13643         * tree-ssa-sink.c (statement_sink_location): Don't sink into
13644         empty loop latches.
13645
13646 2010-09-08  Richard Guenther  <rguenther@suse.de>
13647
13648         PR tree-optimization/45578
13649         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
13650         Be more careful when transfering alignment information to
13651         the new induction variable.
13652         (copy_ref_info): Likewise.
13653
13654 2010-09-08  Richard Guenther  <rguenther@suse.de>
13655
13656         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
13657         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
13658
13659 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
13660
13661         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
13662         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
13663
13664 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13665
13666         PR doc/45587
13667         * doc/md.texi: Fixed modes on several standard pattern names.
13668
13669 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
13670
13671         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
13672         (ashl<mode>3): ...this.
13673         (loongson_psra<V_suffix>): Rename to...
13674         (ashr<mode>3): ...this.
13675         (loongson_psrl<V_suffix>): Rename to...
13676         (lshr<mode>3): ...this.
13677         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
13678         (CODE_FOR_loongson_psllw): Define.
13679         (CODE_FOR_loongson_psrlh): Define.
13680         (CODE_FOR_loongson_psrlw): Define.
13681         (CODE_FOR_loongson_psrah): Define.
13682         (CODE_FOR_loongson_psraw): Define.
13683
13684 2010-09-07  Richard Henderson  <rth@redhat.com>
13685
13686         * tree-vect-data-refs.c: Include tm_p.h.
13687         * Makefile.in (tree-vect-data-refs.o): Update deps.
13688         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
13689         Move delarations outside #ifdef RTX_CODE.
13690
13691 2010-09-07  Richard Henderson  <rth@redhat.com>
13692
13693         * final.c (rest_of_handle_final): Unconditionally do
13694         output_function_exception_table before assemble_end_function.
13695
13696 2010-09-07  Jan Hubicka  <jh@suse.cz>
13697
13698         * tree-inline.c (tree_inlinable_function_p): Do not test
13699         DECL_REPLACEABLE_P.
13700         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
13701         update_callee_keys, cgraph_decide_inlining): Test function availability.
13702         * cif-code.def (OVERWRITABLE): New code.
13703
13704 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
13705             Jack Howarth  <howarth@bromo.med.uc.edu>
13706
13707         PR target/36502
13708         PR target/42313
13709         PR target/44651
13710         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
13711         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
13712         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
13713         MAX macro.
13714
13715 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13716
13717         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
13718         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
13719
13720 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13721
13722         * config.gcc: Don't append t-android for Android targets.
13723
13724         * config/t-android: Removed.
13725
13726 2010-09-07  Richard Henderson  <rth@redhat.com>
13727
13728         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
13729         * doc/tm.texi.in: Add doc marker.
13730         * doc/tm.texi: Rebuild.
13731         * except.c (switch_to_exception_section): Always build.
13732         (output_one_function_exception_table): Move section switch,
13733         personality output, and label output ...
13734         (output_function_exception_table): ... here.  Use the new
13735         personality hook.
13736
13737         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
13738         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
13739         TARGET_ASM_INIT_SECTIONS): New.
13740         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
13741         make static.
13742         (TARGET_ASM_UNWIND_EMIT): Update to match.
13743         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
13744
13745         * config/arm/arm.c (arm_asm_emit_except_personality): New.
13746         (arm_asm_init_sections): New.
13747         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
13748
13749 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13750
13751         * config/arm/arm.md: Remove unused variable.
13752
13753 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
13754
13755         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13756         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
13757         (m32r_memory_move_cost): New function.
13758
13759 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13760
13761         * config.gcc: Append t-android for Android targets.
13762
13763         * config/t-android: New.
13764
13765 2010-09-07  Richard Henderson  <rth@redhat.com>
13766
13767         * target.def (unwind_emit_before_insn): New hook.
13768         * doc/tm.texi.in: Add @hook marker for it.
13769         * doc/tm.texi: Rebuild.
13770         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
13771
13772 2010-09-07  Martin Jambor  <mjambor@suse.cz>
13773
13774         PR fortran/43665
13775         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
13776         are any type attributes.
13777
13778 2010-09-07  Jan Hubicka  <jh@suse.cz>
13779
13780         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
13781         array_ref_low_bound in string access folding.
13782
13783 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
13784
13785         PR target/45206
13786         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
13787         eh_return fixup sequence.
13788
13789 2010-09-07  Jan Hubicka  <jh@suse.cz>
13790
13791         * gimple-fold.c (maybe_fold_reference): Verify that operand is
13792         gimple_min_invariant.
13793
13794 2010-09-07  Richard Guenther  <rguenther@suse.de>
13795
13796         PR middle-end/45569
13797         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
13798         nor CONSTRUCTOR can trap.
13799         * tree-complex.c (update_complex_assignment): Update EH info.
13800
13801 2010-09-07  Richard Guenther  <rguenther@suse.de>
13802
13803         PR middle-end/45569
13804         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
13805         * passes.c (execute_function_todo): Do not verify anything if
13806         we saw errors.
13807
13808 2010-09-07  Richard Guenther  <rguenther@suse.de>
13809
13810         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
13811
13812 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
13813
13814         PR target/43137
13815         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
13816         New define_mode_attrs.
13817         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
13818         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
13819         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
13820         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
13821         Remove pool_range attribute.
13822         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
13823         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
13824         pool_range and neg_pool_range attributes.
13825         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
13826         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
13827         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
13828
13829 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13830
13831         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
13832         check glibc.
13833
13834 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13835
13836         PR target/22152
13837         * config/i386/mmx.md (*mov<mode>_internal_rex64,
13838         *mov<mode>_internal_avx, *mov<mode>_internal,
13839         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
13840         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
13841
13842 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
13843
13844         * c-typeck.c (do_warn_double_promotion): Remove.
13845         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
13846         Objective-C++ too.
13847
13848 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
13849
13850         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
13851         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
13852         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
13853         argument type to reg_class_t. Change result type to bool.
13854         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13855
13856 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
13857
13858         PR libobjc/19850
13859         * gthr-posix.h (__gthread_objc_thread_detach): Use
13860         _objc_thread_attribs when detaching a thread.
13861         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
13862
13863 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13864
13865         PR target/45524
13866         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
13867         * configure: Regenerated.
13868
13869 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13870
13871         * combine.c (try_combine): Set subst_low_luid to i0.
13872
13873 2010-09-06  Richard Guenther  <rguenther@suse.de>
13874
13875         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
13876         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
13877         (build_aligned_type): Declare.
13878         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
13879         (check_aligned_type): New function.
13880         (build_aligned_type): Likewise.
13881         * expr.c (expand_assignment): Handle misaligned stores via
13882         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
13883         (expand_expr_real_1): Likewise.
13884         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
13885         * tree-vect-stmts.c (vectorizable_store): Do not build
13886         MISALIGNED_INDIRECT_REF but initialize alignment information.
13887         (vectorizable_load): Likewise.
13888         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
13889         handling.
13890         * cfgexpand.c (expand_debug_expr): Likewise.
13891         * dwarf2out.c (loc_list_from_tree): Likewise.
13892         * fold-const.c (maybe_lvalue_p): Likewise.
13893         (operand_equal_p): Likewise.
13894         (build_fold_addr_expr_with_type_loc): Likewise.
13895         * gimplify.c (gimplify_addr_expr): Likewise.
13896         (gimplify_expr): Likewise.
13897         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13898         (verify_gimple_assign_single): Likewise.
13899         * tree-dump.c (dequeue_and_dump): Likewise.
13900         (tree_could_trap_p): Likewise.
13901         * tree-predcom.c (ref_at_iteration): Likewise.
13902         * tree-pretty-print.c (dump_generic_node): Likewise.
13903         (op_code_prio): Likewise.
13904         (op_symbol_code): Likewise.
13905         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
13906         * tree-ssa-loop-im.c (for_each_index): Likewise.
13907         (gen_lsm_tmp_name): Likewise.
13908         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13909         (find_interesting_uses_address): Likewise.
13910         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13911         * tree-ssa-operands.c (get_expr_operands): Likewise.
13912         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13913         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13914         (ao_ref_init_from_vn_reference): Likewise.
13915         * tree.c (staticp): Likewise.
13916         (build1_stat): Likewise.
13917         (reference_alias_ptr_type): Likewise.
13918         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13919         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
13920         MISALIGNED_INDIRECT_REF handling.
13921
13922 2010-09-06  Richard Guenther  <rguenther@suse.de>
13923
13924         PR tree-optimization/45534
13925         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
13926         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
13927         on the target.
13928         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
13929         valid on the target.
13930
13931 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13932
13933         * configure.ac: Quote argument of AC_MSG_WARN.
13934         * configure: Regenerate.
13935
13936 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
13937
13938         * sel-sched.c (move_cond_jump): Correct arguments to
13939         maybe_tidy_empty_bb.
13940         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13941
13942 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
13943
13944         PR rtl-optimization/44919
13945         * sel-sched.c (move_cond_jump): Remove assert, check that
13946         the several blocks case can only happen with mutually exclusive
13947         insns instead.  Rewrite the movement code to support moving through
13948         several basic blocks.
13949
13950 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13951
13952         * config/i386/i386.md (iptrsize): New mode attribute.
13953         (tp_seg): Ditto.
13954         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
13955         mode iterator.
13956         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
13957         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
13958         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
13959         (stack_tls_protect_set_<mode>): Ditto from
13960         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
13961         of thread base pointer load.
13962         (stack_tls_protect_test_<mode>): Ditto from
13963         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
13964         of thread base pointer load.
13965         (stack_protect_set): Rewrite using indirect functions.
13966         (stack_protect_test): Ditto.
13967         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
13968         (ix86_print_operand): Handle '@'.
13969
13970 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
13971
13972         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
13973         MINUS_EXPR.
13974
13975 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
13976
13977         * doc/invoke.texi: Document -Wdouble-promotion.
13978         * c-typeck.c (convert_arguments): Check for implicit conversions
13979         from float to double.
13980         (do_warn_double_promotion): New function.
13981         (build_conditional_expr): Use it.
13982         (build_binary_op): Likewise.
13983
13984 2010-09-05  Richard Guenther  <rguenther@suse.de>
13985
13986         PR tree-optimization/45535
13987         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13988         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
13989         dereferencing it.
13990         (indirect_refs_may_alias_p): Likewise.
13991
13992 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
13993
13994         * config/sh/sh.c (sh_option_override): Make static.
13995         Adjust comments.  Declare.
13996         (sh_function_value_regno_p): Likewise.
13997         (sh_register_move_cost): Modify the arguments, make static.
13998         Adjust comments.  Declare.
13999         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
14000         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14001         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
14002         REGISTER_MOVE_COST): Delete.
14003         * config/sh/sh-protos.h (sh_override_options): Delete.
14004         (sh_register_move_cost): Delete.
14005         (sh_function_value_regno_p): Delete.
14006
14007 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
14008
14009         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
14010         m32r_function_value_regno_p): New functions.
14011         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14012         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
14013         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
14014         FUNCTION_VALUE_REGNO_P): Remove.
14015
14016 2010-09-04  Jan Hubicka  <jh@suse.cz>
14017
14018         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
14019         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
14020         fold_read_from_constant_string.
14021
14022         * gimple.h (canonicalize_constructor_val): Declare.
14023         * gimple-fold.c (canonicalize_constructor_val): New function.
14024         (get_symbol_constant_value):Use it.
14025         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
14026
14027 2010-09-04  Jan Hubicka  <jh@suse.cz>
14028
14029         * tree-switch-conversion.c (build_one_array): Set constructor to be
14030         static.
14031         * varpool.c (varpool_finalize_decl): Compute const_value_known.
14032
14033 2010-09-04  Richard Guenther  <rguenther@suse.de>
14034
14035         PR bootstrap/45519
14036         * tree-flow.h (force_gimple_operand_1): Declare.
14037         (force_gimple_operand_gsi_1): Likewise.
14038         * gimplify.c (force_gimple_operand_1): New worker taking a
14039         gimple predicate for ...
14040         (force_gimple_operand): ... which now wraps it.
14041         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
14042         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
14043         last change.
14044         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
14045         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
14046         (create_mem_ref): Likewise.
14047
14048 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
14049
14050         * config/i386/predicates.md (sse_reg_operand): New predicate.
14051         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
14052         predicate for operand 1.
14053         (XFmode push splitter): Use fp_register_operand predicate
14054         for operand 1.
14055         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
14056         (SF-DF float_extend push splitter): Add reload_completed insn
14057         predicate.
14058         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
14059         MODEF mode macro.  Add reload_completed insn predicate.
14060
14061 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
14062
14063         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
14064         (struct df_extract_ref): Remove.
14065         (union df_ref_d): Remove extract_ref member.
14066         (df_ref_create): Remove last three arguments.
14067         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
14068         * df-scan.c (df_ref_record): Remove last three arguments, do not
14069         pass them to df_ref_create_structure.
14070         (df_uses_record): Remove first and last three arguments.  Replace
14071         first argument with DF_REF_REGULAR, adjust calls to remove the
14072         width, offset and mode.  Always call recursively on the second
14073         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
14074         (df_ref_create_structure): Remove first argument.
14075         (struct df_scan_problem_data): Remove ref_extract_pool.
14076         (df_scan_free_internal): Do not free it.
14077         (df_scan_alloc): Do not allocate it.
14078         (df_ref_create): Remove last three arguments, do not pass them to
14079         df_ref_create_structure.
14080         (df_free_ref): Remove DF_REF_EXTRACT case.
14081         (df_notes_rescan): Adjust call to df_uses_record.
14082         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
14083         Remove DF_REF_EXTRACT case.
14084         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
14085         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
14086         and SUBREG definitions.
14087         (df_get_conditional_uses): Remove references to width/offset/mode,
14088         adjust call to df_ref_create_structure.
14089         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
14090         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
14091         calls to df_uses_record and df_ref_record.
14092         * fwprop.c (update_df): Remove references to width/offset/mode,
14093         adjust call to df_ref_create.
14094
14095 2010-09-03  Jan Hubicka  <jh@suse.cz>
14096
14097         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
14098         (build_cdtor_fns): Update use of build_cdtor.
14099
14100 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * doc/options.texi (SeparateAlias): Document.
14103         * opt-functions.awk (switch_flags): Handle SeparateAlias.
14104         * opth-gen.awk: Generate enumeration names for options marked
14105         SeparateAlias, but not for those marked Ignore.
14106         * opts-common.c (generate_canonical_option): Don't output separate
14107         argument for options marked CL_SEPARATE_ALIAS.
14108         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
14109         * opts.h (CL_SEPARATE_ALIAS): New.
14110         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14111         CL_COMMON): Adjust definitions.
14112         * config/i386/darwin.opt, config/mips/sde.opt: New.
14113         * common.opt (fdump-final-insns): New.
14114         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14115         i386/darwin.opt.
14116         (mips*-sde-elf*): Add mips/sde.opt.
14117         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
14118         -mno-data-in-code and -mcode-xonly here.
14119         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
14120         * gcc.c (option_map): Add "j" to --dump entry.
14121         (translate_options): Don't translate -d to -foutput-class-dir= here.
14122
14123 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
14124
14125         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
14126         DR_IS_WRITE.
14127         (compute_all_dependences): Same.
14128         (create_rdg_edge_for_ddr): Same.
14129         * tree-data-ref.h (DR_IS_WRITE): New.
14130         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
14131         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
14132         (write_memrefs_written_at_least_once): Same.
14133         * tree-predcom.c (suitable_component_p): Same.
14134         (determine_roots_comp): Same.
14135         (execute_load_motion): Same.
14136         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
14137         (vect_enhance_data_refs_alignment): Same.
14138         (vect_analyze_group_access): Same.
14139
14140 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
14141
14142         PR testsuite/42843
14143         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
14144         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
14145
14146 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
14147
14148         * dwarf2out.c (file scope): Remove #if0'd code.
14149         (gen_subprogram_die): Same.
14150
14151 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
14152
14153         PR middle-end/45484
14154         * dwarf2out.c (flush_queued_reg_saves): Rename to...
14155         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
14156         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
14157         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
14158         * config/i386/i386.c (output_set_got): Call it.
14159
14160 2010-09-03  Michael Matz  <matz@suse.de>
14161
14162         PR middle-end/45415
14163         * tree-sra.c (sra_modify_assign): If we modify the statement,
14164         say so.
14165
14166         * tree-ssa.c (verify_ssa): Check number of operands and links
14167         per statement to agree.
14168
14169 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
14170             Iain Sandoe  <iains@gcc.gnu.org>
14171
14172         PR target/45476
14173         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
14174         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
14175         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14176
14177 2010-09-03  Richard Guenther  <rguenther@suse.de>
14178
14179         * lto-streamer-out.c (output_function): Output function
14180         start and end loci.
14181         * lto-streamer-in.c (input_function): Input function start
14182         and end loci.
14183
14184 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14185
14186         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
14187         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
14188         * configure: Regenerate.
14189         * aclocal.m4: Regenerate.
14190
14191 2010-09-03  Jan Hubicka  <jh@suse.cz>
14192
14193         PR lto/44812
14194         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
14195         on functions/variables in other partition.
14196
14197 2010-09-03  Jan Hubicka  <jh@suse.cz>
14198
14199         * cgraph.h (struct varpool_node): Add const_value_known.
14200         (varpool_decide_const_value_known): Declare.
14201         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
14202         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
14203         (input_varpool_node): Restore const_value_known.
14204         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
14205         initializer folding.
14206         * ipa.c (ipa_discover_readonly_nonaddressable_var,
14207         function_and_variable_visibility): Compute const_value_known.
14208         * gimple-fold.c (get_symbol_constant_value): Use varpool for
14209         initializer folding.
14210         * varpool.c (varpool_decide_const_value_known): New function.
14211
14212 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
14213
14214         * config/i386/i386.md: Remove empty preparation statements
14215         from splitters.
14216
14217 2010-09-03  Jan Hubicka  <jh@suse.cz>
14218
14219         * passes.c (rest_of_decl_compilation): Do not add local vars into
14220         varpool.
14221         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
14222         static or extern vars are in varpool.
14223         (varpool_finalize_decl): Sanity check that only static vars are
14224         finalized.
14225
14226 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
14227
14228         PR debug/45500
14229         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
14230         not just generic vectors with BLKmode.
14231
14232 2010-09-03  Richard Guenther  <rguenther@suse.de>
14233
14234         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
14235         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
14236         * tree.h (TMR_SYMBOL): Remove.
14237         (TMR_BASE, TMR_OFFSET): Adjust.
14238         (TMR_INDEX2): New.
14239         * alias.c (ao_ref_from_mem): Use TMR_BASE.
14240         * builtins.c (get_object_alignment): Merge TMR_BASE and
14241         TMR_SYMBOL handling.
14242         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
14243         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
14244         handling.  Also allow TARGET_MEM_REF as base address.
14245         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
14246         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
14247         base.  Gimplify TMR_INDEX2.
14248         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
14249         * tree-dfa.c (get_ref_base_and_extent): Likewise.
14250         (get_addr_base_and_unit_offset): Likewise.
14251         * tree-eh.c (tree_could_trap_p): Likewise.
14252         * tree-pretty-print.c (dump_generic_node): Likewise.
14253         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
14254         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
14255         base to index2.
14256         (get_address_description): Reconstruct addres description
14257         from merged TMR_BASE and TMR_INDEX2.
14258         (maybe_fold_tmr): Fold propagated addresses.
14259         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
14260         MEM_REF and TARGET_MEM_REF paths.
14261         (indirect_refs_may_alias_p): Likewise.
14262         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
14263         instead of TMR_SYMBOL.
14264         * tree-ssa-operands.c (get_tmr_operands): Simplify.
14265         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
14266         according to changes ...
14267         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
14268         Split TARGET_MEM_REF into two fields plus the base.
14269         * tree.c (mem_ref_offset): Simplify.
14270         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
14271         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
14272         Strip NOPs when folding MEM_REF addresses.
14273         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
14274         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
14275         (fold_gimple_assign): ... not here.
14276
14277 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
14278
14279         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
14280         * config/mips/mips.c (mips_shift_truncation_mask): New function.
14281         (TARGET_SHIFT_TRUNCATION_MASK): Define.
14282
14283 2010-09-02  Richard Henderson  <rth@redhat.com>
14284
14285         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
14286         instead of readelf in the test.
14287         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
14288         in the .debug_frame section for coff targets.
14289         * configure: Rebuild.
14290
14291 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
14292
14293         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
14294         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
14295         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14296         (m32c_class_likely_spilled_p): Make static. Change argument type to
14297         reg_class_t. Change result type to bool.
14298
14299 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14300
14301         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
14302         to convert (double)(long) into a single FRIZ instruction or not
14303         when -ffast-math is used.
14304
14305         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
14306         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
14307         or FRIZ instruction if -ffast-math.
14308         * config/rs6000/rs6000.md (friz): Ditto.
14309
14310         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
14311
14312 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14313
14314         * opth-gen.awk (quote, comma): Remove unused variables.
14315
14316 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
14317
14318         * arm.c (arm_override_options): Correct fall-back code to use
14319         SUBTARGET_CPU_DEFAULT.
14320
14321 2010-09-02  Julian Brown  <julian@codesourcery.com>
14322
14323         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
14324         unspecs.
14325         (vcond<mode>, vcondu<mode>): New expanders.
14326         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
14327         comparisons with zero.
14328         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
14329         * config/arm/constraints.md (Dz): New constraint.
14330
14331 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
14332
14333         * target.def (class_likely_spilled_p): New hook.
14334         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
14335         * doc/tm.texi: Regenerate.
14336         * targhooks.c (default_class_likely_spilled_p): New function.
14337         * targhooks.h (default_class_likely_spilled_p): Declare.
14338         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
14339         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
14340         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
14341         Use fixed_reg_set instead of fixed_regs.
14342         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14343         * calls.c (avoid_likely_spilled_reg): Ditto.
14344         * ira-conflicts.c (ira_build_conflicts): Ditto.
14345         * ira.c (update_equiv_regs): Ditto.
14346         * mode-switching.c (create_pre_exit): Ditto.
14347         * regmove.c (find_matches): Ditto.
14348         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14349         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
14350         (small_register_class_p): New inline function.
14351         (push_secondary_reload, find_reusable_reload, find_reloads): Use
14352         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
14353
14354         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
14355         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
14356         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14357
14358 2010-09-02  Richard Guenther  <rguenther@suse.de>
14359
14360         PR tree-optimization/44937
14361         PR tree-optimization/45412
14362         * ipa-split.c (split_function): Properly remove PHI nodes.
14363
14364 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14365
14366         * opts.h (struct cl_option): Add warn_message field.
14367         (struct cl_decoded_option): Add warn_message field.
14368         * doc/options.texi (Ignore, Warn): Document.
14369         * opt-functions.awk (needs_state_p): Don't consider aliases or
14370         ignored options to need state saved.
14371         * optc-gen.awk: Handle Warn and Ignore.
14372         * opth-gen.awk: Output OPT_SPECIAL_ignore.
14373         * opts-common.c (decode_cmdline_option): Set warn_message field.
14374         Handle ignored options.
14375         (decode_cmdline_options_to_array, generate_option,
14376         generate_option_input_file): Set warn_message field.
14377         (read_cmdline_option): Generate warnings from warn_message field.
14378         Handle ignored options.
14379         * common.opt (Wunreachable-code, fargument-alias,
14380         fargument-noalias, fargument-noalias-global,
14381         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
14382         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
14383         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
14384         ftree-salias): Mark Ignore.
14385         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
14386         -mintel-syntax and -mno-intel-syntax here.
14387         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
14388         using Warn.
14389         * opts.c (common_handle_option): Don't handle options marked as
14390         ignored.
14391         (enable_warning_as_error): Handle ignored options.
14392
14393 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14394
14395         PR driver/44076
14396         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
14397         alias_target fields.
14398         * opt-functions.awk (opt_sanitized_name): Don't handle
14399         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
14400         * optc-gen.awk: Generate alias fields.
14401         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
14402         Don't generate such constants for aliases.
14403         * opts-common.c (generate_canonical_option): New.
14404         (decode_cmdline_option): Handle aliases.  Use
14405         generate_canonical_option for known options instead of copying the
14406         input option text.
14407         * doc/options.texi (Alias): Document.
14408         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
14409         fstack-check, specs): Mark as aliases.
14410         * gcc.c (driver_handle_option): Canonicalize -L options to joined
14411         arguments.
14412         (driver_handle_option): Don't handle OPT_specs.
14413         * opts.c (common_handle_option): Don't handle options marked as
14414         aliases.
14415         (enable_warning_as_error): Handle aliases.
14416         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
14417         OPT_Wlarger_than_eq.
14418         * tree-optimize.c (tree_rest_of_compilation): Use
14419         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
14420
14421 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
14422
14423         * config/i386/i386.md (nonmemory_operand): New mode attribute.
14424         (push memory peephole2): Macroize peepholes using SWI mode iterator.
14425         (move immediate to memory peephole2): Macroize peepholes using
14426         SWI124 mode iterator.
14427         (non-pairable NOT peephole2): Macroize peepholes using SWI124
14428         mode iterator.
14429         (simple lea add peephole2): Macroize peepholes using SWI48
14430         mode iterator.
14431         (simple lea mult peephole2): Ditto.
14432         (imul by 3,5,9 to lea peephole2): Ditto.
14433         (mov $-1, reg peephole2): Macroize peepholes using SWI248
14434         mode iterator.
14435         (imul $32bit_imm,mem,reg peephole2): Ditto.
14436         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
14437
14438 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
14439
14440         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
14441
14442 2010-09-02  Olivier Hainque  <hainque@adacore.com>
14443
14444         PR middle-end/44763
14445         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
14446         (allocno_priority_compare_func): Use it instead of a straight
14447         difference computation over priorities.
14448
14449 2010-09-02  Andi Kleen  <ak@linux.intel.com>
14450
14451         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
14452
14453 2010-09-02  Ira Rosen  <irar@il.ibm.com>
14454
14455         * tree-vectorizer.h (get_later_stmt): New function.
14456         (vect_analyze_data_ref_dependences): Add argument.
14457         * tree-vect-loop.c (vect_analyze_loop): Update call to
14458         vect_analyze_data_ref_dependences.
14459         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
14460         New function.
14461         (vect_analyze_data_ref_dependence): Add argument for basic block
14462         dependencies. Check dependencies in basic block vectorization.
14463         (vect_analyze_data_ref_dependences): Add argument and update call to
14464         vect_analyze_data_ref_dependences.
14465         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
14466         (vect_bb_vectorizable_with_dependencies): New.
14467         (vect_slp_analyze_bb): Check dependencies in basic block.
14468         (vect_schedule_slp_instance): Insert stores before the last store in
14469         SLP instance.
14470
14471 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
14472
14473         PR target/45476
14474         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
14475         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14476
14477 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
14478
14479         PR middle-end/45458
14480         * bb-reorder.c (add_labels_and_missing_jumps): Treat
14481         bbs ending with throwing insns like blocks ending with a call.
14482         (fix_up_fall_thru_edges): Likewise.
14483
14484 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
14485
14486         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
14487         (m32c_function_arg_advance): Delete.
14488         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14489         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
14490         comments.  Take a const_tree and a bool.  Declare.
14491         (m32c_function_arg_advance): Likewise.
14492         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14493
14494 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
14495
14496         PR target/45476
14497         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
14498         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
14499         * config/i386/mingw32.h: ... here.
14500
14501 2010-09-01  Andi Kleen  <ak@linux.intel.com>
14502
14503         PR lto/45475
14504         * lto-streamer-in.c (lto_input_ts_target_option): Add.
14505         (lto_input_tree_pointers): Call lto_input_ts_target_option.
14506         * lto-streamer-out (lto_output_ts_target_option): Add.
14507         (lto_output_tree_pointers): Call lto_output_ts_target_option.
14508
14509 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
14510
14511         PR/target 45452
14512         * config/i386/cygwin.h: Change order of specified import libraries.
14513         * config/i386/mingw32.h: Likewise.
14514         * config/i386/t-cygwin: Likewise.
14515         * config/i386/t-mingw32: Likewise.
14516         * config/i386/t-mingw-w32: Likewise.
14517         * config/i386/t-mingw-w64: Likewise.
14518
14519 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14520
14521         * config/arm/neon-schedgen.ml (core): New type.
14522         (allCores): List of supported cores.
14523         (availability_table): Add supported cores.
14524         (collate_bypasses): Accept core as a parameter.
14525         (worst_case_latencies_and_bypasses): Accept core as a parameter.
14526         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
14527         and coreStr to get tune attribute and prefix for functional units.
14528         (emit_bypasses): Accept core name and use it.
14529         (calculate_per_core_availability_table): New.
14530         (filter_core): New.
14531         (calculate_core_availability_table): New.
14532         (main): Use calculate_core_availablity_table.
14533         * config/arm/cortex-a8-neon.md: Update copyright year.
14534         Regenerated from ml file and merged in.
14535         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
14536         cortex_a8_neon_mrc.
14537
14538 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
14539
14540         * Makefile.in (tree-switch-conversion.o): Update dependencies.
14541
14542 2010-09-01  Richard Guenther  <rguenther@suse.de>
14543
14544         * alias.c (ao_ref_from_mem): Adjust.
14545         * builtins.c (get_object_alignment): Likewise.
14546         * cfgexpand.c (expand_debug_expr): Likewise.
14547         * gimple.c (get_base_address): Likewise.
14548         * tree-dfa.c (get_ref_base_and_extent): Likewise.
14549         (get_addr_base_and_unit_offset): Likewise.  Fix for
14550         both TMR_SYMBOL and TMR_BASE being set.
14551         * tree-eh.c (tree_could_trap_p): Likewise.
14552         * gimplify.c (gimplify_expr): Do not attempt to gimplify
14553         TMR_SYMBOL.  Always gimplify TMR_BASE.
14554         * tree-cfg.c (verify_types_in_gimple_reference): Verify
14555         TMR_BASE if there is a TMR_SYMBOL.
14556         * tree-pretty-print.c (dump_generic_node): Adjust.
14557         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14558         (tree_mem_ref_addr): Likewise.
14559         (create_mem_ref_raw): Likewise.
14560         (move_fixed_address_to_symbol): Likewise.
14561         (create_mem_ref): Likewise.
14562         (dump_mem_address): Likewise.
14563         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
14564         Fix for both TMR_SYMBOL and TMR_BASE being set.
14565         (indirect_refs_may_alias_p): Likewise.
14566         * tree-ssa-operands.c (get_tmr_operands): Adjust.
14567         * tree.def (TARGET_MEM_REF): Adjust documentation.
14568
14569 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
14570
14571         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
14572         Rename from X86_TUNE_ADD_ESP_4.
14573         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
14574         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
14575         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
14576         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
14577         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
14578         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
14579         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
14580         * config/i386/i386.c (initial_ix86_tune_features)
14581         <X86_TUNE_SINGLE_POP>: Invert members.
14582         <X86_TUNE_DOUBLE_POP>: Ditto.
14583         <X86_TUNE_SINGLE_PUSH>: Ditto.
14584         <X86_TUNE_DOUBLE_PUSH>: Ditto.
14585         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
14586         No longer exported.
14587         (push peephole2 patterns): Macroize peepholes using P mode iterator.
14588         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
14589         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
14590         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
14591
14592 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
14593
14594         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
14595         a volatile LHS if the constructor has only one element.
14596
14597 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
14598
14599         PR bootstrap/45321
14600         * tree.c (stdarg_p): Make fntype parameter const.
14601         * tree.h (stdarg_p): Likewise.
14602         (function_args_iterator): Remove unused fntype field.
14603         (function_args_iter_init): Do not initialize fntype
14604         field.  Make fntype parameter const.
14605
14606 2010-09-01  Richard Guenther  <rguenther@suse.de>
14607
14608         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
14609         estimate.
14610         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
14611         (execute_vrp): Compute number of iteration estimates.
14612         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
14613         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
14614         * tree-data-ref.c (estimated_loop_iterations): Adjust.
14615         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
14616         Infer loop bounds from undefined behavior based on a new parameter.
14617         (estimate_numbers_of_iterations): Likewise.
14618         (scev_probably_wraps_p): Adjust.
14619         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
14620
14621 2010-09-01  Nick Clifton  <nickc@redhat.com>
14622
14623         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
14624         where appropriate.
14625         (xstormy16_legitimate_address_p): Use true and false instead of 1
14626         and 0.
14627         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
14628         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
14629         magic constant 2.
14630         (xstormy16_expand_call): Fix comment at start of function.
14631
14632 2010-09-01  Nick Clifton  <nickc@redhat.com>
14633
14634         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
14635         when pushing accumulator register.
14636         (rx_get_stack_layout): Always save call clobbered registers inside
14637         interrupt handlers.
14638         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
14639
14640 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
14641
14642         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
14643         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14644
14645         * libgcc-std.ver (GCC_4.6.0): Define version.
14646
14647 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
14648
14649         * tree-nested.c (convert_all_function_calls): Iterate until after the
14650         sum of static chains in the nest doesn't change.
14651
14652 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
14653
14654         * config/m32c/m32c.c (classes_intersect): Remove.
14655         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
14656         reg_classes_intersect_p instead of classes_intersect.
14657         (class_can_hold_mode): Change arguments type from enum reg_class to
14658         reg_class_t.  Use reg_class_contents instead of class_contents.
14659         (m32c_register_move_cost): Make static. Change arguments type from
14660         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
14661         classes_intersect. Use reg_class_contents instead of class_contents.
14662         (m32c_memory_move_cost): Make static. Change arguments type from
14663         enum reg_class to reg_class_t.
14664         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14665         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14666         * config/m32c/m32c-protos.h (m32c_register_move_cost,
14667         m32c_memory_move_cost): Remove.
14668
14669 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14670
14671         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
14672         (arm_function_arg): Delete.
14673         (arm_needs_doubleword_align): Take a const_tree.
14674         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14675         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
14676         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
14677         (arm_function_arg): Make static.  Take a const_tree and a bool.
14678         (arm_function_arg_advance): Likewise.
14679         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14680
14681 2010-08-31  Andi Kleen  <ak@linux.intel.com>
14682
14683         * common.opt (fwhopr=): Update for -fwhopr=jobserver
14684         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
14685         * lto-wrapper.c (run_gcc): Add jobserver mode.
14686         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
14687         argument.
14688
14689 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
14690
14691         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
14692         (popsi1): Ditto.
14693         (*popdi1_epilogue): Ditto.
14694         (*popsi1_epilogue): Ditto.
14695         (popsi, popdi peephole2 patterns): Update peepholes for changed
14696         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
14697
14698         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
14699         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
14700
14701         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
14702         (override_options): Do not initialize removed ix86_gen_pop1.
14703         (gen_pop): New static function.
14704         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
14705         (release_scratch_register_on_entry): Ditto.
14706         (ix86_restore_reg_using_pop): Ditto.
14707         (ix86_expand_epilogue): Ditto.
14708
14709 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
14710
14711         PR middle-end/45461
14712         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
14713
14714 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14715
14716         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
14717         semicolons.
14718
14719 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14720
14721         * doc/extend.texi: Fix documentation of the return value of
14722         __builtin_choose_expr.
14723
14724 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14725
14726         * config/v850/v850-protos.h (function_arg): Delete.
14727         * config/v850/v850.h (FUNCTION_ARG): Delete.
14728         (FUNCTION_ARG_ADVANCE): Move code to...
14729         * config/v850/v850.c (v850_function_arg_advance): ...here.
14730         (v850_function_arg): Make static.  Take a const_tree and a bool.
14731         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14732
14733 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14734
14735         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
14736         these...
14737         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14738         ...and these...
14739         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
14740         ..to here..
14741         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14742         ...and here.
14743         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14744
14745 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14746
14747         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
14748         Delete.
14749         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14750         * config/rx/rx.c (rx_function_arg_size): Make static.
14751         (rx_function_arg): Likewise.
14752         (rx_function_arg_advance): New function.
14753         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14754
14755 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
14756
14757         * config/arm/arm.c (arm_override_options): Remove superfluous test.
14758         Fix indentation.
14759
14760 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
14761
14762         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
14763         (dwarf2out_decl) <CONST_DECL>: Likewise.
14764
14765 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
14766
14767         Stack usage support
14768         * common.opt (-fstack-usage): New option.
14769         * doc/invoke.texi (Debugging options): Document it.
14770         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
14771         allocate_dynamic_stack_space.
14772         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
14773         and propagate it to allocate_dynamic_stack_space.
14774         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
14775         * calls.c (initialize_argument_information): Pass TRUE as 4th
14776         argument to allocate_dynamic_stack_space.
14777         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
14778         to 1 when pushing a variable-sized argument onto the stack.  Pass
14779         TRUE as 4th argument to allocate_dynamic_stack_space.
14780         Update current_function_pushed_stack_size.
14781         (emit_library_call_value_1): Likewise.
14782         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
14783         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
14784         attempt to find an upper bound.  Remove redundant code for the
14785         SETJMP_VIA_SAVE_AREA case.
14786         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
14787         * function.h (struct stack_usage): New structure.
14788         (current_function_static_stack_size): New macro.
14789         (current_function_dynamic_stack_size): Likewise.
14790         (current_function_pushed_stack_size): Likewise.
14791         (current_function_dynamic_alloc_count): Likewise.
14792         (current_function_has_unbounded_dynamic_stack_size): Likewise.
14793         (current_function_allocates_dynamic_stack_space): Likewise.
14794         (struct function): Add new field 'su'.
14795         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
14796         add the value of the dynamic offset to the dynamic stack usage.
14797         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
14798         for variable-sized objects.
14799         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
14800         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
14801         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
14802         BUILT_IN_ALLOCA for variable-sized objects.
14803         * output.h (output_stack_usage): Declare.
14804         * toplev.c (stack_usage_file): New file pointer.
14805         (output_stack_usage): New function.
14806         (open_auxiliary_file): Likewise.
14807         (lang_dependent_init): Open file if flag_stack_usage is set.
14808         (finalize): Close file if stack_usage_file is not null.
14809         * tree.h (ALLOCA_FOR_VAR_P): New macro.
14810         * config/alpha/alpha.c (compute_frame_size): New function.
14811         (alpha_expand_prologue): Use it.
14812         (alpha_start_function): Likewise.
14813         (alpha_expand_epilogue): Likewise.  Set stack usage info.
14814         * config/i386/i386.c (ix86_expand_prologue): Likewise.
14815         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14816         * config/mips/mips.c (mips_expand_prologue): Likewise.
14817         * config/pa/pa.c (hppa_expand_prologue): Likewise.
14818         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14819         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14820
14821 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
14822
14823         PR tree-optimization/45427
14824         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
14825         Handle the case that the exit is never taken correctly.
14826         (number_of_iterations_ne): Pass exit_must_be_taken to
14827         number_of_iterations_ne_max.
14828
14829 2010-08-30  Catherine Moore  <clm@codesourcery.com>
14830
14831         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
14832         Infer -mdspr2 for the the 74K.
14833
14834 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
14835
14836         PR debug/45419
14837         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
14838
14839         PR middle-end/45423
14840         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
14841         and TRUTH_{AND,OR,XOR}_EXPR.
14842         * c-parser.c (c_parser_omp_atomic): Handle boolean
14843         {PRE,POST}_{INC,DEC}REMENT.
14844
14845 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
14846
14847         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
14848         (function_arg): Delete.
14849         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14850         (FUNCTION_INCOMING_ARG): Delete.
14851         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
14852         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
14853         and a bool.
14854         (function_arg): Rename to...
14855         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
14856         a bool.
14857         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
14858         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14859         (TARGET_FUNCTION_INCOMING_ARG): Define.
14860
14861 2010-08-30  Richard Guenther  <rguenther@suse.de>
14862
14863         PR tree-optimization/21602
14864         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
14865         using points-to information.
14866
14867 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
14868
14869         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
14870
14871 2010-08-30  Richard Guenther  <rguenther@suse.de>
14872
14873         PR tree-optimization/45449
14874         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
14875         variables.
14876
14877 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
14878
14879         * opts.h (CL_ERR_NEGATIVE): Define.
14880         * opts.c (unknown_option_callback): Don't postpone warnings for
14881         options marked with CL_ERR_NEGATIVE.
14882         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
14883         for negative versions of CL_REJECT_NEGATIVE options.
14884
14885 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
14886
14887         * config/i386/i386.md (zero_extendsidi2_1): Rename from
14888         zero_extendsidi2_32.
14889         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
14890         using SWI12 mode iterator.
14891         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
14892         to define_insn_and_split pattern.
14893         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
14894         using SWI24 mode iterator.
14895         (*zero_extendqi<mode>2_and): Macroize insn from
14896         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
14897         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
14898         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
14899         SWI24 mode iterator.
14900         (*zero_extendqi<mode>2_movzbl): Ditto from
14901         *zero_extendqi{hi,si}2_movzbl.
14902         (extendsidi2_1): Rename from extendsidi2_32.
14903         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
14904         SWI12 mode iterator.
14905
14906 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
14907
14908         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
14909         general purpose registers.
14910         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
14911         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
14912         with general purpose registers and memory operands.  Add associated
14913         CCImode post-reload splitter.
14914         * config/ia64/div.md: Change BImode to CCImode throughout.
14915
14916 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
14917
14918         * config/ia64/ia64.md (cstorebi4): Fix thinko.
14919
14920 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
14921
14922         * config/picochip/picochip.c (reorder_var_tracking_notes): This
14923         function was dropping debug insns which caused PR45299.
14924
14925 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
14926
14927         * config/i386/sse.md (extsuffix): New code attribute.
14928         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
14929         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
14930         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
14931         and sse4_1_zero_extendv4qiv4si2.
14932         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
14933         and sse4_1_zero_extendv2qiv2di2.
14934         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
14935         and sse4_1_zero_extendv4hiv4si2.
14936         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
14937         and sse4_1_zero_extendv2hiv2di2.
14938         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
14939         and sse4_1_zero_extendv2siv2di2
14940
14941         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
14942         using any_extend code iterator.
14943         (*avx_<s>mulv8hi3_highpart): Macroize insn from
14944         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
14945         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
14946
14947         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
14948         gen_sse4_1_sign_extend* functions.
14949         (struct builtin_description bdesc_args): Ditto.
14950
14951 2010-08-27  Xinliang David Li  <davidxl@google.com>
14952
14953         PR/45422
14954         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
14955         (iv_ca_set_no_cp): Update used inv expr count.
14956         (iv_ca_set_cp): Ditto.
14957         (iv_ca_new): Initialize new member.
14958         (iv_ca_free): Free memory.
14959
14960 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14961
14962         * config/sh/sh-protos.h (sh_function_arg): Delete.
14963         (sh_function_arg_advance): Delete.
14964         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14965         (PASS_IN_REG_P): Eliminate cast.
14966         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
14967         const_tree and a bool.
14968         (sh_function_arg): Likewise.
14969         (sh_output_mi_thunk): Call sh_function_arg_advance) and
14970         sh_function_arg.
14971         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14972
14973 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
14974             Kaz Kojima  <kkojima@gcc.gnu.org>
14975
14976         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
14977         when possible.
14978         (sh_expand_epilogue): Likewise.
14979         * config/sh/sh.md (movml_push_banked): New insn.
14980         (movml_pop_banked): Likewise.
14981
14982 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
14983
14984         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
14985         gen_regexp_oneof, gen_regexp_sequence): Use the string found
14986         in vector element 0 rather than the original string when there's
14987         only one element.
14988         (gen_regexp): Remove extra semicolon.
14989
14990         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
14991         thumb2_movsf_vfp): Set attribute "insn".
14992         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
14993         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
14994         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14995         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
14996         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
14997         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
14998         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
14999         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
15000         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
15001         if_not_arith, if_arith_not, cond_move_not): Likewise.
15002
15003 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15004
15005         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
15006         New declaration.
15007         (rs6000_allocate_stack_temp): Ditto.
15008         (rs6000_expand_convert_si_to_sfdf): Ditto.
15009
15010         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
15011         line.  Update the options set if power6 or power7 server/embedded
15012         type options are used.  If we give a warning for no vsx under
15013         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
15014         (rs6000_allocate_stack_temp): New function to allocate a stack
15015         tempoary and adjust the address so it meets either REG+OFFSET or
15016         REG+REG addressing requirements.
15017         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
15018         that they can be used with the LFIWAX/LFIWZX instrucitons.
15019         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
15020         converting signed/unsigned SImode to either SFmode/DFmode.
15021
15022         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
15023         whether certain instructions can be generated.
15024         (TARGET_FCTIDZ): Ditto.
15025         (TARGET_STFIWX): Ditto.
15026         (TARGET_LFIWAX): Ditto.
15027         (TARGET_LFIWZX): Ditto.
15028         (TARGET_FCFIDS): Ditto.
15029         (TARGET_FCFIDU): Ditto.
15030         (TARGET_FCFIDUS): Ditto.
15031         (TARGET_FCTIDUZ): Ditto.
15032         (TARGET_FCTIWUZ): Ditto.
15033
15034         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
15035         (UNSPEC_FCTID): Ditto.
15036         (UNSPEC_LFIWAX): Ditto.
15037         (UNSPEC_LFIWZX): Ditto.
15038         (UNSPEC_FCTIWUZ): Ditto.
15039         (rreg): Use correct constraints.
15040         (SI_CONVERT_FP): New mode attribute for floating point conversion
15041         tests.
15042         (E500_CONVERT): Ditto.
15043         (lfiwax): New insns for converting from integer to floating point
15044         utilizing newer instructions.  Attempt to optimize conversions
15045         that come from memory so that we don't load the value into a GPR,
15046         spill it to the stack and reload it into a FPR.
15047         (floatsi<mode>2_lfiwax): Ditto.
15048         (floatsi<mode>2_lfiwax_mem): Ditto.
15049         (floatsi<mode>2_lfiwax_mem2): Ditto.
15050         (lfiwzx): Ditto.
15051         (floatunssi<mode>2_lfiwzx): Ditto.
15052         (floatunssi<mode>2_lfiwzx_mem): Ditto.
15053         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
15054         (floatdidf2_mem): Ditto.
15055         (floatunsdidf2_fcfidu): Ditto.
15056         (floatunsdidf2_mem): Ditto.
15057         (floatunsdisf2): Ditto.
15058         (floatunsdisf2_fcfidus): Ditto.
15059         (floatunsdisf2_mem): Ditto.
15060         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
15061         Use FCFID on 32-bit hosts that support it.
15062         (floatsidf2_internal): Ditto.
15063         (floatunssisf2): Ditto.
15064         (floatunssidf2): Ditto.
15065         (floatunssidf2_internal): Ditto.
15066         (floatsisf2): Ditto.
15067         (floatdidf2): Ditto.
15068         (floatdidf2_fpr): Ditto.
15069         (floatunsdidf2): Ditto.
15070         (floatdisf2): Ditto.
15071         (floatdisf2_fcfids): Ditto.
15072         (floatdisf2_internal1): Ditto.
15073         (fixuns_truncsfsi2): Delete, merge into common pattern for both
15074         SF/DF.  Add power7 support.
15075         (fix_truncsfsi2): Ditto.
15076         (fixuns_truncdfsi2): Ditto.
15077         (fixuns_truncdfdi2): Ditto.
15078         (fix_truncdfsi2): Ditto.
15079         (fix_truncdfsi2_internal): Ditto.
15080         (fix_truncdfsi2_internal_gfxopt): Ditto.
15081         (fix_truncdfsi2_mfpgpr): Ditto.
15082         (fctiwz): Ditto.
15083         (btruncdf2): Ditto.
15084         (btruncdf2_fpr): Ditto.
15085         (btructsf2): Ditto.
15086         (ceildf2): Ditto.
15087         (ceildf2_fpr): Ditto.
15088         (ceilsf2): Ditto.
15089         (floordf2): Ditto.
15090         (floordf2_fpr): Ditto.
15091         (floorsf2): Ditto.
15092         (rounddf2): Ditto.
15093         (rounddf2_fpr): Ditto.
15094         (roundsf2): Ditto.
15095         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
15096         (fix_trunc<mode>di2): Ditto.
15097         (fixuns_trunc<mode>si2): Ditto.
15098         (fixuns_trunc<mode>di2): Ditto.
15099         (fctiwz_<mode>): Ditto.
15100         (btrunc<mode>2): Ditto.
15101         (btrunc<mode>2_fpr): Ditto.
15102         (ceil<mode>2): Ditto.
15103         (ceil<mode>2_fpr): Ditto.
15104         (floor<mode>2): Ditto.
15105         (float<mode>2_fpr): Ditto.
15106         (round<mode>2): Ditto.
15107         (round<mode>2_fpr): Ditto.
15108         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
15109         (fixuns_trunc<mode>si2_stfiwx): Ditto.
15110         (fix_truncdfsi2_internal): Ditto.
15111         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
15112         converted value on stack, loaded into GPR, and then stored into
15113         the final destination.
15114         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
15115         FCTIDZ.
15116         (lrint<mode>di2): New insn, provide the lrint builtin functions.
15117         (ftruncdf2): Delete, unused.
15118         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
15119
15120         * config/rs6000/vsx.md (toplevel): Update copyright year.
15121         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
15122         (VSr3): Ditto.
15123
15124 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
15125             Jeremie Salvucci  <jeremie.salvucci@free.fr>
15126
15127         * gengtype.c (output_type_enum): Test the right union member.
15128
15129 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
15130
15131         PR target/41484
15132         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
15133         operands for operand 1.
15134         (sse4_1_extendv4qiv4si2): Ditto.
15135         (sse4_1_extendv2qiv2di2): Ditto.
15136         (sse4_1_extendv4hiv4si2): Ditto.
15137         (sse4_1_extendv2hiv2di2): Ditto.
15138         (sse4_1_extendv2siv2di2): Ditto.
15139         (sse4_1_zero_extendv8qiv8hi2): Ditto.
15140         (sse4_1_zero_extendv4qiv4si2): Ditto.
15141         (sse4_1_zero_extendv2qiv2di2): Ditto.
15142         (sse4_1_zero_extendv4hiv4si2): Ditto.
15143         (sse4_1_zero_extendv2hiv2di2): Ditto.
15144         (sse4_1_zero_extendv2siv2di2): Ditto.
15145         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
15146         (*sse4_1_extendv4qiv4si2): Ditto.
15147         (*sse4_1_extendv2qiv2di2): Ditto.
15148         (*sse4_1_extendv4hiv4si2): Ditto.
15149         (*sse4_1_extendv2hiv2di2): Ditto.
15150         (*sse4_1_extendv2siv2di2): Ditto.
15151         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
15152         (*sse4_1_zero_extendv4qiv4si2): Ditto.
15153         (*sse4_1_zero_extendv2qiv2di2): Ditto.
15154         (*sse4_1_zero_extendv4hiv4si2): Ditto.
15155         (*sse4_1_zero_extendv2hiv2di2): Ditto.
15156         (*sse4_1_zero_extendv2siv2di2): Ditto.
15157
15158 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
15159
15160         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
15161         (mips_function_arg): Delete.
15162         (mips_function_arg_boundary): Take a const_tree.
15163         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
15164         (mips_arg_info): Likewise.
15165         (mips_setup_incoming_varargs): Call mips_function_arg_advance
15166         instead of FUNCTION_ARG_ADVANCE.
15167         (mips_function_arg_advance): Adjust prototype.  Make static.
15168         (mips_function_arg): Likewise.
15169         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15170         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
15171
15172 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
15173
15174         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15175         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
15176         (function_arg): Delete.
15177         (function_arg_boundary): Take a const_tree.
15178         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
15179         (rs6000_spe_function_arg): Likewise.
15180         (rs6000_parm_start): Likewise.
15181         (rs6000_arg_size): Likewise.
15182         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
15183         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
15184         (rs6000_mixed_function_arg): Likewise.
15185         (function_arg): Rename to...
15186         (rs6000_function_arg): ...this.
15187         (function_arg_advance): Rename to...
15188         (rs6000_function_arg_advance_1): ...this
15189         (rs6000_function_arg_advance): New function.  Call it.
15190         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
15191         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
15192         (rs6000_function_value): Likewise.
15193         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15194
15195 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15196
15197         * config/arm/arm.md (enabled): Test the value of arch_enabled
15198         rather than just using it.
15199
15200 2010-08-27  Olivier Hainque  <hainque@adacore.com>
15201             Eric Botcazou  <ebotcazou@adacore.com>
15202
15203         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
15204         cover all the possible offsets from this base.
15205         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
15206
15207 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
15208
15209         PR tree-optimization/44485
15210         * calls.c (flags_from_decl_or_type): For const or pure
15211         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
15212         together with ECF_CONST resp. ECF_PURE.
15213         * builtins.c (expand_builtin): Use flags_from_decl_or_type
15214         instead of querying flags directly.
15215         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
15216         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
15217
15218 2010-08-26  Richard Guenther  <rguenther@suse.de>
15219
15220         PR tree-optimization/45255
15221         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
15222         and externals are also invariant.
15223
15224 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
15225
15226         PR rtl-optimization/44858
15227         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
15228         newi2pat, make sure they don't affect newpat.
15229
15230         PR rtl-optimization/45400
15231         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
15232         SUBREG_REG if both modes are of MODE_INT class.
15233
15234 2010-08-25  Julian Brown  <julian@codesourcery.com>
15235
15236         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
15237         * config/arm/arm.md (generic_sched): No for Cortex-A5.
15238         (generic_vfp): Likewise.
15239         (cortex-a5.md): Include.
15240         * config/arm/cortex-a5.md: New.
15241
15242 2010-08-25  Richard Guenther  <rguenther@suse.de>
15243
15244         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
15245         * gimple.c (gimple_get_alias_set): Remove special handling
15246         for pointers.
15247
15248 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
15249
15250         PR middle-end/45355
15251         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
15252         dead_or_set_p when computing i0_feeds_i2_n.
15253
15254         * combine.c (find_split_point): Undo canonicalization of multiply-add
15255         to (minus x (mult)) when it seems likely that this will increase the
15256         chances of a split.
15257
15258 2010-08-25  Richard Guenther  <rguenther@suse.de>
15259
15260         PR lto/44562
15261         * lto-streamer.c (lto_record_common_node): Do not mess with
15262         TYPE_CANONICAL when not in lto.
15263         * gimple.c (gimple_register_type): Likewise.
15264
15265 2010-08-25  Richard Guenther  <rguenther@suse.de>
15266
15267         PR tree-optimization/45316
15268         * tree-ssa-pre.c (eliminate): Properly clean EH info.
15269
15270 2010-08-25  Richard Guenther  <rguenther@suse.de>
15271
15272         PR tree-optimization/45393
15273         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
15274         and clean EH info.  Avoid SSA update.
15275         (execute_cse_sincos): Cleanup the CFG if it has changed.
15276
15277 2010-08-25  Richard Guenther  <rguenther@suse.de>
15278
15279         PR middle-end/45379
15280         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
15281         TARGET_MEM_REF in alignment computation.
15282
15283 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
15284
15285         PR tree-optimization/45059
15286         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
15287         type conversions from newop{1,2}.  Assert t is a comparison and
15288         newop{1,2} after the stripping are gimple vals.
15289
15290 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
15291
15292         * config/arm/iterators.md (VU, SE, V_widen_l): New.
15293         (V_unpack, US): New.
15294         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
15295         (vec_unpack<US>_lo_<mode>): Likewise.
15296         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
15297         (neon_vec_unpack<US>_lo_<mode>): Likewise.
15298         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
15299         (vec_widen_<US>mult_hi_<mode>): Likewise.
15300         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
15301         (neon_vec_<US>mult_hi_<mode>"): Likewise.
15302         (neon_unpack<US>_<mode>): Widening move intermediate step for
15303         vectorizing without -mvectorize-with-neon-quad.
15304         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
15305         for vectorizing without -mvectorize-with-neon-quad.
15306         * config/arm/predicates.md (vect_par_constant_high): Check for
15307         high-half lanes of a vector.
15308         (vect_par_constant_low): Check for low-half lanes of a vector.
15309
15310 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
15311
15312         * tree-if-conv.c (struct ifc_dr): New.
15313         (IFC_DR): New.
15314         (DR_WRITTEN_AT_LEAST_ONCE): New.
15315         (DR_RW_UNCONDITIONALLY): New.
15316         (memref_read_or_written_unconditionally): Use the cached values
15317         when possible.
15318         (write_memref_written_at_least_once): Same.
15319         (if_convertible_loop_p): Initialize and free DR->aux fields.
15320
15321 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
15322
15323         * gimple.c (gimple_could_trap_p_1): Not static anymore.
15324         Pass an extra bool parameter include_mem.
15325         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
15326         (gimple_assign_rhs_could_trap_p): Same.
15327         * gimple.h (gimple_could_trap_p_1): Declared.
15328         * tree-data-ref.h (same_data_refs_base_objects): New.
15329         (same_data_refs): New.
15330         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
15331         (write_memrefs_written_at_least_once): New.
15332         (ifcvt_memrefs_wont_trap): New.
15333         (operations_could_trap): New.
15334         (ifcvt_could_trap_p): New.
15335         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
15336         Gets a vector of data refs.
15337         (if_convertible_stmt_p): Same.
15338         (if_convertible_loop_p_1): New.
15339         (if_convertible_loop_p): Call if_convertible_loop_p_1.
15340
15341 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
15342
15343         * common.opt (ftree-loop-if-convert-stores): New flag.
15344         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
15345         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
15346         the created statement before GSI.
15347         (if_convertible_phi_p): Allow virtual phi nodes when
15348         flag_loop_if_convert_stores is set.
15349         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
15350         Do not handle types that do not match is_gimple_reg_type.
15351         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
15352         when flag_loop_if_convert_stores is set, as LHS can contain
15353         memory refs.
15354         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
15355         to if_convertible_gimple_assign_stmt_p.
15356         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
15357         (replace_phi_with_cond_gimple_assign_stmt): Renamed
15358         predicate_scalar_phi.  Do not handle virtual phi nodes.
15359         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
15360         Call predicate_scalar_phi.
15361         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
15362         just after the labels for flag_loop_if_convert_stores, otherwise
15363         insert the predicate in the end of the BB.
15364         (predicate_mem_writes): New.
15365         (combine_blocks): Call predicate_all_scalar_phis.  When
15366         flag_loop_if_convert_stores is set, call predicate_mem_writes.
15367         (tree_if_conversion): Call mark_sym_for_renaming when
15368         flag_loop_if_convert_stores is set.
15369         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
15370         flag_loop_if_convert_stores is set.
15371
15372 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
15373
15374         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
15375         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
15376         (pa_function_value): Make static.
15377         (override_options): Rename to...
15378         (pa_option_override): ...this. Make static.
15379         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
15380         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
15381         TARGET_OPTION_OVERRIDE): Define.
15382         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
15383         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
15384         Remove.
15385         * config/pa/pa-protos.h (override_options): Remove.
15386
15387 2010-08-24  Richard Guenther  <rguenther@suse.de>
15388
15389         PR middle-end/45379
15390         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
15391         if addr->index is NULL or zero.
15392         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
15393         TARGET_MEM_REF more properly.
15394         (indirect_ref_may_alias_decl_p): Likewise.
15395         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
15396         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
15397
15398 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
15399
15400         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
15401         (m32c_override_options): Rename to...
15402         (m32c_option_override): ...this. Make static.
15403         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
15404         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
15405         Remove.
15406         * config/m32c/m32c-protos.h (m32c_override_options,
15407         m32c_function_value_regno_p): Remove.
15408
15409 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
15410
15411         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
15412         Fix a typo in a previous commit.
15413
15414 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
15415
15416         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
15417         Pre-initialize innerloop_iters to one.
15418
15419 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
15420
15421         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
15422         existing static function global.
15423
15424         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
15425         is changed to global.
15426
15427         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
15428         may_be_nonaddressable_p on base, and don't collect this reference
15429         if the address of the base could not be taken.
15430
15431 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15432
15433         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
15434         enable the compiler to autovectorize mathmetical functions for
15435         power7 using the Mathematical Acceleration Subsystem library.
15436
15437         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
15438         handle which vector math library we have.
15439         (rs6000_override_options): Add -mveclibabi=mass support.
15440         (rs6000_builtin_vectorized_libmass): New function to handle auto
15441         vectorizing math functions that are in the MASS library.
15442         (rs6000_builtin_vectorized_function): Call it.
15443
15444         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15445         -mveclibabi=mass.
15446
15447 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15448
15449         PR boehm-gc/34544
15450         * gthr-posix.h (__gthread_active_init): Delete.
15451         (__gthread_active_p): Do activity check here.
15452         Don't include errno.h on hppa-hpux.  Update comment.
15453         * gthr-posix95.h (__gthread_active_init): Delete.
15454         (__gthread_active_p): Do activity check here.
15455         Don't include errno.h on hppa-hpux.  Update comment.
15456         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
15457         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
15458         add -lpthread when -mt or -pthread is specified.
15459         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
15460         (LINK_GCC_C_SEQUENCE_SPEC): Define.
15461         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
15462         (stublib.c, pthread_default_stacksize_np-stub.o,
15463         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
15464         $(T)libgcc_stub.a): Add methods.
15465         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
15466         (stublib.c, pthread_default_stacksize_np-stub.o,
15467         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
15468         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15469         pthread_mutex_unlock): New stubs.
15470
15471 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
15472
15473         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
15474         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
15475         options.
15476         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
15477         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
15478         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
15479         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
15480         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
15481         "-l".
15482         * cppspec.c: Include opts.h.
15483         (lang_specific_driver): Use cl_decoded_option structures.
15484         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
15485         * doc/tm.texi: Regenerate.
15486         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
15487         (driver_handle_option): Allow driver options needing no special
15488         processing.
15489         (process_command): Decode options before call to
15490         lang_specific_driver.  Pass decoded options to
15491         lang_specific_driver.
15492         * gcc.h (lang_specific_driver): Update prototype.
15493         * gccspec.c: Include opts.h.
15494         (lang_specific_driver): Use cl_decoded_option structures.
15495         * opts-common.c (option_ok_for_language, generate_option,
15496         generate_option_input_file): New.
15497         (decode_cmdline_option): Use option_ok_for_language.
15498         (decode_cmdline_options_to_array): Use generate_option_input_file.
15499         (handle_generated_option): Use generate_option.
15500         * opts.h (generate_option, generate_option_input_file): Declare.
15501
15502 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
15503
15504         * config/mips/mips.c (mips_override_options): Rename to...
15505         (mips_option_override): ...this. Make static.
15506         (TARGET_OPTION_OVERRIDE): Define.
15507         (mips_in_small_data_p): Update comment.
15508         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
15509         (FIXED_REGISTERS): Update comment.
15510         * config/mips/mips-protos.h (mips_override_options): Remove.
15511
15512 2010-08-21  Olivier Hainque  <hainque@adacore.com>
15513
15514         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
15515
15516 2010-08-21  Olivier Hainque  <hainque@adacore.com>
15517
15518         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
15519         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
15520
15521 2010-08-20  Jan Hubicka  <jh@suse.cz>
15522
15523         * tree-pass.h (pass_ipa_cdtor_merge): New function.
15524         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
15525         heap allocated.
15526         (record_cdtor_fn): Move to ipa.c; do not test for
15527         have_ctors_dtors.
15528         (build_cdtor): Move to ipa.c; add code avoiding construction
15529         when target have ctors/dtors and there is only one ctor/dtor at given
15530         priority.
15531         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
15532         sort; reverse order of constructors.
15533         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
15534         (cgraph_finalize_function): Do not call record_cdtor_fn.
15535         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
15536         (cgraph_build_static_cdtor): Move to ipa.c.
15537         * ipa.c: Include target.h and tree-iterator.h.
15538         (cgraph_build_static_cdtor, static_ctors, static_dtors,
15539         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
15540         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
15541         pass_ipa_cdtor_merge): New.
15542         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
15543         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
15544         bounds access.
15545
15546 2010-08-20  Jan Hubicka  <jh@suse.cz>
15547
15548         PR c++/45307
15549         PR c++/17736
15550         * cgraph.h (cgraph_only_called_directly_p,
15551         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
15552         static cdtors.
15553         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
15554         are not needed.
15555         (cgraph_finalize_function): Static cdtors are reachable.
15556         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
15557
15558 2010-08-20  Jan Hubicka  <jh@suse.cz>
15559
15560         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
15561         flag_wpa.
15562         * lto-streamer-out.c (lto_output): Likewise.
15563         * passes.c (ipa_write_optimization_summaries): Initialize statement
15564         uids.
15565
15566 2010-08-20  Olivier Hainque  <hainque@adacore.com>
15567
15568         * tree.h (alias_diag_flags): New enum.
15569         (alias_pair): Add an 'emitted_diags' field.
15570         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
15571         (assemble_alias): Initialize emitted_diags of new pairs.
15572
15573 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
15574
15575         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15576         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15577         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15578         (STACK_CHECK_PROTECT): Define.
15579         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
15580         (output_probe_stack_range): Likewise.
15581         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
15582         builtin stack checking is enabled.
15583         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
15584         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15585         (probe_stack_range): New insn.
15586
15587 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
15588
15589         PR target/45336
15590         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
15591         short first.
15592
15593         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
15594         char first.
15595
15596 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
15597
15598         PR target/45336
15599         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
15600         to cover zero extension into 64-bit register.
15601         (*sse2_pextrw): Likewise.
15602         (*sse4_1_pextrd_zext): New insn.
15603
15604 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
15605
15606         revert r163410, partially revert r163267.
15607         * config/rs6000/darwin.h (LIB_SPEC): Remove.
15608         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
15609         Darwin versions.
15610
15611 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
15612
15613         PR middle-end/44974
15614         * builtins.c (expand_builtin): Don't optimize away
15615         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
15616
15617 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
15618
15619         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
15620         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
15621         alternative 1 of operand 2.
15622
15623 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
15624             Paolo Bonzini  <bonzini@gnu.org>
15625
15626         * simplify-rtx.c (simplify_unary_operation_1): Optimize
15627         (sign_extend (zero_extend (...)) and
15628         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
15629
15630 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
15631
15632         PR rtl-optimization/45353
15633         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
15634         after bb_note is a BARRIER.
15635
15636 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
15637
15638         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
15639         linking libgcc.a.
15640
15641 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
15642             Michael Matz  <matz@suse.de>
15643
15644         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
15645
15646 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
15647
15648         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
15649         (ggc_mark_roots): ...here.
15650
15651 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
15652
15653         * vec.h (FOR_EACH_VEC_ELT): Define.
15654         * c-decl.c: Use it.
15655         * cfgloop.c: Likewise.
15656         * cfgloopmanip.c: Likewise.
15657         * cgraph.c: Likewise.
15658         * cgraphunit.c: Likewise.
15659         * combine.c: Likewise.
15660         * config/bfin/bfin.c: Likewise.
15661         * config/mips/mips.c: Likewise.
15662         * config/rs6000/rs6000.c: Likewise.
15663         * dbxout.c: Likewise.
15664         * df-scan.c: Likewise.
15665         * dominance.c: Likewise.
15666         * dse.c: Likewise.
15667         * dwarf2out.c: Likewise.
15668         * except.c: Likewise.
15669         * expr.c: Likewise.
15670         * function.c: Likewise.
15671         * gcse.c: Likewise.
15672         * genattr.c: Likewise.
15673         * ggc-common.c: Likewise.
15674         * gimplify.c: Likewise.
15675         * graphite-blocking.c: Likewise.
15676         * graphite-clast-to-gimple.c: Likewise.
15677         * graphite-dependences.c: Likewise.
15678         * graphite-interchange.c: Likewise.
15679         * graphite-poly.c: Likewise.
15680         * graphite-scop-detection.c: Likewise.
15681         * graphite-sese-to-poly.c: Likewise.
15682         * graphite.c: Likewise.
15683         * haifa-sched.c: Likewise.
15684         * ifcvt.c: Likewise.
15685         * implicit-zee.c: Likewise.
15686         * ipa-prop.c: Likewise.
15687         * ipa-struct-reorg.c: Likewise.
15688         * ipa.c: Likewise.
15689         * ira-build.c: Likewise.
15690         * ira-color.c: Likewise.
15691         * ira-emit.c: Likewise.
15692         * lambda-code.c: Likewise.
15693         * loop-invariant.c: Likewise.
15694         * loop-unroll.c: Likewise.
15695         * lower-subreg.c: Likewise.
15696         * lto-cgraph.c: Likewise.
15697         * lto-opts.c: Likewise.
15698         * lto-streamer-in.c: Likewise.
15699         * lto-streamer-out.c: Likewise.
15700         * lto-streamer.c: Likewise.
15701         * lto-symtab.c: Likewise.
15702         * matrix-reorg.c: Likewise.
15703         * opts.c: Likewise.
15704         * predict.c: Likewise.
15705         * print-tree.c: Likewise.
15706         * sdbout.c: Likewise.
15707         * sel-sched-dump.c: Likewise.
15708         * sel-sched-ir.c: Likewise.
15709         * sel-sched.c: Likewise.
15710         * sese.c: Likewise.
15711         * stor-layout.c: Likewise.
15712         * tree-cfg.c: Likewise.
15713         * tree-cfgcleanup.c: Likewise.
15714         * tree-chrec.c: Likewise.
15715         * tree-data-ref.c: Likewise.
15716         * tree-emutls.c: Likewise.
15717         * tree-inline.c: Likewise.
15718         * tree-into-ssa.c: Likewise.
15719         * tree-loop-distribution.c: Likewise.
15720         * tree-loop-linear.c: Likewise.
15721         * tree-mudflap.c: Likewise.
15722         * tree-outof-ssa.c: Likewise.
15723         * tree-parloops.c: Likewise.
15724         * tree-predcom.c: Likewise.
15725         * tree-pretty-print.c: Likewise.
15726         * tree-scalar-evolution.c: Likewise.
15727         * tree-ssa-live.c: Likewise.
15728         * tree-ssa-loop-im.c: Likewise.
15729         * tree-ssa-loop-ivcanon.c: Likewise.
15730         * tree-ssa-loop-ivopts.c: Likewise.
15731         * tree-ssa-loop-manip.c: Likewise.
15732         * tree-ssa-loop-niter.c: Likewise.
15733         * tree-ssa-loop-prefetch.c: Likewise.
15734         * tree-ssa-phiprop.c: Likewise.
15735         * tree-ssa-pre.c: Likewise.
15736         * tree-ssa-reassoc.c: Likewise.
15737         * tree-ssa-sccvn.c: Likewise.
15738         * tree-ssa-structalias.c: Likewise.
15739         * tree-ssa.c: Likewise.
15740         * tree-vect-data-refs.c: Likewise.
15741         * tree-vect-loop-manip.c: Likewise.
15742         * tree-vect-loop.c: Likewise.
15743         * tree-vect-patterns.c: Likewise.
15744         * tree-vect-slp.c: Likewise.
15745         * tree-vect-stmts.c: Likewise.
15746         * tree-vrp.c: Likewise.
15747         * tree.c: Likewise.
15748         * value-prof.c: Likewise.
15749         * var-tracking.c: Likewise.
15750         * varasm.c: Likewise.
15751         * vmsdbgout.c: Likewise.
15752
15753 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
15754             Richard Guenther  <richard.guenther@gmail.com>
15755
15756         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
15757         copy the src value and return a copy.
15758         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
15759         (C++ Volatiles): Adjust to describe C++ semantics only.
15760
15761 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
15762
15763         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
15764         be zero or nonzero.
15765         * doc/tm.texi: Regenerate.
15766         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
15767         * df-scan.c (df_get_exit_block_use_set), reginfo.c
15768         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
15769         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
15770         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
15771         to 1.
15772
15773 2010-08-20  Olivier Hainque  <hainque@adacore.com>
15774
15775         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
15776         an extra nop past a sibling call at the very end.
15777
15778 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
15779
15780         PR bootstrap/45350
15781         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
15782         a comment.
15783
15784 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
15785
15786         * target.def (function_arg, function_incoming_arg): Remove const
15787         qualifier on CUMULATIVE_ARGS parameter.
15788         * targhooks.h (default_function_arg, default_function_incoming_arg):
15789         Likewise.
15790         * targhooks.c (default_function_arg, default_function_incoming_arg):
15791         Likewise.
15792         * config/i386/i386.c (ix86_function_arg): Likewise.
15793
15794 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
15795
15796         PR target/45336
15797         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
15798         SIGN_EXTENDs or ZERO_EXTENDs.
15799
15800 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
15801
15802         PR target/42172
15803         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
15804         Take its cost into account if nonnull.
15805         (insn_a_feeds_b): New static function.
15806         (combine_instructions): Look for four-insn combinations.
15807         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
15808         them into account when computing all_adjacent and looking for other
15809         uses.
15810         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
15811         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
15812         (try_combine): New arg I0.  Handle four-insn combinations.
15813         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
15814         like ELIM_I1.
15815
15816 2010-08-19  Jason Merrill  <jason@redhat.com>
15817
15818         PR c++/45307
15819         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
15820         if ctor is empty.
15821         (gimplify_modify_expr_rhs): Adjust.
15822
15823 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
15824
15825         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
15826         bitmap_bit_p.
15827         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
15828         * dominance.c (iterate_fix_dominators): Likewise.
15829         * dse.c (set_usage_bits): Likewise.
15830         (set_position_unneeded, record_store): Likewise.
15831         * gimple-fold.c (get_maxval_strlen): Likewise.
15832         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
15833         * ipa-inline.c (update_caller_keys): Likewise.
15834         * ipa-split.c (verify_non_ssa_vars): Likewise.
15835         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
15836         (close_type_exposed_parameter, close_type_full_escape): Likewise.
15837         (close_addressof_down): Likewise.
15838         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
15839         (setup_allocno_left_conflicts_size): Likewise.
15840         (ira_reassign_conflict_allocnos): Likewise.
15841         (ira_reassign_pseudos): Likewise.
15842         * ira-emit.c (change_loop): Likewise.
15843         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
15844         * lto-streamer-out.c (write_symbol): Likewise.
15845         * predict.c (expr_expected_value_1): Likewise.
15846         * regstat.c (regstat_bb_compute_ri): Likewise.
15847         * sel-sched.c (create_block_for_bookkeeping): Likewise.
15848         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
15849         * stmt.c (expand_case): Likewise.
15850         * tree-eh.c (emit_eh_dispatch): Likewise.
15851         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
15852         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
15853         Likewise.
15854         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
15855         (rdg_build_components): Likewise.
15856         * tree-object-size.c (collect_object_sizes_for): Likewise.
15857         * tree-sra.c (convert_callers): Likewise.
15858         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
15859         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
15860         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
15861
15862 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
15863
15864         * config/i386/i386.md (*lea_1): Use P mode iterator.
15865         (lea add splitter): Also handle DImode operands.
15866         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
15867         predicate.  Do not use ix86_lea_for_add_ok.
15868         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
15869         (lea ashift splitter): Also handle DImode operands.
15870         (DImode lea ashift splitter): Remove splitter.
15871
15872 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
15873
15874         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
15875         ix86_binary_operator_ok.
15876
15877 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
15878
15879         PR rtl-optimization/44691
15880         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
15881         is not a register.
15882
15883 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
15884
15885         PR target/45070
15886         * config/arm/arm.c (arm_output_epilogue): Ensure that return
15887          value of size 1-3 is handled correctly.
15888
15889 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
15890
15891         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
15892         type for the conditional has wide enough range.
15893
15894 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
15895
15896         PR target/45327
15897         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
15898         ix86_binary_operator_ok.
15899
15900 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
15901
15902         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
15903         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
15904         code to output insn mnemonic.  Fix comment.
15905         (*addsi_1_zext): Add r-r-0 alternative 1.
15906         <TYPE_LEA>: Split insn to lea.
15907         <default>: Handle alternative 1.
15908         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
15909         multi-level if_then_else RTX to set "type" attribute.
15910         <default>: Handle alternative 2.
15911         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
15912         Use cond RTX instead of multi-level if_then_else RTX to set
15913         "type" attribute.
15914         <default>: Handle alternatives 2 and 4.
15915         (lea splitters): Update calls to ix86_lea_for_add_ok.
15916
15917         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
15918         argument.
15919         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
15920
15921 2010-08-18  Richard Guenther  <rguenther@suse.de>
15922
15923         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
15924         use operand helpers.
15925
15926 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
15927
15928         PR middle-end/45292
15929         * optabs.c (expand_bool_compare_and_swap): Expand pending
15930         pops before trying the optab.
15931
15932 2010-08-18  Yao Qi  <yao@codesourcery.com>
15933
15934         PR target/45094
15935         * config/arm/arm.c (output_move_double): Fix typo generating
15936         instructions ('ldr'->'str').
15937
15938 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15939
15940         PR rtl-optimization/42575
15941         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
15942         live ranges.
15943
15944 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15945
15946         * config/arm/arm-protos.h (arm_expand_sync): New.
15947         (arm_output_memory_barrier, arm_output_sync_insn): New.
15948         (arm_sync_loop_insns): New.
15949         * config/arm/arm.c (FL_ARCH7): New.
15950         (FL_FOR_ARCH7): Include FL_ARCH7.
15951         (arm_arch7): New.
15952         (arm_print_operand): Support %C markup.
15953         (arm_legitimize_sync_memory): New.
15954         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
15955         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
15956         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
15957         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
15958         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
15959         (arm_process_output_sync_insn, arm_output_sync_insn): New.
15960         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
15961         * config/arm/arm.h (struct arm_sync_generator): New.
15962         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
15963         (TARGET_HAVE_MEMORY_BARRIER): New.
15964         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
15965         * config/arm/arm.md: Include sync.md.
15966         (UNSPEC_MEMORY_BARRIER): New.
15967         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
15968         (VUNSPEC_SYNC_OP):New.
15969         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
15970         (sync_result, sync_memory, sync_required_value): New attributes.
15971         (sync_new_value, sync_t1, sync_t2): Likewise.
15972         (sync_release_barrier, sync_op): Likewise.
15973         (length): Add logic to length attribute defintion to call
15974         arm_sync_loop_insns when appropriate.
15975         * config/arm/sync.md: New file.
15976
15977 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15978
15979         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
15980         ENABLE_TREE_CHECKING.
15981         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
15982         and GCC >= 4.3.
15983
15984 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
15985
15986         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
15987         or optimizing for size, always avoid lea if possible.
15988
15989         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
15990
15991 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
15992
15993         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
15994         Dunmmy function with NULL return unless the target is
15995         OSX >= 10.6 (Darwin10).
15996
15997 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
15998
15999         * gcc.c (spec_function): Add remove-outfile.
16000         (remove_outfile_spec_function): New function.
16001         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
16002         * invoke.texi (replace-outfile): Document.
16003
16004 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
16005
16006         PR target/45296
16007         * reginfo.c (globalize_reg): Reject stack registers.
16008
16009 2010-08-17  Richard Guenther  <rguenther@suse.de>
16010
16011         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
16012         list of conditional equivalences.
16013         (free_all_edge_infos): Adjust.
16014         (record_equivalences_from_incoming_edge): Likewise.
16015         (record_cond): Likewise.
16016         (build_and_record_new_cond): Likewise.
16017         (record_conditions): Likewise.
16018         (dom_opt_leave_block): Likewise.
16019
16020 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
16021
16022         * doc/invoke.texi (ms-extension): Add documentation.
16023
16024 2010-08-17  Richard Guenther  <rguenther@suse.de>
16025
16026         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
16027
16028 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
16029
16030         PR c/40563
16031         * c-decl.c (diagnose_uninitialized_cst_member): New function.
16032         (finish_decl): Use it to issue a -Wc++-compat warning about
16033         uninitialized const field in struct or union.
16034
16035         (finish_struct): Use strip_array_types.
16036
16037 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
16038
16039         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
16040         functions.
16041         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
16042         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
16043         call block_nreverse here.
16044         (blocks_nreverse): Rename decl temporary to block.
16045
16046 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
16047
16048         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
16049         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
16050         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
16051         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
16052         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
16053         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
16054         thumb2_iorsi3): Delete.
16055         (orsi_notsi_si): No longer a named pattern.
16056         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
16057         * config/arm/predicates.md (shift_amount_operand): New.
16058         (mult_operator): New.
16059         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
16060         attr enabled): New.
16061         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
16062         arch matches t2.
16063         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
16064         (not_shiftsi_compare0): Likewise, renamed from
16065         arm_notsi_shiftsi_compare0.
16066         (not_shiftsi_compare0_scratch): Likweise, renamed from
16067         arm_notsi_shiftsi_compare0_scratch.
16068         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
16069         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
16070         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
16071         so that the register alternative is disabled when the shift_operator
16072         is MULT.  Use "M" as the constraint for constants.
16073         (arith_shiftsi splitter): Enable for TARGET_32BIT.
16074         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
16075         constraint for constants.
16076         (arith_shiftsi_compare0_scratch): Likewise.
16077         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
16078         Handle Thumb2 alternative.
16079
16080 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
16081
16082         * doc/options.texi (NoDriverArg): Document.
16083         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
16084         -MDX and -MMDX.
16085         * opt-functions.awk (switch_flags): Handle NoDriverArg.
16086         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
16087         marking for CL_NO_DRIVER_ARG options when in the driver.
16088         * opts.h (CL_NO_DRIVER_ARG): Define.
16089         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
16090         CL_COMMON): Update values.
16091
16092 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
16093
16094         * common.opt: Add driver options.
16095         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
16096         * doc/options.texi (Driver, RejectDriver): Document.
16097         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
16098         print_prog_name, print_multi_directory, print_sysroot,
16099         print_multi_os_directory, print_multi_lib,
16100         print_sysroot_headers_suffix, report_times, combine_flag,
16101         use_pipes, wrapper_string): Remove.
16102         (save_switch, driver_unknown_option_callback,
16103         driver_wrong_lang_callback, driver_post_handling_callback,
16104         driver_handle_option): New.
16105         (spec_lang, last_language_n_infiles): Make file-scope static
16106         instead of local to process_command.
16107         (process_command): Use decode_cmdline_options_to_array and
16108         read_cmdline_option for option processing.  Compute have_c in
16109         prescan of decoded options.
16110         * opt-functions.awk (switch_flags): Handle Driver and
16111         RejectDriver.
16112         (var_type, var_type_struct): Handle Separate options as generating
16113         const char * variables.
16114         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
16115         CL_TARGET to be passed by caller if required.
16116         (decode_cmdline_options_to_array): Update comment.
16117         * opts.c (complain_wrong_lang): Handle options only valid for the
16118         driver.
16119         (decode_options): Update call to decode_cmdline_options_to_array.
16120         (print_filtered_help): Ignore driver-only options.
16121         (print_specific_help): Ignore CL_DRIVER.
16122         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
16123         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
16124         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
16125         Update values.
16126
16127 2010-08-16  Richard Guenther  <rguenther@suse.de>
16128
16129         * tree-cfg.c (verify_types_in_gimple_reference): Verify
16130         TARGET_MEM_REF a bit.
16131         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
16132         (create_mem_ref_raw): Always create TMR_OFFSET, store the
16133         alias pointer type via it.
16134         (copy_mem_ref_info): Adjust.
16135         (maybe_fold_tmr): Likewise.
16136         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
16137         (reference_alias_ptr_type): Likewise.
16138         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
16139         adjust documentation of TMR_OFFSET operand.
16140         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
16141         use the alias pointer type.
16142         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
16143         initialize mem attrs but the TMR itself.
16144         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
16145         similar to MEM_REF.
16146         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
16147         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
16148         (unshare_and_remove_ssa_names): Likewise.
16149         (copy_ref_info): Adjust.
16150         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
16151         TARGET_MEM_REF case.
16152         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
16153         at TMR_ORIGINAL.
16154         * tree.h (TMR_ORIGINAL): Remove.
16155         * gimple.c (get_base_address): For TARGET_MEM_REF with a
16156         symbol return that.
16157         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
16158         with a symbol.
16159         (get_addr_base_and_unit_offset): Likewise.
16160         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
16161         TARGET_MEM_REFs.
16162         (indirect_ref_may_alias_decl_p): Likewise.
16163         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
16164
16165 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
16166
16167         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
16168         with GCC version 4.6, the default setting (when not optimizing
16169         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
16170         been changed to -fomit-frame-pointer.
16171
16172 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
16173
16174         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
16175         Darwin10.  Do not link libgcc.a for Darwin >= 9.
16176
16177 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
16178
16179         * doc/invoke.texi (Warning Options): Fix terminology and markup
16180         in the description of how unknown warning options are handled.
16181
16182 2010-08-15  Ira Rosen  <irar@il.ibm.com>
16183
16184         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
16185         in basic blocks.
16186         (vect_supportable_dr_alignment): Check alignment for basic blocks.
16187         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
16188         data references.
16189         (vect_bb_vectorization_profitable_p): New function.
16190         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
16191         check if it's worthwhile to vectorize the basic block.
16192
16193 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
16194
16195         * reload.h (register_move_cost, memory_move_secondary_cost,
16196         secondary_reload_class): Adjust prototype.
16197         * rtl.h (reg_class_subset_p): Adjust prototype.
16198         * reload.c (secondary_reload_class): Change arguments type from
16199         enum reg_class to reg_class_t. Change result type to reg_class_t.
16200         * reginfo.c (register_move_cost, reg_class_subset_p): Change
16201         arguments type from enum reg_class to reg_class_t.
16202         (memory_move_secondary_cost): Change arguments type from
16203         enum reg_class to reg_class_t. Change type of saved_flags to
16204         reg_class_t.
16205
16206         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16207         Remove macros.
16208         (mips_cost): Remove.
16209         (struct mips_rtx_cost_data): Moved to mips.c.
16210         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
16211         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
16212         (mips_cost): Make static.
16213         (mips_canonicalize_move_class): Change argument type to reg_class_t.
16214         Change result type to reg_class_t.
16215         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
16216         type from enum reg_class to reg_class_t.
16217         (mips_register_move_cost): Make static. Change arguments
16218         type from enum reg_class to reg_class_t.
16219         (mips_memory_move_cost): New function.
16220         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16221
16222 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
16223
16224         PR rtl-optimization/43358
16225         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
16226         of a single hard register, using simplify_subreg_regno to decide
16227         what that register should be.
16228
16229 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
16230
16231         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
16232         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
16233         (loongson_pmull<V_suffix>): Rename to...
16234         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
16235
16236 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
16237
16238         * configure.ac: Enable -fomit-frame-pointer on darwin
16239         which support dwarf2.
16240         * config/i386/i386.c (override_options): Same.
16241
16242 2010-08-13  Jie Zhang  <jie@codesourcery.com>
16243
16244         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
16245
16246 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
16247
16248         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
16249         -MMD.
16250
16251 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
16252
16253         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
16254         up dot_prod pattern searching if a stmt is outside the loop.
16255
16256 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
16257             Uros Bizjak  <ubizjak@gmail.com>
16258
16259         * config.gcc: Handle --enable-frame-pointer.
16260
16261         * configure.ac: Add --enable-frame-pointer.
16262         * configure: Regenerated.
16263
16264         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
16265         (override_options): If not configured with --enable-frame-pointer,
16266         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
16267         optimizing for size), -fasynchronous-unwind-tables and
16268         -maccumulate-outgoing-args by default.
16269
16270 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
16271
16272         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
16273
16274         PR middle-end/45262
16275         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
16276         -a overflows.  Normalize the range.
16277
16278 2010-08-12  Richard Guenther  <rguenther@suse.de>
16279
16280         PR tree-optimization/45232
16281         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
16282         for types with undefined overflow.
16283         (reassociate_bb): Allow re-associating of bit and min/max
16284         operations for types with undefined overflow.
16285         * tree-ssa-forwprop.c (associate_plusminus): New function.
16286         (tree_ssa_forward_propagate_single_use_vars): Call it.
16287
16288 2010-08-12  Richard Guenther  <rguenther@suse.de>
16289
16290         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
16291         * tree-ssa-alias.c (get_ptr_info): Move ...
16292         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
16293         align and misalign fields conservatively.
16294         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
16295         derive alignment information.
16296         (evaluate_stmt): Derive alignment information from memory
16297         allocation functions.
16298         * tree.h (get_pointer_alignment): Make unsigned.
16299         * builtins.c (get_object_alignment): Use alignment information we
16300         have computed for pointers.
16301         (get_pointer_alignment): Likewise.  Make conservative, return
16302         and unsigned value.
16303         (expand_builtin_strlen): Adjust.
16304         (expand_builtin_memcmp): Likewise.
16305         (expand_builtin_strcmp): Likewise.
16306         (expand_builtin_strncmp): Likewise.
16307         (get_builtin_sync_mem): Use at least mode alignment.
16308         (fold_builtin_memset): Adjust.
16309         (fold_builtin_memory_op): Likewise.
16310         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
16311         information also dump pointer alignment knowledge.
16312         (dump_gimple_stmt): Likewise.
16313
16314 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
16315
16316         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
16317         (EMPTY_FIELD_BOUNDARY): Remove.
16318         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
16319
16320 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
16321
16322         PR debug/45259
16323         * caller-save.c (save_call_clobbered_regs): Only swap notes with
16324         DEBUG_INSNs if n_regs_saved.
16325
16326 2010-08-12  Wei Guozhi  <carrot@google.com>
16327
16328         PR target/44999
16329         * config/arm/arm.md (andsi3): Change to zero extension if possible.
16330         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
16331
16332 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
16333
16334         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
16335
16336         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
16337
16338 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16339
16340         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
16341         the case removed in the previous patch, when the only phi argument
16342         is defined in the same loop as the phi node itself.  Handle it
16343         separately from the invariant case by both propagating it outside
16344         the region and replacing the phi node with an assign.
16345
16346 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16347
16348         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
16349         constant phi nodes with one argument are is_gimple_min_invariant
16350         and SSA_NAME_IS_DEFAULT_DEF.
16351
16352 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16353
16354         * graphite-cloog-util.c (oppose_constraint):
16355         Extend loop counter's value range (CLOOG_ORG).
16356         (cloog_matrix_to_ppl_constraint): Same.
16357         (new_Constraint_System_from_Cloog_matrix): Same.
16358         * graphite-cloog-compat.h (matrix_num_type): New.
16359
16360 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16361
16362         * graphite.c (graphite_initialize): Do not initialize
16363         CLooG and initialize the Parma Polyhedra Library
16364         manually when using CLOOG_ORG.
16365         (graphite_finalize): Do not finalize CLooG and finalize
16366         the Parma Polyhedra Library manually when using CLOOG_ORG.
16367         * graphite-cloog-compat.h (cloog_initialize): Hide function
16368         when using CLOOG_ORG.
16369         (cloog_finalize): Same.
16370
16371 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16372
16373         * graphite-clast-to-gimple.c (free_scattering): Change
16374         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
16375         (CLOOG_ORG).
16376         (build_cloog_prog): Same.
16377         * graphite-cloog-compat.h (cloog_domain): Removed.
16378         (cloog_scattering): New.
16379         (cloog_set_domain): Removed.
16380         (cloog_set_scattering): New.
16381         (cloog_next_domain): Removed.
16382         (cloog_next_scattering): New.
16383         (cloog_set_next_domain): Removed.
16384         (cloog_set_next_scattering): New.
16385         (CloogScatteringList): New.
16386         (CloogScattering): New.
16387         (cloog_scattering_free): New.
16388         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
16389         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
16390         New.
16391
16392 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16393
16394         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
16395         CloogState.
16396         (set_cloog_options): Same.
16397         (print_clast_stmt): Same.
16398         (scop_to_clast): Same.
16399         (print_generated_program): Same.
16400         (gloog): Same.
16401         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
16402         (scop_to_clast): Extend with CloogState.
16403         * graphite-cloog-util.c: Include graphite-cloog-compat.h
16404         (new_Cloog_Domain_from_ppl_Polyhedron):
16405         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
16406         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
16407         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16408         * graphite-cloog-util.h (build_cloog_prog): Same.
16409         * graphite-cloog-copat.h (build_cloog_prog): New.
16410         (CloogState): New.
16411         (cloog_state_malloc): New.
16412         (cloog_state_free): New.
16413         (cloog_loop_malloc): New.
16414         (cloog_options_malloc): New.
16415         (cloog_statement_alloc): New.
16416         (cloog_domain_from_cloog_matrix): New.
16417         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
16418         (new_Cloog_Domain_from_ppl_Polyhedron): New.
16419
16420 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16421
16422         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
16423         type of NAME now depends on used CLooG version.
16424         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
16425         (gcc_type_for_clast_expr): Same.
16426         (print_clast_stmt): Replace pprint with clast_pprint.
16427         * graphite-cloog-compat.h: Provide compatibility macros for
16428         CLooG Legacy.
16429         (clast_name_p): New.
16430         (clast_expr_term): New.
16431         (clast_expr_red): New.
16432         (clast_expr_bin): New.
16433         (clast_pprint): New.
16434
16435 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16436
16437         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
16438         compatible to newer CLooG releases (CLOOG_ORG).
16439         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
16440         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
16441         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
16442         (build_cloog_prog) : New.
16443         (cloog_program_extract_scalars): New.
16444         (cloog_program_scatter): New.
16445
16446 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16447
16448         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
16449         conditionally (CLOOG_ORG).
16450         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
16451         (cloog_statement_usr): New.
16452         (cloog_domain): Same.
16453         (cloog_set_domain): Same.
16454         (cloog_next_domain): Same.
16455         (cloog_set_next_domain): Same.
16456         (cloog_program_nb_scattdims): Same.
16457         (cloog_program_set_nb_scattdims): Same.
16458         (cloog_program_names): Same.
16459         (cloog_program_set_names): Same.
16460         (cloog_program_set_context): Same.
16461         (cloog_program_set_loop): Same.
16462         (cloog_program_blocklist): Same.
16463         (cloog_program_set_blocklist): Same.
16464         (cloog_program_scaldims): Same.
16465         (cloog_program_set_scaldims): Same.
16466         (cloog_names_nb_parameters): Same.
16467         (cloog_names_set_nb_parameters): Same.
16468         (cloog_names_parameters): Same.
16469         (cloog_names_set_parameters): Same.
16470         (cloog_names_set_nb_iterators): Same.
16471         (cloog_names_set_iterators): Same.
16472         (cloog_names_set_nb_scattering): Same.
16473         (cloog_names_set_scattering): Same.
16474         (cloog_statement_set_usr): Same.
16475         (cloog_loop_set_next): Same.
16476         (cloog_loop_set_domain): Same.
16477         (cloog_loop_set_block): Same.
16478         (cloog_block_list_next): Same.
16479         (cloog_block_list_set_next):
16480         (cloog_block_list_set_block): Same.
16481
16482 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16483
16484         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
16485         a bool.
16486         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
16487         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
16488         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
16489         when something has been changed.
16490         (rewrite_commutative_reductions_out_of_ssa): Same.
16491
16492 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16493
16494         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
16495         handle the case when def is in the sese region.
16496         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
16497         for invariant expressions.
16498         (rewrite_cross_bb_phi_deps): Removed.
16499         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
16500         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
16501         rewrite_cross_bb_phi_deps.
16502
16503 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16504
16505         * graphite-sese-to-poly.c
16506         (rewrite_commutative_reductions_out_of_ssa_loop): Call
16507         scev_analyzable_p only on is_gimple_reg
16508
16509 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16510
16511         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
16512         (rewrite_close_phi_out_of_ssa): Propagate constant values or
16513         parametric expressions outside the scop region.
16514         (rewrite_cross_bb_scalar_deps): Same.
16515         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
16516
16517 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16518
16519         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
16520         SSA_NAME_DEF_STMT only on SSA_NAMEs.
16521
16522 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16523
16524         * tree-scalar-evolution.c (instantiate_scev_name): Do not
16525         instantiate default definitions.
16526
16527 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
16528             Sebastian Pop  <sebastian.pop@amd.com>
16529
16530         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
16531         (loop_exits_from_bb_p): New.
16532         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
16533         (loop_exits_from_bb_p): Declared.
16534         * graphite-scop-detection.c (scopdet_basic_block_info): Call
16535         loop_exits_to_bb_p.
16536
16537 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16538
16539         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
16540         extra parameter for the region.  Call scev_analyzable_p.
16541         (rewrite_reductions_out_of_ssa): Update call to
16542         rewrite_close_phi_out_of_ssa.
16543         (rewrite_cross_bb_phi_deps): Same.
16544         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
16545         parameter for the region.  Call scev_analyzable_p.
16546         (rewrite_commutative_reductions_out_of_ssa): Update call to
16547         rewrite_commutative_reductions_out_of_ssa_loop.
16548
16549 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16550
16551         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
16552
16553 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16554
16555         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
16556         SSA scalar phi nodes that can be scev_analyzable_p.
16557
16558 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16559
16560         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
16561         handle SSA_NAME_IS_DEFAULT_DEF.
16562
16563 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16564
16565         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
16566
16567 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16568
16569         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
16570         case non close-phi nodes with one argument.
16571
16572 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16573
16574         * sese.h (scev_analyzable_p): Scevs could be expressions without
16575         chrecs and still be scev_analyzable_p.
16576
16577 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16578
16579         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16580
16581 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16582
16583         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
16584         * cfgloop.h (struct loop): Remove single_iv field.
16585         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
16586         (scop_canonicalize_loops): Removed.
16587         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
16588         over all the loop phi nodes in loop->header.
16589         (build_poly_scop): Remove use of scop_canonicalize_loops.
16590
16591 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16592
16593         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
16594         handle GIMPLE_CALL.
16595
16596 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16597
16598         * tree-chrec.c (chrec_apply): Should only apply to the specified
16599         variable.  Also handle multivariate chains of recurrences that
16600         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
16601
16602 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16603
16604         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
16605         (debug_clast_name_indexes_1): Removed.
16606         (debug_clast_name_indexes): Removed.
16607         (pbb_to_depth_to_oldiv): Removed.
16608         (build_iv_mapping): Replace the use of rename_map with iv_map.
16609         (translate_clast_user): Remove uses of rename_map.  Allocate and
16610         free iv_map.
16611         (translate_clast_for_loop): Remove uses of rename_map.
16612         (translate_clast_for): Same.
16613         (translate_clast_guard): Same.
16614         (translate_clast): Same.
16615         (gloog): Same.
16616         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
16617         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
16618         * sese.c (set_rename): Now static.
16619         (rename_variables_in_stmt): Removed.
16620         (rename_uses): New.
16621         (is_parameter): Removed.
16622         (is_iv): Removed.
16623         (expand_scalar_variables_call): Removed.
16624         (expand_scalar_variables_ssa_name): Removed.
16625         (expand_scalar_variables_expr): Removed.
16626         (expand_scalar_variables_stmt): Removed.
16627         (expand_scalar_variables): Removed.
16628         (rename_variables): Removed.
16629         (remove_condition): Removed.
16630         (get_true_edge_from_guard_bb): Removed.
16631         (get_false_edge_from_guard_bb): Removed.
16632         (struct igp): Removed.
16633         (default_before_guard): Removed.
16634         (convert_for_phi_arg): Removed.
16635         (add_guard_exit_phis): Removed.
16636         (insert_guard_phis): Removed.
16637         (graphite_copy_stmts_from_block): Now also uses iv_map and a
16638         region.  Do not copy conditions.  Do not copy induction variables.
16639         Call rename_uses.
16640         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
16641         the translated statement.  Use the iv_map for the induction
16642         variable renaming.
16643         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
16644         (set_rename): Removed declaration.
16645         (scev_analyzable_p): ...here.
16646         * tree-chrec.c (chrec_apply_map): New.
16647         * tree-chrec.h (chrec_apply_map): Declared.
16648
16649 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16650
16651         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
16652         insert_loop_close_phis.
16653         * sese.c (name_defined_in_loop_p): Removed.
16654         (expr_defined_in_loop_p): Removed.
16655         (alive_after_loop): Removed.
16656         (close_phi_not_yet_inserted_p): Removed.
16657         (struct alep): Removed.
16658         (add_loop_exit_phis): Removed.
16659         (insert_loop_close_phis): Removed.
16660
16661 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16662
16663         * graphite-cloog-util.c
16664         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
16665         * graphite-poly.c
16666         (psct_scattering_dim_for_loop_depth): Same.
16667
16668 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16669
16670         * graphite-cloog-util.h: Added cloog.h.
16671         * graphite-blocking.c: Removed cloog.h.
16672         * graphite-dependences.c: Same.
16673         * graphite-interchange.c: Same.
16674         * graphite-poly.c: Same.
16675         * graphite-ppl.c: Same.
16676         * graphite-scop-detection.c: Same.
16677         * graphite-sese-to-poly.c:
16678         Removed cloog.h.
16679         Removed graphite-clast-to-gimple.h.
16680         (check_poly_representation): Removed (unused).
16681         * graphite-sese-to-poly.h
16682         (check_poly_representation): Removed (unused).
16683
16684 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16685
16686         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
16687         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
16688         (graphite-cloog-util.o): New.
16689         (graphite-ppl.o): Added graphite-cloog-util.h.
16690         * graphite-clast-to-gimple.c:
16691         Added graphite-cloog-util.h to include statements.
16692         * graphite-cloog-util.c: New.
16693         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
16694         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16695         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16696         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16697         (insert_constraint_into_matrix): Same.
16698         (ppl_Constrain_System_number_of_constraints): Same.
16699         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16700         (oppose_constraint): Same.
16701         (cloog_matrix_to_ppl_constraint): Same.
16702         (new_Constraint_System_from_Cloog_Matrix): Same.
16703         * graphite-cloog-util.h: New.
16704         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
16705         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16706         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16707         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16708         (insert_constraint_into_matrix): Same.
16709         * graphite-ppl.c:
16710         Added graphite-cloog-util.h to include statements.
16711         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
16712         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16713         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16714         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16715         (insert_constraint_into_matrix): Same.
16716         (ppl_Constrain_System_number_of_constraints): Same.
16717         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16718         (oppose_constraint): Same.
16719         (cloog_matrix_to_ppl_constraint): Same.
16720         (new_Constraint_System_from_Cloog_Matrix): Same.
16721         * graphite-ppl.h:
16722         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
16723         graphite-cloog-util.h.
16724         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16725         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16726         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16727         (insert_constraint_into_matrix): Same.
16728
16729 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16730
16731         * graphite-clast-to-gimple.c
16732         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
16733         (precision_for_interval): Same.
16734         (gcc_type_for_interval): Same.
16735         (compute_type_for_level): Same.
16736         * graphite-interchange.c
16737         (lst_interchange_profitable_p): Same.
16738         * graphite-poly.c
16739         (psct_scattering_dim_for_loop_depth): Same.
16740         * graphite-ppl.c
16741         (ppl_max_for_le_pointset): Same.
16742         (ppl_min_for_le_pointset): Same.
16743
16744 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16745
16746         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
16747         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
16748
16749 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16750
16751         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
16752         rewrite_close_phi_out_of_ssa.
16753
16754 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16755
16756         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
16757
16758 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16759
16760         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
16761         rename_map.
16762         * sese.c (debug_rename_map): Same.
16763         (get_rename): Same.
16764         (set_rename): Same.
16765         (rename_variables_in_stmt): Same.
16766         (expand_scalar_variables_call): Same.
16767         (expand_scalar_variables_ssa_name): Same.
16768         (expand_scalar_variables_expr): Same.
16769         (expand_scalar_variables_stmt): Same.
16770         (expand_scalar_variables): Same.
16771         (rename_variables): Same.
16772         (graphite_copy_stmts_from_block): Same.
16773         (copy_bb_and_scalar_dependences): Same.
16774
16775 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16776
16777         * graphite-clast-to-gimple.c (copy_renames): Removed.
16778         (translate_clast_for): Do not call copy_renames.
16779         (translate_clast_guard): Same.
16780
16781 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16782
16783         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
16784         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
16785         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
16786         before rewrite_cross_bb_scalar_deps.
16787
16788 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16789
16790         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
16791         Early return in when flag_associative_math is not set.
16792
16793 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16794
16795         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
16796         of SSA copies on edges except for loop->latch.
16797
16798 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16799
16800         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
16801         Split out of rewrite_reductions_out_of_ssa.
16802         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
16803         Declared.
16804         * graphite.c (graphite_transform_loops): Call it.
16805
16806 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16807
16808         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
16809
16810 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
16811
16812         * dbgcnt.def (graphite_scop): New counter.
16813         * graphite.c: Include dbgcnt.h.
16814         (graphite_transform_loops): Use new counter to limit transformations.
16815         * Makefile.in (graphite.o): Depend on DBGCNT_H.
16816
16817 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16818
16819         * passes.c (init_optimization_passes): Add pass_graphite.
16820         Schedule a pass_copy_prop before pass_graphite_transforms.
16821         * timevar.def (TV_GRAPHITE): Declared.
16822         * tree-pass.h (pass_graphite): Declared.
16823         * tree-ssa-loop.c (pass_graphite): New.
16824
16825 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16826
16827         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
16828         Remove calls to rename_nb_iterations and rename_sese_parameters.
16829         * graphite-clast-to-gimple.h (gloog): Update declaration.
16830         * graphite.c (graphite_transform_loops): Update call to gloog.
16831         * sese.c (rename_variables_in_expr): Removed.
16832         (rename_nb_iterations): Removed.
16833         (rename_sese_parameters): Removed.
16834         * sese.h (rename_nb_iterations): Removed.
16835         (rename_sese_parameters): Removed.
16836
16837 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16838
16839         * graphite-clast-to-gimple.c (gloog): Remove call to
16840         sese_adjust_liveout_phis.
16841         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
16842         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
16843         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
16844         rewrite_phi_out_of_ssa.
16845         * sese.c (get_vdef_before_sese): Removed.
16846         (sese_adjust_vphi): Removed.
16847         (sese_adjust_liveout_phis): Removed.
16848         * sese.h (sese_adjust_liveout_phis): Removed.
16849
16850 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16851
16852         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
16853         argument for the place after which to insert the out of SSA copy.
16854         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
16855         (rewrite_phi_out_of_ssa): Same.
16856         (rewrite_cross_bb_scalar_deps): Same.
16857         (insert_copyout): Removed.
16858         (insert_copyin): Removed.
16859         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
16860         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
16861         insert_copyin.
16862
16863 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16864
16865         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
16866         (rewrite_reductions_out_of_ssa): Same.
16867         (rewrite_commutative_reductions_out_of_ssa): Same.
16868         (build_poly_scop): Do not call these functions.
16869         * graphite-sese-to-poly.h (build_poly_scop): Declared.
16870         (rewrite_reductions_out_of_ssa): Declared.
16871         (rewrite_commutative_reductions_out_of_ssa): Declared.
16872         * graphite.c (graphite_transform_loops): Call on every scop
16873         rewrite_commutative_reductions_out_of_ssa before calling
16874         rewrite_reductions_out_of_ssa and build_scop_bbs.
16875
16876 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16877
16878         * graphite-dependences.c (dot_deps): Make system call to dotty run
16879         in background.
16880         (dot_deps_stmt): Same.
16881         * graphite-poly.c (dot_lst): Same.
16882
16883 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16884
16885         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
16886         phi_arg_in_outermost_loop.
16887         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
16888         (remove_invariant_phi): Same.
16889
16890 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
16891
16892         * target.def (output_addr_const_extra): New hook.
16893         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
16894         * doc/tm.texi: Regenerate.
16895         * targhooks.c (default_asm_output_addr_const_extra): New function.
16896         * targhooks.h (default_asm_output_addr_const_extra): Declare.
16897         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
16898         target hook.
16899
16900         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16901         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
16902         * config/i386/i386.h (output_addr_const_extra): Rename to...
16903         (i386_asm_output_addr_const_extra): ...this. Make static.
16904         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16905
16906 2010-08-11  Richard Henderson  <rth@redhat.com>
16907
16908         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
16909
16910 2010-08-11  Nick Clifton  <nickc@redhat.com>
16911
16912         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
16913         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
16914         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16915         stormy16-lib2-cmpsi.c.
16916
16917         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
16918         -O2.
16919
16920 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
16921
16922         * opts.h (struct cl_option_handler_func): Make handler take
16923         cl_decoded_option structure as parameter, not individual elements.
16924         (struct cl_option_handlers): Make callbacks take cl_decoded_option
16925         structure as parameter, not individual elements.
16926         (handle_option): Take cl_decoded_option structure as parameter,
16927         not individual elements.
16928         (handle_generated_option): Declare.
16929         * opts-common.c (handle_option): Take cl_decoded_option structure
16930         as parameter, not individual elements.  Update calls to callback
16931         and handler functions.
16932         (handle_generated_option): New.
16933         (read_cmdline_option): Update calls to callback functions and
16934         handle_option.
16935         * opts.c (common_handle_option, complain_wrong_lang,
16936         unknown_option_callback, post_handling_callback,
16937         lang_handle_option, target_handle_option): Take cl_decoded_option
16938         structure as parameter, not individual elements.
16939         (lang_handle_option, target_handle_option, common_handle_option):
16940         Assert option has at most one argument.
16941         (enable_warning_as_error): Call handle_generated_option instead of
16942         handle_option.  Do not pass -Werror argument as argument of
16943         generated option.
16944
16945 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16946
16947         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16948         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16949         (SUBWORD_BOOL_CAS): Likewise.
16950         (SUBWORD_SYNC_OP): Likewise.
16951         (SUBWORD_TEST_AND_SET): Likewise.
16952         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16953         (SUBWORD_SYNC_OP): Likewise.
16954         (OP_AND_FETCH_WORD): Likewise.
16955
16956 2010-08-10  Xinliang David Li  <davidxl@google.com>
16957
16958         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
16959         compute max/min offset in address.
16960
16961 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
16962
16963         * ira-live.c: Include sbitmap.h.
16964         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
16965         Compress live ranges even more.
16966
16967 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16968
16969         * coverage.c (ctr_labels): Delete.
16970
16971 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16972
16973         PR bootstrap/45177
16974         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
16975         test here from arm_gen_load_multiple_1.
16976         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
16977         multiple_operation_profitable_p.
16978
16979 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16980
16981         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
16982         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
16983
16984 2010-08-10  Richard Henderson  <rth@redhat.com>
16985
16986         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
16987         after saving registers.  Assert that SSE registers are only saved
16988         with a sufficiently aligned frame.
16989         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
16990         remove stack_realign_fp handling.
16991         (ix86_expand_prologue): Save int registers before stack_realign_fp,
16992         and do not mark the stack alignment as frame related.
16993         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
16994
16995         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
16996         saves when re-aligning the stack.
16997
16998 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16999
17000         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
17001         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
17002         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
17003
17004 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
17005
17006         * dwarf2out.c (struct die_struct): Move die_tag to the end.
17007
17008 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
17009
17010         * config/arm/iterators.md: New file.
17011         * config/arm/arm.md: Include iterators.md.
17012         (QHSI): Move to new file.
17013         (LTUGEU, cnb, optab, ior_xor): Likewise.
17014         * config/arm/iwmmxt.md (VMMX): Move to new file.
17015         (VSHFT, MMX_char): Likewise.
17016         * config/arm/neon.md (VD): Move to new file.
17017         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
17018         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
17019         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
17020         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
17021         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
17022         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
17023         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
17024         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
17025         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
17026         (Is_d_reg, V_mode_nunits): Likewise.
17027         * config/arm/vec-common.md (VALL): Move to new file.
17028         (VALLW, VINT, VINTW): Likewise.
17029
17030 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
17031
17032         PR middle-end/45182
17033         * combine.c (make_compound_operation): Don't try to convert
17034         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
17035
17036 2010-08-10  Richard Guenther  <rguenther@suse.de>
17037
17038         * tree.h (get_object_alignment): Adjust prototype.
17039         * builtins.c (get_object_alignment): Return unsigned int,
17040         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
17041         and TARGET_MEM_REF properly.
17042         (get_pointer_alignment): Adjust.
17043         * emit-rtl.c (get_mem_align_offset): Adjust comment.
17044         (set_mem_attributes_minus_bitpos): Adjust.
17045         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
17046
17047 2010-08-10  Richard Guenther  <rguenther@suse.de>
17048
17049         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
17050         (copy_prop_visit_assignment): Simplify.
17051         (copy_prop_visit_stmt): Also visit assignments from
17052         constants.
17053         (copy_prop_visit_phi_node): Use operand_equal_p.
17054
17055 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
17056
17057         * ipa-split.c (find_split_points): Free stack.
17058
17059 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
17060
17061         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
17062         * tree.c (tree_node_kind): Delete corresponding entries.
17063
17064 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17065
17066         * alias.c (may_alias_p): Remove unused ret.
17067
17068 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
17069
17070         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
17071         alias_sets_conflict_p.
17072         (walk_mems_1): Moved from alias.c.
17073         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
17074         in alias.c.
17075         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
17076         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
17077         * alias.c (walk_mems_2): Moved to ddg.c.
17078         (walk_mems_1): Ditto.
17079         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
17080         to ddg.c.
17081         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
17082         disambiguation.
17083         *(may_alias_p): New function to check whether two memory expression
17084         may alias or not. Currently used in buidling inter-iteration memory
17085         dependence.
17086         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
17087         (insn_alias_sets_conflict_p): Removed
17088         *rtl.h (may_alias_p): New function prototype.
17089
17090 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
17091
17092         * tree.c (nreverse): Assert that we don't have a BLOCK.
17093
17094 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
17095
17096         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
17097         * config/arm/arm.c (arm_get_pcs_model): Likewise.
17098         * config/avr/avr.c (init_cumulative_args): Likewise.
17099         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17100         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
17101         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
17102         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
17103         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
17104         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17105         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
17106         * dwarf2out.c (gen_subprogram_die): Likewise.
17107         * function.c (allocate_struct_function): Likewise.
17108         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
17109         (deserves_ellipsis): Delete.
17110
17111 2010-08-09  Richard Guenther  <rguenther@suse.de>
17112
17113         * tree-ssa-copy.c (cached_last_copy_of): Remove.
17114         (valueize_val): New function.
17115         (get_last_copy_of): Remove.
17116         (set_copy_of_val): Simplify.
17117         (dump_copy_of): Likewise.
17118         (copy_prop_visit_cond_stmt): Use valueize_val.
17119         (copy_prop_visit_phi_node): Properly handle unvisited names.
17120         Drop code managing copy-of chains.
17121         (init_copy_prop): Adjust.
17122         (fini_copy_prop): Likewise.
17123         (execute_copy_prop): Remove obsolete comment.
17124
17125 2010-08-09  Richard Guenther  <rguenther@suse.de>
17126
17127         PR middle-end/44632
17128         * function.c (gimplify_parameters): Do not clear addressable
17129         bit of the original parameter.
17130
17131 2010-08-09  Richard Guenther  <rguenther@suse.de>
17132
17133         PR middle-end/45212
17134         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
17135         alignment from MEM_REF offset only if we took it from the
17136         base object.
17137
17138 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
17139
17140         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
17141
17142 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
17143
17144         * c-tree.h (build_arg_info): Declare.
17145         * c-decl.c (build_arg_info): Define.
17146         (get_parm_info): Call it.  Delete initialization code.
17147         * c-parser.c (c_parser_parms_declarator): Likewise.
17148         (c_parser_parms_list_declaractor): Likewise.
17149
17150 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
17151
17152         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
17153         (struct c_arg_info): Change type of tags field.
17154         * c-decl.c (grokdeclarator): Update for changed type of tags field.
17155         (get_parm_info): Likewise.
17156         (store_parm_decls_newstyle): Likewise.
17157
17158 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
17159
17160         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
17161         (branch_island_list): Delete.
17162         (branch_islands): Declare.
17163         (add_compiler_branch_island): Adjust for branch_islands instead of
17164         branch_island_list.
17165         (macho_branch_islands): Likewise.
17166         (no_previous_def): Likewise.
17167         (get_prev_label): Likewise.
17168
17169 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17170
17171         PR boehm-gc/34544
17172         * gthr-posix.h (__gthread_start): Delete.
17173         (__gthread_active_init): Use pthread_default_stacksize_np instead of
17174         pthread_create to determine if hpux pthreads are active.
17175         * gthr-posix95.h (__gthread_start): Delete.
17176         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
17177
17178 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
17179
17180         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
17181         _WIN64 not expanded.
17182
17183 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
17184             H.J. Lu  <hongjiu.lu@intel.com>
17185
17186         PR target/45213
17187         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
17188         to output 32bit SFmode immediate as 8 byte sign extended value.
17189
17190 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17191
17192         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17193         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17194         (SUBWORD_BOOL_CAS): Likewise.
17195         (SUBWORD_SYNC_OP): Likewise.
17196         (SUBWORD_TEST_AND_SET): Likewise.
17197         (FETCH_AND_OP_WORD): Parenthesise INF_OP
17198         (SUBWORD_SYNC_OP): Likewise.
17199         (OP_AND_FETCH_WORD): Likewise.
17200
17201 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17202
17203         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
17204         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
17205         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
17206         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
17207         generic part.
17208         (cortex_a9_sched_adjust_cost): New function.
17209         (xscale_sched_adjust_cost): New function.
17210         * config/arm/arm-protos.h (struct tune_params): New field
17211         sched_adjust_cost.
17212         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
17213
17214 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
17215
17216         PR target/44942
17217         * config/sparc/sparc.c (function_arg_advance): Always take into account
17218         the padding, if any.
17219
17220 2010-08-06  Richard Guenther  <rguenther@suse.de>
17221
17222         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
17223         (dump_lattice_value): Dump it.
17224         (get_default_value): Adjust.
17225         (get_constant_value): Likewise.
17226         (set_value_varying): Likewise.
17227         (set_lattice_value): Make sure to not go up the lattice
17228         with bitwise constant values.
17229         (get_value_for_expr): Handle ADDR_EXPRs.
17230         (value_to_double_int): New function.
17231         (get_value_from_alignment): Likewise.
17232         (do_dbg_cnt): Adjust.
17233         (ccp_lattice_meet): Handle partially constant values.
17234         (bit_value_unop_1): New function.
17235         (bit_value_binop_1): Likewise.
17236         (bit_value_unop): Likewise.
17237         (bit_value_binop): Likewise.
17238         (evaluate_stmt): Track partially constant values if
17239         flag_tree_bit_ccp is set.
17240         (ccp_fold_stmt): Dump if we folded a predicate.
17241         (ccp_visit_stmt): Adjust.
17242         * common.opt (ftree-bit-ccp): New flag.
17243         * doc/invoke.texi (ftree-bit-ccp): Document.
17244         * opts.c (decode_options): Enable bit-CCP at -O1.
17245
17246 2010-08-06  Alan Modra  <amodra@gmail.com>
17247
17248         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
17249         and -mrelocatable-lib description.
17250
17251 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
17252
17253         From Martin Thuresson  <martint@google.com>
17254         * postreload.c (reload_cse_simplify_operands): Use
17255         SET_REGNO_RAW instead of SET_REGNO.
17256         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
17257         SET_REGNO.
17258         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
17259         instead of SET_REGNO.
17260         * rtl.h (SET_REGNO_RAW): New macro.
17261
17262 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
17263
17264         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
17265         computations.  Fix formatting issues.
17266         (num_sign_bit_copies1): Likewise.
17267         (canonicalize_condition): Likewise.
17268
17269 2010-08-05  Richard Henderson  <rth@redhat.com>
17270
17271         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
17272         (floor_log2): Use clz_hwi.
17273         (exact_log2): Use ctz_hwi.
17274         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
17275         * builtins.c (fold_builtin_bitop): Use them.
17276         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17277         * combine.c (get_pos_from_mask): Use ctz_hwi.
17278         * double-int.c (double_int_ctz): Likewise.
17279         * explow.c (force_reg): Likewise.
17280         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
17281
17282 2010-08-05  Richard Henderson  <rth@redhat.com>
17283
17284         PR target/45189
17285         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
17286         the alignment constant is properly sign-extended.
17287
17288 2010-08-05  Richard Guenther  <rguenther@suse.de>
17289
17290         * expr.c (store_expr): Use emit_block_move only if both
17291         source and target are MEMs.  Use store_bit_field if only
17292         the target is a MEM.
17293
17294 2010-08-05  Richard Henderson  <rth@redhat.com>
17295
17296         PR debug/45188
17297         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
17298         (INCOMING_RETURN_ADDR_RTX): Likewise.
17299         (dwarf2out_do_frame): Remove conditional compilation.
17300         (dwarf2out_frame_init): Likewise.
17301
17302 2010-08-05  Nicolas Setton  <setton@adacore.com>
17303
17304         * gcov.c (flag_display_progress): New static variable.
17305         (main): Display progress info on standard output if requested.
17306         (options): Add -d/--display-progress.
17307         (print_usage): Print them.
17308         (process_args): Handle them.
17309         * doc/gcov.texi: Document them.
17310
17311 2010-08-05  Martin Jambor  <mjambor@suse.cz>
17312
17313         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
17314         (ipcp_insert_stage): Redirect only edges not flagged with
17315         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
17316         discovered constants.
17317
17318 2010-08-05  Martin Jambor  <mjambor@suse.cz>
17319
17320         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
17321         (struct ipa_param_descriptor): New fields types and
17322         cannot_devirtualize.
17323         (ipa_param_cannot_devirtualize_p): New function.
17324         (ipa_param_types_vec_empty): Likewise.
17325         (ipa_make_edge_direct_to_target): Declare.
17326         * ipa-cp.c: Fixed first stage driver name in initial comment,
17327         described devirtualization there too.
17328         (ipcp_analyze_node): Call ipa_analyze_params_uses.
17329         (ipcp_print_all_lattices): Print devirtualization info.
17330         (ipa_set_param_cannot_devirtualize): New function.
17331         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
17332         lattice to BOTTOM.
17333         (ipcp_init_stage): Merged into...
17334         (ipcp_generate_summary): ...its caller.
17335         (ipcp_change_tops_to_bottom): Also process type lists.
17336         (ipcp_add_param_type): New function.
17337         (ipcp_copy_types): Likewise.
17338         (ipcp_propagate_types): Likewise.
17339         (ipcp_propagate_stage): Also propagate types.
17340         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
17341         Also return true if propagated types require it.
17342         (ipcp_update_callgraph): Dump redirection info.
17343         (ipcp_process_devirtualization_opportunities): New function.
17344         (ipcp_const_param_count): Include known type information.
17345         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
17346         on new node.  Fixed formatting.
17347         * ipa-prop.c (make_edge_direct_to_target): Renamed to
17348         ipa_make_edge_direct_to_target and changed all callers.  Made
17349         externally visible.
17350         (ipa_node_duplication_hook): Duplicate types vector.
17351         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
17352         redirect outgoing calls for which we can't get a decl from the
17353         statement.  Check that we can get a decl from the call statement.
17354         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
17355         ipa_analyze_params_uses only when ipa-cp is disabled.
17356         * tree-inline.c (get_indirect_callee_fndecl): Removed.
17357         (expand_call_inline): Do not call get_indirect_callee_fndecl.
17358         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
17359         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
17360
17361 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
17362
17363         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
17364         temporary. Emit move from temporary to accum, so REG_EQUAL note will
17365         be attached to this insn in correct mode.
17366
17367 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
17368
17369         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
17370         using REGNO of base_reg directly.
17371
17372 2010-08-05  Jie Zhang  <jie@codesourcery.com>
17373
17374         PR tree-optimization/45144
17375         * tree-sra.c (type_consists_of_records_p): Return false
17376         if the record contains bit-field.
17377
17378 2010-08-04  Richard Henderson  <rth@redhat.com>
17379
17380         * config/i386/i386.c (struct ix86_frame): Remove padding and
17381         to_allocate members.
17382         (ix86_compute_frame_layout): Don't store them.
17383         (ix86_can_use_return_insn_p): Use a more direct and more obviously
17384         correct condition for the position of the stack pointer.
17385         (ix86_expand_prologue): Compute remaining stack allocation based
17386         on the ultimate stack pointer offset.
17387         (ix86_expand_epilogue): Use more obvious expressions testing for
17388         the stack pointer already pointing to the saved registers.
17389
17390         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
17391         duplication deconstructing the frame pointer.  Simplify
17392         deallocation of the local stack frame.
17393
17394         * reg-notes.def (CFA_EXPRESSION): New.
17395         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17396         (dwarf2out_frame_debug_cfa_expression): New.
17397         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
17398
17399         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
17400         * config/i386/i386.c (ix86_expand_prologue): Set it.
17401         (ix86_expand_epilogue): Clear it.
17402         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
17403         context, add REG_CFA_EXPRESSION notes.
17404
17405         * config/i386/i386.h (struct machine_frame_state): Rename from
17406         machine_cfa_state.  Add members tracking SP and FP regardless
17407         of the current CFA register.
17408         (ix86_cfa_state): Remove.
17409         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
17410         and sse_reg_save_offset members.
17411         (ix86_compute_frame_layout): Set them.
17412         (gen_push): Increment sp_offset too.
17413         (choose_baseaddr_len, choose_baseaddr): New.
17414         (ix86_emit_save_reg_using_mov): New.
17415         (ix86_emit_save_regs_using_mov): Use it.
17416         (ix86_emit_save_sse_regs_using_mov): Likewise.
17417         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
17418         compare vs the saved red_zone_offset.
17419         (pro_epilogue_adjust_stack): Adjust sp_offset.
17420         (ix86_adjust_stack_and_probe): Likewise.
17421         (ix86_expand_prologue): Set up, use, and validate the new
17422         frame_state_info members.  Use gen_frame_mem.
17423         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
17424         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
17425         new frame_state_info members.
17426         (ix86_emit_leave): Likewise.
17427         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
17428         out-of-range stack pointer offsets here.
17429         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17430         (ix86_expand_epilogue): Use and validate the new frame_state_info
17431         members.  Break up and simplify the logic selecting the
17432         restore_regs_via_mov code path.  Ensure that there will be no
17433         out-of-range stack pointer offsets.
17434
17435         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
17436
17437         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
17438         argument name to reflect the expected tree; fix indentation.
17439         (ix86_asm_output_function_label): Output the entire 32-bit
17440         ms_hook here as bytes ...
17441         (ix86_expand_prologue): ... not here as insns.  Attach the
17442         unwind info for the ms_hook to a blockage insn.
17443         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
17444         (ix86_ms_bitfield_layout_p): Fix indentation.
17445         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
17446
17447         * config/i386/i386.c (ix86_using_red_zone): New.
17448         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
17449         ix86_expand_prologue, ix86_force_to_memory): Use it.
17450
17451         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
17452         saving the int registers.
17453
17454         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
17455         and DWARF2_UNWIND_INFO conditional compilation.
17456
17457 2010-08-04  Richard Henderson  <rth@redhat.com>
17458
17459         PR debug/45171
17460         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
17461         an is_naming_typedef_decl.
17462
17463 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
17464
17465         PR rtl-optimization/45162
17466         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
17467         * dce.c (word_dce_process_block): Likewise.
17468
17469 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
17470
17471         PR target/44583
17472         * config/ia64/constraints.md (Z): New.
17473         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
17474         (xfreg_or_signed_fp01_operand): New.
17475         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
17476         with fr_reg_or_signed_fp01_operand and constraint G with Z.
17477         (subsf3): Ditto.
17478         (*maddsf4): Ditto.
17479         (*msubsf4): Ditto.
17480         (adddf3): Ditto.
17481         (adddf3_trunc): Ditto.
17482         (subdf3): Ditto.
17483         (*subdf3_trunc): Ditto.
17484         (*madddf4): Ditto.
17485         (*madddf4_trunc): Ditto.
17486         (*msubdf4): Ditto.
17487         (*msubdf4_trunc): Ditto.
17488         (addxf3): Replace xfreg_or_fp01_operand with
17489         xfreg_or_signed_fp01_operand and constraint G with Z.
17490         (*addxf3_truncsf): Ditto.
17491         (*addxf3_truncdf): Ditto.
17492         (subxf3): Ditto.
17493         (*subxf3_truncsf): Ditto.
17494         (*subxf3_truncdf): Ditto.
17495         (*maddxf4): Ditto.
17496         (*maddxf4_truncsf): Ditto.
17497         (*maddxf4_truncdf): Ditto.
17498         (*msubxf4): Ditto.
17499         (*msubxf4_truncsf): Ditto.
17500         (*msubxf4_truncdf): Ditto.
17501
17502 2010-08-04  Richard Guenther  <rguenther@suse.de>
17503
17504         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
17505         if either alias-set is zero.
17506
17507 2010-08-04  Richard Guenther  <rguenther@suse.de>
17508
17509         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
17510         * tree-ssa-ccp.c: ... here.
17511         * tree-ssa-copy.c: ... and here.
17512         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
17513         value_range_t): Move ...
17514         * tree-vrp.c: ... here.
17515         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
17516         (substitute_and_fold): Adjust prototype.
17517         * tree-ssa-propagate.c (replace_uses_in): Adjust.
17518         (replace_phi_args_in): Likewise.
17519         (substitute_and_fold): Take callback to query lattice instead
17520         of pointer to lattice.  Replace SSA name defs with lattice
17521         values first.
17522         * tree-ssa-ccp.c (ccp_finalize): Adjust.
17523         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
17524         (get_value): New function.
17525         (fini_copy_prop): Adjust.
17526         * tree-vrp.c (vrp_finalize): Adjust.
17527
17528 2010-08-04  Richard Guenther  <rguenther@suse.de>
17529
17530         PR middle-end/45176
17531         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
17532         points-to set for original MEM_REF.
17533
17534 2010-08-04  Richard Guenther  <rguenther@suse.de>
17535
17536         * tree-ssa-ccp.c (get_constant_value): New function.
17537         (get_rhs_assign_op_for_ccp): Remove.
17538         (valueize_op): New function.
17539         (ccp_fold): Use get_constant_value and valueize_op.
17540         (fold_const_aggregate_ref): Likewise.
17541         (ccp_fold_stmt): Likewise.
17542         (visit_assignment): Simplify.
17543
17544 2010-08-04  Richard Guenther  <rguenther@suse.de>
17545
17546         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
17547         * double-int.h (double_int_ctz): Declare.
17548         * double-int.c (double_int_ctz): New function.
17549
17550 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
17551
17552         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
17553         Define.
17554         picochip_expand_movmemhi : Expand movmem pattern.
17555         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
17556         Declare.
17557         * config/picochip/picochip.md (movmemhi) : New pattern.
17558
17559 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
17560
17561         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
17562
17563 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
17564
17565         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
17566         NEG as operand of a MULT by merging it with the other operand.
17567         * combine.c (make_compound_operation): Use trunc_int_for_mode when
17568         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
17569         MULT.
17570         * config/arm/constraints.md (M): Examine only 32 bits of a
17571         HOST_WIDE_INT.
17572         * config/arm/predicates.md (power_of_two_operand): Likewise.
17573
17574 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17575
17576         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
17577         non-NOTE insns.
17578
17579 2010-08-03  Jan Hubicka  <jh@suse.cz>
17580
17581         * ipa-split.c (struct split_point): Add split_part_set_retval.
17582         (find_retval): Forward declare.
17583         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
17584         (consider_split): Compute current->split_part_set_retval.
17585         (visit_bb): Do not look into return value.
17586         (split_function): Handle !split_part_set_retval
17587
17588 2010-08-03  Martin Jambor  <mjambor@suse.cz>
17589
17590         * tree-sra.c (completely_scalarize_record): New parameter REF, create
17591         its own access->expr intead of using build_ref_for_offset.
17592
17593 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
17594
17595         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
17596         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
17597         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
17598         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
17599         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
17600         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
17601         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
17602         DEFAULT_SWITCH_TAKES_ARG.
17603         * config/rx/rx.opt (-patch=): Remove option.
17604         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
17605         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
17606         * doc/invoke.texi (RX Options): Remove -patch=.
17607         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
17608         (option_map): Remove --profile-blocks, --quiet and --silent.
17609
17610 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
17611
17612         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
17613         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
17614         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
17615         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
17616         Update calls to ix86_expand_compare and ix86_expand_branch.
17617         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
17618         ix86_expand_compare.
17619         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
17620         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
17621         Make static.
17622         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
17623         and ix86_compare_op1.  Update calls to ix86_expand_compare.
17624         (ix86_expand_int_movcc): Ditto.
17625         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
17626         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
17627         (ix86_expand_setcc): Ditto.
17628         (ix86_expand_compare): Remove prototype.
17629         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
17630         ix86_compare_op0 and ix86_compare_op1.  Update calls
17631         to ix86_expand_branch to directly pass operands[1] and operands[2].
17632         (cbranchxf4): Ditto.
17633         (cbranch<MODEF:mode>4): Ditto.
17634         (cbranchcc4): Ditto.
17635         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
17636         Update calls to ix86_expand_setcc to directly pass operands[2] and
17637         operands[3].
17638         (cstorexf4): Ditto.
17639         (cstore<MODEF:mode>4): Ditto.
17640         (cstorecc4): Ditto.
17641
17642 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
17643
17644         PR target/45063
17645         * caller-save.c (save_call_clobbered_regs): Remove regs from
17646         hard_regs_saved when they are set.
17647
17648 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
17649
17650         PR target/41089
17651         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
17652         as volatile.
17653
17654 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
17655
17656         * common.opt (ftree-loop-distribute-patterns): New.
17657         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
17658         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
17659         at -O3.
17660         * tree-data-ref.c (stores_zero_from_loop): New.
17661         * tree-data-ref.h (stores_zero_from_loop): Declared.
17662         * tree-loop-distribution.c (tree_loop_distribution): Call
17663         stores_zero_from_loop.
17664         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
17665
17666 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
17667
17668         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
17669         into account.
17670
17671         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
17672         * config/arm/arm.c (thumb1_code): New variable.
17673         (arm_override_options): Set it.
17674         (thumb1_final_prescan_insn): Keep track of condition code status.
17675         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
17676         jumps that depend on them.
17677         * config/arm/arm.h (thumb1_code): Declare variable.
17678         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
17679         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
17680         thumb1_cc_mode.
17681         (CC_STATUS_INIT): New macro.
17682         * config/arm/constraints.md (Pd): New constraint.
17683         * config/arm/predicates.md (noov_comparison_operator): New predicate.
17684         * config/arm/arm.md (is_thumb1): New define_attr.
17685         (conds): Set default to "clob" when generating Thumb1 code.
17686         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
17687         code are set.  Use two-operand assembly syntax.
17688         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
17689         pattern.
17690         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
17691         codes are set.  Use two-operand assembly syntax.
17692         (zero_extendhisi splitter): Remove constraints.
17693         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
17694         thumb1_movsf_insn): Set conds attribute as appropriate.
17695         (cbranchsi4_insn): Use condition code status from struct
17696         machine_function to determine whether the comparison can be eliminated.
17697         Discourage the alternative using high registers.
17698         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
17699         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
17700         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
17701         subsi3_cbranch): Delete.
17702         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
17703         one subtract and one cbranch insn.
17704
17705         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
17706         thumb2_movdf_soft_insn): Delete patterns.
17707         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
17708         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
17709         (pool_range, neg_pool_range): Use them to define defaults.
17710         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
17711         and allow for TARGET_32BIT.
17712
17713         PR target/40457
17714         * config/arm/arm.h (arm_regs_in_sequence): Declare.
17715         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
17716         load_multiple_sequence, store_multiple_sequence): Delete
17717         declarations.
17718         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
17719         declarations.
17720         * config/arm/ldmstm.md: New file.
17721         * config/arm/arm.c (arm_regs_in_sequence): New array.
17722         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
17723         CHECK_REGS.  All callers changed.
17724         If SAVED_ORDER is nonnull, copy the computed order into it.
17725         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
17726         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
17727         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
17728         If SAVED_ORDER is nonnull, copy the computed order into it.
17729         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
17730         like REGS.  Handle Thumb mode.
17731         (arm_gen_load_multiple_1): New function, broken out of
17732         arm_gen_load_multiple.
17733         (arm_gen_store_multiple_1): New function, broken out of
17734         arm_gen_store_multiple.
17735         (arm_gen_multiple_op): New function, with code from
17736         arm_gen_load_multiple and arm_gen_store_multiple moved here.
17737         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
17738         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
17739         changed.
17740         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
17741         * config/arm/predicates.md (commutative_binary_operator): New.
17742         (load_multiple_operation, store_multiple_operation): Handle more
17743         variants of these patterns with different starting offsets.  Handle
17744         Thumb-1.
17745         * config/arm/arm.md: Include "ldmstm.md".
17746         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
17747         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
17748         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
17749         peepholes): Delete.
17750         * config/arm/ldmstm.md: New file.
17751         * config/arm/arm-ldmstm.ml: New file.
17752
17753         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
17754         if statement which adds extra costs to frame-related expressions.
17755
17756 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17757
17758         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
17759
17760 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
17761
17762         PR target/45142
17763         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
17764         alternative 2.
17765         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
17766         split V4SI operands.
17767
17768 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
17769
17770         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17771         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
17772         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
17773         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17774
17775 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
17776
17777         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
17778         LOCAL_INCLUDE_DIR.
17779
17780 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17781
17782         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
17783         used in the call to optab_for_tree_code.  Fix the second
17784         is_widening_mult_p call.  Check that both unwidened operands
17785         have the same sign.
17786
17787 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
17788
17789         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
17790
17791 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
17792
17793         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17794
17795 2010-07-30  DJ Delorie  <dj@redhat.com>
17796
17797         * config/rx/predicates.md (rx_constshift_operand): New.
17798         * config/rx/rx.md (zs_cond): New.
17799         (cbranchsi4): Remove mode.
17800         (*cbranchsi4_<code>): Likewise.
17801         (*tstbranchsi4_<code>): New.
17802         (*tstbranchsi4r_<code>): New.
17803         (*tstbranchsi4m_eq): New.
17804         (*tstbranchsi4m_ne): New.
17805         (cbranchsf4): Remove mode.
17806         (*cbranchsf4_<code>): Likewise.
17807
17808 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
17809
17810         * rtlanal.c (simplify_subreg_regno): Don't treat
17811         HARD_FRAME_POINTER_REGNUM specially.
17812
17813 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
17814
17815         * common.opt (-G): Don't define option here.
17816         * config/g.opt: New.
17817         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
17818         rs6000/powerpc and score targets.
17819         * opts.c (common_handle_option): Don't handle -G here.
17820         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
17821         * config/frv/frv.c (frv_handle_option): Handle -G.
17822         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
17823         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
17824         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
17825         * config/mips/mips.c (mips_handle_option): Handle -G.
17826         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
17827         * config/score/score.c (score_handle_option): Handle -G.
17828
17829 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
17830
17831         * config/mmix/mmix.c: Include basic-block.h.
17832
17833 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
17834
17835         PR debug/45055
17836         PR rtl-optimization/45137
17837         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
17838         prototypes.
17839         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
17840         New functions.
17841         * combine.c (next_nonnote_nondebug_insn): Removed.
17842         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
17843         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
17844         * sched-deps.c (sched_analyze_insn): Likewise.
17845         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
17846         * rtlanal.c (canonicalize_condition): Likewise.
17847         * postreload.c (reload_combine_recognize_pattern): Likewise.
17848         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
17849
17850 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
17851
17852         * config/i386/i386.md (int_cond): Remove code iterator.
17853         (fp_cond): Ditto.
17854         (cbranch<mode>4): Use ordered_comparison_operator predicate
17855         for operator0.
17856         (cstore<mode>4): Ditto for operator1.
17857         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
17858         (add<mode>cc): ditto.
17859
17860 2010-07-30  Richard Guenther  <rguenther@suse.de>
17861
17862         PR middle-end/45141
17863         * expr.c (expand_expr_real_1): Check for not handled base address.
17864
17865 2010-07-30  Richard Guenther  <rguenther@suse.de>
17866
17867         * ipa-prop.c (ipa_modify_formal_parameters): Use
17868         build_distinct_type_copy.
17869
17870 2010-07-30  Anthony Green  <green@moxielogic.com>
17871
17872         * config/moxie/rtems.h: New file.
17873         * config.gcc: Add moxie-rtems support.
17874
17875 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17876
17877         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
17878         df flags as in run_fast_df_dce.
17879
17880 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
17881
17882         Revert:
17883         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17884
17885         * rtl.def (NOTE): Swap operands 4 and 5.
17886         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
17887         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
17888         Adjust accordingly.
17889         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
17890
17891 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
17892
17893         PR debug/45110
17894         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
17895         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
17896         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
17897         formal parameters.
17898         (gen_decl_die): Change return type to dw_die_ref, return what
17899         gen_formal_parameter_die returned.
17900
17901 2010-07-29  Martin Jambor  <mjambor@suse.cz>
17902
17903         * dbgcnt.def (eipa_sra): New counter.
17904         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
17905
17906 2010-07-29  Xinliang David Li  <davidxl@google.com>
17907
17908         PR bootstrap/45119
17909         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
17910         in revision 162652.
17911
17912 2010-07-29  Richard Guenther  <rguenther@suse.de>
17913
17914         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
17915         (TV_TREE_STORE_CCP): Likewise.
17916         (TV_TREE_REDPHI): Likewise.
17917
17918 2010-07-29  Richard Guenther  <rguenther@suse.de>
17919
17920         * double-int.h (double_int_and_not): New function.
17921         * combine.c (try_combine): Use it.
17922         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
17923
17924 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17925
17926         PR rtl-optimization/42575
17927         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
17928         Argument AU removed.  All callers changed.  Ignore artificial refs.
17929         Use return value of df_word_lr_simulate_defs to decide whether an insn
17930         is necessary.
17931         (fast_dce): Rename arg to WORD_LEVEL.
17932         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
17933         static.
17934         (pass_fast_rtl_byte_dce): Delete.
17935         * dce.h (run_word_dce): Declare.
17936         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
17937         All callers changed.  Simplify code to only deal with two-word regs.
17938         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
17939         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
17940         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
17941         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
17942         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
17943         (df_word_lr_mark_ref): Declare.
17944         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
17945         df_word_lr_simulate_uses): Declare or rename from byte variants.
17946         (df_byte_lr_simulate_artificial_refs_at_top,
17947         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17948         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
17949         declarations.
17950         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
17951         (enum df_mm): Delete.
17952         * df-byte-scan.c: Delete file.
17953         * df-problems.c (df_word_lr_problem_data): Renamed from
17954         df_byte_lr_problem_data, all members deleted except for
17955         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
17956         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
17957         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17958         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
17959         df_byte_lr_confluence_0): Delete functions.
17960         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
17961         callers changed.
17962         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
17963         Don't initialize members that were deleted, don't try to discover data
17964         about registers.  Ignore hard regs.
17965         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
17966         (df_word_lr_mark_ref): New function.
17967         (df_word_lr_bb_local_compute): Renamed from
17968         df_byte_bb_lr_local_compute; all callers changed.  Use
17969         df_word_lr_mark_ref.  Assert that artificial refs don't include
17970         pseudos.  Ignore hard registers.
17971         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
17972         Assert that exit block uses don't contain pseudos.
17973         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
17974         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
17975         callers changed.  Ignore hard regs.
17976         (df_word_lr_transfer_function): Renamed from
17977         df_byte_lr_transfer_function; all callers changed.
17978         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
17979         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
17980         changed.
17981         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
17982         callers changed.
17983         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
17984         confluence operator 0 set to NULL.
17985         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
17986         callers changed.
17987         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
17988         Return bool, true if bitmap changed or insn otherwise necessary.
17989         All callers changed.  Simplify using df_word_lr_mark_ref.
17990         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
17991         all callers changed.  Simplify using df_word_lr_mark_ref.
17992         * lower-subreg.c: Include "dce.h"
17993         (decompose_multiword_subregs): Call run_word_dce if df available.
17994         * Makefile.in (lower-subreg.o): Adjust dependencies.
17995         (df-byte-scan.o): Delete.
17996         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
17997
17998 2010-07-29  Richard Guenther  <rguenther@suse.de>
17999
18000         * tree.c (build_vector): Assert that the vector constant
18001         has enough elements.
18002         (build_vector_from_ctor): Pad with trailing zeros.
18003
18004 2010-07-29  Richard Guenther  <rguenther@suse.de>
18005
18006         PR tree-optimization/45120
18007         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18008         Handle offset in DEREFs properly.
18009         (get_constraint_for_1): Handle MEM_REF offset properly.
18010
18011 2010-07-29  Richard Guenther  <rguenther@suse.de>
18012
18013         PR middle-end/45034
18014         * convert.c (convert_to_integer): Always use an unsigned
18015         type for narrowed negate and bitwise not.
18016
18017 2010-07-29  Ira Rosen  <irar@il.ibm.com>
18018
18019         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
18020         to outer loop when creating reduction epilogue for double reduction,
18021         and switch back to the inner loop when updating the phi nodes.
18022         Update uses of outer loop exit phi nodes in double reduction (instead
18023         of uses of reduction).
18024
18025 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
18026
18027         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
18028         popcount on power7 and parity on power6 systems.
18029         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
18030         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
18031         instructions.
18032
18033         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
18034         (UNSPEC_PARITY): Ditto.
18035         (SFDF): New iterator for SF/DF.
18036         (rreg2): New mode attribute for floating register constraint.
18037         (TARGET_FLOAT): New mode attribute for whether single/double float
18038         is supported.
18039         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
18040         pattern.
18041         (parity<mode>2_cmpb): New insn for parity on power6 and newer
18042         machines.
18043         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
18044         pattern.  Add support for fcpsgn instruction added in power6.
18045         (copysignsf3): Delete.
18046         (copysigndf3): Delete.
18047         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
18048         instead of if_then_else in RTL to avoid problems with -0.
18049
18050         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
18051         of if_then_else to mirror scalar code.
18052         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
18053         rs6000.md.
18054
18055         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
18056         instead of if_then_else.
18057
18058 2010-07-28  Xinliang David Li  <davidxl@google.com>
18059
18060         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
18061         (dump_cand): Dump var_before/after.
18062         (htab_inv_expr_eq): New function.
18063         (htab_inv_expr_hash): New function.
18064         (tree_ssa_iv_optimize_init): Support pseudo invariants.
18065         (add_candidate_1): consider base type precision.
18066         (set_use_iv_cost): New parameter.
18067         (adjust_setup_cost): Use profile information.
18068         (get_address_cost): Do not hard code width in computing address
18069         offset limits.
18070         (compare_aff_trees): New function.
18071         (get_loop_invariant_expr_id): New function.
18072         (get_computation_cost_at): New parameter and use profile information.
18073         (get_computation_cost): New parameter.
18074         (determine_use_iv_cost_generic): Pass new parameter.
18075         (determine_use_iv_cost_address): Ditto.
18076         (determine_use_iv_cost_condition): Ditto.
18077         (autoinc_possible_for_pair): Ditto.
18078         (determine_use_iv_costs): More dumps.
18079         (iv_ca_get_num_inv_exprs): New function.
18080         (iv_ca_recount_cost): Consider loop invariants in register pressure
18081         cost.
18082         (iv_ca_add_use): New parameter.
18083         (iv_ca_dump): Better dumping.
18084         (iv_ca_extend): New parameter.
18085         (try_add_cand_for): Attempt to get better partial solution.
18086         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
18087         (create_new-ivs): More dumps.
18088         (rewrite_use_compare): Ditto.
18089         (free_loop_data): More cleanup.
18090         (treee_ssa_iv_optimize_finalize): Ditto.
18091
18092 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
18093
18094         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
18095         * config/i386/i386.c (ix86_profile_before_prologue): New.
18096         (override_options): Add special handling for -mfentry.
18097         (ix86_function_regparm): Likewise.
18098         (ix86_function_sseregparm): Likewise.
18099         (ix86_frame_pointer_required): Likewise.
18100         (ix86_expand_prologue): Check for ms_hook_prologue.
18101         (x86_function_profiler): Adjust mcount output.
18102         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
18103         * config/i386/i386.opt (mfentry): New.
18104         * doc/invoke.texi (mfentry): Add documentation.
18105         * doc/tm.texi: Regenerated..
18106         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
18107         * final.c (final_start_function): Replace macro
18108         PROFILE_BEFORE_PROLOGUE by target hook.
18109         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18110         * target.def (profile_before_prologue): New hook.
18111         * targhooks.c (default_profile_before_prologue): New.
18112         * targhooks.h (default_profile_before_prologue): New.
18113
18114 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
18115
18116         PR debug/45105
18117         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
18118
18119         PR debug/45103
18120         * dwarf2out.c (dwarf2out_var_location): Always consider
18121         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
18122
18123 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
18124
18125         PR rtl-optimization/45107
18126         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
18127
18128 2010-07-28  Richard Guenther  <rguenther@suse.de>
18129
18130         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
18131         (set_lattice_value): Do not query an old default value.
18132         (get_value_for_expr): New function.  Properly canonicalize
18133         float values.
18134         (ccp_visit_phi_node): Use it.
18135
18136 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
18137
18138         * config/arm/arm.c (arm_pcs_default): Remove static.
18139         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
18140         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
18141         (arm_pcs_default): Declare.
18142
18143 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
18144
18145         * config/rs6000/rs6000.c (rs6000_override_options):
18146         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
18147         ... to darwin_rs6000_override_options.
18148         (rs6000_return_in_memory): Update preceding comment for darwin
18149         64 bit ABI.  Use TARGET_MACHO inline.
18150         (rs6000_darwin64_struct_check_p): New.
18151         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
18152         (function_arg): Likewise.
18153         (rs6000_arg_partial_bytes): Likewise.
18154         (rs6000_function_value): Likewise.
18155
18156 2010-07-28  Andi Kleen  <ak@linux.intel.com>
18157
18158         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
18159
18160 2010-07-28  Richard Guenther  <rguenther@suse.de>
18161
18162         PR middle-end/44903
18163         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
18164         targets try harder to not generate unaligned accesses.
18165
18166 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
18167
18168         PR rtl-optimization/45101
18169         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
18170         for gcse-las.
18171
18172 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
18173
18174         PR tree-optimization/44885
18175         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
18176         with non-aliased component.
18177
18178 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
18179
18180         * config/darwin-driver.c (SWITCH_TAKES_ARG,
18181         WORD_SWITCH_TAKES_ARG): Remove.
18182         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
18183         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
18184         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
18185         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
18186         definitions from gcc.c.
18187         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
18188         defaults.h.
18189         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
18190         Move to defaults.h.
18191         * opts-common.c: Include tm.h.
18192         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
18193         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
18194         Handle more than one argument.  Set canonical_option_num_elements.
18195         (decode_cmdline_options_to_array): Set
18196         canonical_option_num_elements and trailing elements of
18197         canonical_option.
18198         * opts.h (struct cl_decoded_option): Allow four elements in
18199         canonical_option.  Add field canonical_option_num_elements.
18200         * Makefile.in (opts-common.o): Update dependencies.
18201
18202 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
18203
18204         PR middle-end/44790
18205         PR middle-end/44993
18206         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
18207         sure the base has address_mode before adding the offset.
18208
18209 2010-07-27  Xinliang David Li  <davidxl@google.com>
18210
18211         * tree-flow.h (create_mem_ref): Add one new parameter.
18212         * tree-ssa-address.c (create_mem_ref): New parameter.
18213         (addr_to_parts): Ditto.
18214         (move_variant_to_index): New function.
18215         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
18216
18217 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
18218
18219         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
18220         4 and 5.
18221         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
18222         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
18223         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
18224         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
18225         CODE_LABELs and NOTEs.
18226         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
18227         * combine.c (try_combine): Likewise.
18228         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18229         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
18230
18231 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
18232
18233         * coretypes.h (struct cl_option_handlers): Declare.
18234         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
18235         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
18236         * langhooks-def.h (lhd_handle_option): Declare.
18237         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
18238         * langhooks.c (lhd_handle_option): New.
18239         * langhooks.h (struct lang_hooks): Update prototype and return
18240         value type of handle_option hook.
18241         * optc-gen.awk: Generate target_flags_explicit definition for the
18242         driver.
18243         * opts-common.c: Include diagnostic.h.
18244         (handle_option): Move from opts.c.  Update prototype and return
18245         value type.  Use handlers structure.
18246         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
18247         handlers structure.
18248         (set_option): Move from opts.c.
18249         * opts.c (common_handle_option): Update prototype and return value
18250         type.  Update calls to handle_option and enable_warning_as_error.
18251         (unknown_option_callback, post_handling_callback,
18252         lang_handle_option, target_handle_option): New.
18253         (handle_option, read_cmdline_option): Move to opts-common.c.
18254         (read_cmdline_options): Update prototype.  Update call to
18255         read_cmdline_option.
18256         (decode_options): Initialize and use handlers structure.
18257         (set_option): Move to opts-common.c.
18258         (enable_warning_as_error): Update prototype.  Update call to
18259         handle_option.
18260         * opts.h (struct cl_option_handler_func, struct
18261         cl_option_handlers): New.
18262         (handle_option, enable_warning_as_error): Update prototypes.
18263         (read_cmdline_option): Declare.
18264         * Makefile.in (opts-common.o): Update dependencies.
18265
18266 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18267
18268         * config/arm/arm.c (params.h): Include.
18269         (arm_override_options): Tune gcse-unrestricted-cost.
18270         * config/arm/t-arm (arm.o): Define dependencies.
18271
18272 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18273
18274         PR target/42495
18275         PR middle-end/42574
18276         * basic-block.h (get_dominated_to_depth): Declare.
18277         * dominance.c (get_dominated_to_depth): New function, use
18278         get_all_dominated_blocks as a base.
18279         (get_all_dominated_blocks): Use get_dominated_to_depth.
18280
18281         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
18282         (hoist_exprs): Remove.
18283         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
18284         (compute_code_hoist_vbeinout): Add debug print outs.
18285         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
18286
18287         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
18288         quadratic behavior.
18289         * params.h (MAX_HOIST_DEPTH): New macro.
18290         * doc/invoke.texi (max-hoist-depth): Document.
18291
18292 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18293
18294         PR rtl-optimization/40956
18295         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
18296         constants.
18297
18298 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18299
18300         PR target/42495
18301         PR middle-end/42574
18302         * config/arm/arm.c (legitimize_pic_address): Use
18303         gen_calculate_pic_address pattern to emit calculation of PIC address.
18304         (will_be_in_index_register): New function.
18305         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
18306         (thumb1_legitimate_address_p): Use it provided !strict_p.
18307         * config/arm/arm.md (calculate_pic_address): New expand and split.
18308
18309 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18310
18311         PR target/42495
18312         PR middle-end/42574
18313         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
18314         * config/arm/arm.md (define_split "J", define_split "K"): Make
18315         IRA/reload friendly.
18316
18317 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18318
18319         * gcse.c (insert_insn_end_basic_block): Update signature, remove
18320         unused checks.
18321         (pre_edge_insert, hoist_code): Update.
18322
18323 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18324
18325         PR target/42495
18326         PR middle-end/42574
18327         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
18328
18329 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18330
18331         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
18332
18333 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18334
18335         PR rtl-optimization/40956
18336         PR target/42495
18337         PR middle-end/42574
18338         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
18339         for hoisting.
18340         (hoist_code): Count occurences in current block too.
18341
18342 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18343
18344         * gcse.c (struct expr:max_distance): New field.
18345         (doing_code_hoisting_p): New static variable.
18346         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
18347         simple expressions, don't change behavior for PRE.  Set max_distance.
18348         (insert_expr_in_table): Set new max_distance field.
18349         (hash_scan_set): Update.
18350         (hoist_expr_reaches_here_p): Stop search after max_distance
18351         instructions.
18352         (find_occr_in_bb): New static function.  Use it in ...
18353         (hoist_code): Calculate sizes of basic block before any changes are
18354         done.  Pass max_distance to hoist_expr_reaches_here_p.
18355         (one_code_hoisting_pass): Set doing_code_hoisting_p.
18356
18357         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
18358         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
18359         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
18360         macros.
18361         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
18362         Document.
18363
18364 2010-07-27  Jeff Law  <law@redhat.com>
18365             Maxim Kuvyrkov  <maxim@codesourcery.com>
18366
18367         * gcse.c (compute_transpout, transpout): Remove, move logic
18368         to prune_expressions.
18369         (compute_pre_data): Move pruning of trapping expressions ...
18370         (prune_expressions): ... here.  New static function.
18371         (compute_code_hoist_data): Use it.
18372         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
18373
18374 2010-07-27  Xinliang David Li  <davidxl@google.com>
18375
18376         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
18377         (rewrite_use_address): Adjust iv update position when needed.
18378
18379 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18380
18381         * dbgcnt.def (hoist_insn): New debug counter.
18382         * gcse.c (hoist_code): Use it.
18383
18384 2010-07-27  Xinliang David Li  <davidxl@google.com>
18385
18386         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
18387         (niter_for_single_dom_exit): Passes additional parameter.
18388         (iv_period): Fix comments.
18389         (may_eliminate_iv): Handles multiple exit loops properly.
18390         (free_tree_niter_desc): New function.
18391         (free_loop_data): Frees up loop iteration descriptors.
18392
18393 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
18394
18395         PR target/44542
18396         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
18397         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
18398         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
18399         (expand_one_var): Don't consider DECL_ALIGN for variables for
18400         which expand_one_stack_var_at has been already called.
18401
18402         PR testsuite/44701
18403         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
18404         constraints on IA-64.
18405
18406 2010-07-27  Jie Zhang  <jie@codesourcery.com>
18407
18408         PR target/44290
18409         Revert:
18410         2010-07-23  Jie Zhang  <jie@codesourcery.com>
18411
18412         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18413         false if ! tree_versionable_function_p.
18414
18415 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
18416
18417         * dwarf2out.c (add_data_member_location_attribute): Use
18418         add_AT_unsigned instead of add_AT_int if offset is non-negative.
18419
18420 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
18421
18422         * postreload.c (try_replace_in_use): New static function.
18423         (reload_combine_recognize_const_pattern): Use it here.  Allow
18424         substituting into a final add insn, and substituting into a memory
18425         reference in an insn that sets the reg.
18426
18427 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
18428
18429         * common.opt (o): Add MissingArgError.
18430         * doc/options.texi (MissingArgError): Document.
18431         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
18432         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
18433         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
18434         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
18435         * langhooks.h (struct lang_hooks): Remove missing_argument.
18436         * optc-gen.awk: Handle MissingArgError and output new structure
18437         field initializers.
18438         * opts.c (read_cmdline_option): Use missing_argument_error field
18439         instead of missing_argument langhook.
18440         * opts.h (struct cl_option): Add missing_argument_error field.
18441         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
18442
18443 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
18444
18445         PR target/29090
18446         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
18447         Darwin64 ABI, for zero-sized objects.
18448
18449 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
18450
18451         PR target/35491
18452         PR target/29090
18453
18454         Merge from Apple local 4.2.1.
18455         2005-05-11  Stan Shebs  <shebs@apple.com>
18456         Fix 64-bit varargs for Darwin (Radar 4028089).
18457         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
18458         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
18459         Add argument, add case for 8-byte register half-filled with a float.
18460         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
18461         single-precision floats specially.
18462
18463 2010-07-27  Ira Rosen  <irar@il.ibm.com>
18464
18465         PR tree-optimization/44152
18466         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
18467         complex numbers for further check.
18468         (vect_supported_load_permutation_p): Check nodes with
18469         complex numbers.
18470
18471 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
18472
18473         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
18474         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
18475         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
18476         (LANG_HOOKS_INITIALIZER): Add new hooks.
18477         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
18478         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
18479         and complain_wrong_lang_p.  Update init_options prototype.
18480         * c-objc-common.c (c_initialize_diagnostics): First call
18481         c_common_initialize_diagnostics.
18482         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
18483         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
18484         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
18485         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
18486         (hook_uint_void_0): New.
18487         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
18488         (hook_uint_void_0): New.
18489         * opts-common.c (decode_cmdline_option,
18490         decode_cmdline_options_to_array): Also fill in canonical_option field.
18491         * opts.c (complain_wrong_lang): Use langhook to determine whether
18492         to complain instead of special-casing LTO.
18493         (decode_options): Separate lang_mask determination with
18494         option_lang_mask hook from call of init_options hook.
18495         * opts.h (struct cl_decoded_option): Add canonical_option.
18496
18497 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
18498
18499         PR tree-optimization/45083
18500         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
18501
18502 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
18503
18504         * postreload.c (reload_combine_recognize_const_pattern): Move test
18505         for limiting the insn movement to the right scope.
18506
18507         PR rtl-optimization/45051
18508         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
18509         than reg_mentioned_p.
18510
18511 2010-07-26  Richard Henderson  <rth@redhat.com>
18512
18513         PR target/44132
18514         * tree-emutls.c: New file.
18515         * Makefile.in (OBJS-common): Add it.
18516         * tree-pass.h (pass_ipa_lower_emutls): Declare.
18517         * passes.c (init_optimization_passes): Add it.
18518
18519         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
18520         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
18521         * expr.c (emutls_var_address): Delete.
18522         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
18523         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
18524         (emutls_finish): Delete.
18525         * toplev.c (compile_file): Don't call it.
18526         * tree.h (emutls_decl): Delete.
18527         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
18528         (emutls_finish, emutls_finalize_control_var): Delete.
18529         (emutls_object_type): Move to tree-emutls.c.
18530         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
18531         default_emutls_var_fields, get_emutls_object_type,
18532         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
18533         default_emutls_var_init): Likewise.
18534         (get_variable_section): Don't special case emutls.
18535         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
18536         default_elf_select_section, default_unique_section,
18537         default_encode_section_info): Likewise.
18538         * varpool.c (decide_is_variable_needed): Likewise.
18539         * gimple-iterator.c (update_call_edge_frequencies): New
18540         (gsi_insert_on_edge_immediate): Use it.
18541         (gsi_insert_seq_on_edge_immediate): Likewise.
18542         (gsi_commit_one_edge_insert): Likewise.
18543
18544         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
18545         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
18546         (x86_64_elf_unique_section): Likewise.
18547
18548 2010-07-26  Jan Hubicka  <jh@suse.cz>
18549
18550         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
18551         GTY((skip)).
18552
18553 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
18554
18555         * target.def (output_source_filename): New hook.
18556         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
18557         * doc/tm.texi: Regenerate.
18558         * toplev.c (output_file_directive) Remove function.
18559         * toplev.h (output_file_directive) Remove.
18560         * output.h (default_asm_output_source_filename,
18561         output_file_directive): Declare.
18562         * varasm.h (default_asm_output_source_filename,
18563         output_file_directive): New functions.
18564
18565         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18566         * config/mips/mips-protos.h (mips_output_filename): Remove.
18567         * config/mips/mips.c (mips_output_filename): Make Static.
18568         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
18569
18570 2010-07-26  Richard Guenther  <rguenther@suse.de>
18571
18572         PR tree-optimization/43784
18573         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
18574         if the destination is used by the call.
18575
18576 2010-07-26  Richard Guenther  <rguenther@suse.de>
18577
18578         PR middle-end/45073
18579         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
18580         SSA updating on being in SSA form.
18581
18582 2010-07-26  Richard Guenther  <rguenther@suse.de>
18583
18584         PR middle-end/45056
18585         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
18586
18587 2010-07-26  Richard Guenther  <rguenther@suse.de>
18588
18589         PR tree-optimization/45071
18590         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
18591         adjust op->opcode.
18592
18593 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
18594
18595         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
18596         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
18597         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
18598         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
18599         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
18600         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
18601         save_r31, return_r31, save_interrupt, return_interrupt,
18602         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
18603         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
18604         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
18605         new ABI requirements.
18606         (save_r6_r9, L_callt_save_r6_r9): Remove.
18607         * config/v850/predicates.md (even_reg_operand, disp23_operand,
18608         const_float_1_operand const_float_0_operand): New Predicates.
18609         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
18610         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
18611         * config/v850/t-v850: Update multilibs for new target variants.
18612         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
18613         * config/v850/t-v850e: Likewise.
18614         * config/v850/v850.c (v850_issue_rate): New.
18615         (v850_strict_argument_naming): New.
18616         (function_arg): Modify to generate a different ABI.
18617         (print_operand): Update case 'z' to support float modes.
18618         (output_move_single): Modify to generate appropriate and better
18619         assembly.
18620         (v850_float_z_comparison_operator, v850_select_cc_mode,
18621         v850_float_nz_comparison_operator,  v850_gen_float_compare,
18622         v850_gen_compare): New functions to support comparison of float values.
18623         (ep_memory_offset): Add support for V850E2 targets.
18624         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
18625         (INTERRUPT_REGPARM_NUM): Remove.
18626         (compute_register_save_size): Add extra case to save/restore long call.
18627         (use_prolog_function): New function to support prologue.
18628         (expand_prologue): Add support for V850E2 targets and modified
18629         as per the current ABI requirements.
18630         (expand_epilogue): Likewise.
18631         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
18632         (construct_save_jarl): Likewise.
18633         (construct_dispose_instruction): Update as per the current ABI
18634         requirements.
18635         (construct_prepare_instruction): Likewise.
18636         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
18637         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
18638         (CPP_SPEC): Updated to support v850e2 targets.
18639         (STRICT_ALIGNMENT): Modified.
18640         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
18641         (FIXED_REGISTERS): Likewise.
18642         (CALL_USED_REGISTERS): Likewise.
18643         (CONDITIONAL_REGISTER_USAGE): Updated.
18644         (HARD_REGNO_MODE_OK): Updated.
18645         (reg_class): Updated to add even registers.
18646         (REG_CLASS_NAMES): Likewise.
18647         (REG_CLASS_CONTENTS): Likewise.
18648         (REGNO_REG_CLASS): Updated for CC registers.
18649         (REG_CLASS_FROM_LETTER): Added support for even registers.
18650         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
18651         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
18652         ARG_POINTER_REGNUM): Updated.
18653         (FUNCTION_ARG_ADVANCE): Define.
18654         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
18655         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
18656         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
18657         (GO_IF_LEGITIMATE_ADDRESS): Updated.
18658         (SELECT_CC_MODE): Define.
18659         (REGISTER_NAMES): Updated to add psw and fcc registers.
18660         (ADDITIONAL_REGISTER_NAMES): Updated.
18661         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
18662         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
18663         * config/v850/v850.md (define_constants): Define new constants.
18664         (type): Update store,bit1,macc,div,fpu and single attributes.
18665         (cpu): New attribute.
18666         (cc): Add set_z attribute.
18667         (unsign23byte_load, sign23byte_load, unsign23hword_load,
18668         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
18669         23word_store): New instructions for 23-bit displacement load and store.
18670         (movqi_internal, movhi_internal): Update the attributes.
18671         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
18672         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
18673         the attributes.
18674         (v850_tst1): Modified using CC_REGNUM.
18675         (tstsi): Remove.
18676         (cmpsi): Modified as define_expand from define_insn.
18677         (cmpsi_insn, cmpsf, cmpdf): New instructions.
18678         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
18679         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
18680         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
18681         one_cmplsi2): Clobber the CC_REGNUM register.
18682         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
18683         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
18684         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
18685         (setf_insn, set_z_insn, set_nz_insn): New instructions for
18686         v850e2v3 target.
18687         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
18688         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
18689         targets.
18690         (sasf_1, sasf_2): Remove.
18691         (sasf): New instruction.
18692         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
18693         targets. CC_REGNUM register is clobbered and attributes are
18694         updated.
18695         (branch_z_normal, branch_z_invert, branch_nz_normal,
18696         branch_nz_invert): New branch related instructions.
18697         (jump): Updated the attributes.
18698         (switch): Update to support new targets. CC_REGNUM register is
18699         clobbered and attributes are updated.
18700         (call_internal_short, call_internal_long, call_value_internal_short,
18701         call_value_internal_long): Updated the attributes.
18702         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
18703         clobbered and attributes are updated.
18704         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
18705         Update to support new targets. CC_REGNUM register is clobbered.
18706         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
18707         instructions.
18708         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
18709         are updated.
18710         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
18711         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
18712         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
18713         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
18714         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
18715         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
18716         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
18717         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
18718         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
18719         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
18720         point instructions defined for V850e2v3 target.
18721         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
18722         Add support for V850E2 targets and CC_REGNUM register is clobbered.
18723         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
18724         support for new targets.
18725         * config/v850/v850-modes.def: New file.
18726         * config/v850/v850.opt(mstrict-align): Remove.
18727         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
18728         mv850e2v3): New command line options for V850.
18729         * config.gcc: Update the newly added files.
18730         * doc/invoke.texi: Update the newly added command line options for
18731         V850 target.
18732
18733 2010-07-26  Richard Guenther  <rguenther@suse.de>
18734
18735         PR tree-optimization/45052
18736         * ipa-pure-const.c (check_stmt): Check volatileness.
18737
18738 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18739
18740         PR target/44707
18741         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
18742         * config/sparc/sparc.c: Include reload.h.
18743         (legitimize_tls_address): Rename into...
18744         (sparc_legitimize_tls_address): ...this.
18745         (legitimize_pic_address): Rename into...
18746         (sparc_legitimize_pic_address): ...this.
18747         (sparc_expand_move): Adjust to above renaming.
18748         (sparc_tls_referenced_p): Likewise.
18749         (sparc_legitimize_tls_address): Likewise.
18750         (sparc_legitimize_pic_address): Likewise.
18751         (sparc_legitimize_address): Likewise.
18752         (sparc_output_mi_thunk): Likewise.
18753         (sparc_legitimize_reload_address): New global function.  Recognize
18754         (lo_sum (high ...) ...) patterns generated by earlier passes.
18755         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
18756
18757 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18758
18759         PR target/44484
18760         * config/sparc/predicates.md (memory_reg_operand): Delete.
18761         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
18762         (*sync_compare_and_swap): Encode the address form in the pattern.
18763         (*sync_compare_and_swapdi_v8plus): Likewise.
18764
18765 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
18766
18767         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
18768         Streamline paragraph on compatibility with the system compiler.
18769
18770 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
18771
18772         PR middle-end/45035
18773         * alias.c (true_dependence_1): Fix thinko in merge of old
18774         true_dependence and canon_true_dependence.
18775
18776 2010-07-23  Jan Hubicka  <jh@suse.cz>
18777
18778         * lto-streamer-out.c (write_symbol): Fix visibilities of external
18779         references.
18780
18781 2010-07-23  Le-Chun Wu  <lcwu@google.com>
18782
18783         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
18784         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
18785         and an unnecessary assignment.
18786         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
18787         self-assign warning.
18788         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
18789         unnecessary self-init.
18790
18791 2010-07-23  Richard Guenther  <rguenther@suse.de>
18792
18793         PR lto/43071
18794         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
18795         for -flto and -fwhopr.
18796
18797 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
18798
18799         PR target/41943
18800         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
18801         (stmp-int-hdrs): Prefix/postfix headers by include_next.
18802         * config.gcc (user_headers_inc_next_pre): New.
18803         (user_headers_inc_next_post): Likewise.
18804         (*-w64-mingw*): Use for float.h post-fixing, and for
18805         stddef.h/stdarg.h pre-fixing by include_next.
18806         * configure.ac (user_headers_inc_next_post): New.
18807         (user_headers_inc_next_pre): New.
18808         * configure: Regenerated.
18809
18810 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18811
18812         * configure.ac: Don't disable TLS on Solaris 8/9 by default
18813         Set tga_func for Solaris 2/x86 resp. SPARC.
18814         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
18815         (LIB_THREAD_LDFLAGS_SPEC): Define.
18816         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
18817         * configure: Regenerate.
18818         * config.in: Regenerate.
18819         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
18820         -pthread, -threads, LIB_TLS_SPEC with -pthread.
18821         * doc/install.texi (Specific, *-*-solaris2*): Document use of
18822         alternate thread libraries on Solaris 8.
18823         Document TLS patch requirements.
18824         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
18825         Document tls.
18826
18827         PR target/18788
18828         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
18829         -shared.
18830
18831 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
18832
18833         * tree.h (struct tree_base): Add nameless_flag bitfield.
18834         (TYPE_NAMELESS, DECL_NAMELESS): Define.
18835         * omp-low.c (create_omp_child_function, scan_omp_parallel,
18836         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
18837         DECL_ARTIFICIAL where needed.
18838         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
18839         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
18840         has DECL_NAMELESS set.
18841
18842 2010-07-23  Martin Jambor  <mjambor@suse.cz>
18843
18844         PR tree-optimization/44915
18845         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
18846         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
18847         (analyze_function): Likewise.
18848
18849 2010-07-23  Martin Jambor  <mjambor@suse.cz>
18850
18851         PR tree-optimization/44914
18852         * tree-sra.c (sra_modify_function_body): Return true if CFG was
18853         changed, add purging dead eh edges.
18854         (ipa_sra_modify_function_body): Return true if CFG was changed,
18855         simplify purging dead eh edges.
18856         (modify_function): Return true if CFG was changed.
18857         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
18858         was changed.
18859         (ipa_early_sra): Likewise.
18860
18861 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18862
18863         PR target/44290
18864         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
18865         if "naked".
18866         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18867         false if ! tree_versionable_function_p.
18868
18869 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
18870
18871         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
18872         * ipa-pure-const.c (special_builtlin_state): Remove
18873         BUILT_IN_ARGS_INFO case.
18874         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
18875         * builtins.c (expand_builtin): Likewise.
18876         (expand_builtin_args_info): Remove.
18877         * doc/tm.texi (__builtin_args_info): Remove.
18878         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
18879         * doc/tm.text.in: Likewise.
18880
18881 2010-07-23  Richard Guenther  <rguenther@suse.de>
18882
18883         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
18884         (lto_symtab_merge_decls_2): Likewise.
18885         * tree-ssa.c (useless_type_conversion_p): Likewise.
18886         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18887         * gimple.c (gtc_visited2, gtc_ob2): Remove.
18888         (struct type_pair_d): Make same_p an array indexed by mode.
18889         Update comment.
18890         (lookup_type_pair): Update initialization.
18891         (struct sccs): Adjust same_p type.
18892         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
18893         Adjust.
18894         (print_gimple_types_stats): Likewise.
18895         * gimple.h (enum gtc_mode): New.
18896         (gimple_types_compatible_p): Adjust prototype.
18897
18898 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
18899
18900         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
18901         again after processing insn.
18902
18903 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18904
18905         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
18906         proper words when !tree_versionable_function_p.
18907
18908 2010-07-23  Richard Guenther  <rguenther@suse.de>
18909
18910         PR tree-optimization/45037
18911         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
18912
18913 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18914
18915         * doc/extend.texi: Remove IP2K from the description of naked attribute.
18916         Add MCORE instead.
18917
18918 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18919
18920         PR lto/44992
18921         * lto-opts.c (lto_write_options): Add NULL file_data argument to
18922         lto_get_section_name.
18923         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18924         * lto-streamer-out.c (produce_asm): Likewise.
18925         (copy_function): Likewise.
18926         (produce_symtab): Likewise.
18927         (produce_asm_for_decls): Likewise.
18928         * lto-streamer.c (lto_get_section_name): Add file_data argument.
18929         Rewrite to add random postfix to LTO sections.
18930         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
18931         (lto_get_section_name): Add file_data argument to prototype.
18932
18933 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18934
18935         * lto-section-in.c (lto_section_name): Synchronize names
18936         with lto_get_section_name.
18937
18938 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18939
18940         * lto-opts.c (lto_read_file_options): Check for missing section.
18941
18942 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18943
18944         * ira.c (check_allocation): Correctly handle the case where an allocno
18945         with two objects was allocated to a single reg.
18946
18947 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
18948
18949         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
18950         (is_widening_mult_p): Likewise.
18951         (convert_to_widen): Use them.
18952         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
18953         well as integer ones.
18954
18955 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
18956
18957         * alias.c (true_dependence_1): New function, merged version of
18958         true_dependence and canon_true_dependence.
18959         (true_dependence): Simplify.
18960         (canon_true_dependence): Simplify.
18961
18962 2010-07-22  Richard Henderson  <rth@redhat.com>
18963
18964         PR target/45027
18965         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
18966         of V4SFmode for the SSE saves; increase stack alignment if needed.
18967         (ix86_gimplify_va_arg): Don't increase stack alignment here.
18968
18969 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
18970
18971         PR bootstrap/45028
18972         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
18973         call cprop_find_used_regs again via note_uses.
18974
18975 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
18976
18977         * alias.c (get_alias_set): Fix formatting issues.
18978
18979 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
18980
18981         PR middle-end/44878
18982         * stmt.c (expand_value_return):  Call promote_function_mode with
18983         a for_return argument of 2 when returning by reference.
18984
18985 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
18986
18987         PR debug/45024
18988         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
18989         unit DIE if we can find the scope DIE.
18990
18991 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18992
18993         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
18994         changed.  Initialize OBJECT_SUBWORD.
18995         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
18996         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
18997         all callers changed.
18998         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
18999         (finish_allocno): Likewise.
19000         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
19001         (remove_low_level_allocnos): Likewise.
19002         (update_bad_spill_attribute): Likewise.
19003         (setup_min_max_allocno_live_range_point): Likewise.
19004         (sort_conflict_id_map): Likewise.
19005         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
19006         (ior_hard_reg_conflicts): New function.
19007         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
19008         (compress_conflict_vecs): Iterate over objects, not allocnos.
19009         (ira_add_live_range_to_object): New function.
19010         (object_range_compare_func): Renamed from allocno_range_compare_func.
19011         All callers changed.
19012         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
19013         subobjects, widen the min/max range of the lowest-order object to
19014         potentially include all other such low-order objects.
19015         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
19016         (check_allocation): Likewise.  Use more fine-grained tests for register
19017         conflicts.
19018         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
19019         allocno subobjects.
19020         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
19021         choices about which bits to set in each set.  Don't use
19022         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
19023         using the multiple sets we computed.
19024         (push_allocno_to_stack): Iterate over allocno subobjects.
19025         (all_conflicting_hard_regs_coalesced): New static function.
19026         (setup_allocno_available_regs_num): Use it.
19027         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
19028         subobjects.
19029         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
19030         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
19031         by ALLOCNO_NUM_OBJECTS.
19032         (calculate_spill_cost): Likewise.
19033         (color_pass): Express if statement in a more normal way.
19034         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
19035         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
19036         (setup_slot_coalesced_allocno_live_ranges): Likewise.
19037         (allocno_reload_assign): Likewise.
19038         (ira_reassign_pseudos): Likewise.
19039         (fast_allocation): Likewise.
19040         * ira-conflicts.c (build_conflict_bit_table): Likewise.
19041         (print_allocno_conflicts): Likewise.
19042         (ira_build_conflicts): Likewise.
19043         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
19044         callers changed.  Test subword 0 of each allocno for conflicts.
19045         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
19046         callers changed.  Iterate over allocno subobjects.
19047         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
19048         * ira-int.h (struct ira_allocno): New member: num_objects.
19049         Rename object to objects and change it into an array.
19050         (ALLOCNO_OBJECT): Add new argument N.
19051         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
19052         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
19053         (ior_hard_reg_conflicts): Declare.
19054         (ira_add_live_range_to_object): Declare.
19055         (ira_allocno_object_iterator): New.
19056         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
19057         (FOR_EACH_ALLOCNO_OBJECT): New macro.
19058         * ira-lives.c (objects_live): Renamed from allocnos_live; all
19059         uses changed.
19060         (allocnos_processed): New sparseset.
19061         (make_object_born): Renamed from make_allocno_born; take an
19062         ira_object_t argument.  All callers changed.
19063         (make_object_dead): Renamed from make_allocno_dead; take an
19064         ira_object_t argument.  All callers changed.
19065         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
19066         All callers changed.
19067         (mark_pseudo_regno_live): Iterate over allocno subobjects.
19068         (mark_pseudo_regno_dead): Likewise.
19069         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
19070         functions.
19071         (mark_ref_live): Detect subword accesses and call
19072         mark_pseudo_regno_subword_live as appropriate.
19073         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
19074         (process_bb_nodes_live): Deal with object-related updates first; set
19075         and test bits in allocnos_processed to avoid computing allocno
19076         statistics more than once.
19077         (create_start_finish_chains): Iterate over objects, not allocnos.
19078         (print_object_live_ranges): New function.
19079         (print_allocno_live_ranges): Use it.
19080         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
19081         and objects_live.
19082
19083 2010-07-22  Richard Guenther  <rguenther@suse.de>
19084
19085         PR lto/42451
19086         * gimple.c (gtc_next_dfs_num): New global.
19087         (struct sccs): Make value a union, add integer same_p member.
19088         (gtc_visit): New function.
19089         (gimple_types_compatible_p_1): New function, split out from ...
19090         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
19091         (iterative_hash_gimple_type): Adjust for sccs change.
19092
19093 2010-07-22  Martin Jambor  <mjambor@suse.cz>
19094
19095         PR tree-optimization/44891
19096         * tree-sra.c: Include gimple-pretty-print.h.
19097         (replace_uses_with_default_def_ssa_name): Renamed to
19098         get_repl_default_def_ssa_name, return the new SSA name instead of
19099         replacing the old one.
19100         (sra_modify_assign): Dump a message when removing a load, if the LHS
19101         is an SSA_NAME, do not do any propagation, just set the RHS to a
19102         default definition SSA NAME, type convert if necessary.
19103         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
19104
19105 2010-07-22  Richard Guenther  <rguenther@suse.de>
19106
19107         PR tree-optimization/45017
19108         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
19109         TYPE_PRECISION of integral types in addition to size.
19110
19111 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
19112
19113         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
19114         when no C library is specified.
19115
19116 2010-07-22  Martin Jambor  <mjambor@suse.cz>
19117
19118         * ipa-prop.h (struct ipa_node_params): Updated comment.
19119         (struct ipa_edge_args): Likewise.
19120         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
19121
19122 2010-07-22  Martin Jambor  <mjambor@suse.cz>
19123
19124         * cgraphunit.c (verify_edge_count_and_frequency): New function.
19125         (verify_cgraph_node): Verify frequencies of indirect edges.
19126         * tree-inline.c (tree_function_versioning): Update frequencies of
19127         indirect edges.
19128
19129 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19130
19131         PR target/43698
19132         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
19133         Set *arm_rev to be predicable.
19134
19135 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
19136
19137         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
19138         (LINK_COMMAND_SPEC_A): New.
19139         (DSYMUTIL): New.
19140         (DSYMUTIL_SPEC): New.
19141         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
19142         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
19143
19144 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
19145
19146         * calls.c (load_register_parameters): Move check for zero
19147         sized items so that only the call to
19148         mem_overlaps_already_clobbered_arg_p () is protected.
19149
19150 2010-07-22  Jan Hubicka  <jh@suse.cz>
19151
19152         * ipa-pure-const.c (varying_state): Break out from ...
19153         (get_function_state): ... here; always return varying_state
19154         when state would be NULL otherwise.
19155         (remove_node_data): Do not free varying state.
19156
19157 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
19158
19159         PR bootstrap/44970
19160         PR middle-end/45009
19161         * postreload.c: Include "target.h".
19162         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
19163         into account.
19164         (fixup_debug_insns): Don't copy the rtx.
19165         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
19166         Don't copy when replacing.  Call fixup_debug_insns in the case where
19167         we merged one add with another.
19168         (reload_combine_recognize_pattern): Fail if there aren't any uses.
19169         Try harder to determine whether we're picking a valid index register.
19170         Don't set store_ruid for an insn we're going to scan in the
19171         next iteration.
19172         (reload_combine): Remove unused code.
19173         (reload_combine_note_use): When updating use information for
19174         an old insn, ignore a use that occurs after store_ruid.
19175         * Makefile.in (postreload.o): Update dependencies.
19176
19177         * function.c (record_hard_reg_sets): Restrict the previous change
19178         to cases where the incoming nominal mode is the same as the
19179         incoming promoted mode and everything happens in MODE_INT.
19180
19181 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
19182
19183         PR debug/45015
19184         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
19185         ASM_OPERANDS_OUTPUT_IDX.
19186         (adjust_insn): For inline asm with multiple sets ensure first
19187         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
19188         the insn.
19189
19190 2010-07-21  Richard Henderson  <rth@redhat.com>
19191
19192         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
19193         comparison for avoiding xmm register saves.  Emit the xmm register
19194         saves explicitly.
19195         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
19196         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
19197         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
19198         Remove patterns and the associated splitters.
19199
19200 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
19201
19202         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
19203         and imagine parts of a complex, so that they can have the same
19204         base and fall into the same group.
19205
19206 2010-07-21  Richard Guenther  <rguenther@suse.de>
19207
19208         PR lto/45018
19209         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
19210         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
19211         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
19212
19213 2010-07-21  Martin Jambor  <mjambor@suse.cz>
19214
19215         PR tree-optimization/44900
19216         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
19217         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
19218
19219 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
19220
19221         PR middle-end/44738
19222         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
19223
19224 2010-07-21  Richard Guenther  <rguenther@suse.de>
19225
19226         PR middle-end/45013
19227         * tree-ssa.c (useless_type_conversion_p): Dispatch to
19228         gimple_types_compatible_p only when in lto.
19229         * gimple.c (gimple_types_compatible_p): Use canonical types
19230         to speed up comparison.
19231
19232 2010-07-21  Richard Guenther  <rguenther@suse.de>
19233
19234         * tree-flow.h (referenced_var): Move define ...
19235         * tree-flow-inline.h (referenced_var): ... here as an inline
19236         function.  Assert here ...
19237         * tree-dfa.c (referenced_var_lookup): ... instead of here.
19238         * tree-ssa.c (maybe_optimize_var): Check if the variable
19239         is in referenced vars.
19240         (execute_update_addresses_taken): Remove old broken check.
19241         * gimple-pretty-print.c (pp_points_to_solution): Use
19242         referenced_var_lookup.
19243         * tree-into-ssa.c (dump_decl_set): Likewise.
19244
19245 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
19246
19247         PR debug/45003
19248         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
19249         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
19250         ZERO_EXTEND here.
19251
19252 2010-07-20  Richard Henderson  <rth@redhat.com>
19253
19254         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
19255
19256 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
19257
19258         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
19259         computing the sum of the stack pointer and a large constant.
19260         * config/arm/constraints.md (M): Remove superfluous parentheses.
19261         (Pc): New constraint.
19262
19263 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
19264
19265         PR debug/45006
19266         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
19267         operand's type if exp is tcc_unary class tree.
19268
19269 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
19270
19271         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
19272         Reverse sense of if_then_else condition.
19273
19274 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
19275
19276         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
19277         * config/rs6000/rs6000.c (rs6000_override_options): Set
19278         rs6000_block_move_inline_limit appropriately.
19279         (expand_block_move): Use rs6000_block_move_inline_limit.
19280         * doc/invoke.texi (mblock-move-inline-limit): Document.
19281
19282 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
19283
19284         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
19285         FROM and TO.  All callers changed.  Don't look for tracked uses,
19286         just scan the RTL for DEBUG_INSNs and substitute.
19287         (reload_combine_recognize_pattern): Call fixup_debug_insns.
19288         (reload_combine): Ignore DEBUG_INSNs.
19289
19290 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
19291
19292         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
19293         depth to 8 from 5.
19294
19295         PR debug/45003
19296         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
19297         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
19298         instead of the result's type.
19299
19300 2010-07-20  Richard Guenther  <rguenther@suse.de>
19301
19302         PR tree-optimization/44977
19303         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
19304         SSA form.
19305
19306 2010-07-20  Richard Guenther  <rguenther@suse.de>
19307
19308         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
19309         (lto_symtab_merge_decls_2): Likewise.
19310         * gimple.h (gimple_types_compatible_p): Declare.
19311         * gimple.c (gimple_queue_type_fixup): Remove.
19312         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
19313         (gimple_compatible_complete_and_incomplete_type_p): New function.
19314         (gimple_types_compatible_p): Adjust.
19315         (gimple_register_type): Remove type fixup code.
19316         (print_gimple_types_stats): Adjust.
19317         (free_gimple_type_tables): Likewise.
19318         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
19319         * tree-ssa.c (useless_type_conversion_p): Likewise.
19320
19321 2010-07-20  Richard Guenther  <rguenther@suse.de>
19322
19323         PR middle-end/44971
19324         PR middle-end/44988
19325         * tree-ssa.c (maybe_optimize_var): New function split out from ...
19326         (execute_update_addresses_taken): ... here.
19327         (non_rewritable_mem_ref_base): Likewise.
19328         (execute_update_addresses_taken): Do not iterate over all referenced
19329         vars but just all local decls and parms.
19330         Properly check call and asm arguments and rewrite call arguments.
19331
19332 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
19333
19334         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
19335         to top level.
19336         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
19337         definitions ...
19338         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
19339         New macro.
19340         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
19341
19342 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
19343
19344         * gengtype.c (start_root_entry): New function, split out from
19345         write_root.  Check whether V is null and raise an error if so.
19346         (write_field_root): Check for V being null.  Don't raise an error here;
19347         set V to null instead.
19348         (write_root): Update comment above function.  Use start_root_entry.
19349
19350 2010-07-19  Xinliang David Li  <davidxl@google.com>
19351
19352         PR testsuite/44932
19353         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
19354         def edges.
19355         (find_uninit_use): Add dump.
19356         (is_use_properly_guarded): Ditto.
19357         (warn_uninitialized_phi): Ditto.
19358         (execute_late_warn_uninitialized): Ditto.
19359
19360 2010-07-19  Richard Guenther  <rguenther@suse.de>
19361
19362         PR middle-end/44941
19363         * expr.c (emit_block_move_hints): Move zero size check first.
19364         Move asserts to more useful places.
19365         * calls.c (load_register_parameters): Check for zero size.
19366
19367 2010-07-19  Richard Henderson  <rth@redhat.com>
19368
19369         * tree-optimize.c (execute_all_early_local_passes): New.  Change
19370         cgraph_state here ...
19371         (execute_early_local_optimizations): ... not here.  Remove.
19372         (pass_early_local_passes, pass_all_early_optimizations): Update.
19373
19374 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
19375
19376         * postreload.c (reload_combine_closest_single_use): Ignore the
19377         number of uses for DEBUG_INSNs.
19378         (fixup_debug_insns): New static function.
19379         (reload_combine_recognize_const_pattern): Use it.  Don't let the
19380         main loop be affected by DEBUG_INSNs.
19381         Really disallow moving adds past a jump insn.
19382         (reload_combine_recognize_pattern): Don't update use_ruid here.
19383         (reload_combine_note_use): Do it here.
19384         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
19385
19386 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
19387
19388         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
19389         of a loop.
19390         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
19391
19392 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
19393
19394         * config/i386/darwin.h: Define darwin_emit_branch_islands.
19395         (TARGET_MACHO_BRANCH_ISLANDS): New.
19396         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
19397         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
19398         default value.
19399         * config/i386/i386.c (output_pic_addr_const): Do not emit
19400         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
19401         (x86_output_mi_thunk): Adjust symbol creation.
19402         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
19403         Remove out of date comment.
19404         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
19405         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
19406         (DARWIN_GENERATE_ISLANDS): Ditto.
19407         (output_call):  Do not emit branch islands unless
19408         darwin_emit_branch_islands is set.
19409         * config/darwin.c: Declare darwin_emit_branch_islands.
19410         (machopic_indirect_data_reference): Do not emit unless
19411         darwin_emit_branch_islands is set.
19412         (darwin_override_options): Set darwin_emit_branch_islands
19413         where it is needed.
19414         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
19415
19416 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19417
19418         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19419         sse_runtime, sse2_runtime.
19420
19421 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
19422
19423         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
19424         low half of a single-register SCmode return value before ORing
19425         it with the high half.
19426         * config/mips/mips16.S (MERGE_GPRf): Likewise.
19427
19428 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19429
19430         PR target/44805
19431         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
19432         on all targets.
19433
19434 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
19435
19436         PR target/42235
19437         * postreload.c (reload_cse_move2add): Return bool, true if anything.
19438         changed.  All callers changed.
19439         (move2add_use_add2_insn): Likewise.
19440         (move2add_use_add3_insn): Likewise.
19441         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
19442         reload_combine.
19443         (RELOAD_COMBINE_MAX_USES): Bump to 16.
19444         (last_jump_ruid): New static variable.
19445         (struct reg_use): New members CONTAINING_MEM and RUID.
19446         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
19447         (reload_combine_split_one_ruid, reload_combine_split_ruids,
19448         reload_combine_purge_insn_uses, reload_combine_closest_single_use
19449         reload_combine_purge_reg_uses_after_ruid,
19450         reload_combine_recognize_const_pattern): New static functions.
19451         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
19452         is true for our reg and that we have available index regs.
19453         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
19454         callers changed.  Use them to initialize fields in struct reg_use.
19455         (reload_combine): Initialize last_jump_ruid.  Be careful when to
19456         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
19457         Call reload_combine_recognize_const_pattern.
19458         (reload_combine_note_store): Update REAL_STORE_RUID field.
19459
19460 2010-07-16  Jason Merrill  <jason@redhat.com>
19461
19462         * Makefile.in (opts-common.o): Depend on options.h.
19463
19464 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
19465
19466         * tree.c (build_common_builtin_nodes): Use build_function_type_list
19467         instead of build_function_type.
19468         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
19469         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19470
19471 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
19472
19473         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
19474         do all the work.
19475         (rs6000_emit_int_cmove): Use function pointers for insn generation.
19476         Don't force values into registers unnecessarily.
19477         (output_isel): Assert that we're not given conditions we can't handle.
19478         Delete corresponding code.
19479         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
19480         scc_comparison_operator constraint.  Permit 0 for the consequent
19481         operand.  Permit any GPR for the alternative operand.
19482         (isel_unsigned_<mode>): Likewise.
19483
19484 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
19485
19486         PR target/44942
19487         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
19488         argument to const_tree.
19489         * config/i386/i386.c (function_arg_advance): If padding needs to be
19490         inserted before argument, increment cum->words by number of padding
19491         words as well.
19492         (contains_aligned_value_p): Change argument to const_tree.
19493         (ix86_function_arg_boundary): Change second argument to const_tree.
19494
19495 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
19496
19497         PR target/42235
19498         * function.c (record_hard_reg_sets): New static function.
19499         (assign_parm_setup_reg): If an optab for extending exists and the
19500         generated code clobbbers no hard regs, emit the insn directly and
19501         create a REG_EQUIV note.
19502
19503 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
19504
19505         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
19506         TREE_CHAIN.
19507         * c-typeck.c (push_init_level): Likewise.
19508         (process_init_element): Likewise.
19509
19510 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
19511
19512         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
19513         (integer_three_node): Add.
19514         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
19515         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
19516         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
19517         of call build_int_cst.
19518         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
19519         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
19520         (find_interesting_uses_address): Ditto.
19521         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
19522         * tree-eh.c (lower_eh_constructs_2): Ditto.
19523         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
19524         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
19525         * expmed.c (expand_divmod): Ditto.
19526         * tree-mudflap.c (mx_register_decls): Ditto.
19527         * varasm.c (array_size_for_constructor): Ditto.
19528         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
19529         * c-parser.c (c_parser_postfix_expression): Ditto.
19530
19531 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
19532
19533         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
19534         New static variables.
19535         (reload_combine_recognize_pattern): New static function, broken out
19536         of reload_combine.
19537         (reload_combine): Use it.  Only initialize first_index_reg and
19538         last_index_reg once.
19539
19540 2010-07-15  Richard Henderson  <rth@redhat.com>
19541
19542         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
19543         when done.
19544
19545 2010-07-15  Jan Hubicka  <jh@suse.cz>
19546
19547         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
19548         comdats for broken gold.
19549         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
19550
19551 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
19552
19553         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
19554
19555 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
19556
19557         * tree.h (DECL_CHAIN): Define.
19558         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
19559         * c-decl.c: Likewise.
19560         * c-parser.c: Likewise.
19561         * c-typeck.c: Likewise.
19562         * cfgexpand.c: Likewise.
19563         * cgraph.c: Likewise.
19564         * cgraphunit.c: Likewise.
19565         * combine.c: Likewise.
19566         * config/alpha/alpha.c: Likewise.
19567         * config/arm/arm.c: Likewise.
19568         * config/frv/frv.c: Likewise.
19569         * config/i386/i386.c: Likewise.
19570         * config/i386/winnt-cxx.c: Likewise.
19571         * config/ia64/ia64.c: Likewise.
19572         * config/iq2000/iq2000.c: Likewise.
19573         * config/mep/mep.c: Likewise.
19574         * config/mips/mips.c: Likewise.
19575         * config/pa/som.h: Likewise.
19576         * config/rs6000/rs6000.c: Likewise.
19577         * config/s390/s390.c: Likewise.
19578         * config/sh/sh.c: Likewise.
19579         * config/sh/symbian-cxx.c: Likewise.
19580         * config/sparc/sparc.c: Likewise.
19581         * config/spu/spu.c: Likewise.
19582         * config/stormy16/stormy16.c: Likewise.
19583         * config/vxworks.c: Likewise.
19584         * config/xtensa/xtensa.c: Likewise.
19585         * coverage.c: Likewise.
19586         * dbxout.c: Likewise.
19587         * dwarf2out.c: Likewise.
19588         * emit-rtl.c: Likewise.
19589         * expr.c: Likewise.
19590         * function.c: Likewise.
19591         * gimple-low.c: Likewise.
19592         * gimple-pretty-print.c: Likewise.
19593         * gimplify.c: Likewise.
19594         * integrate.c: Likewise.
19595         * ipa-inline.c: Likewise.
19596         * ipa-prop.c: Likewise.
19597         * ipa-split.c: Likewise.
19598         * ipa-struct-reorg.c: Likewise.
19599         * ipa-type-escape.c: Likewise.
19600         * langhooks.c: Likewise.
19601         * lto-cgraph.c: Likewise.
19602         * omp-low.c: Likewise.
19603         * stor-layout.c: Likewise.
19604         * tree-cfg.c: Likewise.
19605         * tree-complex.c: Likewise.
19606         * tree-dfa.c: Likewise.
19607         * tree-dump.c: Likewise.
19608         * tree-inline.c: Likewise.
19609         * tree-mudflap.c: Likewise.
19610         * tree-nested.c: Likewise.
19611         * tree-object-size.c: Likewise.
19612         * tree-pretty-print.c: Likewise.
19613         * tree-sra.c: Likewise.
19614         * tree-ssa-live.c: Likewise.
19615         * tree-ssa-loop-niter.c: Likewise.
19616         * tree-ssa-math-opts.c: Likewise.
19617         * tree-ssa-reassoc.c: Likewise.
19618         * tree-ssa-sccvn.c: Likewise.
19619         * tree-ssa-structalias.c: Likewise.
19620         * tree-tailcall.c: Likewise.
19621         * tree-vrp.c: Likewise.
19622         * tree.c: Likewise.
19623         * var-tracking.c: Likewise.
19624         * varasm.c: Likewise.
19625
19626 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19627
19628         PR target/44877
19629         * config/spu/spu.c (spu_expand_builtin_1): Allow references
19630         (as well as pointers) as argument to mask_for_load builtins.
19631
19632 2010-07-15  Richard Guenther  <rguenther@suse.de>
19633
19634         PR tree-optimization/44946
19635         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
19636         with accessing only padding properly.
19637
19638 2010-07-15  Jan Hubicka  <jh@suse.cz>
19639
19640         * ipa.c (function_and_variable_visibility): Variables marked as used
19641         should not be localized.
19642
19643 2010-07-15  Jan Hubicka  <jh@suse.cz>
19644
19645         * cgraph.c: Include lto-streamer.h
19646         (change_decl_assembler_name): Work when assembler name hash is at place.
19647         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
19648         be sure to rename it to avoid name clash.
19649         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
19650         Localize hidden symbols only when locally defined.
19651
19652 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
19653
19654         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
19655
19656 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
19657             Kevin F. Quinn  <kevquinn@gentoo.org>
19658
19659         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
19660         * common.opt: Add -Wtrampolines.
19661         * doc/invoke.texi: Add -Wtrampolines.
19662
19663 2010-07-15  Jie Zhang  <jie@codesourcery.com>
19664
19665         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
19666         cortex_a8_issue_ls.
19667
19668 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
19669
19670         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
19671         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
19672
19673 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19674
19675         * config/spu/spu.c (reg_names): Remove prototype.
19676         (call_used_regs): Likewise.
19677
19678 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
19679
19680         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
19681         "unused" with attribute "used".
19682         (__JCR_END__): Likewise.
19683         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
19684         "used" attribute.
19685         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
19686
19687 2010-07-14  Richard Guenther  <rguenther@suse.de>
19688
19689         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
19690         (maybe_fixup_decls): Likewise.
19691         (input_gimple_stmt): Do not fixup anything.
19692         * lto-streamer-out.c (output_gimple_stmt): Make sure all
19693         non-automatic variable uses are wrapped inside a MEM_REF.
19694
19695 2010-07-14  Richard Henderson  <rth@redhat.com>
19696
19697         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
19698         for functions.
19699         * varasm.c (assemble_variable): Remove early exit for functions;
19700         assert that we're given a variable.
19701
19702 2010-07-14  Jie Zhang  <jie@codesourcery.com>
19703
19704         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
19705         cortex_a8_default when neon_type is not none.
19706
19707 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19708
19709         * lower-subreg.c (subreg_context): New static bitmap.
19710         (decompose_multiword_subregs): Allocate and free it.
19711         (find_decomposable_subregs): Set a bit in it for a register that
19712         occurs in a subreg that changes mode but not size.
19713         (can_decompose_p): Test it instead of non_decomposable_context.
19714
19715 2010-07-14  Richard Guenther  <rguenther@suse.de>
19716
19717         PR tree-optimization/44824
19718         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
19719         is_gimple_mem_ref_addr.
19720         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
19721         non-decl_address_invariant_p addresses.
19722
19723 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19724
19725         * reload.c (find_reloads): Revert code to penalize small register
19726         classes that was brought in with the IRA merge.
19727
19728 2010-07-14  Richard Guenther  <rguenther@suse.de>
19729
19730         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
19731         as base of ARRAY_REFs.
19732
19733 2010-07-14  Richard Guenther  <rguenther@suse.de>
19734
19735         PR middle-end/44930
19736         * tree-pretty-print.c (do_niy): Do not print a newline.
19737
19738 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19739
19740         * ira-int.h (struct ira_object): New.
19741         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
19742         (struct ira_allocno): Remove members min, max,
19743         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
19744         conflict_allocnos_num and conflict_vec_p.  Add new member object.
19745         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
19746         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
19747         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
19748         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
19749         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
19750         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
19751         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
19752         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
19753         an ira_object_t rather than ira_allocno_t.  All uses changed.
19754         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19755         contains a vector of ira_object_t; all uses changed.
19756         (ira_objects_num): Declare variable.
19757         (ira_create_allocno_object): Declare function.
19758         (ira_conflict_vector_profitable_p): Adjust prototype.
19759         (ira_allocate_conflict_vec): Renamed from
19760         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
19761         (ira_allocate_object_conflicts): Renamed from
19762         ira_allocate_allocno_conflicts; first arg now ira_object_t.
19763         (struct ira_object_iterator): New.
19764         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
19765         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
19766         to conflict_vec_p.  All uses changed.
19767         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
19768         Changed to take into account that conflicts are now tracked for
19769         objects.
19770         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
19771         Args changed to accept ira_object_t.  All uses changed.
19772         (allocnos_conflict_p): New static function.
19773         (collected_conflict_objects): Renamed from collected_allocno_objects;
19774         now a vector of ira_object_t.  All uses changed.
19775         (build_conflict_bit_table): Changed to take into account that
19776         conflicts are now tracked for objects.
19777         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
19778         (print_allocno_conflicts, ira_build_conflicts): Likewise.
19779         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
19780         setup_allocno_left_conflicts_size, allocno_reload_assign,
19781         fast_allocation): Likewise.
19782         * ira-lives.c (make_hard_regno_born, make_allocno_born)
19783         process_single_reg_class_operands, process_bb_node_lives): Likewise.
19784         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
19785         Likewise.
19786         * ira-build.c (ira_objects_num): New variable.
19787         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19788         contains a vector of ira_object_t; all uses changed.
19789         (ira_object_id_map_vec): Corresponding change.
19790         (object_pool): New static variable.
19791         (initiate_allocnos): Initialize it.
19792         (finish_allocnos): Free it.
19793         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
19794         New functions.
19795         (ira_create_allocno): Don't set members that were removed.
19796         (ira_set_allocno_cover_class): Don't change conflict hard regs.
19797         (merge_hard_reg_conflicts): Changed to take into account that
19798         conflicts are now tracked for objects.
19799         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
19800         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
19801         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
19802         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
19803         setup_min_max_conflict_allocno_ids, ):  Likewise.
19804         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
19805         to ira_object_t; all callers changed.
19806         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
19807         to ira_object_t, all callers changed.
19808         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
19809         to ira_object_t, all callers changed.
19810         (conflict_check, curr_conflict_check_tick): Renamed from
19811         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
19812         changed.
19813         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
19814         arg changed to ira_object_t, all callers changed.
19815         (create_cap_allocno): Call ira_create_allocno_object.
19816         (finish_allocno): Free the corresponding object.
19817         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
19818         callers changed.  Adjusted for dealing with objects.
19819         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
19820         dealing with objects.
19821         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
19822
19823         * ira-int.h (struct live_range): Rename allocno member to object
19824         and change type to ira_object_t.
19825         (struct ira_object): New member live_ranges.
19826         (struct ira_allocno): Remove member live_ranges.
19827         (ALLOCNO_LIVE_RANGES): Remove.
19828         (OBJECT_LIVE_RANGES): New macro.
19829         (ira_create_live_range, ira_copy_live_range_list,
19830         ira_merge_live_range_list, ira_live_ranges_intersect_p,
19831         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
19832         * ira-build.c (ira_create_object): Initialize live ranges here.
19833         (ira_create_allocno): Not here.
19834         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
19835         changed to ira_object_t, all callers changed.
19836         (copy_live_range): Rename from copy_allocno_live_range, all callers
19837         changed.
19838         (ira_copy_live_range_list): Rename from
19839         ira_copy_allocno_live_range_list, all callers changed.
19840         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
19841         all callers changed.
19842         (ira_live_ranges_intersect_p): Rename from
19843         ira_allocno_live_ranges_intersect_p, all callers changed.
19844         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
19845         callers changed.
19846         (ira_finish_live_range_list): Rename from
19847         ira_finish_allocno_live_range_list, all callers changed.
19848         (change_object_in_range_list): Rename from change_allocno_in_range_list,
19849         last arg changed to ira_object_t, all callers changed.
19850         (finish_allocno): Changed to expect live ranges in the allocno's object.
19851         (move_allocno_live_ranges, copy_allocno_live_ranges,
19852         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
19853         ira_flattening, ira_build): Likewise.
19854         * ira-color.c (allocnos_have_intersected_live_ranges_p,
19855         slot_coalesced_allocno_live_ranges_intersect,
19856         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
19857         * ira-conflicts.c (build_conflict_bit_table): Likewise.
19858         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
19859         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
19860         make_allocno_dead, create_start_finish_chains,
19861         remove_some_program_points_and_update_live_ranges,
19862         ira_debug_live_range_list): Likewise.
19863
19864         * ira-int.h (ira_object_conflict_iterator): Rename from
19865         ira_allocno_conflict_iterator.
19866         (ira_object_conflict_iter_init): Rename from
19867         ira_allocno_conflict_iter_init, second arg changed to
19868         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
19869         FOR_EACH_ALLOCNO_CONFLICT.
19870         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
19871         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
19872         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
19873         * ira-conflicts.c (print_allocno_conflicts): Likewise.
19874
19875 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
19876
19877         PR other/44874
19878         * tree-dump.c (dump_options): Add enumerate_locals entry.
19879         Add TDF_NOID exclusion to all entry.
19880         * tree-dump.h (dump_enumerated_decls): Declare.
19881         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
19882         Don't display type uid.
19883         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
19884         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
19885         * tree-ssa-live.c: Include gimple.h.
19886         (numbered_tree_d): New struct.
19887         (numbered_tree): New typedef.
19888         (DEF_VEC_O (numbered_tree): New.
19889         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
19890         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
19891         (dump_enumerated_decls): Likewise.
19892         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
19893         debug info and flag_dump_final_insns, call dump_enumerated_decls.
19894         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
19895         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
19896
19897 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
19898
19899         * expmed.h (MAX_BITS_PER_WORD): Move to...
19900         * defaults.h (MAX_BITS_PER_WORD): ...here.
19901
19902 2010-07-13  DJ Delorie  <dj@redhat.com>
19903
19904         * config/h8300/h8300.c (h8300_init_once): Default to
19905         -fstrict_volatile_bitfields.
19906
19907         * config/sh/sh.c (sh_override_options): Default to
19908         -fstrict_volatile_bitfields.
19909
19910         * config/rx/rx.c (rx_option_override): New.
19911
19912         * config/m32c/m32c.c (m32c_override_options): Default to
19913         -fstrict_volatile_bitfields.
19914
19915 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
19916
19917         * tree.h (build_function_call_expr): Delete.
19918         (build_call_expr_loc_array): New function.
19919         (build_call_expr_loc_vec): New function.
19920         * tree-flow.h (struct omp_region): Change type of ws_args field
19921         to a VEC.
19922         * builtins.c (build_function_call_expr): Delete.
19923         (build_call_expr_loc_array): New function.
19924         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
19925         (build_call_expr): Likewise.
19926         (build_call_expr_loc_vec): New function.
19927         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
19928         build_function_call_expr.
19929         * expr.c (emutls_var_address): Likewise.
19930         * varasm.c (emutls_common_1): Likewise.
19931         * omp-low.c (expand_omp_atomic_mutex): Likewise.
19932         (expand_omp_taskreg): Adjust for new type of region->ws_args.
19933         (get_ws_args_for): Return a VEC instead of a tree.
19934         (expand_parallel_call): Call build_call_expr_loc_vec instead of
19935         build_function_call_expr.
19936         * stor-layout.c (self_referential_size): Likewise.
19937
19938 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19939
19940         PR testsuite/44701
19941         * recog.c (constrain_operands): Allow side-effects in memory
19942         operands if either < or > constraint is used, rather than if
19943         both < and > is used.
19944
19945 2010-07-13  Richard Guenther  <rguenther@suse.de>
19946
19947         PR middle-end/44911
19948         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
19949         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
19950         without name.
19951
19952 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
19953
19954         PR target/44761
19955         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
19956         to variable emited.
19957         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
19958         * config/sh/sh.md (symGOT_load): Likewise.
19959         (symDTPOFF2reg): Likewise.
19960         (symTPOFF2reg): Likewise.
19961
19962 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19963
19964         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
19965         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
19966
19967 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19968
19969         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
19970         explanation.
19971         Find ucontext_t * on Solaris 11.
19972         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
19973         Handle new Solaris 11 __sighndlr patterns.
19974
19975 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19976
19977         PR debug/44901
19978         * vec.h (VEC_block_remove): Fix comment.
19979         * tree-ssa-live.c (remove_unused_locals): Don't use
19980         VEC_unordered_remove on local_decls, instead replace a single
19981         vector element in each iteration if at least one element had
19982         to be removed and VEC_truncate at the end.
19983         * omp-low.c (expand_omp_taskreg): Likewise.
19984
19985 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19986
19987         * c-decl.c (finish_function): Fix typo in comment.
19988
19989 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
19990
19991         PR bootstrap/44921
19992         * postreload.c (move2add_use_add3_insn): Silence gcc warning
19993         on min_regno.
19994
19995 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
19996
19997         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
19998         (simplify_stmt_using_ranges): Use it.
19999
20000 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20001
20002         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
20003         member.  Do not mark as GTY(()).
20004         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
20005         (spu_builtin_decls): New static variable.
20006         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
20007         (spu_init_builtins): Likewise.
20008         (spu_builtin_mul_widen_even): Likewise.
20009         (spu_builtin_mul_widen_odd): Likewise.
20010         (spu_builtin_mask_for_load): Likewise.
20011         (spu_builtin_vec_perm): Likewise.
20012         * config/spu/spu-c.c: Include "target.h".
20013         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
20014         of using spu_builtins[].fndecl.
20015
20016 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20017
20018         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
20019         imply -minterlink-mips16.
20020
20021 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20022
20023         * config/mips/mips.h (mips16_globals): Declare.
20024         (SWITCHABLE_TARGET): Define.
20025         * config/mips/mips.c: Include target-globals.h.
20026         (mips16_globals): New variable.
20027         (mips_set_mips16_mode): Use save_target_globals and
20028         restore_target_globals instead of target_reinit.
20029
20030 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20031
20032         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
20033         to say that the function can be called more than once.
20034         * target-globals.c (save_target_globals): Call init_reg_sets.
20035
20036 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20037
20038         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
20039         * bb-reorder.h: New file.
20040         * bb-reorder.c (default_target_bb_reorder): New variable.
20041         (this_target_bb_reorder): New conditional variable.
20042         (uncond_jump_length): Redefine as a macro.
20043         * target-globals.h (this_target_bb_reorder): Declare.
20044         (target_globals): Add a bb_reorder field.
20045         (restore_target_globals): Copy the bb_reorder field to
20046         this_target_bb-reorder.
20047         * target-globals.c: Include bb-reorder.h.
20048         (default_target_globals): Initialize the bb_reorder field.
20049         (save_target_globals): Likewise.
20050
20051 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20052
20053         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
20054         * gcse.h: New file.
20055         * gcse.c: Include gcse.h.
20056         (default_target_gcse): New variable.
20057         (this_target_gcse): New conditional variable.
20058         (can_copy): Redefine as a macro.
20059         (can_copy_init_p): New macro.
20060         (can_copy_p): Remove can_copy_init_p.
20061         * target-globals.h (this_target_gcse): Declare.
20062         (target_globals): Add a gcse field.
20063         (restore_target_globals): Copy the gcse field to this_target_gcse.
20064         * target-globals.c: Include gcse.h.
20065         (default_target_globals): Initialize the gcse field.
20066         (save_target_globals): Likewise.
20067
20068 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20069
20070         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
20071         and x_ira_prohibited_mode_move_regs_initialized_p.
20072         (ira_prohibited_mode_move_regs): Redefine as a macro.
20073         * ira.c (ira_prohibited_mode_move_regs): Delete.
20074         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
20075
20076 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20077
20078         * reload.h (target_reload): Add x_cached_reg_save_code and
20079         x_cached_reg_restore_code.
20080         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
20081         Redefine as macros.
20082
20083 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20084
20085         * Makefile.in (target-globals.o): Depend on builtins.h.
20086         * builtins.h: New file.
20087         * builtins.c: Include builtins.h.
20088         (default_target_builtins): New variable.
20089         (this_target_builtins): New conditional variable.
20090         (apply_args_mode, apply_result_mode): Redefine as macros.
20091         * target-globals.h (this_target_builtins): Declare.
20092         (target_globals): Add a builtins field.
20093         (restore_target_globals): Copy the builtins field to
20094         this_target_builtins.
20095         * target-globals.c: Include builtins.h.
20096         (default_target_globals): Initialize the builtins field.
20097         (save_target_globals): Likewise.
20098
20099 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20100
20101         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
20102         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
20103         from expmed.c.
20104         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
20105         (alg_hash, alg_hash_used_p): New macros.
20106         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
20107         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
20108         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
20109
20110 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20111
20112         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
20113         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
20114         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
20115         (this_op_costs, costs_classes): Redefine as macros.
20116         (record_reg_classes): Don't take op_costs as a parameter.
20117         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
20118         (scan_one_insn): Update call to record_operand_costs.
20119
20120 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20121
20122         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
20123         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
20124         (target_ira_int): New structure.
20125         (default_target_ira_int): Declare.
20126         (this_target_ira_int): Declare as a variable or define as a macro.
20127         (ira_reg_mode_hard_regset, ira_register_move_cost)
20128         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
20129         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
20130         (prohibited_class_mode_regs, ira_important_classes_num)
20131         (ira_important_classes, ira_reg_class_intersect)
20132         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
20133         (ira_reg_class_union): Redefine as macros.
20134         * ira.h (target_ira): New structure.
20135         (default_target_ira): Declare.
20136         (this_target_ira): Declare as a variable or define as a macro.
20137         (ira_available_class_regs, ira_hard_regno_cover_class)
20138         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
20139         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
20140         (ira_class_hard_regs_num): Redefine as macros.
20141         * ira.c (default_target_ira, default_target_ira_int): New variables.
20142         (this_target_ira, this_target_ira_int): New conditional variables.
20143         (ira_reg_mode_hard_regset, ira_memory_move_cost)
20144         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
20145         (ira_class_subset_p): Delete.
20146         (no_unit_alloc_regs): Redefine as a macro.
20147         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
20148         (ira_class_hard_regs_num, ira_class_hard_reg_index)
20149         (ira_available_class_regs): Delete.
20150         (alloc_reg_class_subclasses): Redefine as a macro.
20151         (ira_reg_class_cover_size, ira_reg_class_cover)
20152         (ira_important_classes_num, ira_important_classes)
20153         (ira_important_class_nums, ira_class_translate): Delete.
20154         (cover_class_order): Document the variable's lifetime.
20155         (reorder_important_classes): Don't set ira_important_class_nums.
20156         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
20157         (ira_reg_class_super_classes, ira_reg_class_union)
20158         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
20159         Delete.
20160         (setup_reg_class_nregs): Don't set ira_max_regs.
20161         (prohibited_class_mode_regs): Delete.
20162         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
20163         (target_globals): Add ira and ira_int fields.
20164         (restore_target_globals): Copy the ira field to this_target_ira
20165         and the ira_int field to this_target_ira_int.
20166         * target-globals.c: Include ira-int.h.
20167         (default_target_globals): Initialize the ira and ira_int fields.
20168         (save_target_globals): Likewise.
20169
20170 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20171
20172         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
20173         * cfgloop.h (target_cfgloop): New structure.
20174         (default_target_cfgloop): Declare.
20175         (this_target_cfgloop): Declare as a variable or define as a macro.
20176         (target_avail_regs, target_clobbered_regs, target_res_regs)
20177         (target_reg_cost, target_spill_cost): Redefine as macros.
20178         * cfgloopanal.c (default_target_cfgloop): New variable.
20179         (this_target_cfgloop): New conditional variable.
20180         (target_avail_regs, target_clobbered_regs, target_res_regs)
20181         (target_reg_cost, target_spill_cost): Delete.
20182         * target-globals.h (this_target_cfgloop): Declare.
20183         (target_globals): Add a cfgloop field.
20184         (restore_target_globals): Copy the cfgloop field to
20185         this_target_cfgloop.
20186         * target-globals.c: Include cfgloop.h.
20187         (default_target_globals): Initialize the cfgloop field.
20188         (save_target_globals): Likewise.
20189
20190 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20191
20192         * regs.h (target_regs): Add x_direct_load, x_direct_store and
20193         x_float_extend_from_mem.
20194         (direct_load, direct_store, float_extend_from_mem): New macros.
20195         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
20196
20197 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20198
20199         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
20200         (target-globals.o): Depend on $(LIBFUNCS_H).
20201         * libfuncs.h: Include hashtab.h.
20202         (libfunc_entry): Moved from optabs.c.
20203         (target_libfuncs): New structure.
20204         (default_target_libfuncs): Declare.
20205         (this_target_libfuncs): Declare as a variable or define as a macro.
20206         (libfunc_table): Redefine as a macro.
20207         * optabs.c (default_target_libfuncs): New variable.
20208         (this_target_libfuncs): New conditional variable.
20209         (libfunc_table): Delete.
20210         (libfunc_entry): Moved to optabs.h.
20211         (libfunc_hash): Redefine as a macro.
20212         (hash_libfunc, eq_libfunc): Fix comments.
20213         (init_optabs): Use libfunc_hash to detect cases where the function
20214         has already been called.  Clear the hash table instead of
20215         recreating it.
20216         * target-globals.h (this_target_libfuncs): Declare.
20217         (target_globals): Add a libfuncs field.
20218         (restore_target_globals): Copy the libfuncs field to
20219         this_target_libfuncs.
20220         * target-globals.c: Include libfuncs.h.
20221         (default_target_globals): Initialize the libfuncs field.
20222         (save_target_globals): Likewise.
20223
20224 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20225
20226         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
20227         in all dependency lists.
20228
20229 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20230
20231         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
20232         * optabs.h (target_optabs): New structure.
20233         (default_target_optabs): Declare.
20234         (this_target_optabs): Declare as a variable or define as a macro.
20235         (optab_table, convert_optab_table, direct_optab_table): Redefine
20236         as macros.
20237         * optabs.c (default_target_optabs): New variable.
20238         (this_target_optabs): New conditional variable.
20239         (optab_table, convert_optab_table, direct_optab_table): Delete.
20240         * target-globals.h (this_target_optabs): Declare.
20241         (target_globals): Add a optabs field.
20242         (restore_target_globals): Copy the optabs field to
20243         this_target_optabs.
20244         * target-globals.c: Include expr.h and optabs.h.
20245         (default_target_globals): Initialize the optabs field.
20246         (save_target_globals): Likewise.
20247
20248 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20249
20250         * flags.h (target_flagstate): Add x_flag_excess_precision.
20251         (flag_excess_precision): Redefine as a macro.
20252         * toplev.c (flag_excess_precision): Delete.
20253
20254 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20255
20256         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
20257         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
20258         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
20259         (no_caller_save_reg_set): Redefine as a macro.
20260         * reload.h (target_reload): Add x_caller_save_initialized_p and
20261         x_regno_save_mode.
20262         (caller_save_initialized_p): Redefine as a macro.
20263         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
20264         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
20265         (regno_save_mode): Redefine as a macro.
20266
20267 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20268
20269         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
20270         * expmed.h: New file.
20271         * expmed.c (default_target_costs): New variable.
20272         (this_target_costs): New conditional variable.
20273         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
20274         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
20275         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
20276         * target-globals.h (this_target_expmed): Declare.
20277         (target_globals): Add a expmed field.
20278         (restore_target_globals): Copy the expmed field to
20279         this_target_expmed.
20280         * target-globals.c: Include expmed.h.
20281         (default_target_globals): Initialize the expmed field.
20282         (save_target_globals): Likewise.
20283
20284 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20285
20286         * Makefile.in (target-globals.o): Depend on reload.h.
20287         * reload.h (target_reload): New structure.
20288         (default_target_reload): Declare.
20289         (this_target_reload): Declare as a variable or define as a macro.
20290         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
20291         * reload1.c (default_target_reload): New variable
20292         (this_target_reload): New conditional variable.
20293         (indirect_symref_ok, double_reg_address_ok): Delete.
20294         (spill_indirect_levels): Redefine as a macro.
20295         * target-globals.h (this_target_reload): Declare.
20296         (target_globals): Add a reload field.
20297         (restore_target_globals): Copy the reload field to
20298         this_target_reload.
20299         * target-globals.c: Include hard-reg-set.h.
20300         (default_target_globals): Initialize the reload field.
20301         (save_target_globals): Likewise.
20302
20303 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20304
20305         * rtl.h (target_rtl): Add x_static_reg_base_value.
20306         * alias.c (static_reg_base_value): Redefine as a macro.
20307
20308 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20309
20310         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
20311         (GTFILES): Remove reginfo.c.
20312         * rtl.h (target_rtl): Add x_top_of_stack.
20313         (top_of_stack): New macro.
20314         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
20315         (top_of_stack): Delete.
20316
20317 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20318
20319         * regs.h (target_regs): Add x_hard_regs_of_mode,
20320         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
20321         x_may_move_out_cost and x_last_mode_for_init_move_cost.
20322         (have_regs_of_mode, contains_reg_of_mode, move_cost)
20323         (may_move_in_cost, may_move_out_cost): Redefine as macros.
20324         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
20325         (may_move_in_cost, may_move_out_cost): Delete.
20326         (last_mode_for_init_move_cost): Redefine as a macro.
20327
20328 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20329
20330         * hard-reg-set.h (target_hard_regs): New structure.
20331         (default_target_hard_regs): Declare.
20332         (this_target_hard_regs): Declare as a variable or define as a macro.
20333         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
20334         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
20335         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
20336         (reg_class_size, reg_class_subclasses, reg_class_subunion)
20337         (reg_class_superunion, reg_names): Redefine as macros.
20338         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
20339         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
20340         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
20341         (reg_class_contents, reg_class_size, reg_class_subclasses)
20342         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
20343         (default_target_hard_regs): New variable
20344         (this_target_hard_regs, initial_call_really_used_regs)
20345         (initial_reg_alloc_order): New conditional variables.
20346         (initial_reg_names): New variable.
20347         (init_reg_sets): Assert that initial_call_really_used_regs,
20348         initial_reg_alloc_order and initial_reg_names
20349         are all the same size as their variable counterparts.  Use them to
20350         initialize those counterparts.
20351         * target-globals.h (this_target_hard_regs): Declare.
20352         (target_globals): Add a hard_regs field.
20353         (restore_target_globals): Copy the hard_regs field to
20354         this_target_hard_regs.
20355         * target-globals.c: Include hard-reg-set.h.
20356         (default_target_globals): Initialize the hard_regs field.
20357         (save_target_globals): Likewise.
20358
20359 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20360
20361         * Makefile.in (target-globals.o): Depend on $(RTL_H).
20362         * rtl.h (target_rtl): New structure.
20363         (default_target_rtl): Declare.
20364         (this_target_rtl): Declare as a variable or define as a macro.
20365         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
20366         Redefine as macros.
20367         * emit-rtl.c (default_target_rtl): New variable.
20368         (this_target_rtl): New conditional variable.
20369         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
20370         (return_address_pointer_rtx): Delete.
20371         (initial_regno_reg_rtx): New macro.
20372         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
20373         (init_emit_regs): Likewise.
20374         * target-globals.h (this_target_rtl): Declare.
20375         (target_globals): Add a rtl field.
20376         (restore_target_globals): Copy the rtl field to this_target_rtl.
20377         * target-globals.c: Include rtl.h.
20378         (default_target_globals): Initialize the rtl field.
20379         (save_target_globals): Likewise.
20380
20381 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20382
20383         * Makefile.in (target-globals.o): Depend on $(REGS_H).
20384         * regs.h (target_reg_modes): New structure.
20385         (default_target_reg_modes): Declare.
20386         (this_target_reg_modes): Declare as a variable or define as a macro.
20387         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
20388         * reginfo.c (default_target_reg_modes): New variable.
20389         (this_target_reg_modes): New conditional variable.
20390         (hard_regno_nregs, reg_raw_mode): Delete.
20391         * target-globals.h (this_target_regs): Declare.
20392         (target_globals): Add a regs field.
20393         (restore_target_globals): Copy the regs field to this_target_regs.
20394         * target-globals.c: Include regs.h.
20395         (default_target_globals): Initialize the regs field.
20396         (save_target_globals): Likewise.
20397
20398 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
20399
20400         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
20401         * doc/tm.texi: Regenerate.
20402         * Makefile.in (OBJS-common): Add target-globals.o.
20403         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
20404         and target-globals.h.
20405         (target-globals.o): New rule.
20406         (GTFILES): Include $(srcdir)/target-globals.h.
20407         * defaults.h (SWITCHABLE_TARGET): Define.
20408         * gengtype.c (open_base_files): Add target-globals.h to the
20409         list of includes.
20410         * target-globals.h: New file.
20411         * target-globals.c: Likewise.
20412
20413         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
20414         * flags.h (target_flag_state): New structure.
20415         (default_target_flag_state): Declare.
20416         (this_target_flag_state): Declare as a variable or define as a macro.
20417         (align_loops_log): Redefine as a macro.
20418         (align_loops_max_skip, align_jumps_log): Likewise.
20419         (align_jumps_max_skip, align_labels_log): Likewise.
20420         (align_labels_max_skip, align_functions_log): Likewise.
20421         * toplev.c (default_target_flag_state): New variable.
20422         (this_target_flag_state): New conditional variable.
20423         (align_loops_log): Delete.
20424         (align_loops_max_skip, align_jumps_log): Likewise.
20425         (align_jumps_max_skip, align_labels_log): Likewise.
20426         (align_labels_max_skip, align_functions_log): Likewise.
20427         * target-globals.h (this_target_flag_state): Declare.
20428         (target_globals): Add a flag_state field.
20429         (restore_target_globals): Copy the flag_state field to
20430         this_target_flag_state.
20431         * target-globals.c: Include flags.h.
20432         (default_target_globals): Initialize the flag_state field.
20433         (save_target_globals): Likewise.
20434
20435 2010-07-12  Jie Zhang  <jie@codesourcery.com>
20436
20437         * postreload.c (reg_symbol_ref[]): New.
20438         (move2add_use_add2_insn): New.
20439         (move2add_use_add3_insn): New.
20440         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
20441         (move2add_note_store): Likewise.
20442
20443 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
20444
20445         PR rtl-optimization/44752
20446         * genautomata.c (main): Don't emit an empty file even if there
20447         is no automaton.
20448
20449 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20450
20451         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
20452         ix86_solaris_return_in_memory.
20453         * config/i386-protos.h: Reflect this.
20454         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
20455         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
20456         Move ...
20457         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
20458
20459 2010-07-12  Jie Zhang  <jie@codesourcery.com>
20460
20461         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
20462         align the stack when it's going to be saved.
20463
20464 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20465
20466         PR pch/14940
20467         * config/host-solaris.c (mmap_fixed): New function.
20468         (sol_gt_pch_get_address): Use it.
20469         (sol_gt_pch_use_address): Likewise.
20470
20471 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20472
20473         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
20474         pentiumpro on Solaris 8 and 9/x86.
20475         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
20476         Document SSE/SSE2 support.
20477         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
20478
20479 2010-07-12  Andi Kleen  <ak@linux.intel.com>
20480
20481         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
20482         instead of gcc_assert to print better error message for multiple
20483         prevailing defs.
20484
20485 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
20486
20487         * config/i386/i386.c (ix86_asm_output_function_label): Change format
20488         string placeholder from 0x%x to %#x.
20489         (ix86_code_end): Use putc to output '\n'.
20490         (ix86_print_operand) <case ';'>: Use putc to output ';'.
20491
20492 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
20493
20494         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
20495         in directive -export.
20496
20497 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
20498
20499         * reginfo.h (reg_classes_intersect_p): Change arguments type to
20500         reg_class_t.
20501         * rtl.h (reg_classes_intersect_p): Adjust prototype.
20502
20503         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20504         Remove macros.
20505         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
20506         rs6000_memory_move_cost): Remove
20507         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
20508         TARGET_MEMORY_MOVE_COST): Define.
20509         (rs6000_register_move_cost): Make static. Change arguments type from
20510         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
20511         (rs6000_memory_move_cost): Make static. Change arguments type from
20512         'enum reg_class' to reg_class_t.
20513
20514 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
20515
20516         PR middle-end/42505
20517         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
20518         lookup code into....
20519         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
20520         new functions.
20521         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
20522         * cfgloopanal.c (target_clobbered_regs): Define.
20523         (init_set_costs): Initialize target_clobbered_regs.
20524         (estimate_reg_pressure_cost): Add call_p argument.  When true,
20525         adjust the number of available registers to exclude the
20526         call-clobbered registers.
20527         * cfgloop.h (target_clobbered_regs): Declare.
20528         (estimate_reg_pressure_cost): Adjust declaration.
20529         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
20530         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
20531         (determine_set_costs): Dump target_clobbered_regs.
20532         (loop_body_includes_call): New function.
20533         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
20534         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
20535         call_p flag through.
20536         (best_gain_for_invariant): Likewise.
20537         (find_invariants_to_move): Likewise.
20538         (move_single_loop_invariants): Likewise, using already-computed
20539         has_call field.
20540
20541 2010-07-10  Richard Guenther  <rguenther@suse.de>
20542             Joern Rennecke  <joern.rennecke@embecosm.com>
20543
20544         PR debug/44832
20545         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
20546         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
20547         unless they have DECL_IGNORED_P set.
20548
20549 2010-07-10  Richard Guenther  <rguenther@suse.de>
20550
20551         PR lto/44889
20552         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
20553         helper function.
20554         (gimple_types_compatible_p): Similar to pointed-to
20555         types allow and merge a mix of complete and incomplete aggregate.
20556         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
20557         (iterative_hash_gimple_type): Adjust for that.
20558
20559 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
20560
20561         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
20562
20563 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
20564
20565         PR objc/44140
20566         * config/darwin.c (output_objc_section_asm_op): Save and restore
20567         section when outputting ObjC section list.
20568
20569 2010-07-09  Jan Hubicka  <jh@suse.cz>
20570
20571         * lto-streamer-out.c (produce_symtab): Do not write alias
20572         cgraph/varpool nodes.
20573
20574 2010-07-09  Jan Hubicka  <jh@suse.cz>
20575
20576         * tree-inline.c (declare_return_variable): Fix ICE while
20577         inlining DECL_BY_VALUE function not in SSA form
20578
20579 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
20580
20581         PR tree-optimization/44576
20582         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
20583         New.  Pull out from is_loop_prefetching_profitable to implement
20584         the trip count to ahead ratio heuristic.
20585         (mem_ref_count_reasonable_p): New.  Pull out from
20586         is_loop_prefetching_profitable to implement the instruction to
20587         memory reference ratio heuristic.  Also consider not reasonable if
20588         the memory reference count is above a threshold (to avoid
20589         explosive compilation time.
20590         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
20591         is_loop_prefetching_profitable to implement the instruction to
20592         prefetch ratio heuristic.
20593         (is_loop_prefetching_profitable): Removed.
20594         (loop_prefetch_arrays): Distribute the cost analysis across the
20595         function to allow early exit of the prefetch analysis.
20596         is_loop_prefetching_profitable is splitted into three functions,
20597         with each one called as early as possible.
20598         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
20599         number of memory references in a loop is considered too many.
20600
20601 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
20602
20603         * reload.c (find_reloads): Don't clear badop if we have a winreg
20604         alternative, but not win, and the class only has fixed regs.
20605         * hard-reg-set.h (class_only_fixed_regs): Declare.
20606         * reginfo.c (class_only_fixed_regs): New array.
20607         (init_reg_sets_1): Initialize it.
20608         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
20609         discourage alternatives using the stack pointer.
20610
20611         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
20612
20613         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
20614
20615         * config/arm/arm.md (cbranchqi4): Fix array size.
20616         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
20617         calculating length.
20618
20619 2010-07-09  Richard Guenther  <rguenther@suse.de>
20620
20621         * gimple.c (struct type_fixup_s): New struct and VEC type.
20622         (gimple_register_type_fixups): New static global.
20623         (gimple_queue_type_fixup): New function.
20624         (gimple_types_compatible_p): Queue type fixups instead of
20625         applying them here.
20626         (gimple_register_type): Apply queued fixups for the
20627         canonical type.  Empty the type fixup queue.
20628
20629 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
20630
20631         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
20632         * configure: Regenerate.
20633         * config.in: Ditto.
20634
20635 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
20636             Denys Vlasenko  <dvlasenk@redhat.com>
20637             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20638
20639         PR tree-optimization/28632
20640         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
20641         (extract_range_from_binary_expr): Further optimize
20642         BIT_AND_EXPR and BIT_IOR_EXPR.
20643
20644 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
20645
20646         * tree-if-conv.c (fold_or_predicates): New.
20647         (add_to_predicate_list): Call it.
20648
20649 2010-07-09  Richard Guenther  <rguenther@suse.de>
20650
20651         PR middle-end/44890
20652         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
20653         if base is a pointer.
20654         * tree-cfg.c (verify_expr): Update MEM_REF checking.
20655
20656 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
20657
20658         PR target/44877
20659         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
20660         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
20661         builtin mask for load/store builtins.
20662
20663 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
20664
20665         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
20666         for "lock addl".
20667         * configure: Regenerate.
20668         * config/i386/i386.c (ix86_print_operand) <case ';'>:
20669         Remove TARGET_MACHO.
20670
20671 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
20672
20673         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
20674         default ISA flags.
20675         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
20676
20677 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
20678
20679         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
20680
20681 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
20682
20683         * config/picochip/picochip.md (commsTestPort): Emit more
20684         efficient sequence for tstport instruction.
20685
20686 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
20687
20688         * config/i386/i386.c (ix86_veclib_handler): Make static.
20689
20690 2010-07-09  Richard Guenther  <rguenther@suse.de>
20691
20692         PR tree-optimization/44852
20693         * tree-ssa-alias.c: Include toplev.h for exact_log2.
20694         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
20695         in MEM_REF.
20696         (indirect_refs_may_alias_p): Likewise.
20697         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
20698
20699 2010-07-09  Richard Guenther  <rguenther@suse.de>
20700
20701         PR tree-optimization/44882
20702         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
20703         sets do conflict.
20704         (vectorizable_load): Likewise.
20705
20706 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
20707
20708         PR target/40657
20709         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
20710         All callers changed.
20711         Handle the case when we're called for the epilogue.
20712         (thumb_unexpanded_epilogue): Use it.
20713         (thumb1_expand_epilogue): Likewise.
20714
20715 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
20716
20717         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
20718         both ranges are range_int_cst_p with non-negative minimum,
20719         try harder to derive smaller range.
20720
20721 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20722
20723         * genrecog.c: Include diagnostic-core.h before toplev.h.
20724         * genoutput.c: Likewise.
20725         * genextract.c: Likewise.
20726         * genautomata.c: Likewise.
20727         * genemit.c: Likewise.
20728         * genpeep.c: Likewise.
20729         * genattrtab.c: Likewise.
20730         * genconditions.c: Likewise.
20731         * genpreds.c: Likewise.
20732
20733 2010-07-08  Andi Kleen  <ak@linux.intel.com>
20734
20735         * lto-section-in.c (lto_section_name): Add missing comma.
20736
20737 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
20738
20739         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
20740         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
20741         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
20742         (ia64_override_options): Rename to...
20743         (ia64_option_override): ... this one. Make static.
20744
20745 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20746
20747         PR middle-end/44843
20748         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
20749         pointed-to type of the offset in a MEM_REF to compute the alignment.
20750
20751 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
20752
20753         * final.c (final_scan_insn): Replace
20754         TARGET_UNWIND_INFO macro check by unwind_emit
20755         hook NULL check.
20756         * targhooks.c (default_unwind_emit): Removed.
20757         * targhooks.h (default_unwind_emit): Likewise.
20758         * target.def (unwind_emit): Set default value to NULL.
20759
20760         * config/i386/i386-protos.h (ix86_asm_output_function_label):
20761         New prototype.
20762         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
20763         for NULL fntype argument and allow 64-bit targets.
20764         (ix86_asm_output_function_label): New function.
20765         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
20766         (ix86_handle_fndecl_attribute): Likewise.
20767         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
20768         * doc/doc/tm.texi: Regenerated.
20769         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
20770         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
20771         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
20772         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
20773         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20774         * config/elfos.h: Likewise.
20775         * config/i386/cygming.h: Likewise.
20776         * config/netbsd-aout.h: Likewise.
20777         * config/openbsd.h: Likewise.
20778         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
20779         by ix86_asm_output_function_label function call.
20780         * varasm.c (assemble_start_function): Use
20781         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20782
20783 2010-07-08  Jan Hubicka  <jh@suse.cz>
20784
20785         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
20786         New function.
20787         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
20788         Declare.
20789         * ipa-cp.c (ipcp_estimate_growth): Use it.
20790         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
20791         Likewise.
20792
20793 2010-07-08  Jan Hubicka  <jh@suse.cz>
20794
20795         * tree-inline.c (declare_return_variable): Allocate annotation for new
20796         temporary.
20797
20798 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
20799
20800         PR tree-optimization/44710
20801         * tree-if-conv.c (parse_predicate): New.
20802         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
20803         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
20804
20805 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
20806
20807         * common.opt (ftree-loop-if-convert): New flag.
20808         * doc/invoke.texi (ftree-loop-if-convert): Documented.
20809         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
20810         when flag_tree_loop_if_convert is set.
20811
20812 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
20813
20814         * config/i386/i386.c: Use short syntax for function calls
20815         through function pointers.
20816         * config/i386/i386.md: Ditto.
20817
20818 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20819
20820         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
20821
20822 2010-07-08  Richard Guenther  <rguenther@suse.de>
20823
20824         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
20825         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
20826
20827 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
20828
20829         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
20830         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
20831         (loc_list_from_tree): Likewise.
20832         (output_loc_operands): Handle outputting DW_OP_const[48]u
20833         with loc->dtprel set.
20834         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
20835
20836 2010-07-08  Jan Hubicka  <jh@suse.cz>
20837
20838         * ipa.c: Include pointer-set.h
20839         (cgraph_externally_visible_p): New attribute ALIASED;
20840         when in LTO, hidden symbols are local unless they are aliased.
20841         (function_and_variable_visibility): Compute aliased nodes;
20842         handle LTO and hidden symbol on functions and vars.
20843         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
20844         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
20845
20846 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20847
20848         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20849         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20850         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20851         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20852         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20853         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
20854         (ix86_gen_probe_stack_range): Likewise.
20855         (override_options): Set them.
20856         (ix86_target_stack_probe): New function.
20857         (ix86_compute_frame_layout): Force use of push instructions to
20858         save registers if stack checking with probes is enabled.
20859         (get_scratch_register_on_entry): New function.
20860         (release_scratch_register_on_entry): Likewise.
20861         (ix86_adjust_stack_and_probe): Likewise.
20862         (output_adjust_stack_and_probe): Likewise.
20863         (ix86_emit_probe_stack_range): Likewise.
20864         (output_probe_stack_range): Likewise.
20865         (ix86_expand_prologue): Emit stack checking code if static built-in
20866         stack checking is enabled.
20867         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
20868         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
20869         (output_adjust_stack_and_probe): Likewise.
20870         (output_probe_stack_range): Likewise.
20871         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20872         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
20873         TARGET_STACK_PROBE.
20874         (allocate_stack_worker_64): Likewise.
20875         (allocate_stack): Likewise.
20876         (adjust_stack_and_probe): New insn.
20877         (probe_stack_range): Likewise.
20878
20879 2010-07-08  Richard Guenther  <rguenther@suse.de>
20880
20881         PR tree-optimization/44831
20882         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
20883         a MEM_REF preserving TBAA info of the original dereference.
20884         Dereference the original pointer if the address is not invariant.
20885         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
20886         at least one invariant address that we are going to dereference.
20887
20888 2010-07-08  Richard Guenther  <rguenther@suse.de>
20889
20890         PR tree-optimization/44861
20891         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
20892         information when building MEM_REFs.
20893         (vectorizable_load): Likewise.
20894         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
20895
20896 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20897
20898         * config/sol2-c.c: Do not include diagnostic-core.h.
20899
20900 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20901
20902         PR bootstrap/44768
20903         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
20904         with respect to current_function_decl. Pass decl of the function.
20905         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
20906         * ipa-inline.c (compute_inline_parameters): Pass decl to
20907         estimated_stack_frame_size.
20908
20909 2010-07-08  Richard Guenther  <rguenther@suse.de>
20910
20911         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20912         New function.
20913         (valueize_refs): Call it.
20914
20915 2010-07-08  Richard Guenther  <rguenther@suse.de>
20916
20917         PR rtl-optimization/44838
20918         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
20919         SSA form do not use pointer equivalence.
20920
20921 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20922
20923         * dwarf2out.c (AT_linkage_name): Delete.
20924         (add_linkage_attr): New function.
20925         (add_linkage_name): Call it to emit the linkage attribute.
20926         (dwarf2out_finish): Likewise.
20927         (move_linkage_attr): Explicitly accept both attribute variants.
20928
20929 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20930
20931         * toplev.h: Do not include diagnostic-core.h.
20932         Include diagnostic-core.h in every file that includes toplev.h.
20933         * c-tree.h: Do not include toplev.h.
20934         * pretty-print.h: Update comment.
20935         * Makefile.in: Update dependencies.
20936         * alias.c: Include diagnostic-core.h in every file that includes
20937         toplev.h.
20938         * attribs.c: Likewise.
20939         * auto-inc-dec.c: Likewise.
20940         * bb-reorder.c: Likewise.
20941         * bt-load.c: Likewise.
20942         * caller-save.c: Likewise.
20943         * calls.c: Likewise.
20944         * cfg.c: Likewise.
20945         * cfganal.c: Likewise.
20946         * cfgbuild.c: Likewise.
20947         * cfgcleanup.c: Likewise.
20948         * cfghooks.c: Likewise.
20949         * cfgloop.c: Likewise.
20950         * combine.c: Likewise.
20951         * config/alpha/alpha.c: Likewise.
20952         * config/arc/arc.c: Likewise.
20953         * config/arm/arm.c: Likewise.
20954         * config/arm/pe.c: Likewise.
20955         * config/avr/avr.c: Likewise.
20956         * config/bfin/bfin.c: Likewise.
20957         * config/cris/cris.c: Likewise.
20958         * config/crx/crx.c: Likewise.
20959         * config/darwin-c.c: Likewise.
20960         * config/darwin.c: Likewise.
20961         * config/fr30/fr30.c: Likewise.
20962         * config/frv/frv.c: Likewise.
20963         * config/h8300/h8300.c: Likewise.
20964         * config/host-darwin.c: Likewise.
20965         * config/i386/i386.c: Likewise.
20966         * config/i386/netware.c: Likewise.
20967         * config/i386/nwld.c: Likewise.
20968         * config/i386/winnt-cxx.c: Likewise.
20969         * config/i386/winnt-stubs.c: Likewise.
20970         * config/i386/winnt.c: Likewise.
20971         * config/ia64/ia64-c.c: Likewise.
20972         * config/ia64/ia64.c: Likewise.
20973         * config/iq2000/iq2000.c: Likewise.
20974         * config/lm32/lm32.c: Likewise.
20975         * config/m32c/m32c-pragma.c: Likewise.
20976         * config/m32c/m32c.c: Likewise.
20977         * config/m32r/m32r.c: Likewise.
20978         * config/m68hc11/m68hc11.c: Likewise.
20979         * config/m68k/m68k.c: Likewise.
20980         * config/mcore/mcore.c: Likewise.
20981         * config/mep/mep-pragma.c: Likewise.
20982         * config/mep/mep.c: Likewise.
20983         * config/mmix/mmix.c: Likewise.
20984         * config/mn10300/mn10300.c: Likewise.
20985         * config/moxie/moxie.c: Likewise.
20986         * config/pa/pa.c: Likewise.
20987         * config/pdp11/pdp11.c: Likewise.
20988         * config/picochip/picochip.c: Likewise.
20989         * config/rs6000/rs6000-c.c: Likewise.
20990         * config/rs6000/rs6000.c: Likewise.
20991         * config/rx/rx.c: Likewise.
20992         * config/s390/s390.c: Likewise.
20993         * config/score/score.c: Likewise.
20994         * config/score/score3.c: Likewise.
20995         * config/score/score7.c: Likewise.
20996         * config/sh/sh.c: Likewise.
20997         * config/sh/symbian-base.c: Likewise.
20998         * config/sh/symbian-c.c: Likewise.
20999         * config/sh/symbian-cxx.c: Likewise.
21000         * config/sol2-c.c: Likewise.
21001         * config/sol2.c: Likewise.
21002         * config/sparc/sparc.c: Likewise.
21003         * config/spu/spu.c: Likewise.
21004         * config/stormy16/stormy16.c: Likewise.
21005         * config/v850/v850-c.c: Likewise.
21006         * config/v850/v850.c: Likewise.
21007         * config/vax/vax.c: Likewise.
21008         * config/vxworks.c: Likewise.
21009         * config/xtensa/xtensa.c: Likewise.
21010         * convert.c: Likewise.
21011         * cse.c: Likewise.
21012         * cselib.c: Likewise.
21013         * dbgcnt.c: Likewise.
21014         * dbxout.c: Likewise.
21015         * ddg.c: Likewise.
21016         * dominance.c: Likewise.
21017         * emit-rtl.c: Likewise.
21018         * explow.c: Likewise.
21019         * expmed.c: Likewise.
21020         * fixed-value.c: Likewise.
21021         * fold-const.c: Likewise.
21022         * fwprop.c: Likewise.
21023         * gcse.c: Likewise.
21024         * ggc-common.c: Likewise.
21025         * ggc-page.c: Likewise.
21026         * ggc-zone.c: Likewise.
21027         * gimple-low.c: Likewise.
21028         * gimplify.c: Likewise.
21029         * graph.c: Likewise.
21030         * haifa-sched.c: Likewise.
21031         * ifcvt.c: Likewise.
21032         * implicit-zee.c: Likewise.
21033         * integrate.c: Likewise.
21034         * ira-build.c: Likewise.
21035         * ira-color.c: Likewise.
21036         * ira-conflicts.c: Likewise.
21037         * ira-costs.c: Likewise.
21038         * ira-lives.c: Likewise.
21039         * ira.c: Likewise.
21040         * lists.c: Likewise.
21041         * loop-doloop.c: Likewise.
21042         * loop-iv.c: Likewise.
21043         * lto-opts.c: Likewise.
21044         * lto-symtab.c: Likewise.
21045         * main.c: Likewise.
21046         * modulo-sched.c: Likewise.
21047         * optabs.c: Likewise.
21048         * params.c: Likewise.
21049         * plugin.c: Likewise.
21050         * postreload-gcse.c: Likewise.
21051         * postreload.c: Likewise.
21052         * predict.c: Likewise.
21053         * profile.c: Likewise.
21054         * real.c: Likewise.
21055         * regcprop.c: Likewise.
21056         * reginfo.c: Likewise.
21057         * regmove.c: Likewise.
21058         * reorg.c: Likewise.
21059         * resource.c: Likewise.
21060         * rtl.c: Likewise.
21061         * rtlanal.c: Likewise.
21062         * sched-deps.c: Likewise.
21063         * sched-ebb.c: Likewise.
21064         * sched-rgn.c: Likewise.
21065         * sdbout.c: Likewise.
21066         * sel-sched-dump.c: Likewise.
21067         * sel-sched-ir.c: Likewise.
21068         * simplify-rtx.c: Likewise.
21069         * stmt.c: Likewise.
21070         * stor-layout.c: Likewise.
21071         * store-motion.c: Likewise.
21072         * targhooks.c: Likewise.
21073         * tree-cfg.c: Likewise.
21074         * tree-cfgcleanup.c: Likewise.
21075         * tree-dump.c: Likewise.
21076         * tree-eh.c: Likewise.
21077         * tree-inline.c: Likewise.
21078         * tree-nomudflap.c: Likewise.
21079         * tree-object-size.c: Likewise.
21080         * tree-optimize.c: Likewise.
21081         * tree-outof-ssa.c: Likewise.
21082         * tree-phinodes.c: Likewise.
21083         * tree-profile.c: Likewise.
21084         * tree-ssa-ccp.c: Likewise.
21085         * tree-ssa-coalesce.c: Likewise.
21086         * tree-ssa-live.c: Likewise.
21087         * tree-ssa-loop-niter.c: Likewise.
21088         * tree-ssa-loop-prefetch.c: Likewise.
21089         * tree-ssa-loop.c: Likewise.
21090         * tree-ssa-structalias.c: Likewise.
21091         * tree-ssa-uninit.c: Likewise.
21092         * tree-ssa.c: Likewise.
21093         * tree-vect-data-refs.c: Likewise.
21094         * tree-vect-loop-manip.c: Likewise.
21095         * tree-vect-loop.c: Likewise.
21096         * tree-vect-patterns.c: Likewise.
21097         * tree-vect-stmts.c: Likewise.
21098         * tree-vrp.c: Likewise.
21099         * varasm.c: Likewise.
21100         * vec.c: Likewise.
21101         * web.c: Likewise.
21102         * xcoffout.c: Likewise.
21103
21104 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
21105
21106         * gengtype.c (write_field_root): New function.
21107         (write_root): Use it.
21108
21109 2010-07-07  Wei Guozhi  <carrot@google.com>
21110
21111         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21112         of lowest bits to lshift/compare): Add a missing line.
21113
21114 2010-07-07  Wei Guozhi  <carrot@google.com>
21115
21116         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21117         of lowest bits to lshift/compare): New.
21118
21119 2010-07-07  Tom Tromey  <tromey@redhat.com>
21120
21121         * doc/tm.texi: Update.
21122         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
21123         Add @hook.
21124         * target.def (want_debug_pub_sections): New hook.
21125         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
21126         * dwarf2out.c (add_pubname_string): Check
21127         targetm.want_debug_pub_sections.
21128         (add_pubname): Likewise.
21129         (add_pubtype): Likewise.
21130
21131 2010-07-07  Jie Zhang  <jie@codesourcery.com>
21132
21133         * genautomata.c (output_automata_list_min_issue_delay_code):
21134         Correctly decompress min_issue_delay.
21135
21136 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
21137
21138         PR rtl-optimization/44404
21139         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
21140         possible, use reg_overlap_mentioned_p instead.
21141
21142 2010-07-07  Duncan Sands  <baldrick@free.fr>
21143
21144         PR middle-end/41355
21145         * tree.c (build_function_type_skip_args): Copy the original type using
21146         build_distinct_type_copy rather than copy_node.
21147
21148 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21149
21150         PR target/44850
21151         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
21152         revision 161876.
21153         (ix86_expand_prologue): Likewise.
21154         (ix86_handle_fndecl_attribute): Likewise.
21155         (ix86_asm_declare_function_name): Likewise.
21156         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21157         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21158         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
21159         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
21160         * doc/extend.texi: Likewise.
21161
21162 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21163
21164         PR target/44844
21165         * config/i386/i386.md (rdrand<mode>): Changed to expand to
21166         retry if the carry flag isn't valid.
21167         (rdrand<mode>_1): New.
21168
21169 2010-07-07  Richard Guenther  <rguenther@suse.de>
21170
21171         PR middle-end/44790
21172         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
21173         for expanding the constant offset for MEM_REFs.
21174
21175 2010-07-07  Richard Guenther  <rguenther@suse.de>
21176
21177         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
21178         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
21179         * gimple.h (is_gimple_operand): Remove.
21180         * gimple.c (is_gimple_operand): Likewise.
21181         (walk_gimple_op): Fix wi->val_only setting for calls.
21182         * tree-cfg.c (verify_gimple_call): Fix argument validation.
21183         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
21184         invalid gimple calls.
21185
21186 2010-07-06  Jan Hubicka  <jh@suse.cz>
21187
21188         * lto-cgraph.c (output_cgraph): Add missing declaration.
21189
21190 2010-07-06  Jan Hubicka  <jh@suse.cz>
21191
21192         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
21193         partition.
21194
21195 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
21196
21197         * doc/gimple.texi (GIMPLE_DEBUG): Document.
21198         * doc/rtl.texi (Debug Information): New node.
21199         (NOTE_INSN_VAR_LOCATION): Document.
21200         (debug_insn): Likewise.
21201         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
21202
21203 2010-07-07  Jan Hubicka  <jh@suse.cz>
21204
21205         With parts by Richard Guenther.
21206
21207         PR middle-end/44813
21208         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
21209         for functions passed by reference.
21210         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
21211         in memory when passed by reference.
21212         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
21213         beggining.
21214         * ipa-split.c (split_function): Cleanup way return value is passed;
21215         handle SSA DECL_BY_REFERENCE retvals.
21216         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
21217         DECL_BY_REFERENCE is set.
21218         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
21219         find_what_p_points_to): Handle RESULT_DECL.
21220         * tree-inline.c (declare_return_variable): Get new entry_block argument;
21221         when passing by reference ensure that RESULT_DECL is gimple_val.
21222         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
21223         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
21224
21225 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
21226
21227         PR rtl-optimization/44787
21228         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
21229         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
21230
21231 2010-07-06  Jan Hubicka  <jh@suse.cz>
21232
21233         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
21234         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
21235         with body can prevail.
21236         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
21237         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
21238         * cgraph.c (cgraph_get_node_or_alias): New function.
21239         * cgraph.h (cgraph_get_node_or_alias): Declare.
21240
21241 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
21242
21243         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
21244         support.
21245         (ix86_expand_prologue): Likewise.
21246         (ix86_handle_fndecl_attribute): Likewise.
21247         (ix86_asm_declare_function_name): New function for
21248         ASM_DECLARE_FUNCTION_NAME.
21249         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
21250         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
21251         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
21252         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
21253         * doc/extend.texi: Adjust documentation about ms_hook_prologue
21254         attribute.
21255
21256 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
21257
21258         * config/i386/i386.md (immediate_operand): New mode attribute.
21259
21260         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
21261         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
21262         using P mode iterator.
21263         (pro_epilogue_adjust_stack_di_2): Rename from
21264         pro_epilogue_adjust_stack_rex64_2.
21265
21266         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
21267
21268 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
21269
21270         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
21271         through gen_mov_insv_1 function pointer.
21272         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
21273         gen_truncxf<mode>2 through gen_truncxf function pointer.
21274         (remainder<mode>3): Ditto.
21275         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
21276         (allocate_stack): Call gen_allocate_stack_worker_64 or
21277         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
21278         function pointer.
21279         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
21280         function pointer.
21281
21282 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
21283
21284         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
21285         operand constraint instead of <r><i>m.
21286
21287 2010-07-06  Richard Guenther  <rguenther@suse.de>
21288
21289         PR middle-end/44828
21290         * convert.c (convert_to_integer): Watch out for overflowing
21291         MULT_EXPR as well.
21292
21293 2010-07-05  Jan Hubicka  <jh@suse.cz>
21294
21295         * lto-streamer.c (write_symbol_vec): Rename to ...
21296         (write_symbol) ... this one; write only symbol given and when
21297         present in cache. Sanity check that what is defined is present
21298         in cgraph/varpool with body/finalized decl.
21299         (write_symbols_of_kind): Remove.
21300         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
21301         pairs to produce symtab.
21302         (produce_asm_for_decls): Update call of produce_symtab; don't do so
21303         when doing WPA streaming.
21304
21305 2010-07-05  Jan Hubicka  <jh@suse.cz>
21306
21307         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
21308         function is still available to fold into.
21309
21310 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
21311
21312         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
21313         * function.h (struct_function): Change type of local_decls field
21314         to a VEC.
21315         (add_local_decl): New function.
21316         (FOR_EACH_LOCAL_DECL): New macro.
21317         * cfgexpand.c (init_vars_expansion): Adjust for new type of
21318         cfun->local_decls.
21319         (estimated_stack_frame_size): Likewise.
21320         (expand_used_vars): Likewise.
21321         * cgraphbuild.c (build_cgraph_edges): Likewise.
21322         * function.c (instantiate_decls_1): Likewise.
21323         * ipa-struct-reorg.c (build_data_structure): Likewise.
21324         * ipa-type-escape.c (analyze_function): Likewise.
21325         * lto-streamer-in.c (input_function): Likewise.
21326         * lto-streamer-out.c (output_function): Likewise.
21327         * tree-ssa-live.c (remove_unused_locals): Likewise.
21328         * tree.c (free_lang_data_in_decl): Likewise.
21329         (find_decls_types_in_node): Likewise.
21330         * omp-low.c (remove_exit_barrier): Likewise.
21331         (expand_omp_taskreg): Likewise.
21332         (list2chain): Rename to...
21333         (vec2chain): ...this.  Adjust.
21334         * cgraphunit.c (assemble_thunk): Call add_local_decl.
21335         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
21336         * gimple-low.c (record_vars_into): Likewise.
21337         * tree-inline.c (remap_decls): Likewise.
21338         (declare_return_variable): Likewise.
21339         (declare_inline_vars): Likewise.
21340         (copy_forbidden): Adjust for new type of cfun->local_decls.
21341         (add_local_variables): New function.
21342         (expand_call_inline): Call it.
21343         (tree_function_versioning): Likewise.
21344
21345 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
21346
21347         AVX Programming Reference (June, 2010)
21348         * config/i386/cpuid.h (bit_F16C): New.
21349         (bit_RDRND): Likewise.
21350         (bit_FSGSBASE): Likewise.
21351
21352         * config/i386/i386-builtin-types.def: Add
21353         "DEF_FUNCTION_TYPE (UINT16)", function types for
21354         float16 <-> float conversions and
21355         "DEF_FUNCTION_TYPE (VOID, UINT64)".
21356
21357         * config/i386/i386-c.c (ix86_target_macros_internal): Support
21358         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
21359         OPTION_MASK_ISA_F16C.
21360
21361         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
21362         (OPTION_MASK_ISA_RDRND_SET): Likewise.
21363         (OPTION_MASK_ISA_F16C_SET): Likewise.
21364         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
21365         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
21366         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
21367         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
21368         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
21369         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
21370         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
21371         (override_options): Handle them.
21372         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
21373         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
21374         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
21375         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
21376         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
21377         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
21378         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
21379         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
21380         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
21381         (bdesc_args): Likewise.
21382         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
21383         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
21384         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
21385         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
21386         Handle non-memory store.
21387
21388         * config/i386/i386.h (TARGET_FSGSBASE): New.
21389         (TARGET_RDRND): Likewise.
21390         (TARGET_F12C): Likewise.
21391
21392         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
21393         (UNSPEC_VCVTPS2PH): Likewise.
21394         (UNSPECV_RDFSBASE): Likewise.
21395         (UNSPECV_RDGSBASE): Likewise.
21396         (UNSPECV_WRFSBASE): Likewise.
21397         (UNSPECV_WRGSBASE): Likewise.
21398         (UNSPECV_RDRAND): Likewise.
21399         (rdfsbase<mode>): Likewise.
21400         (rdgsbase<mode>): Likewise.
21401         (wrfsbase<mode>): Likewise.
21402         (wrgsbase<mode>): Likewise.
21403         (rdrand<mode>): Likewise.
21404
21405         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
21406
21407         * config/i386/immintrin.h (_rdrand_u16): New.
21408         (_rdrand_u32): Likewise.
21409         (_readfsbase_u32): Likewise.
21410         (_readfsbase_u64): Likewise.
21411         (_readgsbase_u32): Likewise.
21412         (_readgsbase_u64): Likewise.
21413         (_writefsbase_u32): Likewise.
21414         (_writefsbase_u64): Likewise.
21415         (_writegsbase_u32): Likewise.
21416         (_writegsbase_u64): Likewise.
21417         (_rdrand_u64): Likewise.
21418         (_cvtsh_ss): Likewise.
21419         (_mm_cvtph_ps): Likewise.
21420         (_mm256_cvtph_ps): Likewise.
21421         (_cvtss_sh): Likewise.
21422         (_mm_cvtps_ph): Likewise.
21423         (_mm256_cvtps_ph): Likewise.
21424
21425         * config/i386/sse.md (vcvtph2ps): New.
21426         (*vcvtph2ps_load): Likewise.
21427         (vcvtph2ps256): Likewise.
21428         (vcvtps2ph): Likewise.
21429         (*vcvtps2ph): Likewise.
21430         (*vcvtps2ph_store): Likewise.
21431         (vcvtps2ph256): Likewise.
21432
21433         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
21434
21435         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
21436
21437 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
21438
21439         PR bootstrap/44512
21440         * genenums.c (main): Output include of insn-constants.h
21441         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
21442
21443 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
21444
21445         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
21446         (override_options): Initialize it.
21447         (ix86_expand_prologue): Use it.
21448
21449 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
21450
21451         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
21452
21453 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
21454
21455         * double-int.h (fit_double_type): Remove declaration.
21456         * double-int.c (fit_double_type): Remove function.
21457         * tree.h (int_fits_type_p): Adjust prototype.
21458         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
21459         instead of fit_double_type.
21460         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
21461         instead of fit_double_type and build_int_cst_wide.
21462         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
21463         instead of fit_double_type and build_int_cst_wide.
21464         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
21465         of fit_double_type.
21466
21467 2010-07-05  Jan Hubicka  <jh@suse.cz>
21468
21469         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
21470         in_other_partition.
21471         * lto-cgraph.c (referenced_from_other_partition_p,
21472         reachable_from_other_partition_p): Use in_other_partition flags.
21473         (output_node, output_varpool_node): COMDAT nodes always have private
21474         copies and thus are never used from other partition.
21475
21476 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
21477
21478         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
21479         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
21480         * config/ia64/ia64.c Include reload.h.
21481         (ia64_memory_move_cost): New function.
21482         (TARGET_MEMORY_MOVE_COST): Define.
21483         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
21484         memory_move_cost.
21485
21486 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
21487
21488         PR middle-end/42505
21489         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
21490         comments about cost model.
21491         (try_add_cand_for):  Add second strategy for choosing initial set
21492         based on original IVs, controlled by ORIGINALP argument.
21493         (get_initial_solution): Add ORIGINALP argument.
21494         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
21495         (find_optimal_iv_set): Try two different strategies for choosing
21496         the IV set, and return the one with lower cost.
21497
21498 2010-07-05  Richard Guenther  <rguenther@suse.de>
21499
21500         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
21501
21502 2010-07-05  Richard Guenther  <rguenther@suse.de>
21503
21504         * tree.c (reference_alias_ptr_type): New function.
21505         * tree.h (reference_alias_ptr_type): Declare.
21506         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
21507         allow non-TARGET_MEM_REF new refs.
21508         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
21509         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
21510         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
21511         (create_mem_ref): Get alias pointer type.  Adjust calls to
21512         create_mem_ref_raw.
21513         (maybe_fold_tmr): Likewise.
21514         * tree-flow.h (create_mem_ref): Adjust prototype.
21515
21516 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
21517
21518         PR c++/44808
21519         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
21520         *from_p is VAR_DECL.
21521
21522 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
21523
21524         * tree.h (build_call_list): Remove.
21525         * tree.c (build_call_list): Remove.
21526
21527 2010-07-05  Richard Guenther  <rguenther@suse.de>
21528
21529         * double-int.h (double_int_sub): Declare.
21530         * double-int.c (double_int_sub): New function.
21531         * dwarf2out.c (field_byte_offset): Use it.
21532         * fixed-value.c (do_fixed_add): Likewise.
21533         (do_fixed_multiply): Likewise.
21534         (do_fixed_divide): Likewise.
21535         * tree-predcom.c (add_ref_to_chain): Likewise.
21536         (determine_roots_comp): Likewise.
21537         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
21538
21539 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
21540
21541         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
21542         implementations.
21543
21544 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
21545
21546         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
21547         * arm-modes.def (CC_NOTB): Don't define.
21548         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
21549         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
21550         (LTUGEU): New code_iterator.
21551         (cnb, optab): New corresponding code_attrs.
21552         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
21553         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
21554         using LTUGEU.
21555         (addsi3_carryin_shift_<optab>): Likewise.
21556         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
21557         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
21558         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
21559         (subsi3_compare): Renamed from subsi3_compare0_c.
21560         Change CC_NOTB to CC.
21561         (arm_subsi3_insn): Allow constants for operand 0.
21562         (compare_scc peephole for eq case): New.
21563         (compare_scc splitters): Change CC_NOTB to CC.
21564
21565 2010-07-05  Richard Guenther  <rguenther@suse.de>
21566
21567         * tree-ssa-loop-im.c (for_each_index): Do not handle
21568         ALIGN_INDIRECT_REF.
21569         (gen_lsm_tmp_name): Likewise.
21570         * tree-dump.c (dequeue_and_dump): Likewise.
21571         * tree-pretty-print.c (dump_generic_node): Likewise.
21572         (op_code_prio): Likewise.
21573         (op_symbol_code): Likewise.
21574         * tree.c (staticp): Likewise.
21575         (build1_stat): Likewise.
21576         * tree.h (INDIRECT_REF_P): Likewise.
21577         * fold-const.c (maybe_lvalue_p): Likewise.
21578         (operand_equal_p): Likewise.
21579         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21580         (ao_ref_init_from_vn_reference): Likewise.
21581         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
21582         (find_interesting_uses_address): Likewise.
21583         * dwarf2out.c (loc_list_from_tree): Likewise.
21584         * gimplify.c (gimplify_expr): Likewise.
21585         * tree-eh.c (tree_could_trap_p): Likewise.
21586         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21587         * cfgexpand.c (expand_debug_expr): Likewise.
21588         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
21589         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
21590         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
21591         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
21592         * tree-ssa-operands.c (get_expr_operands): Likewise.
21593         * expr.c (safe_from_p): Likewise.
21594         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
21595         * tree-vect-data-refs.c (vect_setup_realignment): Build
21596         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
21597         * tree-vect-stmts.c (vectorizable_load): Likewise.
21598         * tree.def (ALIGN_INDIRECT_REF): Remove.
21599
21600 2010-07-05  Richard Guenther  <rguenther@suse.de>
21601
21602         PR tree-optimization/44784
21603         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
21604         for inserted stmts.
21605         (find_or_generate_expression): Fix SCCVN insertion check.
21606
21607 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
21608
21609         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
21610         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
21611         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
21612         directives.
21613
21614 2010-07-05  Ira Rosen  <irar@il.ibm.com>
21615
21616         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
21617         statements that are not vectorized.
21618         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
21619         in INSIDE_COST.
21620
21621 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
21622
21623         PR bootstrap/44820
21624         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
21625
21626 2010-07-05  Richard Guenther  <rguenther@suse.de>
21627
21628         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
21629         RESULT_DECLs properly.
21630
21631 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
21632
21633         PR rtl-optimization/44695
21634         * config/i386/i386.md (extract_code): Removed.
21635         (<u>divmodqi4): Likewise.
21636         (divmodqi4): New.
21637         (udivmodqi4): Likewise.
21638         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
21639         (udivmodhiqi3): Likewise.
21640
21641 2010-07-04  Jan Hubicka  <jh@suse.cz>
21642
21643         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
21644
21645 2010-07-04  Jan Hubicka  <jh@suse.cz>
21646
21647         * cgraphunit.c (init_cgraph): Only initialize dump file if it
21648         is not already initialized.
21649
21650 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21651
21652         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
21653         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
21654         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
21655         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
21656         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
21657         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
21658         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
21659         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
21660         (sync_new_nand_optab): Redefine as macros.
21661         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
21662         Delete.
21663         (direct_optab_index): New enum.
21664         (direct_optab_d): New structure.
21665         (direct_optab): New typedef.
21666         (direct_optab_table): Declare.
21667         (direct_optab_handler, set_direct_optab_handler): New functions.
21668         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
21669         (sync_lock_release_optab): New macros.
21670         * optabs.c (direct_optab_table): New variable.
21671         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
21672         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
21673         cmpstr_optab and cmpstrn_optab.
21674         (emit_conditional_move): Likewise for movcc_optab.
21675         (can_conditionally_move_p): Likewise for movcc_gen_code.
21676         (init_insn_codes): Clear direct_optab_table.
21677         (init_optabs): Don't initialize the new "direct optabs" here.
21678         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
21679         vcond_gen_code.
21680         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
21681         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
21682         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
21683         (expand_sync_operation): Likewise other sync_*_optabs.
21684         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
21685         to sync_compare_and_swap_optab.
21686         (expand_sync_lock_test_and_set): Use direct_optab_handler for
21687         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
21688         to the names of both.
21689         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
21690         cmpstr_optab and cmpstrn_optab.
21691         (expand_builtin_lock_release): Likewise sync_lock_release.
21692         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
21693         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
21694         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
21695         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
21696         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
21697         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
21698         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
21699         (sync_lock_test_and_set, sync_lock_release): Delete.
21700         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
21701         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
21702         * genopinit.c (optabs): Use set_direct_optab_handler for the new
21703         macro optabs.
21704         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
21705         the "optab" local variable.  Use direct_optab_handler for optab and
21706         sync_compare_and_swap_optab.
21707         * reload1.c (reload_in_optab, reload_out_optab): Delete.
21708         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
21709         reload_in_optab and reload_out_optab.
21710         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21711         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
21712         * config/pa/pa.c (pa_secondary_reload): Likewise.
21713         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
21714         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
21715         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
21716         (VMSupportsCS8_builtin): Likewise.
21717
21718 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21719
21720         * optabs.h (optab_handlers): Change type of insn_code to int.
21721         (optab_handler, set_optab_handler, convert_optab_handler)
21722         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
21723         CODE_FOR_nothing".
21724         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
21725         (init_insn_codes): Zero both the above arrays.
21726         (init_optabs): Never call init_insn_codes first time around.
21727
21728 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21729
21730         * optabs.h (optab_handler, convert_optab_handler): Turn into
21731         inline functions that return an insn code.
21732         (set_optab_handler, set_convert_optab_handler): New functions.
21733         * builtins.c: Replace optab_handler(X)->insn_code with
21734         optab_handler or set_optab_handler thoughout.  Likewise
21735         convert_optab_handler(X)->insn_code with convert_optab_handler
21736         and set_convert_optab_handler.
21737         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
21738         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
21739         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
21740         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
21741         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
21742         config/spu/spu.c: Likewise.
21743
21744 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21745
21746         PR target/44531
21747         * config.gcc (sh*-*-*): Use regular expressions instead of
21748         the 'i' modifier for sed substitutions.
21749
21750 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
21751
21752         * gimple.c (gimple_body): Comments added.
21753
21754 2010-07-04  Richard Guenther  <rguenther@suse.de>
21755
21756         PR middle-end/44809
21757         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
21758         of an INDIRECT_REF.
21759
21760 2010-07-04  Richard Guenther  <rguenther@suse.de>
21761
21762         PR tree-optimization/44479
21763         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
21764         extra SSA name copy statements which preserves points-to
21765         information.
21766         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21767         Copy points-to information for all pointers.  Properly handle
21768         MEM_REFs.
21769         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
21770         copy statements.
21771         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
21772         dependency.
21773
21774 2010-07-04  Richard Guenther  <rguenther@suse.de>
21775
21776         PR middle-end/44785
21777         * tree-inline.c (initialize_inlined_parameters): Do not
21778         re-use pointer-map slot over remap_type call.
21779
21780 2010-07-04  Richard Guenther  <rguenther@suse.de>
21781
21782         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
21783
21784 2010-07-04  Richard Guenther  <rguenther@suse.de>
21785
21786         PR tree-optimization/44656
21787         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
21788         again after value-replacing in the defintions lhs.
21789
21790 2010-07-04  Ira Rosen  <irar@il.ibm.com>
21791             Revital Eres  <eres@il.ibm.com>
21792
21793         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
21794         Document new arguments.
21795         * doc/tm.texi: Regenerate.
21796         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
21797         Handle unaligned store.
21798         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
21799         * target.def (builtin_vectorization_cost): Add new arguments.
21800         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
21801         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
21802         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
21803         (vect_vfa_segment_size): Fix indentation.
21804         * tree-vectorizer.h (struct _vect_peel_info): New.
21805         (struct _vect_peel_extended_info): New.
21806         (struct _loop_vec_info): Add new field for peeling hash table and a
21807         macro for its access.
21808         (VECT_MAX_COST): Define.
21809         (vect_get_load_cost): Declare.
21810         (vect_get_store_cost, vect_get_known_peeling_cost,
21811         vect_get_single_scalar_iteraion_cost): Likewise.
21812         (vect_supportable_dr_alignment): Add new argument.
21813         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
21814         field.
21815         (destroy_loop_vec_info): Free peeling hash table.
21816         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
21817         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
21818         vect_analyze_slp. Fix indentation.
21819         (vect_get_single_scalar_iteraion_cost): New function.
21820         (vect_get_known_peeling_cost): Likewise.
21821         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
21822         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
21823         statement. Move outside cost calculation inside unknown peeling case.
21824         Call vect_get_known_peeling_cost for known amount of peeling.
21825         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
21826         reference to the print message of forced alignment.
21827         (vect_verify_datarefs_alignment): Update call to
21828         vect_supportable_dr_alignment.
21829         (vect_get_data_access_cost): New function.
21830         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
21831         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
21832         vect_peeling_hash_choose_best_peeling): Likewise.
21833         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
21834         to store all the accesses in the loop and find best possible access to
21835         align using peeling for known alignment case. For unknown alignment
21836         check if stores are preferred or if peeling is worthy.
21837         (vect_find_same_alignment_drs): Analyze pairs of loads too.
21838         (vect_supportable_dr_alignment): Add new argument and check aligned
21839         accesses according to it.
21840         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
21841         (cost_for_stmt): Call vect_get_stmt_cost.
21842         (vect_model_simple_cost): Likewise.
21843         (vect_model_store_cost): Call vect_get_stmt_cost. Call
21844         vect_get_store_cost to calculate the cost of the statement.
21845         (vect_get_store_cost): New function.
21846         (vect_model_load_cost): Call vect_get_stmt_cost. Call
21847         vect_get_load_cost to calculate the cost of the statement.
21848         (vect_get_load_cost): New function.
21849         (vectorizable_store): Update call to vect_supportable_dr_alignment.
21850         (vectorizable_load): Likewise.
21851         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
21852         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
21853         arguments. Handle unaligned store.
21854         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
21855         (rs6000_builtin_support_vector_misalignment): Return true for word and
21856         double word alignments for VSX.
21857         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
21858         vect_supportable_dr_alignment and builtin_vectorization_cost.
21859
21860 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21861
21862         PR target/44597
21863         * config/pa/predicates.md (prefetch_cc_operand): Remove.
21864         (prefetch_nocc_operand): Likewise.
21865         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
21866         (prefetch_20): New insn.
21867         (prefetch_cc): Remove.
21868         (prefetch_nocc): Likewise.
21869
21870 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21871
21872         * expr.c (vector_mode_valid_p): Move to c-common.c.
21873         * expr.h (vector_mode_valid_p): Do not declare here.
21874         * system.h: Poison GCC_EXPR_H in front-ends.
21875         * Makefile.in: Update dependencies.
21876
21877 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21878
21879         PR target/44705
21880         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
21881
21882 2010-07-03  Jan Hubicka  <jh@suse.cz>
21883
21884         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
21885         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
21886         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
21887         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
21888         Likewise.
21889
21890         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
21891         Update timevars.V
21892         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
21893         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
21894         TV_IPA_LTO_DECL_OUT): New.
21895         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
21896
21897 2010-07-03  Jan Hubicka  <jh@suse.cz>
21898
21899         * ipa-inline.c (update_edge_key): Break out from ...
21900         update_callers_keys): ... here;
21901         (update_callee_keys): Update only the edges from caller to callee.
21902         (update_all_calle_keys): Do what update_calle_keys did.
21903         (decide_inlining_of_small_functions): Avoid recomputing of all
21904         callees when badness increase.
21905
21906 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21907
21908         * config/arm/arm.c (arm_attr_length_move_neon): New.
21909         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
21910         * config/arm/neon.md (define_mode_attr V_slen): Remove.
21911         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
21912         to compute length attribute.
21913
21914 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21915
21916         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
21917         as predicate for operand 1 and remove its constraint.
21918         * config/arm/predicates.md (vfp_register_operand): New.
21919         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
21920         (*push_fp_multi): Likewise.
21921
21922 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
21923
21924         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
21925
21926 2010-07-03  Jan Hubicka  <jh@suse.cz>
21927
21928         * config/i386/i386.c (override_options): Revert accidental commit.
21929
21930 2010-07-02  Le-Chun Wu  <lcwu@google.com>
21931
21932         PR c++/44128
21933         * doc/invoke.texi: Update documentation of -Wshadow.
21934
21935 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
21936             Julian Brown  <julian@codesourcery.com>
21937             Sandra Loosemore  <sandra@codesourcery.com>
21938
21939         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
21940         comparisons.  Adjust to take both operands.
21941         (arm_select_cc_mode): Handle DImode comparisons.
21942         (arm_gen_compare_reg): Generate a scratch register for DImode
21943         comparisons which require one.  Use xor for Thumb equality checks.
21944         (arm_const_double_by_immediates): New.
21945         (arm_print_operand): Allow 'Q' and 'R' for constants.
21946         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
21947         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
21948         arm_canonicalize_comparison.
21949         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
21950         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
21951         prototype.
21952         (arm_const_double_by_immediates): Declare.
21953         * config/arm/constraints.md (Di): New constraint.
21954         * config/arm/predicates.md (arm_immediate_di_operand)
21955         (arm_di_operand, cmpdi_operand): New.
21956         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
21957         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
21958         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
21959         (cstoredi4): Handle non-Cirrus also.
21960
21961 2010-07-02  Julian Brown  <julian@codesourcery.com>
21962             Sandra Loosemore  <sandra@codesourcery.com>
21963
21964         PR target/43703
21965         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
21966         (smax<mode>3): Disable for NEON float modes when
21967         flag_unsafe_math_optimizations is false.
21968         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
21969         (*mul<mode>3_neon)
21970         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
21971         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
21972         for NEON float modes when flag_unsafe_math_optimizations is false.
21973         (quad_halves_<code>v4sf): Only enable if
21974         flag_unsafe_math_optimizations is true.
21975         * doc/invoke.texi (ARM Options): Add note about floating point
21976         vectorization requiring -funsafe-math-optimizations.
21977
21978 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21979             Julian Brown  <julian@codesourcery.com>
21980
21981         * config/arm/neon.md (UNSPEC_VABA): Delete.
21982         (UNSPEC_VABAL): Delete.
21983         (UNSPEC_VABS): Delete.
21984         (UNSPEC_VMUL_N): Delete.
21985         (adddi3_neon): New.
21986         (subdi3_neon): New.
21987         (mul<mode>3add<mode>_neon): Make the pattern named.
21988         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
21989         (neon_vadd<mode>): Replace with define_expand, and move the remaining
21990         unspec parts...
21991         (neon_vadd<mode>_unspec): ...to this.
21992         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
21993         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
21994         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
21995         (neon_vaba<mode>): Rewrite in terms of vabd.
21996         (neon_vabal<mode>): Rewrite in terms of vabdl.
21997         (neon_vabs<mode>): Rewrite without unspec.
21998         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
21999         (*arm_subdi3): Likewise.
22000         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
22001         No_op attribute to disable assembly output checks.
22002         * config/arm/arm_neon.h: Regenerated.
22003         * doc/arm-neon-intrinsics.texi: Regenerated.
22004
22005 2010-07-02  Jan Hubicka  <jh@suse.cz>
22006
22007         * ipa-split.c (split_function): For aggregate values, set the return
22008         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
22009         *<retval> = fncall.part ().
22010         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
22011
22012 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
22013
22014         * config/arm/neon.md (UNSPEC_VAND): Delete.
22015         (UNSPEC_VBIC): Delete.
22016         (UNSPEC_VCLZ): Delete.
22017         (UNSPEC_VCNT): Delete.
22018         (UNSPEC_VEOR): Delete.
22019         (UNSPEC_VORN): Delete.
22020         (UNSPEC_VORR): Delete.
22021         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
22022         core registers too.
22023         (anddi3_neon): Likewise.
22024         (orndi3_neon): Likewise.
22025         (bicdi3_neon): Likewise.
22026         (xordi3_neon): Likewise.
22027         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
22028         rid of unspec and handle unused operand.
22029         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
22030         * config/arm/predicates.md (imm_for_neon_logic_operand):
22031         Require TARGET_NEON.
22032         (imm_for_neon_inv_logic_operand): Likewise.
22033         * config/arm/arm.md (define_split for logical_binary_operator):
22034         Disable for NEON registers.
22035         (anddi3): Add new define_expand, and rename the insn.  Disable
22036         this insn for NEON, where anddi3_neon now applies.
22037         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
22038         (iordi3): As for anddi3.
22039         (xordi3): Likewise.
22040         * config/arm/neon.ml (Vand): Split DImode variants and mark them
22041         as No_op to disable testing for exact instruction match.
22042         (Vorr): Likewise.
22043         (Veor): Likewise.
22044         (Vbic): Likewise.
22045         (Vorn): Likewise.
22046         * config/arm/arm_neon.h: Regenerated.
22047         * doc/arm-neon-intrinsics.texi: Regenerated.
22048
22049 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
22050
22051         * expr.h (emit_stack_probe): Declare.
22052         * explow.c (emit_stack_probe): Make global.
22053         (anti_adjust_stack_and_probe): Fix comments.
22054         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
22055         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22056         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22057         * config/sparc/sparc.c: Include except.h.
22058         (sparc_emit_probe_stack_range): New function.
22059         (output_probe_stack_range): Likewise.
22060         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
22061         built-in stack checking is enabled.
22062         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
22063         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
22064         (probe_stack_range): New insn.
22065
22066 2010-07-02  Richard Guenther  <rguenther@suse.de>
22067
22068         PR target/43958
22069         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
22070         for argument alignment.
22071
22072 2010-07-02  Jan Hubicka  <jh@suse.cz>
22073
22074         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
22075         walk backwards from entry_bb to check only those basic block of header
22076         that might lead to execution of split part.
22077         (consider_split) ... here.
22078         (find_return_bb): Allow assignment in return BB.
22079         (find_retval): New.
22080         (split_function): Fix name of cloned function; take care of updating
22081         return value in return_bb containing move.
22082
22083 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
22084
22085         PR target/44771
22086         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
22087         used variable insn.
22088
22089 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
22090
22091         * implicit-zee.c (combine_reaching_defs): Fix long lines.
22092         (is_set_with_extension_DI): Delete.
22093         (struct zero_extend_info): New structure.
22094         (add_removable_zero_extend): New function.
22095         (find_removable_zero_extends): Use note_stores to find SETs.
22096         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
22097
22098 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
22099
22100         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
22101         is_miss_rate_acceptable. Pull total_positions computation
22102         out of the loops.  Early return if miss_positions exceeds
22103         the acceptable threshold.
22104         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
22105         is_miss_rate_acceptable after renaming of compute_miss_rate.
22106
22107 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
22108
22109         PR middle-end/44576
22110         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
22111         of 1000) for miss rate if the address diference is greater than or
22112         equal to the cache line size (the two reference will never hit the
22113         same cache line).
22114
22115 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
22116
22117         PR target/42835
22118         * config/arm/arm-modes.def (CC_NOTB): New mode.
22119         * config/arm/arm.c (get_arm_condition_code): Handle it.
22120         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
22121         * config/arm/arm.md (subsi3_compare0_c): New pattern.
22122         (compare_scc): Now a define_and_split.  Add a number of extra
22123         splitters before it.
22124
22125         PR target/42172
22126         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
22127         and ZERO_EXTEND.
22128         (arm_rtx_costs_1): Likewise.
22129         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
22130         * config/arm/arm.md (is_arch6): New attribute.
22131         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
22132         extendqisi2): Tighten the code somewhat, avoiding invalid
22133         RTL to occur in the expander patterns.
22134         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
22135         (thumb1_zero_extendhisi2_v6): Delete.
22136         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
22137         (thumb1_extendhisi2_v6): Delete.
22138         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
22139         (thumb1_extendqisi2_v6): Delete.
22140         (zero_extendhisi2 for register input splitter): New.
22141         (zero_extendqisi2 for register input splitter): New.
22142         (thumb1_extendhisi2 for register input splitter): New.
22143         (extendhisi2 for register input splitter): New.
22144         (extendqisi2 for register input splitter): New.
22145         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
22146         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
22147         and add support for a register alternative requiring a split.
22148         (thumb1_zero_extendqisi2): Likewise.
22149         (arm_zero_extendqisi2): Likewise.
22150         (arm_extendhisi2): Likewise.
22151         (arm_extendqisi2): Likewise.
22152
22153 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
22154
22155         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
22156         instead of an unspec.
22157         (neon_expand_vector_init): Likewise.
22158         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
22159         (UNSPEC_VDUP_LANE): Delete.
22160         (UNSPEC VDUP_N): Delete.
22161         (UNSPEC_VGET_HIGH): Delete.
22162         (UNSPEC_VGET_LANE): Delete.
22163         (UNSPEC_VGET_LOW): Delete.
22164         (UNSPEC_VMVN): Delete.
22165         (UNSPEC_VSET_LANE): Delete.
22166         (V_double_vector_mode): New.
22167         (vec_set<mode>_internal): Make code emitted match that for the
22168         corresponding intrinsics.
22169         (vec_setv2di_internal): Likewise.
22170         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
22171         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
22172         (neon_vset_lane<mode>): Combine double and quad patterns and
22173         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
22174         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
22175         (neon_vdup_n<mode>): Rewrite RTL without unspec.
22176         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
22177         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
22178         with neon_vdup_lanev2di, adjusting the pattern from the latter
22179         to be predicable for consistency.
22180         (neon_vdup_lane<mode>_internal): New.
22181         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
22182         to avoid using an unspec.
22183         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
22184         (neon_vdup_lanev2di): Turn into a define_expand.
22185         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
22186         (neon_vget_high<mode>): Replace with....
22187         (neon_vget_highv16qi): New pattern using canonical RTL.
22188         (neon_vget_highv8hi): Likewise.
22189         (neon_vget_highv4si): Likewise.
22190         (neon_vget_highv4sf): Likewise.
22191         (neon_vget_highv2di): Likewise.
22192         (neon_vget_low<mode>): Replace with....
22193         (neon_vget_lowv16qi): New pattern using canonical RTL.
22194         (neon_vget_lowv8hi): Likewise.
22195         (neon_vget_lowv4si): Likewise.
22196         (neon_vget_lowv4sf): Likewise.
22197         (neon_vget_lowv2di): Likewise.
22198
22199         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
22200         test for this emitting vmov.
22201         (Vset_lane): Likewise.
22202         (Vdup_n): Likewise.
22203         (Vmov_n): Likewise.
22204
22205         * doc/arm-neon-intrinsics.texi: Regenerated.
22206
22207 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
22208
22209         * config/arm/neon.md (vec_extractv2di): Correct error in register
22210         numbering to reconcile with neon_vget_lanev2di.
22211
22212 2010-07-02  Richard Guenther  <rguenther@suse.de>
22213
22214         * tree-ssa-structalias.c (pt_solution_set_var): New function.
22215         * tree-ssa-alias.h (pt_solution_set_var): Declare.
22216         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
22217         points-to information.
22218
22219 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
22220
22221         * config/s390/s390.c (override_options): Adopt prefetching
22222         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
22223
22224 2010-07-02  Jan Hubicka  <jh@suse.cz>
22225
22226         * df-problems.c (df_kill_notes): Do not collect dead  notes.
22227         (df_set_note): Just call add_reg_note.
22228         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
22229         df_create_unused_note): Do not deal with lists of old notes.
22230         (df_note_bb_compute): Likewise.
22231
22232 2010-07-02  Richard Guenther  <rguenther@suse.de>
22233
22234         * tree-ssa-structalias.c (find_func_aliases): Handle
22235         pointer alignment via BIT_AND_EXPR.
22236         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
22237
22238 2010-07-02  Richard Guenther  <rguenther@suse.de>
22239
22240         * tree-data-ref.c (initialize_data_dependence_relation): Handle
22241         mismatching number of dimensions properly.
22242
22243 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22244
22245         PR target/44707
22246         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
22247         (lo_sum (high ...) ...) patterns generated by earlier passes.
22248
22249 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22250
22251         * doc/install.texi (Prerequisites): Document Perl requirement on
22252         Solaris 2.
22253         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
22254
22255 2010-07-02  Richard Guenther  <rguenther@suse.de>
22256
22257         PR middle-end/44777
22258         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
22259
22260 2010-07-02  Jan Hubicka  <jh@suse.cz>
22261
22262         PR middle-end/44706
22263         * predict.c (predict_paths_for_bb): Handle case when control dependence
22264         BB has only abnormal edges.
22265
22266 2010-07-02  Richard Guenther  <rguenther@suse.de>
22267
22268         PR tree-optimization/44748
22269         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
22270         the embedded conversion in MEM_REFs.
22271
22272 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
22273
22274         * reload.c: Include toplev.h.
22275         * recog.c:  Likewise.
22276         * Makefile.in: Adjust dependencies.
22277
22278 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
22279
22280         PR debug/44694
22281         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
22282         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
22283
22284 2010-07-01  Richard Guenther  <rguenther@suse.de>
22285
22286         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
22287         types for offsets.
22288
22289 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
22290
22291         PR target/44732
22292         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
22293         Fix argument types.
22294
22295 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
22296
22297         PR target/44727
22298         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22299         Make sure operand 0 dies.
22300
22301 2010-07-01  Richard Guenther  <rguenther@suse.de>
22302
22303         PR middle-end/42834
22304         PR middle-end/44468
22305         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
22306         * doc/generic.texi (References to storage): Document MEM_REF.
22307         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
22308         (print_call_name): Likewise.
22309         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
22310         (build_simple_mem_ref_loc): New function.
22311         (mem_ref_offset): Likewise.
22312         * tree.h (build_simple_mem_ref_loc): Declare.
22313         (build_simple_mem_ref): Define.
22314         (mem_ref_offset): Declare.
22315         * fold-const.c: Include tree-flow.h.
22316         (operand_equal_p): Handle MEM_REF.
22317         (build_fold_addr_expr_with_type_loc): Likewise.
22318         (fold_comparison): Likewise.
22319         (fold_unary_loc): Fold
22320         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
22321         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
22322         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
22323         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
22324         (ptr_deref_may_alias_ref_p_1): Likewise.
22325         (ao_ref_base_alias_set): Properly differentiate base object for
22326         offset and TBAA.
22327         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
22328         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
22329         (indirect_refs_may_alias_p): Likewise.
22330         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
22331         chasing code.
22332         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
22333         (call_may_clobber_ref_p_1): Likewise.
22334         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
22335         * expr.c (expand_assignment): Handle MEM_REF.
22336         (store_expr): Handle MEM_REFs from STRING_CSTs.
22337         (store_field): If expanding a MEM_REF of a non-addressable
22338         decl use bitfield operations.
22339         (get_inner_reference): Handle MEM_REF.
22340         (expand_expr_addr_expr_1): Likewise.
22341         (expand_expr_real_1): Likewise.
22342         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
22343         * alias.c (ao_ref_from_mem): Handle MEM_REF.
22344         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
22345         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
22346         (dr_analyze_indices): Likewise.
22347         (dr_analyze_alias): Likewise.
22348         (object_address_invariant_in_loop_p): Likewise.
22349         * gimplify.c (mark_addressable): Handle MEM_REF.
22350         (gimplify_cond_expr): Build MEM_REFs.
22351         (gimplify_modify_expr_to_memcpy): Likewise.
22352         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
22353         (gimple_fold_indirect_ref): Adjust.
22354         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
22355         * tree.def (MEM_REF): New tree code.
22356         * tree-dfa.c: Include toplev.h.
22357         (get_ref_base_and_extent): Handle MEM_REF.
22358         (get_addr_base_and_unit_offset): New function.
22359         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
22360         * gimple-fold.c (may_propagate_address_into_dereference): Handle
22361         MEM_REF.
22362         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
22363         accesses if the array has just one dimension.  Remove always true
22364         parameter.  Do not require type compatibility here.
22365         (maybe_fold_offset_to_component_ref): Remove.
22366         (maybe_fold_stmt_indirect): Remove.
22367         (maybe_fold_reference): Remove INDIRECT_REF handling.
22368         Fold back to non-MEM_REF.
22369         (maybe_fold_offset_to_address): Simplify.  Deal with type
22370         mismatches here.
22371         (maybe_fold_reference): Likewise.
22372         (maybe_fold_stmt_addition): Likewise.  Also handle
22373         &ARRAY + I in addition to &ARRAY[0] + I.
22374         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
22375         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
22376         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
22377         * tree-ssa.c (useless_type_conversion_p): Make most pointer
22378         conversions useless.
22379         (warn_uninitialized_var): Handle MEM_REF.
22380         (maybe_rewrite_mem_ref_base): New function.
22381         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
22382         to SSA form.
22383         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
22384         INDIRECT_REF handling.
22385         (copy_tree_body_r): Handle MEM_REF.
22386         * gimple.c (is_gimple_addressable): Adjust.
22387         (is_gimple_address): Likewise.
22388         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
22389         invariant base are invariant.
22390         (is_gimple_min_lval): Adjust.
22391         (is_gimple_mem_ref_addr): New function.
22392         (get_base_address): Handle MEM_REF.
22393         (count_ptr_derefs): Likewise.
22394         (get_base_loadstore): Likewise.
22395         * gimple.h (is_gimple_mem_ref_addr): Declare.
22396         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
22397         * tree-cfg.c (verify_address): New function, split out from ...
22398         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
22399         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
22400         INDIRECT_REFs.
22401         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
22402         INDIRECT_REF.  Allow conversions.
22403         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
22404         a register does not change its size.
22405         (verify_types_in_gimple_reference): Verify MEM_REF.
22406         (verify_gimple_assign_single): Disallow INDIRECT_REF.
22407         Handle MEM_REF.
22408         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
22409         New.
22410         (mark_address_taken): Handle MEM_REF.
22411         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
22412         (get_asm_expr_operands): Pass opf_not_non_addressable.
22413         (get_expr_operands): Handle opf_[not_]non_addressable.
22414         Handle MEM_REF.  Remove INDIRECT_REF handling.
22415         * tree-vrp.c (check_array_ref): Handle MEM_REF.
22416         (search_for_addr_array): Likewise.
22417         (check_array_bounds): Likewise.
22418         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
22419         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
22420         (ref_always_accessed_p): Likewise.
22421         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
22422         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
22423         Handle MEM_REF.
22424         * cgraphbuild.c (mark_load): Properly check for NULL result
22425         from get_base_address.
22426         (mark_store): Likewise.
22427         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
22428         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
22429         handling for MEM_REF.
22430         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
22431         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
22432         * builtins.c (stabilize_va_list_loc): Use the function ABI
22433         valist type if we couldn't canonicalize the argument type.
22434         Always dereference with the canonical va-list type.
22435         (maybe_emit_free_warning): Handle MEM_REF.
22436         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
22437         memmove to memcpy.
22438         * builtins.c (fold_builtin_memory_op): Use ref-all types
22439         for all memcpy foldings.
22440         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
22441         (build_outer_var_ref): Likewise.
22442         (scan_omp_1_op): Likewise.
22443         (lower_rec_input_clauses): Likewise.
22444         (lower_lastprivate_clauses): Likewise.
22445         (lower_reduction_clauses): Likewise.
22446         (lower_copyprivate_clauses): Likewise.
22447         (expand_omp_atomic_pipeline): Likewise.
22448         (expand_omp_atomic_mutex): Likewise.
22449         (create_task_copyfn): Likewise.
22450         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
22451         Remove old union trick.  Initialize constant offsets.
22452         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
22453         INDIRECT_REF.  Init base_alias_set properly.
22454         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
22455         (vn_reference_fold_indirect): Adjust for MEM_REFs.
22456         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
22457         for ARRAY_REFs.
22458         (may_insert): Remove.
22459         (visit_reference_op_load): Do not test may_insert.
22460         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
22461         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
22462         a field to store the constant offset this op applies.
22463         (run_scc_vn): Adjust prototype.
22464         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
22465         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
22466         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
22467         bother about volatile qualifiers on pointers.
22468         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
22469         * tree-ssa-loop-ivopts.c
22470         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
22471         (strip_offset_1): Likewise.
22472         (find_interesting_uses_address): Replace INDIRECT_REF handling with
22473         MEM_REF handling.
22474         (get_computation_cost_at): Likewise.
22475         * ipa-pure-const.c (check_op): Handle MEM_REF.
22476         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
22477         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
22478         and constants.
22479         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
22480         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
22481         (eliminate_local_variables_1): Likewise.
22482         (create_call_for_reduction_1): Likewise.
22483         (create_loads_for_reductions): Likewise.
22484         (create_loads_and_stores_for_name): Likewise.
22485         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
22486         (ssa_accessed_in_tree): Handle MEM_REF.
22487         (ssa_accessed_in_assign_rhs): Likewise.
22488         (update_type_size): Likewise.
22489         (analyze_accesses_for_call_stmt): Likewise.
22490         (analyze_accesses_for_assign_stmt): Likewise.
22491         (transform_access_sites): Likewise.
22492         (transform_allocation_sites): Likewise.
22493         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
22494         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
22495         not handle INDIRECT_REF.
22496         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
22497         (cond_store_replacement): Likewise.
22498         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
22499         MEM_REF, no not handle INDIRECT_REFs.
22500         (insert_into_preds_of_block): Properly initialize avail.
22501         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
22502         for ARRAY_REFs.  Properly handle reference lookups that
22503         require a bit re-interpretation.
22504         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
22505         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
22506         (build_ref_for_offset_1): Remove.
22507         (build_ref_for_offset): Build MEM_REFs.
22508         (gate_intra_sra): Disable for now.
22509         (sra_ipa_modify_expr): Handle MEM_REF.
22510         (ipa_early_sra_gate): Disable for now.
22511         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
22512         MEM_REF handling.
22513         (disqualify_base_of_expr): Likewise.
22514         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
22515         MEM_REF handling.
22516         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
22517         Use mem_ref_offset.  Remove bogus folding.
22518         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
22519         (make_fancy_name_1): Add support for MEM_REF.
22520         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
22521         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
22522         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
22523         (compute_complex_ancestor_jump_func): Likewise.
22524         (ipa_analyze_virtual_call_uses): Likewise.
22525         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
22526         INDIRECT_REF folding with more generalized MEM_REF folding.
22527         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
22528         (forward_propagate_addr_into_variable_array_index): Also handle
22529         &ARRAY + I in addition to &ARRAY[0] + I.
22530         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
22531         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
22532         creates assignments with overlap.
22533         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
22534         (get_frame_field): Likewise.
22535         (get_nonlocal_debug_decl): Likewise.
22536         (convert_nonlocal_reference_op): Likewise.
22537         (struct nesting_info): Add mem_refs pointer-set.
22538         (create_nesting_tree): Allocate it.
22539         (convert_local_reference_op): Insert to be folded mem-refs.
22540         (fold_mem_refs): New function.
22541         (finalize_nesting_tree_1): Perform defered folding of mem-refs
22542         (free_nesting_tree): Free the pointer-set.
22543         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
22544         (vectorizable_load): Likewise.
22545         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
22546         (propagate_with_phi): Likewise.
22547         * tree-object-size.c (addr_object_size): Handle MEM_REFs
22548         instead of INDIRECT_REFs.
22549         (compute_object_offset): Handle MEM_REF.
22550         (plus_stmt_object_size): Handle MEM_REF.
22551         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
22552         for &MEM_REF.
22553         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
22554         (symbol_marked_for_renaming): Likewise.
22555         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
22556         (fold-const.o): Add $(TREE_FLOW_H).
22557         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
22558         (find_func_clobbers): Likewise.
22559         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
22560         (decompose_access): Likewise.
22561         (replace_field_acc): Likewise.
22562         (replace_field_access_stmt): Likewise.
22563         (insert_new_var_in_stmt): Likewise.
22564         (get_stmt_accesses): Likewise.
22565         (reorg_structs_drive): Disable.
22566         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
22567         (ix86_canonical_va_list_type): Likewise.
22568
22569 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
22570
22571         PR other/44566
22572         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
22573         * target.def (struct gcc_target): Replace enum reg_class with
22574         reg_class_t in hook argument / return types.
22575         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
22576         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
22577         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
22578         * targhooks.h (default_branch_target_register_class): Likewise.
22579         (default_ira_cover_classes, default_secondary_reload): Likewise.
22580         (default_memory_move_cost, default_register_move_cost): Likewise.
22581         * targhooks.c (default_branch_target_register_class): Likewise.
22582         (default_ira_cover_classes, default_secondary_reload): Likewise.
22583         (default_memory_move_cost, default_register_move_cost): Likewise.
22584         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
22585         * bt-load.c (branch_target_load_optimize): Likewise.
22586         * ira.c (setup_cover_and_important_classes): Likewise.
22587         * ira-costs.c (copy_cost): Likewise.
22588         * reload1.c (emit_input_reload_insns): Likewise.
22589         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22590         * config/frv/frv.c (frv_secondary_reload): Likewise.
22591         * config/s390/s390.c (s390_secondary_reload): Likewise.
22592         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
22593         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
22594         (ix86_register_move_cost): Likewise.
22595         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
22596         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
22597         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
22598         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
22599         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
22600         (rs6000_ira_cover_classes): Likewise.
22601         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
22602         * config/picochip/picochip-protos.h (picochip_secondary_reload):
22603         Likewise.
22604         * config/pa/pa.c (pa_secondary_reload): Likewise.
22605         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
22606         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
22607         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
22608         * doc/tm.texi: Regenerate.
22609
22610 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
22611
22612         PR bootstrrap/44726
22613         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
22614         use.
22615         (build_alias_set_optimal_p): Likewise.
22616         (build_base_obj_set_for_drs): Likewise.
22617
22618 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
22619
22620         * target.def: Remove comment about licensing problems of function
22621         declarations.
22622
22623         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
22624         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
22625         * doc/tm.texi: Regenerate.
22626
22627         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
22628         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
22629
22630         * target.def (enum_va_list_p): Use DEFHOOK.
22631         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
22632         Rename ptype to ptree.
22633         * doc/tm.texi: Regenerate.
22634
22635         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
22636         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
22637         * doc/tm.texi: Regenerate.
22638
22639         * target.def (memory_move_cost): Use DEFHOOK.
22640         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
22641         Rename regclass AKA class to rclass.
22642         * doc/tm.texi: Regenerate.
22643
22644         * target.def (pragma_parse): Use DEFHOOK.
22645         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
22646         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
22647         * doc/tm.texi: Regenerate.
22648
22649         * target.def (pass_by_reference): Use DEFHOOK.
22650         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
22651         * doc/tm.texi: Regenerate.
22652
22653         * target.def (resolve_overloaded_builtin): Rename params to arglist.
22654         Use DEFHOOK.
22655         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
22656         * doc/tm.texi: Regenerate.
22657
22658         * target.def (return_pops_args): Use DEFHOOK.
22659         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
22660         Rename stack-size to size.
22661         * doc/tm.texi: Regenerate.
22662
22663         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
22664         last-sched_cycle to last_clock, cur_cycle to clock.
22665         * doc/tm.texi.in: Use @hook.
22666         * doc/tm.texi: Regenerate.
22667
22668         * target.def (print_operand, print_operand_address): Update comment.
22669         (print_operand_punct_valid_p): Likewise.
22670
22671 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22672
22673         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
22674         to rtl.h.
22675         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
22676         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
22677         * rtl-error.h: New.
22678         * regrename.c: Do not include toplev.h. Include rtl-error.h.
22679         * rtl-error.c: Likewise.
22680         * reload.c: Likewise.
22681         * recog.c:  Likewise.
22682         * sel-sched.c: Likewise.
22683         * function.c: Likewise.
22684         * reg-stack.c: Likewise.
22685         * cfgrtl.c: Likewise.
22686         * reload1.c: Likewise.
22687         * final.c: Include rtl-error.
22688         * Makefile.in: Adjust dependencies.
22689
22690 2010-06-30  Jan Hubicka  <jh@suse.cz>
22691
22692         PR middle-end/PR44706
22693         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
22694         to return the value.
22695
22696 2010-06-30  Michael Matz  <matz@suse.de>
22697
22698         PR bootstrap/44699
22699         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
22700         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
22701         a gimple reg, attach the original VDEF to the last store in the
22702         sequence.
22703
22704 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
22705
22706         PR other/44034
22707         * config/darwin.c (darwin_override_options): Use renamed
22708         targetm.asm_out.emit_unwind_label.
22709
22710 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
22711
22712         PR tree-optimization/39799
22713         * tree-inline.c (remap_ssa_name): Initialize variable only if
22714         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22715
22716 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
22717
22718         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
22719
22720 2010-06-30  Richard Guenther  <rguenther@suse.de>
22721
22722         PR target/44722
22723         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
22724         against oscillation with reverse peephole2.
22725
22726 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22727
22728         PR target/44721
22729         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22730         Fix last commit.
22731
22732 2010-06-30  Nick Clifton  <nickc@redhat.com>
22733
22734         * config/rx/rx-modes.def: New file.
22735         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
22736         (CC_REGNUM): Define.
22737         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
22738         register.
22739         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
22740         (SELECT_CC_MODE): Define.
22741         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
22742         (reg:CC CC_REG) instead of (cc0).
22743         (attr "cc"): Delete.
22744         (cbranchsi4): Do not split compare and branch here. Instead move
22745         it to...
22746         (cbranchsi4_<code>): ... here.  New patterns.
22747         (cmpsi): Call rx-compare_redundant to find out if it is necessary
22748         to emit the compare instruction.
22749         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
22750         cc_status flags.
22751         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
22752         FIRST_PSEUDO_REGNUM.
22753         (rx_expand_prologue, rx_expand_epilogue): Likewise.
22754         (rx_notice_update_cc): Delete.
22755         (rx_cc_modes_compatible): New function.
22756         (flags_needed_for_conditional): New function.
22757         (flags_from_mode): New function.
22758         (rx_compare_redundant): New function - scans backwards through
22759         insn list to find out if condition flags are already set correctly.
22760         (TARGET_CC_MODES_COMPATIBLE): Define.
22761         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
22762
22763         * config/rx/rx.h (BRANCH_COST): Define.
22764         (REGISTER_MOVE_COST): Define.
22765         * config/rx/predicates (rx_source_operand): Allow all constant types.
22766         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
22767         (tstsi4): New pattern.
22768         * config/rx/rx.c (rx_memory_move_cost): Define.
22769         (TARGET_MEMORY_MOVE_COST): Define.
22770
22771 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22772
22773         * tree.h (block_may_fallthru): Declare here.
22774         * tree-flow.h (block_may_fallthru): Do not declare here.
22775         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
22776         bitmap.h
22777         * Makefile.in (c-typeck.o): Update dependencies.
22778
22779 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
22780
22781         PR debug/44694
22782         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
22783         * cselib.c (cfa_base_preserved_regno): New static variable.
22784         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
22785         of REGNO (cfa_base_preserved_val->locs->loc).
22786         (cselib_preserve_cfa_base_value): Add regno argument, set
22787         cfa_base_preserved_regno to it.
22788         (cselib_invalidate_regno): Allow removal of registers other than
22789         cfa_base_preserved_regno from cfa_base_preserved_val.
22790         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
22791         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
22792         of MEM addresses, if not on LHS.
22793         (reverse_op): Don't add reverse ops for cfa_base_rtx.
22794         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
22795
22796 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
22797
22798         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
22799         static variables.
22800         (peep2_buf_position): New static function.
22801         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
22802         peephole2_optimize): Use it.
22803         (peep2_attempt, peep2_update_life): New static functions, broken out
22804         of peephole2_optimize.
22805         (peep2_fill_buffer): New static function.
22806         (peephole2_optimize): Change the main loop to try to fill the buffer
22807         with the maximum number of insns before matching them against
22808         peepholes.  Use a forward scan.  Remove special case for targets with
22809         conditional execution.
22810         * genrecog.c (change_state): Delete dead code.
22811         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22812         Rewrite so as not to expect the second insn to have had a peephole
22813         applied yet.
22814
22815 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22816
22817         * genhooks.c (emit_findices): Cast field precision to int.
22818         (emit_documentation): Likewise.
22819
22820 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
22821
22822         PR tree-optimization/43801
22823         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
22824         if old_decl was DECL_ONE_ONLY.
22825
22826         PR debug/44668
22827         * dwarf2out.c (add_accessibility_attribute): New function.
22828         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
22829         instead of adding DW_AT_accessibility manually.
22830         (gen_enumeration_type_die, gen_struct_or_union_type_die,
22831         gen_typedef_die): Use it.
22832
22833 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22834
22835         * vmsdbgout.c (full_name): Just output the file name if not native.
22836
22837 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22838
22839         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
22840         (funcnam_table): New static table.
22841         (funcnum_table): New static table.
22842         (write_rtnbeg): Write value saved in funcnum_table.
22843         (write_rtnend): Write value saved in funcnum_table.
22844         (vmsdbgout_begin_function): Save current function info in
22845         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
22846         (vmsdbgout_finish): Iterate over funcnum_table.
22847
22848 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22849
22850         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
22851         (vmsdbgout_type_decl): Declare
22852         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
22853         (FUNC_EPILOGUE_LABEL): New macro
22854         (vmsdbgout_begin_epilogue): New function.
22855         (vmsdbgout_type_decl): New function.
22856
22857 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22858
22859         * vmsdbg.h: Update copyright.
22860
22861 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22862
22863         * vmsdbg.h (DST_K_TBG): New DST constant.
22864         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
22865         (write_modbeg): Cast module_language to avoid warning.
22866         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
22867
22868 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22869
22870         PR other/44034
22871         * target.def, doc/tm.texi.in, genhooks.c: New files.
22872         * target.h: Instead of defining individual hook members,
22873         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
22874         include target.def.
22875         * target-def.h: Instead of defining individual hook initializers,
22876         include target-hooks-def.h.
22877         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
22878         targetm.live_on_entry -> targetm.extra_live_on_entry
22879         targetm.sched.md_finish ->targetm.sched.finish
22880         targetm.sched.md_init -> targetm.sched.init
22881         targetm.sched.md_init_global -> targetm.sched.init_global
22882         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
22883         targetm.asm_out.except_table_label ->
22884           targetm.asm_out.emit_except_table_label
22885         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
22886         targetm.target_help -> targetm.help
22887         targetm.vectorize.builtin_support_vector_misalignment ->
22888           targetm.vectorize.support_vector_misalignment
22889         targetm.file_start_app_off -> targetm.asm_file_start_app_off
22890         targetm.file_start_file_directive ->
22891          targetm.asm_file_start_file_directive
22892         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
22893         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
22894         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
22895         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
22896           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
22897         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
22898           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
22899         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
22900         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
22901         * Makefile.in (TARGET_H): Depend on target.def.
22902         (TARGET_DEF_H): Depend on target-hooks-def.h.
22903         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
22904         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
22905         * doc/tm.texi: Regenerate.
22906
22907         * Makefile.in (s-tm-texi): Remove stray tab / rule.
22908
22909         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
22910         (targetm.sched.init): Likewise.
22911
22912 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22913
22914         PR bootstrap/44713
22915         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
22916         (function_arg_advance_32): Const-ify TYPE parameter.
22917         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
22918         (ix86_function_arg_advance): Change type of NAMED to bool.
22919         (function_arg_32): Const-ify CUM and TYPE parameters.
22920         (function_arg_64): Likewise.  Change type of NAMED to bool.
22921         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
22922         to bool.
22923         (ix86_function_arg): Change type of NAMED to bool.
22924         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
22925         last argument as a bool.
22926
22927 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22928
22929         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
22930         (OVERRIDE_OPTIONS): Add note of obsolescence.
22931         Replace references with references to TARGET_OPTION_OVERRIDE.
22932         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
22933          the macro).
22934         * targhooks.c (default_target_option_override): New function.
22935         * targhooks.h (default_target_option_override): Declare.
22936         * target.h (struct gcc_target): Add override member to
22937         target_option member.
22938         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
22939         targetm.target_option.override call.
22940         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
22941         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
22942
22943 2010-06-29  Jan Hubicka  <jh@suse.cz>
22944
22945         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
22946
22947 2010-06-29  Jan Hubicka  <jh@suse.cz>
22948
22949         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
22950         unreachable.
22951         (rebuild_frequencies): New function.
22952         * predict.h (rebuild_frequencies): Declare.
22953         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
22954         entry block and edge reaching new_entry.
22955         (tree_function_versioning): When doing partial cloning, rebuild
22956         frequencies when done.
22957         * passes.c (execute_function_todo): Use rebild_frequencies.
22958
22959 2010-06-29  Richard Guenther  <rguenther@suse.de>
22960
22961         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
22962         * tree-flow.h (enum noalias_state): Remove.
22963         (struct var_ann_d): Remove noalias_state member.
22964
22965 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
22966
22967         PR target/43902
22968         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
22969         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
22970         (maddhidi4): Likewise.
22971
22972         Revert parts of the change for PR25130.
22973         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22974         MEM_ALIAS_SET.
22975
22976 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22977
22978         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
22979         targetm.calls.function_incoming_arg, and
22980         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
22981         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
22982         * target.h (struct gcc_target): Add function_arg_advance,
22983         function_arg, and function_incoming_arg fields.
22984         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
22985         (TARGET_FUNCTION_INCOMING_ARG): Define.
22986         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
22987         and TARGET_FUNCTION_INCOMING_ARG.
22988         * targhooks.h (default_function_arg_advance): Declare.
22989         (default_function_arg, default_function_incoming_arg): Declare.
22990         * targhooks.c (default_function_arg_advance): New function.
22991         (default_function_arg, default_function_incoming_arg): New function.
22992         * config/i386/i386.c (function_arg_advance): Rename to...
22993         (ix86_function_arg_advance): ...this.  Make static.
22994         (function_arg): Rename to...
22995         (ix86_function_arg): ...this.  Make static.
22996         (TARGET_FUNCTION_ARG_ADVANCE): Define.
22997         (TARGET_FUNCTION_ARG): Define.
22998         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
22999         (FUNCTION_ARG): Delete.
23000         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
23001         (function_arg): Delete prototype.
23002
23003 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
23004
23005         * reginfo.c (init_reg_sets_1): Adjust comments.
23006         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
23007         * calls.c (prepare_call_address): Likewise.
23008         (emit_call_1): Use targetm.calls.return_pops_args.
23009         (expand_call): Likewise.
23010         * function.c (assign_parms): Likewise.
23011         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
23012         * target.h (struct gcc_target) [struct calls]: Add
23013         return_pops_args field.
23014         * targhooks.h (default_return_pops_args): Declare.
23015         * targhooks.c (default_return_pops_args): Define.
23016         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
23017         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
23018         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
23019         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
23020         documentation.
23021         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
23022         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
23023         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
23024         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
23025         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
23026         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
23027         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
23028         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
23029         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
23030         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
23031         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
23032         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
23033         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
23034         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
23035         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
23036         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
23037         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
23038         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
23039         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
23040         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
23041         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
23042         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
23043         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
23044         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
23045         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
23046         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
23047         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
23048         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
23049         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
23050         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
23051         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
23052         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
23053         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
23054         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
23055         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
23056         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
23057         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
23058         * config/i386/i386.c (ix86_return_pops_args): Make static.
23059         Constify arguments.
23060         (TARGET_RETURN_POPS_ARGS): Define.
23061         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
23062         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
23063         (TARGET_RETURN_POPS_ARGS): Define.
23064         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
23065         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
23066         (TARGET_RETURN_POPS_ARGS): Define.
23067
23068 2010-06-29  Richard Guenther  <rguenther@suse.de>
23069
23070         PR middle-end/44667
23071         * tree-inline.c (initialize_inlined_parameters): Make sure
23072         to remap the inlined parameter variable substitutions types.
23073
23074 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
23075
23076         PR rtl-optimization/44659
23077         * combine.c (make_compound_operation) <SUBREG>: Do not return the
23078         result of force_to_mode if it partially re-expanded the compound.
23079
23080 2010-06-28  Jan Hubicka  <jh@suse.cz>
23081
23082         PR middle-end/44671
23083         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
23084         RESULT_DECL.
23085
23086 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
23087
23088         * double-int.h (force_fit_type_double): Remove declaration.
23089         * double-int.c (force_fit_type_double): Move to tree.c.
23090         * tree.h (force_fit_type_double): Declare.
23091         * tree.h (force_fit_type_double): Moved from double-int.c. Use
23092         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
23093         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
23094         * convert.c (convert_to_pointer): Adjust call to
23095         force_fit_type_double.
23096         * tree-vrp.c (extract_range_from_assert,
23097         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
23098         * fold-const.c: Update comment.
23099         (int_const_binop, fold_convert_const_int_from_int,
23100         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
23101         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
23102         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
23103         round_up_loc): Adjust call to force_fit_type_double.
23104
23105 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23106
23107         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
23108
23109 2010-06-28  Martin Jambor  <mjambor@suse.cz>
23110
23111         * tree-sra.c (convert_callers): New parameter, change fndecls of
23112         recursive calls.
23113         (modify_function): Pass the old decl to convert_callers.
23114
23115 2010-06-28  Martin Jambor  <mjambor@suse.cz>
23116
23117         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
23118         ipa_check_create_node_params and ipa_initialize_node_params with
23119         checking asserts they are not necessary.
23120
23121 2010-06-28  Jan Hubicka  <jh@suse.cz>
23122
23123         PR tree-optimization/44687
23124         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
23125
23126 2010-06-28  Martin Jambor  <mjambor@suse.cz>
23127
23128         PR c++/44535
23129         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
23130         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
23131         instead of BINFO_BASE_BINFO.
23132
23133 2010-06-28  Michael Matz  <matz@suse.de>
23134
23135         PR middle-end/44592
23136         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
23137         proper VDEF chain for intermediate stores in the sequence.
23138
23139 2010-06-28  Jan Hubicka  <jh@suse.cz>
23140
23141         PR tree-optimization/44357
23142         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
23143         uninlinable functions.
23144
23145 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23146
23147         * config.gcc (powerpc*-*-*): Handle titan.
23148         * config/rs6000/rs6000.c (titan_cost): New costs.
23149         (rs6000_override_options): Add "titan" to processor_target_table.
23150         Add Titan to branch alignment logic.
23151         Correctly set rs6000_cost for titan.
23152         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
23153         * config/rs6000/titan.md: New file.
23154         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
23155
23156 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
23157
23158         * tree-browser.c (TB_history_stack): Convert to a VEC.
23159         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
23160         (TB_history_prev): Likewise.
23161
23162 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
23163
23164         * vec.h (vec_heap_free): Add parentheses around free.
23165
23166 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
23167
23168         * system.h: Poison GCC_EXCEPT_H for front-end files.
23169
23170         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
23171         langhook.
23172         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
23173         Define to NULL by default.
23174         * except.h: Define GCC_EXCEPT_H.
23175         (doing_eh): Remove prototype.
23176         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
23177         (lang_protect_cleanup_actions): Remove.
23178         * except.c (lang_protect_cleanup_actions): Remove.
23179         (doing_eh): Remove.
23180         (gen_eh_region): Don't check doing_eh here.
23181         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
23182         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
23183         instead of lang_protect_cleanup_actions.
23184         * omp-low.c (maybe_catch_exception): Likewise.
23185         * Makefile.in: Update dependencies.
23186
23187 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
23188
23189         * cgraph.h (struct varpool_node): new used_from_object_file flag.
23190         (struct cgraph_local_info): new used_from_object_file flag.
23191         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
23192         (cgraph_clone_node): initialize used_from_object_file.
23193         (cgraph_create_virtual_clone): initialize used_from_object_file.
23194         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
23195         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
23196         when compiling with -fwhole-program.
23197         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
23198         internal resolver.
23199         * ipa.c (function_and_variable_visibility): Set externally_visible
23200         flag of varpool_node if used_from_object_file flag is set.
23201         (cgraph_externally_visible_p): check used_from_object_file flag.
23202         * doc/invoke.texi (-fwhole-program option): Change description of
23203         externally_visible attribute accordingly.
23204         * doc/extend.texi (externally_visible): Ditto.
23205
23206 2010-06-27  Jan Hubicka  <jh@suse.cz>
23207
23208         * params.def (max-inline-insns-auto): Default to 40.
23209         * doc/invoke.texi (max-inline-insns-auto): Document the change.
23210
23211 2010-06-27  Jan Hubicka  <jh@suse.cz>
23212
23213         PR middle-end/44671
23214         PR middle-end/44686
23215         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
23216         signature change.
23217         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
23218         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
23219
23220 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
23221
23222         * target.h (struct gcc_target): Add register_move_cost field.
23223         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
23224         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
23225         * targhooks.c (default_register_move_cost): New function.
23226         * targhooks.h (default_register_move_cost): Declare function.
23227         * defaults.h (REGISTER_MOVE_COST): Delete.
23228         * ira-int.h (ira_register_move_cost): Update comment.
23229         * ira.c (ira_register_move_cost): Update comment.
23230         * reload.h (register_move_cost): Declare.
23231         * reginfo.c (register_move_cost): New function.
23232         (move_cost): Update comment.
23233         (init_move_cost, memory_move_secondary_cost): Replace
23234         REGISTER_MOVE_COST with register_move_cost.
23235         * postreload.c (reload_cse_simplify_set): (Ditto.).
23236         * reload.c (find_valid_class, find_reloads): (Ditto.).
23237         * reload1.c (choose_reload_regs): (Ditto.).
23238         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
23239         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
23240         * doc/md.texi (can_create_pseudo_p): Update documentation.
23241
23242         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23243         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23244         * config/i386/i386.h (ix86_memory_move_cost): Make static.
23245         (TARGET_MEMORY_MOVE_COST): Define.
23246
23247         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
23248         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
23249         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
23250         (TARGET_MEMORY_MOVE_COST): Define.
23251
23252 2010-06-27  Richard Guenther  <rguenther@suse.de>
23253
23254         PR tree-optimization/44683
23255         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
23256         false edge from the inverted condition.
23257
23258 2010-06-27  Richard Guenther  <rguenther@suse.de>
23259
23260         PR middle-end/44684
23261         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
23262         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
23263         for register LHS.  Or non-store assignments.
23264
23265 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
23266
23267         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
23268         (sparc_emit_set_const64): Likewise.  Remove disabled code.
23269         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
23270         (sparc_emit_set_const64): Likewise.
23271
23272 2010-06-26  Catherine Moore  <clm@codesourcery.com>
23273
23274         * config/mips/mips.md (alu_type): New attribute.
23275         (type): Infer type from alu_type.
23276         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
23277         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
23278         *subsi3_extended, negsi2, negdi2, *low<mode>,
23279         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
23280         xor<mode>3, *nor<mode>3,
23281         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
23282         *zero_extendhi_truncqi):  Set alu_type instead of type.
23283
23284 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
23285
23286         * config/alpha/alpha.c (alpha_need_linkage): Adjust
23287         splay_tree_new_ggc call.
23288         (alpha_use_linkage): Likewise.
23289
23290 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
23291
23292         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
23293         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
23294         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
23295         (static_specs): Remove switches_need_spaces.
23296         (process_command, do_self_spec): Hardcode handling "-o" instead of
23297         checking switches_need_spaces.
23298         * system.h (SWITCHES_NEED_SPACES): Poison.
23299
23300 2010-06-26  Richard Guenther  <rguenther@suse.de>
23301
23302         PR tree-optimization/44393
23303         * tree-loop-distribution.c (generate_loops_for_partition): Fix
23304         stmt removal and VOP renaming.
23305         (generate_memset_zero): Remove redundant stmt updating.
23306         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
23307         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
23308
23309 2010-06-26  Jan Hubicka  <jh@suse.cz>
23310
23311         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
23312         edges comming from header are equivalent.
23313         (visit_bb): Handle PHIs correctly.
23314         * tree-inline.c (copy_phis_for_bb): Be able to copy
23315         PHI from entry edge.
23316         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
23317
23318 2010-06-26  Richard Guenther  <rguenther@suse.de>
23319
23320         PR middle-end/44674
23321         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
23322         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
23323
23324 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
23325
23326         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
23327         add_infile, alloc_switch): New.
23328         (process_command): Remove variable lang_n_infiles.  Process
23329         options in a single pass.  Use new functions for allocating
23330         infiles and switches arrays.  Properly skip operands of
23331         -Xpreprocessor and -Xassembler.
23332
23333 2010-06-26  Jan Hubicka  <jh@suse.cz>
23334
23335         PR middle-end/44671
23336         * cgraphunit.c (cgraph_function_versioning): Remove wrong
23337         cgraph_make_decl_local call; fix typo copying RTL data.
23338
23339 2010-06-25  DJ Delorie  <dj@redhat.com>
23340
23341         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
23342         (m32c_output_aligned_common): Likewise.
23343         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23344         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23345         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
23346         (m32c_register_pragmas): Register it.
23347         * config/m32c/m32c.c (m32c_get_pragma_address): New.
23348         (m32c_insert_attributes): Set #pragma address decls volatile.
23349         (pragma_entry_eq): New.
23350         (pragma_entry_hash): New.
23351         (m32c_note_pragma_address): New.
23352         (m32c_get_pragma_address): New.
23353         (m32c_output_aligned_common): New.
23354         * doc/extend.texi: Document the new pragma.
23355
23356         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
23357         also.
23358         * config/m32c/predicates.md (m32c_any_operand): Check the code
23359         instead of memory_operand so as to allow matching volatile MEMs.
23360         (m32c_nonimmediate_operand): Likewise.
23361         (mra_operand): Allow volatiles.
23362
23363 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
23364
23365         PR debug/44610
23366         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
23367         address if the offset is unknown.
23368
23369 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
23370
23371         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
23372         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
23373         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
23374         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
23375         to ia64_start_function. Invoke it.
23376         * config/ia64/ia64.c (ia64_start_function): Call new function
23377         dwarf2out_vms_debug_main_pointer.
23378
23379 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
23380
23381         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
23382         statements computing the true predicate.
23383
23384 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
23385
23386         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
23387         to boolean_true_node.
23388         (reset_bb_predicate): New.
23389         (predicate_bbs): Call reset_bb_predicate.
23390
23391 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
23392
23393         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
23394         (tree_if_conversion): Returns true when something has been changed.
23395         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
23396         changed something.
23397
23398 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
23399
23400         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
23401         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
23402         * tree-if-conv.c: Include dbgcnt.h.
23403         (tree_if_conversion): Use if_conversion_tree to count the number of
23404         if-convertible loops.
23405
23406 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
23407
23408         * common.opt (fprefetch-loop-arrays): Re-define
23409         -fprefetch-loop-arrays as a tri-state option with the initial
23410         value of -1.
23411         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
23412         pass only when flag_prefetch_loop_arrays > 0.
23413         * toplev.c (process_options): Note that, with tri-states,
23414         flag_prefetch_loop_arrays>0 means prefetching is enabled.
23415         * config/i386/i386.c (override_options): Enable prefetching at -O3
23416         for a set of CPUs that sw prefetching is helpful.
23417         (software_prefetching_beneficial_p): New.  Return TRUE if software
23418         prefetching is beneficial for the given CPU.
23419
23420 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23421
23422         PR rtl-optimization/44326
23423         * implicit-zee.c (find_removable_zero_extends): Replace
23424         INSN_P with NONDEBUG_INSN_P.
23425
23426 2010-06-25  Martin Jambor  <mjambor@suse.cz>
23427
23428         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
23429         (struct ipa_node_params): Removed the modification_analysis_done flag.
23430         (ipa_is_param_modified): Removed.
23431         (ipa_analyze_node): Declare.
23432         (ipa_compute_jump_functions): Remove declaration.
23433         (ipa_count_arguments): Likewise.
23434         (ipa_detect_param_modifications): Likewise.
23435         (ipa_analyze_params_uses): Likewise.
23436         * ipa-prop.c (struct param_analysis_info): New type.
23437         (visit_store_addr_for_mod_analysis): Removed.
23438         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
23439         moved down in the file.
23440         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
23441         (ipa_count_arguments): Made static.
23442         (mark_modified): New function.
23443         (is_parm_modified_before_call): New function.
23444         (compute_pass_through_member_ptrs): New parameter parms_info, call
23445         is_parm_modified_before_call instead of ipa_is_param_modified.
23446         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
23447         it to compute_pass_through_member_ptrs.
23448         (ipa_compute_jump_functions): New parameter parms_info, pass it to
23449         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
23450         on the callee if it is analyzed.  Made static.
23451         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
23452         is_parm_modified_before_call instead of ipa_is_param_modified.
23453         (ipa_analyze_call_uses): New parameter parms_info, pass it to
23454         ipa_analyze_indirect_call_uses.
23455         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
23456         ipa_analyze_call_uses.
23457         (ipa_analyze_params_uses): New parameter parms_info, pass it to
23458         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
23459         (ipa_analyze_node): New function.
23460         (ipa_print_node_params): Do not dump the modified flag.
23461         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
23462         it.  Do not stream the modified parameter flag.
23463         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
23464         it.  Do not stream the modified parameter flag.
23465         * ipa-cp.c (ipcp_analyze_node): Removed.
23466         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
23467         with only a call to ipa_analyze_node.
23468         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
23469         node with only a call to ipa_analyze_node.
23470
23471 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23472
23473         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
23474
23475 2010-06-25  Jan Hubicka  <jh@suse.cz>
23476
23477         * tree-pass.h (pass_split_functions): Declare.
23478         * opts.c (decode_options): Enable function splitting at -O2
23479         * timevar.def (TV_IPA_FNSPLIT): New macro.
23480         * ipa-split.c: New file.
23481         * common.opt (-fpartial-inlining): New flag.
23482         * Makefile.in (ipa-split.o): New object file.
23483         * passes.c (init_optimization_passes): Add ipa-split.
23484         * params.def (partial-inlining-entry-probability): New parameters.
23485         * doc/invoke.texi (-fpartial-inlining): New.
23486
23487 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23488
23489         PR 44665
23490         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
23491         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
23492         (gimplify_expr): Likewise.
23493
23494 2010-06-25  Martin Jambor  <mjambor@suse.cz>
23495
23496         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
23497         statements instead of bailing out on them.
23498         (ipa_analyze_indirect_call_uses): Do not require that loads from the
23499         parameter are in the same BB as the condition.  Update comments.
23500
23501 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
23502
23503         PR middle-end/43866
23504         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
23505         true or always false, return NULL_TREE.
23506         (tree_unswitch_single_loop): Optimize conditions even when reaching
23507         max-unswitch-level parameter.  If num > 0, optimize first all conditions
23508         using entry checks, then do still reachable block discovery and consider
23509         only conditions in still reachable basic blocks in the loop.
23510
23511         PR tree-optimization/44539
23512         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
23513         the call doesn't have LHS, but has VDEF.
23514
23515 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
23516
23517         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
23518         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
23519         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
23520         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
23521         * system.h (MODIFY_TARGET_NAME): Poison.
23522
23523 2010-06-25  Alan Modra  <amodra@gmail.com>
23524
23525         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
23526         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
23527         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23528         CMODEL_LARGE as default.
23529         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
23530         (offsettable_ok_by_alignment): Delete.
23531         (rs6000_emit_move): Remove mcmodel=medium optimization.
23532
23533 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
23534
23535         With large parts from Jim Wilson:
23536         PR target/43902
23537         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
23538         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
23539         * optabs.c (optab_for_tree_code): Likewise.
23540         (expand_widen_pattern_expr): Likewise.
23541         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
23542         out of execute_optimize_widening_mul.
23543         (convert_plusminus_to_widen): New function.
23544         (execute_optimize_widening_mul): Use the two new functions.
23545         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
23546         Remove code to generate widening multiply-accumulate.  Add support
23547         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
23548         * gimple-pretty-print.c (dump_ternary_rhs): New function.
23549         (dump_gimple_assign): Call it when appropriate.
23550         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
23551         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
23552         (expand_gimple_stmt_1): Likewise.
23553         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
23554         WIDEN_MULT_MINUS_EXPR.
23555         * tree-ssa-operands.c (get_expr_operands): Likewise.
23556         * tree-inline.c (estimate_operator_cost): Likewise.
23557         * gimple.c (extract_ops_from_tree_1): Renamed from
23558         extract_ops_from_tree.  Add new arg for a third operand; fill it.
23559         (gimple_build_assign_stat): Support operations with three operands.
23560         (gimple_build_assign_with_ops_stat): Likewise.
23561         (gimple_assign_set_rhs_from_tree): Likewise.
23562         (gimple_assign_set_rhs_with_ops_1): Renamed from
23563         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
23564         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
23565         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
23566         WIDEN_MULT_MINUS_EXPR.
23567         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
23568         (extract_ops_from_tree_1): Adjust declaration.
23569         (gimple_assign_set_rhs_with_ops_1): Likewise.
23570         (gimple_build_assign_with_ops): Pass NULL for last operand.
23571         (gimple_build_assign_with_ops3): New macro.
23572         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
23573         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
23574         functions.
23575         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
23576         (verify_gimple_assign): Call it.
23577         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
23578         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
23579         functions for dealing with three-operand statements.
23580         * tree.c (commutative_ternary_tree_code): New function.
23581         * tree.h (commutative_ternary_tree_code): Declare it.
23582         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
23583         ternary statements.
23584         (gimple_assign_nonzero_warnv_p): Likewise.
23585         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
23586         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
23587         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
23588         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
23589         (struct hashtable_expr): New member ternary in the union.
23590         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
23591         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
23592         (iterative_hash_hashable_expr): Likewise.
23593         (print_expr_hash_elt): Handle EXPR_TERNARY.
23594         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
23595         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
23596         statements.  Handle GIMPLE_TERNARY_RHS.
23597
23598 2010-06-25  Jan Hubicka  <jh@suse.cz>
23599
23600         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
23601
23602 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
23603
23604         PR c/44517
23605         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
23606         parameters are not good.
23607         (c_parser_parameter_declaration): Error unknown type name if the type
23608         name can't start declaration specifiers.
23609
23610 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
23611
23612         * gcc.c (translate_options): Don't mention +e in comment.
23613         (process_command): Don't handle +e specially.
23614
23615 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
23616
23617         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
23618
23619         * ira-build.c (merge_hard_reg_conflicts): New function.
23620         (create_cap_allocno, copy_info_to_removed_store_destinations,
23621         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
23622         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
23623         (remove_unnecessary_allocnos, remove_low_level_allocnos)
23624         copy_nifo_to_removed_store_destination): Use them.
23625         * ira-lives.c (make_hard_regno_born): New function, split out of
23626         make_regno_born.
23627         (make_allocno_born): Likewise.
23628         (make_hard_regno_dead): New function, split out of make_regno_dead.
23629         (make_allocno_dead): Likewise.
23630         (inc_register_pressure): New function, split out of set_allocno_live.
23631         (dec_register_pressure): New function, split out of clear_allocno_live.
23632         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
23633         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
23634         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
23635         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
23636         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
23637         mark_pseudo_regno_live.
23638         (process_bb_node_lives): Use mark_pseudo_regno_live,
23639         make_hard_regno_born and make_allocno_dead.
23640         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
23641         set_allocno_live, clear_allocno_live): Delete functions.
23642
23643         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
23644         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
23645         functions.
23646         (ira_flattening): Use ira_parent_allocno.
23647         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
23648         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
23649
23650         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
23651         statement.
23652
23653         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
23654         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
23655         minmax_set_iter_cond, minmax_set_iter_next,
23656         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
23657         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
23658         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
23659         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
23660         uses changed.
23661
23662         * ira-int.h (struct live_range, live_range_t): Renamed from struct
23663         ira_allocno_live_range and allocno_live_range_t; all uses changed.
23664         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
23665         All uses changed.
23666
23667 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
23668
23669         * thumb2.md (thumb2_tlobits_cbranch): Delete.
23670         (peephole2 to convert zero_extract/compare of single bit to
23671          lshift/compare): New.
23672
23673 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
23674
23675         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
23676         recursive call and call to 'int_const_binop'.
23677         (build_range_check, fold_cond_expr_with_comparison, unextend,
23678         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
23679         multiple_of_p): Adjust call to const_binop.
23680
23681 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
23682
23683         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
23684         determine size of XFmode operand.
23685         (XFmode extended DFmode push splitter): Ditto.
23686         (XFmode extended SFmode push splitter): Ditto.
23687
23688 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23689
23690         PR target/44588
23691         * config/i386/i386.md (extract_code): New.
23692         (<u>divmodqi4): Likewise.
23693         (divmodhiqi3): Likewise.
23694         (udivmodhiqi3): Likewise.
23695         (<u>divqi3): Remvoved.
23696
23697 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
23698
23699         PR middle-end/44492
23700         * recog.h (struct recog_data): Add is_asm field.
23701         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
23702         present in constraints of inline-asm operand and memory operand
23703         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
23704         (extract_insn): Initialize recog_data.is_asm.
23705         * doc/md.texi (Constraints): Document operand side-effect rules.
23706
23707 2010-06-24  Andi Kleen  <ak@linux.intel.com>
23708
23709         * c-parser.c (c_parser_conditional_expression): Call
23710         warn_for_omitted_condop.
23711         * doc/invoke.texi: Document omitted condop warning.
23712
23713 2010-06-24  Nick Clifton<nickc@redhat.com>
23714
23715         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
23716         insn in the sequence is a jump insn before setting its label.
23717
23718 2010-06-24  Alan Modra  <amodra@gmail.com>
23719
23720         * collect2.c (main): Match exactly --version and --help.
23721
23722 2010-06-24  DJ Delorie  <dj@redhat.com>
23723
23724         * config/m32c/m32c-pragma.c: Don't include rtl.h.
23725
23726 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
23727
23728         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
23729         using X87MODEF mode iterator.
23730         (pushsf splitter): Macroize splitter using P mode iterator.
23731         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
23732         mode iterator.
23733
23734         (*movxf_internal): Rename from *movxf_integer.
23735         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
23736         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
23737         (*movdf_internal): Rename from *movdf_integer.
23738         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
23739         (*movsf_internal): Rename from *movdf_1.
23740
23741 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
23742
23743         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
23744         (const_gimple_seq_node): Removed typedefs.
23745
23746         * gimple.h (gimple_seq_node_d, gimple_seq_node)
23747         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
23748
23749 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23750
23751         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
23752         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
23753         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
23754         and CODE_FOR_vec_extract_lo_v4df.
23755
23756         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
23757         Changed to define_insn_and_split.
23758         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
23759         (vec_extract_lo_v16hi): Likewise.
23760         (vec_extract_lo_v32qi): Likewise.
23761         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
23762         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
23763
23764 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
23765
23766         PR target/44640
23767         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
23768         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
23769         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
23770         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
23771         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
23772
23773         PR target/44640
23774         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
23775
23776         PR other/44644
23777         * df-core.c (struct df): Rename to df_d.
23778         * df.h (struct df): Likewise.
23779         * dse.h (struct df): Remove forward declaration.
23780         * recog.h (struct insn_data): Rename to:
23781         (struct_insn_data_d).  Adjusted all users.
23782
23783 2010-06-23  Arnaud Charlet  <charlet@adacore.com
23784
23785         PR ada/22220
23786         * doc/install.texi: Update requirements to build GNAT.
23787
23788 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
23789
23790         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
23791         enum type.
23792         (m68k_sched_attr_opx_type): Remove unreachable return.
23793         (m68k_sched_attr_opy_type): Likewise.
23794         (m68k_sched_attr_size): Likewise.
23795         (sched_get_opxy_mem_type): Likewise.
23796         (m68k_sched_attr_op_mem): Likewise.
23797
23798 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
23799
23800         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
23801         new statement and adjust VDEF only if necessary.  Remove superfluous
23802         call to maybe_clean_or_replace_eh_stmt.
23803         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
23804         copy the flags.
23805         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
23806         * tree-inline.c (copy_bb): ...and not there.
23807
23808 2010-06-22  Cary Coutant  <ccoutant@google.com>
23809
23810         * dwarf2out.c (is_nested_in_subprogram): New function.
23811         (should_move_die_to_comdat): Use it.
23812         (copy_ancestor_tree): Don't mark DIEs here.
23813         (copy_decls_walk): Start walk from root of newly-added tree;
23814         mark DIEs here instead.
23815
23816 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23817
23818         * config/i386/i386.md (unit): Also check sseishft1.
23819
23820 2010-06-22  Jan Hubicka  <jh@suse.cz>
23821
23822         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
23823         enabled.
23824
23825 2010-06-22  Jan Hubicka  <jh@suse.cz>
23826
23827         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
23828         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
23829         Return true if something changed.
23830         * df.h (df_confluence_function_n): Return bool.
23831         * df-core.c (df_worklist_propagate_forward,
23832         df_worklist_propagate_backward): Track changes and ages.
23833         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
23834         track ages.
23835         * dse.c (dse_confluence_n): Return always true.
23836
23837 2010-06-22  Jan Hubicka  <jh@suse.cz>
23838
23839         * bitmap.c (bitmap_clear_bit): Micro optimize.
23840
23841 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
23842
23843         * config/i386/i386.md (SWI1248x): New mode iterator.
23844         (SWI48x): Ditto.
23845         (SWI12): Ditto.
23846         (SWI24): Ditto.
23847
23848         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
23849         SWI1248x mode iterator.
23850         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
23851         using SWI124 mode iterator.
23852         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
23853         mode iterator.
23854         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
23855         *pushdi2_prologue_rex64 using P mode iterator.
23856         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
23857         using SWI48 mode iterator.
23858         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
23859         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
23860         using SWI1248x mode iterator.
23861         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
23862         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
23863         SWI48 mode iterator.
23864         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
23865         iterator.
23866         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
23867         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
23868         SWI12 mode iterator.
23869         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
23870         SWI12 mode iterator.
23871         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
23872         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
23873         SWI24 mode iterator.
23874         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
23875         SWI48 mode iterator.
23876         (mov<mode>_insn_1): New expander.
23877         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
23878         using SWI48x mode iterator.
23879
23880         (*movoi_internal_avx): Rename from *movoi_internal.
23881         (*movti_internal_rex64): Rename from *movti_rex64.
23882         (*movti_internal_sse): Rename from *movti_sse.
23883         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
23884         (*movdi_internal): Rename from *movdi_2.
23885         (*movsi_internal): Rename from *movsi_1.
23886         (*movhi_internal): Rename from *movhi_1.
23887         (*movqi_internal): Rename from *movqi_1.
23888
23889         (insv): Update the call to gen_movsi_insv_1 for rename.
23890         * config/i386/i386.c (promote_duplicated_reg): Ditto.
23891
23892 2010-06-22  Jan Hubicka  <jh@suse.cz>
23893
23894         * passes.c (execute_function_todo): Move call of statistics_fini_pass
23895         to ...
23896         (execute_todo) ... this one.
23897
23898 2010-06-22  Alan Modra  <amodra@gmail.com>
23899
23900         PR target/44364
23901         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23902         * caller-save.c (insert_restore, insert_save): Use non-validate
23903         form of adjust_address.
23904
23905 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23906
23907         PR target/39690
23908         * config/pa/pa.c (override_options): Disable
23909         -freorder-blocks-and-partition.
23910
23911 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
23912
23913         PR target/44615
23914         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
23915
23916         * config/i386/i386.md (type): Add sseishft1
23917
23918         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
23919         (ppro_insn_load): Likewise.
23920         (ppro_insn_store): Likewise.
23921         (ppro_insn_both): Likewise.
23922
23923         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
23924         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
23925         for type.
23926         (*vec_extractv2di_1_avx): Likewise.
23927         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
23928         type.  Remove atom_unit.
23929         (*vec_extractv2di_1_sse2): Likewise.
23930
23931 2010-06-21  DJ Delorie  <dj@redhat.com>
23932
23933         * diagnostic.h (diagnostic_classification_change_t): New.
23934         (diagnostic_context): Add history and push/pop list.
23935         (diagnostic_push_diagnostics): Declare.
23936         (diagnostic_pop_diagnostics): Declare.
23937         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
23938         from pragmas in a history chain instead of the global table.
23939         (diagnostic_push_diagnostics): New.
23940         (diagnostic_pop_diagnostics): New.
23941         (diagnostic_report_diagnostic): Scan history chain to find state
23942         of diagnostics as of the diagnostic location.
23943         * opts.c (set_option): Pass UNKNOWN_LOCATION to
23944         diagnostic_classify_diagnostic.
23945         (enable_warning_as_error): Likewise.
23946         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
23947         use in the history chain.
23948         * doc/extend.texi: Document pragma GCC diagnostic changes.
23949
23950 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
23951
23952         * dwarf2out.c (add_linkage_name): New function.  Don't add
23953         anything to DW_TAG_member DIEs.
23954         (add_name_and_src_coords_attributes): Use it.
23955         (gen_variable_die): Call it for C++ static data members if
23956         specification is DW_TAG_member.
23957
23958         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
23959         C++ char16_t and char32_t.
23960
23961         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
23962         * genattrtab.c: Include vecprim.h.
23963         (cached_attrs, cached_attr_count, attrs_seen_once,
23964         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
23965         attrs_cached_after): New variables.
23966         (find_attrs_to_cache): New function.
23967         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
23968         (write_test_expr): Add attrs_cached argument, return it too,
23969         attempt to cache non-const attributes used more than once in
23970         a single case handling.
23971         (write_attr_get): Use find_attrs_to_cache, for caching candidates
23972         emit cached_* variables.  Adjust write_attr_set callers.
23973         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
23974         to find attributes that should be cached in this block.  Adjust
23975         write_test_expr callers.
23976         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
23977         callers.
23978         (make_automaton_attrs): Adjust write_test_expr caller.
23979
23980         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
23981         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
23982         (make_automaton_attrs): If find_tune_attr returns non-NULL,
23983         write separate internal_dfa_insn_code_* and insn_default_latency_*
23984         functions for each attribute's value and emit init_sched_attrs
23985         function and function pointers.
23986         * genattr.c (const_attrs, reservations): New variables.
23987         (gen_attr): Add const attributes to const_attrs vector.
23988         (check_tune_attr, find_tune_attr): New functions.
23989         (main): Add reservations to reservations vector.  If find_tune_attr
23990         returns true, add prototype for init_sched_attrs and make
23991         internal_dfa_insn_code and insn_default_latency function pointers,
23992         otherwise define init_sched_attrs as dummy macro.
23993         * cfgexpand.c: Include insn-attr.h.
23994         (gimple_expand_cfg): Call init_sched_attrs.
23995
23996         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
23997
23998         PR target/44575
23999         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
24000         va_arg from a set of register save slots into a temporary,
24001         if the container is bigger than type size, do the copying
24002         using smaller mode or using memcpy.
24003
24004         PR bootstrap/44426
24005         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
24006         prototype.
24007         (sel_print_to_dot): Remove macro.
24008         (sel_print): Likewise.  New prototype.
24009         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
24010         (sel_print): New function.
24011
24012 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24013
24014         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
24015         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
24016
24017 2010-06-21  Nick Clifton  <nickc@redhat.com>
24018
24019         * config/rx/rx.h (PTRDIFF_TYPE): Define.
24020         (SMALL_REGISTER_CLASS): Define (to zero).
24021         (PRINT_OPERAND): Delete.
24022         (PRINT_OPERAND_ADDRESS): Delete.
24023         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
24024         (rx_print_operand_address): Delete prototype.
24025         * config/rx/rx.c (rx_print_operand): Make static.
24026         Allow %H and %L to handle CONST_DOUBLEs.
24027         (rx_print_operand_address): Make static.
24028         (rx_gen_move_template): Rename local variable 'template' to
24029         out_template.
24030         (rx_function_arg): Do not pass unknown sized objects in registers.
24031         (TARGET_PRINT_OPERAND): Define.
24032         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24033
24034 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
24035
24036         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
24037
24038 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
24039
24040         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
24041         stack-alignment for simple leaf-functions.
24042
24043 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
24044
24045         * doc/install.texi: Document bootstrap-lto.
24046
24047 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
24048
24049         PR debug/44248
24050         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
24051         (input_function): Drop them here, if VTA is disabled.
24052
24053 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
24054
24055         PR target/44546
24056         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
24057         New predicate.
24058         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
24059         ix86_swapped_fp_comparsion_operator instead of
24060         ix86_fp_comparison_operator.
24061
24062         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
24063         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
24064         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
24065         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
24066         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
24067         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
24068
24069 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
24070
24071         PR other/32998
24072         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
24073         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
24074         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
24075         (decode_cmdline_option): Update for this return value.  Set
24076         orig_option_with_args_text field.  Set arg field for unknown
24077         options.  Make static.
24078         (decode_cmdline_options_to_array): New.
24079         (prune_options): Update handling of find_opt return value.
24080         * opts.c (read_cmdline_option): Take decoded option.  Return void.
24081         (read_cmdline_options): Take decoded options.
24082         (decode_options): Add parameters for decoded options.  Use
24083         decode_cmdline_options_to_array.  Use decoded options for -O
24084         scan.  Use integral_argument for -O parameters.  Update call to
24085         read_cmdline_options.
24086         (enable_warning_as_error): Update handling of find_opt return value.
24087         * opts.h: Update comment on unknown options.
24088         (struct cl_decoded_option): Update comments on opt_index and arg.
24089         Add orig_option_with_args_text.
24090         (decode_cmdline_option): Remove.
24091         (decode_cmdline_options_to_array): Declare.
24092         (decode_options): Update prototype.
24093         * toplev.c (save_argv): Remove.
24094         (save_decoded_options, save_decoded_options_count): New.
24095         (read_integral_parameter): Remove.
24096         (print_switch_values): Use decoded options.
24097         (toplev_main): Don't set save_argv.  Update call to decode_options.
24098         * toplev.h (read_integral_parameter): Remove.
24099         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
24100
24101 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
24102
24103         PR target/44072
24104         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
24105         immediate.
24106         * constraints.md (Pw, Px): New constraints.
24107         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
24108
24109 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
24110
24111         * config/i386/sse.md (fma4modesuffixf4): Removed.
24112         (ssemodesuffixf2s): Likewise.
24113         (ssemodesuffixf4): Likewise.
24114         (ssemodesuffixf2c): Likewise.
24115         (ssescalarmodesuffix2s): Likewise.
24116         (avxmodesuffixf2c): Likewise.
24117         (ssemodesuffix): New.
24118         (ssescalarmodesuffix): Likewise.
24119         Update patterns with ssemodesuffix and ssescalarmodesuffix.
24120
24121 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
24122
24123         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
24124
24125 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
24126
24127         * stor-layout.c (debug_rli): Remove unused local variables.
24128
24129 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
24130
24131         PR rtl-optimization/40900
24132         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
24133         original expression for later reuse.
24134         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
24135         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
24136
24137 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
24138
24139         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
24140         double_int_fits_in_uhwi_p): Implement as static inline.
24141         (double_int_xor): New inline function.
24142         (double_int_lrotate, double_int_rrotate, double_int_max,
24143         double_int_umax, double_int_smax, double_int_min, double_int_umin,
24144         double_int_smin): Declare.
24145         (lrotate_double, rrotate_double): Remove declaration.
24146         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
24147         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
24148         (double_int_lrotate, double_int_rrotate, double_int_max,
24149         double_int_umax, double_int_smax, double_int_min, double_int_umin,
24150         double_int_smin): New function.
24151         * fold-const.c (int_const_binop): Clean up, use double_int_*
24152         functions.
24153         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
24154         double_int_* and immed_double_int_const functions.
24155
24156 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
24157
24158         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
24159         * function.c (types_used_by_cur_var_decl): Likewise.
24160         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
24161
24162 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
24163
24164         * tree.h (record_layout_info): Change type of pending_statics field
24165         to a VEC.
24166         * stor-layout.c (start_record_layout): Store NULL into
24167         pending_statics.
24168         (debug_rli): Call debug_vec_tree instead of debug_tree.
24169         (place_field): Likewise.
24170         (finish_record_layout): Likewise.
24171
24172 2010-06-18  Alan Modra  <amodra@gmail.com>
24173
24174         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
24175
24176 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24177
24178         PR target/43740
24179         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
24180         for SET source operand from SET destination operand.
24181
24182 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
24183
24184         PR rtl-optimization/39871
24185         * reload1.c (init_eliminable_invariants): For flag_pic, disable
24186         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
24187         (function_invariant_p): Rule out a plus of frame or arg pointer with
24188         a SYMBOL_REF.
24189         * ira.c (find_reg_equiv_invariant_const): Likewise.
24190
24191 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
24192
24193         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
24194         print_operand_address and puts to output the operand for CONST.
24195
24196 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
24197
24198         PR debug/44572
24199         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
24200         hook.
24201
24202 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24203
24204         * v850-protos.h (print_operand): Delete.
24205         (print_operand_address): Delete.
24206         * v850.h (PRINT_OPERAND): Delete.
24207         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24208         (PRINT_OPERAND_ADDRESS): Delete.
24209         * v850.c (print_operand_address): Rename to...
24210         (v850_print_operand_address): ...this.  Make static. Call
24211         v850_print_operand.
24212         (print_operand): Rename to...
24213         (v850_print_operand): ...this.  Make static.  Call
24214         v850_print_operand_address.
24215         (v850_print_operand_punct_valid_p): New function.
24216         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24217         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24218
24219 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24220
24221         * config/sh/sh-protos.h (print_operand): Delete.
24222         (print_operand_address): Delete.
24223         * config/sh/sh.h (PRINT_OPERAND): Delete.
24224         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24225         (PRINT_OPERAND_ADDRESS): Delete.
24226         * config/sh/sh.c (sh_print_operand_address): Make static.
24227         (sh_print_operand): Make static.  Call sh_print_operand_address
24228         and sh_print_operand.
24229         (sh_print_operand_punct_valid_p): New function.
24230         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24231         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24232
24233 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24234
24235         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
24236         (mcore_print_operand_address): Delete.
24237         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
24238         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24239         (PRINT_OPERAND_ADDRESS): Delete.
24240         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
24241         (mcore_print_operand): Make static.
24242         (mcore_print_operand_punct_valid_p): New function.
24243         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
24244         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24245
24246 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24247
24248         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
24249         (print_operand_address): Delete.
24250         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
24251         (PRINT_OPERAND_ADDRESS): Delete.
24252         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
24253         static.
24254         (m68hc11_print_operand): Make static.
24255         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24256
24257 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24258
24259         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
24260         (m32r_print_operand_address): Delete.
24261         * config/m32r/m32r.h (m32r_punct_chars): Delete.
24262         (PRINT_OPERAND): Delete.
24263         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24264         (PRINT_OPERAND_ADDRESS): Delete.
24265         * config/m32r/m32r.c (m32r_punct_chars): Make static.
24266         (m32r_print_operand_address): Make static.
24267         (m32r_print_operand): Make static.
24268         (m32r_print_operand_punct_valid_p): New function.
24269         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24270         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24271
24272 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24273
24274         * config/iq2000/iq2000-protos.h (print_operand): Delete.
24275         (print_operand_address): Delete.
24276         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
24277         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24278         (PRINT_OPERAND_ADDRESS): Delete.
24279         (iq2000_print_operand_punct): Delete.
24280         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
24281         (iq2000_print_operand_address): Make static.
24282         (iq2000_print_operand): Make static.
24283         (iq2000_print_operand_punct_valid_p): New function.
24284         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24285         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24286
24287 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24288
24289         * config/frv/frv-protos.h (frv_print_operand): Delete.
24290         (frv_print_operand_address): Delete.
24291         * config/frv/frv.h (PRINT_OPERAND): Delete.
24292         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24293         (PRINT_OPERAND_ADDRESS): Delete.
24294         * config/frv/frv.c (frv_print_operand_address): Make static.
24295         (frv_print_operand): Make static.
24296         (frv_print_operand_punct_valid_p): New function.
24297         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24298         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24299
24300 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
24301
24302         * tree.h (vec_member): Declare.
24303         * tree.c (vec_member): Define.
24304
24305 2010-06-17  Richard Guenther  <rguenther@suse.de>
24306
24307         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
24308         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
24309
24310 2010-06-17  Richard Guenther  <rguenther@suse.de>
24311
24312         * tree-inline.c (declare_return_variable): Remove bogus code.
24313
24314 2010-06-17  Richard Guenther  <rguenther@suse.de>
24315
24316         * gimplify.c (gimplify_bind_expr): Always promote complex
24317         and vector variables to registers if possible.
24318
24319 2010-06-17  Richard Guenther  <rguenther@suse.de>
24320
24321         * expr.c (get_inner_reference): Use double_int for bit_offset
24322         calculation.
24323
24324 2010-06-16  DJ Delorie  <dj@redhat.com>
24325
24326         * common.opt (-fstrict-volatile-bitfields): new.
24327         * doc/invoke.texi: Document it.
24328         * fold-const.c (optimize_bit_field_compare): For volatile
24329         bitfields, use the field's type to determine the mode, not the
24330         field's size.
24331         * expr.c (expand_assignment): Likewise.
24332         (get_inner_reference): Likewise.
24333         (expand_expr_real_1): Likewise.
24334         * expmed.c (store_fixed_bit_field): Likewise.
24335         (extract_bit_field_1): Likewise.
24336         (extract_fixed_bit_field): Likewise.
24337
24338 2010-06-16  Richard Guenther  <rguenther@suse.de>
24339
24340         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
24341
24342 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
24343
24344         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
24345         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
24346         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
24347         * debug.c: Likewise.
24348         * sdbout.c: Likewise.
24349         * vmsdbgout.c: Likewise.
24350         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
24351         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
24352         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
24353         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
24354         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
24355         * dwarf2out.c (dw_fde_struct): New fields
24356         dw_fde_vms_{end,begin}_prologue.
24357         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
24358         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
24359         (dwarf2out_vms_end_prologue): New function.
24360         (dwarf2out_vms_begin_epilogue): New function.
24361         (dw_val_struct): New value dw_val_class_vms_delta.
24362         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
24363         begin_epilogue for VMS.
24364         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
24365         new static functions.
24366         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
24367         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
24368         static functions.
24369         (print_die): New case dw_val_class_vms_delta.
24370         (attr_checksum): Likewise.
24371         (same_dw_val_p: Likewise.
24372         (size_of_die): Likewise.
24373         (value_format): Likewise.
24374         (output_die): Likewise.
24375         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
24376         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
24377         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
24378         dwarf2out_cfi_begin_epilogue
24379         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
24380
24381 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
24382
24383         * config/cris/cris-protos.h (cris_print_operand): Delete.
24384         (cris_print_operand_address): Delete.
24385         * config/cris/cris.h (PRINT_OPERAND): Delete.
24386         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24387         (PRINT_OPERAND_ADDRESS): Delete.
24388         * config/cris/cris.c (cris_print_operand_address): Make static.
24389         (cris_print_operand): Make static.
24390         (cris_print_operand_punct_valid_p): New function.
24391         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24392         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24393
24394 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
24395
24396         * config/arm/arm-protos.h (arm_print_operand): Delete.
24397         (arm_print_operand_address): Delete.
24398         * config/arm/arm.h (PRINT_OPERAND): Delete.
24399         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24400         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
24401         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
24402         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
24403         (arm_print_operand): Make static.
24404         (arm_print_operand_punct_valid_p): New function.
24405         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24406         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24407
24408 2010-06-16  Nick Clifton  <nickc@redhat.com>
24409
24410         * config/rx/constraints.md (NEGint4): New constraint.
24411         * config/rx/rx.md (attr cc): Add set_zsc.
24412         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
24413         initialised.
24414         (cmpsf): Likewise.
24415         (call_internal): Clobber the cc0 register.
24416         (call_value_internal): Likewise.
24417         (cstoresi4): Likewise.
24418         (movsieq): Likewise.
24419         (movsine): Likewise.
24420         (addsi3): Add alternative to handle small negative constants.
24421         (sunsi3): Likewise.
24422         (addsi3): Do not set the O bit in the cc0 register.
24423         (adddi3): Likewise.
24424         (subsi3): Likewise.
24425         (subdi3): Likewise.
24426         (andsi3): Reorder alternatives to prefer shorter forms.
24427         (mulsi3): Likewise.
24428         (iorsi3): Likewise.
24429         (negsi2): Note that the cc0 flags are set.
24430         (rotlsi3): Note that only the Z and S bits are set in cc0.
24431         (lshrsi3): Likewise.
24432         (ashlsi3): Likewise.
24433         (subsf3): Use %Q for the MEM operand.
24434         (fix_truncsfsi2): Likewise.
24435         (floatsisf2): Likewise.
24436         (bitset): Remove early clobber from destination.
24437         (bitset_in_memory): Likewise.
24438         (lrintsf2): Clobber the cc0 register.
24439         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
24440         (rx_print_operand): Handle %N.
24441
24442 2010-06-16  Jan Hubicka  <jh@suse.cz>
24443
24444         * df-core.c (df_compact_blocks): Free problem_temps vector.
24445
24446 2010-06-16  Martin Jambor  <mjambor@suse.cz>
24447
24448         PR tree-optimization/43905
24449         * tree-sra.c: Include tree-inline.h.
24450         (create_abstract_origin): Removed.
24451         (modify_function): Version the call graph node instead of creating
24452         abstract origins and dealing with same_body aliases.
24453         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
24454         function is versionable.
24455         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
24456
24457 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
24458
24459         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
24460         (CHOOSE_DYNAMIC_LINKER): Update.
24461
24462 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
24463
24464         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
24465         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
24466         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
24467         *prefetch_3dnow_rex.
24468
24469 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
24470
24471         * target.h (struct asm_out):Add declare_constant_name field.
24472         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
24473         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
24474         * output.h (default_asm_declare_constant_name): Declare.
24475         (assemble_label): Update prototype.
24476         * varasm.c (assemble_constant_contents): Use
24477         targetm.asm_out.declare_constant_name target hook.
24478         (assemble_label): Add 'file' argument.
24479         (default_asm_declare_constant_name): New function.
24480         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
24481         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
24482         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
24483
24484         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
24485         * config/darwin.c (darwin_asm_declare_constant_name): New function.
24486         (machopic_output_indirection): Update assemble_label argument list.
24487         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
24488         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
24489
24490 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
24491
24492         PR middle-end/44391
24493         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24494         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
24495
24496 2010-06-15  Richard Guenther  <rguenther@suse.de>
24497
24498         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
24499
24500 2010-06-15  Paul Brook  <paul@codesourcery.com>
24501
24502         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
24503         hard-float ABI.
24504
24505 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
24506
24507         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
24508         don't get a vector type for output.
24509
24510 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
24511
24512         PR fortran/44536
24513         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
24514         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
24515         (LANG_HOOKS_DECLS): Add it.
24516         * gimplify.c (omp_notice_variable): Call
24517         lang_hooks.decls.omp_report_decl.
24518
24519 2010-06-15  Martin Jambor  <mjambor@suse.cz>
24520
24521         PR lto/44464
24522         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
24523         on the newly dead SSA name.
24524
24525 2010-06-15  Alan Modra  <amodra@gmail.com>
24526
24527         * doc/invoke.texi: Add mcmodel to powerpc options.
24528         * configure.ac: Add HAVE_LD_LARGE_TOC test.
24529         * configure: Regenerate.
24530         * config.in: Regenerate.
24531         * config/rs6000/linux64.opt (mcmodel): New.
24532         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
24533         (TARGET_CMODEL, SET_CMODEL): Define.
24534         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
24535         select CMODEL_MEDIUM default.
24536         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
24537         (TARGET_CMODEL): Define default.
24538         * config/rs6000/rs6000.c (cmodel): New variable.
24539         (rs6000_explicit_options): Add cmodel field.
24540         (rs6000_handle_option): Handle -mcmodel.
24541         (create_TOC_reference): Add largetoc_reg param.  Generate high,
24542         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
24543         (rs6000_delegitimize_address): Recognise new toc reference rtl
24544         and minimal-toc rtl.
24545         (rs6000_legitimize_reload_address): Handle new toc references.
24546         (print_operand_address): Handle legitimate_constant_pool_address_p
24547         match before lo_sum.
24548         (rs6000_eliminate_indexed_memrefs): Tidy.
24549         (rs6000_emit_move): Tweak threshold for inlining constants.
24550         Keep rs6000_emit_allocate_stack large stack frame offsets
24551         loaded into r0 inline.
24552         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
24553         (tocrel_base, tocrel_offset): New variables.
24554         (toc_relative_expr_p): Set them here.
24555         (print_operand_address): Skip over any offset on constant pool address.
24556         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
24557         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
24558         (offsettable_ok_by_alignment): New function.
24559         (rs6000_emit_move): Address suitably aligned local symbol_refs
24560         relative to the toc pointer for -mcmodel=medium.
24561         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
24562         strict param.  Allow lo_sum version of addressing.  Verify reg
24563         used for -mminimal-toc and -mcmodel != small.  Update all callers.
24564         * config/rs6000/constraints.md: Update for above change.
24565         * config/rs6000/predicates.md: Likewise.
24566         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
24567         code.
24568         (tls_gd): Split for -mcmodel=medium/large.
24569         (tls_gd_high, tls_gd_low): New.
24570         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
24571         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
24572         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
24573         (largetoc_high, largetoc_low): New.
24574         (cmptf_internal2): Add clobber.
24575         * config/rs6000/rs6000-protos.h: Update.
24576
24577 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
24578
24579         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
24580         true if no prefetch is going to be generated for a given group.
24581         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
24582         estimate the prefetch_count.
24583         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
24584         prefetch count by considering the unroll_factor and prefetch_mod
24585         for is_loop_prefetching_profitable.
24586
24587 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
24588
24589         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
24590         anything if the argument is not a MEM.
24591
24592 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
24593
24594         PR debug/43650
24595         PR debug/44181
24596         PR debug/44247
24597         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
24598         debug stmts.
24599         (canonicalize_loop_ivs): Likewise.
24600
24601 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
24602
24603         PR debug/43656
24604         * haifa-sched.c (setup_insn_reg_pressure_info,
24605         update_register_pressure): Reject debug insns.
24606         (ready_sort): Don't setup reg pressure for debug insns.
24607         (schedule_insn): Don't update reg pressure for debug insns.
24608
24609 2010-06-14  Richard Guenther  <rguenther@suse.de>
24610
24611         * lto-streamer.c (cached_bp): Remove.
24612         (bitpack_delete): Likewise.
24613         (bitpack_create): Likewise.
24614         (bp_get_next_word): Likewise.
24615         (bp_pack_value, bp_unpack_value): Move ...
24616         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
24617         Re-implement.
24618         (struct bitpack_d): Likewise.
24619         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
24620         New inline functions.
24621         * lto-streamer-out.c (lto_output_bitpack): Remove.
24622         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
24623         (pack_value_fields): Adjust.
24624         (lto_write_tree): Likewise.
24625         (output_gimple_stmt): Likewise.
24626         (output_function): Likewise.
24627         * lto-streamer-in.c (input_gimple_stmt): Adjust.
24628         (input_function): Likewise.
24629         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
24630         (lto_input_bitpack): Remove.
24631         (lto_materialize_tree): Adjust.
24632         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
24633         * lto-cgraph.c (lto_output_edge): Adjust.
24634         (lto_output_node): Likewise.
24635         (lto_output_varpool_node): Likewise.
24636         (lto_output_ref): Likewise.
24637         (input_node): Likewise.
24638         (input_varpool_node): Likewise.
24639         (input_ref): Likewise.
24640         (input_edge): Likewise.
24641         (output_node_opt_summary): Likewise.
24642         (input_node_opt_summary): Likewise.
24643         * ipa-pure-const.c (pure_const_write_summary): Likewise.
24644         (pure_const_read_summary): Likewise.
24645         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
24646         (ipa_read_indirect_edge_info): Likewise.
24647         (ipa_write_node_info): Likewise.
24648         (ipa_read_node_info): Likewise.
24649
24650 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24651
24652         PR target/44534
24653         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
24654         (vec_extract_lo_v16hi): Likewise.
24655         (vec_extract_lo_v32qi): Likewise.
24656
24657 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
24658
24659         PR bootstrap/44426
24660         * tree.h (build_call_expr): Don't define as vararg macro, instead
24661         add a prototype.
24662         * builtins.c (build_call_nofold): Remove.
24663         (expand_builtin_int_roundingfn, expand_builtin_pow,
24664         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
24665         expand_builtin_memset_args, expand_builtin_strcmp,
24666         expand_builtin_strncmp, expand_builtin_memory_chk): Use
24667         build_call_nofold_loc instead of build_call_nofold.
24668         (build_call_expr): New function.
24669
24670         PR tree-optimization/44508
24671         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
24672         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
24673         don't eliminate trivially dead stmts.
24674         * tree-vrp.c (vrp_finalize): Pass false as last argument
24675         to substitute_and_fold.
24676         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
24677         to substitute_and_fold.
24678         * tree-ssa-ccp.c (ccp_finalize): Likewise.
24679
24680         PR bootstrap/44509
24681         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
24682
24683 2010-06-14  Ira Rosen  <irar@il.ibm.com>
24684
24685         PR tree-optimization/44507
24686         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
24687         to build initial vector for BIT_AND_EXPR.
24688         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
24689
24690 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
24691
24692         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
24693         adjust z10prop set_attr.
24694
24695 2010-06-13  Jan Hubicka  <jh@suse.cz>
24696
24697         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
24698         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
24699         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
24700         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
24701         datastructure checks into checking asserts.
24702         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
24703         * tree-ssa-sccvn.c (VN_INFO): Likewise.
24704         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
24705         df_ref_create_structure): Likewise.
24706         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
24707         pool_free): Use gcc_checking_assert.
24708         * alias.c (get_alias_set): Likewise.
24709         * var-tracking.c (variable_htab_free, shared_hash_copy,
24710         canonicalize_values_mark, variable_merge_over_cur): Likewise.
24711         * lto-streamer.c (bp_unpack_value): Likewise.
24712
24713 2010-06-13  Richard Guenther  <rguenther@suse.de>
24714
24715         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
24716         Do not stream but initialize TYPE_CANONICAL to NULL.
24717         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
24718         * gimple.c (gimple_types_compatible_p): Disregard
24719         TYPE_STRUCTURAL_EQUALITY_P.
24720         (gimple_register_type): Use TYPE_CANONICAL as cache.
24721         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
24722         before registering common types.
24723         * config/i386/i386.c (ix86_function_arg_boundary): Do not
24724         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
24725         * tree.h (TYPE_CANONICAL): Clarify documentation.
24726
24727 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
24728
24729         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24730         LIBCALL_VALUE): Remove macros.
24731         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
24732         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24733         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24734         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
24735         (ia64_function_value): Make static. Handle receiving the function
24736         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
24737
24738 2010-06-12  Jan Hubicka  <jh@suse.cz>
24739
24740         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
24741         at correct place.
24742
24743 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
24744
24745         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
24746
24747 2010-06-12  Jan Hubicka  <jh@suse.cz>
24748
24749         * df-core.c (df_clear_bb_info): New function.
24750         (df_set_blocks): bb_info is always allocated.
24751         (df_get_bb_info): Use block_info_elt_size.
24752         (df_set_bb_info): Likewise.
24753         (df_compact_blocks): Update for new block_info.
24754         (grow_bb_info): New function.
24755         * df-problems.c (df_grow_bb_info): Move to df-core.c
24756         (df_rd_set_bb_info): Remove.
24757         (df_rd_free_bb_info): Do not free block pool.
24758         (df_rd_alloc): Do not create pool, use check for
24759         obstack presence instead of NULL pointer for new blocks.
24760         (df_rd_free): DO not free alloc pool; clear block_info.
24761         (problem_RD): Add size of block info structure.
24762         (df_lr_set_bb_info): Remove.
24763         (df_lr_free_bb_info): Do not free block pool.
24764         (df_lr_alloc): Do not create pool, use check for
24765         obstack presence instead of NULL pointer for new blocks.
24766         (df_lr_free): DO not free alloc pool; clear block_info.
24767         (problem_LR): Add size of block info structure.
24768         (df_live_set_bb_info): Remove.
24769         (df_live_free_bb_info): Do not free block pool.
24770         (df_live_alloc): Do not create pool, use check for
24771         obstack presence instead of NULL pointer for new blocks.
24772         (df_live_free): DO not free alloc pool; clear block_info.
24773         (problem_LIVE): Add size of block info structure.
24774         (problem_CHAIN): Add size of block info structure.
24775         (df_byte_lr_set_bb_info): Remove.
24776         (df_byte_lr_free_bb_info): Do not free block pool.
24777         (df_byte_lr_alloc): Do not create pool, use check for
24778         obstack presence instead of NULL pointer for new blocks.
24779         (df_byte_lr_free): DO not free alloc pool; clear block_info.
24780         (problem_BYTE_LR): Add size of block info structure.
24781         (problem_NOTE): Add size of block info structure.
24782         (df_byte_MD_set_bb_info): Remove.
24783         (df_byte_MD_free_bb_info): Do not free block pool.
24784         (df_byte_MD_alloc): Do not create pool, use check for
24785         obstack presence instead of NULL pointer for new blocks.
24786         (df_byte_MD_free): DO not free alloc pool; clear block_info.
24787         (problem_BD): Add size of block info structure.
24788         * df-scan.c (df_scan_free_internal): Free block pool.
24789         (df_scan_set_bb_info): Remove.
24790         (df_scan_free_bb_info): Check for artificial_defs instead
24791         of bb_info being non-NULL.
24792         (df_scan_alloc): DO not create df_scan_block pool.
24793         (problem_SCAN): Set size of block info.
24794         (df_bb_refs_record): Do not allocate bb_info.
24795         * df.h (df_problem): Add block_info_elt_size.
24796         (struct dataflow): Change block_info to void *.
24797         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
24798         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
24799         in-line structures.
24800
24801 2010-06-12  Jan Hubicka  <jh@suse.cz>
24802
24803         PR tree-optimize/44485
24804         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
24805         containing use of return value of noreturn function.
24806
24807 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
24808
24809         * targhooks.c (default_function_value): Don't use
24810         FUNCTION_OUTGOING_VALUE.
24811         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
24812         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
24813
24814 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
24815
24816         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
24817         Add crtfastmath.o to extra_parts.
24818         * config/mips/crtfastmath.c: New.
24819         * config/mips/linux.h (ENDFILE_SPEC): New.
24820
24821 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
24822
24823         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
24824         old_type in parameter.
24825         (gcc_type_for_value): Update call to gcc_type_for_interval.
24826         (compute_type_for_level_1): Renamed compute_type_for_level.
24827         Update call to gcc_type_for_interval.
24828
24829 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
24830
24831         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
24832         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
24833
24834 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
24835
24836         * opts-common.c: Include options.h.
24837         (integral_argument): Move from opts.c.
24838         (decode_cmdline_option): New.  Based on read_cmdline_option.
24839         * opts.c (integral_argument): Move to opts-common.c.
24840         (read_cmdline_option): Move most contents to
24841         decode_cmdline_option.  Use %qs in diagnostics.
24842         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
24843         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
24844         decode_cmdline_option): New.
24845
24846 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24847
24848         PR target/44481
24849         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
24850         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
24851         (partiysi2_cmp): Ditto.
24852         (*partiyhi2_cmp): Ditto.
24853         (*parityqi2_cmp): Remove.
24854
24855 2010-06-11  Jan Hubicka  <jh@suse.cz>
24856
24857         * bitmap.h (bmp_iter_next_bit): New.
24858         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
24859
24860 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
24861             Eric Botcazou  <ebotcazou@adacore.com>
24862
24863         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
24864         computed cost.
24865
24866 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24867
24868         * config/i386/i386.md (unspec): New define_c_enum.
24869         (unspecv): Ditto.
24870
24871 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
24872
24873         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
24874
24875 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
24876
24877         PR middle-end/44483
24878         * tree-if-conv.c (bb_predicate_s): New struct.
24879         (bb_predicate_p): New.
24880         (bb_has_predicate): New.
24881         (bb_predicate): New.
24882         (set_bb_predicate): New.
24883         (bb_predicate_gimplified_stmts): New.
24884         (set_bb_predicate_gimplified_stmts): New.
24885         (add_bb_predicate_gimplified_stmts): New.
24886         (init_bb_predicate): New.
24887         (free_bb_predicate): New.
24888         (is_predicated): Use bb_predicate.
24889         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
24890         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
24891         before processing their successors.
24892         (clean_predicate_lists): Removed.
24893         (find_phi_replacement_condition): Use bb_predicate.
24894         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
24895         computations.
24896         (insert_gimplified_predicates): New.
24897         (combine_blocks): Call insert_gimplified_predicates.
24898         (tree_if_conversion): Call free_bb_predicate instead of
24899         clean_predicate_lists.
24900
24901 2010-10-11  Paul Brook  <paul@codesourcery.com>
24902
24903         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
24904         * config/arm/arm.c (all_architectures): Change v7e-m default to
24905         cortexm4.
24906         * config/arm/arm-cores.def: Add cortex-m4.
24907         * config/arm/arm-tune.md: Regenerate.
24908
24909 2010-06-11  Jan Hubicka  <jh@suse.cz>
24910
24911         * ipa-pure-const.c (special_builtlin_state): New function.
24912         (check_call): Use it instead of special casign BUILT_IN_RETURN.
24913         (propagate_pure_const): Use it.
24914
24915 2010-06-11  Jan Hubicka  <jh@suse.cz>
24916
24917         * df-problems.c (df_live_scratch): Convert to bitmap_head.
24918         (df_live_alloc): Initialize df_live_scratch when initializing
24919         problem_data.
24920         (df_live_transfer_function): Update uses of df_live_scratch.
24921         (df_live_free): Free problem_data; clear df_live_scratch before
24922         releasing the obstack.
24923         (df_md_free): Free problem data.
24924
24925 2010-06-11  Jan Hubicka  <jh@suse.cz>
24926
24927         * doc/invoke.texi (Wsuggest-attribute): Document.
24928         (Wmissing-noreturn): Remove.
24929         * ipa-pure-const.c (warn_function_noreturn): New function.
24930         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
24931         warn_missing_noreturn.
24932         * common.opt (Wsuggest-attribute=noreturn): New.
24933         * tree-flow.h (warn_function_noreturn): Declare.
24934         * tree-cfg.c (execute_warn_function_noreturn): Use
24935         warn_function_noreturn.
24936         (gate_warn_function_noreturn): New.
24937         (pass_warn_function_noreturn): Update.
24938
24939 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24940
24941         * c-typeck.c (handle_warn_cast_qual): Add loc
24942         parameter. Improve warning message.
24943         (build_c_cast): Pass location to handle_warn_cast_qual.
24944
24945 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24946
24947         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
24948         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
24949         insn mnemonic.
24950         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
24951
24952 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
24953
24954         Fix bootstap on mips
24955         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
24956         be naming typedefs.
24957
24958 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
24959
24960         * system.h (helper_const_non_const_cast): New inline for
24961         gcc version <= 4.0.
24962         (CONST_CAST2): For gcc version <= 4.0 use
24963         new helper to do const/non-const casting.
24964
24965 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24966
24967         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
24968         * Makefile.in (OBJS-common): Include insn-enums.o.
24969         (insn-enums.o): New rule.
24970         (simple_generated_c): Add insn-enums.c.
24971         (build/genenums.o): New rule.
24972         (genprogmd): Add "enums".
24973         * genconstants.c (print_enum_type): Declare a C string array
24974         for each enum.
24975         * genenums.c: New file.
24976         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
24977         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
24978         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
24979
24980 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24981
24982         * doc/md.texi (define_enum_attr): Document.
24983         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
24984         * read-md.h (lookup_enum_type): Declare.
24985         * read-md.c (lookup_enum_type): New function.
24986         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
24987         * genattrtab.c (attr_desc): Add an enum_name field.
24988         (evaluate_eq_attr): Take the associated attribute as argument.
24989         Get the enum prefix from the enum_name field, if defined.
24990         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
24991         (simplify_test_exp): Pass attr to evaluate_eq_attr.
24992         (add_attr_value): New function, split out from...
24993         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
24994         (write_test_expr): Pass attr to evaluate_eq_attr.
24995         (write_attr_get): Use the enum_name as the enum tag, if defined.
24996         (write_attr_valueq): Use the enum_name as a prefix, if defined.
24997         (find_attr): Initialize enum_name.
24998         (main): Handle DEFINE_ENUM_ATTR.
24999         * gensupport.c (process_rtx): Likewise.
25000         * config/mips/mips.h (mips_tune_attr): Delete.
25001         * config/mips/mips.md (cpu): Use define_attr_enum.
25002
25003 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25004
25005         * doc/md.texi (define_c_enum, define_enum): Document.
25006         * read-md.h (md_constant): Add a parent_enum field.
25007         (enum_value, enum_type): New structures.
25008         (upcase_string, traverse_enum_types): Declare.
25009         * read-md.c (enum_types): New variable.
25010         (upcase_string, add_constant): New functions.
25011         (handle_constants): Don't create the hash table here.
25012         Use add_constant.
25013         (traverse_md_constants): Don't check for a null md_constants.
25014         (decimal_string, handle_enum, traverse_enum_types): New functions.
25015         (read_md_files): Initialize md_constants and md_enums.
25016         * genconstants.c (print_md_constant): Ignore info argument.
25017         Only print constants that belong to no enum.
25018         (print_enum_type): New function.
25019         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
25020         for each defined enum type.
25021         * config/mips/mips.md (processor): New define_enum.
25022         (unspec): New define_c_enum.
25023         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
25024         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
25025         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
25026         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
25027         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
25028         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
25029         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
25030         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
25031         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
25032         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
25033         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
25034         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
25035         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
25036         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
25037         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
25038         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
25039         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
25040         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
25041         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
25042         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
25043         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
25044         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
25045         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25046         (UNSPEC_RDDSP): Move to mips-dsp.md.
25047         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
25048         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
25049         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
25050         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
25051         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
25052         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
25053         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
25054         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
25055         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
25056         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
25057         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
25058         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
25059         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
25060         Moved to mips-dspr2.md.
25061         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
25062         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
25063         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
25064         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
25065         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
25066         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
25067         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
25068         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
25069         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
25070         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
25071         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
25072         UNSPEC_LOONGSON_PSADBH)
25073         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
25074         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
25075         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
25076         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
25077         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
25078         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
25079         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
25080         (cpu): Update comment.
25081         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
25082         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
25083         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
25084         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
25085         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
25086         UNSPEC_LOONGSON_PCMPEQ)
25087         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
25088         UNSPEC_LOONGSON_PINSR_0)
25089         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
25090         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
25091         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
25092         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
25093         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
25094         UNSPEC_LOONGSON_PSADBH)
25095         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
25096         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
25097         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
25098         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
25099         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
25100         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
25101         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
25102         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
25103         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
25104         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
25105         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
25106         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
25107         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
25108         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
25109         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
25110         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
25111         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
25112         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
25113         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
25114         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
25115         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
25116         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
25117         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
25118         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
25119         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
25120         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
25121         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25122         (UNSPEC_RDDSP): Moved from mips.md.
25123         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
25124         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
25125         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
25126         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
25127         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
25128         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
25129         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
25130         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
25131         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
25132         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
25133         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
25134         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
25135         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
25136         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
25137         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
25138         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
25139         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
25140         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
25141         (UNSPEC_SCC): Moved from mips.md.
25142         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
25143         "processor_type" to "processor".
25144         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
25145         * config/mips/mips.h (processor_type): Delete.
25146         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
25147         "processor_type" to "processor".
25148
25149 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25150
25151         * configure.ac (tm_include_list): Add insn-constants.h.
25152         * configure: Regenerate.
25153         * Makefile.in (GTM_H): Move insn-constants.h here from...
25154         (TM_H): ...here.
25155         * mkconfig.sh: Remove special handling for insn-constants.h.
25156
25157 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25158
25159         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
25160         (BUILD_MD): ...this new variable.
25161         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
25162         that include the old contents of simple_generated_h and
25163         simple_generated_c.
25164         (simple_generated_h, simple_generated_c): Include them.  Add
25165         insn-constants.h.
25166         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
25167         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
25168         Remove these dependencies from the main rule and include
25169         insn-conditions.md in the command line only if it appears
25170         in the dependency list.
25171         (insn-constants.h, s-constants): Delete.
25172         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
25173         or gensupport.h.
25174         (build/genmddeps.o): Likewise.
25175         (genprogrtl): New variable that contains everything from genprogmd
25176         except mddeps and constants.
25177         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
25178         depend on $(BUILD_MD)
25179         (genprog): New variable.  Make these programs depend on
25180         $(BUILD_ERRORS).
25181         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
25182         (main): Use read_md_files instead of init_rtx_reader_args.
25183         * genconstants.c: As for genmddeps.c.
25184         * read-md.h (read_skip_construct): Declare.
25185         * read-md.c (read_skip_construct): New function.
25186         (handle_file): Allow a null handle_directive, skipping the
25187         construct if so.
25188         (parse_include): Update the comment accordingly.
25189
25190 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25191
25192         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
25193         * genmddeps.c: Include read-md.h.
25194         (main): Call init_rtx_reader_args instead of init_md_reader_args.
25195         * genattr.c (main): Likewise.
25196         * genattrtab.c (main): Likewise.
25197         * genautomata.c (main): Likewise.
25198         * gencodes.c (main): Likewise.
25199         * genconditions.c (main): Likewise.
25200         * genconfig.c (main): Likewise.
25201         * genconstants.c (main): Likewise.
25202         * genemit.c (main): Likewise.
25203         * genextract.c (main): Likewise.
25204         * genflags.c (main): Likewise.
25205         * genopinit.c (main): Likewise.
25206         * genoutput.c (main): Likewise.
25207         * genpeep.c (main): Likewise.
25208         * genrecog.c (main): Likewise.
25209         * genpreds.c (main): Likewise.
25210         * gensupport.h (in_fname): Move to read-md.h.
25211         (init_md_reader_args_cb): Rename to...
25212         (init_rtx_reader_args_cb): ...this and return a bool.
25213         (init_md_reader_args): Rename to...
25214         (init_rtx_reader_args): ...this and return a bool.
25215         (include_callback): Move to read-md.h.
25216         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
25217         (file_name_list, first_dir_md_include): Move to read-md.c
25218         (first_bracket_include): Delete unused variable.
25219         (last_dir_md_include): Move to read-md.c.
25220         (process_include): Delete, moving code to read-md.c:handle_include.
25221         (process_rtx): Don't handle INCLUDE.
25222         (save_string): Delete.
25223         (rtx_handle_directive): New function.
25224         (init_md_reader_args_cb): Rename to...
25225         (init_rtx_reader_args_cb): ...this and return a boolean success value.
25226         Use read_md_args.
25227         (init_md_reader_args): Rename to...
25228         (init_rtx_reader_args): ...this and return a boolean success value.
25229         * rtl.def (INCLUDE): Delete.
25230         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
25231         argument.
25232         * read-rtl.c (read_conditions): Don't gobble ')' here.
25233         (read_mapping): Likewise.
25234         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
25235         Handle top-level non-rtx constructs here rather than in read_rtx_1.
25236         Store the whole queue in *X.  Remove call to init_md_reader.
25237         (read_rtx_1): Rename to...
25238         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
25239         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
25240         here.
25241         (read_nested_rtx): New function.  Handle (nil) here rather than
25242         in read_rtx_code.
25243         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
25244         gobble ')' here.
25245         * read-md.h (directive_handler_t): New type.
25246         (in_fname, include_callback): Moved from read-md.h.
25247         (read_constants, init_md_reader): Delete.
25248         (read_md_files): Declare.
25249         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
25250         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
25251         from gensupport.c.
25252         (read_constants): Rename to...
25253         (handle_constants): ...this.  Don't gobble ')' here.
25254         (handle_include, handle_file, handle_toplevel_file)
25255         (parse_include): New functions, mostly taken from gensupport.c.
25256         (init_md_reader): Subsume into...
25257         (read_md_files): ...this new function.
25258
25259 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25260
25261         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
25262         (unread_char): Decrement read_md_lineno after putting back '\n'.
25263         * read-md.c (fatal_with_file_and_line): Push back any characters
25264         that we decide not to add to the context.
25265         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
25266         fatal_expected_char in cases where '/' ends a line (for example).
25267         (read_name): Don't increment read_md_lineno here.
25268         (read_escape): Likewise.
25269         (read_quoted_string): Likewise.
25270         (read_braced_string): Likewise.
25271
25272 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25273
25274         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
25275         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
25276         * genconstants.c: Include read-md.h.
25277         * read-rtl.c (md_constants): Move to read-md.c.
25278         (md_name): Move to read-md.h.
25279         (initialize_iterators): Use leading_string_hash instead of def_hash
25280         and leading_string_eq_p instead of def_name_eq_p.
25281         (read_name): Move to read-md.c.
25282         (def_hash, def_name_eq_p): Delete.
25283         (read_constants, traverse_md_constants): Move to read-md.c.
25284         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
25285         * read-md.h: Include hashtab.h.
25286         (md_name): Moved from read-rtl.c.
25287         (md_constant): Moved from read-md.h.
25288         (leading_string_hash, leading_string_eq_p, read_name)
25289         (read_constants, traverse_md_constants): Declare.
25290         * read-md.c (md_constants): Moved from read-rtl.c.
25291         (leading_string_hash, leading_string_eq_p): New functions.
25292         (read_name, read_constants, traverse_md_constants): Moved from
25293         read-rtl.c.
25294
25295 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25296
25297         * read-rtl.c (md_name): New structure.
25298         (read_name): Take an md_name instead of a buffer pointer.
25299         Use the "string" field instead of strcpy when expanding constants.
25300         (read_constants): Remove the tmp_char argument.  Update the calls
25301         to read_name, using two local name buffers instead of the tmp_char
25302         argument.  Merge the constant-creation code.
25303         (read_conditions): Remove the tmp_char argument.  Update the calls
25304         to read_name, using a local name buffer instead of the tmp_char
25305         argument.
25306         (read_mapping): Replace tmp_char variable with a local name buffer.
25307         Update the calls to read_name.
25308         (read_rtx_1): Likewise.  Update the calls to read_constants and
25309         read_conditions.
25310
25311 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25312
25313         * Makefile.in (build/read-md.o): Depend on errors.h.
25314         * read-md.h (error_with_line): Declare.
25315         * read-md.c: Include errors.h.
25316         (message_with_line_1): New function, extracted from...
25317         (message_with_line): ...here.
25318         (error_with_line): New function.
25319         * genattrtab.c: If a call to message_with_line is followed by
25320         "have_error = 1;", replace both statements with a call to
25321         error_with_line.
25322         * genoutput.c: Likewise.
25323         * genpreds.c: Likewise.
25324         * genrecog.c: If a call to message_with_line is followed by
25325         "error_count++;", replace both statements with a call to
25326         error_with_line.
25327         (errorcount): Delete.
25328         (main): Don't check it.
25329         * gensupport.c: If a call to message_with_line is followed by
25330         "errors = 1;", replace both statements with a call to error_with_line.
25331         (errors): Delete.
25332         (process_define_cond_exec): Check have_error instead of errors.
25333         (init_md_reader_args_cb): Likewise.  Don't set errors.
25334
25335 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25336
25337         * read-md.h (read_md_file): Declare.
25338         (read_char, unread_char): New functions.
25339         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25340         (read_quoted_string, read_string): Remove FILE * argument.
25341         * read-md.c (read_md_file): New variable.
25342         (read_md_filename, read_md_lineno): Update comments and remove
25343         unnecessary initialization.
25344         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25345         (read_escape, read_quoted_string, read_braced_string, read_string):
25346         Remove FILE * argument.  Update calls accordingly, using read_char
25347         and unread_char instead of getc and ungetc.
25348         * rtl.h (read_rtx): Remove FILE * argument.
25349         * read-rtl.c (iterator_group): Remove FILE * argument from
25350         "find_builtin".
25351         (iterator_traverse_data): Remove "infile" field.
25352         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
25353         (add_mapping, read_name, read_constants, read_conditions)
25354         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
25355         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
25356         Remove file arguments from all calls, using read_char and unread_char
25357         instead of getc and ungetc.
25358         * gensupport.c (process_include): Preserve read_md_file around
25359         the include.  Set read_md_file to the handle of the included file.
25360         Update call to read_rtx.
25361         (init_md_reader_args_cb): Set read_md_file to the handle of the file
25362         and remove local FILE *.  Update calls to read_rtx.
25363
25364 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25365
25366         * read-md.h (read_rtx_lineno): Rename to...
25367         (read_md_lineno): ...this.
25368         (read_rtx_filename): Rename to...
25369         (read_md_filename): ...this.
25370         (copy_rtx_ptr_loc): Rename to...
25371         (copy_md_ptr_loc): ...this.
25372         (print_rtx_ptr_loc): Rename to...
25373         (print_md_ptr_loc): ...this.
25374         * read-md.c: Likewise.  Update references after renaming.
25375         (string_obstack): Replace RTL with MD in comment.
25376         (set_rtx_ptr_loc): Rename to...
25377         (set_md_ptr_loc): ...this.
25378         (get_rtx_ptr_loc): Rename to...
25379         (get_md_ptr_loc): ...this.
25380         * genconditions.c: Update references after renaming.
25381         * genemit.c: Likewise.
25382         * genoutput.c: Likewise.
25383         * genpreds.c: Likewise.
25384         * gensupport.c: Likewise.
25385         * read-rtl.c: Likewise.
25386
25387 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
25388
25389         * Makefile.in (READ_MD_H): New variable.
25390         (BUILD_RTL): Add build/read-md.o.
25391         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
25392         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
25393         (build/genattrtab.o, build/genconditions.o build/genemit.o)
25394         (build/genextract.o, build/genflags.o, build/genoutput.o)
25395         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
25396         (build/read-md.o): New rule.
25397         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
25398         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
25399         * coretypes.h: ...here.
25400         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
25401         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
25402         * genattr.c: Include read-md.h.
25403         * genattrtab.c: Likewise.
25404         * genconditions.c: Likewise.
25405         * genemit.c: Likewise.
25406         * genextract.c: Likewise.
25407         * genflags.c: Likewise.
25408         * genoutput.c: Likewise.
25409         * genpreds.c: Likewise.
25410         * genrecog.c: Likewise.
25411         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
25412         (join_c_conditions, print_c_condition, read_rtx_filename)
25413         (read_rtx_lineno): Move to read-md.h.
25414         * read-rtl.c: Include read-md.h.
25415         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
25416         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
25417         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
25418         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
25419         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
25420         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
25421         (read_braced_string, read_string): Move to read-md.c.
25422         (read_rtx): Move some initialization to init_md_reader and call
25423         init_md_reader here.
25424         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
25425         Move to read-md.h.
25426         * gensupport.c: Include read-md.h.
25427         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
25428         * read-md.h, read-md.c: New files.
25429
25430 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
25431
25432         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25433         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25434         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
25435         * config/moxie/moxie.c (moxie_function_value): Make static.
25436         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
25437         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25438
25439 2010-06-10  Martin Jambor  <mjambor@suse.cz>
25440
25441         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
25442         * dbgcnt.def (tree_sra): New counter.
25443         * tree-sra.c: Include dbgcnt.h.
25444         (gate_intra_sra): Check tree_sra debug counter.
25445
25446 2010-06-10  Martin Jambor  <mjambor@suse.cz>
25447
25448         PR tree-optimization/44258
25449         * tree-sra.c (build_access_subtree): Return false iff there is a
25450         partial overlap.
25451         (build_access_trees): Likewise.
25452         (analyze_all_variable_accesses): Disqualify candidates if
25453         build_access_trees returns true for them.
25454
25455 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
25456
25457         PR debug/41371
25458         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
25459         tail-recurse into canonical node.  Fast-forward over
25460         non-canonical VALUEs.
25461
25462 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
25463
25464         PR boostrap/44470
25465         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
25466         (*addsi_1_zext) <TYPE_LEA>: Likewise.
25467         (add lea splitter): Likewise.
25468         (add_zext lea splitter): Likewise.
25469
25470 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
25471
25472         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
25473
25474 2010-06-10  Jan Hubicka  <jh@suse.cz>
25475
25476         * df-problems.c (df_live_problem_data): Add live_bitmaps.
25477         (df_live_alloc): Initialize problem data and live_osbtacks.
25478         (df_live_finalize): Remove obstack, problem data; do not
25479         clear all bitmaps.
25480         (df_live_top_dump, df_live_bottom_dump): Do not dump old
25481         data when not allocated.
25482         (df_live_verify_solution_start): Do not allocate problem data.
25483         (df_live_verify_solution_end): Check if out is allocated.
25484         (struct df_md_problem_data): New structure.
25485         (df_md_alloc): Allocate problem data.
25486         (df_md_free): Free problem data; do not clear bitmaps.
25487
25488 2010-06-10  Jan Beulich  <jbeulich@novell.com>
25489
25490         PR bootstrap/37304
25491         * configure.ac: Replace $() with ${} when intending to expand
25492         variables rather than invoking commands.
25493         * configure: Re-generate.
25494
25495 2010-06-10  Jan Hubicka  <jh@suse.cz>
25496
25497         PR rtl-optimization/44460
25498         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
25499         TYPE_NEEDS_CONSTRUCTING sanity check.
25500
25501 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
25502
25503         * doc/include/fdl.texi: Move to GFDL version 1.3.
25504
25505         * doc/cpp.texi: Move to GFDL version 1.3.
25506         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
25507         * doc/gccint.texi: Move to GFDL version 1.3.
25508         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
25509         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
25510         * doc/invoke.texi: Move to GFDL version 1.3.
25511
25512 2010-06-09  Jan Hubicka  <jh@suse.cz>
25513
25514         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
25515         Break out from ...
25516         (propagate) ... here; swap the order.
25517
25518 2010-06-09  Jan Hubicka  <jh@suse.cz>
25519
25520         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
25521         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
25522         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
25523         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
25524
25525 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
25526
25527         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
25528         Do not the gather memory reference in the outer loop if the step
25529         is not a constant.
25530
25531 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
25532
25533         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
25534         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
25535         8 to 4.  Minor change of the related comments.
25536
25537 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
25538
25539         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
25540         the scev analysis when the variable is not used outside the loop
25541         in a close phi node: call compute_overall_effect_of_inner_loop.
25542
25543 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
25544
25545         * graphite-sese-to-poly.c (single_pred_cond): Renamed
25546         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
25547         (build_sese_conditions_before): Renamed call to single_pred_cond.
25548         (build_sese_conditions_after): Same.
25549
25550 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
25551
25552         * graphite-poly.h: Fix comments and indentation.
25553         * graphite-sese-to-poly.c: Same.
25554         (build_sese_conditions_before): Compute stmt and gbb only when needed.
25555         * tree-chrec.c: Fix comments and indentation.
25556         (tree-ssa-loop-niter.c): Same.
25557
25558 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
25559
25560         PR rtl-optimization/42461
25561         * dce.c (deletable_insn_p): Return true for const or pure calls again.
25562         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
25563
25564 2010-06-09  Jan Hubicka  <jh@suse.cz>
25565
25566         * bitmap.c (bitmap_and): Walk array forward.
25567         (bitmap_and_compl_into): Likewise.
25568         (bitmap_xor): Likewise.
25569         (bitmap_xor_into):  Likewise.
25570         (bitmap_equal_p): Likewise.
25571         (bitmap_intersect_p): Likewise.
25572         (bitmap_intersect_compl_p): Likewise.
25573         (bitmap_ior_and_into): Likewise.
25574         (bitmap_elt_copy): Likewise.
25575         (bitmap_and_compl): Likewise.
25576         (bitmap_elt_ior): Likewise.
25577
25578 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
25579
25580         * opts-common.c (prune_options): Ensure replacement argv array
25581         is correctly terminated by a NULL entry.
25582
25583 2010-06-09  Jan Hubicka  <jh@suse.cz>
25584
25585         * cgraph.h (varpool_first_static_initializer,
25586         varpool_next_static_initializer): Make checking only when
25587         checking enabled.
25588         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
25589         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
25590         gcc_assert to gcc_checking_assert.
25591         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
25592         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
25593         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
25594         op_iter_init_phiuse, op_iter_init_phidef,
25595         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
25596         gcc_checking_assert.
25597         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
25598         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
25599         partition_is_global, live_on_entry, live_on_exit,
25600         live_merge_and_clear): Likewise.
25601         * system.h (gcc_checking_assert): New macro.
25602         * gimple.h (set_bb_seq): Use gcc_checking_assert.
25603
25604 2010-06-09  Jason Merrill  <jason@redhat.com>
25605
25606         * Makefile.in (TAGS): Collect tags info from c-family.
25607
25608 2010-06-09  Jan Hubicka  <jh@suse.cz>
25609
25610         * gimple.h (gcc_gimple_checking_assert): New macro.
25611         (gimple_set_def_ops, gimple_set_use_ops,
25612         gimple_set_vuse, gimple_set_vdef,
25613         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
25614         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
25615         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
25616         gimple_asm_output_op, gimple_asm_output_op_ptr,
25617         gimple_asm_set_output_op, gimple_asm_clobber_op,
25618         gimple_asm_set_clobber_op, gimple_asm_label_op,
25619         gimple_asm_set_label_op, gimple_try_set_kind,
25620         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
25621         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
25622         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
25623         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
25624         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
25625         gimple_omp_for_set_initial, gimple_omp_for_final,
25626         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
25627         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
25628         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
25629         conditional with ENABLE_GIMPLE_CHECKING.
25630         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
25631
25632 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
25633
25634         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
25635         (get_computation_cost_at): Use it.
25636         (determine_use_iv_cost_condition): Likewise.
25637         (determine_iv_cost): Likewise.
25638
25639 2010-06-09  Richard Guenther  <rguenther@suse.de>
25640
25641         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
25642         replace constants.
25643
25644 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
25645
25646         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
25647
25648 2010-06-09  Martin Jambor  <mjambor@suse.cz>
25649
25650         PR tree-optimization/44423
25651         * tree-sra.c (dump_access): Dump also grp_assignment_read.
25652         (analyze_access_subtree): Pass negative allow_replacements to children
25653         if the current type is scalar.
25654
25655 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25656
25657         PR testsuite/42843
25658         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
25659         * doc/plugins.texi (Plugin license check): Update information
25660         on type of plugin_is_GPL_compatible.
25661         * Makefile.in (PLUGINCC): Define as $(COMPILER).
25662         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
25663
25664 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
25665
25666         * config/arm/arm.c (thumb2_reorg): New function.
25667         (arm_reorg): Call it.
25668         * config/arm/thumb2.md (define_peephole2 for flag clobbering
25669         arithmetic operations): Delete.
25670
25671 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
25672
25673         PR target/44067
25674         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
25675         e500v2 target.
25676
25677 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25678
25679         PR plugins/44459
25680         * gcc-plugin.h: Encapsulate all declarations in extern "C".
25681
25682 2010-06-08  Jan Hubicka  <jh@suse.cz>
25683
25684         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
25685         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
25686
25687 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
25688
25689         PR tree-optimization/39874
25690         PR middle-end/28685
25691         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
25692         Declare.
25693         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
25694         same_bool_result_p): New.
25695         (and_var_with_comparison, and_var_with_comparison_1,
25696         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
25697         (or_var_with_comparison, or_var_with_comparison_1,
25698         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
25699         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
25700         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
25701         of combine_comparisons.
25702         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
25703
25704 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
25705
25706         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25707         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25708         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
25709         pdp11_function_value_regno_p): New functions.
25710         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25711         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25712
25713 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
25714
25715         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
25716         Thumb-2 in the MINUS case.
25717
25718 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25719
25720         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
25721
25722         * doc/gty.texi (GTY Options): Document typed GC allocation and
25723         variable_size GTY option.
25724
25725         * ggc-internal.h: New.
25726
25727         * ggc.h: Update copyright year.
25728         (digit_string): Move to stringpool.c.
25729         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
25730         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
25731         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
25732         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
25733         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
25734         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
25735         (ggc_force_collect, ggc_get_size, ggc_statistics)
25736         (ggc_print_common_statistics): Move to ggc-internal.h.
25737         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
25738         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
25739         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
25740         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
25741         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
25742         (ggc_alloc_zone_pass_stat): Remove.
25743         (ggc_internal_alloc_stat, ggc_internal_alloc)
25744         (ggc_internal_cleared_alloc_stat): New.
25745         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
25746         (ggc_internal_vec_alloc_stat)
25747         (ggc_internal_cleared_vec_alloc_stat)
25748         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
25749         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
25750         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
25751         (ggc_cleared_alloc_ptr_array_two_args): New.
25752         (htab_create_ggc, splay_tree_new_ggc): Redefine.
25753         (ggc_splay_alloc): Change the type of the first argument to
25754         enum gt_types_enum.
25755         (ggc_alloc_string): Make macro.
25756         (ggc_alloc_string_stat): New.
25757         (ggc_strdup): Redefine.
25758         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
25759         (ggc_alloc_rtvec_sized): New.
25760         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
25761         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
25762         (ggc_internal_cleared_alloc_zone_stat)
25763         (ggc_internal_zone_alloc_stat)
25764         (ggc_internal_zone_cleared_alloc_stat)
25765         (ggc_internal_zone_vec_alloc_stat)
25766         (ggc_alloc_zone_rtx_def_stat)
25767         (ggc_alloc_zone_tree_node_stat)
25768         (ggc_alloc_zone_cleared_tree_node_stat)
25769         (ggc_alloc_cleared_gimple_statement_d_stat): New.
25770
25771         * ggc-common.c: Include ggc-internal.h.
25772         (ggc_internal_cleared_alloc_stat): Rename from
25773         ggc_alloc_cleared_stat.
25774         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
25775         (ggc_calloc): Remove.
25776         (ggc_cleared_alloc_htab_ignore_args): New.
25777         (ggc_cleared_alloc_ptr_array_two_args): New.
25778         (ggc_splay_alloc): Add obj_type parameter.
25779         (init_ggc_heuristics): Formatting fixes.
25780
25781         * ggc-none.c: Update copyright year.
25782         (ggc_alloc_stat): Rename to ggc_alloc_stat.
25783         (ggc_alloc_cleared_stat): Rename to
25784         ggc_internal_cleared_alloc_stat.
25785         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25786
25787         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
25788         Remove references to ggc_alloc in comments.
25789         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
25790         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
25791         (new_ggc_zone, destroy_ggc_zone): Remove.
25792         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25793
25794         * ggc-zone.c: Include ggc-internal.h.  Remove references to
25795         ggc_alloc in comments.
25796         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
25797         (ggc_internal_alloc_zone_pass_stat): New.
25798         (ggc_internal_cleared_alloc_zone_stat): New.
25799         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
25800         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
25801         (new_ggc_zone, destroy_ggc_zone): Remove.
25802
25803         * stringpool.c: Update copyright year.  Include ggc-internal.h
25804         (digit_vector): Make static.
25805         (digit_string): Moved from ggc.h.
25806         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
25807         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
25808
25809         * Makefile.in (GGC_INTERNAL_H): New.
25810         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
25811         $(GGC_INTERNAL_H) to dependencies.
25812
25813         * gengtype.c: Update copyright year.
25814         (walk_type): Accept variable_size GTY option.
25815         (USED_BY_TYPED_GC_P): New macro.
25816         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
25817         whitespace at the end of strings.
25818         (get_type_specifier, variable_size_p): New functions.
25819         (alloc_quantity, alloc_zone): New enums.
25820         (write_typed_alloc_def): New function.
25821         (write_typed_struct_alloc_def): Likewise.
25822         (write_typed_typed_typedef_alloc_def): Likewise.
25823         (write_typed_alloc_defns): Likewise.
25824         (output_typename, write_splay_tree_allocator_def): Likewise.
25825         (write_splay_tree_allocators): Likewise.
25826         (main): Call write_typed_alloc_defns and
25827         write_splay_tree_allocators.
25828
25829         * lto-streamer.h (lto_file_decl_data_ptr): New.
25830
25831         * passes.c (order): Define using cgraph_node_ptr.
25832
25833         * strinpool.c (struct string_pool_data): Declare nested_ptr using
25834         ht_identifier_ptr.
25835
25836         * gimple.h (union gimple_statement_d): Likewise.
25837
25838         * rtl.h (struct rtx_def): Likewise.
25839         (struct rtvec_def): Likewise.
25840
25841         * tree.h (union tree_node): Likewise.
25842
25843         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
25844
25845         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
25846
25847         * tree-scalar-evolution.c (scev_initialize): Likewise.
25848
25849         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
25850
25851         * dwarf2asm.c (dw2_force_const_mem): Likewise.
25852
25853         * omp-low.c (lower_omp_critical): Likewise.
25854
25855         * bitmap.h (struct bitmap_head_def): Update comment to not
25856         reference ggc_alloc.
25857
25858         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
25859
25860         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
25861
25862         * ipa-prop.c (duplicate_ggc_array): Rename to
25863         duplicate_ipa_jump_func_array.  Use typed GC allocation.
25864         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
25865
25866         * gimple.c (gimple_alloc_stat): Use
25867         ggc_alloc_cleared_gimple_statement_d_stat.
25868
25869         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
25870
25871         * tree.c (make_node_stat): Use
25872         ggc_alloc_zone_cleared_tree_node_stat.
25873         (make_tree_vec_stat): Likewise.
25874         (build_vl_exp_stat): Likewise.
25875         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
25876         (make_tree_binfo_stat): Likewise.
25877         (tree_cons_stat): Likewise.
25878
25879         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
25880         (shallow_copy_rtx_stat): Likewise.
25881         (make_node_stat): Likewise.
25882
25883         * lto-symtab.c: Fix comment.
25884
25885         * tree-cfg.c (create_bb): Update comment to not reference
25886         ggc_alloc_cleared.
25887         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
25888
25889         * varpool.c (varpool_node): Use typed GC allocation.
25890         (varpool_extra_name_alias): Likewise.
25891
25892         * varasm.c (emutls_decl): Likewise.
25893         (get_unnamed_section): Likewise.
25894         (get_noswitch_section): Likewise.
25895         (get_section): Likewise.
25896         (get_block_for_section): Likewise.
25897         (build_constant_desc): Likewise.
25898         (create_constant_pool): Likewise.
25899         (force_const_mem): Likewise.
25900
25901         * tree.c (build_vl_exp_stat): Likewise.
25902         (build_real): Likewise.
25903         (build_string): Likewise.
25904         (decl_debug_expr_insert): Likewise.
25905         (decl_value_expr_insert): Likewise.
25906         (type_hash_add): Likewise.
25907         (build_omp_clause): Likewise.
25908
25909         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
25910
25911         * tree-ssa.c (init_tree_ssa): Likewise.
25912
25913         * tree-ssa-structalias.c (heapvar_insert): Likewise.
25914
25915         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25916
25917         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25918
25919         * tree-ssa-alias.c (get_ptr_info): Likewise.
25920
25921         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25922
25923         * tree-phinodes.c (allocate_phi_node): Likewise.
25924
25925         * tree-iterator.c (tsi_link_before): Likewise.
25926         (tsi_link_after): Likewise.
25927
25928         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25929
25930         * tree-dfa.c (create_var_ann): Likewise.
25931
25932         * tree-cfg.c (create_bb): Likewise.
25933
25934         * toplev.c (alloc_for_identifier_to_locale): Likewise.
25935         (general_init): Likewise.
25936
25937         * stringpool.c (stringpool_ggc_alloc): Likewise.
25938         (gt_pch_save_stringpool): Likewise.
25939
25940         * sese.c (if_region_set_false_region): Likewise.
25941
25942         * passes.c (do_per_function_toporder): Likewise.
25943
25944         * optabs.c (set_optab_libfunc): Likewise.
25945         (set_conv_libfunc): Likewise.
25946
25947         * lto-symtab.c (lto_symtab_register_decl): Likewise.
25948
25949         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25950         (input_eh_region): Likewise.
25951         (input_eh_lp): Likewise.
25952         (make_new_block): Likewise.
25953         (unpack_ts_real_cst_value_fields): Likewise.
25954
25955         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25956
25957         * lto-cgraph.c (input_node_opt_summary): Likewise.
25958
25959         * loop-init.c (loop_optimizer_init): Likewise.
25960
25961         * lambda.h (lambda_vector_new): Likewise.
25962
25963         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
25964
25965         * ira.c (update_equiv_regs): Likewise.
25966
25967         * ipa.c (cgraph_node_set_new): Likewise.
25968         (cgraph_node_set_add): Likewise.
25969         (varpool_node_set_new): Likewise.
25970         (varpool_node_set_add): Likewise.
25971
25972         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
25973         (duplicate_ipa_jump_func_array): Likewise.
25974         (ipa_read_node_info): Likewise.
25975
25976         * ipa-cp.c (ipcp_create_replace_map): Likewise.
25977
25978         * integrate.c (get_hard_reg_initial_val): Likewise.
25979
25980         * gimple.c (gimple_alloc_stat): Likewise.
25981         (gimple_build_omp_for): Likewise.
25982         (gimple_seq_alloc): Likewise.
25983         (gimple_copy): Likewise.
25984
25985         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
25986         (gsi_insert_after_without_update): Likewise.
25987
25988         * function.c (add_frame_space): Likewise.
25989         (insert_temp_slot_address): Likewise.
25990         (assign_stack_temp_for_type): Likewise.
25991         (allocate_struct_function): Likewise.
25992         (types_used_by_var_decl_insert): Likewise.
25993
25994         * except.c (init_eh_for_function): Likewise.
25995         (gen_eh_region): Likewise.
25996         (gen_eh_region_catch): Likewise.
25997         (gen_eh_landing_pad): Likewise.
25998         (add_call_site): Likewise.
25999
26000         * emit-rtl.c (get_mem_attrs): Likewise.
26001         (get_reg_attrs): Likewise.
26002         (start_sequence): Likewise.
26003         (init_emit): Likewise.
26004
26005         * dwarf2out.c (new_cfi): Likewise.
26006         (queue_reg_save): Likewise.
26007         (dwarf2out_frame_init): Likewise.
26008         (new_loc_descr): Likewise.
26009         (find_AT_string): Likewise.
26010         (new_die): Likewise.
26011         (add_var_loc_to_decl): Likewise.
26012         (clone_die): Likewise.
26013         (clone_as_declaration): Likewise.
26014         (break_out_comdat_types): Likewise.
26015         (new_loc_list): Likewise.
26016         (loc_descriptor): Likewise.
26017         (add_loc_descr_to_each): Likewise.
26018         (add_const_value_attribute): Likewise.
26019         (tree_add_const_value_attribute): Likewise.
26020         (add_comp_dir_attribute): Likewise.
26021         (add_name_and_src_coords_attributes): Likewise.
26022         (lookup_filename): Likewise.
26023         (store_vcall_insn): Likewise.
26024         (dwarf2out_init): Likewise.
26025
26026         * dbxout.c (dbxout_init): Likewise.
26027
26028         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
26029
26030         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
26031
26032         * config/score/score7.c (score7_output_external): Likewise.
26033
26034         * config/score/score3.c (score3_output_external): Likewise.
26035
26036         * config/s390/s390.c (s390_init_machine_status): Likewise.
26037
26038         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
26039         (rs6000_init_machine_status): Likewise.
26040         (output_toc): Likewise.
26041
26042         * config/pa/pa.c (pa_init_machine_status): Likewise.
26043         (get_deferred_plabel): Likewise.
26044
26045         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
26046
26047         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
26048
26049         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
26050
26051         * config/mep/mep.c (mep_init_machine_status): Likewise.
26052         (mep_note_pragma_flag): Likewise.
26053
26054         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
26055
26056         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
26057
26058         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
26059
26060         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
26061         (i386_pe_maybe_record_exported_symbol): Likewise.
26062
26063         * config/i386/i386.c (get_dllimport_decl): Likewise.
26064         (ix86_init_machine_status): Likewise.
26065         (assign_386_stack_local): Likewise.
26066
26067         * config/frv/frv.c (frv_init_machine_status): Likewise.
26068
26069         * config/darwin.c (machopic_indirection_name): Likewise.
26070
26071         * config/cris/cris.c (cris_init_machine_status): Likewise.
26072
26073         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
26074
26075         * config/avr/avr.c (avr_init_machine_status): Likewise.
26076
26077         * config/arm/arm.c (arm_init_machine_status): Likewise.
26078
26079         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
26080         (alpha_need_linkage): Likewise.
26081         (alpha_use_linkage): Likewise.
26082
26083         * cgraph.c (cgraph_allocate_node): Likewise.
26084         (cgraph_create_edge_1): Likewise.
26085         (cgraph_create_indirect_edge): Likewise.
26086         (cgraph_add_asm_node): Likewise.
26087
26088         * cfgrtl.c (init_rtl_bb_info): Likewise.
26089
26090         * cfgloop.c (alloc_loop): Likewise.
26091         (rescan_loop_exit): Likewise.
26092
26093         * cfg.c (init_flow): Likewise.
26094         (alloc_block): Likewise.
26095         (unchecked_make_edge): Likewise.
26096
26097         * c-parser.c (c_parse_init): Likewise.
26098         (c_parse_file): Likewise.
26099
26100         * c-decl.c (bind): Likewise.
26101         (record_inline_static): Likewise.
26102         (push_scope): Likewise.
26103         (make_label): Likewise.
26104         (lookup_label_for_goto): Likewise.
26105         (finish_struct): Likewise.
26106         (finish_enum): Likewise.
26107         (c_push_function_context): Likewise.
26108
26109         * bitmap.c (bitmap_element_allocate): Likewise.
26110         (bitmap_gc_alloc_stat): Likewise.
26111
26112         * alias.c (record_alias_subset): Likewise.
26113         (init_alias_analysis): Likewise.
26114
26115 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
26116
26117         * fold-const.c (fold_comparison): Remove redundant parenthesis.
26118         * tree-inline.c (expand_call_inline): Pass translated return value of
26119         cgraph_inline_failed_string to diagnostic function.
26120
26121 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
26122             Shujing Zhao  <pearly.zhao@oracle.com>
26123
26124         PR c/37724
26125         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
26126         implicit bad conversions is initialization.
26127         (error_init): Use gmsgid instead of msgid for argument name and change
26128         the call for error.
26129         (pedwarn_init): Use gmsgid instead of msgid for argument name and
26130         change the call for pedwarn.
26131         (warning_init): Use gmsgid instead of msgid for argument name and
26132         change the call for warning.
26133
26134 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
26135
26136         * config/mips/mips-protos.h (mips_print_operand): Delete.
26137         (mips_print_operand_address): Delete.
26138         * config/mips/mips.h (mips_print_operand_punct): Delete.
26139         (PRINT_OPERAND): Delete.
26140         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26141         (PRINT_OPERAND_ADDRESS): Delete.
26142         * config/mips/mips.c (mips_print_operand_punct): Make static.
26143         (mips_print_operand_address): Make static.
26144         (mips_print_operand): Make static.  Call
26145         mips_print_operand_punct_valid_p.
26146         (mips_print_operand_punct_valid_p): New function.
26147         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26148         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26149
26150 2010-06-07  Jan Hubicka  <jh@suse.cz>
26151
26152         PR middle-end/44454
26153         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
26154         are allocated.
26155
26156 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
26157
26158         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
26159         name of RECORD.
26160
26161 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26162
26163         * doc/sourcebuild.texi (Effective-Target Keywords, Other
26164         attributes): Document gas.
26165
26166 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
26167
26168         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
26169         <TYPE_LEA>: Split instruction.
26170         <default>: Remove alternative 2 handling.
26171         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
26172         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
26173         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
26174
26175         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
26176         (ashift_zext lea splitter): Use DImode for multiplication.
26177
26178         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
26179         to generate addition.
26180
26181 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
26182
26183         * common.opt (fira-verbose): Use Var.
26184         (fpcc-struct-return): Use Init instead of VarExists.
26185         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
26186         toplev.c.
26187         * flags.h (flag_signed_char, flag_short_enums,
26188         flag_pcc_struct_return, flag_ira_verbose,
26189         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
26190         * toplev.c (flag_detailed_statistics, flag_signed_char,
26191         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
26192         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
26193         * toplev.h (flag_crossjumping, flag_if_conversion,
26194         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
26195         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
26196         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
26197         flag_cprop_registers, time_report, flag_ira_loop_pressure,
26198         flag_ira_coalesce, flag_ira_move_spills,
26199         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
26200
26201 2010-06-07  Jan Hubicka  <jh@suse.cz>
26202
26203         * df-core.c (df_analyze_problem): Do verification after allocation.
26204
26205         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
26206         (df_lr_alloc): Initialize problem data; move bitmaps to
26207         lr_bitmaps obstack.
26208         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
26209         (df_lr_verify_solution_start): Do not initialize problem data;
26210         allocate bitmaps in lr_bitmaps.
26211         (df_lr_verify_solution_end): Do not free problem data.
26212
26213 2010-06-07  Jan Hubicka  <jh@suse.cz>
26214
26215         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
26216         if caller is noreturn.
26217         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
26218         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
26219         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
26220         * ipa-pure-const.c (check_decl): Add IPA parameter.
26221         (state_from_flags): New function.
26222         (better_state, worse_state): New functions.
26223         (check_call): When in IPA mode, do not care about callees.
26224         (check_load, check_store): Update.
26225         (check_ipa_load, check_ipa_store): New.
26226         (check_stmt): When in IPA mode, use IPA checkers.
26227         (analyze_function): Use state_from_flags.
26228         (propagate): Check indirect edges and references.
26229
26230 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
26231
26232         PR rtl-optimization/44404
26233         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
26234         of count_occurrences to see if it's safe to modify mem_insn.
26235
26236 2010-06-07  Richard Guenther  <rguenther@suse.de>
26237
26238         * gimplify.c (gimplify_cleanup_point_expr): For empty body
26239         and EH-only cleanup drop the cleanup instead of inserting it
26240         unconditionally.
26241
26242 2010-06-07  Ira Rosen  <irar@il.ibm.com>
26243
26244         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
26245         documentation.
26246         * targhooks.c (default_builtin_vectorization_cost): New function.
26247         * targhooks.h (default_builtin_vectorization_cost): Declare.
26248         * target.h (enum vect_cost_for_stmt): Define.
26249         (builtin_vectorization_cost): Change argument and comment.
26250         * tree-vectorizer.h: Remove cost model macros.
26251         * tree-vect-loop.c: Include target.h.
26252         (vect_get_cost): New function.
26253         (vect_estimate_min_profitable_iters): Replace cost model macros with
26254         calls to vect_get_cost.
26255         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
26256         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
26257         default implementation.
26258         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
26259         calls to target hook builtin_vectorization_cost.
26260         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
26261         Likewise.
26262         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
26263         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
26264         implementation to return costs.
26265         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
26266         * config/spu/spu.h: Remove vectorizer cost model macros.
26267         * config/i386/i386.h: Likewise.
26268         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
26269         a call to target hook builtin_vectorization_cost.
26270
26271 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
26272
26273         PR target/44319
26274         * config/i386/i386.c (override_options): Turn zee pass on for level 2
26275         and above and defer till target is known.
26276         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
26277         turn off otherwise.
26278
26279 2010-05-25  Jan Hubicka  <jh@suse.cz>
26280
26281         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
26282         (df_compact_blocks): Likewise.
26283         * df.h (struct df): Turn hardware_regs_used,
26284         regular_block_artificial_uses, eh_block_artificial_uses,
26285         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
26286         bitmap_head.
26287         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
26288         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
26289         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
26290         df_scan_blocks, df_insn_delete, df_insn_rescan,
26291         df_insn_rescan_debug_internal, df_insn_rescan_all,
26292         df_process_deferred_rescans, df_process_deferred_rescans,
26293         df_notes_rescan, df_get_call_refs, df_get_call_refs,
26294         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
26295         df_record_entry_block_defs, df_record_exit_block_uses,
26296         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
26297         df_scan_verify): Update.
26298
26299 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
26300
26301         PR c++/44188
26302         * c-common.c (is_typedef_decl): Move this definition ...
26303         * tree.c (is_typedef_decl): ... here.
26304         (typdef_variant_p): Move definition here from cp/tree.c.
26305         * c-common.h (is_typedef_decl): Move this declaration ...
26306         * tree.h (is_typedef_decl): ... here.
26307         (typedef_variant_p): Move declaration here from cp/cp-tree.h
26308         * dwarf2out.c (is_naming_typedef_decl): New function.
26309         (gen_tagged_type_die): Split out of ...
26310         (gen_type_die_with_usage): ... this function. When an anonymous
26311         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26312         is emitted for the typedef.
26313         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26314         anonymous tagged types.
26315
26316 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26317
26318         PR c/20000
26319         * c-decl.c (grokdeclarator): Delete warning.
26320
26321 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
26322
26323         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
26324         newly built CALL_EXPR.
26325         * tree-profile.c (tree_profiling): Don't profile functions produced
26326         for built-in stuff.
26327
26328 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
26329
26330         PR bootstrap/44427
26331         PR bootstrap/44428
26332         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
26333         endianness-independent.
26334
26335 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
26336
26337         * c-common.c: Move to c-family/.
26338         * c-common.def: Likewise.
26339         * c-common.h: Likewise.
26340         * c-cppbuiltin.c: Likewise.
26341         * c-dump.c: Likewise.
26342         * c-format.c: Likewise.
26343         * c-format.h : Likewise.
26344         * c-gimplify.c: Likewise.
26345         * c-lex.c: Likewise.
26346         * c-omp.c: Likewise.
26347         * c.opt: Likewise.
26348         * c-opts.c: Likewise.
26349         * c-pch.c: Likewise.
26350         * c-ppoutput.c: Likewise.
26351         * c-pragma.c: Likewise.
26352         * c-pragma.h: Likewise.
26353         * c-pretty-print.c: Likewise.
26354         * c-pretty-print.h: Likewise.
26355         * c-semantics.c: Likewise.
26356         * stub-objc.c: Likewise.
26357
26358         * gengtype.c (get_file_langdir): Special-case files in c-family/.
26359         (get_output_file_with_visibility): Fix name for c-common.h.
26360         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
26361
26362         * c-tree.h: Update include path for moved files.
26363         * c-lang.c: Likewise.
26364         * c-lang.h: Likewise.
26365         * c-parser.c: Likewise.
26366         * c-convert.c: Likewise.
26367         * c-decl.c: Likewise.
26368         * c-objc-common.c: Likewise.
26369         * configure.ac: Make sure c-family/ exists in the build directory.
26370         * configure: Regenerate.
26371         * Makefile.in: Update paths for moved files.  Regroup files per
26372         location and update dependencies.  Move generated_files down after
26373         ALL_GTFILES_H.
26374
26375         * config/spu/spu-c.c: Update paths for moved files.
26376         * config/mep/mep-pragma.c: Likewise.
26377         * config/darwin-c.c: Likewise.
26378         * config/i386/msformat-c.c: Likewise.
26379         * config/i386/i386-c.c: Likewise.
26380         * config/avr/avr-c.c: Likewise.
26381         * config/sol2-c.c: Likewise.
26382         * config/ia64/ia64-c.c: Likewise.
26383         * config/rs6000/rs6000-c.c: Likewise.
26384         * config/arm/arm.c: Likewise.
26385         * config/arm/arm-c.c: Likewise.
26386         * config/h8300/h8300.c: Likewise.
26387         * config/v850/v850-c.c: Likewise.
26388
26389         * config/t-darwin: Fix dependencies for moved files.
26390         * config/t-sol2: Fix dependencies for moved files.
26391         * config/mep/t-mep: Fix dependencies for moved files.
26392         * config/ia64/t-ia64: Fix dependencies for moved files.
26393         * config/rs6000/t-rs6000: Fix dependencies for moved files.
26394         * config/v850/t-v850: Fix dependencies for moved files.
26395         * config/v850/t-v850e: Fix dependencies for moved files.
26396
26397         * config/m32c/m32c-pragma.c
26398
26399         * po/exgettext: Look in c-family/ also.
26400
26401 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
26402
26403         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
26404         (mark_control_dependent_edges_necessary): Call it instead of marking
26405         the last statement manually.
26406         (propagate_necessity): Likewise.
26407
26408 2010-06-05  Jan Hubicka  <jh@suse.cz>
26409
26410         * basic-block.h (compute_dominance_frontiers): Updated.
26411         (compute_idf): Likewise.
26412
26413         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
26414         for dominance frontiers.
26415         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
26416         (insert_updated_phi_nodes_for): Likewise.
26417         (update_ssa): Likewise.
26418         * cfganal.c (compute_dominance_frontiers_1): Likewise.
26419         (compute_dominance_frontiers): Likewise.
26420         (compute_idf): Likewise.
26421         * df-problems.c (df_md_local_compute): Likewise.
26422
26423 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
26424
26425         * target.h (struct gcc_target): Add memory_move_cost field.
26426         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
26427         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
26428         * targhooks.c (default_memory_move_cost): New function.
26429         * targhooks.h (default_memory_move_cost): Declare function.
26430         * reload.h (memory_move_cost): Declare.
26431         (memory_move_secondary_cost): Change type of 'in' argument to bool.
26432         * reginfo.c (memory_move_cost): New function.
26433         (memory_move_secondary_cost): Change type of 'in' argument to bool.
26434         * ira.h (ira_memory_move_cost): Update comment.
26435         * ira.c (ira_memory_move_cost): Update comment.
26436         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
26437         with memory_move_cost.
26438         * postreload.c (reload_cse_simplify_set): (Ditto.).
26439         * reload1.c (choose_reload_regs): (Ditto.).
26440         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
26441         (MEMORY_MOVE_COST):  Revise documentation.
26442
26443         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
26444         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
26445         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
26446         type of 'in' argument to bool.
26447         (TARGET_MEMORY_MOVE_COST): Define.
26448
26449 2010-06-05  Jan Hubicka  <jh@suse.cz>
26450
26451         * ipa-pure-const.c (propagate): Fix typo in handling of functions
26452         that cannot return.  Be more careful when merging the results with
26453         previously known ones.
26454
26455 2010-06-05  Matthias Klose  <doko@ubuntu.com>
26456
26457         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
26458         function to add the -iplugindir option.
26459         (find_plugindir_spec_function): Add new declaration and function.
26460         (static_spec_func): Use it for "find-plugindir".
26461
26462 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
26463
26464         PR c++/44361
26465         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
26466         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
26467         statement expression.
26468
26469 2010-06-05  Jan Hubicka  <jh@suse.cz>
26470
26471         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
26472         (df_rd_problem_data): Convert sparse_invalidated_by_call,
26473         dense_invalidated_by_call to bitmap head.
26474         (df_rd_alloc, df_rd_bb_local_compute_process_def,
26475         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
26476         df_rd_start_dump, df_lr_verify_transfer_functions,
26477         df_live_verify_transfer_functions, df_chain_create_bb,
26478         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
26479         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
26480         df_simulate_one_insn_forwards, df_md_alloc,
26481         df_md_bb_local_compute_process_def,
26482         df_md_bb_local_compute_process_def, df_md_local_compute,
26483         df_md_transfer_function df_md_free): Update.
26484
26485 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
26486
26487         PR c/44322
26488         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
26489         target type for ADDR_EXPR; require no changes to qualifiers except
26490         for function types.
26491         * c-tree.h (c_build_type_variant): Remove.
26492
26493 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
26494
26495         * genautomata.c (get_excl_set): Do work per element, not per char.
26496         (check_presence_pattern_sets): Similar.
26497         (check_absence_pattern_sets): Similar.
26498
26499 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
26500
26501         * genautomata.c (curr_state_pass_num): Delete.
26502         (min_issue_delay_pass_states): Delete.
26503         (min_issue_delay): Delete.
26504         (initiate_min_issue_delay_pass_states): Delete.
26505         (output_min_issue_delay_table): Compute min_issue_delay_vect
26506         using a breadth-first search variant.
26507         (output_tables): Don't call initiate_min_issue_delay_pass_states.
26508
26509 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
26510
26511         PR boostrap/44421
26512         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
26513         (df_byte_lr_bb_local_compute): Likewise.
26514
26515 2010-06-03  Jason Merrill  <jason@redhat.com>
26516
26517         Implement noexcept operator (5.3.7)
26518         * c-common.c (c_common_reswords): Add noexcept.
26519         * c-common.h (enum rid): Add RID_NOEXCEPT.
26520
26521 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
26522
26523         * config/darwin-driver.c (darwin_default_min_version): Use
26524         GCC-specific formats in diagnostics.
26525         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
26526         diagnostics.
26527         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
26528         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
26529         eval_spec_function, handle_braces, process_brace_body, main,
26530         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
26531         getenv_spec_function, compare_version_strings,
26532         version_compare_spec_function): Use GCC-specific formats in
26533         diagnostics.
26534
26535 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
26536
26537         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
26538         that operand 0 and operand 1 are equal.
26539         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
26540         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
26541         and operand 1 are equal.
26542         <default>: Ditto.  Remove ??? comment.
26543         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
26544         and operand 1 are equal.
26545         <default>: Ditto.  Remove ??? comment.
26546         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
26547         are equal.
26548         (*add<mode>_4) <default>: Ditto.
26549         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
26550
26551 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
26552
26553         * config/i386/i386-protos.h (ix86_print_operand): Declare.
26554         * config/i386/i386.c (ix86_print_operand): Make non-static.
26555         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
26556         * output.h (output_operand): Declare.
26557         * final.c (output_operand): Make non-static.
26558
26559 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
26560
26561         PR rtl-optimization/44013
26562         * sched-deps.c (add_dependence_list_and_free): Don't free lists
26563         when processing debug insns.
26564
26565         PR debug/41371
26566         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
26567         recursing.  Check that recursion is bounded.  Rename inner var
26568         to avoid hiding incoming argument.
26569
26570 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
26571
26572         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
26573         operands[2] == 255.
26574         (*addqi_3): Ditto.
26575         (*addqi_4): Ditto.
26576         (*addqi_5): Ditto.
26577         (*addqi_ext_1_rex64): Ditto.
26578         (*addqi_ext_1): Ditto.
26579
26580         (*addqi_4): Check for incdec_operand in QImode.
26581
26582         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
26583         using SWI mode iterator.
26584         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
26585         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
26586         mode iterator.
26587         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
26588         using SWI mode iterator.
26589
26590 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26591
26592         PR c/25880
26593         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
26594         * c-format.c (gcc_diag_flag_specs): Add hash.
26595         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
26596         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
26597         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
26598         pp_c_cv_qualifiers. Handle qualifiers spelling here.
26599         (pp_c_type_qualifier_list): Call the function above.
26600         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
26601         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
26602         (WARN_FOR_QUALIFIERS): New macro.
26603         (convert_for_assignment): Use it.
26604
26605 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
26606
26607         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
26608
26609 2010-06-04  Jan Hubicka  <jh@suse.cz>
26610
26611         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
26612         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
26613         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
26614         DF_BYTE_LR_OUT): Update for embedded bitmaps.
26615         * fwprop.c (single_def_use_enter_block): Likewise.
26616         * ddg.c (create_ddg_dep_from_intra_loop_link,
26617         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
26618         * loop-iv.c (latch_dominating_def): Likewise.
26619         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
26620         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
26621         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
26622         df_rd_transfer_function, df_rd_top_dump,
26623         df_rd_bottom_dump): Update.
26624         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
26625         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
26626         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
26627         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
26628         df_lr_verify_solution_start, df_lr_verify_solution_end,
26629         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
26630         df_live_free_bb_info, df_live_alloc, df_live_reset,
26631         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
26632         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
26633         df_live_verify_solution_start, df_live_verify_solution_end,
26634         df_live_verify_transfer_functions, df_chain_create_bb,
26635         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
26636         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
26637         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
26638         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
26639         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
26640         df_byte_lr_transfer_function, df_byte_lr_top_dump,
26641         df_byte_lr_bottom_dump, df_create_unused_note,
26642         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
26643         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
26644         df_md_transfer_function, df_md_init, df_md_confluence_0,
26645         df_md_confluence_n,
26646         df_md_top_dump, df_md_bottom_dump): Update.
26647         (struct df_lr_problem_data): Embedd bitmap headers.
26648
26649 2010-06-04  Jan Hubicka  <jh@suse.cz>
26650
26651         * dce.c (dce_process_block): Do not re-scan already marked
26652         instructions.
26653
26654 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
26655
26656         PR rtl-optimization/39871
26657         PR rtl-optimization/40615
26658         PR rtl-optimization/42500
26659         PR rtl-optimization/42502
26660         * ira.c (init_reg_equiv_memory_loc: New function.
26661         (ira): Call it twice.
26662         * reload.h (calculate_elim_costs_all_insns): Declare.
26663         * ira-costs.c: Include "reload.h".
26664         (regno_equiv_gains): New static variable.
26665         (init_costs): Allocate it.
26666         (finish_costs): Free it.
26667         (ira_costs): Call calculate_elim_costs_all_insns.
26668         (find_costs_and_classes): Take estimated elimination costs
26669         into account.
26670         (ira_adjust_equiv_reg_cost): New function.
26671         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
26672         * reload1.c (init_eliminable_invariants, free_reg_equiv,
26673         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
26674         (elim_bb): New static variable.
26675         (reload): Move code out of here into init_eliminable_invariants and
26676         free_reg_equiv.  Call them.
26677         (calculate_elim_costs_all_insns): New function.
26678         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
26679         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
26680         but call note_reg_elim_costly if we turned a valid memory address
26681         into an invalid one.
26682         * Makefile.in (ira-costs.o): Depend on reload.h.
26683
26684 2010-06-04  Julian Brown  <julian@codesourcery.com>
26685
26686         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
26687         for pool ranges.
26688
26689 2010-06-04  Richard Guenther  <rguenther@suse.de>
26690
26691         PR lto/41584
26692         * cgraph.h (struct varpool_node): Add lto_file_data field.
26693         * lto-cgraph.c (input_varpool_node): Initialize it.
26694
26695 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
26696
26697         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
26698         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
26699         predicate in "type" attribute calculation.
26700         (*addsi_1_zext): Ditto.
26701         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
26702         (*addsi_2_zext): Ditto.
26703         (*add<mode>_3): Ditto.
26704         (*addsi_3_zext): Ditto.
26705         (*add<mode>_5): Ditto.
26706
26707 2010-06-03  Jan Hubicka  <jh@suse.cz>
26708
26709         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
26710         of bitmap_bit_p.
26711         * cfganal.c (compute_dominance_frontiers_1): Likewise.
26712
26713 2010-06-03  Jan Hubicka  <jh@suse.cz>
26714
26715         * df-problems.c (df_create_unused_note, df_note_bb_compute):
26716         micro-optimize the checks when to add new note.
26717
26718 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
26719
26720         * final.c (output_asm_insn): Call
26721         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
26722         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
26723         (output_address): Call targetm.asm_out.print_operand_address.
26724         Update comments.
26725         * target.h (struct gcc_target): Add print_operand,
26726         print_operand_address, and print_operand_punct_valid_p fields.
26727         * targhooks.h (default_print_operand): Declare.
26728         (default_print_operand_address): Declare.
26729         (default_print_operand_punct_valid_p): Declare.
26730         * targhooks.c (default_print_operand): Define.
26731         (default_print_operand_address): Define.
26732         (default_print_operand_punct_valid_p): Define.
26733         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
26734         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
26735         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
26736         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
26737         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
26738         * vmsdbgout.c (addr_const_to_string): Update comment.
26739         * config/i386/i386.c (print_operand): Rename to...
26740         (ix86_print_operand): ...this.  Make static.
26741         (print_operand_address): Rename to...
26742         (ix86_print_operand_address): ...this.  Make static.  Call
26743         ix86_print_operand instead of PRINT_OPERAND.
26744         (ix86_print_operand_punct_valid_p): New function.
26745         (TARGET_PRINT_OPERAND): Define.
26746         (TARGET_PRINT_OPERAND_ADDRESS): Define.
26747         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26748         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
26749         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26750         (PRINT_OPERAND): Delete.
26751         (PRINT_OPERAND_ADDRESS): Delete.
26752         * config/i386/i386-protos.h (print_operand): Delete prototype.
26753         (print_operand_address): Delete prototype.
26754
26755 2010-06-03  Richard Guenther  <rguenther@suse.de>
26756
26757         PR tree-optimization/44403
26758         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26759         Preserve pointer qualifiers.
26760         (vect_create_data_ref_ptr): Likewise.
26761
26762 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
26763
26764         PR c++/44294
26765         * defaults.h (MAX_FIXED_MODE_SIZE): New.
26766
26767         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
26768
26769 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
26770
26771         PR debug/44375
26772         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
26773         return false if merging the bbs would lead to goto_locus
26774         location being lost from the IL.
26775
26776 2010-06-03  Jan Hubicka  <jh@suse.cz>
26777             Jakub Jelinek  <jakub@redhat.com>
26778
26779         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
26780         set->regs[i] is NULL or has just one entry.
26781
26782 2010-06-03  Jan Hubicka  <jh@suse.cz>
26783
26784         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
26785         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
26786
26787 2010-06-03  Paul Brook  <paul@codesourcery.com>
26788
26789         * config/arm/arm.c (FL_TUNE): Define.
26790         (arm_default_cpu, arm_cpu_select): Remove.
26791         (all_cores): Populate core field.
26792         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
26793         (arm_find_cpu): New function.
26794         (arm_handle_option): Lookup cpu/architecture names.
26795         (arm_override_options): Cleanup mcpu/march/mtune handling.
26796         (arm_file_start): Ditto.
26797
26798 2010-06-03  Alan Modra  <amodra@gmail.com>
26799
26800         PR target/44169
26801         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
26802         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
26803         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
26804         (rs6000_emit_load_toc_table): Likewise.
26805
26806 2010-06-02  Jan Hubicka  <jh@suse.cz>
26807
26808         * passes.c (init_optimization_passes): Put ipa reference
26809         after ipa pure-const.
26810
26811 2010-06-02  Jan Hubicka  <jh@suse.cz>
26812
26813         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
26814         calls_read_all and calls_write_all.
26815         (get_reference_optimization_summary): Fix formatting.
26816         (is_proper_for_analysis): Check that decl is not readonly.
26817         (propagate_bits): Check CONST/PURE/noreturn flags.
26818         (ipa_init): Move all_module_statics to optimization_summary_obstack.
26819         (analyze_function): Ignore indirect edges.
26820         (copy_global_bitmap): For all module statics, do nothing.
26821         (generate_summary): Do not print calls_read_all/calls_write_all.
26822         (read_write_all_from_decl): Take node as argument; check
26823         cgraph_node_cannot_return.
26824         (propagate): Reorganize read_all/write_all computation;
26825         check indirect edges; check ecf flags; use all_module_statics
26826         in the results; do not free all_module_statics.
26827         (stream_out_bitmap): Handle all_module_statics.
26828         (ipa_reference_write_optimization_summary): Likewise; use
26829         varpool/cgraph encoders to get boundaries.
26830         (ipa_reference_read_optimization_summary): Read in all_module_statics;
26831         use it when possible.
26832
26833 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26834
26835         PR target/44218
26836         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
26837         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
26838
26839         * doc/extend.texi (powerpc builtins): Document vec_recip,
26840         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
26841
26842         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
26843         (rs6000_emit_swrsqrt): Ditto.
26844         (rs6000_emit_swdivsf): Delete.
26845         (rs6000_emit_swdivdf): Ditto.
26846         (rs6000_emit_swrsqrtsf): Ditto.
26847
26848         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
26849         describe the reciprocal estimate support for each type.
26850         (recip_options): Map -mrecip=<opt> into option bits.
26851         (gen_2arg_fn_t): New typedef for binary rtx gen function.
26852         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
26853         reciprocal estimate instructions.
26854         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
26855         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
26856         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
26857         cost information if -mdebug=cost or -mdebug=reg.
26858         (rs6000_override_options): Set -mrecip-precision for power6, and
26859         power7 machines.  If -mvsx or -mdfp, enable various options that
26860         came in previous instruction set ISAs, unless the option was
26861         explicitly disabled by the command line option.  Parse
26862         -mrecip=<opt> options.
26863         (rs6000_builtin_vectorized_function): Add support for vectorizing
26864         the reciprocal estimate builtins and expansions.
26865         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
26866         (bdesc_2arg): Add reciprocal estimate builtins.
26867         (bdesc_1arg): Add reciprocal square root estimate builtins.
26868         (rs6000_expand_builtin): Rewrite to use a switch statement,
26869         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
26870         (rs6000_init_builtins): Create declarations for reciprocal
26871         estimate builtins.
26872         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
26873         sized, prefer traditional floating point registers, if integer
26874         vector types, prefer altivec registers.  Don't actually look at
26875         the memory address any more.
26876         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
26877         builtins.
26878         (rs6000_load_constant_and_splat): New helper function to load up
26879         the constant for reciprocal estimate instructions.
26880         (rs6000_emit_madd): New helper function for generating
26881         multiply/add type instructions, based on the current switches.
26882         (rs6000_emit_msub): Ditto.
26883         (rs6000_emit_mnsub): Ditto.
26884         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
26885         replace a divide with a reciprocal estimate and fixup, adding
26886         support for machines with high precision and vectors.
26887         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
26888         low precision machines.
26889         (rs6000_emit_swdiv): New common function to be called to replace a
26890         division with reciprocal estimate and fixup.
26891         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
26892         for double and vector types.  Add support for high precision machines.
26893
26894         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
26895         the reciprocal estimate instructions can be generated.
26896         (TARGET_FRE): Ditto.
26897         (TARGET_FRSQRTES): Ditto.
26898         (TARGET_FRSQRTE): Ditto.
26899         (RS6000_RECIP_*): New macros for reciprocal estimate support.
26900
26901         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
26902         square root estimate on vectors.
26903         (re<mode>2): New insn for reciprocal division estimate on vectors.
26904
26905         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
26906         New builtin.
26907         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
26908         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
26909         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
26910         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
26911         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
26912         (RS6000_BUILTIN_RSQRT): Ditto.
26913         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
26914         floating point builtin.
26915
26916         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26917         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
26918         __RECIP_PRECISION__ based on the command line switches.
26919         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
26920
26921         * config/rs6000/rs6000.opt (-mrecip): Document add support for
26922         replacing division instructions with reciprocal estimate and fixup.
26923         (-mrecip=<opt>): New option.
26924         (-mrecip-precision): Ditto.
26925
26926         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
26927         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
26928         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
26929         precision scalar.
26930
26931         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
26932         (UNSPEC_VREFP): Ditto.
26933         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
26934         conterparts with regard to support of -mno-fused-madd and -ffast-math.
26935         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
26936         reciprocal estimate instructions to be generated.
26937         (altivec_vrefp): Ditto.
26938
26939         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
26940         estimate support.
26941         (rreg): New mode attribute for reciprocal estimate support.
26942         (recip<mode>3): New insn for division using reciprocal estimate
26943         and fixup builtins.
26944         (divide define_split): New define_split to convert floating point
26945         division to use reciprocal estimate if the user used the
26946         appropriate options and the split is run when we can add new
26947         pseudo registers for the fixup.
26948         (rsqrt<mode>2): New insn for reciprocal square root support.
26949         (recipsf3): Move into recip<mode>3.
26950         (recipdf3): Ditto.
26951         (fres): Use TARGET_FRES.
26952         (rsqrtsf2): Move into rsqrt<mode>2.
26953         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
26954         (copysignsf3): Add support for VSX.
26955         (fred): Use TARGET_FRE.
26956         (fred_fpr): Ditto.
26957         (rsqrtdf_internal1): New function for frsqrte instruciton.
26958
26959         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
26960         (vec_rsqrt): Ditto.
26961
26962 2010-06-03  Richard Guenther  <rguenther@suse.de>
26963
26964         PR middle-end/44291
26965         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
26966         (set_user_assembler_libfunc): Likewise.
26967
26968 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26969
26970         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
26971         defaults.h.
26972         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
26973         to defaults.h
26974         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
26975         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
26976         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
26977         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
26978         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
26979         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
26980         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
26981         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
26982         * defaults.h: Updated for above mentioned changes.
26983
26984 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
26985
26986         * c-common.c: Remove header include of tm_p.h.
26987         * Makefile.in (c-common.o): Remove TM_P_H dependency.
26988
26989 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
26990
26991         * tree.h (struct tree_decl_map): New type.
26992         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
26993         (tree_decl_map_hash): New prototype.
26994         (debug_expr_for_decl, value_expr_for_decl): Change into
26995         tree_decl_map hashtab from tree_map.
26996         (init_ttree): Adjust initialization.
26997         (tree_decl_map_hash): New function.
26998         (decl_debug_expr_lookup, decl_debug_expr_insert,
26999         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
27000
27001 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27002
27003         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
27004         linker emulations.
27005         * configure: Regenerate.
27006         * config.in: Regenerate.
27007
27008         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
27009         (X86_64_EMULATION): Define.
27010         (TARGET_LD_EMULATION): Use them.
27011
27012         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
27013         (SPARC64_EMULATION): Define.
27014         (LINK_ARCH_SPEC): Use them.
27015
27016 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
27017
27018         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
27019         smallest_mode_for_size for computing the precision types of new
27020         graphite IVs.  Do not call lang_hooks.types.type_for_size.
27021
27022 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
27023
27024         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
27025         information.
27026         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
27027
27028 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
27029
27030         PR middle-end/44363
27031         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
27032         return false instead.
27033
27034 2010-06-02  Jan Hubicka  <jh@suse.cz>
27035
27036         PR middle-end/44295
27037         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
27038         create new cgraph node to check callee.
27039
27040 2010-06-02  Richard Guenther  <rguenther@suse.de>
27041
27042         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
27043
27044 2010-06-02  Richard Guenther  <rguenther@suse.de>
27045
27046         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
27047         (lto_wrapper_cleanup): ... this.  Do not exit.
27048         (fatal): Adjust.  Exit here.
27049         (fatal_perror): Likewise.
27050         (fatal_signal): New function.
27051         (main): Set up signal handlers to cleanup temporary files.
27052         * Makefile.in (lto-wrapper.o): Adjust dependencies.
27053
27054 2010-06-02  Richard Guenther  <rguenther@suse.de>
27055
27056         PR tree-optimization/44377
27057         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
27058
27059 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27060
27061         * config/s390/2097.md (z10_fhex): Remove insn reservation.
27062         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
27063         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
27064         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
27065         instruction.
27066         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
27067
27068 2010-06-02  Jan Hubicka  <jh@suse.cz>
27069
27070         * bitmap.c (bitmap_descriptor): Add search_iter.
27071         (bitmap_find_bit): Increment it.
27072         (print_statistics): Print it.
27073
27074 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
27075
27076         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
27077         instead of gimple_build_call_vec.  Delete unnecessary local variable.
27078
27079 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
27080
27081         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
27082         change from yesterday.
27083
27084 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
27085
27086         * c-ada-spec.c: Clean up redundant includes.
27087
27088 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
27089
27090         * gimplify.c: Do not include except.h and optabs.h.
27091         (gimplify_body): Do not initialize RTL profiling.
27092         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
27093         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
27094         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
27095         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
27096         langhooks.h.
27097
27098         * tree-pretty-print.h: Include pretty-print.h.
27099         * gimple-pretty-print.h: Include pretty-print.h.
27100
27101         * tree-pretty-print.c: Do not include diagnostic.h.
27102         * tree-vrp.c: Likewise.
27103         * tree-tailcall.c: Likewise
27104         * tree-scalar-evolution.c: Likewise
27105         * tree-ssa-dse.c: Likewise
27106         * tree-chrec.c: Likewise
27107         * tree-ssa-sccvn.c: Likewise
27108         * tree-ssa-copyrename.c: Likewise
27109         * tree-nomudflap.c: Likewise
27110         * tree-call-cdce.c: Likewise
27111         * tree-stdarg.c: Likewise
27112         * tree-ssa-math-opts.c: Likewise
27113         * tree-nrv.c: Likewise
27114         * tree-ssa-sink.c: Likewise
27115         * tree-browser.c: Likewise
27116         * tree-ssa-loop-ivcanon.c: Likewise
27117         * tree-ssa-loop.c: Likewise
27118         * tree-parloops.c: Likewise
27119         * tree-ssa-address.c: Likewise
27120         * tree-ssa-ifcombine.c: Likewise
27121         * tree-if-conv.c: Likewise
27122         * tree-data-ref.c: Likewise
27123         * tree-affine.c: Likewise
27124         * tree-ssa-phiopt.c: Likewise
27125         * tree-ssa-coalesce.c: Likewise
27126         * tree-ssa-pre.c: Likewise
27127         * tree-ssa-live.c: Likewise
27128         * tree-predcom.c: Likewise
27129         * tree-ssa-forwprop.c: Likewise
27130         * tree-ssa-dce.c: Likewise
27131         * tree-ssa-ter.c: Likewise
27132         * tree-ssa-loop-prefetch.c: Likewise
27133         * tree-optimize.c: Likewise
27134         * tree-ssa-phiprop.c: Likewise
27135         * tree-object-size.c: Likewise
27136         * tree-outof-ssa.c: Likewise
27137         * tree-ssa-structalias.c: Likewise
27138         * tree-switch-conversion.c: Likewise
27139         * tree-ssa-reassoc.c: Likewise
27140         * tree-ssa-operands.c: Likewise
27141         * tree-vectorizer.c: Likewise
27142         * tree-vect-data-refs.c: Likewise
27143         * tree-vect-generic.c: Likewise
27144         * tree-vect-stmts.c: Likewise
27145         * tree-vect-patterns.c: Likewise
27146         * tree-vect-slp.c: Likewise
27147         * tree-vect-loop.c: Likewise
27148         * tree-ssa-loop-ivopts.c: Likewise
27149         * tree-ssa-loop-im.c: Likewise
27150         * tree-ssa-loop-niter.c: Likewise
27151         * tree-ssa-loop-unswitch.c: Likewise
27152         * tree-ssa-loop-manip.c: Likewise
27153         * tree-ssa-loop-ch.c: Likewise
27154         * tree-dump.c: Likewise
27155         * tree-complex.c: Likewise
27156
27157         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
27158         * tree-ssa-uninit.c: Likewise
27159         * tree-ssa-threadupdate.c: Likewise
27160         * tree-ssa-uncprop.c: Likewise
27161         * tree-ssa-ccp.c: Likewise
27162         * tree-ssa-dom.c: Likewise
27163         * tree-ssa-propagate.c: Likewise
27164         * tree-ssa-alias.c: Likewise
27165         * tree-dfa.c: Likewise
27166         * tree-cfgcleanup.c: Likewise
27167         * tree-sra.c: Likewise
27168         * tree-ssa-copy.c: Likewise
27169         * tree-ssa.c: Likewise
27170         * tree-profile.c: Likewise
27171         * tree-cfg.c: Likewise
27172         * tree-ssa-threadedge.c: Likewise
27173         * tree-vect-loop-manip.c: Likewise
27174
27175         * tree-inline.c: Do not include diagnostic.h and expr.h.
27176         Include rtl.h.
27177         (copy_decl_for_dup_finish): Do not use NULL_RTX.
27178
27179         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
27180         * tree-loop-distribution.c: Likewise.
27181
27182 2010-06-01  Jan Hubicka  <jh@suse.cz>
27183
27184         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
27185
27186 2010-06-01  Jan Hubicka  <jh@suse.cz>
27187
27188         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
27189         remove return value.
27190         (split_bbs_on_noreturn_calls) .... here.
27191         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
27192         * tree-flow.h (fixup_noreturn_call): New.
27193
27194 2010-06-01  Jan Hubicka  <jh@suse.cz>
27195
27196         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
27197
27198 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
27199
27200         * tree.h (build_nt_call_list): Delete.
27201         * tree.c (build_nt_call_list): Delete.
27202
27203 2010-06-01  Jan Hubicka  <jh@suse.cz>
27204
27205         * fwprop.c: Make emit-rtl.h include last.
27206         * rtlanal.c: Include emit-rtl.h.
27207         * genautomata.c: Output emit-rtl include into insn-automata.c
27208         * df-scan.c: Include emit-rtl.h.
27209         * haifa-sched.c: Indlude emit-rtl.h.
27210         * mode-switching.c: Indlude emit-rtl.h.
27211         * graph.c: Indlude emit-rtl.h.
27212         * sel-sched.c: Include emit-rtl.h.
27213         * sel-sched-ir.c: Include emit-rtl.h.
27214         * ira-build.c: Include emit-rtl.h.
27215         * emit-rtl.c (first_insn, last_insn): Remove defines.
27216         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
27217         Move to emit-rtl.h.
27218         (set_new_first_and_last_insn, get_last_insn_anywhere,
27219         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
27220         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
27221         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
27222         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
27223         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
27224         Use accessor functions.
27225         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27226          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27227         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27228         mem_expr_equal_p): Move here from rtl.h.
27229         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
27230         Move here from emit-rtl.c; make inline.
27231         * cfglayout.h: Include emit-rtl.h.
27232         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27233          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27234         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27235         mem_expr_equal_p, get_insns, set_first-insn,
27236         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
27237         * reg-stack.c: Include emit-rtl.h.
27238         * dce.c: Likewise.
27239
27240 2010-06-01  Jan Hubicka  <jh@suse.cz>
27241
27242         * cgraph.h (tree_function_versioning): Update prototype.
27243         (cgraph_function_versioning): Update prototype.
27244         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
27245         bitmap.
27246         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
27247         (cgraph_materialize_clone, save_inline_function_body): Update use of
27248         tree_function_versioning.
27249         * tree-inline.c (copy_bb): Look for previous copied block to link
27250         after; fix debug output.
27251         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
27252         (copy_body): Likewise.
27253         (expand_call_inline): Update use of copy_body.
27254         (tree_function_versioning): Update use of copy body; accept
27255         blocks_to_copy and new_entry.
27256
27257 2010-06-01  Jan Hubicka  <jh@suse.cz>
27258
27259         * gegenrtl.c: Remove unnecesary prototypes.
27260         (gendecl): Remove.
27261         (gendef): Produce static inline.
27262         (gencode): Remove.
27263         (main): Do not decode parameters; generate header only.
27264         * Makefile.in (genrtl.c): Remove.
27265
27266 2010-06-01  Jan Hubicka  <jh@suse.cz>
27267
27268         * tree-switch-conversion.c (build_one_array): Make it readonly.
27269
27270 2010-06-01  Richard Guenther  <rguenther@suse.de>
27271
27272         * optabs.c (init_optabs): Guard all accesses to reinit.
27273         * ipa-pure-const.c (propagate): Fix another typo.
27274         * opts.c (common_handle_option): Split assignment to bool.
27275         * c-opts.c (c_common_handle_option): Likewise.
27276
27277 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
27278             Matthew Gingell  <gingell@adacore.com>
27279
27280         * doc/invoke.texi: Mention -fdump-ada-spec.
27281         * tree-dump.c (dump_files): Add ada-spec.
27282         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
27283         * tree-pass.h (tree_dump_index): Add TDI_ada.
27284         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
27285         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
27286         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
27287         * c-decl.c: Include c-ada-spec.h.
27288         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
27289         functions.
27290         (c_write_global_declarations): Add handling of -fdump-ada-spec.
27291         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
27292         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
27293         * c-ada-spec.h, c-ada-spec.c: New files.
27294
27295 2010-06-01  Richard Guenther  <rguenther@suse.de>
27296
27297         PR lto/43853
27298         * ipa-pure-const.c (get_function_state): Hand back varying state
27299         if we do not have one.
27300         (has_function_state): New function.
27301         (duplicate_node_data): Adjust.
27302         (remove_node_data): Likewise.
27303         (pure_const_write_summary): Likewise.
27304         (propagate): Likewise.  Fix typo.
27305
27306 2010-06-01  Jan Hubicka  <jh@suse.cz>
27307
27308         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
27309         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
27310         (execute_all_ipa_transforms): Do not play with the states.
27311
27312 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
27313
27314         * config/arm/t-linux-androideabi: New.
27315         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
27316
27317 2010-06-01  Jan Hubicka  <jh@suse.cz>
27318
27319         * tree-inline.c (estimate_num_insns): For stdarg functions look
27320         into call statement to count cost of argument passing.
27321
27322 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
27323
27324         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
27325         argument for fprintf.
27326         (ix86_output_addr_diff_elt): Likewise.
27327         (x86_function_profiler): Likewise.
27328         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
27329         (LPREFIX): Likewise.
27330         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
27331
27332 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
27333
27334         PR target/44338
27335         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
27336         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
27337         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
27338         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
27339         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
27340         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
27341         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
27342         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
27343         TARGET_FUSED_MADD.
27344
27345 2010-05-31  Jan Hubicka  <jh@suse.cz>
27346
27347         * tree.h (tree_range_check_failed): Declare noreturn.
27348
27349 2010-05-31  Jan Hubicka  <jh@suse.cz>
27350
27351         * gimple.c (gimple_call_builtin_p): New function.
27352         * gimple.h (gimple_call_builtin_p): Declare.
27353         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
27354         to exit.
27355         (execute_warn_function_return): BUILT_IN_RETURN is return.
27356         (split_critical_edges): Return edges are not critical.
27357         (is_ctrl_altering_stmt): Builtin_in_return is altering.
27358         (gimple_verify_flow_info): Handle built_in_return.
27359         (execute_warn_function_return): Handle built_in_return.
27360         * ipa-pure-const.c (check_call): Ignore builtin_return.
27361
27362 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
27363
27364         PR middle-end/44337
27365         * expr.c (expand_assignment): Don't store anything for out-of-bounds
27366         array accesses with non-MEM.
27367
27368         PR tree-optimization/44182
27369         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
27370         newly needs to end a bb is followed by debug stmts, instead return
27371         true from the function at the end.
27372         (maybe_move_debug_stmts_to_successors): New function.
27373         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
27374
27375 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
27376
27377         PR target/44161
27378         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
27379
27380 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
27381
27382         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
27383         for nested functions in non-optimized compilation.
27384
27385 2010-05-31  Richard Guenther  <rguenther@suse.de>
27386
27387         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
27388
27389 2010-05-30  Jan Hubicka  <jh@suse.cz>
27390
27391         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
27392
27393 2010-05-30  Richard Guenther  <rguenther@suse.de>
27394
27395         PR lto/42975
27396         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
27397         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
27398         no longer needed.
27399
27400 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
27401
27402         * config/darwin.c (output_objc_section_asm_op): Add comment.
27403         (name_needs_quotes): Add '_' to list of valid comment chars.
27404         (machopic_output_function_base_name): Remove unneeded quotes.
27405         (darwin_encode_section_info): Adjust asm whitespace.
27406         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
27407         (ASM_OUTPUT_LOCAL): Ditto.
27408         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
27409         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
27410         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
27411
27412 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
27413
27414         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
27415         RS6000_OUTPUT_BASENAME unconditionally.
27416         (rs6000_output_function_epilogue): Likewise.
27417
27418 2010-05-30  Jan Hubicka  <jh@suse.cz>
27419
27420         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
27421         nodes.
27422
27423 2010-05-30  Richard Guenther  <rguenther@suse.de>
27424
27425         * tree-cfg.c (verify_gimple_assign_single): Implement
27426         verification for COND_EXPR rhs.
27427
27428 2010-05-30  Jan Hubicka  <jh@suse.cz>
27429
27430         * cgraph.h (cgraph_dump_file): Declare.
27431         * cgraphunit.c (cgraph_dump_file): Export.
27432         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
27433
27434 2010-05-30  Jan Hubicka  <jh@suse.cz>
27435
27436         * dwarf2out.c (reference_to_unused,
27437         premark_types_used_by_global_vars_helper): Avoid creation of new
27438         varpool nodes.
27439
27440 2010-05-30  Jan Hubicka  <jh@suse.cz>
27441
27442         * cgraph.h (cgraph_node_cannot_return,
27443         cgraph_edge_cannot_lead_to_return): New functions.
27444         * cgraph.c (cgraph_node_cannot_return,
27445         cgraph_edge_cannot_lead_to_return): Use them.
27446         * ipa-pure-const.c (pure_const_names): New static var.
27447         (check_call): Handle calls not leading to return.
27448         (pure_const_read_summary): Dump info read.
27449         (propagate): Dump info about propagation process; ignore side effects
27450         of functions not leading to exit; fix handling of pure functions.
27451
27452 2010-05-30  Jan Hubicka  <jh@suse.cz>
27453
27454         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
27455         for tail call epilogues.
27456
27457 2010-05-30  Jan Hubicka  <jh@suse.cz>
27458
27459         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
27460         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
27461         dump files.
27462
27463 2010-05-29  Jan Hubicka  <jh@suse.cz>
27464
27465         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
27466         node; remove references in node we no longer keep in cgrpah but need
27467         body of.
27468
27469 2010-05-29  Jan Hubicka  <jh@suse.cz>
27470
27471         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
27472
27473 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27474
27475         PR target/44165
27476         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
27477
27478 2010-05-29  Jan Hubicka  <jh@suse.cz>
27479
27480         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
27481         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
27482         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
27483         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
27484         debug_names_replaced_by, debug_update_ssa): Likewise.
27485         * sbitmap.c (debug_sbitmap): Likewise.
27486         * genrecog.c (debug_decision, debug_decision_list): Likewise.
27487         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
27488         debug_tree_chain): Likewise.
27489         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
27490         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
27491         * optabs.c (debug_optab_libfuncs): Likewise.
27492         (verify_loop_closed_ssa): Likewise.
27493         * value-prof.c (verify_histograms): Likewise.
27494         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
27495         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
27496         * cfghooks.c (verify_flow_info): Likewise.
27497         * fold-const.c (debug_fold_checksum): Likewise.
27498         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
27499         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
27500         Likewise.
27501         * omega.c (debug_omega_problem): Likewise.
27502         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
27503         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
27504         * dominance.c (verify_dominators, debug_dominance_info,
27505         debug_dominance_tree): Likewise.
27506         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
27507         * df_regno_debug, df_ref_debug,
27508         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
27509         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
27510         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
27511         * sel-sched.c (debug_state): Likewise.
27512         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
27513         Likewise.
27514         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
27515         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
27516         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
27517         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
27518         Likewise.
27519         * c-pretty-print.c (debug_c_tree): Likewise.
27520         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
27521         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
27522         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
27523         * ebitmap.c (debug_ebitmap): Likewise.
27524         * function.c (debug_find_var_in_block_tree): Likewise.
27525         * print-rtl.c (debug_rtx): Likewise.
27526         (debug_rtx_count): Likewise.
27527         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
27528         * stor-layout.c (debug_rli): Likewise.
27529         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
27530         * tree-data-ref.c (debug_data_references,
27531         debug_data_dependence_relations, debug_data_reference,
27532         debug_data_dependence_relation, debug_rdg_vertex,
27533         debug_rdg_component, debug_rdg): Likewise.
27534         * tree-affine.c (debug_aff): Likewise.
27535         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
27536         Likewise.
27537         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
27538         * emit-rtl.c (verify_rtl_sharing): Likewise.
27539         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
27540         debug_value_expressions): Likewise.
27541         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
27542         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
27543         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
27544         * cfglayout.c (verify_insn_chain): Likewise.
27545         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
27546         debug_clast_stmt, debug_generated_program): Likewise.
27547         * ggc-page.c (debug_print_page_list): Likewise.
27548         * tree-ssa-ter.c (debug_ter): Likewise.
27549         * graphite-dependences.c (debug_pddr): Likewise.
27550         * sched-deps.c (debug_ds): Likewise.
27551         * tree-ssa.c (verify_ssa): Likewise.
27552         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
27553         debug_scattering_functions, debug_iteration_domains, debug_pdr,
27554         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
27555         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
27556         * tree-inline.c (debug_find_tree): Likewise.
27557         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
27558         debug_ppl_powerset_matrix): Likewise.
27559         * var-tracking.c (debug_dv): Likewise.
27560         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
27561         * cfgloop.c (verify_loop_structure): Likewise.
27562         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
27563         * c-common.c (verify_sequence_points): Likewise.
27564         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
27565         debug_candidates, debug_rgn_dependencies): Likewise.
27566         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
27567         * debug_constraint_graph, debug_solution_for_var,
27568         debug_sa_points_to_info): Likewise.
27569         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
27570         Likewie.
27571         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
27572         debug_loops, debug_loop, debug_loop_num): Likewise.
27573         * passes.c (debug_pass): Likewise.
27574         (dump_properties): Likewise; add cfglayout property.
27575         (debug_properties): Likewise.
27576         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
27577         * varpool.c (debug_varpool): Likewise.
27578         * regcprop.c (debug_value_data): Likewise.
27579         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
27580         debug_immediate_uses_for): Likewise.
27581
27582 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
27583
27584         PR bootstrap/44315
27585         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
27586         Filter out insn-flags.h.
27587
27588 2010-05-29  Jan Hubicka  <jh@suse.cz>
27589
27590         * cgraph.h (struct varpool_node_set_def,
27591         struct cgraph_node_set_def): Remove unused AUX pointer.
27592         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
27593         VEC_empty macro.
27594
27595 2010-05-29  Jan Hubicka  <jh@suse.cz>
27596
27597         PR middle-end/44324
27598         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
27599
27600 2010-05-29  Richard Guenther  <rguenther@suse.de>
27601
27602         * lto-streamer.c (cached_bp): New global variable.
27603         (bitpack_create): Return the cached bitpack, if available.
27604         (bitpack_delete): Clear and cache the bitpack, if appropriate.
27605         (bp_pack_value): Remove redundant asserts.
27606
27607 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
27608
27609         PR middle-end/44306
27610         * tree-if-conv.c (is_true_predicate): New.
27611         (is_predicated): Use is_true_predicate.
27612         (add_to_predicate_list): Same.  Do not use unshare_expr.
27613         (add_to_dst_predicate_list): Same.
27614
27615 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
27616
27617         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
27618         field on edges.
27619         (predicate_bbs): Same.
27620         (clean_predicate_lists): Same.
27621         (find_phi_replacement_condition): Do not AND the predicate from
27622         edge->aux.
27623
27624 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
27625
27626         PR bootstrap/44315
27627         * Makefile.in (build/gencondmd.o): Add a missing `\'.
27628
27629 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27630
27631         PR target/44261
27632         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
27633         (negdf2): Adjust expander pattern and use negdf2_slow.
27634         (negsf2): Likewise.
27635
27636 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
27637
27638         * basic-block.h (struct control_flow_graph): Move last_label_uid field
27639         up.
27640         * df.h (struct df_base_ref): Move regno field up.
27641         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
27642         * expr.h (struct separate_ops): Move location field up.
27643         * optabs.h (struct optab_d): Move libcall_basename field down.
27644         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
27645         * config/i386/i386.h (struct machine_function): Convert call_abi field
27646         into a bitfield.  Move cfa field to the end of the structure.
27647
27648 2010-05-29  Jan Hubicka  <jh@suse.cz>
27649
27650         * varpool.c (varpool_get_node): Fix lookup.
27651
27652 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27653
27654         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
27655         RTL specific prototypes with #ifdef RTX_CODE.
27656         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
27657         * config/spu/t-spu-elf: Fix dependencies.
27658
27659         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
27660
27661 2010-05-29  Mike Stump  <mikestump@comcast.net>
27662
27663         PR bootstrap/44315
27664         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
27665         TM_H when building to avoid dependency loops.
27666
27667 2010-05-29  Jan Hubicka  <jh@suse.cz>
27668
27669         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
27670         refs and body; not the whole node for masters of materialized clones.
27671
27672 2010-05-29  Mike Stump  <mikestump@comcast.net>
27673
27674         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
27675
27676 2010-05-29  Jan Hubicka  <jh@suse.cz>
27677
27678         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
27679         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
27680         use of clone_function_name.
27681         * cgraph.h (cgraph_create_virtual_clone,
27682         cgraph_function_versioning): update prototypes.
27683         (clone_function_name): Declare.
27684         * ipa-cp.c (ipcp_insert_stage): Update call of
27685         cgraph_create_virtual_clone.
27686         * omp-low.c (create_omp_child_function_name): Use
27687         cgraph_create_virtual_clone.
27688         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
27689         (cgraph_function_versioning): Take SUFFIX argument; produce new name
27690         and make decl local.
27691
27692 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27693
27694         * vec.h: Include statistics.h
27695         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
27696         with VEC_H.
27697
27698 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27699
27700         * c-lex.c: Do not include c-tree.h.
27701         * c-pretty-print.c: Likewise.
27702         * c-opts.c: Likewise.
27703         * c-gimplify.c: Likewise.
27704         * c-common.c: Likewise.
27705         * c-dump.c: Likewise.  Include c-common.h.
27706
27707 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27708
27709         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
27710         before including diagnostic-core.h.
27711         (c_cpp_error): New prototype moved from c-tree.h.
27712         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
27713         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
27714         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
27715         (c_cpp_error): Prototype moved to c-common.h.
27716         * Makefile.in: Update dependency for C_COMMON_H.
27717
27718 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27719
27720         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
27721         * c-common.c (c_register_addr_space): Remove here.
27722         * c-decl.c (c_register_addr_space): Re-add here.
27723
27724 2010-05-28  Mike Stump  <mikestump@comcast.net>
27725
27726         * config/darwin-c.c: Remove c-tree.h include.
27727
27728 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27729
27730         * gcc.c: Include diagnostic.h.
27731         (error_count): Remove.  All users changed to use errorcount.
27732         (programname): Remove.  All users changed to use progname.
27733         (fancy_abort, internal_error, fatal_error, error, warning, inform,
27734         fnotice): Remove.
27735         (execute): Don't include "Internal error" and bug reporting
27736         information in argument of internal_error call.
27737         (process_command): Don't increment error_count after calling
27738         perror_with_name.
27739         (input_filename): Rename to gcc_input_filename.  All users
27740         changed.
27741         (main): Call diagnostic_initialize.  Register delete_temp_files
27742         with atexit.  Use seen_error to test for errors.
27743         * gcc.h: Include diagnostic-core.h.
27744         (fatal_error, error, warning): Remove.
27745         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
27746         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
27747         (gcc.o): Update dependencies.
27748
27749 2010-05-28  Jeff Law  <law@redhat.com>
27750
27751         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
27752         functions.
27753         * ira.h (ira_bad_reload_regno): Declare
27754         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
27755
27756         * ira-color.c (update_curr_costs): Free updated hard reg costs.
27757         (ira_reassign_conflict_allocnos): Remove bogus asserts.
27758         (allocno_reload_assign): Likewise.
27759
27760 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
27761
27762         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
27763         build1_stat.
27764
27765 2010-05-28  Richard Guenther  <rguenther@suse.de>
27766
27767         PR lto/44312
27768         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
27769         Stream fixed-point constants mode.
27770         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
27771         and TYPE_PRECISION.
27772         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
27773         Stream fixed-point constants mode.
27774         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
27775         and TYPE_PRECISION.
27776
27777 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27778
27779         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
27780         only place it was called from.
27781         (number_of_latch_executions): Do not return chrec_dont_know when the
27782         may_be_zero is a runtime condition: instead, return a COND_EXPR
27783         including the may_be_zero condition.
27784         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
27785         of nb_iterations.
27786         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
27787         COND_EXPRs.
27788
27789 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27790
27791         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
27792         generate COND_EXPRs for degenerate_phi_result.
27793
27794 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27795
27796         PR middle-end/44293
27797         * tree-if-conv.c (if_convertible_loop_p): Check the
27798         if-convertibility of phi nodes in non predicated BBs.
27799
27800 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27801
27802         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
27803
27804 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27805
27806         PR driver/15303
27807         * gcc.c (inform, warning, inform): New functions.
27808         (fatal_ice): Rename to internal_error; change cmsgid parameter to
27809         gmsgid.  All callers changed.
27810         (notice): Rename to fnotice; add parameter fp.  All callers changed.
27811         (fatal_error): Rename to fatal_signal.  All users changed.
27812         (fatal): Rename to fatal_error; change cmsgid parameter to
27813         gmsgid.  All callers changed.
27814         (process_command): Use warning instead of error for warnings.
27815         (end_going_arg): Don't use _() around argument of error.
27816         (do_spec_1): Use inform for message from %n specs.  Use warning
27817         instead of error for warnings.
27818         (main): Use inform for comparison messages.  Use warning for
27819         message about unused linker input.
27820         (error): Increment error_count.  Print "error: ".
27821         * gcc.h (fatal): Change to fatal_error.
27822         (warning): Declare.
27823         * config/darwin-driver.c (darwin_default_min_version): Use warning
27824         instead of fprintf for warnings.
27825         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
27826
27827 2010-05-28  Julian Brown  <julian@codesourcery.com>
27828
27829         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
27830         (*thumb2_addsi3_compare0_scratch): New.
27831         * config/arm/constraints.md (Pv): New.
27832         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
27833         for ARM mode only.
27834         (*addsi3_compare0_scratch): Likewise.
27835
27836 2010-05-28  Jan Hubicka  <jh@suse.cz>
27837
27838         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
27839         check.
27840         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
27841         only on local statics.
27842
27843 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
27844
27845         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
27846
27847 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
27848
27849         PR bootstrap/44314
27850         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
27851         (OPTION_GLIBC): Define.
27852
27853 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27854
27855         PR debug/41048
27856         * dwarf2out.c (double_int_type_size_in_bits): New function.
27857         (round_up_to_align): Change first argument and return value to
27858         double_int.
27859         (field_byte_offset): Work internally on double_ints.
27860
27861         PR target/43636
27862         * builtins.c (expand_movstr): Use a temporary pseudo instead
27863         of target even when target is not NULL and not const0_rtx, but
27864         fails movstr predicate.
27865         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
27866
27867 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27868
27869         * final.c (rest_of_clean_state): Use %m in errors instead of
27870         strerror (errno).
27871         * gengtype.c (read_input_list, close_output_files): Use xstrerror
27872         instead of strerror.
27873         * toplev.c (process_options): Use %m in errors instead of strerror
27874         (errno).
27875         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
27876         (errno).
27877
27878 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
27879
27880         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
27881         (ix86_canonical_va_list_type): Make static.  Add declaration.
27882         (ix86_enum_va_list): Make static.  Reindent.
27883         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
27884         (ix86_canonical_va_list_type): Ditto.
27885         (ix86_enum_va_list): Ditto.
27886
27887 2010-05-28  Richard Guenther  <rguenther@suse.de>
27888
27889         * lto-wrapper.c (run_gcc): With -save-temps generate a
27890         user-visible ltrans filename.  Fixup ltrans unit numbering.
27891
27892 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
27893
27894         * c-common.c (c_common_nodes_and_builtins): Replace use
27895         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
27896         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
27897         to ix86_enum_va_list.
27898         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
27899         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
27900         (TARGET_ENUM_VA_LIST_P): Add hook description.
27901         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
27902         * target.h (gcc_target): Add enum_va_list hook.
27903
27904         PR bootstrap/44299
27905         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
27906         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
27907         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
27908
27909 2010-05-28  Alan Modra  <amodra@gmail.com>
27910
27911         PR target/44266
27912         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
27913         emit_library_call machinery to set up __tls_get_addr calls.
27914
27915 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27916
27917         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
27918
27919 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
27920
27921         Revert fix for PR c++/44188
27922         * c-common.c (is_typedef_decl): Revert the moving of  this
27923         definition ...
27924         * tree.c (is_typedef_decl): ... here.
27925         (typdef_variant_p): Revert the moving of this  definition
27926         here from cp/tree.c.
27927         * c-common.h (is_typedef_decl): Revert the moving of this
27928         declaration ...
27929         * tree.h (is_typedef_decl): ... here.
27930         (typedef_variant_p): Revert the moving of this  declaration here
27931         from cp/cp-tree.h
27932         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
27933         (gen_tagged_type_die): Revert the splitting out of ...
27934         (gen_type_die_with_usage): ... this function. Revert the anonymous
27935         tagged type handling.
27936         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
27937         typedefs naming anonymous tagged types.
27938
27939 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27940
27941         * config/rs6000/rs6000-modes.def (PSImode): Delete.
27942
27943 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27944
27945         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
27946         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
27947         throughout.
27948         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
27949         "xer" to "ca".
27950         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
27951         XER_REGS to CA_REGS throughout.
27952         * config/rs6000/rs6000.h: Same.
27953         (ADDITIONAL_REGISTER_NAMES): Add "xer".
27954         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
27955         that mode_iterator "P" is the size for arithmetic carries as well.
27956         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
27957
27958 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27959
27960         PR bootstrap/44255
27961         * combine.c (struct rtx_subst_pair): Define unconditionally.
27962         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
27963         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
27964         Call make_compound_operation on pair->to.
27965         (propagate_for_debug): Don't call make_compound_operation here.
27966         Always use simplify_replace_fn_rtx.
27967
27968 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
27969
27970         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
27971         * config/xtensa/xtensa.c (override_options): Check
27972           TARGET_FORCE_NO_PIC and set flag_pic.
27973         * config/xtensa/xtensa.opt: Document -mforce-no-pic
27974
27975 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27976
27977         PR bootstrap/44299
27978         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
27979         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
27980
27981 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27982
27983         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
27984         toplev.h.
27985         * diagnostic.c: Don't include toplev.h.
27986         (progname): Define.  Moved from toplev.c.
27987         (seen_error): New function.
27988         * diagnostic.h: Include diagnostic-core.h.
27989         (diagnostic_t, emit_diagnostic): Don't declare here.
27990         * toplev.c (progname): Move to toplev.c.
27991         (emit_debug_global_declarations, compile_file, finalize,
27992         do_compile, toplev_main): Use seen_error.
27993         * toplev.h: Include diagnostic-core.h.
27994         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
27995         internal_error, warning, warning_at, error, error_n, error_at,
27996         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
27997         verbatim, fnotice, progname): Move to diagnostic-core.h.
27998         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
27999         (expand_builtin_expect): Use seen_error.
28000         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
28001         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
28002         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
28003         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
28004         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
28005         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
28006         errorcount for errors.
28007         * c-opts.c (c_common_finish): Use seen_error.
28008         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
28009         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
28010         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
28011         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
28012         (get_coverage_counts): Use seen_error.
28013         * dwarf2out.c (dwarf2out_finish): Use seen_error.
28014         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
28015         gimplify_body): Use seen_error.
28016         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
28017         * ipa-pure-const.c (gate_pure_const): Use seen_error.
28018         * ipa-reference.c (gate_reference): Use seen_error.
28019         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
28020         * lambda-code.c: Include diagnostic-core.h instead of
28021         diagnostic.h.
28022         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
28023         * lto-compress.c: Include diagnostic-core.h instead of
28024         diagnostic.h.
28025         * lto-section-in.c: Include diagnostic-core.h instead of
28026         diagnostic.h.
28027         * lto-streamer-out.c: Include diagnostic-core.h instead of
28028         diagnostic.h.
28029         * lto-streamer.c: Include diagnostic-core.h instead of
28030         diagnostic.h.
28031         (gate_lto_out): Use seen_error.
28032         * matrix-reorg.c: Include diagnostic-core.h instead of
28033         diagnostic.h.
28034         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
28035         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
28036         (gate_expand_omp, lower_omp_1): Use seen_error.
28037         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
28038         (rest_of_decl_compilation, rest_of_type_compilation,
28039         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
28040         * tree-cfg.c (label_to_block_fn): Use seen_error.
28041         * tree-inline.c (optimize_inline_calls): Use seen_error.
28042         * tree-mudflap.c (mudflap_finish_file): Use
28043         seen_error.
28044         * tree-optimize.c (gate_all_optimizations,
28045         gate_all_early_local_passes, gate_all_early_optimizations): Use
28046         seen_error.
28047         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
28048         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
28049         (varpool_remove_unreferenced_decls,
28050         varpool_assemble_pending_decls): Use seen_error.
28051         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
28052         (TOPLEV_H, DIAGNOSTIC_H): Update.
28053         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
28054         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
28055         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
28056         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
28057         coverage.o, lambda-code.o): Update dependencies.
28058
28059 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
28060
28061         PR c++/44188
28062         * c-common.c (is_typedef_decl): Move this definition ...
28063         * tree.c (is_typedef_decl): ... here.
28064         (typdef_variant_p): Move definition here from cp/tree.c.
28065         * c-common.h (is_typedef_decl): Move this declaration ...
28066         * tree.h (is_typedef_decl): ... here.
28067         (typedef_variant_p): Move declaration here from cp/cp-tree.h
28068         * dwarf2out.c (is_naming_typedef_decl): New function.
28069         (gen_tagged_type_die): Split out of ...
28070         (gen_type_die_with_usage): ... this function. When an anonymous
28071         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
28072         is emitted for the typedef.
28073         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
28074         anonymous tagged types.
28075
28076 2010-05-27  Jason Merrill  <jason@redhat.com>
28077
28078         * print-tree.c (debug_vec_tree): New fn.
28079         (print_vec_tree): New fn.
28080         * tree.h: Declare them.
28081         * gdbinit.in (pvt): New command.
28082
28083         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
28084
28085         * gdbinit.in (pdd): New command.
28086
28087 2010-05-27  Jan Hubicka  <jh@suse.cz>
28088
28089         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
28090         (update_caller_keys): Return early if there are no callers;
28091         only update fibheap when decresing the key.
28092         (update_callee_keys): Avoid recursion.
28093         (decide_inlining_of_small_functions): When badness does not match;
28094         re-insert into fibheap.
28095
28096 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
28097
28098         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
28099         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
28100         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
28101         (ALL_HOST_OBJS): Now a union of the above two.
28102         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
28103         all files in ALL_HOST_FRONTEND_OBJS.
28104         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
28105
28106         * c-common.c: Pretend to be a backend file by undefining
28107         IN_GCC_FRONTEND (still need rtl.h here).
28108
28109 2010-05-27  Jan Hubicka  <jh@suse.cz>
28110
28111         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
28112         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
28113
28114 2010-05-27  Jan Hubicka  <jh@suse.cz>
28115
28116         * sched-ebb.c: Rename struct deps to struct deps_desc.
28117         * ddg.c: Likewise.
28118         * sel-sched-ir.c: Likewise.
28119         * sched-deps.c: Likewise.
28120         * sched-int.h: Likewise.
28121         * sched-rgn.c: Likewise.
28122
28123 2010-05-27  Jon Beniston  <jon@beniston.com>
28124
28125         PR 43726
28126         * config/lm32/lm32.h: Remove definition of
28127         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
28128
28129 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
28130
28131         PR lto/44230
28132         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
28133
28134 2010-05-27  Richard Guenther  <rguenther@suse.de>
28135
28136         PR tree-optimization/44284
28137         * tree-vect-stmts.c (vectorizable_assignment): Handle
28138         sign-changing conversions as simple copy.
28139
28140 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
28141
28142         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
28143         Bionic C library.
28144         (__gthread_active_p): Check for pthread_create if compiling against
28145         Bionic C library.
28146
28147 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
28148
28149         Support compilation for Android platform.  Reimplement -mandroid.
28150
28151         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
28152         (*android*): Set ANDROID_DEFAULT.
28153         (arm*-*-linux*): Include linux-android.h.
28154         (arm*-*-eabi*): Don't include previous -mandroid implementation.
28155         * config/arm/eabi.h: Remove, move Android-specific parts ...
28156         * config/linux-android.h: ... here.  New file.
28157         * config/arm/eabi.opt: Rename to ...
28158         * config/linux-android.opt: ... this.
28159         (mandroid): Allow -mno-android option.  Initialize based on
28160         ANDROID_DEFAULT.
28161         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
28162         Move logic to corresponding LINUX_TARGET_* macros.
28163         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
28164         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
28165         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
28166         Android definitions.
28167         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
28168         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
28169         Document.
28170
28171 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
28172
28173         Add support for Bionic C library
28174
28175         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
28176         macro.
28177         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
28178         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
28179
28180         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
28181         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
28182         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
28183         to support multiple C libraries.  Handle Bionic.
28184         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
28185         (BIONIC_DYNAMIC_LINKER64): Define.
28186         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
28187         Update.
28188         (TARGET_HAS_SINCOS): Enable for Bionic.
28189
28190         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
28191         the last option specified on command line take effect.
28192         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
28193         (mbionic): New.
28194         (mglibc, muclibc): Update.
28195
28196         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
28197         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
28198         DEFAULT_LIBC.
28199
28200         * doc/invoke.texi (-mglibc, -muclibc): Update.
28201         (-mbionic): Document.
28202
28203 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28204
28205         * c-common.h (c_register_addr_space): Add prototype.
28206         (ADDR_SPACE_KEYWORD): Remove.
28207         * c-common.c (c_register_addr_space): New function.
28208         (c_addr_space_name): Reimplement.
28209         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
28210
28211         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
28212         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
28213
28214         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
28215         Remove TARGET_ADDR_SPACE_KEYWORDS.
28216
28217 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
28218
28219         * input.c: New file.
28220         * input.h (main_input_filename): Move declaration to toplev.h.
28221         * toplev.c (input_location, line_table): Move to input.c
28222         * toplev.h (main_input_filename): Move declaration from input.h.
28223         * tree.c (expand_location): Move to input.c.
28224         * Makefile.in (OBJS-common): Add input.o.
28225         (input.o): Add dependencies.
28226
28227 2010-05-27  Richard Guenther  <rguenther@suse.de>
28228
28229         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
28230         for non-existant files.
28231         (fork_execute): Mark args_name file as deleted.
28232
28233 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
28234
28235         PR bootstrp/44287
28236         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
28237         (narrow_signed_type): Likewise.
28238
28239 2010-05-26  Jan Hubicka  <jh@suse.cz>
28240
28241         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
28242         edge only when checking is enabled; check using former_clone_of;
28243         check inline clones too.
28244         (cgraph_materialize_clone): Record former_clone_of pointer.
28245         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
28246         combining redirections; dump args_to_skip bitmap
28247         (cgraph_materialize_all_clones): Do no redirection here.
28248         * ipa-inline.c (inline_transform): Do redirection here.
28249         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
28250         cheking only).
28251
28252 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
28253
28254         * config/avr/avr-c.c: Do not include regs.h.
28255         Include cpplib.h for cpp_define and tree.h for c-common.h.
28256         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
28257         * config/avr/t-avr: Fix dependencies for avr-c.o.
28258
28259 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
28260
28261         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
28262         string instead of SYMBOL_REF rtx.
28263         * rtl.h (set_stack_check_libfunc): Move prototype from here...
28264         * libfuncs.h: ...to here.  Adjust for explow.c change.
28265
28266 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
28267
28268         * pretty-print.c: Don't include ggc.h.
28269         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
28270         (identifier_to_locale): Use them for allocation.
28271         * pretty-print.h (identifier_to_locale_alloc,
28272         identifier_to_locale_free): Declare.
28273         * toplev.c (alloc_for_identifier_to_locale): New.
28274         (general_init): Set identifier_to_locale_alloc and
28275         identifier_to_locale_free.
28276         * Makefile.in (pretty-print.o): Update dependencies.
28277
28278 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
28279
28280         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
28281         pointer types if they have different alignment or mode.
28282
28283 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
28284
28285         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28286         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28287         * config/sparc/sparc-protos.h (function_value): Remove declaration.
28288         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
28289         sparc_function_value_regno_p): New functions.
28290         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28291         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28292         (function_value): Rename to...
28293         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
28294         argument to 'outgoing'.
28295         (function_arg_record_value, function_arg_union_value,
28296         function_arg_vector_value): Update comment.
28297
28298 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
28299
28300         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
28301         (fde_needed_for_eh_p): New predicate.
28302         (output_call_frame_info): Use it throughout to decide whether FDEs
28303         are needed for EH purpose.
28304         (dwarf2out_begin_prologue): Reorder assignments.
28305
28306 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28307
28308         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
28309         special case loop->header.
28310         (is_predicated): New.
28311         (if_convertible_loop_p): Call it.
28312
28313 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28314
28315         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
28316         iterator in parameter.  Do not generate code during the analysis.
28317         (tree_if_convert_cond_stmt): Removed.
28318         (tree_if_convert_stmt): Removed.
28319         (predicate_bbs): New.
28320         (if_convertible_loop_p): Call predicate_bbs.
28321         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
28322         now contains all the analysis part.
28323
28324 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28325
28326         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
28327         statements in the analysis part.
28328         (tree_if_convert_stmt): Update comment.
28329         (remove_conditions_and_labels): New.
28330         (combine_blocks): Call remove_conditions_and_labels.
28331         (tree_if_conversion): Update comment.
28332
28333 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28334
28335         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
28336         than 2 predecessors or more than 2 successors.
28337
28338 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28339
28340         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
28341         of loops in which the data dependence analysis fails.
28342
28343 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28344
28345         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
28346         CDI_POST_DOMINATORS.
28347         (tree_if_conversion): Same.
28348
28349 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28350
28351         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
28352
28353 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
28354
28355         * tree-if-conv.c: Update copyright years.  Fix comments.
28356         Fix indentation.
28357
28358 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
28359
28360         * builtin-types.def (BT_INT128): New primitive type.
28361         (BT_UINT128): Likewise.
28362         * c-common.c (c_common_r): Add __int128 keyword.
28363         (c_common_type_for_size): Handle __int128.
28364         (c_common_type_for_mode): Likewise.
28365         (c_common_signed_or_unsigned_type): Likewise.
28366         (c_common_nodes_and_builtins): Add builtin type
28367         if target supports 128-bit integer scalar.
28368         * c-common.h (enum rid): Add RID_INT128.
28369         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
28370         if target supports 128-bit integer scalar.
28371         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
28372         (finish_declspecs): Likewise.
28373         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
28374         (c_token_starts_declspecs): Likewise.
28375         (c_parser_declspecs): Likewise.
28376         (c_parser_attributes): Likewise.
28377         (c_parser_objc_selector): Likewise.
28378         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
28379         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
28380         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
28381         * tree.c (make_or_reuse_type): Likewise.
28382         (make_unsigned_type): Likewise.
28383         (build_common_tree_nodes_2): Likewise.
28384         * tree.h (enum integer_type_kind): Add itk_int128 and
28385         itk_unsigned_int128.
28386         (int128_integer_type_node): New define.
28387         (int128_unsigned_type_node): New define.
28388         * doc/extend.texi: Add documentation about __int128 type.
28389
28390 2010-05-26  Richard Guenther  <rguenther@suse.de>
28391
28392         * tree-ssa-sccvn.c (copy_nary): Adjust.
28393         (copy_phis): Rename to ...
28394         (copy_phi): ... this.  Adjust.
28395         (copy_references): Rename to ...
28396         (copy_reference): ... this.  Adjust.
28397         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
28398         result into the valid table.
28399
28400 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
28401
28402         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
28403         insn-config.h, insn-codes.h, recog.h, and optabs.h.
28404
28405 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28406
28407         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
28408
28409 2010-05-26  Richard Guenther  <rguenther@suse.de>
28410
28411         * opts.c (common_handle_option): Handle OPT_Ofast.
28412
28413 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
28414
28415         * diagnostic.c: Don't include opts.h.
28416         (permissive_error_option): Define.
28417         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
28418         for classify_diagnostic.  Don't use memset for
28419         classify_diagnostic.  Initialize new and recently added fields.
28420         (diagnostic_classify_diagnostic): Use context->n_opts instead of
28421         N_OPTS.
28422         (diagnostic_report_diagnostic): Pass context parameter to
28423         diagnostic_report_warnings_p.  Use option_enabled and option_name
28424         hooks from context.
28425         (emit_diagnostic): Use permissive_error_option.
28426         (permerror): Likewise.
28427         * diagnostic.h: Don't include options.h.
28428         (struct diagnostic_context): Add n_opts, opt_permissive,
28429         inhibit_warnings, warn_system_headers, option_enabled and
28430         option_name fields.  Change classify_diagnostic to a pointer.
28431         * opts-diagnostic.h: New file.
28432         * opts.c: Include opts-diagnostic.h.
28433         (common_handle_option): Set global_dc fields for -Wfatal-errors,
28434         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
28435         (option_name): New function.
28436         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
28437         (c_common_handle_option): Set global_dc->permissive for
28438         -fpermissive.
28439         * c-common.c (c_cpp_error): Save and restore
28440         global_dc->warn_system_headers, not variable warn_system_headers.
28441         * toplev.c: Include opts-diagnostic.h.
28442         (general_init): Update call to diagnostic_initialize.  Set
28443         global_dc->show_column, global_dc->option_enabled and
28444         global_dc->option_name.
28445         (process_options): Don't set global_dc fields here.
28446         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
28447         (diagnostic.o, opts.o, toplev.o): Update dependencies.
28448
28449 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
28450
28451         * config/picochip/picochip.md (movsi): Split a movsi from a
28452         const after reload.
28453
28454 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28455
28456         * ggc-zone.c: Update copyright year.
28457         (poison_region): Mark memory for Valgrind as undefined before
28458         memset () call and inaccessible afterwards.
28459         (ggc_pch_total_size): Change type of i to int.
28460
28461 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28462
28463         * ggc-common.c (ggc_free_overhead): Allow empty slot.
28464
28465 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28466
28467         * ggc-common.c: Update copyright year.
28468         (ggc_rlimit_bound): Remove prototype.  Compile only if
28469         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
28470         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
28471         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
28472         (ggc_min_heapsize_heuristic): Likewise.
28473
28474 2010-05-26  Richard Guenther  <rguenther@suse.de>
28475
28476         PR rtl-optimization/44164
28477         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
28478         no-common access-path disambiguation.
28479         (indirect_ref_may_alias_decl_p): Adjust.
28480         (indirect_refs_may_alias_p): Likewise.
28481         (refs_may_alias_p_1): Likewise.
28482
28483 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
28484
28485         * c-typeck.c: Do not include expr.h.
28486
28487 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
28488
28489         * rtl.h (decl_default_tls_model): Move prototype from here...
28490         * output.h: ...to here.
28491         * c-decl.c: Do not include rtl.h.
28492         * c-pragma.c: Likewise.
28493         * c-parser.c: Likewise.
28494         * c-gimplify.c: Likewise.  And also not hard-reg-set.
28495         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
28496         FIXME note for it.  Add a FIXME note for expr.h.
28497         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
28498         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
28499         defined.
28500
28501 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
28502
28503         PR target/44199
28504         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
28505         or total_size is larger than red zone size for non-V4 ABI, emit a
28506         stack_tie resp. frame_tie insn before stack pointer restore.
28507         * config/rs6000/rs6000.md (frame_tie): New insn.
28508
28509 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
28510
28511         * function.h (struct function): Add can_throw_non_call_exceptions bit.
28512         * lto-streamer-in.c (input_function): Stream it in.
28513         * lto-streamer-out.c (output_function): Stream it out.
28514         * function.c (allocate_struct_function): Set it.
28515         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
28516         for flag_non_call_exceptions.
28517         * cfgbuild.c (control_flow_insn_p): Likewise.
28518         (make_edges): Likewise.
28519         * cfgexpand.c (expand_stack_alignment): Likewise.
28520         * combine.c (distribute_notes): Likewise.
28521         * cse.c (cse_extended_basic_block): Likewise.
28522         * except.c (insn_could_throw_p): Likewise.
28523         * gcse.c (simple_mem): Likewise.
28524         * ipa-pure-const.c (check_call): Likewise.
28525         (check_stmt ): Likewise.
28526         * lower-subreg.c (lower-subreg.c): Likewise.
28527         * optabs.c (emit_libcall_block): Likewise.
28528         (prepare_cmp_insn): Likewise.
28529         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
28530         * postreload.c (rest_of_handle_postreload): Likewise.
28531         * reload1.c (reload_as_needed): Likewise.
28532         (emit_input_reload_insns): Likewise.
28533         (emit_output_reload_insns): Likewise.
28534         (fixup_abnormal_edges): Likewise.
28535         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
28536         * store-motion.c (find_moveable_store): Likewise.
28537         * tree-eh.c (stmt_could_throw_p): Likewise.
28538         (tree_could_throw_p): Likewise.
28539         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28540         * config/arm/arm.c (arm_expand_prologue): Likewise.
28541         (thumb1_expand_prologue): Likewise.
28542         * config/rx/rx.md (cbranchsf4): Likewise.
28543         (cmpsf): Likewise.
28544         * config/s390/s390.c (s390_emit_prologue): Likewise.
28545         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
28546         (inline_forbidden_into_p): New predicate.
28547         (expand_call_inline): Use it to forbid inlining.
28548         (tree_can_inline_p): Likewise.
28549
28550 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
28551
28552         * config/i386/i386-c.c: Do not include rtl.h.
28553         * config/i386/t-i386: Update dependencies.
28554
28555 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
28556
28557         * attribs.c: Do not include rtl.h.
28558         * Makefile.in: Update dependencies.
28559
28560 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
28561
28562         * double-int.h (double_int_and): New.
28563         * combine.c (try_combine): Clean up, use double_int_* and
28564         immed_double_int_const functions.
28565
28566 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28567
28568         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
28569         stderr to /dev/null instead of grep -q.
28570         * configure: Regenerate.
28571
28572 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
28573
28574         * Makefile.in (EXCEPT_H): Fix typo.
28575
28576 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
28577
28578         * ira-build.c (update_conflict_hard_reg_costs): New.
28579         (ira_build): Call update_conflict_hard_reg_costs.
28580
28581 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
28582
28583         PR debug/41371
28584         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
28585         ENABLE_CHECKING.
28586         (intersect_loc_chains): Walk the s2var's loc_chain together
28587         with s1node chain as long as the locations are equal, don't
28588         call find_loc_in_1pdv in that case.
28589
28590         PR debug/42801
28591         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
28592         (copy_bind_expr): ... instead of here.
28593         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
28594         if the block hasn't been remapped.
28595         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
28596         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
28597
28598 2010-05-25  Richard Guenther  <rguenther@suse.de>
28599
28600         PR middle-end/44069
28601         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
28602         out-of-bounds array accesses.
28603
28604 2010-05-25  Richard Guenther  <rguenther@suse.de>
28605
28606         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
28607         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
28608         (run_gcc): Re-organize to make cleanup easier.
28609
28610 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28611
28612         * config/s390/s390.c (optimization_options): Fix and move the
28613         flag_prefetch_loop_arrays override ...
28614         (override_options): ... here.
28615
28616 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
28617
28618         * diagnostic.c: Don't include plugin.h.
28619         (diagnostic_report_diagnostic): Don't handle plugins specially
28620         here.  Pass context to internal_error callback.
28621         * diagnostic.h (struct diagnostic_context): Add context parameter
28622         to internal_error callback.
28623         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
28624         * plugin.h (struct diagnostic_context): Declare.
28625         (warn_if_plugins, plugins_internal_error_function): Declare.
28626         * toplev.c (general_init): Set global_dc->internal_error.
28627         * Makefile.in (diagnostic.o): Update dependencies.
28628
28629 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
28630
28631         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
28632         * config/rs6000/t-darwin64: New.
28633         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
28634         build crt2.
28635
28636 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
28637
28638         PR 44203
28639         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
28640         match the original (and intended) behaviour before r159557.  This
28641         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
28642         in two ways.
28643
28644 2010-05-25  Richard Guenther  <rguenther@suse.de>
28645
28646         * doc/invoke.texi: Document -Ofast.
28647         * target.h (struct gcc_target): Add handle_ofast.
28648         * target-def.h (TARGET_HANDLE_OFAST): Add.
28649         (TARGET_INITIALIZER): Adjust.
28650         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
28651         * common.opt (Ofast): Add.
28652
28653 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
28654
28655         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
28656         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
28657
28658 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
28659
28660         PR target/43610
28661         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
28662         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
28663         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
28664         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
28665
28666 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
28667
28668         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
28669         DW_OP_minus with negated offset instead of DW_OP_plus.
28670         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
28671
28672 2010-05-25  Wei Guozhi  <carrot@google.com>
28673
28674         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
28675         tst instruction and a new alternative.
28676         * config/arm/constraints.md (Pu): New constraint.
28677
28678 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
28679
28680         * function.c (assign_stack_local_1): Initialize variable
28681         to avoid warning when bootstrapping at -O3.
28682
28683 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
28684
28685         * configure.ac (all_lang_makefiles): Remove everything related to it.
28686         * configure: Regenerate.
28687         * Makefile.in: Fix reference to ada Make-lang.in.
28688         Remove support for LANG_MAKEFILES.
28689
28690 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
28691             Sandra Loosemore  <sandra@codesourcery.com>
28692
28693         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
28694         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
28695         description.  Add arm_neon_fp16_ok.
28696         (Add Options): Add arm_neon and arm_neon_fp16.
28697
28698 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
28699
28700         * diagnostic.c: Don't include flags.h.
28701         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
28702         context parameters.  Check flags in the context passed as a parameter.
28703         (diagnostic_build_prefix): Add context parameter.  Check
28704         show_column flag in context.
28705         (diagnostic_action_after_output): Check fatal_errors flag in context.
28706         (diagnostic_report_current_module): Check show_column flag in context.
28707         (default_diagnostic_starter): Update call to
28708         diagnostic_build_prefix.
28709         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
28710         (emit_diagnostic): Pass context to permissive_error_kind.
28711         (permerror): Pass context to permissive_error_kind.
28712         * diagnostic.h (struct diagnostic_context): Add show_column,
28713         pedantic_errors, permissive and fatal_errors fields.
28714         (diagnostic_build_prefix): Update prototype.
28715         * langhooks.c
28716         * toplev.c (process_options): Set flags in global_dc from
28717         flag_show_column, flag_pedantic_errors, flag_permissive,
28718         flag_fatal_errors.
28719         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
28720         to diagnostic_build_prefix.
28721         * Makefile.in (diagnostic.o): Update dependencies.
28722
28723 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
28724
28725         * config/i386/ia32intrin.h (__crc32q): Define only if
28726         __SSE4_2__ is defined.
28727
28728 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
28729
28730         PR target/44132
28731         PR middle-end/43602
28732         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
28733         DECL_VISIBILITY_SPECIFIED.
28734         (emutls_decl): Set DECL_PRESERVE_P and copy
28735         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
28736         (emutls_finalize_control_var): New callback.
28737         (emutls_finish): Finalize emutls control variables.
28738         * toplev.c (compile_file): Move the call to emutls_finish ()
28739         before varpool_assemble_pending_decls ().
28740
28741 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
28742
28743         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
28744         added to the preprocessor condition.
28745
28746 2010-05-24  Paul Brook  <paul@codesourcery.com>
28747
28748         * gengtype-lex.l: Add HARD_REG_SET.
28749         * expr.c (expand_expr_real_1): Record writes to hard registers.
28750         * function.c (rtl_data): Add asm_clobbers.
28751         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
28752         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
28753         Use crtl->asm_clobbers.
28754
28755 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28756
28757         * doc/makefile.texi (Makefile): Mention stages 'profile'
28758         and 'feedback' for profiledbootstrap.
28759
28760 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
28761
28762         PR target/44245
28763         * config/i386/i386.c (def_builtin): Properly check
28764         OPTION_MASK_ISA_64BIT.
28765
28766 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
28767
28768         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
28769         typedefs with different but compatible types.  Allow duplicate
28770         typedefs with the same type except for pedantic non-C1X, but give
28771         warning for variably modified types.
28772         * c-typeck.c (tagged_types_tu_compatible_p,
28773         function_types_compatible_p, type_lists_compatible_p,
28774         comptypes_internal): Add parameter different_types_p; set
28775         *different_types_p for different but compatible types.  All
28776         callers changed.
28777         (comptypes_check_different_types): New.
28778         * c-tree.h (comptypes_check_different_types): Declare.
28779
28780 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
28781
28782         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
28783         * jump.c: Include basic-block.h.
28784         * profile.c: Likewise.
28785         * tree-profile.c: Likewise.
28786         * coverage.c: Likewise.
28787         * basic-block.h (optimize_function_for_size_p): Move to function.h.
28788         (optimize_function_for_speed_p): Likewise.
28789         * function.h (optimize_function_for_size_p,
28790         optimize_function_for_speed_p): Moved here from basic-block.h.
28791         * Makefile.in: Update dependencies.
28792
28793 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28794
28795         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
28796         before calling make; allow override through $MAKE.
28797         * doc/invoke.texi (Optimize Options): Document override.
28798
28799 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
28800
28801         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
28802         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28803         (rs6000_mode_dependent_address_ptr): Make static.
28804         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28805         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
28806         Remove.
28807
28808 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
28809
28810         PR target/43869
28811         * config/i386/i386.c: Make sure that the correct regparm is passed.
28812
28813 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
28814
28815         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
28816         * sbitmap.c: ...to here to internalize sbitmap element access.
28817         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
28818         Explain why basic-block.h is included.
28819         * function.h: Include tm.h for CUMULATIVE_ARGS.
28820         * Makefile.in: Update dependencies.
28821
28822 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
28823
28824         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
28825         New core types.
28826         * sbitmap.h (struct sbitmap_def): Do not typedef here.
28827         * sbitmap.c: Include sbitmap.h.
28828         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
28829         hard-reg-set.h.  Split everything related to regsets out from here...
28830         * regset.h: ...to here.  New file.
28831         * df.h: Include regset.h and sbitmap.h.
28832         * tree-flow.h: Likewise.
28833         * cfgloop.h: Likewise.
28834         * except.h: Do not include sbitmap.h.  Include hashtab.h.
28835         * cgraph.h: Include vec.h and function.h.
28836         * reload.h (struct insn_chain): Change types of live_throughout
28837         and dead_or_set from regset_head to bitmap_head.
28838         (compute_use_by_pseudos): Be defined also if regset.h is not included.
28839         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
28840         spilled_regs from regset_head to bitmap_head to avoid dependency
28841         in regset.h.
28842         * sel-sched-ir.h: Include regset.h.
28843         * reload.c: Include df.h before reload.h.
28844         * caller-save.c: Likewise.
28845         * reload1.c: Likewise.
28846         * ira.c: Likewise.
28847         (mark_elimination): Update type of r to bitmap, consistent with
28848         DF_LR_IN.
28849         * dominance.c: Include bitmap.h.
28850         * modulo-sched.c: Include df.h.
28851         * cfganal.c: Include bitmap.h and sbitmap.h.
28852         * cfgbuild.c: Include sbitmap.h.
28853         * lcm.c: Include sbitmap.h.
28854         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
28855         * domwalk.c: Include sbitmap.h, exclude ggc.h.
28856         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
28857         * cselib.c: Include bitmap.h.
28858         * tree-optimize.c: Include regset.h.
28859         * stmt.c: Include bitmap.h.
28860         * Makefile.in: Update dependencies.
28861
28862 2010-05-22  Jan Hubicka  <jh@suse.cz>
28863
28864         * cgraph.h (struct varpool_node): Add same_comdat_group.
28865         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
28866         pointer.
28867         (output_varpool): Update call of lto_output_varpool_node.
28868         (input_varpool): Read same_comdat_group pointer.
28869         (input_varpool_1): Fixup same_comdat_group pointer.
28870         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
28871         group is needed, all are.
28872         * varpool.c (varpool_remove_node): Remove node from same comdat group
28873         linklist too.
28874         (varpool_analyze_pending_decls): Walk same comdat groups.
28875
28876 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
28877
28878         * rtl.h (union rtunion_def): Remove rt_bit member.
28879         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
28880         * print-rtl (print_rtx): Do not print the member.
28881         * gengtype.c (adjust_field_rtx_def): Do not handle it.
28882         * gengenrtl.c (type_from_format): Likewise.
28883         (accessor_from_format): Likewise.
28884
28885 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
28886
28887         * dbgcnt.c: Include toplev.h instead of errors.h.
28888         * ira-emit.c: Don't include errors.h.
28889         * ira.c: Include toplev.h instead of errors.h.
28890         * lto-compress.c: Include toplev.h instead of errors.h.
28891         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
28892         ira.o, dbgcnt.o): Update dependencies.
28893
28894 2010-05-22  Richard Guenther  <rguenther@suse.de>
28895
28896         * gimple.c (gimple_types_compatible_p): Check type qualifications
28897         before merging pointer to complete and pointer to incomplete type.
28898         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
28899         we use our own resolution algorithm.  The gold linker plugin
28900         doesn't do the job we want it to do here.
28901
28902 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
28903
28904         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28905         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28906         (sparc_mode_dependent_address_p): New function.
28907
28908 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28909
28910         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
28911
28912         * timevar.c: Do not include any core headers.
28913         (timevar_print): De-i18n-ize.
28914         (print_time): Likewise.
28915         * timevar.h (timevar_push, timevar_pop): Make inline functions.
28916
28917 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
28918
28919         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
28920         langhooks-def.h.
28921         (diagnostic_initialize): Initialize x_data not last_function.
28922         (diagnostic_report_current_function): Move to tree-diagnostic.c.
28923         (default_diagnostic_starter): Call
28924         diagnostic_report_current_module not
28925         diagnostic_report_current_function.
28926         (diagnostic_report_diagnostic): Initialize x_data not
28927         abstract_origin.
28928         (verbatim): Likewise.
28929         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
28930         x_data.
28931         (struct diagnostic_context): Change last_function to x_data.
28932         (diagnostic_auxiliary_data): Replace with
28933         diagnostic_context_auxiliary_data and
28934         diagnostic_info_auxiliary_data.
28935         (diagnostic_last_function_changed, diagnostic_set_last_function,
28936         diagnostic_report_current_function): Move to tree-diagnostic.h.
28937         (print_declaration, dump_generic_node, print_generic_stmt,
28938         print_generic_stmt_indented, print_generic_expr,
28939         print_generic_decl, debug_c_tree, dump_omp_clauses,
28940         print_call_name, debug_generic_expr, debug_generic_stmt,
28941         debug_tree_chain, default_tree_printer): Move to
28942         tree-pretty-print.h.
28943         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
28944         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
28945         gimple-pretty-print.h.
28946         * pretty-print.c: Don't include tree.h
28947         (pp_base_format): Don't handle %K here.
28948         (pp_base_tree_identifier): Move to tree-pretty-print.c.
28949         * pretty-print.h (text_info): Change abstract_origin to x_data.
28950         (pp_tree_identifier, pp_unsupported_tree,
28951         pp_base_tree_identifier): Move to tree-pretty-print.h.
28952         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
28953         tree-pretty-print.h: New files.
28954         * tree-pretty-print.c: Include tree-pretty-print.h.
28955         (percent_K_format): New.  Moved from pretty-print.c.
28956         (pp_base_tree_identifier): Move from pretty-print.c.
28957         * c-objc-common.c: Include tree-pretty-print.h.
28958         (c_tree_printer): Handle %K here.
28959         * langhooks.c: Include tree-diagnostic.h.
28960         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
28961         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
28962         (default_tree_printer): Handle %K using percent_K_format.
28963         (general_init): Use default_tree_diagnostic_starter.
28964         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
28965         (free_lang_data): Use default_tree_diagnostic_starter.
28966         * c-pretty-print.c: Include tree-pretty-print.h.
28967         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28968         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28969         * dwarf2out.c: Include tree-pretty-print.h.
28970         * except.c: Include tree-pretty-print.h.
28971         * gimple-pretty-print.c: Include tree-pretty-print.h and
28972         gimple-pretty-print.h.
28973         * gimplify.c: Include tree-pretty-print.h.
28974         * graphite-poly.c: Include tree-pretty-print.h and
28975         gimple-pretty-print.h.
28976         * ipa-cp.c: Include tree-pretty-print.h.
28977         * ipa-inline.c: Include gimple-pretty-print.h.
28978         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28979         * ipa-pure-const.c: Include gimple-pretty-print.h.
28980         * ipa-struct-reorg.c: Include tree-pretty-print.h and
28981         gimple-pretty-print.h.
28982         * ipa-type-escape.c: Include tree-pretty-print.h.
28983         * print-rtl.c: Include tree-pretty-print.h.
28984         * print-tree.c: Include gimple-pretty-print.h.
28985         * sese.c: Include tree-pretty-print.h.
28986         * tree-affine.c: Include tree-pretty-print.h.
28987         * tree-browser.c: Include tree-pretty-print.h.
28988         * tree-call-cdce.c: Include gimple-pretty-print.h.
28989         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28990         * tree-chrec.c: Include tree-pretty-print.h.
28991         * tree-data-ref.c: Include tree-pretty-print.h and
28992         gimple-pretty-print.h.
28993         * tree-dfa.c: Include tree-pretty-print.h.
28994         * tree-if-conv.c: Include tree-pretty-print.h and
28995         gimple-pretty-print.h.
28996         * tree-inline.c: Include tree-pretty-print.h.
28997         * tree-into-ssa.c: Include tree-pretty-print.h and
28998         gimple-pretty-print.h.
28999         * tree-nrv.c: Include tree-pretty-print.h.
29000         * tree-object-size.c: Include tree-pretty-print.h and
29001         gimple-pretty-print.h.
29002         * tree-outof-ssa.c: Include tree-pretty-print.h and
29003         gimple-pretty-print.h.
29004         * tree-parloops.c: Include tree-pretty-print.h and
29005         gimple-pretty-print.h.
29006         * tree-predcom.c: Include tree-pretty-print.h and
29007         gimple-pretty-print.h.
29008         * tree-scalar-evolution.c: Include tree-pretty-print.h and
29009         gimple-pretty-print.h.
29010         * tree-sra.c: Include tree-pretty-print.h.
29011         * tree-ssa-address.c: Include tree-pretty-print.h.
29012         * tree-ssa-alias.c: Include tree-pretty-print.h.
29013         * tree-ssa-ccp.c: Include tree-pretty-print.h and
29014         gimple-pretty-print.h.
29015         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
29016         * tree-ssa-copy.c: Include tree-pretty-print.h and
29017         gimple-pretty-print.h.
29018         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
29019         * tree-ssa-dce.c: Include tree-pretty-print.h and
29020         gimple-pretty-print.h.
29021         * tree-ssa-dom.c: Include tree-pretty-print.h and
29022         gimple-pretty-print.h.
29023         * tree-ssa-dse.c: Include gimple-pretty-print.h.
29024         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
29025         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
29026         * tree-ssa-live.c: Include tree-pretty-print.h and
29027         gimple-pretty-print.h.
29028         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
29029         gimple-pretty-print.h.
29030         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
29031         gimple-pretty-print.h.
29032         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
29033         gimple-pretty-print.h.
29034         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
29035         gimple-pretty-print.h.
29036         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
29037         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
29038         * tree-ssa-operands.c: Include tree-pretty-print.h and
29039         gimple-pretty-print.h.
29040         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
29041         gimple-pretty-print.h.
29042         * tree-ssa-pre.c: Include tree-pretty-print.h and
29043         gimple-pretty-print.h.
29044         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
29045         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
29046         gimple-pretty-print.h.
29047         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
29048         gimple-pretty-print.h.
29049         * tree-ssa-sink.c: Include gimple-pretty-print.h.
29050         * tree-ssa-ter.c: Include tree-pretty-print.h and
29051         gimple-pretty-print.h.
29052         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
29053         * tree-ssa.c: Include tree-pretty-print.h and
29054         gimple-pretty-print.h.
29055         * tree-stdarg.c: Include gimple-pretty-print.h.
29056         * tree-switch-conversion.c: Include gimple-pretty-print.h.
29057         * tree-tailcall.c: Include tree-pretty-print.h and
29058         gimple-pretty-print.h.
29059         * tree-vect-data-refs.c: Include tree-pretty-print.h and
29060         gimple-pretty-print.h.
29061         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
29062         gimple-pretty-print.h.
29063         * tree-vect-loop.c: Include tree-pretty-print.h and
29064         gimple-pretty-print.h.
29065         * tree-vect-patterns.c: Include gimple-pretty-print.h.
29066         * tree-vect-slp.c: Include tree-pretty-print.h and
29067         gimple-pretty-print.h.
29068         * tree-vect-stmts.c: Include tree-pretty-print.h and
29069         gimple-pretty-print.h.
29070         * tree-vectorizer.c: Include tree-pretty-print.h.
29071         * tree-vrp.c: Include tree-pretty-print.h and
29072         gimple-pretty-print.h.
29073         * value-prof.c: Include tree-pretty-print.h and
29074         gimple-pretty-print.h.
29075         * var-tracking.c: Include tree-pretty-print.h.
29076         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
29077         (tree-diagnostic.o): New dependencies.
29078         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
29079         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
29080         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
29081         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
29082         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
29083         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
29084         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
29085         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
29086         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
29087         tree-ssa-address.o, tree-ssa-loop-niter.o,
29088         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
29089         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
29090         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
29091         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
29092         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
29093         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
29094         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
29095         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
29096         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
29097         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
29098         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
29099         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
29100         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
29101         tree-switch-conversion.o, var-tracking.o, value-prof.o,
29102         cfgexpand.o, pretty-print.o): Update dependencies.
29103
29104 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
29105
29106         * tree-ssa-structalias.c: Remove tm_p.h from include.
29107
29108 2010-05-21  Jeff Law  <law@redhat.com>
29109
29110         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
29111
29112 2010-05-21  Jason Merrill  <jason@redhat.com>
29113
29114         * tree-eh.c (cleanup_is_dead_in): New.
29115         (lower_try_finally): Don't generate a dead cleanup region.
29116         (lower_cleanup): Likewise.
29117
29118 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
29119
29120         PR debug/44223
29121         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
29122         unchain each use from the cyclic next_regno_use chain first.
29123
29124 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
29125
29126         * real: Do not include gmp.h, mpfr.h, and mpc.h.
29127         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
29128         (real_value_negate, real_value_abs): New prototypes.
29129         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
29130         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
29131         new include file for interface between MPFR and REAL_VALUE_TYPE.
29132         * real.c: Include realmpfr.h.
29133         (real_arithmetic2): Remove legacy function.
29134         (real_value_negate): New.
29135         (real_value_abs): New.
29136         (mfpr_from_real, real_from_mpfr): Move from here...
29137         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
29138         * builtins.c: Include realmpfr.h.
29139         * fold-const.c: Include realmpfr.h.
29140         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
29141         (fold_negate_const): Likewise.
29142         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
29143         * toplev.c: Include realmpfr.h.
29144         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
29145         and real_value_negate.
29146         * fixed-value.c (check_real_for_fixed_mode): Likewise.
29147         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
29148         (vfp3_const_double_index): Likewise.
29149         (arm_print_operand): Likewise.
29150         * Makefile.in: Update dependencies.
29151
29152 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29153
29154         * config/s390/s390.c (override_options): Increase the default
29155         of max-completely-peel-times.
29156
29157 2010-05-21  Julian Brown  <julian@codesourcery.com>
29158             Mark Mitchell  <mark@codesourcery.com>
29159
29160         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
29161         sibling calls for Thumb-1.
29162         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
29163         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
29164         Thumb-2.
29165         (*call_insn, *call_value_insn): Don't use for Thumb-2.
29166         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
29167         for Thumb-2.
29168         (return): New expander.
29169         (*arm_return): New name for ARM return insn.
29170         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
29171
29172 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
29173
29174         * config.gcc (sparc64-*-rtems*): New target.
29175
29176 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
29177
29178         * tree.c (build_function_decl_skip_args): Fix grammar.
29179         (build_function_type_list_1): Fix typos, adjust formatting.
29180
29181 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
29182
29183         * tree.h: Include real.h and fixed-value.h as basic datatypes.
29184         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
29185         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
29186         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
29187         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
29188         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
29189         tree-pretty-print.c, tree-loop-distribution.c,
29190         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
29191         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
29192         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
29193         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
29194         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
29195         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
29196         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
29197         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
29198         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
29199         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
29200         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
29201         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
29202         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
29203         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
29204         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
29205         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
29206         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
29207         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
29208         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
29209         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
29210         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
29211         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
29212         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
29213         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
29214         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
29215         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
29216         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
29217         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
29218         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
29219         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
29220         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
29221         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
29222         config/score/score7.c, config/score/score.c, config/arm/arm.c,
29223         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
29224         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
29225         config/bfin/bfin.c: Clean up redundant includes.
29226         * Makefile.in: Update accordingly.
29227
29228 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
29229
29230         PR middle-end/44204
29231         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
29232         statement has no arguments.
29233
29234 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
29235
29236         PR/44139
29237         * varasm.c (emutls_decl): Merge attributes to new decl.
29238
29239 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
29240
29241         PR middle-end/44101
29242         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
29243         around the uniquized constructor if its type requires a conversion.
29244
29245 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
29246
29247         PR debug/44205
29248         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
29249         at -O0 goto_locus of any of the incoming edges differs from
29250         goto_locus of outgoing edge, or gimple_location of any of the
29251         labels differs.
29252
29253 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
29254
29255         * ira.c (ira_non_ordered_class_hard_regs): Define.
29256         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
29257         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
29258         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
29259         cost of unaligned hard regs when allocating multi-reg pseudos.
29260
29261 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
29262
29263         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
29264         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
29265         for TARGET_NO_FLOAT.
29266         * config/mips/mips.c (mips_file_start): Expand conditional expression
29267         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
29268         (mips_override_options): Move -mno-float override -msoft-float and
29269         -mhard-float.
29270         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
29271         Condition(TARGET_SUPPORTS_NO_FLOAT).
29272         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
29273         __mips_no_float here.
29274         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
29275         (TARGET_SUPPORTS_NO_FLOAT): Define.
29276         * config/mips/sdemtk.opt: Delete.
29277
29278 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
29279
29280         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
29281
29282 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
29283
29284         PR target/43733
29285         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
29286         * configure: Regenerate.
29287         * config.in: Regenerate.
29288         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
29289         instead of sahf only for 64bit targets.
29290
29291 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
29292
29293         PR debug/44178
29294         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
29295         setup_ref_regs for DEBUG_INSNs.
29296
29297 2010-05-20  Jan Hubicka  <jh@suse.cz>
29298
29299         PR middle-end/44197
29300         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
29301
29302 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
29303
29304         PR bootstrap/43870
29305         * df-scan.c (df_ref_compare): Stabilize sort.
29306
29307 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
29308
29309         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
29310         argument.  Don't use DW_OP_piece if offset is non-zero,
29311         put offset into second DW_OP_bit_piece argument.
29312         (dw_sra_loc_expr): Adjust callers.  For memory expressions
29313         compute offset.
29314
29315 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
29316
29317         PR target/44202
29318         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
29319         settings for 16-bit-constant "addo" alternative.
29320
29321 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
29322
29323         * config/mips/mips-dsp.md (add<DSPV:mode>3,
29324         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
29325
29326         PR target/43764
29327         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
29328         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
29329         Use it.
29330
29331 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
29332
29333         * diagnostic.c (FLOAT, FFS): Don't undefine.
29334         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
29335         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
29336         include ordering.
29337
29338 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29339
29340         * combine.c (propagate_for_debug): Call make_compound_operation
29341         on the source value.
29342         (try_combine): When implementing a split chosen by find_split_point,
29343         either copy i2src or set it to null.  Assert that i2src is not null
29344         before substituting into CALL_INSN_FUNCTION_USAGE.
29345
29346 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
29347
29348         * double-int.h (double_int_ior): New function.
29349         * tree.h (build_int_cst_wide_type): Remove.
29350         * tree.c (build_int_cst_wide_type): Remove.
29351         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
29352         of build_int_cst_wide_type.
29353         * stor-layout.c (set_sizetype): (Ditto.).
29354         * dojump.c (do_jump): Use build_int_cstu instead of
29355         build_int_cst_wide_type.
29356
29357 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29358
29359         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
29360         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
29361         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
29362         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
29363         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
29364         propagate the 'data' argument to copy_tree_r.
29365         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
29366         Propagate 'data' argument to walk_tree.
29367         (copy_if_shared): New function.
29368         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
29369         (unmark_visited): New function.
29370         (unshare_body): Call copy_if_shared instead of doing it manually.
29371         (unvisit_body): Call unmark_visited instead of doing it manually.
29372
29373 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
29374
29375         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
29376         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
29377         * hooks.c: Likewise.
29378         * target-def.h (TARGET_FOLD_BUILTIN): Define to
29379         hook_tree_tree_int_treep_bool_null.
29380         * target.h (struct gcc_target): Update signature of fold_builtin
29381         field.
29382         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
29383         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
29384         instead of the call expression.
29385         (fold_builtin_call_array): Pass n and argarray directly.
29386         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
29387         consing a list.
29388         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
29389         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
29390         `i' and use it in place of `arity'.
29391         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
29392         Dereference `args' directly.
29393         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
29394
29395 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29396
29397         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29398         3dnow, sse3, sse2.
29399         (Directives): Document optional dg-require-effective-target
29400         selector.
29401
29402 2010-05-19  Richard Guenther  <rguenther@suse.de>
29403
29404         PR lto/44196
29405         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
29406
29407 2010-05-19  Richard Guenther  <rguenther@suse.de>
29408
29409         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
29410         * common.opt (fwhopr=): New.
29411         * opts.c (common_handle_option): Handle OPT_fwhopr.
29412         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
29413         * collect2.c (main): Match -fwhopr*.
29414         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
29415         Execute ltrans stage in parallel when jobs is bigger than 1.
29416
29417 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29418
29419         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
29420         pentiumpro on Solaris 8/x86 with Sun as.
29421         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
29422         hidden alias bug.
29423         (gcc_cv_as_ix86_quad): Check for .quad directive.
29424         * configure: Regenerate.
29425         * config.in: Regenerate.
29426         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
29427
29428 2010-05-19  Martin Jambor  <mjambor@suse.cz>
29429
29430         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
29431         also for indirect edges.  Actual printing moved...
29432         (ipa_print_node_jump_functions_for_edge): ...here.
29433         (ipa_compute_jump_functions): Renamed to
29434         ipa_compute_jump_functions_for_edge and made static.
29435         (ipa_compute_jump_functions): New function.
29436         (make_edge_direct_to_target): Check if the number of arguments on
29437         the newly direct edge is the same as the number of parametrs of
29438         the callee.
29439         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
29440         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
29441         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
29442         analysis functions unconditionally, call the new
29443         ipa_analyze_params_uses on the node instead of every edge.
29444
29445 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
29446
29447         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
29448         to tree.
29449         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
29450         also checks for a constant int vs.  non-constant but
29451         loop-invariant steps.
29452         (find_or_create_group): Change the sort algorithm to only consider
29453         steps that are constant ints.
29454         (idx_analyze_ref): Adopt code to handle a tree instead of a
29455         HOST_WIDE_INT for step.
29456         (gather_memory_references_ref): Handle tree instead of int and be
29457         prepared to see a NULL_TREE.
29458         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
29459         prefetches if the step cannot be calculated at compile time.
29460         (issue_prefetch_ref): Issue prefetches for non-constant but
29461         loop-invariant steps.
29462
29463 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
29464
29465         Revert:
29466         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
29467
29468         * tree.h (build_call_list): Remove.
29469         * tree.c (build_call_list): Remove.
29470
29471 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
29472
29473         * tree.h (build_call_list): Remove.
29474         * tree.c (build_call_list): Remove.
29475
29476 2010-05-18  Jan Hubicka  <jh@suse.cz>
29477
29478         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
29479
29480 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
29481
29482         PR rtl-optimization/43332
29483         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
29484
29485 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
29486
29487         * tree.h (build_int_cstu): Implement as static inline.
29488         * tree.c (build_int_cstu): Remove function.
29489         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
29490         sign extended.
29491
29492 2010-05-18  Richard Guenther  <rguenther@suse.de>
29493
29494         PR lto/44143
29495         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
29496         (debug): Initialize from -save-temps.
29497         (collect_execute): Print command-line when verbose.
29498         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
29499         for ltrans invocation.  Produce -dumpbase flag again.
29500         (process_args): Remove.
29501         (main): Simplify.
29502         * collect2.c (maybe_run_lto_and_relink): Only pass object
29503         files to lto-wrapper.
29504         * gcc.c (LINK_COMMAND_SPEC): Likewise.
29505
29506 2010-05-18  Jan Hubicka  <jh@suse.cz>
29507
29508         * opts.c (decode_options): Do not disable whopr at ipa_cp.
29509         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
29510
29511 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
29512
29513         PR lto/44184
29514         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
29515         in a GIMPLE_ASM.
29516         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
29517         in a GIMPLE_ASM.
29518
29519 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
29520
29521         PR debug/41371
29522         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
29523         rtx_equal_p inline.
29524
29525 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
29526
29527         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
29528         lto-macho as lto_binary_reader.
29529
29530         * darwin.c (darwin_asm_named_section): Do not add assembler comment
29531         after .section directive; just print it before the directive instead.
29532
29533 2010-05-17  Jan Hubicka  <jh@suse.cz>
29534
29535         * cgraph.c (cgraph_create_virtual_clone): Only check
29536         versionable_function_p when not in wpa and checking is enabled.
29537         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
29538         there are no more functions to materialize.
29539
29540 2010-05-17  Jan Hubicka  <jh@suse.cz>
29541
29542         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
29543         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
29544         New functions.
29545         (output_cgraph): Call output_cgraph_opt_summary.
29546         (input_cgrpah): Call input_cgraph_opt_summary.
29547         (output_cgraph_opt_summary_p, output_node_opt_summary,
29548         input_node_opt_summary, input_cgraph_opt_section): New functions.
29549         * lto-section-in.c (lto_section_name): Add cgraphopt.
29550         * tree-inline.c (tree_function_versioning): Handle parm_num.
29551         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
29552         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
29553
29554 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
29555
29556         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
29557         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
29558         the insn to prefetch ratio heuristic to loops with known trip count.
29559
29560 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
29561
29562         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
29563         (schedule_prefetches): Do not generate a prefetch if the unroll factor
29564         is far from what is required by the prefetch.
29565
29566 2010-05-17  Jan Hubicka  <jh@suse.cz>
29567
29568         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
29569         (ipcp_estimate_growth): Likewise.
29570         (ipcp_const_param_count): Likewise.
29571         (ipcp_insert_stage): Likewise.
29572         * ipa-prop.c (visit_load_for_mod_analysis): New function.
29573         (visit_store_addr_for_mod_analysis): Set used flag.
29574         (ipa_detect_param_modifications): Set used flag for SSE params;
29575         update use of walk_stmt_load_store_addr_ops.
29576         (ipa_print_node_params): Print used flag.
29577         (ipa_write_node_info): Stream used flag.
29578         (ipa_read_node_info): Likewise.
29579         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
29580         (ipa_is_param_used): New function.
29581         (lto_ipa_fixup_call_notes): Remove unused declaration.
29582
29583 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29584
29585         PR target/44074
29586         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
29587         * configure: Regenerate.
29588         * config.in: Regenerate.
29589         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
29590         !HAVE_AS_IX86_REP_LOCK_PREFIX.
29591         Don't emit whitespace.
29592         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
29593         (*rep_movsi): Likewise.
29594         (*rep_movsi_rex64): Likewise.
29595         (*rep_movqi): Likewise.
29596         (*rep_movqi_rex64): Likewise.
29597         (*rep_stosdi_rex64): Likewise.
29598         (*rep_stossi): Likewise.
29599         (*rep_stossi_rex64): Likewise.
29600         (*rep_stosqi): Likewise.
29601         (*rep_stosqi_rex64): Likewise.
29602         (*cmpstrnqi_nz_1): Use {%;} after repz.
29603         (*cmpstrnqi_nz_rex_1): Likewise.
29604         (*cmpstrnqi_1): Likewise.
29605         (*cmpstrnqi_rex_1): Likewise.
29606         (*strlenqi_1): Use {%;} after repnz.
29607         (*strlenqi_rex_1): Likewise.
29608         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
29609         (*sync_compare_and_swap<mode>): Likewise.
29610         (sync_double_compare_and_swap<mode>): Likewise.
29611         (*sync_double_compare_and_swapdi_pic): Likewise.
29612         (sync_old_add<mode>): Likewise.
29613         (sync_add<mode>): Likewise.
29614         (sync_sub<mode>): Likewise.
29615         (sync_<code><mode>): Likewise.
29616
29617 2010-05-17  Martin Jambor  <mjambor@suse.cz>
29618
29619         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
29620         otr_token and polymorphic.
29621         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
29622         (cgraph_clone_edge): Copy the above fields.
29623         * tree.c (get_binfo_at_offset): New function.
29624         * tree.h (get_binfo_at_offset): Declare.
29625         * ipa-prop.h (enum jump_func_type): Added known_type jump function
29626         type, reordered items, updated comments.
29627         (union jump_func_value): Added base_type field, reordered fields.
29628         (enum ipa_lattice_type): Moved down in the file.
29629         (struct ipa_param_descriptor): New field polymorphic.
29630         (ipa_is_param_polymorphic): New function.
29631         * ipa-prop.c: Include gimple.h and gimple-fold.h.
29632         (ipa_print_node_jump_functions): Print known type jump functions.
29633         (compute_complex_pass_through): Renamed to...
29634         (compute_complex_assign_jump_func): this.
29635         (compute_complex_ancestor_jump_func): New function.
29636         (compute_known_type_jump_func): Likewise.
29637         (compute_scalar_jump_functions): Create known type and complex ancestor
29638         jump functions.
29639         (ipa_note_param_call): New parameter polymorphic, set the corresponding
29640         flag in the call note accordingly.
29641         (ipa_analyze_call_uses): Renamed to...
29642         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
29643         variable var only in the block where it is used.
29644         (ipa_analyze_virtual_call_uses): New function.
29645         (ipa_analyze_call_uses): Likewise.
29646         (combine_known_type_and_ancestor_jfs): Likewise.
29647         (update_jump_functions_after_inlining): Implemented handling of a
29648         number of new jump function types combination.
29649         (print_edge_addition_message): Removed.
29650         (make_edge_direct_to_target): New function.
29651         (try_make_edge_direct_simple_call): Likewise.
29652         (try_make_edge_direct_virtual_call): Likewise.
29653         (update_call_notes_after_inlining): Renamed to...
29654         (update_indirect_edges_after_inlining): this.  Moved edge creation for
29655         indirect calls to try_make_edge_direct_simple_call, also calls
29656         try_make_edge_direct_virtual_call for virtual calls.
29657         (ipa_print_node_params): Changed the header message.
29658         (ipa_write_jump_function): Stream also known type jump functions.
29659         (ipa_read_jump_function): Likewise.
29660         (ipa_write_indirect_edge_info): Stream new fields in
29661         cgraph_indirect_call_info.
29662         (ipa_read_indirect_edge_info): Likewise.
29663         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
29664         GIMPLE_FOLD_H.
29665
29666 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29667
29668         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
29669
29670 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
29671
29672         * tree.h (CALL_EXPR_ARGS): Delete.
29673         (call_expr_arglist): Delete.
29674         * tree.c (call_expr_arglist): Delete.
29675         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
29676         targetm.fold_builtin.
29677         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
29678         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
29679         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
29680         arglist parameter.  Use CALL_EXPR_ARG.
29681         (picochip_expand_builtin_3op): Likewise.
29682         (picochip_expand_builtin_2opvoid): Likewise.
29683         (picochip_expand_array_get): Likewise.
29684         (picochip_expand_array_put): Likewise.
29685         (picochip_expand_array_testport): Likewise.
29686         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
29687         rather than arglist.
29688         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
29689         CALL_EXPR_ARGS.
29690         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
29691         than TREE_VALUE and TREE_CHAIN.
29692         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
29693         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
29694         the arglist.
29695
29696 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
29697
29698         PR bootstrap/42347
29699         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
29700         to have no fallthru edge.
29701
29702         PR middle-end/44102
29703         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
29704         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
29705         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
29706         add BARRIER after previous bb if needed.
29707
29708 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
29709
29710         * tree.c (build_function_type_list_1): Remove bogus assert condition.
29711
29712 2010-05-17  Alan Modra  <amodra@gmail.com>
29713
29714         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
29715         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
29716         with copy_reg rtx param.
29717         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
29718         Correct cases where code for ABI_V4 did not initialise the reg
29719         used to access frame.  Also leave frame_reg_rtx as sp for large
29720         frames that save no regs.
29721
29722 2010-05-17  Martin Jambor  <mjambor@suse.cz>
29723
29724         PR middle-end/44133
29725         * tree-sra.c (create_access_replacement): New parameter rename, mark
29726         the replaement for renaming only when it is true.
29727         (get_access_replacement): Pass true in the rename parameter of
29728         create_access_replacement.
29729         (get_unrenamed_access_replacement): New function.
29730         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
29731         replacement declaration from it.
29732
29733 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
29734
29735         * function.c (try_fit_stack_local, add_frame_space): New static
29736         functions.
29737         (assign_stack_local_1): Use them.  Look for opportunities to use
29738         space previously wasted on alignment.
29739         * function.h (struct frame_space): New.
29740         (struct rtl_data): Add FRAME_SPACE_LIST member.
29741         * reload1.c (something_was_spilled): New static variable.
29742         (alter_reg): Set it.
29743         (reload): Test it in addition to testing if the frame size changed.
29744
29745 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
29746
29747         * config/s390/s390.c: Define sane prefetch settings and activate
29748         flag_prefetch_loop_arrays on -O3.
29749         * config/s390/s390.h: Declare that read can use write prefetch.
29750
29751 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
29752
29753         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
29754         build.
29755
29756 2010-05-16  Jan Hubicka  <jh@suse.cz>
29757
29758         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
29759         function body; do not check stdarg field of struct function.
29760
29761 2010-05-16  Jan Hubicka  <jh@suse.cz>
29762
29763         * cgraph.c (dump_cgraph_node): Dump versionable flag.
29764         * cgraph.h (cgraph_local_info): Add versionable flag.
29765         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
29766         (ipcp_versionable_function_p): Use it.
29767         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29768         versionable flag.
29769
29770 2010-05-16  Jan Hubicka  <jh@suse.cz>
29771
29772         * cgraph.c (cgraph_clone_node): Take decl argument and insert
29773         clone into hash when it is different from orig.
29774         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
29775         * cgraph.h (cgraph_clone_node): Update prototype.
29776         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
29777         (lto_cgraph_encoder_delete): Delete body map.
29778         (lto_cgraph_encoder_size): Move to header.
29779         (lto_cgraph_encoder_encode_body_p,
29780         lto_set_cgraph_encoder_encode_body): New.
29781         (lto_output_node): Do not take written_decls argument; output clone_of
29782         pointer.
29783         (add_node_to): Add include_body_argument; call
29784         lto_set_cgraph_encoder_encode_body on master of the clone.
29785         (add_references): Update use of add_node_to.
29786         (compute_ltrans_boundary): Likewise.
29787         (output_cgraph): Do not create written_decls bitmap.
29788         (input_node): Take nodes argument; stream in clone_of correctly.
29789         (input_cgraph_1): Update use of input_node.
29790         * lto-streamer-out.c (lto_output): Use encoder info to decide
29791         what bodies to output.
29792         * ipa-inline.c (cgraph_clone_inlined_nodes,
29793         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
29794         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
29795         (lto_cgraph_encoder_size): Define here.
29796         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
29797         Declare.
29798
29799 2010-05-16  Richard Guenther  <rguenther@suse.de>
29800
29801         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
29802         -fipa-type-escape.
29803         * ipa-type-escape.c (gate_type_escape_vars): Run when
29804         -fipa-struct-reorg runs.
29805         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
29806         * common.opt (fipa-type-escape): Remove.
29807
29808 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
29809
29810         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
29811         (decode_options): Likewise.
29812         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
29813
29814 2010-05-16  Jan Hubicka  <jh@suse.cz>
29815
29816         * ipa.c (function_and_variable_visibility): Also bring local all
29817         aliases.
29818
29819 2010-05-16  Richard Guenther  <rguenther@suse.de>
29820
29821         * alias.c (nonoverlapping_memrefs_p): Remove use of
29822         IPA type-escape information.
29823
29824 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
29825
29826         * c-common.c (c_common_reswords): Add _Static_assert for C.
29827         * c-parser.c (c_token_starts_declaration,
29828         c_parser_next_token_starts_declaration,
29829         c_parser_static_assert_declaration_no_semi,
29830         c_parser_static_assert_declaration): New.
29831         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
29832         Handle static assertions if static_assert_ok.
29833         (c_parser_external_declaration, c_parser_declaration_or_fndef,
29834         c_parser_compound_statement_nostart, c_parser_label,
29835         c_parser_for_statement, c_parser_objc_methodprotolist,
29836         c_parser_omp_for_loop): All callers of
29837         c_parser_declaration_or_fndef changed.
29838         (c_parser_struct_declaration): Handle static assertions.
29839         (c_parser_compound_statement_nostart): Use
29840         c_parser_next_token_starts_declaration and
29841         c_token_starts_declaration to detect start of declarations.
29842         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
29843         Likewise.
29844
29845 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
29846
29847         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
29848         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29849         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29850         TARGET_FUNCTION_VALUE_REGNO_P): Define.
29851         (mmix_function_outgoing_value): Rename to...
29852         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
29853         (mmix_function_value_regno_p): Make static.
29854         (mmix_libcall_value): New function.
29855         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
29856         mmix_function_value_regno_p): Remove declaration.
29857
29858 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
29859
29860         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
29861         BUILT_IN_ALLOCA if stack checking is enabled.
29862
29863 2010-05-16  Richard Guenther  <rguenther@suse.de>
29864
29865         * var-tracking.c (vars_copy_1): Inline ...
29866         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
29867         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
29868         (variable_merge_over_cur): Adjust.  Merge asserts.
29869         (variable_merge_over_src): Likewise.
29870         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
29871         (variable_post_merge_new_vals): Merge asserts.
29872         (variable_post_merge_perm_vals): Likewise.
29873         (find_mem_expr_in_1pdv): Likewise.
29874         (dataflow_set_different_value): Remove.
29875         (onepart_variable_different_p): Merge asserts.
29876         (variable_different_p): Likewise.
29877         (dataflow_set_different_1): Inline ...
29878         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
29879         (emit_notes_for_differences_1): Merge asserts.
29880
29881 2010-05-16  Richard Guenther  <rguenther@suse.de>
29882
29883         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
29884         * optabs.c (libfunc_decl_hash): Likewise.
29885         * varasm.c (emutls_decl): Likewise.
29886
29887 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
29888
29889         * c-decl.c: Don't include gimple.h.
29890         (merge_decls): Do not copy gimple_body.
29891
29892 2010-05-15  Jason Merrill  <jason@redhat.com>
29893
29894         * c.opt: Add -fnothrow-opt.
29895
29896 2010-05-15  Jan Hubicka  <jh@suse.cz>
29897
29898         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
29899         analyzed.
29900         * passes.c (ipa_write_summaries): Write all analyzed nodes.
29901
29902 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
29903
29904         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
29905         * Makefile.in: Add it.
29906         Fix all other Makefile dependencies for changes below.
29907         * tree.h: Include it instead of defining VEC primitives here.
29908         * gimple.h: Likewise.
29909         * rtl.h: Likewise.
29910         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
29911         * except.h: Include vecir.h, break dependence on tree.h.
29912
29913         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
29914         Move from here...
29915         * tree-iterator.c: ...to here.
29916         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
29917
29918         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
29919         tm_p.h.
29920         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
29921         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
29922         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
29923         tree-mudflap.h, and target.h.
29924         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
29925         predict.h, tree-inline.h, gimple.h, and langhooks.h.
29926         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
29927         Add FIXME for why gimple.h is still included (should be unnecessary
29928         since GCC 4.5 gimplification unit-at-a-time).
29929         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
29930         * c-pragma.c: Add FIXME for why function.h needs to be included just
29931         for cfun, at front-end level.
29932         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
29933         Do not include ggc.h, but include vecprim.h for VEC(char).
29934         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
29935         Explain why target.h is included.
29936         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
29937         Explain why gimple.h is included.
29938         * c-ppoutput.c: Do not include tm.h.
29939         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
29940         * c-parses.c: Explain why rtl.h is included, and that this (and only
29941         this) is also why tm.h must be included.
29942         Do not include except.h.
29943         * c-lang.c: Do not include ggc.h.
29944
29945 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
29946
29947         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
29948
29949 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
29950
29951         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
29952         unions by default if those structs and unions have no tags.  Do
29953         not condition anonymous struct and unions handling on flag_iso.
29954         Allow anonymous structs and unions for C1X.
29955         (finish_struct): Do not diagnose lack of named fields when
29956         anonymous structs and unions present for C1X.  Accept flexible
29957         array members in structure with anonymous structs or unions but no
29958         directly named fields.
29959         * doc/extend.texi (Unnamed Fields): Update.
29960
29961 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
29962
29963         * gimple.h (compare_field_offset): Rename into...
29964         (gimple_compare_field_offset): ...this.
29965         * gimple.c (compare_field_offset): Rename into...
29966         (gimple_compare_field_offset): ...this.  Compare the full access if
29967         the offset is self-referential.
29968         (gimple_types_compatible_p): Adjust for above renaming.
29969         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
29970         DECL_NONADDRESSABLE_P flag of fields before merging them.
29971
29972 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
29973
29974         * tree.h (ctor_to_list): Delete.
29975         * tree.c (ctor_to_list): Delete.
29976
29977 2010-05-15  Jan Hubicka  <jh@suse.cz>
29978
29979         * ipa-reference.c: Include toplev.h
29980         (is_proper_for_analysis): Only add to all_module_statics
29981         if it is allocated.
29982         (write_node_summary_p, stream_out_bitmap,
29983         ipa_reference_write_optimization_summary,
29984         ipa_reference_read_optimization_summary): New.
29985         (struct ipa_opt_pass_d pass_ipa_reference): Add
29986         optimization summary streaming.
29987         * lto-cgraph.c (referenced_from_this_partition_p,
29988         reachable_from_this_partition_p): New functions.
29989         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
29990         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
29991         * opts.c (decode_options): Enable ipa_reference.
29992         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
29993         * lto-streamer.h (referenced_from_this_partition_p,
29994         reachable_from_this_partition_p): Declare.
29995
29996 2010-05-15  Richard Guenther  <rguenther@suse.de>
29997
29998         PR tree-optimization/44038
29999         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
30000         taking the address of a V_C_E of a constant.
30001
30002 2010-05-14  Jan Hubicka  <jh@suse.cz>
30003
30004         * tree.h (memory_identifier_string): Remove.
30005         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
30006         (ipa_reference_global_vars_info_d): Remove statics_not_read and
30007         statics_not_written.
30008         (ipa_reference_optimization_summary_d): New structure.
30009         (ipa_reference_optimization_summary_t): New type and vector.
30010         (ipa_reference_vars_info_d): Embedd structures instead of using
30011         pointers.
30012         (reference_vars_to_consider): Remove out of GGC space.
30013         (module_statics_escape): Remove.
30014         (global_info_obstack): Rename to ...
30015         (optimization_summary_obstack): ... this one.
30016         (initialization_status_t): Remove.
30017         (memory_identifier_string): Remove.
30018         (get_reference_vars_info): Fix indenting.
30019         (set_reference_vars_info): Likewise.
30020         (get_reference_optimization_summary): New.
30021         (set_reference_optimization_summary): New.
30022         (get_global_reference_vars_info): Remove.
30023         (ipa_reference_get_read_global): Remove.
30024         (ipa_reference_get_written_global): Remove.
30025         (ipa_reference_get_not_read_global): Update.
30026         (ipa_reference_get_not_written_global): Update.
30027         (is_proper_for_analysis): Outlaw addressable.
30028         (propagate_bits): Update for new datastructures.
30029         (analyze_variable): Remove.
30030         (init_function_info): Update for new datastructures.
30031         (clean_function_local_data): Remove.
30032         (clean_function): Remove.
30033         (copy_global_bitmap): Use optimizations_summary_obstack.
30034         (duplicate_node_data): Duplicate optimization summary only.
30035         (remove_node_data): Remove optimization summary only.
30036         (generate_summary): Do not analyze variables; do not compute
30037         module_statics_escape; do not prune solutions by it.
30038         (read_write_all_from_decl): Fix typos in comments.
30039         (propagate): Doscover readonly and nonaddressable first;
30040         update for new datastructures; share global bitmaps.
30041         * ipa-reference.h (ipa_reference_get_read_global,
30042         ipa_reference_get_written_global): Remove.
30043         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
30044         * Makefile.in: Remove ipa-refereference from GT files.
30045
30046 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
30047
30048         PR debug/44112
30049         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
30050         for all SYMBOL_REF_DECLs.
30051
30052 2010-05-14  Jan Hubicka  <jh@suse.cz>
30053
30054         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
30055         (varpool_all_refs_explicit_p): New inline function.
30056         * ipa-reference.c: Update comment.
30057         (module_statics_written): Remove.
30058         (get_static_decl): Remove.
30059         (ipa_init): Do not initialize module_statics_written.
30060         (analyze_function): Likewise.
30061         (generate_summary): Likewise; do not compute module_statics_readonly
30062         and do not update variable flags.
30063         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
30064         * ipa.c: Inlucde flags.h
30065         (cgraph_local_node_p): New.
30066         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
30067         promote functions to local.
30068         (ipa_discover_readonly_nonaddressable_vars): New function.
30069         (function_and_variable_visibility): Use cgraph_local_node_p.
30070         * varpool.c (varpool_finalize_decl): Set force_output for
30071         DECL_PRESERVE_P vars.
30072
30073 2010-05-14  Jan Hubicka  <jh@suse.cz>
30074
30075         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
30076
30077 2010-05-14  Richard Guenther  <rguenther@suse.de>
30078
30079         PR tree-optimization/44119
30080         * tree-ssa-pre.c (eliminate): Properly mark replacement of
30081         a PHI node necessary.
30082
30083 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
30084
30085         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
30086
30087 2010-05-14  Jason Merrill  <jason@redhat.com>
30088
30089         PR c++/44127
30090         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
30091         (gimple_call_set_nothrow): New.
30092         * gimple.c (gimple_build_call_from_tree): Call it.
30093         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
30094
30095         PR c++/44127
30096         * gimplify.c (gimplify_seq_add_stmt): No longer static.
30097         * gimple.h: Declare it.
30098         * gimple.c (gimple_build_eh_filter): No ops.
30099
30100 2010-05-14  Jan Hubicka  <jh@suse.cz>
30101
30102         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
30103         nodes already in queue.
30104         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
30105         re-enqueueing node.
30106
30107 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
30108
30109         PR debug/44136
30110         * cfgexpand.c (expand_debug_expr): If non-memory op0
30111         has BLKmode, return NULL.
30112
30113 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
30114
30115         * config.gcc: Add support for --with-cpu option for bdver1.
30116         * config/i386/i386.h (TARGET_BDVER1): New macro.
30117         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
30118         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30119         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
30120         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30121         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
30122         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
30123         (processor_type): Add PROCESSOR_BDVER1.
30124         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
30125         processor_type in config/i386/i386.h.
30126         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
30127         movaps <reg, reg> instead of movapd <reg, reg> when replacing
30128         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
30129         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
30130         to emit packed xor instead of packed double/packed integer
30131         xor for SSE and AVX when moving a zero value.
30132         * config/i386/sse.md: Add check for
30133         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
30134         movapd/movdqa for SSE and AVX.
30135         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
30136         single logical operations i.e and, or and xor instead of packed double
30137         logical operations for SSE and AVX.
30138         * config/i386/i386-c.c (ix86_target_macros_internal):
30139         Add PROCESSOR_BDVER1.
30140         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
30141         (has_fma4, has_xop): New.
30142         * config/i386/i386.c (bdver1_cost): New variable.
30143         (m_BDVER1): New macro.
30144         (m_AMD_MULTIPLE): Add m_BDVER1.
30145         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
30146         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
30147         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
30148         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
30149         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
30150         x86_tune_sse_partial_reg_dependency,
30151         x86_tune_sse_unaligned_load_optimal,
30152         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
30153         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
30154         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
30155         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
30156         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
30157         Enable/disable for bdver1.
30158         (processor_target_table): Add bdver1_cost.
30159         (cpu_names): Add bdver1.
30160         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
30161          processor_alias_table.
30162         (ix86_expand_vector_move_misalign): Change.
30163         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
30164         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
30165         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
30166         of movupd/movdqu for SSE and AVX.
30167         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
30168         (ix86_tune_adjust_cost): Add code for bdver1.
30169         (standard_sse_constant_opcode): Add check for
30170         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
30171         of packed double xor for SSE and AVX.
30172
30173 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
30174
30175         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
30176         result to unsigned.
30177
30178 2010-05-14  Tristan Gingold  <gingold@adacore.com>
30179
30180         * toplev.c (default_debug_hooks): Remove this variable.
30181         (process_options): Remove assignments to default_debug_hooks.
30182
30183 2010-05-14  Martin Jambor  <mjambor@suse.cz>
30184
30185         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
30186         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
30187         * langhooks.h (struct lang_hooks_for_decls): Removed field
30188         fold_obj_type_ref.
30189         * tree.c (free_lang_data): Remove assignment to
30190         lang_hooks.fold_obj_type_ref.
30191         * tree.def (OBJ_TYPE_REF): Update comment.
30192
30193 2010-05-14  Richard Guenther  <rguenther@suse.de>
30194
30195         PR tree-optimization/44124
30196         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
30197
30198 2010-05-14  Alan Modra  <amodra@gmail.com>
30199
30200         PR target/44075
30201         * config/rs6000/rs6000.c (struct machine_function): Reorder
30202         fields for better packing.  Add lr_save_state.
30203         (rs6000_ra_ever_killed): Return lr_save_state if set.
30204         (rs6000_emit_eh_reg_restore): Set lr_save_state.
30205
30206 2010-05-13  Jan Hubicka  <jh@suse.cz>
30207
30208         * varpool.c (decide_is_variable_needed): Drop code checking
30209         TREE_SYMBOL_REFERENCED.
30210
30211 2010-05-13  Jan Hubicka  <jh@suse.cz>
30212
30213         * final.c (output_addr_const): Do not call mark_decl_referenced.
30214         * cgraphunit.c (process_function_and_variable_attributes): Use
30215         mark_needed_node dirrectly.
30216         (assemble_thunk): Do not call mark_decl_referenced.
30217
30218 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
30219
30220         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
30221
30222 2010-05-13  Jeff Law  <law@redhat.com>
30223
30224         * ira-conflicts.c (print_allocno_conflicts): New function broken out
30225         from...
30226         (print_conflicts): Call print_allocno_conflicts.
30227
30228 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
30229
30230         PR debug/44104
30231         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
30232         if it is NULL.
30233
30234 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
30235
30236         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
30237         t-mingw-w64 or t-mingw-w32 for multilib configuration.
30238         * config/i386/t-mingw-w32: New.
30239         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
30240
30241 2010-05-13  Martin Jambor  <mjambor@suse.cz>
30242
30243         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
30244         gimple-fold.c).
30245         * gimple-fold.c (get_base_binfo_for_type): New function.
30246         (gimple_get_relevant_ref_binfo): Likewise.
30247         (gimple_fold_obj_type_ref_known_binfo): Likewise.
30248         (gimple_fold_obj_type_ref): Likewise.
30249         (fold_gimple_call): Simplify condition for folding virtual calls
30250         and call gimple_fold_obj_type_ref.
30251         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
30252         (gimple_fold_obj_type_ref_known_binfo): Likewise.
30253
30254 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
30255
30256         * config/rs6000/rs6000-protos.h
30257         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
30258         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
30259         (rs6000_debug_mode_dependent_address)
30260         (rs6000_mode_dependent_address_ptr): Likewise.
30261
30262 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
30263
30264         PR debug/43983
30265         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
30266         by SRA.
30267         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
30268         * tree-sra.c (create_access_replacement): Call unshare_expr before
30269         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
30270         * dwarf2out.c: Include tree-flow.h.
30271         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
30272         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
30273         Handle DW_OP_bit_piece.
30274         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
30275         construct_piece_list, adjust_piece_list): New functions.
30276         (add_var_loc_to_decl): Handle SRA optimized variables.
30277         Adjust for var_loc_note to loc field renaming.
30278         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
30279         in VAR_LOCATION note.
30280         (new_loc_descr_op_bit_piece): New function.
30281         (dw_sra_loc_expr): New function.
30282         (dw_loc_list): Use it.  Don't handle the last range after the
30283         loop, handle it inside of the loop.  Adjust for var_loc_note
30284         to loc field renaming.
30285         (add_location_or_const_value_attribute): Only special case
30286         single entry loc lists if loc is NOTE_P.  Adjust for
30287         var_loc_note to loc field renaming.
30288         (dwarf2out_var_location): Don't set newloc->var_loc_note
30289         and newloc->next here.
30290
30291 2010-05-12  Jan Hubicka  <jh@suse.cz>
30292
30293         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
30294         flag.
30295         * cgraph.h (cgraph_only_called_directly_p,
30296         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
30297         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
30298         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
30299         (assemble
30300         * ipa.c (cgraph_remove_unreachable_nodes): Use
30301         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
30302         flags.
30303         * tree-inline.c (copy_bb): Check address_taken flag.
30304         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
30305         externally_visible flag.
30306
30307 2010-05-12  Jason Merrill  <jason@redhat.com>
30308
30309         PR bootstrap/44048
30310         PR target/44099
30311         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
30312         * sdbout.c (plain_type_1): Likewise.
30313         * dwarf2out.c (is_base_type): Likewise.
30314         (gen_type_die_with_usage): Likewise.  Generate
30315         DW_TAG_unspecified_type for any LANG_TYPE.
30316
30317 2010-05-12  Jan Hubicka  <jh@suse.cz>
30318
30319         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
30320         indrect edges too.
30321         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
30322         (cgraph_clone_edge): Update.
30323         (cgraph_node_remove_callees): Remove indirect calls too.
30324         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
30325         (cgraph_create_indirect_edge): Update prototype.
30326         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
30327         is_proper_for_analysis.
30328         (add_new_function, visited_nodes, function_insertion_hook_holder,
30329         get_local_reference_vars_info, mark_address_taken, mark_address,
30330         mark_load, mark_store, check_asm_memory_clobber, check_call,
30331         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
30332         (ipa_init): Do not initialize visited_nodes;
30333         function_insertion_hook_holder.
30334         (analyze_variable): Rewrite.
30335         (analyze_function): Rewrite.
30336         (copy_local_bitmap): Remove.
30337         (duplicate_node_dat): Do not duplicate local info.
30338         (generate_summary): Simplify to only walk cgraph.
30339         (write_node_summary_p, ipa_reference_write_summary,
30340         ipa_reference_read_summary): Remove.
30341         (propagate): Do not remove function insertion;
30342         generate summary.
30343         (pass_ipa_reference): NULLify summary handling fields.
30344         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
30345         (input_edge): Input ecf_flags.
30346         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
30347         (update_indirect_edges_after_inlining): Ignore edges with unknown
30348         param.
30349
30350 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
30351
30352         * implicit-zee.c: New file.
30353         * tree-pass.h (pass_implicit_zee): Declare.
30354         * passes.c (init_optimization_passes): Add zee pass.
30355         * common.opt (fzee): New flag.
30356         * timevar.def (TV_ZEE): Define.
30357         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
30358         and beyond.
30359         * Makefile.in (implicit-zee.o): Add new build file.
30360
30361 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
30362             Nathan Froyd  <froydnj@codesourcery.com>
30363
30364         * c-common.c (sync_resolve_params): Remove write-only variable.
30365
30366 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
30367
30368         * target.h (struct gcc_target): Add mode_dependent_address_p field.
30369         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30370         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
30371         * targhooks.c (default_mode_dependent_address_p): New function.
30372         * targhooks.h (default_mode_dependent_address_p): Declare function.
30373         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30374         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
30375         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
30376         target hook. Change return type to bool.
30377         * recog.h (mode_dependent_address_p): Change return type to bool.
30378
30379 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
30380             Nathan Froyd  <froydnj@codesourcery.com>
30381
30382         * tree-mudflap.c (build_function_type_0, build_function_type_1,
30383         build_function_type_2, build_function_type_3): Remove.
30384         (mudflap_init): Use build_function_type_list.
30385
30386 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
30387             Nathan Froyd  <froydnj@codesourcery.com>
30388
30389         * coverage.c (build_fn_info_value): Call build_constructor instead of
30390         build_constructor_from_list.
30391         (build_ctr_info_value): Likewise.
30392         (build_gcov_info): Likewise.
30393
30394 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
30395
30396         * tree.c (build_constructor): Compute TREE_CONSTANT for the
30397         resultant constructor.
30398         (build_constructor_single): Don't set TREE_CONSTANT.
30399         (build_constructor_from_list): Don't compute TREE_CONSTANT.
30400
30401 2010-05-12  Jan Hubicka  <jh@suse.cz>
30402
30403         * cgraph.h (struct varpool_node): Add aux.
30404         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
30405         * varpool.c (varpool_remove_node): Do not remove initializer.
30406         (varpool_reset_queue): Export.
30407         (varpool_finalize_decl): Volatile vars are forced to be output.
30408         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
30409         replaced decl.
30410         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
30411         process_references, varpool_can_remove_if_no_refs): New functions.
30412         (cgraph_remove_unreachable_nodes): Handle variables too.
30413
30414 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
30415
30416         PR target/44088
30417         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
30418
30419 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
30420
30421         PR middle-end/44085
30422         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
30423         change value of ORT_TASK.
30424         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
30425         (omp_notice_threadprivate_variable): New function.
30426         (omp_notice_variable): Call it for threadprivate variables.
30427         If enclosing ctx is a task, print enclosing task rather than
30428         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
30429         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
30430         if task has untied clause.
30431
30432         PR debug/42278
30433         * dwarf2out.c (base_type_die): Don't add name attribute here.
30434         (modified_type_die): Instead of sizetype use
30435         its underlying original type.  If a DW_TAG_base_type doesn't
30436         have name added, add __unknown__.
30437         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
30438         always call force_type_die instead.
30439
30440 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
30441
30442         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
30443         for __stack_chk_guard.
30444
30445 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
30446
30447         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
30448         don't call start_source_file debug hook here...
30449         (finish_options): ... but here, after outputting predefined and
30450         command line defines and undefs.
30451
30452         PR middle-end/44071
30453         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
30454         no fallthru edge.
30455         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
30456         optimizing away empty bb with no successors, move over its
30457         footer chain to fallthru predecessor.
30458         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
30459         (rtl_split_edge): For asm goto call patch_jump_insn even if
30460         splitting fallthru edge.
30461
30462         PR c++/44059
30463         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
30464         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
30465         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
30466         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
30467         on DW.ref.* decls.
30468
30469         PR c++/44062
30470         * c-parser.c (c_parser_expression): Mark LHS of a comma
30471         expression as read if it is a decl, handled component or
30472         COMPOUND_EXPR with that on the RHS.
30473         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
30474         if it is a decl or handled component.
30475
30476 2010-05-11  Jan Hubicka  <jh@suse.cz>
30477
30478         * lto-symtab.c (lto_symtab_free): New function.
30479         * lto-streamer.h (lto_symtab_free): Declare.
30480
30481 2010-05-11  Jan Hubicka  <jh@suse.cz>
30482
30483         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
30484         that if function is needed it is reachable.
30485         (lto_output_node): See if it the function is reachable or referenced.
30486         (output_cgraph): Update call of lto_output_node.
30487         * lto-streamer.h (reachable_from_other_partition_p): Declare.
30488
30489 2010-05-11  Jan Hubicka  <jh@suse.cz>
30490
30491         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
30492         Mark as used.
30493
30494 2010-05-11  Jan Hubicka  <jh@suse.cz>
30495
30496         PR tree-optimize/44063
30497         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
30498         queue.
30499         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
30500         limits.
30501         (estimate_function_body_sizes): Compute sizes even when disregarding.
30502
30503 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
30504
30505         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
30506
30507 2010-05-11  Jan Hubicka  <jh@suse.cz>
30508
30509         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
30510         into every boundary.
30511
30512 2010-05-11  Jan Hubicka  <jh@suse.cz>
30513
30514         * matrix-reorg.c (matrix_reorg): Rebuild edges.
30515
30516 2010-05-11  Jan Hubicka  <jh@suse.cz>
30517
30518         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
30519         lto_streamer_cache_delete): Put nodes into heap.
30520         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
30521         heap.
30522
30523 2010-05-11  Jan Hubicka  <jh@suse.cz>
30524
30525         * cgraphbuild.c (cgraph_rebuild_references): New.
30526         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
30527         out extern inlines.
30528         * cgraph.h (cgraph_rebuild_references): Declare.
30529         * tree-inline.c (tree_function_versioning): Use it.
30530         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
30531
30532 2010-05-11  Jan Hubicka  <jh@suse.cz>
30533
30534         * cgraph.c: Include ipa-utils.h
30535         (cgraph_create_virtual_clone): Update references.
30536         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
30537
30538 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
30539
30540         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
30541         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
30542         cache size.
30543
30544 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
30545
30546         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
30547
30548 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
30549
30550         * gcc.c (execute): For -### don't quote arguments that
30551         contain just alphanumerics and _/-. characters.
30552         * doc/invoke.texi: Document that change for -###.
30553
30554         PR debug/44023
30555         * df-problems.c (struct dead_debug): Add to_rescan field.
30556         (dead_debug_init): Clear to_rescan field.
30557         (dead_debug_finish): Rescan all debug insns in to_rescan
30558         bitmap and free the bitmap.
30559         (dead_debug_insert_before): Instead of rescanning debug insns
30560         immediately queue their rescanning until dead_debug_finish.
30561         (df_note_bb_compute): After dead_debug_add do continue instead
30562         of break.
30563
30564 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
30565
30566         PR debug/44028
30567         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
30568         clear also INSN_REG_USE_LIST.
30569
30570 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30571
30572         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
30573
30574 2010-05-10  Jan Hubicka  <jh@suse.cz>
30575
30576         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
30577         commited change.
30578
30579 2010-05-10  Jan Hubicka  <jh@suse.cz>
30580
30581         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
30582         Allocate encoders.
30583         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
30584         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
30585         (lto_streamer_cache_create): Init alloc pool.
30586         (lto_streamer_cache_delete): Free alloc pool.
30587         * lto-streamer.h: Include alloc pool.
30588         (lto_streamer_cache_d): Use alloc pool.
30589         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
30590
30591 2010-05-10  Jan Hubicka  <jh@suse.cz>
30592
30593         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
30594         * cgraphbuild.c: Include except.h
30595         (record_type_list, record_eh_tables): New function.
30596         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
30597
30598 2010-05-10  Jan Hubicka  <jh@suse.cz>
30599
30600         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
30601         __frame_dummy_init_array_entry, force_to_data): Attribute as used
30602         rather than unused.
30603
30604 2010-05-10  Michael Matz  <matz@suse.de>
30605
30606         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
30607         (can_reassociate_p): Use FLOAT_TYPE_P.
30608         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
30609         (vect_force_simple_reduction): ... this.
30610         * tree-parloops.c (gather_scalar_reductions): Use
30611         vect_force_simple_reduction.
30612         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
30613         vect_is_simple_reduction, add modify argument, if true rewrite
30614         "a-b" into "a+(-b)".
30615         (vect_is_simple_reduction, vect_force_simple_reduction): New
30616         functions.
30617         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
30618
30619 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
30620             Vladimir Makarov  <vmakarov@redhat.com>
30621
30622         PR rtl-optimization/44012
30623         * ira-build.c (remove_unnecessary_allocnos): Nullify
30624         regno_allocno_map of the removed allocno.
30625
30626 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30627
30628         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
30629         to /dev/null.
30630         * configure: Regenerate.
30631
30632 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30633
30634         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
30635         unused.
30636         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
30637         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
30638         support in Sun ld.
30639         * configure: Regenerate.
30640
30641 2010-05-10  Richard Guenther  <rguenther@suse.de>
30642
30643         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
30644         marked if the entry identifier is marked.
30645
30646 2010-05-10  Richard Guenther  <rguenther@suse.de>
30647
30648         * c-common.c (struct c_common_attributes): Add fnspec attribute.
30649         (handle_fnspec_attribute): New function.
30650         * gimple.h (gimple_call_return_flags): Declare.
30651         (gimple_call_arg_flags): Likewise.
30652         * gimple.c (gimple_call_arg_flags): New function.
30653         (gimple_call_return_flags): Likewise.
30654         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
30655         New argument flags.
30656         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
30657         return value flags.
30658         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
30659         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
30660         main work to ...
30661         (make_heapvar_for): ... this new function.
30662         (handle_rhs_call): Handle fnspec attribute argument specifiers.
30663         (handle_lhs_call): Likewise.
30664         (find_func_aliases): Adjust.
30665
30666 2010-05-10  Richard Guenther  <rguenther@suse.de>
30667
30668         PR tree-optimization/44050
30669         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
30670
30671 2010-05-10  Wei Guozhi  <carrot@google.com>
30672
30673         PR target/42879
30674         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
30675
30676 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
30677
30678         PR c/10676
30679         * c-typeck.c (lookup_field): Take a type directly.  Update
30680         recursive calls.
30681         (build_component_ref): Update call to lookup_field.
30682         (set_init_label): Use lookup_field to find initialized field.
30683         Handle returned list of fields like a sequence of designators.
30684
30685 2010-05-09  Richard Guenther  <rguenther@suse.de>
30686
30687         PR middle-end/44024
30688         * fold-const.c (tree_single_nonzero_warnv_p): Properly
30689         handle &FUNCTION_DECL.
30690
30691 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
30692
30693         PR c/4784
30694         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
30695         structures and unions recursively.
30696         (detect_field_duplicates): Move duplicate detection with a hash to
30697         detect_field_duplicates_hash.  Always use a hash if anonymous
30698         structures or unions are present.
30699         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
30700         give errors.
30701
30702 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
30703
30704         PR target/44046
30705         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
30706         detect Atom, Core 2 and Core i7.
30707
30708 2010-05-09  Richard Guenther  <rguenther@suse.de>
30709
30710         * gcc.c (store_arg): Handle temporary file deletion for
30711         joined arguments.
30712
30713 2010-05-09  Richard Guenther  <rguenther@suse.de>
30714
30715         PR middle-end/44043
30716         * ipa-inline.c (estimate_function_body_sizes): Return after
30717         disregarding inline limits.
30718
30719 2010-05-09  Richard Guenther  <rguenther@suse.de>
30720
30721         * gcc.c (store_arg): Revert last change.
30722
30723 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
30724
30725         PR middle-end/28685
30726         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
30727         (optimize_ops_list): Call it.
30728
30729 2010-05-08  Richard Guenther  <rguenther@suse.de>
30730
30731         PR tree-optimization/44030
30732         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
30733         NECESSARY flag if we propagate from a inserted expression.
30734
30735 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
30736
30737         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
30738         domain types as equal if they are both PLACEHOLDER_EXPRs.
30739
30740 2010-05-08  Richard Guenther  <rguenther@suse.de>
30741
30742         * lto-wrapper.c (run_gcc): Remove linker output from
30743         command line for LTRANS invocation.
30744
30745 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
30746
30747         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
30748         lto-macho as lto_binary_reader.
30749         * target.h (struct gcc_target): New hooks lto_start and lto_end.
30750         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
30751         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
30752         in lto_start and lto_end calls.
30753         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
30754         magic numbers.
30755         (scan_prog_file): Update is_elf_or_coff call.
30756         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
30757
30758         * collect2.c (main): Fix enum comparison.
30759
30760         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
30761         Add prototypes.
30762         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
30763         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
30764         and TARGET_ASM_LTO_END.
30765         * darwin.c: Include obstack.h and lto-streamer.h.
30766         (lto_section_names_offset, lto_section_names_obstack,
30767         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
30768         global variables.
30769         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
30770         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
30771         to a temporary file.
30772         (darwin_asm_lto_end): New function.  Restore asm_out_file.
30773         (darwin_asm_named_section): For LTO sections, replace the name with
30774         the offset of the section name in a string table, and build this
30775         table.
30776         (darwin_file_start): Initialize global vars for LTO support.
30777         (darwin_file_end): If output to asm_out_file was redirected, append it
30778         to the proper asm_out_file here.  Add the section names section.
30779
30780 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
30781
30782         * c-pragma.c (pending_weak_d, pending_weak): New.
30783         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
30784         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
30785         handle_pragma_weak): Update the uses of pending_weaks.
30786
30787 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30788
30789         PR documentation/44016
30790         * doc/standards.texi (Standards): Link to unversioned
30791         cxx0x_status.html page.
30792
30793 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
30794
30795         PR target/43708
30796         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
30797         in addition to TREE_USED, to avoid "set but unused" warnings.
30798
30799 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30800
30801         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
30802         (is_loop_prefetching_profitable): Do not insert prefetches
30803         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
30804         times the prefetch ahead distance.
30805
30806 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30807
30808         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
30809         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
30810         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
30811         the unroll_factor.
30812
30813 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30814
30815         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
30816         a diagnostic info when the insn-to-mem ratio is too small.
30817
30818 2010-05-07  Richard Guenther  <rguenther@suse.de>
30819
30820         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
30821         the linker plugin.
30822         (store_arg): Queue temp_filename for deletion instead of
30823         the whole argument.
30824
30825 2010-05-07  Richard Guenther  <rguenther@suse.de>
30826
30827         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
30828         (run_gcc): Handle LTRANS phase invocation.
30829         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
30830
30831 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
30832
30833         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
30834         this is also meaningful on PARM_DECLs and RESULT_DECLs.
30835
30836 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30837
30838         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
30839
30840 2010-05-07  Richard Guenther  <rguenther@suse.de>
30841
30842         PR tree-optimization/44020
30843         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
30844         code when PRE is not yet initialized.
30845
30846 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30847
30848         * config/mips/dbxmdebug.h: Remove.
30849         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
30850
30851 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
30852
30853         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
30854         with null pointer and also warn about ordered comparison of zero with
30855         pointer if -Wextra.
30856
30857 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
30858
30859         * graphite-blocking.c
30860         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
30861         * graphite-clast-to-gimple.c
30862         (clast_to_gcc_expression): Same.
30863         (precision_for_value): Same.
30864         (precision_for_interval): Same.
30865         (gcc_type_for_interval): Same.
30866         (graphite_create_new_guard): Same.
30867         (compute_bounds_for_level): Same.
30868         (graphite_create_new_loop_guard): Same.
30869         * graphite-interchange.c
30870         (build_linearized_memory_access): Same.
30871         (pdr_stride_in_loop): Same.
30872         (memory_strides_in_loop_1): Same.
30873         (memory_strides_in_loop): Same.
30874         (extend_scattering): Same.
30875         (psct_scattering_dim_for_loop_depth): Same.
30876         (pbb_number_of_iterations): Same.
30877         * graphite-poly.h
30878         (debug_iteration_domains): Same.
30879         * graphite-ppl.c
30880         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
30881         (ppl_set_inhomogeneous_gmp): Same.
30882         (ppl_strip_loop): Same.
30883         (ppl_lexico_compare_linear_expressions): Same.
30884         (ppl_read_polyhedron_matrix): Same.
30885         (ppl_max_for_le_pointset): Same.
30886         * graphite-ppl.h
30887         (ppl_read_polyhedron_matrix): Same.
30888         (tree_int_to_gmp): Same.
30889         (gmp_cst_to_tree): Same.
30890         (ppl_set_inhomogeneous): Same.
30891         (ppl_set_inhomogeneous_tree): Same.
30892         (ppl_set_coef): Same.
30893         (ppl_set_coef_tree): Same.
30894         * graphite-sese-to-poly.c
30895         (build_pbb_scattering_polyhedrons): Same.
30896         (build_scop_scattering): Same.
30897         (scan_tree_for_params_right_scev): Same.
30898         (scan_tree_for_params): Same.
30899         (find_params_in_bb): Same.
30900         (find_scop_parameters): Same.
30901         (add_upper_bounds_from_estimated_nit): Same.
30902         (build_loop_iteration_domains): Same.
30903         (add_condition_to_domain): Same.
30904         (pdr_add_memory_accesses): Same.
30905
30906 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
30907
30908         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
30909         CLooG's value_* macros to their respective mpz_* counterparts.
30910         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
30911         (graphite_create_new_loop_guard): Same.
30912         * graphite-interchange.c (build_linearized_memory_access): Same.
30913         (pdr_stride_in_loop): Same.
30914         (memory_strides_in_loop_1): Same.
30915         (1st_interchange_profitable_p): Same.
30916         * graphite-poly.c (extend_scattering): Same.
30917         (psct_scattering_dim_for_loop_depth): Same.
30918         (pbb_number_of_iterations): Same.
30919         (pbb_number_of_iterations_at_time): Same.
30920         * graphite-poly.h (new_1st_loop): Same.
30921         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
30922         (oppose_constraint): Same.
30923         (insert_constraint_into_matrix): Same.
30924         (ppl_set_inhomogeneous_gmp): Same.
30925         (ppl_set_coef_gmp): Same.
30926         (ppl_strip_loop): Same.
30927         (ppl_lexico_compare_linear_expressions): Same.
30928         (ppl_max_for_le_pointset): Same.
30929         (ppl_min_for_le_pointset): Same.
30930         (ppl_build_realtion): Same.
30931         * graphite-ppl.h (gmp_cst_to_tree): Same.
30932         (ppl_set_inhomogeneous): Same.
30933         (ppl_set_inhomogeneous_tree): Same.
30934         (ppl_set_coef): Same.
30935         (ppl_set_coef_tree): Same.
30936         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30937         (build_scop_scattering): Same.
30938         (add_value_to_dim): Same.
30939         (scan_tree_for_params_right_scev): Same.
30940         (scan_tree_for_params_int): Same.
30941         (scan_tree_for_params): Same.
30942         (find_params_in_bb): Same.
30943         (find_scop_parameters): Same.
30944         (add_upper_bounds_from_estimated_nit): Same.
30945         (build_loop_iteration_domains): Same.
30946         (create_linear_expr_from_tree): Same.
30947         (add_condition_to_domain): Same.
30948         (pdr_add_memory_accesses): Same.
30949
30950 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
30951             Jason Merrill  <jason@redhat.com>
30952
30953         * c-common.c (c_common_reswords): Add nullptr.
30954         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
30955         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
30956         (gen_type_die_with_usage): Likewise.
30957         * dbxout.c (dbxout_type): Likewise.
30958         * sdbout.c (plain_type_1): Likewise.
30959
30960 2010-05-06  Jason Merrill  <jason@redhat.com>
30961
30962         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
30963         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
30964         ret appropriately.
30965         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
30966
30967         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
30968         stripping WITH_SIZE_EXPR.
30969         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
30970         change.
30971
30972 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30973
30974         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
30975         list of obsolete configurations.
30976         Disabled check for obsolete configurations.
30977         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
30978         Removed support for previous versions.
30979         * config/mips/iris.h: Removed.
30980         * config/mips/iris5.h: Removed.
30981         * config/mips/iris6.h: Merged old iris.h contents.
30982         (TARGET_IRIX): Removed.
30983         (DRIVER_SELF_SPECS): Removed mabi=32.
30984         (IDENT_ASM_OP): Removed undef.
30985         (STARTFILE_SPEC): Removed mabi=32.
30986         (ENDFILE_SPEC): Likewise.
30987         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
30988         (MACHINE_TYPE): Update for IRIX 6.5.
30989         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
30990         TARGET_IRIX by TARGET_IRIX6.
30991         (mips_file_start): Likewise.
30992         (mips_output_external): Remove IRIX 5/6 O32 support.
30993         (mips_output_function_prologue): Likewise.
30994         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
30995         TARGET_IRIX6.
30996         (TARGET_CPU_CPP_BUILTINS): Likewise.
30997         (TARGET_IRIX): Removed.
30998         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
30999         (MULTILIB_DIRNAMES): Removed 32.
31000         (MULTILIB_OSDIRNAMES): Removed ../lib.
31001         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
31002         (Specific, mips-sgi-irix5): Document removal.
31003         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
31004         Remove references to older IRIX 6 releases and the O32 ABI.
31005
31006 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
31007
31008         PR bootstrap/43994
31009         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
31010         instead of DF_REF_REAL_REG.
31011
31012 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
31013
31014         PR target/43888
31015         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
31016         handling to still return true for x64 targets.
31017
31018 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
31019
31020         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
31021
31022 2010-05-06  Jan Hubicka  <jh@suse.cz>
31023
31024         PR tree-optimization/43791
31025         * ipa-inline.c (update_caller_keys): Remove bogus
31026         disregard_inline_limits check.
31027
31028 2010-05-06  Michael Matz  <matz@suse.de>
31029
31030         PR tree-optimization/43984
31031         * tree-ssa-pre.c (inserted_phi_names): Remove.
31032         (inserted_exprs): Change to bitmap.
31033         (create_expression_by_pieces): Set bits, don't append to vector.
31034         (insert_into_preds_of_block): Don't handle inserted_phi_names.
31035         (eliminate): Don't look at inserted_phi_names, remove deleted
31036         insns from inserted_exprs.
31037         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
31038         (init_pre, fini_pre): Allocate and free bitmaps.
31039         (execute_pre): Insert insns on edges before elimination.
31040
31041 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
31042
31043         * tree.c (initializer_zerop): Handle STRING_CST.
31044
31045 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31046
31047         PR 40989
31048         * doc/invoke.texi (Wimplicit): Document as C only.
31049         * opts.c (common_handle_option): Add argument kind.
31050         (handle_option): Rename as read_cmdline_option. Factor out code to...
31051         (handle_option): ... here. New.
31052         (handle_options): Rename as read_cmdline_options.
31053         (decode_options): Update call.
31054         (set_option): Use option index instead of option pointer. Classify
31055         diagnostics correctly.
31056         (enable_warning_as_error): Call handle_option.
31057         * opts.h (set_option): Update declaration.
31058         (handle_option): Declare.
31059         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
31060         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
31061         * c-opts.c (set_Wimplicit): Delete.
31062         (c_family_lang_mask): New static constant.
31063         (c_common_handle_option): Add argument kind. Use handle_option
31064         instead of set_Wimplicit.
31065         (c_common_post_options): warn_implicit and warn_implicit_int
31066         are disabled by default.
31067         * c-common.c (warn_implicit): Do not define here.
31068         * c-common.h (warn_implicit): Do not declare here.
31069         (c_common_handle_option): Update declaration.
31070         * lto-opts.c (lto_reissue_options): Update call to set_option.
31071
31072 2010-05-06  Richard Guenther  <rguenther@suse.de>
31073
31074         PR tree-optimization/43571
31075         * domwalk.c (walk_dominator_tree): Walk the dominator
31076         sons in more optimal order.
31077
31078 2010-05-06  Richard Guenther  <rguenther@suse.de>
31079
31080         PR tree-optimization/43934
31081         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
31082         (stmt_cost): Likewise.
31083         (extract_true_false_args_from_phi): New helper.
31084         (determine_max_movement): For PHI nodes verify we can hoist them
31085         and compute their cost.
31086         (determine_invariantness_stmt): Handle PHI nodes.
31087         (move_computations_stmt): Likewise.  Hoist PHI nodes in
31088         if-converted form using COND_EXPRs.
31089         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
31090         (tree_ssa_lim): Likewise.
31091         * tree-flow.h (tree_ssa_lim): Adjust prototype.
31092         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
31093
31094 2010-05-06  Richard Guenther  <rguenther@suse.de>
31095
31096         PR tree-optimization/43987
31097         * tree-ssa-structalias.c (could_have_pointers): For possibly
31098         address-taken variables force pointers to be recorded.
31099         (create_variable_info_for_1): Likewise.
31100         (push_fields_onto_fieldstack): Pass in wheter all fields
31101         must have pointers.
31102         (find_func_aliases): Query types instead of vars whether
31103         they contain pointers where appropriate.
31104
31105 2010-05-06  Jan Hubicka  <jh@suse.cz>
31106
31107         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
31108         (record_reference, mark_address, mark_load, mark_store): Record
31109         references.
31110         (record_references_in_initializer): Update call of record_references.
31111         (rebuild_cgraph_edges): Remove all references before rebuiding.
31112         * cgraph.c (cgraph_create_node): Clear ref list.
31113         (cgraph_remove_node): Remove references.
31114         (dump_cgraph_node): Dump references.
31115         (cgraph_clone_node): Clone references.
31116         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
31117         (struct cgraph_node, varpool_node): Add ref_lst.
31118         * ipa-ref.c: New file.
31119         * ipa-ref.h: New file.
31120         * ipa-ref-inline.h: New file.
31121         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
31122         (referenced_from_other_partition_p): New function.
31123         (lto_output_varpool_node): Take set arugment; call
31124         referenced_from_other_partition.
31125         (lto_output_ref): New.
31126         (add_references): New.
31127         (output_refs): New.
31128         (output_cgraph): Compute boundary based on references; output refs.
31129         (output_varpool): Accept cgraph_node_set argument.
31130         (input_ref): New.
31131         (input_refs): New.
31132         (input_cgraph): Call input_refs.
31133         * lto-section-in.c (lto_section_name): Add refs.
31134         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
31135         (ipa-ref.o): New file.
31136         * varpool.c (varpool_node): Clear ipa ref list.
31137         (varpool_remove_node): Remove references.
31138         (dump_varpool_node): Dump references.
31139         (varpool_assemble_decl): Only compile finalized ones.
31140         (varpool_extra_name_alias): Initialize ref list.
31141         * lto-streamer.c (lto-get_section_name): Add .refs section.
31142         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
31143         (referenced_from_other_partition_p): Declared.
31144
31145 2010-05-06  Ira Rosen  <irar@il.ibm.com>
31146
31147         PR tree-optimization/43901
31148         * tree-vect-stmts.c (vectorizable_call): Assert that vector
31149         type is not NULL if it's transformation phase, and return
31150         FALSE if it's analysis.
31151         (vectorizable_conversion, vectorizable_operation,
31152         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
31153
31154 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
31155
31156         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31157         Delete.
31158         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31159         New define.
31160         * config/mips/mips-protos.h
31161         (mips_small_register_classes_for_mode_p): Delete prototype.
31162
31163 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
31164
31165         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
31166         * config/arm/arm.c (multiple_operation_profitable_p,
31167         compute_offset_order): New static functions.
31168         (load_multiple_sequence, store_multiple_sequence): Use them.
31169         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
31170         memory offsets, not register numbers.
31171         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
31172
31173 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
31174
31175         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
31176         (get_pending_sizes, put_pending_size, put_pending_sizes):
31177         Update the uses of pending_sizes.
31178         * c-decl.c (store_parm_decls): Likewise.
31179         * c-tree.h (struct c_arg_info): Likewise.
31180         * tree.h: Update the prototype for get_pending_sizes and
31181         put_pending_sizes.
31182
31183 2010-05-05  Jason Merrill  <jason@redhat.com>
31184
31185         PR debug/43370
31186         * c-common.c (handle_aligned_attribute): Respect
31187         ATTR_FLAG_TYPE_IN_PLACE.
31188
31189         PR testsuite/43758
31190         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
31191         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31192         (TARGET_INITIALIZER): Use it.
31193         * c-common.c (attribute_takes_identifier_p): Call it.
31194         * c-common.h: Update prototype.
31195         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
31196         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31197
31198 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
31199
31200         PR debug/43950
31201         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
31202         DW_ID_down_case for Fortran compilation units.
31203
31204 2010-05-05  Jan Hubicka  <jh@suse.cz>
31205
31206         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
31207         handle aliases.
31208
31209 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
31210
31211         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
31212         a variable-sized RESULT_DECL.
31213
31214 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
31215
31216         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
31217
31218 2010-05-05  Jason Merrill  <jason@redhat.com>
31219
31220         PR c++/43787
31221         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
31222         returns GS_OK.
31223         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
31224
31225 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
31226             Jakub Jelinek  <jakub@redhat.com>
31227
31228         PR debug/43478
31229         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
31230         (dead_debug_init, dead_debug_finish): New functions.
31231         (dead_debug_add, dead_debug_insert_before): Likewise.
31232         (df_note_bb_compute): Initialize a dead_debug object, add dead
31233         debug uses to it, insert debug bind insns before death insns,
31234         reset debug insns that refer to pending uses at the end.
31235         * rtl.h (make_debug_expr_from_rtl): New prototype.
31236         * varasm.c (make_debug_expr_from_rtl): New function.
31237
31238 2010-05-05  Jan Hubicka  <jh@suse.cz>
31239
31240         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
31241         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
31242         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
31243         lto_varpool_encoder_deref, lto_varpool_encoder_size,
31244         lto_varpool_encoder_encode_initializer_p,
31245         lto_set_varpool_encoder_encode_initializer): New functions.
31246         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
31247         call output_varpool.
31248         (input_varpool_node): Do not always set analyzed.
31249         (input_cgraph_1): Return vector of cgraph nodes.
31250         (input_varpool_1): Return vector of varpools.
31251         (input_cgraph): Free the vectors.
31252         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31253         output only initializers needed.
31254         (lto_output): Only call output_cgraph.
31255         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
31256         * lto-section-out.c (lto_new_out_decl_state): Initialize
31257         state->varpool_node_encoder.
31258         * lto-streamer.h (lto_varpool_encoder_d): New.
31259         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
31260         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
31261         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
31262         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
31263         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
31264         Declare.
31265         (output_varpool, input_varpool): Remove declarations.
31266
31267 2010-05-05  Jan Hubicka  <jh@suse.cz>
31268
31269         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
31270         with body can prevail.
31271
31272 2010-05-05  Jan Hubicka  <jh@suse.cz>
31273
31274         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
31275         size.
31276
31277 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31278
31279         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
31280
31281         * gengtype.h (erro_at_line): Constify pos argument.
31282
31283         * gengtype.c: Include hashtab.h.
31284         (enum gc_used): Document GC_MAYBE_POINTED_TO.
31285         (error_at_line): Constify pos argument.
31286         (do_typedef): Initialize p->opt field.
31287         (get_file_gtfilename): Fix comment typo.
31288         (struct walk_type_data): Constify line field.
31289         (get_output_file_for_structure): New function.
31290         (write_local_func_for_structure): Constify orig_s argument.
31291         Use get_output_file_for_structure.
31292         (write_func_for_structure): Use get_output_file_for_structure.
31293         (INDENT): New define.
31294         (dump_pair, dump_type, dump_type_list, dump_typekind)
31295         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
31296         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
31297         functions.
31298         (seen_types): New variable.
31299         (main): New variable do_dump.  Process "-d" command line option.
31300         Call dump_everything if dump requested.
31301
31302 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
31303
31304         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
31305         in a temporary instead of invoking the macro multiple times.
31306         (track_expr_p): Likewise.
31307
31308 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
31309
31310         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
31311         per new semantics.
31312         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
31313         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
31314         conditions for printing notes.
31315         * common.opt (-Wcoverage-mismatch): Allow negative, default to
31316         true, update documentation.
31317         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
31318
31319 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
31320
31321         PR c/43981
31322         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
31323         on dimen.
31324
31325 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
31326
31327         PR target/43799
31328         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
31329         (*sse_prologue_save_insn1): Likewise.
31330         (SSE prologue save splitter): Likewise.
31331
31332 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
31333
31334         * tree.c (free_lang_data_in_one_sizepos): New inline function.
31335         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
31336         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
31337         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
31338         all decls.  Call it on DECL_FIELD_OFFSET of fields.
31339         (find_decls_types_r): Follow DECL_VALUE_EXPR.
31340         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
31341
31342 2010-05-04  Martin Jambor  <mjambor@suse.cz>
31343
31344         * tree-sra.c (build_access_from_expr_1): The first parameter type
31345         changed to simple tree.
31346         (build_access_from_expr): Likewise, gsi parameter was eliminated.
31347         (scan_assign_result): Renamed to assignment_mod_result, enum elements
31348         renamed as well.
31349         (build_accesses_from_assign): Removed all parameters except for a
31350         simple gimple statement.  Now returns a simple bool.
31351         (scan_function): All non-analysis parts moved to separate functions
31352         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
31353         parameters and updated both callers.
31354         (sra_modify_expr): Removed parameter data.
31355         (sra_modify_function_body): New function.
31356         (perform_intra_sra): Call sra_modify_function_body to modify the
31357         function body.
31358         (replace_removed_params_ssa_names): Parameter data changed into
31359         adjustments vector.
31360         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
31361         changed the parameter dont_convert to convert with the opposite
31362         meaning.
31363         (sra_ipa_modify_assign): Parameter data changed into adjustments
31364         vector, return value changed to bool.
31365         (ipa_sra_modify_function_body): New function.
31366         (sra_ipa_reset_debug_stmts): Updated a comment.
31367         (modify_function): Use ipa_sra_modify_function_body to modify function
31368         body.
31369
31370 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
31371
31372         PR middle-end/43671
31373         * alias.c (true_dependence): Handle the same VALUE in x and mem.
31374         (canon_true_dependence): Likewise.
31375         (write_dependence_p): Likewise.
31376
31377 2010-05-04  Jan Hubicka  <jh@suse.cz>
31378
31379         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
31380         * cgraphbuild.c: Include ipa-utils.h
31381         (record_reference_ctx): New struct.
31382         (record_reference): Simplify to work on initializers; not statements.
31383         (mark_address, mark_load, mark_store): New.
31384         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31385         walk PHI nodes too.
31386         (record_references_in_initializer): Update use of record_reference.
31387         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31388         walk PHI nodes too.
31389
31390 2010-05-04  Jan Hubicka  <jh@suse.cz>
31391
31392         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
31393         node will be removed anyway.
31394         (lto_varpool_replace_node): Allow also unanalyzed nodes;
31395         relink aliases of node into prevailing node.
31396         * varpool.c (varpool_remove_node): Remove aliases properly;
31397         when removing node, remove all its aliases too; remove DECL_INITIAL
31398         of removed node; ggc_free the varpool node.
31399
31400 2010-05-04  Richard Guenther  <rguenther@suse.de>
31401
31402         PR tree-optimization/43879
31403         * tree-ssa-structalias.c (alias_get_name): Use
31404         DECL_ASSEMBLER_NAME if available.
31405         (create_function_info_for): Return the varinfo node.
31406         (ipa_pta_execute): Associate same-body aliases and extra names
31407         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
31408
31409 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
31410
31411         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
31412
31413 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
31414
31415         PR bootstrap/43964
31416         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
31417         only if HONOR_REG_ALLOC_ORDER is not defined.
31418
31419 2010-05-04  Richard Guenther  <rguenther@suse.de>
31420
31421         PR tree-optimization/43949
31422         * tree-vrp.c (extract_range_from_binary_expr): Only handle
31423         TRUNC_MOD_EXPR.
31424
31425 2010-04-26  Jason Merrill  <jason@redhat.com>
31426
31427         * c.opt (-fstrict-enums): New.
31428         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
31429
31430 2010-05-03  David Ung  <davidu@mips.com>
31431             James E. Wilson  <wilson@codesourcery.com>
31432
31433         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
31434         emit the trap instruction before the divide for TUNE_74K.
31435
31436 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
31437
31438         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
31439         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
31440         based on the above, for new target hook.
31441
31442         * hooks.c (hook_bool_mode_true): New generic hook.
31443         * hooks.h (hook_bool_mode_true): Add prototype.
31444
31445         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
31446         target hook.
31447         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
31448         target hook, set to hook_bool_mode_false.
31449         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
31450         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
31451         with targetm.small_register_classes_for_mode_p.
31452         (find_reusable_reload): Likewise.
31453         (combine_reloads): Likewise.
31454         * reload1.c (reload_as_needed): Likewise.
31455         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
31456         * ifcvt.c (noce_process_if_block, check_cond_move_block,
31457         dead_or_predicable): Likewise.
31458         * regmove.c (optimize_reg_copy_1): Likewise.
31459         * calls.c (prepare_call_address): Likewise.
31460         (precompute_register_parameters): Likewise.
31461
31462         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
31463         hook definition.
31464         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
31465         implementation of the hook that considers all register classes
31466         small except for SH64.
31467         (sh_override_options): Use the new hook.
31468         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
31469         Add prototype.
31470
31471         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
31472         hook definition.
31473         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
31474         implementation of the hook that considers all register classes
31475         small for THUMB1.
31476         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
31477         Add prototype.
31478
31479         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
31480         hook definition.
31481         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
31482         implementation of the hook that considers all register classes
31483         small for MIPS16.
31484         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
31485         Add prototype.
31486
31487         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
31488         hook definition.
31489         * config/m32c/m32c.h: Likewise.
31490         * config/pdp11/pdp11.h: Likewise.
31491         * config/avr/avr.h: Likewise.
31492         * config/xtensa/xtensa.h: Likewise.
31493         * config/m68hc11/m68hc11.h: Likewise.
31494         * config/mn10300/mn10300.h: Likewise.
31495         * config/mcore/mcore.h: Likewise.
31496         * config/h8300/h8300.h: Likewise.
31497         * config/bfin/bfin.h: Likewise.
31498
31499         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
31500         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
31501
31502 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
31503
31504         * double-int.h (tree_to_double_int): Remove macro.
31505         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
31506         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
31507         (tree_to_double_int): New function.
31508         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
31509         Move ...
31510         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
31511
31512 2010-05-03  Richard Guenther  <rguenther@suse.de>
31513
31514         PR tree-optimization/43971
31515         * tree-ssa-structalias.c (get_constraint_for_1): Fix
31516         constraints in the !flag_delete_null_pointer_checks case.
31517
31518 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
31519
31520         PR debug/43972
31521         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
31522         result mode matches original rtl mode.
31523
31524 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
31525
31526         PR target/43888
31527         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
31528
31529 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
31530
31531         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
31532         when processing flag options.
31533
31534 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
31535
31536         * gcov-iov.c (main): Change format string placeholder
31537         from %#08x to 0x%08x.
31538         * genchecksum.c (dosum): Change format string placeholder
31539         from %#02x to 0x%02x.
31540
31541 2010-05-02  Richard Guenther  <rguenther@suse.de>
31542
31543         PR tree-optimization/43879
31544         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
31545
31546 2010-05-02  Bruno Haible  <bruno@clisp.org>
31547
31548         * doc/extend.texi (Function Attributes): Fix a typo.
31549
31550 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
31551
31552         Revert:
31553         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
31554         placeholder from 0x%x to %#x.
31555         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
31556         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
31557         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
31558         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
31559         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
31560         * config/i386/i386.c (ix86_target_string): Ditto.
31561         * config/i386/i386.c (output_pic_addr_const): Ditto.
31562         (print_operand): Ditto.
31563
31564 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
31565
31566         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
31567         placeholder from 0x%x to %#x.
31568         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
31569         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
31570         (ASM_OUTPUT_DEBUG_DATA): Ditto.
31571         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
31572         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
31573         * optc-gen.awk: Ditto.
31574         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
31575         (HOST_WIDE_INT_PRINT_HEX): Ditto.
31576         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
31577         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
31578
31579 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
31580
31581         * target.h (struct calls): Add function_value_regno_p field.
31582         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
31583         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
31584         * targhooks.c (default_function_value_regno_p): New function.
31585         * targhooks.h (default_function_value_regno_p): Declare function.
31586         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
31587         * builtins.c. (apply_result_size): (Ditto.).
31588         * combine.c. (likely_spilled_retval_p): (Ditto.).
31589         * mode-switching.c. Include 'target.h'.
31590         (create_pre_exit): Use function_value_regno_p hook.
31591         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
31592         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
31593         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
31594
31595         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
31596         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
31597         (ix86_function_value_regno_p): Declare as static, change argument
31598         type to const unsigned int.
31599         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
31600
31601 2010-05-01  Richard Guenther  <rguenther@suse.de>
31602
31603         PR tree-optimization/43949
31604         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
31605         types.
31606         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
31607
31608 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
31609
31610         * rtl.h (CONST_DOUBLE_P): Define.
31611         (rtx_to_double_int): Declare.
31612         * emit-rtl.c (rtx_to_double_int): New function.
31613         * dwarf2out.c (insert_double): New function.
31614         (loc_descriptor, add_const_value_attribute): Clean up, use
31615         rtx_to_double_int and insert_double functions.
31616
31617 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
31618
31619         * doc/extend.texi (Inline): Add missing return keyword to examples.
31620         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
31621         "command-line".
31622
31623 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
31624
31625         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
31626         the variable part of the offset as well.  Use highest_pow2_factor for
31627         all alignment checks.
31628
31629 2010-04-30  Richard Guenther  <rguenther@suse.de>
31630
31631         PR tree-optimization/43879
31632         * tree-ssa-structalias.c (type_could_have_pointers): Functions
31633         can have pointers.
31634
31635 2010-04-30  Jan Hubicka  <jh@suse.cz>
31636
31637         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
31638         varpool.
31639         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
31640
31641 2010-04-30  Jan Hubicka  <jh@suse.cz>
31642
31643         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
31644         New.
31645         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
31646         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
31647         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
31648         cgraph_node_set_needs_ltrans_p): Remove.
31649
31650 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
31651
31652         * sdbout.c: Include vec.h, do not include varray.h.
31653         (deferred_global_decls, sdbout_global_decl,
31654         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
31655         * toplev.c: Do not include varray.h.
31656         (dump_memory_report): Do not dump VARRAY statistics.
31657         * gengtype.c (open_base_file): Ignore varray.h.
31658         * Makefile.in: Update for abovementioned changes.
31659         Remove all traces of varray.c and varray.h.
31660         * varray.c: Remove file.
31661         * varray.h: Remove file.
31662
31663 2010-04-30  Jan Hubicka  <jh@suse.cz>
31664
31665         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
31666         references.
31667
31668 2010-04-30  Jan Hubicka  <jh@suse.cz>
31669
31670         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
31671         needed.
31672
31673 2010-04-30  Richard Guenther  <rguenther@suse.de>
31674
31675         * tree-ssa-structalias.c (get_constraint_for_1): Generate
31676         constraints for CONSTRUCTOR.
31677
31678 2010-04-30  Richard Guenther  <rguenther@suse.de>
31679
31680         PR lto/43946
31681         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
31682         first after all lowering passes.
31683
31684 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
31685
31686         * toplev.c: Include varray.h for statistics dumping.
31687         * tree.h: Do not declare varray_head_tag.
31688         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
31689         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
31690         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
31691         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
31692         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
31693         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
31694         c-common.c, c-common.h, reg-stack.c, basic-block.h,
31695         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
31696         include varray.h.
31697         * Makefile.in: Update for abovementioned changes.
31698
31699 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
31700
31701         PR debug/43942
31702         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
31703
31704 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
31705
31706         * config/picochip/picochip.c (picochip_legitimize_address): Define.
31707         Use this function to do machine-specific conversion.
31708         (picochip_legitimize_reload_address): Likewise.
31709         (picochip_legitimate_address_p): Check valid base register only if
31710         strict.
31711         (picochip_check_conditional_copy): Check for modw only if opnd is
31712         register.
31713         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
31714         to call the function in c.
31715         * config/picochip/picochip-protos.h
31716         (picochip_legitimize_reload_address): Define.
31717         * config/picochip/picochip.md (supported_compare1): Define.
31718
31719 2010-04-30  Jan Hubicka  <jh@suse.cz>
31720
31721         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
31722         (cgraph_global_info): Remove inlined.
31723         (LTO_cgraph_tag_names): Remove.
31724         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
31725         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
31726         simplify cgraph tags and document.
31727         (lto_output_node): Use only LTO_cgraph_unavail_node and
31728         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
31729         for_functions_valid, global info, process and output flags.
31730         (input_overwrite_node): Initialize estimated stack size and
31731         estimated growth.  Do not read flags we no longer store.
31732         (input_node): Likewise do not read info no longer stored.
31733         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
31734         flag.
31735
31736 2010-04-30  Richard Guenther  <rguenther@suse.de>
31737
31738         PR tree-optimization/43879
31739         * tree-ssa-structalias.c (get_constraint_for_1): Properly
31740         handle non-zero initializers.
31741
31742 2010-04-30  Richard Guenther  <rguenther@suse.de>
31743
31744         * builtins.c (fold_builtin_1): Delete free (0).
31745
31746 2010-04-29  Jan Hubicka  <jh@suse.cz>
31747
31748         * gengtype.c (open_base_files): Add lto-streamer.h
31749         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
31750         (pass_ipa_cp): GGC collect.
31751         * toplev. (compile_file): Do not output symbols.
31752         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
31753         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
31754         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
31755         * lto-section-in.c: Include ggc.h
31756         (lto_new_in_decl_state): Alloc in GGC.
31757         (lto_delete_in_decl_state): Likewise.
31758         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
31759         Collect.
31760
31761 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
31762
31763         PR target/42895
31764         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
31765         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
31766         (HONOR_REG_ALLOC_ORDER): Describe new macro.
31767         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
31768         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
31769         account only if HONOR_REG_ALLOC_ORDER is not defined.
31770         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
31771         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
31772
31773 2010-04-29  Jon Grant  <04@jguk.org>
31774
31775         * collect2.c (vflag): Change type from int to bool.
31776         (debug): Likewise.
31777         (helpflag): New global bool.
31778         (main): Set vflag and debug with boolean, not integer truth values.
31779         Accept new "--help" option and output usage text if found.
31780         * collect2.h (vflag): Update prototype.
31781         (debug): Likewise.
31782
31783 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
31784
31785         PR bootstrap/43936
31786         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
31787
31788 2010-04-29  Richard Guenther  <rguenther@suse.de>
31789
31790         PR bootstrap/43935
31791         * plugin.h (invoke_plugin_callbacks): Annotate arguments
31792         with ATTRIBUTE_UNUSED.
31793
31794 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
31795
31796         PR target/43921
31797         * config/i386/i386.c (get_some_local_dynamic_name): Replace
31798         INSN_P with NONDEBUG_INSN_P.
31799         (distance_non_agu_define): Likewise.
31800         (distance_agu_use): Likewise.
31801
31802 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
31803
31804         From Dominique d'Humieres  <dominiq@lps.ens.fr>
31805         PR bootstrap/43858
31806         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
31807         test_set.
31808
31809 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
31810
31811         * plugin.h (invoke_plugin_callbacks): New inline function.
31812         * plugin.c (flag_plugin_added): New global flag.
31813         (add_new_plugin): Initialize above flag.
31814         (invoke_plugin_callbacks): Rename to ...
31815         (invoke_plugin_callbacks_full): ... this.
31816
31817 2010-04-28  Jan Hubicka  <jh@suse.cz>
31818
31819         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
31820         (lto_varpool_replace_node): New.
31821         (lto_symtab_resolve_symbols): Resolve varpool nodes.
31822         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
31823         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
31824         * cgraph.h (varpool_node_ptr): New type.
31825         (varpool_node_ptr): New vector.
31826         (varpool_node_set_def): New structure.
31827         (varpool_node_set): New type.
31828         (varpool_node_set): New vector.
31829         (varpool_node_set_element_def): New structure.
31830         (varpool_node_set_element, const_varpool_node_set_element): New types.
31831         (varpool_node_set_iterator): New type.
31832         (varpool_node): Add prev pointers, add used_from_other_partition,
31833         in_other_partition.
31834         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
31835         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
31836         varpool_get_node, varpool_remove_node): Declare.
31837         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
31838         varpool_node_set_size): New inlines.
31839         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
31840         * tree-pass.h (varpool_node_set_def): Forward declare.
31841         (ipa_opt_pass_d): Summary writting takes vnode sets too.
31842         (ipa_write_optimization_summaries): Update prototype.
31843         * ipa-cp.c (ipcp_write_summary): Update.
31844         * ipa-reference.c (ipa_reference_write_summary): Update.
31845         * lto-cgraph.c (lto_output_varpool_node): New static function.
31846         (output_varpool): New function.
31847         (input_varpool_node): New static function.
31848         (input_varpool_1): New function.
31849         (input_cgraph): Input varpool.
31850         * ipa-pure-const.c (pure_const_write_summary): Update.
31851         * lto-streamer-out.c (lto_output): Update, output varpool too.
31852         (write_global_stream): Kill WPA hack.
31853         (produce_asm_for_decls): Update.
31854         (output_alias_pair_p): Handle variables.
31855         (output_unreferenced_globals): Output only needed partition of varpool.
31856         * ipa-inline.c (inline_write_summary): Update.
31857         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
31858         cgraph.
31859         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
31860         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
31861         varpool_node_set_new, varpool_node_set_add,
31862         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
31863         debug_varpool_node_set): New functions.
31864         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
31865         (execute_one_pass): Process new decls too.
31866         (ipa_write_summaries_2): Pass around vsets.
31867         (ipa_write_summaries_1): Likewise.
31868         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
31869         to add.
31870         (ipa_write_optimization_summaries_1): Pass around vsets.
31871         (ipa_write_optimization_summaries): Likewise.
31872         * varpool.c (varpool_get_node): New.
31873         (varpool_node): Update doubly linked lists.
31874         (varpool_remove_node): New.
31875         (dump_varpool_node): More dumping.
31876         (varpool_enqueue_needed_node): Update doubly linked lists.
31877         (decide_is_variable_needed): Kill ltrans hack.
31878         (varpool_finalize_decl): Kill lto hack.
31879         (varpool_assemble_decl): Skip decls in other partitions.
31880         (varpool_assemble_pending_decls): Update doubly linkes lists.
31881         (varpool_empty_needed_queue): Likewise.
31882         (varpool_extra_name_alias): Likewise.
31883         * lto-streamer.c (lto_get_section_name): Add vars section.
31884         * lto-streamer.h (lto_section_type): Update.
31885         (output_varpool, input_varpool): Declare.
31886
31887 2010-04-28  Mike Stump  <mikestump@comcast.net>
31888
31889         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
31890
31891 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31892
31893         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
31894         record or union type with RECORD_OR_UNION_TYPE_P predicate.
31895         (lto_input_ts_type_tree_pointers): Likewise.
31896         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
31897         (lto_output_ts_type_tree_pointers): Likewise.
31898
31899 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31900
31901         Uniquization of constants at the Tree level
31902         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
31903         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
31904         bit to the end.
31905         (tree_output_constant_def): Declare.
31906         * gimplify.c (gimplify_init_constructor): When using block copy, first
31907         uniquize the constant constructor on the RHS.
31908         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
31909         DECL_IN_CONSTANT_POOL flag.
31910         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
31911         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
31912         constant pool.
31913         (assemble_variable): Deal with symbols belonging to the tree constant
31914         pool.
31915         (get_constant_section): Add ALIGN parameter and simplify.
31916         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
31917         (assemble_constant_contents): Use the expression of the VAR_DECL.
31918         (output_constant_def_contents): Use the alignment of the VAR_DECL.
31919         (tree_output_constant_def): New global function.
31920         (mark_constant): Use the expression of the VAR_DECL.
31921         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
31922         its expression.
31923         (output_object_block): Likewise and assemble the expression.
31924
31925 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31926
31927         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
31928         hash_tree, eq_tree): New tree hash table.
31929         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
31930         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
31931         lto_orig_address_remove): Reimplement.
31932
31933 2010-04-28  Xinliang David Li  <davidxl@google.com>
31934
31935         PR c/42643
31936         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
31937         (compute_uninit_opnds_pos): New function.
31938         (is_non_loop_exit_postdominating): New function.
31939         (compute_control_dep_chain): New function.
31940         (find_pdom): New function.
31941         (convert_control_dep_chain_into_preds): New function.
31942         (find_predicates): New function.
31943         (find_control_equiv_block): New function.
31944         (collect_phi_def_edges): New function.
31945         (find_def_preds): New function.
31946         (find_dom): New function.
31947         (dump_predicates): New function.
31948         (get_cmp_code): New function.
31949         (is_value_included_in): New function.
31950         (find_matching_predicate_in_rest_chains): New function.
31951         (use_pred_not_overlap_with_undef_path_pred): New function.
31952         (is_use_properly_guarded): New function.
31953         (normalize_cond_1): New function.
31954         (is_and_or_or): New function.
31955         (normalize_cond): New function.
31956         (is_gcond_subset_of): New function.
31957         (is_subset_of_any): New function.
31958         (is_or_set_subset_of): New function.
31959         (is_and_set_subset_of): New function.
31960         (is_norm_cond_subset_of): New function.
31961         (is_pred_expr_subset_of): New function.
31962         (is_pred_chain_subset_of): New function.
31963         (is_included_in): New function.
31964         (is_superset_of): New function.
31965         (find_uninit_use): New function.
31966         (warn_uninitialized_phi): New function.
31967         (compute_possibly_undefined_names): New function.
31968         (ssa_undefined_value_p): New function.
31969         (execute_late_warn_uninitialized): New function.
31970         * tree-ssa.c (ssa_undefined_value_p): Removed.
31971         (warn_uninit): Changed to extern.
31972         (warn_uninitialized_phi): Removed.
31973         (warn_uninitialized_vars): Changed to extern.
31974         (execute_late_warn_uninitialized): Removed
31975         * tree-flow.h: Add new prototypes.
31976         * timevar.def: Add new time variable.
31977         * Makefile.in: Add new build file.
31978
31979 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
31980
31981         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
31982         type if available.
31983
31984 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31985
31986         PR target/22224
31987         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
31988
31989 2010-04-28  Martin Jambor  <mjambor@suse.cz>
31990
31991         * cgraph.h (struct cgraph_node): New field indirect_calls.
31992         (struct cgraph_indirect_call_info): New type.
31993         (struct cgraph_edge): Removed field indirect_call. New fields
31994         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
31995         (cgraph_create_indirect_edge): Declare.
31996         (cgraph_make_edge_direct): Likewise.
31997         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
31998         * ipa-prop.h (struct ipa_param_call_note): Removed.
31999         (struct ipa_node_params): Removed field param_calls.
32000         (ipa_create_all_structures_for_iinln): Declare.
32001         * cgraph.c: Described indirect edges and uids in initial comment.
32002         (cgraph_add_edge_to_call_site_hash): New function.
32003         (cgraph_edge): Search also among the indirect edges, use
32004         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
32005         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
32006         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
32007         site hash.
32008         (initialize_inline_failed): Assign a reason to indirect edges.
32009         (cgraph_create_edge_1): New function.
32010         (cgraph_create_edge): Moved some functionality to
32011         cgraph_create_edge_1.
32012         (cgraph_create_indirect_edge): New function.
32013         (cgraph_edge_remove_callee): Add an assert checking for
32014         non-indirectness.
32015         (cgraph_edge_remove_caller): Special-case indirect edges.
32016         (cgraph_remove_edge): Likewise.
32017         (cgraph_set_edge_callee): New function.
32018         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
32019         (cgraph_make_edge_direct): New function.
32020         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
32021         the declaration of the call statement matches.
32022         (cgraph_node_remove_callees): Special-case indirect edges.
32023         (cgraph_clone_edge): Likewise.
32024         (cgraph_clone_node): Clone also the indirect edges.
32025         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
32026         indirect_call, dump count of indirect_calls edges.
32027         * ipa-prop.c (iinlining_processed_edges): New variable.
32028         (ipa_note_param_call): Create indirect edges instead of
32029         creating notes.  New parameter node.
32030         (ipa_analyze_call_uses): New parameter node, pass it on to
32031         ipa_note_param_call.
32032         (ipa_analyze_stmt_uses): Likewise.
32033         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
32034         (print_edge_addition_message): Work on edges rather than on notes.
32035         (update_call_notes_after_inlining): Likewise, renamed to
32036         update_indirect_edges_after_inlining.
32037         (ipa_create_all_structures_for_iinln): New function.
32038         (ipa_free_node_params_substructures): Do not free notes.
32039         (ipa_edge_duplication_hook): Propagate bits within
32040         iinlining_processed_edges bitmap.
32041         (ipa_node_duplication_hook): Do not duplicate notes.
32042         (free_all_ipa_structures_after_ipa_cp): Renamed to
32043         ipa_free_all_structures_after_ipa_cp.
32044         (free_all_ipa_structures_after_iinln): Renamed to
32045         ipa_free_all_structures_after_iinln.
32046         (ipa_write_param_call_note): Removed.
32047         (ipa_read_param_call_note): Removed.
32048         (ipa_write_indirect_edge_info): New function.
32049         (ipa_read_indirect_edge_info): Likewise.
32050         (ipa_write_node_info): Do not stream notes, do stream information
32051         in indirect edges.
32052         (ipa_read_node_info): Likewise.
32053         (lto_ipa_fixup_call_notes): Removed.
32054         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
32055         * ipa-inline.c (pass_ipa_inline): Likewise.
32056         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
32057         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
32058         * tree-inline.c (copy_bb): Removed an unnecessary double check for
32059         is_gimple_call.
32060         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
32061         edges.
32062         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
32063         (output_cgraph): Stream also indirect edges.
32064         (lto_output_edge): Added capability to stream indirect edges.
32065         (input_edge): Likewise.
32066         (input_cgraph_1): Likewise.
32067         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
32068         of indirect edges.
32069
32070 2010-04-28  Richard Guenther  <rguenther@suse.de>
32071
32072         PR tree-optimization/43879
32073         PR tree-optimization/43909
32074         * tree-ssa-structalias.c (struct variable_info): Add
32075         only_restrict_pointers flag.
32076         (new_var_info): Initialize it.  Increment stats.total_vars here.
32077         (create_function_info_for): Do not increment stats.total_vars here.
32078         (get_function_part_constraint): Fix build with C++.
32079         (insert_into_field_list): Remove.
32080         (push_fields_onto_fieldstack): Properly merge fields.
32081         (create_variable_info_for): Split and simplify.
32082         (create_variable_info_for_1): New piece.
32083         (intra_create_variable_infos): Properly make restrict constraints
32084         from parameters.
32085
32086 2010-04-28  Richard Guenther  <rguenther@suse.de>
32087
32088         PR c++/43880
32089         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
32090
32091 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32092             Jan Hubicka  <hubicka@ucw.cz>
32093
32094         * doc/invoke.texi (-Wsuggest-attribute=const,
32095         -Wsuggest-attribute=pure): Document.
32096         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
32097         (function_always_visible_to_compiler_p,
32098         suggest_attribute, warn_function_pure, warn_function_const):
32099         New functions.
32100         (check_call): Improve debug info.
32101         (analyze_function): Do not check availability.
32102         (add_new_function): Check availability.
32103         (propagate): Output warnings.
32104         (skip_function_for_local_pure_const): New function.
32105         (local_pure_const): Use it; output warnings.
32106         * common.opt (Wsuggest-attribute=const,
32107         Wsuggest-attribute=pure): New.
32108
32109 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
32110
32111         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
32112         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
32113         or DW_CFA_def_cfa_offset{,_sf}.
32114
32115 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32116
32117         * tree.h: Fix truncated long macros.
32118
32119 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
32120
32121         * collect2.c (TARGET_64BIT): Redefine to target's default.
32122         * tlink.c: Likewise.
32123         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
32124         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
32125         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
32126         for underscoring __USER_LABEL_PREFIX__.
32127         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
32128         (SUB_LINK_ENTRY32): New.
32129         (SUB_LINK_ENTRY64): New.
32130         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
32131         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
32132         (SUB_LINK_ENTRY64): New.
32133         (SUB_LINK_ENTRY): New.
32134         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
32135         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
32136         x64 target is choosen.
32137         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
32138         * configure: Regenerated.
32139         * configure.ac (leading-mingw64-underscores): Option added.
32140
32141 2010-04-27  Jan Hubicka  <jh@suse.cz>
32142
32143         * doc/invoke.texi (-fipa-profile): Document.
32144         * opts.c (decode_options): Enable ipa-profile at -O1.
32145         * timevar.def (TV_IPA_PROFILE): Define.
32146         * common.opt (fipa-profile): Add.
32147         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
32148         flag for clones.
32149         (cgraph_propagate_frequency): Handle only local ones.
32150         * tree-pass.h (pass_ipa_profile): Declare.
32151         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
32152         (pass_ipa_profile): Use TV_IPA_PROFILE.
32153         * ipa.c (ipa_profile): New function.
32154         (gate_ipa_profile): Likewise.
32155         (pass_ipa_profile): New global variable.
32156         * passes.c (pass_ipa_profile): New.
32157
32158 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
32159
32160         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
32161
32162 2010-04-27  Martin Jambor  <mjambor@suse.cz>
32163
32164         PR middle-end/43812
32165         * ipa.c (dissolve_same_comdat_group_list): New function.
32166         (function_and_variable_visibility): Call
32167         dissolve_same_comdat_group_list when comdat group contains external or
32168         newly local nodes.
32169         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
32170         lists are circular and that they contain only DECL_ONE_ONLY nodes.
32171
32172 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32173
32174         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
32175         (const_hash_1) <VECTOR_CST>: New case.
32176         (compare_constant) <VECTOR_CST>: Likewise.
32177         <ADDR_EXPR>: Deal with LABEL_REFs.
32178         (copy_constant) <VECTOR_CST>: New case.
32179
32180 2010-04-27  Jan Hubicka  <jh@suse.cz>
32181
32182         * cgraph.c (cgraph_propagate_frequency): New function.
32183         * cgraph.h (cgraph_propagate_frequency): Declare.
32184         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
32185         cgraph_propagate_frequency.
32186
32187 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
32188
32189         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
32190
32191 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
32192
32193         PR target/40657
32194         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
32195         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
32196         here to determine which regs to push and how much stack to reserve.
32197
32198 2010-04-27  Jie Zhang  <jie@codesourcery.com>
32199
32200         * doc/gimple.texi (gimple_statement_with_ops): Remove
32201         addresses_taken field.
32202         (gimple_statement_with_memory_ops): Likewise.
32203
32204 2010-04-27  Jan Hubicka  <jh@suse.cz>
32205
32206         * tree-inline.c (eni_inlining_weights): Remove.
32207         (estimate_num_insns): Special case more builtins.
32208
32209 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
32210
32211         PR c/32207
32212         * c-typeck.c (build_binary_op): Move forward check for comparison
32213         pointer with null pointer constant and adjust the diagnostic message.
32214
32215 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
32216
32217         PR lto/42776
32218         * configure.ac (gcc_cv_as_section_has_align): Set if installed
32219         binutils supports extended .section directive needed by LTO, or
32220         warn if older binutils found.
32221         (LTO_BINARY_READER): New AC_SUBST'd variable.
32222         (LTO_USE_LIBELF): Likewise.
32223         * config.gcc (lto_binary_reader): New target-specific configure
32224         variable.
32225         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
32226         (LTO_USE_LIBELF): Likewise.
32227         * configure: Regenerate.
32228
32229         * collect2.c (is_elf): Rename from this ...
32230         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
32231          object files in addition to ELF-formatted ones.
32232         (scan_prog_file): Caller updated.  Also allow for LTO info marker
32233         symbol to be prefixed or not by an extra underscore.
32234
32235         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
32236         * config/i386/winnt.c: Also #include lto-streamer.h
32237         (i386_pe_asm_named_section): Specify 1-byte section alignment for
32238         LTO named sections.
32239         (i386_pe_asm_output_aligned_decl_common): Add comment.
32240         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
32241
32242 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
32243
32244         PR target/43889
32245         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
32246         Add missing earlyclobber for second alternative.
32247
32248 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
32249
32250         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
32251         bits for artificial defs at the top of the block.
32252         * fwprop.c (single_def_use_enter_block): Don't call it.
32253
32254 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
32255
32256         PR 43715
32257         * configure.ac: Use "$gcc_cv_nm -g" on darwin
32258         instead of "$gcc_cv_objdump -T".
32259         Use "-undefined dynamic_lookup" on darwin.
32260         * configure: Regenerate.
32261
32262 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
32263
32264         PR c/43893
32265         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
32266
32267 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
32268
32269         * c-parser.c (struct c_token): Move location field up.
32270         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
32271         (struct c_declspecs): Convert typespec_word, storage_class, and
32272         default_int_p into bitfields.
32273         (struct c_declarator): Move loc field up.
32274
32275 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
32276
32277         * cfgloop.h (struct loop): Move can_be_parallel field up.
32278         * ipa-prop.h (struct ip_node_params): Move bitfields up.
32279         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
32280         down.
32281         (struct iv_cand): Convert pos field into a bitfield.
32282         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
32283         field up.
32284         (struct _stmt_vec_info): Shuffle fields for better packing.
32285
32286 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
32287
32288         * varasm.c (IN_NAMED_SECTION): Remove guard.
32289         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
32290         (IN_NAMED_SECTION_P): ...this.
32291         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
32292         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
32293
32294 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
32295
32296         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
32297         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
32298         of shadowing it.  Fix comments.
32299
32300 2010-04-26  Jan Hubicka  <jh@suse.cz>
32301
32302         * cgraph.c (cgraph_create_node): Set node frequency to normal.
32303         (cgraph_clone_node): Copy function frequency.
32304         * cgraph.h (node_frequency): New enum
32305         (struct cgraph_node): Add.
32306         * final.c (rest_of_clean_state): Update.
32307         * lto-cgraph.c (lto_output_node): Output node frequency.
32308         (input_overwrite_node): Input node frequency.
32309         * tre-ssa-loop-ivopts (computation_cost): Update.
32310         * lto-streamer-out.c (output_function): Do not output function
32311         frequency.
32312         * predict.c (maybe_hot_frequency_p): Update and handle functions
32313         executed once.
32314         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
32315         attribute lookup.
32316         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
32317         (compute_function_frequency): Set noreturn functions to be executed
32318         once.
32319         (choose_function_section): Update.
32320         * lto-streamer-in.c (input_function): Do not input function frequency.
32321         * function.c (allocate_struct_function): Do not initialize function
32322         frequency.
32323         * function.h (function_frequency): Remove.
32324         (struct function): Remove function frequency.
32325         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
32326         (try_update): Update.
32327         * tree-inline.c (initialize_cfun): Do not update function frequency.
32328         * passes.c (pass_init_dump_file): Update.
32329         * i386.c (ix86_compute_frame_layout): Update.
32330         (ix86_pad_returns): Update.
32331
32332 2010-04-26  Jie Zhang  <jie@codesourcery.com>
32333
32334         PR tree-optimization/43833
32335         * tree-vrp.c (range_int_cst_p): New.
32336         (range_int_cst_singleton_p): New.
32337         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
32338         when both operands are constants.  Use range_int_cst_p in
32339         BIT_IOR_EXPR case.
32340
32341 2010-04-26  Jan Hubicka  <jh@suse.cz>
32342
32343         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
32344
32345 2010-04-26  Richard Guenther  <rguenther@suse.de>
32346
32347         PR lto/43080
32348         * gimple.c (gimple_decl_printable_name): Deal gracefully
32349         with a NULL DECL_NAME.
32350
32351 2010-04-26  Richard Guenther  <rguenther@suse.de>
32352
32353         PR lto/42425
32354         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
32355         if emitting debug information and it is either a function
32356         or a namespace decl.
32357
32358 2010-04-26  Ira Rosen  <irar@il.ibm.com>
32359
32360         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
32361         determine if the statement is vectorizable, and a macro to access it.
32362         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32363         Skip statements that can't be vectorized. If the analysis fails,
32364         mark the statement as unvectorizable if vectorizing basic block.
32365         (vect_compute_data_refs_alignment): Likewise.
32366         (vect_verify_datarefs_alignment): Skip statements marked as
32367         unvectorizable. Add print.
32368         (vect_analyze_group_access): Skip statements that can't be
32369         vectorized. If the analysis fails, mark the statement as
32370         unvectorizable if vectorizing basic block.
32371         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
32372         * tree-vect-stmts.c (vectorizable_store): Fix the number of
32373         generated stmts for SLP.
32374         (new_stmt_vec_info): Initialize the new field.
32375         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
32376         statements marked as unvectorizable.
32377
32378 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
32379
32380         * c-common.c (flag_isoc1x): New.
32381         (flag_isoc99): Update comment.
32382         * c-common.h (flag_isoc1x): New.
32383         (flag_isoc99): Update comment.
32384         * c-cppbuiltin.c (builtin_define_float_constants): Also define
32385         __<type>_DECIMAL_DIG__.
32386         * c-opts.c (set_std_c1x): New.
32387         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
32388         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
32389         * c.opt (-std=c1x, -std=gnu1x): New options.
32390         * doc/cpp.texi: Mention -std=c1x.
32391         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
32392         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
32393         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
32394         * doc/standards.texi: Mention C1X.
32395         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
32396         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
32397         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
32398         Define for C1X.
32399
32400 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
32401
32402         * config/i386/gmon-sol2.c (_mcleanup): Change format string
32403         placeholder from 0x%x to %#x.
32404         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
32405         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
32406         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
32407         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
32408         * config/i386/i386.c (ix86_target_string): Ditto.
32409         (output_pic_addr_const): Ditto.
32410         (print_operand): Ditto.
32411
32412 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
32413
32414         * combine.c (find_split_point): Add third argument.  Use it
32415         to find nested multiply-accumulate instructions.  Adjust calls.
32416         (try_combine): Adjust call to find_split_point.
32417
32418 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
32419
32420         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
32421
32422 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
32423
32424         PR tree-optimization/41442
32425         * fold-const.c (merge_truthop_with_opposite_arm): New function.
32426         (fold_binary_loc): Call it.
32427
32428 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32429
32430         * toplev.c (general_init): Set default for fdiagnostics-show-option.
32431         * opts.c (common_handle_option): Allow disabling it.
32432         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
32433
32434 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
32435
32436         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
32437         between modes if both types are integral.
32438
32439 2010-04-23  Richard Guenther  <rguenther@suse.de>
32440
32441         PR tree-optimization/43572
32442         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
32443
32444 2010-04-23  Richard Guenther  <rguenther@suse.de>
32445
32446         PR lto/43455
32447         * tree-inline.c (tree_can_inline_p): Also check compatibility
32448         of return types.
32449
32450 2010-04-23  Martin Jambor  <mjambor@suse.cz>
32451
32452         PR tree-optimization/43846
32453         * tree-sra.c (struct access): New flag grp_assignment_read.
32454         (build_accesses_from_assign): Set grp_assignment_read.
32455         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
32456         (enum mark_read_status): New type.
32457         (analyze_access_subtree): Propagate grp_assignment_read, create
32458         accesses also if both direct_read and root->grp_assignment_read.
32459
32460 2010-04-23  Martin Jambor  <mjambor@suse.cz>
32461
32462         PR middle-end/43835
32463         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
32464         function does not have type attributes.
32465
32466 2010-04-23  Richard Guenther  <rguenther@suse.de>
32467
32468         PR lto/42653
32469         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
32470         of FUNCTION_DECLs.
32471
32472 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
32473
32474         * sese.h (create_if_region_on_edge): Remove.
32475
32476         * sese.c (create_if_region_on_edge): Make static.
32477
32478         * tree-inline.c: Do not include ggc.h.
32479
32480         * expr.c: Do not include ggc.h.
32481
32482         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
32483         dependencies.
32484
32485 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
32486
32487         PR target/43744
32488         * config/sh/sh.c (find_barrier): Don't emit a constant pool
32489         in the middle of insns for casesi_worker_2.
32490
32491 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
32492
32493         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
32494
32495 2010-04-22  Ira Rosen  <irar@il.ibm.com>
32496
32497         PR tree-optimization/43842
32498         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
32499         loop unrolling in update of exit phis. Fix comment.
32500         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
32501         least two reduction statements in the loop before starting SLP
32502         analysis.
32503
32504 2010-04-22  Nick Clifton  <nickc@redhat.com>
32505
32506         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
32507
32508 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
32509
32510         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
32511         to simplify a + ~a.
32512
32513 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
32514
32515         * tree-parloops.c (loop_parallel_p): New argument
32516         parloop_obstack.  Pass it down.
32517         (parallelize_loops): New variable parloop_obstack.  Initialize it,
32518         pass it down, free it.
32519
32520         * tree-loop-linear.c (linear_transform_loops): Pass down
32521         lambda_obstack.
32522
32523         * tree-data-ref.h (lambda_compute_access_matrices): New argument
32524         of type struct obstack *.
32525
32526         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
32527         scratch_obstack.  Initialize it, pass down, free it.
32528
32529         * lambda.h (lambda_loop_new): Remove.
32530         (lambda_matrix_new, lambda_matrix_inverse)
32531         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
32532         argument of type struct obstack *.
32533
32534         * lambda-trans.c (lambda_trans_matrix_new): New argument
32535         lambda_obstack.  Pass it down, use obstack allocation for ret.
32536         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
32537         it down.
32538
32539         * lambda-mat.c (lambda_matrix_get_column)
32540         (lambda_matrix_project_to_null): Remove.
32541         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
32542         allocation for mat.
32543         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
32544         lambda_obstack.
32545
32546         * lambda-code.c (lambda_loop_new): New function.
32547         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
32548         (lambda_compute_auxillary_space, lambda_compute_target_space)
32549         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
32550         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
32551         (build_access_matrix): New argument lambda_obstack.  Use obstack
32552         allocation for am.
32553         (lambda_compute_step_signs, lambda_compute_access_matrices): New
32554         argument lambda_obstack.  Pass it down.
32555
32556 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
32557
32558         * optabs.h (expand_widening_mult): Declare.
32559
32560 2010-04-22  Richard Guenther  <rguenther@suse.de>
32561
32562         PR tree-optimization/43845
32563         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
32564         lookup the CALL_EXPR function and arguments.
32565
32566 2010-04-22  Nick Clifton  <nickc@redhat.com>
32567
32568         * config/stormy16/stormy16.c
32569         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
32570         * config/stormy16/stormy16.h: Tidy up formatting.
32571         (DONT_USE_BUILTIN_SETJMP): Remove definition.
32572         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
32573         (ineqbranchsi): Delete pattern.
32574         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
32575         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
32576         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
32577         stormy16-lib2-ucmpsi2.c.
32578
32579 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
32580
32581         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
32582         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
32583         extra set merge_set_noclobber, and use it to relax the final test
32584         slightly.
32585         * df.h (df_simulate_find_noclobber_defs): Declare.
32586         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
32587         conditional defs.
32588         (df_simulate_find_noclobber_defs): New function.
32589
32590 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
32591
32592         * config/i386/i386.md: Use {} around multi-line preparation statements.
32593
32594 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
32595
32596         * c-tree.h (push_init_level, pop_init_level, set_init_index)
32597         (process_init_element): New argument of type struct obstack *.
32598
32599         * c-typeck.c (push_init_level, pop_init_level, set_designator)
32600         (set_init_index, set_init_label, set_nonincremental_init)
32601         (set_nonincremental_init_from_string, find_init_member)
32602         (output_init_element, output_pending_init_elements)
32603         (process_init_element): New argument braced_init_obstack.  Pass it
32604         down.
32605         (push_range_stack, add_pending_init): New argument
32606         braced_init_obstack.  Use obstack allocation.
32607
32608         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
32609         braced_init_obstack.  Pass it down.
32610         (c_parser_braced_init): New variables ret, braced_init_obstack.
32611         Initialize obstack, pass it down and finally free it.
32612
32613 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
32614
32615         PR middle-end/29274
32616         * tree-pass.h (pass_optimize_widening_mul): Declare.
32617         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
32618         gate_optimize_widening_mul): New static functions.
32619         (pass_optimize_widening_mul): New.
32620         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
32621         <case MULT_EXPR>: Remove support for widening multiplies.
32622         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
32623         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
32624         simplify_gen_unary rather than directly building extensions.
32625         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
32626         WIDEN_MULT_EXPR.
32627         * expmed.c (expand_widening_mult): New function.
32628         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
32629
32630 2010-04-21  Jan Hubicka  <jh@suse.cz>
32631
32632         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
32633         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
32634         * lto-wpa-fixup.c: Remove.
32635         * Makefile.in (lto-wpa-fixup.o): Remove.
32636         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
32637         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
32638         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
32639
32640 2010-04-21  Jan Hubicka  <jh@suse.cz>
32641
32642         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
32643         add write_optimization_summary, read_optimization_summary.
32644         (ipa_write_summaries_of_cgraph_node_set): Remove.
32645         (ipa_write_optimization_summaries): Declare.
32646         (ipa_read_optimization_summaries): Declare.
32647         * ipa-cp.c (pass_ipa_cp): Update.
32648         * ipa-reference.c (pass_ipa_reference): Update.
32649         * ipa-pure-const.c (pass_ipa_pure_const): Update.
32650         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
32651         Update.
32652         * ipa-inline.c (pass_ipa_inline): Update.
32653         * ipa.c (pass_ipa_whole_program): Update.
32654         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
32655         * passes.c (ipa_write_summaries_1): Do not test wpa.
32656         (ipa_write_optimization_summaries_1): New.
32657         (ipa_write_optimization_summaries): New.
32658         (ipa_read_summaries): Do not test ltrans.
32659         (ipa_read_optimization_summaries_1): New.
32660         (ipa_read_optimization_summaries): New.
32661
32662 2010-04-21  Jan Hubicka  <jh@suse.cz>
32663
32664         * lto-cgraph.c (lto_output_node): Do not output comdat groups
32665         for boundary nodes.
32666         (output_cgraph): Do not arrange comdat groups for boundary nodes.
32667
32668 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32669
32670         PR debug/40040
32671         * dwarf2out.c (add_name_and_src_coords_attributes): Add
32672         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
32673
32674 2010-04-21  Jan Hubicka  <jh@suse.cz>
32675
32676         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
32677
32678 2010-04-21  Jan Hubicka  <jh@suse.cz>
32679
32680         * varpool.c (decide_is_variable_needed): Variable is always needed
32681         during ltrans.
32682
32683 2010-04-21  Jan Hubicka  <jh@suse.cz>
32684
32685         * opts.c (decode_options): Enable pure-const pass for whopr.
32686
32687 2010-04-21  Jan Hubicka  <jh@suse.cz>
32688
32689         * cgraph.c (dump_cgraph_node): Dump also assembler name.
32690         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
32691         at WPA dumping.
32692         (cgraph_decide_inlining): Do not expect callee to be removed in all
32693         cases.
32694
32695 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
32696
32697         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
32698
32699 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
32700
32701         * config/i386/i386.md (x86_shrd): Add athlon_decode and
32702         amdfam10_decode attributes.
32703
32704 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32705
32706         PR middle-end/43570
32707         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
32708         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
32709         (lower_copyprivate_clauses): Use private var in outer
32710         context instead of original var.  Make sure the types
32711         are correct for VLAs.
32712
32713 2010-04-21  Richard Guenther  <rguenther@suse.de>
32714
32715         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
32716         to non-pointer objects.
32717
32718 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32719
32720         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
32721         last chain entry if it starts with the still current label.
32722         (add_location_or_const_value_attribute): Check that
32723         loc_list->first->next is NULL instead of comparing ->first with ->last.
32724         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
32725         to add_var_loc_to_decl.
32726
32727         * dwarf2out.c (output_call_frame_info): For dw_cie_version
32728         >= 4 add also address size and segment size fields into CIE header.
32729
32730         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
32731         long as address size is the same as sizeof (void *) and
32732         segment size is 0.
32733         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
32734         address size or segment size is unexpected, return DW_EH_PE_omit.
32735         (classify_object_over_fdes): If get_cie_encoding returned
32736         DW_EH_PE_omit, return -1.
32737         (init_object): If classify_object_over_fdes returned -1,
32738         pretend there were no FDEs at all.
32739
32740 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
32741
32742         * config/i386/i386.md (bswap<mode>2): Macroize expander from
32743         bswap{si,di}2 using SWI48 mode iterator.
32744         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
32745         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
32746         set modrm attribute of bswap insn to 0 and remove length attribute.
32747         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
32748         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
32749         set mode attribute to <MODE> and remove length attribute.
32750
32751 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
32752
32753         PR rtl-optimization/43520
32754         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
32755         zero available registers.
32756
32757 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32758
32759         * builtins.c (fold_builtin_cproj): Fold more cases.
32760
32761 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32762
32763         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
32764         (fold_builtin_1): Fold builtin cproj.
32765         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
32766         Use ATTR_CONST_NOTHROW_LIST.
32767
32768 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
32769
32770         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
32771         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
32772         ffsi2_no_cmove for !TARGET_CMOVE.
32773         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
32774         (ffssi2): Remove expander.
32775         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
32776         mode iterator.
32777         (ctz<mode>2): Ditto from ctz{si,di}2.
32778         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
32779         mode iterator.
32780         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
32781         mode iterator.
32782
32783 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
32784
32785         * dwarf2out.c (AT_linkage_name): Define.
32786         (clone_as_declaration): Handle DW_AT_linkage_name.
32787         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
32788         of DW_AT_MIPS_linkage_name.
32789         (move_linkage_attr): Likewise.
32790         (dwarf2out_finish): Likewise.
32791
32792 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
32793
32794         PR middle-end/41952
32795         * fold-const.c (fold_comparison): New folding rule.
32796
32797 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
32798
32799         * double-int.h (double_int_setbit): Declare.
32800         * double-int.c (double_int_setbit): New function.
32801         * rtl.h (immed_double_int_const): Declare.
32802         * emit-rtl.c (immed_double_int_const): New function.
32803         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
32804         and immed_double_int_const functions.
32805         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
32806         expand_copysign_bit): (Ditto.).
32807         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
32808         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
32809         * dojump.c (prefer_and_bit_test): (Ditto.).
32810         * expr.c (convert_modes, reduce_to_bit_field_precision,
32811         const_vector_from_tree): (Ditto.).
32812         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32813
32814 2010-04-20  Jan Hubicka  <jh@suse.cz>
32815
32816         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
32817         (dump_cgraph_node): Dump new flags.
32818         * cgraph.h (struct cgraph_node): Add flags
32819         reachable_from_other_partition and in_other_partition.
32820         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
32821         other partition can not be removed.
32822         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
32823         the other partition must be output; silence sanity checking on
32824         leaking functions bodies from other paritition.
32825         * lto-cgraph.c (reachable_from_other_partition_p): New function.
32826         (lto_output_node): Output new flags; do not sanity check that inline
32827         clones are output; drop lto_forced_extern_inline_p code; do not mock
32828         visibility flags at partition boundaries.
32829         (add_node_to): New function.
32830         (output_cgraph): Use it to sort functions so masters appear before
32831         clones.
32832         (input_overwrite_node): Input new flags.
32833         * passes.c (ipa_write_summaries): Do not call
32834         lto_new_extern_inline_states.
32835         * lto-section-out.c (forced_extern_inline,
32836         lto_new_extern_inline_states lto_delete_extern_inline_states,
32837         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
32838         * lto-streamer.h (lto_new_extern_inline_states,
32839         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
32840         lto_forced_extern_inline_p): Kill.
32841
32842 2010-04-20  Richard Guenther  <rguenther@suse.de>
32843
32844         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
32845         from vars that can have pointers.
32846         (process_constraint): Dump useless constraints.
32847
32848 2010-04-20  Richard Guenther  <rguenther@suse.de>
32849
32850         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
32851         (dump_sa_points_to_info): Remove asserts.
32852         (init_base_vars): nothing_id isn't an escape point nor does it
32853         have pointers.
32854
32855 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
32856
32857         * tree.h (TYPE_REF_IS_RVALUE): Define.
32858         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
32859         should_move_die_to_comdat, prune_unused_types_walk): Handle
32860         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
32861         (modified_type_die, gen_reference_type_die): Emit
32862         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
32863         if TYPE_REF_IS_RVALUE and -gdwarf-4.
32864
32865 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32866
32867         PR target/43635
32868         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
32869         calls for -fpic -m31 if they have been sibcall optimized.
32870
32871 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
32872
32873         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
32874         ar.lc fixed and call-used.
32875
32876         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
32877
32878 2010-04-19  Jan Hubicka  <jh@suse.cz>
32879
32880         * opts.c (decode_options): Disable whpr incompatible passes.
32881         * lto/lto.c (lto_1_to_1_map): Skip clones.
32882         (read_cgraph_and_symbols): Do not mark everything as needed.
32883         (do_whole_program_analysis): Do map only after optimizing;
32884         set proper cgraph_state; use passmanager.
32885
32886 2010-04-19  DJ Delorie  <dj@redhat.com>
32887
32888         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
32889         POINTER_PLUS_EXPR and fix them.
32890
32891 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
32892
32893         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
32894         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
32895         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
32896         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
32897         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
32898         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
32899         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
32900         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
32901         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
32902         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
32903         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
32904
32905 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
32906
32907         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
32908         (check_cond_move_block): Likewise.
32909         (cond_move_process_if_block): Likewise.
32910         (noce_find_if_block): Improve formatting.
32911         (find_if_header): Pass 0 to memset and tweak conditions.
32912         (cond_exec_find_if_block): Fix long lines and tweak conditions.
32913
32914 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32915
32916         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
32917         for -gdwarf-4.
32918
32919         PR middle-end/43337
32920         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
32921         with non-local decl doesn't need chain.
32922
32923 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32924
32925         * ira-color.c (allocno_reload_assign): Avoid accumulating
32926         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
32927
32928 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32929
32930         * gimple.h (create_tmp_reg): Declare.
32931         * gimplify.c (create_tmp_reg): New function.
32932         (gimplify_return_expr): Use create_tmp_reg.
32933         (gimplify_omp_atomic): Likewise.
32934         (gimple_regimplify_operands): Likewise.
32935         * tree-dfa.c (make_rename_temp): Likewise.
32936         * tree-predcom.c (predcom_tmp_var): Likewise.
32937         (reassociate_to_the_same_stmt): Likewise.
32938         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
32939         (get_replaced_param_substitute): Likewise.
32940         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
32941         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
32942         * tree-ssa-pre.c (get_representative_for): Likewise.
32943         (create_expression_by_pieces): Likewise.
32944         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
32945         (create_tailcall_accumulator): Likewise.
32946
32947 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32948
32949         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
32950         new_stmt.
32951         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
32952
32953 2010-04-19  Richard Guenther  <rguenther@suse.de>
32954
32955         PR tree-optimization/43796
32956         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
32957         from SCEV in the lattice.
32958         (vrp_visit_phi_node): Dump change.
32959
32960 2010-04-19  Richard Guenther  <rguenther@suse.de>
32961
32962         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
32963         * configure: Re-generated.
32964
32965 2010-04-19  Richard Guenther  <rguenther@suse.de>
32966
32967         PR tree-optimization/43783
32968         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
32969         constant ARRAY_REF operands two and three if possible.
32970
32971 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
32972
32973         PR target/43766
32974         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
32975
32976 2010-04-19  Jie Zhang  <jie@codesourcery.com>
32977
32978         PR target/43662
32979         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
32980
32981 2010-04-19  Ira Rosen  <irar@il.ibm.com>
32982
32983         PR tree-optimization/37027
32984         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
32985         and macro to access it.
32986         (vectorizable_reduction): Add argument.
32987         (vect_get_slp_defs): Likewise.
32988         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
32989         statements for possible use in SLP.
32990         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
32991         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
32992         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
32993         add new argument.
32994         (vectorizable_reduction): Likewise.
32995         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
32996         vect_get_slp_defs.
32997         (vectorizable_type_demotion, vectorizable_type_promotion,
32998         vectorizable_store): Likewise.
32999         (vect_analyze_stmt): Update call to vectorizable_reduction.
33000         (vect_transform_stmt): Likewise.
33001         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
33002         (vect_build_slp_tree): Fix indentation. Check that there are no loads
33003         from different interleaving chains in same node.
33004         (vect_slp_rearrange_stmts): New function.
33005         (vect_supported_load_permutation_p): Allow load permutations for
33006         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
33007         inside SLP nodes if necessary.
33008         (vect_analyze_slp_instance): Handle reductions.
33009         (vect_analyze_slp): Try to build SLP instances originating from groups
33010         of reductions.
33011         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
33012         (vect_get_constant_vectors): Create initial vectors for reductions
33013         according to reduction code. Add new argument.
33014         (vect_get_slp_defs): Add new argument, pass it to
33015         vect_get_constant_vectors.
33016         (vect_schedule_slp_instance): Remove SLP tree root statements.
33017
33018 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
33019
33020         * tree.h (ENUM_IS_SCOPED): Define.
33021         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
33022         for ENUM_IS_SCOPED enums.
33023
33024 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
33025
33026         * fold-const.c (fold_comparison): Use ssizetype.
33027         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
33028         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
33029         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
33030         * tree-object-size.c (compute_object_sizes): Use size_type_node.
33031
33032         * tree.h (initialize_sizetypes): Remove parameter.
33033         (build_common_tree_nodes): Remove second parameter.
33034         * stor-layout.c (initialize_sizetypes): Remove parameter.
33035         Always create an unsigned type.
33036         (set_sizetype): Assert that the passed type is unsigned and simplify.
33037         * tree.c (build_common_tree_nodes): Remove second parameter.
33038         Adjust call to initialize_sizetypes.
33039         * c-decl.c (c_init_decl_processing): Remove second argument in call to
33040         build_common_tree_nodes.
33041
33042 2010-04-18  Matthias Klose  <doko@ubuntu.com>
33043
33044         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
33045
33046 2010-04-18  Ira Rosen  <irar@il.ibm.com>
33047
33048         PR tree-optimization/43771
33049         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
33050         load permutation doesn't have gaps.
33051
33052 2010-04-18  Jan Hubicka  <jh@suse.cz>
33053
33054         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
33055         (sse_prologue_save_insn expander): Use new pattern.
33056         (sse_prologue_save_insn1): New pattern and splitter.
33057         (sse_prologue_save_insn): Update to deal also with 64bit aligned
33058         blocks.
33059         * i386.c (setup_incoming_varargs_64): Do not compute jump
33060         destination here.
33061         (ix86_gimplify_va_arg): Update alignment needed.
33062         (ix86_local_alignment): Do not align all local arrays to 128bit.
33063
33064 2010-04-17  Jan Hubicka  <jh@suse.cz>
33065
33066         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
33067
33068 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
33069
33070         * arm.md (negdi2): Remove redundant code to force values into a
33071         register.
33072
33073 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
33074
33075         * arm/bpabi.S: Add EABI alignment attributes to objects.
33076         * arm/bpabi-v6m.S: Likewise.
33077         * arm/crti.asm: Likewise.
33078         * arm/crtn.asm: Likewise.
33079         * arm/lib1funcs.asm: Likewise.
33080         * arm/libunwind.S: Likewise.
33081
33082 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
33083
33084         * arm-protos.h (tune_params): New structure.
33085         * arm.c (current_tune): New variable.
33086         (arm_constant_limit): Delete.
33087         (struct processors): Add pointer to the tune parameters.
33088         (arm_slowmul_tune): New tuning option.
33089         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
33090         (all_cores): Adjust to pick up the tuning model.
33091         (arm_constant_limit): New function.
33092         (arm_override_options): Select the appropriate tuning model.  Delete
33093         initialization of arm_const_limit.
33094         (arm_split_constant): Use the new constant-limit model.
33095         (arm_rtx_costs): Pick up the current tuning model.
33096         * arm.md (is_strongarm, is_xscale): Delete.
33097         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
33098         for Xscale variant architectures.
33099         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
33100
33101 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33102
33103         * config/arm/arm.c (arm_gen_constant): Remove unused variable
33104         can_shift.
33105         (arm_rtx_costs_1): Remove unused variable extra_cost.
33106         (arm_unwind_emit_set): Use variable offset.
33107         (thumb1_output_casesi): Remove unused variable flags.
33108
33109 2010-04-16  Jeff Law  <law@redhat.com>
33110
33111         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
33112         needing assignment rather than doing a two-phase assignment.  Remove
33113         unused variable 'm'.
33114
33115 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
33116
33117         PR bootstrap/43767
33118         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
33119
33120 2010-04-16  Doug Kwan  <dougkwan@google.com>
33121
33122         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
33123         (next_operand_entry_id): New static variable.
33124         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
33125         (add_to_ops_vec): Assigned unique ID to operand entry.
33126         (struct oecount_s): New field ID.
33127         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
33128         (undistribute_ops_list): Assign unique IDs to oecounts.
33129         (init_reassoc): reset next_operand_entry_id.
33130
33131 2010-04-16  Doug Kwan  <dougkwan@google.com>
33132
33133         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
33134         missing left parenthesis.
33135
33136 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
33137
33138         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
33139         *btdi_rex64 using SWI48 mode iterator.
33140         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
33141         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
33142         *jcc_btdi_mask_rex64.
33143
33144 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
33145
33146         * double-int.h (tree_to_double_int): Convert to macro.
33147         * double-int.c (tree_to_double_int): Remove.
33148
33149 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
33150
33151         PR debug/43762
33152         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
33153         with want_address 2 and in case a single element list might be
33154         possible, call it again with want_address 0.
33155
33156 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33157
33158         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
33159         case 'W' print operands for HI mode.
33160         * config/h8300/h8300.h (Y0, Y2) : New constraints.
33161         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
33162         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
33163         * config/h8300/predicate.md (bit_register_indirect_operand): New.
33164
33165         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
33166
33167         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
33168         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
33169         #xx:3 and #xx:4 mode.
33170
33171         * config/h8300/h8300.md (inverted load with HImode dest): Add
33172         support for H8300SX.
33173
33174         * config/h8300/predicate.md (bit_operand): Allow immediate values that
33175         satisfy 'U' constraint.
33176
33177 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33178
33179         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
33180         * configure: Regenerate.
33181         * config.in: Regenerate.
33182         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
33183         works.
33184
33185 2010-04-16  Richard Guenther  <rguenther@suse.de>
33186
33187         * tree.h (struct tree_decl_minimal): Move pt_uid ...
33188         (struct tree_decl_common): ... here.
33189         (DECL_PT_UID): Adjust.
33190         (SET_DECL_PT_UID): Likewise.
33191         (DECL_PT_UID_SET_P): Likewise.
33192
33193 2010-04-16  Richard Guenther  <rguenther@suse.de>
33194
33195         PR tree-optimization/43572
33196         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
33197         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
33198         * tree-flow.h (is_call_clobbered): Remove.
33199         * tree-flow-inline.h (is_call_clobbered): Likewise.
33200         * tree-dfa.c (dump_variable): Do not dump call clobber state.
33201         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
33202         (execute_return_slot_opt): Adjust.
33203         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
33204         check for call clobbered vars here.
33205         (find_tail_calls): Move tailcall verification to the
33206         proper place.
33207
33208 2010-04-16  Diego Novillo  <dnovillo@google.com>
33209
33210         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
33211
33212 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
33213
33214         PR target/40603
33215         * config/arm/arm.md (cbranchqi4): New pattern.
33216         * config/arm/predicates.md (const0_operand,
33217         cbranchqi4_comparison_operator): New predicates.
33218
33219 2010-04-16  Richard Guenther  <rguenther@suse.de>
33220
33221         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
33222         (dump_gimple_stmt): Likewise.
33223
33224 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
33225
33226         * recog.h (struct recog_data): New field is_operator.
33227         (struct insn_operand_data): New field is_operator.
33228         * recog.c (extract_insn): Set recog_data.is_operator.
33229         * genoutput.c (output_operand_data): Emit code to set the
33230         is_operator field.
33231         * reload.c (find_reloads): Use it rather than testing for an
33232         empty constraint string.
33233
33234         PR target/41514
33235         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
33236         If the previous insn is a cbranchsi4_insn with the same arguments,
33237         omit the compare instruction.
33238
33239         * config/arm/arm.md (addsi3_cbranch): If destination is a high
33240         register, inputs must be low registers and we need a low register
33241         scratch.  Handle alternative 2 like alternative 3.
33242
33243 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
33244
33245         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
33246         don't call get_addr on both.  If one expression is a VALUE and
33247         the other a REG, check VALUE's locs if the REG isn't among them.
33248
33249 2010-04-16  Christian Bruel  <christian.bruel@st.com>
33250
33251         * config/sh/sh.h (sh_frame_pointer_required): New function.
33252         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
33253         (flag_omit_frame_pointer) Set.
33254         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
33255         (rounded_frame_size): Adjust size with outgoing_args_size.
33256         (sh_set_return_address): Must return from stack pointer.
33257         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
33258         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
33259         (ACCUMULATE_OUTGOING_ARGS): Define.
33260         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
33261         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
33262
33263 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
33264
33265         PR target/43471
33266         * config/sh/sh.c (sh_legitimize_reload_address): Use
33267         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
33268         Remove a unneeded check for offset_base.
33269
33270 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
33271
33272         * configure: Regenerated.
33273
33274 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33275
33276         * config/s390/s390.c (s390_call_save_register_used): Switch back
33277         to HARD_REGNO_NREGS.
33278
33279 2010-04-15  Richard Guenther  <rguenther@suse.de>
33280
33281         * alias.c (alias_set_subset_of): Handle alias-set zero
33282         child properly.
33283
33284 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
33285             Julian Brown  <julian@codesourcery.com>
33286
33287         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
33288         alternatives according to use of high and low regs.
33289         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
33290         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
33291         optimizing for size on Thumb-2.
33292
33293 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
33294
33295         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
33296
33297 2010-04-15  Richard Guenther  <rguenther@suse.de>
33298
33299         * tree-ssa-structalias.c (struct variable_info): Add
33300         is_fn_info flag.
33301         (new_var_info): Initialize it.
33302         (dump_constraints): Support printing last added constraints.
33303         (debug_constraints): Adjust.
33304         (dump_constraint_graph): Likewise.
33305         (make_heapvar_for): Check for NULL cfun.
33306         (get_function_part_constraint): New function.
33307         (get_fi_for_callee): Likewise.
33308         (find_func_aliases): Properly implement IPA PTA constraints.
33309         (process_ipa_clobber): New function.
33310         (find_func_clobbers): Likewise.
33311         (insert_into_field_list_sorted): Remove.
33312         (create_function_info_for): Properly allocate vars for IPA mode.
33313         Do not use insert_into_field_list_sorted.
33314         (create_variable_info_for): Properly generate constraints for
33315         global vars in IPA mode.
33316         (dump_solution_for_var): Always dump the solution.
33317         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
33318         (find_what_var_points_to): Adjust.
33319         (pt_solution_set): Change.
33320         (pt_solution_ior_into): New function.
33321         (pt_solution_empty_p): Export.
33322         (pt_solution_includes_global): Adjust.
33323         (pt_solution_includes_1): Likewise.
33324         (pt_solutions_intersect_1): Likewise.
33325         (dump_sa_points_to_info): Check some invariants.
33326         (solve_constraints): Move constraint dumping ...
33327         (compute_points_to_sets): ... here.
33328         (ipa_pta_execute): ... and here.
33329         (compute_may_aliases): Do not re-compute points-to info
33330         locally if IPA info is available.
33331         (ipa_escaped_pt): New global var.
33332         (ipa_pta_execute): Properly implement IPA PTA.
33333         * tree-into-ssa.c (dump_decl_set): Support dumping
33334         decls not in referenced-vars.
33335         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
33336         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
33337         (dump_points_to_solution): Likewise.
33338         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
33339         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
33340         (remap_gimple_stmt): Reset call clobber/use information if necessary.
33341         (copy_decl_to_var): Copy DECL_PT_UID.
33342         (copy_result_decl_to_var): Likewise.
33343         * tree.c (make_node_stat): Initialize DECL_PT_UID.
33344         (copy_node_stat): Copy it.
33345         * tree.h (DECL_PT_UID): New macro.
33346         (SET_DECL_PT_UID): Likewise.
33347         (DECL_PT_UID_SET_P): Likewise.
33348         (struct tree_decl_minimal): Add pt_uid member.
33349         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
33350         (pt_solution_empty_p): Declare.
33351         (pt_solution_set): Adjust.
33352         (ipa_escaped_pt): Declare.
33353         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
33354         * gimple-pretty-print.c (pp_points_to_solution): New function.
33355         (dump_gimple_call): Dump call clobber/use information.
33356         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
33357         * tree-pass.h (TDF_ALIAS): New dump option.
33358         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
33359         * doc/invoke.texi (-fipa-pta): Update documentation.
33360
33361 2010-04-15  Richard Guenther  <rguenther@suse.de>
33362
33363         * Makefile.in (OBJS-common): Add gimple-fold.o.
33364         (gimple-fold.o): New rule.
33365         * tree.h (maybe_fold_offset_to_reference,
33366         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
33367         prototypes ...
33368         * gimple.h: ... here.
33369         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
33370         may_propagate_address_into_dereference): Move prototypes ...
33371         * gimple.h: ... here.
33372         * tree-ssa-ccp.c (get_symbol_constant_value,
33373         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
33374         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
33375         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
33376         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
33377         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
33378         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
33379         gimplify_and_update_call_from_tree): Move ...
33380         * gimple-fold.c: ... here.  New file.
33381         (ccp_fold_builtin): Rename to ...
33382         (gimple_fold_builtin): ... this.
33383         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
33384
33385 2010-04-15  Richard Guenther  <rguenther@suse.de>
33386
33387         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
33388         fit_double_type, force_fit_type_double, add_double_with_sign,
33389         neg_double, mul_double_with_sign, lshift_double, rshift_double,
33390         lrotate_double, rrotate_double, div_and_round_double): Move ...
33391         * double-int.c: ... here.
33392         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
33393         add_double, neg_double, mul_double_with_sign, mul_double,
33394         lshift_double, rshift_double, lrotate_double, rrotate_double,
33395         div_and_round_double): Move prototypes ...
33396         * double-int.h: ... here.
33397
33398 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
33399
33400         PR target/43742
33401         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
33402         matching constraints to ensure inputs match the output.
33403
33404 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
33405
33406         PR target/43742
33407         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
33408         in an input-only operand.
33409
33410 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
33411
33412         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
33413         (double_int_not, double_int_lshift, double_int_rshift): Declare.
33414         (double_int_negative_p): Convert to static inline function.
33415         * double-int.c (double_int_lshift, double_int_lshift): New functions.
33416         (double_int_negative_p): Remove.
33417         * tree.h (lshift_double, rshift_double):
33418         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
33419         * fold-const.c (fold_convert_const_int_from_real,
33420         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
33421         (lshift_double): Change type of arith argument to bool.
33422         (rshift_double): Change type of arith argument to bool. Correct
33423         comment.
33424         * expmed.c (mask_rtx, lshift_value): (Ditto.).
33425
33426 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
33427
33428         PR target/21803
33429         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
33430         at the start and end of the then/else blocks, and omit them from the
33431         conversion.
33432         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
33433         argument; all callers changed.  Pass zero to old_insns_match_p instead.
33434         (flow_find_head_matching_sequence): New function.
33435         (old_insns_match_p): Check REG_EH_REGION notes for calls.
33436         * basic-block.h (flow_find_cross_jump,
33437         flow_find_head_matching_sequence): Declare functions.
33438
33439 2010-04-14  Jason Merrill  <jason@redhat.com>
33440
33441         PR c++/36625
33442         * c-common.c (attribute_takes_identifier_p): New fn.
33443         * c-common.h: Declare it.
33444
33445 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
33446
33447         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
33448         splitter condition.
33449         (*udivmod<mode>4): Ditto.
33450
33451 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
33452
33453         * config/i386/i386.md (maxmin_int): Rename code attribute from
33454         maxminiprefix and update all users.
33455         (maxmin_float): Ditto from maxminfprefix.
33456         (logic): Ditto from logicprefix.
33457         (absneg_mnemonic): Ditto from absnegprefix.
33458         * config/i386/mmx.md: Update all users of maxminiprefix,
33459         maxminfprefix and logicprefix for rename.
33460         * config/i386/sse.md: Ditto.
33461         * config/i386/sync.md (sync_<code><mode>): Update for
33462         logicprefix rename.
33463
33464 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33465
33466         PR 42966
33467         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
33468         warnings converted to errors.
33469
33470 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
33471
33472         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
33473         used insn_type variable.
33474         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
33475         to avoid set-but-not-used warning.
33476
33477 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
33478
33479         * df-core.c (df_ref_debug): Change format string placeholder
33480         from 0x%x to %#x.
33481         * dwarf2asm.c (dw2_asm_output_data_raw,
33482         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
33483         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
33484         * dwarf2out.c (output_cfi, output_cfi_directive,
33485         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
33486         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
33487         Ditto.
33488         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
33489         * print-rtl.c (print_rtx): Ditto.
33490
33491 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
33492
33493         PR middle-end/42694
33494         * builtins.c (expand_builtin_pow_root): New function to expand pow
33495         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
33496         series of sqrt and cbrt calls under -ffast-math.
33497         (expand_builtin_pow): Call it.
33498
33499 2010-04-14  Michael Matz  <matz@suse.de>
33500
33501         PR tree-optimization/42963
33502         * tree-cfg.c (touched_switch_bbs): New static variable.
33503         (group_case_labels_stmt): New function broken out from ...
33504         (group_case_labels): ... here, use the above.
33505         (start_recording_case_labels): Allocate touched_switch_bbs.
33506         (end_recording_case_labels): Deallocate it, call
33507         group_case_labels_stmt.
33508         (gimple_redirect_edge_and_branch): Remember index of affected BB.
33509
33510 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
33511
33512         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
33513         from insn template.
33514
33515 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
33516
33517         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
33518
33519 2010-04-13  Jan Hubicka  <jh@suse.cz>
33520
33521         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
33522         of optimized out static functions.
33523         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
33524         cost computation.  Also sanity check for overflows.
33525         (update_caller_keys): Update cgraph_edge_badness call; properly
33526         update fibheap and sanity check that it is up to date.
33527         (add_new_edges_to_heap): Update cgraph_edge_badness.
33528         (cgraph_decide_inlining_of_small_function): Likewise;
33529         add sanity checking that badness in heap is up to date;
33530         improve dumping of reason; Update badness of calls to the
33531         offline copy of function currently inlined; dump badness
33532         of functions not inlined because of unit growth limits.
33533
33534 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
33535
33536         PR middle-end/32628
33537         * c-common.c (pointer_int_sum): Disregard overflow that occured only
33538         because of sign-extension change when converting to sizetype here...
33539         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
33540
33541         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
33542         the folding to constants.  Remove redundant final conversion.
33543         (fold_binary) <associate>: Do not associate if the re-association of
33544         constants alone overflows.
33545         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
33546         to the end of the list.
33547         (multiple_of_p) <COND_EXPR>: New case.
33548
33549 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33550
33551         * opt-functions.awk (opt_sanitized_name): New.
33552         (opt_enum): New.
33553         * optc-gen.awk: Use it
33554         * opth-gen.awk: Use it.
33555
33556 2010-04-13  Martin Jambor  <mjambor@suse.cz>
33557
33558         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
33559         (sra_modify_assign): Delete stmts loading dead data even if racc has no
33560         children.  Call replace_uses_with_default_def_ssa_name to handle
33561         SSA_NAES on lhs.
33562
33563 2010-04-13  Michael Matz  <matz@suse.de>
33564
33565         PR middle-end/43730
33566         * builtins.c (expand_builtin_interclass_mathfn): Also create
33567         a register if the predicate doesn't match.
33568
33569 2010-04-13  Diego Novillo  <dnovillo@google.com>
33570
33571         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
33572         * c-pch.c: Include timevar.h.
33573         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
33574         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
33575         * ggc-common.c: Include timevar.h.
33576         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
33577         * timevar.def (TV_PCH_SAVE): Define.
33578         (TV_PCH_CPP_SAVE): Define.
33579         (TV_PCH_PTR_REALLOC): Define.
33580         (TV_PCH_PTR_SORT): Define.
33581         (TV_PCH_RESTORE): Define.
33582         (TV_PCH_CPP_RESTORE): Define.
33583
33584 2010-04-13  Michael Matz  <matz@suse.de>
33585
33586         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
33587         into MINUS_EXPRs.
33588         (can_reassociate_p): New function.
33589         (break_up_subtract_bb, reassociate_bb): Use it.
33590
33591 2010-04-13  Richard Guenther  <rguenther@suse.de>
33592
33593         PR bootstrap/43737
33594         * builtins.c (c_readstr): Fix assert.
33595
33596 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
33597
33598         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
33599         when generating cltd insn.
33600
33601         (*ashl<mode>3_1): Remove special handling for register operand 2.
33602         (*ashlsi3_1_zext): Ditto.
33603         (*ashlhi3_1): Ditto.
33604         (*ashlhi3_1_lea): Ditto.
33605         (*ashlqi3_1): Ditto.
33606         (*ashlqi3_1_lea): Ditto.
33607         (*<shiftrt_insn><mode>3_1): Ditto.
33608         (*<shiftrt_insn>si3_1_zext): Ditto.
33609         (*<shiftrt_insn>qi3_1_slp): Ditto.
33610         (*<rotate_insn><mode>3_1): Ditto.
33611         (*<rotate_insn>si3_1_zext): Ditto.
33612         (*<rotate_insn>qi3_1_slp): Ditto.
33613
33614 2010-04-13  Richard Guenther  <rguenther@suse.de>
33615
33616         * tree-ssa-structalias.c (callused_id): Remove.
33617         (call_stmt_vars): New.
33618         (get_call_vi): Likewise.
33619         (lookup_call_use_vi): Likewise.
33620         (lookup_call_clobber_vi): Likewise.
33621         (get_call_use_vi): Likewise.
33622         (get_call_clobber_vi): Likewise.
33623         (make_transitive_closure_constraints): Likewise.
33624         (handle_const_call): Adjust to do per-call call-used handling.
33625         (handle_pure_call): Likewise.
33626         (find_what_var_points_to): Remove general callused handling.
33627         (init_base_vars): Likewise.
33628         (init_alias_vars): Initialize call_stmt_vars.
33629         (compute_points_to_sets): Process call-used and call-clobbered
33630         vars for call statements.
33631         (delete_points_to_sets): Free call_stmt_vars.
33632
33633 2010-04-13  Richard Guenther  <rguenther@suse.de>
33634
33635         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33636         Only add RW dependence for dependence distance zero.
33637         Adjust maximal vectorization factor according to dependences.
33638         Move alignment handling ...
33639         (vect_find_same_alignment_drs): ... here.  New function.
33640         (vect_analyze_data_ref_dependences): Adjust.
33641         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
33642         (vect_analyze_data_refs): Adjust minimal vectorization factor
33643         according to data references.
33644         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
33645         dependences before determining the vectorization factor.
33646         Analyze alignment after determining the vectorization factor.
33647         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
33648         dependences before alignment.
33649         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
33650         Adjust prototype.
33651         (vect_analyze_data_refs): Likewise.
33652         (MAX_VECTORIZATION_FACTOR): New define.
33653
33654 2010-04-13  Duncan Sands  <baldrick@free.fr>
33655
33656         * except.h (lang_eh_type_covers): Remove.
33657         * except.c (lang_eh_type_covers): Likewise.
33658
33659 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33660             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33661
33662         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
33663         * config/s390/s390.c: Replace UNTIS_PER_WORD with
33664         UNITS_PER_LONG where it is ABI relevant.
33665         (s390_return_addr_rtx): Likewise.
33666         (s390_back_chain_rtx): Likewise.
33667         (s390_frame_area): Likewise.
33668         (s390_frame_info): Likewise.
33669         (s390_initial_elimination_offset): Likewise.
33670         (save_gprs): Likewise.
33671         (s390_emit_prologue): Likewise.
33672         (s390_emit_epilogue): Likewise.
33673         (s390_function_arg_advance): Likewise.
33674         (s390_function_arg): Likewise.
33675         (s390_va_start): Likewise.
33676         (s390_gimplify_va_arg): Likewise.
33677         (s390_function_profiler): Likewise.
33678         (s390_optimize_prologue): Likewise.
33679         (s390_rtx_costs): Likewise.
33680         (s390_secondary_reload): Likewise.
33681         (s390_promote_function_mode): Likewise.
33682         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
33683         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
33684         registers available.
33685         (s390_unwind_word_mode): New function.
33686         (s390_function_value): Split 64 bit values into register pair if
33687         used as return value.
33688         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
33689         function call parameters.  Handle parallels.
33690         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
33691         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
33692         (DWARF_CIE_DATA_ALIGNMENT): New macro.
33693         (s390_expand_setmem): Remove unused variable src_addr.
33694         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
33695         deal with 64 bit registers.
33696         * config/s390/s390.h: Define __zarch__ predefined macro.
33697         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
33698         (UNITS_PER_LONG): New macro.
33699         * libjava/include/s390-signal.h: Define extended ucontext
33700         structure containing the upper halfs of the 64 bit registers.
33701
33702 2010-04-13  Simon Baldwin  <simonb@google.com>
33703
33704         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
33705
33706 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
33707
33708         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
33709         rvalue on the RHS if the LHS is of a non-renamable type.
33710         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
33711
33712 2010-04-13  Matthias Klose  <doko@ubuntu.com>
33713
33714         * gcc.c (cc1_options): Handle -iplugindir before processing
33715         the cc1 spec. Only add -iplugindir once.
33716         (cpp_unique_options): Add -iplugindir option if -fplugin* options
33717         found.
33718         * common.opt (iplugindir): Remove `Separate' property, initialize.
33719         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
33720         option.
33721         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
33722         (distclean): Remove plugin dir.
33723         * doc/invoke.texi: Document -iplugindir.
33724
33725 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
33726
33727         * doc/plugins.texi (Loading Plugins): Document short
33728         -fplugin=foo option.
33729         (Plugin API): Mention default_plugin_dir_name function.
33730
33731         * gcc.c (find_file_spec_function): Add new declaration.
33732         (static_spec_func): Use it for "find-file".
33733         (find_file_spec_function): Add new function.
33734         (cc1_options): Add -iplugindir option if -fplugin* options found.
33735
33736         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
33737
33738         * plugin.c (add_new_plugin): Updated comment, and handle short
33739         plugin name.
33740         (default_plugin_dir_name): Added new function.
33741
33742         * common.opt (iplugindir): New option to set the plugin directory.
33743
33744 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
33745
33746         * config/i386/i386.md (any_rotate): New code iterator.
33747         (rotate_insn): New code attribute.
33748         (rotate): Ditto.
33749         (SWIM124): New mode iterator.
33750         (<rotate_insn>ti3): New expander.
33751         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
33752         any_rotate code iterator.
33753         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
33754         using any_rotate code iterator and SWIM124 mode iterator.
33755         (ix86_rotlti3): New insn_and_split pattern.
33756         (ix86_rotrti3): Ditto.
33757         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
33758         ix86_rotl{di,ti}3 patterns.
33759         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
33760         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
33761         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
33762         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
33763         code iterator and SWI mode iterator.
33764         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
33765         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
33766         code iterator.
33767         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
33768         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
33769         (bswap rotatert splitter): Add splitter.
33770         (bswap splitter): Macroize splitter using any_rotate code iterator.
33771         Add insn predicate to split only for TARGET_USE_XCHGB or when
33772         optimizing function for size.
33773
33774 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33775
33776         * config/pa/pa.c (emit_move_sequence): Remove use of
33777         deleted variable flag_argument_noalias.
33778
33779 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33780
33781         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
33782         configurations.
33783         Add to unsupported targets list.
33784         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
33785         sparc*-sun-solaris2.[567]* from target lists.
33786         * configure: Regenerate.
33787         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
33788         removal.
33789         Remove Solaris 7 patch references.
33790         (Specific, sparc-sun-solaris2.7): Removed.
33791         (sparc-sun-solaris2*): Update Solaris 7 example.
33792         (sparc64-*-solaris2*): Likewise.
33793
33794 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33795
33796         * config.build (alpha*-dec-osf4*): Remove.
33797         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
33798         of obsolete configurations.
33799         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
33800         support.
33801         * config/alpha/t-osf4: Renamed to ...
33802         * config/alpha/t-osf5: ... this.
33803         * config/alpha/osf.h: Renamed to ...
33804         * config/alpha/osf5.h: ... this.
33805         Merged old osf5.h contents.
33806         Update comments.
33807         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
33808         (EXTRA_SPECS): Removed.
33809         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
33810         reflect removal of Tru64 UNIX V4.0/V5.0 support.
33811         Document that.
33812
33813 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33814
33815         * doc/contrib.texi (Contributors, Rainer Orth): Update.
33816
33817 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
33818
33819         PR/43702
33820         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
33821         __thiscall convention.
33822
33823 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33824
33825         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
33826         orig_base.
33827         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
33828
33829 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33830
33831         * function.c (assign_parms_initialize_all): Add unused attribute
33832         to fntype.
33833
33834 2010-04-12  Richard Guenther  <rguenther@suse.de>
33835
33836         * gsstruct.def (GSS_CALL): New.
33837         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
33838         * gimple.h: Include tree-ssa-alias.h.
33839         (struct gimple_statement_call): New.
33840         (union gimple_statement_struct_d): Add gimple_call member.
33841         (gimple_call_reset_alias_info): Declare.
33842         (gimple_call_use_set): New function.
33843         (gimple_call_clobber_set): Likewise.
33844         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
33845         * gimple.c (gimple_call_reset_alias_info): New function.
33846         (gimple_build_call_1): Call it.
33847         * lto-streamer-in.c (input_gimple_stmt): Likewise.
33848         * tree-inline.c (remap_gimple_stmt): Likewise.
33849         (expand_call_inline): Remove callused handling.
33850         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
33851         * tree-dfa.c (dump_variable): Likewise.
33852         * tree-parloops.c (parallelize_loops): Likewise.
33853         * tree-ssa.c (init_tree_ssa): Likewise.
33854         (delete_tree_ssa): Likewise.
33855         * tree-flow-inline.h (is_call_used): Remove.
33856         * tree-flow.h (struct gimple_df): Remove callused member.
33857         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
33858         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
33859         (ref_maybe_used_by_call_p_1): Simplify.
33860         (call_may_clobber_ref_p_1): Likewise.
33861         * tree-ssa-structalias.c (compute_points_to_sets): Set
33862         the call stmt used and clobbered sets.
33863         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
33864         (find_tail_calls): Verify the tail call.
33865
33866 2010-04-12  Richard Guenther  <rguenther@suse.de>
33867
33868         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
33869         single-iteration always-inline inlining.
33870         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
33871         (cgraph_decide_inlining): Do not handle always-inline specially.
33872         (try_inline): Remove always-inline cycle detection special case.
33873         Do not recurse on always-inlines.
33874         (cgraph_early_inlining): Do not iterate if not optimizing.
33875         (cgraph_gate_early_inlining): remove.
33876         (pass_early_inline): Run unconditionally.
33877         (gate_cgraph_decide_inlining): New function.
33878         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
33879         not inlining or optimizing.
33880         (cgraph_decide_inlining_of_small_functions): Also consider
33881         always-inline functions.
33882         (cgraph_default_inline_p): Return true for nodes which should
33883         disregard inline limits.
33884         (estimate_function_body_sizes): Assume zero size and time for
33885         nodes which are marked as disregarding inline limits.
33886         (cgraph_decide_recursive_inlining): Do not perform recursive
33887         inlining on always-inline nodes.
33888
33889 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
33890
33891         PR bootstrap/43699
33892         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
33893         for exprs satisfying handled_component_p.
33894
33895 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
33896
33897         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
33898         non-constant aggregate elements.
33899
33900         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
33901         is a real initialization.
33902
33903 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
33904
33905         PR c/36774
33906         * c-decl.c (start_function): Move forward check for nested function.
33907
33908 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
33909
33910         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
33911         * config/sh/sh.c: Include reload.h.
33912         (sh_legitimize_reload_address): New.
33913         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
33914         sh_legitimize_reload_address.
33915
33916 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33917
33918         * config/sh/sh.md (*movqi_pop): New insn pattern.
33919         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
33920
33921 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33922
33923         * config/i386/i386.md (any_shiftrt): New code iterator.
33924         (shiftrt_insn): New code attribute.
33925         (shiftrt): Ditto.
33926         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
33927         using any_shiftrt code iterator.
33928         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
33929         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
33930         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
33931         pattern from corresponding peephole2 patterns.
33932         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
33933         using any_shiftrt code iterator.
33934         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
33935         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
33936         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
33937         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
33938         *{ashr,lshr}<mode>3_cmp_zext.
33939         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
33940
33941 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33942
33943         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
33944         scratch register.
33945         (*lshr<mode>3_cconly): Ditto.
33946
33947 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33948
33949         * config/i386/i386.md (lshr<mode>3): Macroize expander from
33950         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33951         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33952         pattern from *lshr{di,ti}3_1 and corresponding splitters using
33953         DWI mode iterator.
33954         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33955         from corresponding peephole2 patterns.
33956         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
33957         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
33958         and *lshrdi3_1_rex64 using SWI mode iterator.
33959         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
33960         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
33961         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
33962         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
33963         and *lshrdi3_cmp_rex64 using SWI mode iterator.
33964         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
33965         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
33966         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
33967         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
33968         SWI mode iterator.
33969
33970 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
33971
33972         * config/i386/i386.md (ashr<mode>3): Macroize expander from
33973         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33974         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33975         pattern from *ashr{di,ti}3_1 and corresponding splitters using
33976         DWI mode iterator.
33977         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33978         from corresponding peephole2 patterns.
33979         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
33980         (ashrsi3_cvt): Rename from ashrsi3_31.
33981         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
33982         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
33983         and x86_64_shift_adj_3 using SWI48 mode iterator.
33984         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
33985         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
33986         and *ashrdi3_1_rex64 using SWI mode iterator.
33987         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
33988         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
33989         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
33990         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
33991         and *ashrdi3_cmp_rex64 using SWI mode iterator.
33992         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
33993         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
33994         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
33995         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
33996         SWI mode iterator.
33997         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
33998         * config/i386/i386.c (ix86_split_ashr): Update for renamed
33999         x86_shift<mode>_adj_3 expanders.
34000
34001 2010-04-10  Wei Guozhi  <carrot@google.com>
34002
34003         PR target/42601
34004         * config/arm/arm.c (arm_pic_static_addr): New function.
34005         (legitimize_pic_address): Call arm_pic_static_addr when it detects
34006         a static symbol.
34007         (arm_output_addr_const_extra): Output expression for new pattern.
34008         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
34009
34010 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
34011
34012         * ira-costs.c (record_reg_classes): Ignore alternatives that are
34013         not enabled.
34014
34015         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
34016         * web.c: Include "insn-config.h" and "recog.h".
34017         (union_match_dups): New function.
34018         (web_main): Call it.
34019         (union_defs): Don't try to recognize match_dups.
34020
34021         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
34022         if doing so would replace the entire pattern.
34023
34024 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
34025
34026         PR target/43707
34027         PR target/43709
34028         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
34029         and splitter pattern.  Change splitter operand 1 predicate to
34030         nonmemory_operand.
34031
34032 2010-04-09  Martin Jambor  <mjambor@suse.cz>
34033
34034         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
34035         lattices are addresses of CONST_DECLs with the same initial value.
34036         (ipcp_print_all_lattices): Print values of CONST_DECLs.
34037         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
34038
34039 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
34040             Bernd Schmidt  <bernds@codesourcery.com>
34041
34042         * loop-invariant.c (replace_uses): New static function.
34043         (move_invariant_reg): Use it to ensure we can replace the uses.
34044
34045 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
34046
34047         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
34048         function template.
34049         (picochip_override_options): Enable section anchors only above -O1.
34050         (picochip_reorg): Fixed a couple of build warnings.
34051
34052 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34053
34054         * configure.ac (plugin -rdynamic test): Log result.
34055         * configure: Regenerate.
34056         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
34057         (RDYNAMIC_SPEC): Define.
34058         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
34059
34060 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34061
34062         * configure.ac: Determine Sun ld version numbers.
34063         (comdat_group): Restrict GNU ld version checks to gld.
34064         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
34065         (enable_comdat): Support --enable-comdat.
34066         * configure: Regenerate.
34067         * doc/install.texi (Configuration): Document --enable-comdat.
34068
34069 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34070
34071         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
34072         * config/sol2-gld.h: ... here.
34073         * config.gcc (sparc*-*-solaris2*): Reflect this.
34074         (i[34567]86-*-solaris2*): Use it.
34075
34076 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
34077
34078         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
34079         setup_clocks_p.
34080         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
34081
34082 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34083
34084         PR 42965
34085         * diagnostic.c (diagnostic_initialize): Initialize
34086         some_warnings_are_errors.
34087         (diagnostic_finish): New.
34088         (diagnostic_action_after_output): Call it before exiting.
34089         (diagnostic_report_diagnostic): Do not print message here. Set
34090         some_warnings_are_errors.
34091         * diagnostic.h (diagnostic_context): Delete
34092         issue_warnings_are_errors_message. Add some_warnings_are_errors.
34093         (diagnostic_finish): Declare.
34094         * toplev.c (toplev_main): Call it before exit.
34095
34096 2010-04-09  Jason Merrill  <jason@redhat.com>
34097
34098         PR c++/42623
34099         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
34100         for incomplete type.
34101
34102         PR c++/41788
34103         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
34104         based on a warning flag.
34105
34106 2010-04-09  Richard Guenther  <rguenther@suse.de>
34107
34108         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
34109
34110 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
34111
34112         PR bootstrap/43684
34113         * varasm.c (default_assemble_visibility): Wrap vars that are
34114         set, but unused, by targets without GAS.
34115         * config/rs6000/rs6000.c (paired_emit_vector_compare):
34116         Remove set, but unused, vars.
34117         (rs6000_legitimize_tls_address): Likewise.
34118         (altivec_expand_dst_builtin): Likewise.
34119         * config/darwin.c (machopic_classify_symbol): Likewise.
34120         (machopic_indirection_name): Likewise.
34121
34122 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
34123
34124         * config/i386/i386.md (DWI): New mode iterator.
34125         (S): New mode attribute.
34126         (shift_operand): Ditto.
34127         (shift_immediate_operand): Ditto.
34128         (ashl_input_operand): Ditto.
34129         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
34130         using SDWIM mode iterator.
34131         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
34132         pattern from *ashl{di,ti}3_1 and corresponding splitters using
34133         DWI mode iterator.
34134         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
34135         from corresponding peephole2 patterns.
34136         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
34137         and x86_64_shift_adj_1 using SWI48 mode iterator.
34138         (x86_shift<mode>_adj_2): Ditto.
34139         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
34140         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
34141         using SWI48 mode iterator.
34142         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
34143         *ashldi3_cmp_rex64 using SWI mode iterator.
34144         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
34145         *ashldi3_cconly_rex64 using SWI mode iterator.
34146         * config/i386/i386.c (ix86_split_ashl): Update for renamed
34147         x86_shift<mode>_adj_{1,2}.
34148         (ix86_split_ashr): Ditto.
34149         (ix86_split_lshr): Ditto.
34150
34151 2010-04-09  Richard Guenther  <rguenther@suse.de>
34152
34153         * target.h (builtin_conversion): Pass in input and output types.
34154         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
34155         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
34156         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
34157         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
34158
34159         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
34160         Handle AVX modes.
34161         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
34162
34163 2010-04-09  Richard Guenther  <rguenther@suse.de>
34164
34165         PR target/43152
34166         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
34167
34168 2010-04-09  Richard Guenther  <rguenther@suse.de>
34169
34170         * tree-vectorizer.h (struct _stmt_vec_info): Document
34171         that vectype is the type of the LHS.
34172         (supportable_widening_operation, supportable_narrowing_operation):
34173         Get both input and output vector types as arguments.
34174         (vect_is_simple_use_1): Declare.
34175         (get_same_sized_vectype): Likewise.
34176         * tree-vect-loop.c (vect_determine_vectorization_factor):
34177         Set STMT_VINFO_VECTYPE to the vector type of the def.
34178         (vectorizable_reduction): Adjust.
34179         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
34180         Adjust.  Specify the output vector type.
34181         (vect_pattern_recog_1): Adjust.
34182         * tree-vect-stmts.c (get_same_sized_vectype): New function.
34183         (vectorizable_call): Adjust.
34184         (vectorizable_conversion): Likewise.
34185         (vectorizable_operation): Likewise.
34186         (vectorizable_type_demotion): Likewise.
34187         (vectorizable_type_promotion): Likewise.
34188         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
34189         the def.
34190         (vect_is_simple_use_1): New function.
34191         (supportable_widening_operation): Get both input and output
34192         vector types.
34193         (supportable_narrowing_operation): Likewise.
34194         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
34195
34196 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
34197
34198         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
34199         __thiscall and _thiscall as predefined macros.
34200         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
34201         thiscall attribute handling.
34202         (ix86_comp_type_attributes): Likewise.
34203         (ix86_function_regparm): Likewise.
34204         (ix86_return_pops_args): Likewise.
34205         (init_cumulative_args): Likewise.
34206         (find_drap_reg): Likewise.
34207         (ix86_static_chain): Likewise.
34208         (x86_this_parameter): Likewise.
34209         (x86_output_mi_thunk): Likewise.
34210         (ix86_attribute_table): Add description for thiscall attribute.
34211         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
34212         * doc/extend.texi: Add documentation for thiscall.
34213
34214 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34215
34216         PR c++/28584
34217         * c.opt (Wint-to-pointer-cast): Available in C++.
34218         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
34219
34220 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
34221
34222         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
34223         * calls.c (expand_call): Pass the function type to aggregate_value_p.
34224         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
34225         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
34226         function type instead.  Reorder and simplify checks.
34227
34228         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
34229
34230 2010-04-08  Jing Yu  <jingyu@google.com>
34231             Zdenek Dvorak  <ook@ucw.cz>
34232
34233         PR tree-optimization/42720
34234         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
34235         loop unswitch conditions here from ...
34236         (tree_unswitch_single_loop): ... here.
34237
34238 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
34239
34240         * tree-if-conv.c: Fix comments and simplify logic.
34241
34242 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
34243
34244         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
34245         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
34246         (main_tree_if_conversion): Update call to tree_if_conversion.
34247
34248 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34249
34250         PR 42485
34251         * doc/invoke.texi (-b,-V): Delete.
34252         * doc/tm.texi: Do not mention -b.
34253         * gcc.c (display_help): Delete -b and -V.
34254         (process_command): Delete -b and -V.
34255         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
34256
34257 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
34258             Wolfgang Gellerich  <gellerich@de.ibm.com>
34259
34260         Implement target hook for loop unrolling
34261         * target.h (loop_unroll_adjust): Add a new target hook function.
34262         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
34263         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
34264         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
34265         (s390_loop_unroll_adjust): Implement the new target hook for s390.
34266         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
34267         target hook.
34268         (decide_unroll_stupid): Likewise.
34269
34270 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34271
34272         PR target/43643
34273         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
34274
34275 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34276
34277         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
34278         (Specific, *-*-solaris2*): Likewise.
34279         Don't prefer Sun as over GNU as.
34280
34281 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
34282
34283         * config/s390/s390.c (override_options): Adjust the z10 defaults
34284         for max-unroll-times, max-completely-peeled-insns
34285         and max-completely-peel-times.
34286
34287 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34288
34289         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
34290         instructions for z10.
34291         (s390_expand_setmem): Likewise.
34292         (s390_expand_cmpmem): Likewise.
34293
34294 2010-04-08  Richard Guenther  <rguenther@suse.de>
34295
34296         PR tree-optimization/43679
34297         * tree-ssa-pre.c (eliminate): Only propagate copies.
34298
34299 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
34300
34301         PR bootstrap/43681
34302         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
34303         set but not used variable warning.
34304
34305 2010-04-08  Wei Guozhi  <carrot@google.com>
34306
34307         PR target/41653
34308         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
34309         (arm_size_rtx_costs): Call the new function when optimized for size.
34310
34311 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
34312
34313         PR debug/43670
34314         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
34315         op0 is not a MEM, just return NULL instead of assertion
34316         failure.
34317         (discover_nonconstant_array_refs): Don't walk debug stmts.
34318
34319 2010-04-08  Doug Kwan  <dougkwan@google.com>
34320
34321         * configure.ac: Recognize gold and do not use its version number
34322         to test ld features.
34323         * configure: Regenerate.
34324
34325 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
34326
34327         PR middle-end/40815
34328         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
34329         (negate_value): Move code to push elements to broken_up_substracts ...
34330         (eliminate_plus_minus_pair): ... here.  Push operands that have no
34331         negative pair to plus_negates.
34332         (repropagate_negates, init_reassoc, fini_reassoc): Update.
34333
34334 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34335
34336         * doc/install.texi (Configuration): Move description of
34337         --enable-lto, --with-libelf*, --enable-gold from Java section to
34338         general section.
34339
34340         * doc/generic.texi (Working with declarations)
34341         (Function Properties, C and C++ Trees): Fix typos.
34342         * doc/sourcebuild.texi (Top Level): Likewise.
34343
34344 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
34345
34346         PR c/18624
34347         * tree.h (DECL_READ_P): Define.
34348         (struct tree_decl_common): Add decl_read_flag.
34349         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
34350         a set but not used warning.
34351         (merge_decls): Merge DECL_READ_P flag.
34352         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
34353         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
34354         * c-common.c (handle_used_attribute, handle_unused_attribute):
34355         Likewise.
34356         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
34357         New prototypes.
34358         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
34359         New functions.
34360         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
34361         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
34362         c_parser_binary_expression, c_parser_cast_expression,
34363         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
34364         Call default_function_array_read_conversion instead of
34365         default_function_array_conversion where needed.
34366         (c_parser_unary_expression, c_parser_conditional_expression,
34367         c_parser_postfix_expression_after_primary, c_parser_initelt):
34368         Likewise.  Call mark_exp_read where needed.
34369         (c_parser_statement_after_labels, c_parser_asm_operands,
34370         c_parser_typeof_specifier, c_parser_sizeof_expression,
34371         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
34372         where needed.
34373         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
34374         New.
34375         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
34376         (warn_unused_but_set_parameter): Default to warn_unused
34377         && extra_warnings.
34378         * doc/invoke.texi: Document -Wunused-but-set-variable and
34379         -Wunused-but-set-parameter.
34380
34381         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
34382         used count variable.
34383         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
34384         when operandN variables aren't used in the body of the expander
34385         or splitter.
34386         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
34387         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
34388         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
34389         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
34390         FOR_EACH_IMM_USE_ON_STMT): Likewise.
34391         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
34392         * tree.c (PROCESS_ARG): Likewise.
34393
34394 2010-04-07  Simon Baldwin  <simonb@google.com>
34395
34396         * diagnostic.h (diagnostic_override_option_index): New macro to
34397         set a diagnostic's option_index.
34398         * c-tree.h (c_cpp_error): Add warning reason argument.
34399         * opts.c (_warning_as_error_callback): New.
34400         (register_warning_as_error_callback): Store callback for
34401         warnings enabled via enable_warning_as_error.
34402         (enable_warning_as_error): Call callback, minor code tidy.
34403         * opts.h (register_warning_as_error_callback): Declare.
34404         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
34405         response to -Werror=.
34406         (c_common_init_options): Register warning_as_error_callback in opts.c.
34407         * common.opt: Add -Wno-cpp option.
34408         * c-common.c (struct reason_option_codes_t): Map cpp warning
34409         reason codes to gcc option indexes.
34410         * (c_option_controlling_cpp_error): New function, lookup the gcc
34411         option index for a cpp warning reason code.
34412         * (c_cpp_error): Add warning reason argument, call
34413         c_option_controlling_cpp_error for diagnostic_override_option_index.
34414         * doc/invoke.texi: Document -Wno-cpp.
34415
34416 2010-04-07  Richard Guenther  <rguenther@suse.de>
34417
34418         * ipa-reference.c (mark_load): Use get_base_address.
34419         (mark_store): Likewise.
34420
34421         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
34422         inserting GIMPLE_NOPs into the IL.
34423         * tree-ssa-structalias.c (get_constraint_for_component_ref):
34424         Explicitly strip handled components and indirect references.
34425
34426         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
34427         folding address expressions.
34428         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
34429         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
34430         operand_equal_p to compare decls.
34431         (ptr_deref_may_alias_decl_p): Likewise.
34432         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
34433         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
34434         Handle reversed comparison ops.
34435         * tree-sra.c (asm_visit_addr): Use get_base_address.
34436         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
34437         * ipa-reference.c (mark_address): Use get_base_address.
34438
34439 2010-04-07  Richard Guenther  <rguenther@suse.de>
34440
34441         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
34442         Propagate constants everywhere.
34443
34444 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
34445
34446         PR debug/43516
34447         * tree.c (MAX_INT_CACHED_PREC): Define.
34448         (nonstandard_integer_type_cache): New array.
34449         (build_nonstandard_integer_type): Cache results for precision
34450         <= MAX_INT_CACHED_PREC.
34451
34452 2010-04-07  Richard Guenther  <rguenther@suse.de>
34453
34454         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
34455         -fargument-noalias-global, -fargument-noalias-anything): Remove.
34456         * common.opt: Likewise.
34457         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
34458         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
34459         (nonoverlapping_memrefs_p): Likewise.
34460         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
34461         * opts.c (common_handle_option): Handle OPT_fargument_alias,
34462         OPT_fargument_noalias, OPT_fargument_noalias_anything and
34463         OPT_fargument_noalias_global for backward compatibility.
34464
34465 2010-04-07  Richard Guenther  <rguenther@suse.de>
34466
34467         PR tree-optimization/43270
34468         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
34469         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
34470         * tree-ssa-pre.c (phi_translate_1): Adjust.
34471         (fully_constant_expression): Split out vn_reference handling to ...
34472         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
34473         Fold reads from constant strings.
34474         (vn_reference_lookup): Handle fully constant references.
34475         (vn_reference_lookup_pieces): Likewise.
34476         * Makefile.in (expmed.o-warn): Add -Wno-error.
34477
34478 2010-04-07  Martin Jambor  <mjambor@suse.cz>
34479
34480         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
34481
34482 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
34483
34484         PR driver/41594
34485         * gcc.c: Add -static-libstdc++ to list of recognized options.
34486
34487 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34488
34489         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
34490
34491 2010-04-07  Richard Guenther  <rguenther@suse.de>
34492
34493         PR middle-end/42617
34494         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
34495         bases build simple mem attributes to retain points-to information.
34496
34497 2010-04-07  Richard Guenther  <rguenther@suse.de>
34498
34499         PR middle-end/42617
34500         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
34501         preserve points-to related information.
34502
34503 2010-04-07  Richard Guenther  <rguenther@suse.de>
34504
34505         PR middle-end/42617
34506         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
34507         discard plain indirect references.
34508         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
34509         * tree.c (tree_nop_conversion): Likewise.
34510
34511 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
34512
34513         PR debug/43628
34514         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
34515
34516 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
34517
34518         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
34519         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
34520
34521 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
34522
34523         * tree-if-conv.c: Fix indentation and comments.
34524
34525 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
34526
34527         * tree-if-conv.c: Sort static functions in topological order.
34528
34529 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
34530
34531         * tree-if-conv.c: Fix indentation and comments.
34532
34533 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
34534
34535         PR middle-end/43519
34536         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
34537         lang_hooks.types.type_for_size instead of
34538         build_nonstandard_integer_type.
34539         When converting an unsigned type to signed, double its precision.
34540         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
34541         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
34542         (graphite_create_new_loop_guard): When ub + 1 wraps around,
34543         use lb <= ub.
34544
34545 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
34546
34547         PR middle-end/43519
34548         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
34549         POINTER_PLUS_EXPR for pointer types.
34550
34551 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
34552
34553         PR middle-end/43519
34554         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
34555         * graphite-clast-to-gimple.c: Include langhooks.h.
34556         (max_signed_precision_type): New.
34557         (max_precision_type): Takes two types as arguments.
34558         (precision_for_value): New.
34559         (precision_for_interval): New.
34560         (gcc_type_for_interval): New.
34561         (gcc_type_for_value): New.
34562         (gcc_type_for_clast_term): New.
34563         (gcc_type_for_clast_red): New.
34564         (gcc_type_for_clast_bin): New.
34565         (gcc_type_for_clast_expr): Split up into several functions.
34566         (gcc_type_for_clast_eq): Rewritten.
34567         (compute_bounds_for_level): New.
34568         (compute_type_for_level_1): New.
34569         (compute_type_for_level): New.
34570         (gcc_type_for_cloog_iv): Removed.
34571         (gcc_type_for_iv_of_clast_loop): Rewritten.
34572         (graphite_create_new_loop): Compute the lower and upper bound types
34573         with gcc_type_for_clast_expr.
34574         (graphite_create_new_loop_guard): Same.
34575         (find_cloog_iv_in_expr): Removed.
34576         (compute_cloog_iv_types_1): Removed.
34577         (compute_cloog_iv_types): Removed.
34578         (gloog): Do not call compute_cloog_iv_types.
34579         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
34580         GBB_CLOOG_IV_TYPES.
34581         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
34582         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
34583         (GBB_CLOOG_IV_TYPES): Removed.
34584
34585 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
34586
34587         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
34588         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
34589         (detect_commutative_reduction): Same.
34590
34591 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
34592
34593         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
34594         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
34595         argument.
34596         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
34597         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
34598         (rewrite_commutative_reductions_out_of_ssa): Same.
34599         * passes.c (execute_function_todo): Call verify_ssa for every pass
34600         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
34601         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
34602         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
34603         with an extra argument.
34604         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
34605         verify_ssa only when the extra argument is true.
34606         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
34607         with an extra argument.
34608         (tree_transform_and_unroll_loop): Same.
34609
34610 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
34611
34612         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
34613         for all the passes of the LNO having LOOP_CLOSED_SSA.
34614         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
34615         * tree-loop-distribution.c (pass_loop_distribution): Same.
34616         * tree-pass.h (TODO_verify_loops): Removed.
34617         * tree-ssa-loop.c (pass_tree_loop_init): Same.
34618         (pass_lim): Same.
34619         (pass_tree_unswitch): Same.
34620         (pass_predcom): Same.
34621         (pass_vectorize): Same.
34622         (pass_linear_transform): Same.
34623         (pass_graphite_transforms): Same.
34624         (pass_iv_canon): Same.
34625         (pass_complete_unroll): Same.
34626         (pass_complete_unrolli): Same.
34627         (pass_parallelize_loops): Same.
34628         (pass_loop_prefetch): Same.
34629         (pass_iv_optimize): Same.
34630
34631 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
34632
34633         PR middle-end/32824
34634         * passes.c (init_optimization_passes): Move pass_lim before
34635         pass_copy_prop and pass_dce_loop.
34636
34637 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
34638
34639         PR target/43667
34640         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
34641         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
34642         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
34643         MULTI_* defines for 4 argument vpermil2p* builtins.
34644
34645 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
34646
34647         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
34648         * config/i386/i386.c (x86_maybe_negate_const_int): New.
34649         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
34650         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
34651         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
34652         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
34653         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
34654         Use x86_maybe_negate_const_int to output insn mnemonic.
34655         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
34656         check from instruction predicate.  Update comments.
34657         * config/i386/sync.md (sync_add<mode>): Use
34658         x86_maybe_negate_const_int to output insn mnemonic.
34659
34660 2010-04-06  Jan Hubicka  <jh@suse.cz>
34661
34662         PR tree-optimization/42906
34663         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
34664         IGNORE_SELF argument.  Set visited_control_parents for fully
34665         processed BBs.
34666         (find_obviously_necessary_stmts): Update call of
34667         mark_control_dependent_edges_necessary.
34668         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
34669
34670 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
34671
34672         * config/i386/i386.md: Remove comment about 'e' and 'E'
34673         operand modifier.
34674
34675 2010-04-06  Richard Guenther  <rguenther@suse.de>
34676
34677         PR tree-optimization/43627
34678         * tree-vrp.c (extract_range_from_unary_expr): Widenings
34679         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
34680         not varying.
34681
34682 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
34683
34684         * BASE-VER: Change to 4.6.0.
34685
34686         PR target/43638
34687         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
34688         handling.
34689
34690 2010-04-06  Richard Guenther  <rguenther@suse.de>
34691
34692         PR middle-end/43661
34693         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
34694
34695 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34696
34697         * doc/invoke.texi (Optimize Options): Document that LTO
34698         won't remove object access purely due to incompatible
34699         declarations.
34700
34701 2010-04-04  Matthias Klose  <doko@ubuntu.com>
34702
34703         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
34704         Initialize variable.
34705
34706 2010-04-03  Richard Guenther  <rguenther@suse.de>
34707
34708         PR middle-end/42509
34709         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
34710         require a non-NULL MEM_OFFSET.
34711
34712 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
34713
34714         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
34715         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
34716         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
34717         config/alpha/predicates.md, config/arm/arm.md,
34718         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
34719         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
34720         config/darwin9.h, config/darwin.c, config/darwin.h,
34721         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
34722         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
34723         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
34724         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
34725         config/mips/mips.md, config/mn10300/mn10300.c,
34726         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
34727         config/rs6000/aix.h, config/rs6000/dfp.md,
34728         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
34729         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
34730         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
34731         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
34732         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
34733         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
34734         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
34735         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
34736         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
34737         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
34738         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
34739         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
34740         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
34741         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
34742         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
34743         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
34744         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
34745         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
34746         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
34747         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
34748         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
34749         opt-functions.awk, opth-gen.awk, params.def, passes.c,
34750         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
34751         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
34752         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
34753         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
34754         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
34755         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
34756         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
34757         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
34758         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
34759         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
34760         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
34761         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
34762         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
34763         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
34764
34765 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34766
34767         PR other/43620
34768         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
34769         * aclocal.m4: Regenerate.
34770
34771 2010-04-02  Richard Guenther  <rguenther@suse.de>
34772
34773         PR tree-optimization/43629
34774         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
34775         if we have seen a constant value.
34776
34777 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
34778
34779         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
34780
34781 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
34782
34783         PR target/43469
34784         * arm.c (legitimize_tls_address): Adjust call to
34785         gen_tls_load_dot_plus_four.
34786         (arm_note_pic_base): New function.
34787         (arm_cannot_copy_insn_p): Use it.
34788         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
34789         constraint.
34790
34791 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34792
34793         PR bootstrap/43531
34794
34795         Revert:
34796         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34797
34798         * Makefile.in ($(out_object_file)): Depend on
34799         gt-$(basename $(notdir $(out_file))).h.
34800
34801 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
34802
34803         * config.gcc (lm32-*-rtems*): Add t-lm32.
34804
34805 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
34806
34807         * config.gcc: Add lm32-*-rtems*.
34808         * config/lm32/rtems.h: New file.
34809
34810 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
34811
34812         PR target/42609
34813         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
34814
34815 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
34816
34817         * dwarf2out.c (output_compilation_unit_header): For
34818         -gdwarf-4 use version 4 instead of version 3.
34819         (output_line_info): For version 4 and above emit additional
34820         maximum ops per insn header field.
34821         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
34822
34823         * dwarf2out.c (is_c_family, is_java): Remove.
34824         (lower_bound_default): New function.
34825         (add_bound_info, gen_descr_array_type_die): Use it.
34826
34827 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
34828
34829         PR debug/43325
34830         * dwarf2out.c (gen_variable_die): Allow debug info for variable
34831         re-declaration when it happens in a function.
34832
34833 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
34834
34835         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
34836         (cgraph_remove_function_insertion_hook): Same.
34837         (cgraph_call_function_insertion_hooks): Same.
34838
34839 2010-04-01  Richard Guenther  <rguenther@suse.de>
34840
34841         PR middle-end/43614
34842         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
34843         and TREE_THIS_VOLATILE.
34844         (copy_ref_info): Likewise.
34845         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
34846         * tree.c (build6_stat): Ignore side-effects of all but arg5
34847         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
34848         TARGET_MEM_REF.
34849
34850 2010-04-01  Richard Guenther  <rguenther@suse.de>
34851
34852         PR tree-optimization/43607
34853         * ipa-type-escape.c (check_call): Do not access non-existing
34854         arguments.
34855
34856 2010-04-01  Richard Guenther  <rguenther@suse.de>
34857
34858         PR middle-end/43602
34859         Revert
34860         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
34861                     Jack Howarth  <howarth@bromo.med.uc.edu>
34862
34863         * tree-profile.c (tree_init_ic_make_global_vars): Make static
34864         variables TLS.
34865
34866 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34867
34868         * doc/install.texi (Prerequisites): Document libelf usability on
34869         IRIX 5/6 and Solaris 2.
34870         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
34871         Update GNU as, GNU ld requirements.
34872         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
34873         Document Sun Studio compiler download.
34874         Update and simplify as, ld recommendations.
34875         (Specific, *-*-solaris2.7): Note obsoletion, removal.
34876
34877 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34878
34879         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
34880         with_tune_32 to pentium4.
34881
34882 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
34883
34884         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
34885
34886 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34887
34888         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
34889         obsoletion, removal.
34890         Update IDO URL.
34891         Document GNU as requirement.
34892         Update configure requirements.
34893         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
34894         Recomment IRIX 6.5.18+.
34895         Document IDF/IDL requirement.
34896         Document GNU as requirement.
34897         Document GNU ld bootstrap failure.
34898         Remove freeware.sgi.com reference.
34899
34900 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34901
34902         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
34903         UNIX V4.0, V5.0 obsoletion, removal.
34904         Remove --with-gc=simple reference.
34905         Update VM requirements during bootstrap.
34906         Remove -oldas bootstrap description.
34907         Update binutils reference.
34908         Remove comparison failure note.
34909
34910 2010-03-31  Richard Guenther  <rguenther@suse.de>
34911             Zdenek Dvorak  <ook@ucw.cz>
34912             Sebastian Pop  <sebastian.pop@amd.com>
34913
34914         PR middle-end/43464
34915         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
34916         with multiple arguments.
34917         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
34918
34919 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34920
34921         * graphite-dependences.c (print_pddr): Call print_pdr with an
34922         extra argument.
34923         * graphite-poly.c (debug_pdr): Add an extra argument for the
34924         verbosity level.
34925         (print_pdr): Same.
34926         (print_pbb_domain): Same.
34927         (print_pbb): Same.
34928         (print_scop_context): Same.
34929         (print_scop): Same.
34930         (print_cloog): Same.
34931         (debug_pbb_domain): Same.
34932         (debug_pbb): Same.
34933         (print_pdrs): Same.
34934         (debug_pdrs): Same.
34935         (debug_scop_context): Same.
34936         (debug_scop): Same.
34937         (debug_cloog): Same.
34938         (print_scop_params): Same.
34939         (debug_scop_params): Same.
34940         (print_iteration_domain): Same.
34941         (print_iteration_domains): Same.
34942         (debug_iteration_domain): Same.
34943         (debug_iteration_domains): Same.
34944         (print_scattering_function): Same.
34945         (print_scattering_functions): Same.
34946         (debug_scattering_function): Same.
34947         (debug_scattering_functions): Same.
34948         * graphite-poly.h (debug_pdr): Update declaration.
34949         (print_pdr): Same.
34950         (print_pbb_domain): Same.
34951         (print_pbb): Same.
34952         (print_scop_context): Same.
34953         (print_scop): Same.
34954         (print_cloog): Same.
34955         (debug_pbb_domain): Same.
34956         (debug_pbb): Same.
34957         (print_pdrs): Same.
34958         (debug_pdrs): Same.
34959         (debug_scop_context): Same.
34960         (debug_scop): Same.
34961         (debug_cloog): Same.
34962         (print_scop_params): Same.
34963         (debug_scop_params): Same.
34964         (print_iteration_domain): Same.
34965         (print_iteration_domains): Same.
34966         (debug_iteration_domain): Same.
34967         (debug_iteration_domains): Same.
34968         (print_scattering_function): Same.
34969         (print_scattering_functions): Same.
34970         (debug_scattering_function): Same.
34971         (debug_scattering_functions): Same.
34972
34973 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34974
34975         * graphite-poly.c (print_scattering_function_1): New.
34976         (print_scattering_function): Call it.
34977         (print_scop_params): Remove spaces at the end of lines.
34978         (print_cloog): New.
34979         (debug_cloog): New.
34980         * graphite-poly.h (print_cloog): Declared.
34981         (debug_cloog): Declared.
34982
34983 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34984
34985         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
34986         in loop->header.
34987         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
34988         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
34989         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
34990         to switch between adding the IV bump in loop->latch or in loop->header.
34991
34992 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34993
34994         * graphite-poly.c (print_scattering_function): Pretty print following
34995         the scoplib format.
34996         (print_pdr): Same.
34997         (print_pbb_domain): Same.
34998         (dump_gbb_cases): Same.
34999         (dump_gbb_conditions): Same.
35000         (print_pdrs): Same.
35001         (print_pbb): Same.
35002         (print_scop_params): Same.
35003         (print_scop_context): Same.
35004         (print_scop): Same.
35005         (print_pbb_body): New.
35006         (lst_indent_to): New.
35007         (print_lst): Start new lines with a #.
35008         * graphite-poly.h (pbb_bb): New.
35009         (pbb_index): Use pbb_bb.
35010         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
35011         disjuncts.
35012         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
35013
35014 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
35015
35016         * dwarf2out.c (size_of_die): For -gdwarf-4 use
35017         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
35018         and 0 instead of 1 for dw_val_class_flag.
35019         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
35020         dw_val_class_range_list, dw_val_class_loc_list,
35021         dw_val_class_lineptr and dw_val_class_macptr, use
35022         DW_FORM_flag_present for dw_val_class_flag and
35023         DW_FORM_exprloc for dw_val_class_loc.
35024         (output_die): For -gdwarf-4 print dw_val_class_loc
35025         size as uleb128 instead of 1 or 2 bytes and don't print
35026         anything for dw_val_class_flag.
35027
35028         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
35029         instead of cselib_lookup following by tweaking locs->setting_insn.
35030
35031         PR bootstrap/43596
35032         * cselib.c (cselib_process_insn): Clear cselib_current_insn
35033         even before returning from label, setjmp call or volatile asm
35034         handling.
35035
35036 2010-03-31  Richard Guenther  <rguenther@suse.de>
35037
35038         PR middle-end/43600
35039         * cgraphunit.c (cgraph_output_in_order): Do not allocate
35040         temporary data on stack.
35041
35042 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35043
35044         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
35045         (PUSHSECTION_ASM_OP): Remove.
35046         (POPSECTION_ASM_OP): Remove.
35047         (PUSHSECTION_FORMAT): Remove.
35048         * config/sol2.h (PUSHSECTION_FORMAT): Define.
35049         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
35050         * config/sol2.c (solaris_output_init_fini): Use it.
35051
35052 2010-03-31  Jie Zhang  <jie@codesourcery.com>
35053
35054         PR 43574
35055         * opt-functions.awk (var_type_struct): Use signed char type
35056         for simple variables.
35057
35058 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35059
35060         * config/sol2.c: Include output.h.
35061         (solaris_assemble_visibility): New function.
35062         * config/t-sol2 (sol2.o): Add output.h dependency.
35063         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
35064         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
35065         Redefine.
35066
35067 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
35068
35069         PR target/43580
35070         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
35071         V2SImode or XFmode on PRE_DEC.
35072
35073         PR debug/43557
35074         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
35075         BLKmode.
35076
35077 2010-03-31  Jie Zhang  <jie@codesourcery.com>
35078
35079         PR 43562
35080         * reload.h (caller_save_initialized_p): Declare.
35081         * toplev.c (backend_init_target): Don't call
35082         init_caller_save but set caller_save_initialized_p to false.
35083         * caller-save.c (caller_save_initialized_p): Define.
35084         (init_caller_save): Check caller_save_initialized_p.
35085         * ira.c (ira): Call init_caller_save if flag_caller_saves.
35086
35087 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35088
35089         PR target/39048
35090         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
35091         and soft-fp/t-softfp to tmake_file.
35092         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
35093         (LIBGCC2_TF_CEXT): Define.
35094         (TF_SIZE): Define.
35095
35096 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
35097
35098         PR debug/42977
35099         * cselib.c (n_useless_values): Document handling of debug locs.
35100         (n_useless_debug_values, n_debug_values): New variables.
35101         (new_elt_loc_list): Don't add to debug values, keep count.
35102         (promote_debug_loc): New.
35103         (cselib_reset_table): Zero new variables.
35104         (entry_and_rtx_equal_p): Promote debug locs.
35105         (discard_useless_locs): Increment n_useless_debug_values for
35106         debug values.
35107         (remove_useless_values): Adjust n_useless_values and n_debug_values
35108         with n_useless_debug_values.
35109         (add_mem_for_addr): Promote debug locs.
35110         (cselib_lookup_mem): Likewise.
35111         (cselib_lookup_addr): Renamed to...
35112         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
35113         (cselib_log_lookup): ... this.  Turn into...
35114         (cselib_lookup_addr): ... new wrapper.
35115         (cselib_lookup_from_insn): New.
35116         (cselib_invalidate_regno): Increment n_useless_debug_values for
35117         debug values.
35118         (cselib_invalidate_mem): Likewise.
35119         (cselib_process_insn): Take n_deleted and n_debug_values into
35120         account to guard remove_useless_value call.
35121         (cselib_finish): Zero n_useless_debug_values.
35122         * cselib.h (cselib_lookup_from_insn): Declare.
35123         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
35124         (sched_analyze_2): Likewise.
35125
35126 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
35127
35128         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
35129         functions.
35130         (adjust_mems): Replace narrowing SUBREG of expression containing
35131         just PLUS, MINUS, MULT and ASHIFT of registers and constants
35132         with operations in the narrower mode.
35133
35134         PR debug/43593
35135         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
35136         regs_invalidated_by_call instead all call_used_reg_set registers.
35137
35138 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
35139
35140         PR middle-end/43430
35141         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
35142         pointer comparisons with types_compatible_p.
35143         * tree-vect-stmts.c (vectorizable_call): Same.
35144         (vectorizable_condition): Same.
35145
35146 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35147
35148         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
35149         stack check if the mask would be zero.
35150
35151 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
35152             Jack Howarth  <howarth@bromo.med.uc.edu>
35153
35154         * tree-profile.c (tree_init_ic_make_global_vars): Make static
35155         variables TLS.
35156
35157 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
35158
35159         PR other/25232
35160         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
35161         and __unordtf2.
35162         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
35163         Include ___unordxf2 and ___unordtf2.
35164         * config/i386/libgcc-glibc.ver: Do not define inheritance from
35165         GCC_4.4.0 here.
35166
35167 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
35168
35169         * config/lm32/t-lm32: New file.
35170         * config.gcc: Use the above file when targetting lm32.
35171
35172 2010-03-28  Duncan Sands  <baldrick@free.fr>
35173
35174         * Makefile.in (PLUGIN_HEADERS): Add except.h.
35175
35176 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
35177
35178         PR middle-end/43431
35179         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
35180         Improve vectorization cost model diagnostic.
35181
35182 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
35183
35184         PR middle-end/43436
35185         * tree-vect-data-refs.c (vect_analyze_data_refs): When
35186         compute_data_dependences_for_loop returns false, early exit
35187         and output an extra diagnostic for the failed data reference
35188         analysis.
35189
35190 2010-03-29  Richard Guenther  <rguenther@suse.de>
35191
35192         PR tree-optimization/43560
35193         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
35194         (can_sm_ref_p): Treat stores to readonly locations as trapping.
35195
35196 2010-03-29  Jie Zhang  <jie@codesourcery.com>
35197
35198         PR 43564
35199         * toplev.c (process_options): Set optimization_default_node
35200         and optimization_current_node.
35201         * opts.c (decode_options): Don't set optimization_default_node
35202         and optimization_current_node.
35203
35204 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
35205
35206         * config/rtems.h: Abandon -qrtems_debug.
35207
35208 2010-03-28  Jan Hubicka  <jh@suse.cz>
35209
35210         PR tree-optimization/43505
35211         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
35212         map should not be copied.
35213
35214 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35215
35216         PR middle-end/41674
35217         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
35218         cdtors, set DECL_PRESERVE_P.
35219         * ipa.c (cgraph_externally_visible_p): Return true if declaration
35220         should be preseved.
35221
35222 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
35223
35224         PR tree-optimization/43528
35225         * stor-layout.c (place_field): Check that constant fits into
35226         unsigned HWI when skipping calculation of MS bitfield layout.
35227
35228 2010-03-27  Jan Hubicka  <jh@suse.cz>
35229
35230         PR middle-end/43391
35231         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
35232         notice_global_symbol work.
35233
35234 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
35235
35236         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
35237         instead of dwarf2out_decl.
35238         (struct var_loc_node): Remove section_label field.
35239         (dwarf2out_function_decl): New function.
35240         (dwarf2out_var_location): Don't set section_label field.
35241         (dwarf2out_begin_function): Don't empty decl_loc_table here.
35242
35243 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
35244
35245         PR tree-optimization/43544
35246         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35247         First argument for builtin vectorized function hook is now a
35248         tree to be able to distinguish between machine specific and
35249         standard builtins.
35250         * targhooks.c (default_builtin_vectorized_function): Ditto.
35251         * targhooks.h (default_builtin_vectorized_function): Ditto.
35252         * target.h (struct gcc_target): Ditto.
35253         * tree-vect-stmts.c (vectorizable_function): Ditto.
35254         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
35255         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
35256         Ditto.
35257
35258 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
35259
35260         PR c/43381
35261         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
35262         nested binding iff it is a FUNCTION_DECL.
35263         (store_parm_decls_newstyle): Pass nested=true to bind for
35264         FUNCTION_DECLs amongst parameters.
35265
35266 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
35267
35268         * var-tracking.c (vt_expand_loc_callback): Don't run
35269         cselib_expand_value_rtx_cb in dummy mode if
35270         cselib_dummy_expand_value_rtx_cb returned false.
35271
35272         * var-tracking.c (emit_note_insn_var_location): For one part
35273         notes with offset 0, don't add EXPR_LIST around the location.
35274         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
35275         add_location_or_const_value_attribute): Adjust for that change.
35276
35277         PR debug/43540
35278         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
35279         into first operand and location into second.
35280         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
35281         dw_cfi_oprnd_loc for DW_CFA_expression.
35282         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
35283         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
35284         assume first argument is regnum and second argument is location.
35285
35286 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
35287
35288         PR target/42113
35289         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
35290         of scratch register to DImode.  Split to DImode comparison operator.
35291         Use SImode subreg of scratch register in the multiplication.
35292         (*cmp_sadd_sidi): Ditto.
35293         (*cmp_ssub_si): Ditto.
35294         (*cmp_ssub_sidi): Ditto.
35295
35296 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
35297
35298         PR target/43524
35299         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
35300         Remove invalid assert and wrong comment.
35301
35302 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
35303
35304         PR debug/43516
35305         * flags.h (final_insns_dump_p): New extern.
35306         * final.c (final_insns_dump_p): New variable.
35307         (rest_of_clean_state): Set it before -fdump-final-insns=
35308         dumping, clear afterwards.
35309         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
35310         MEM_ALIAS_SET on MEMs.
35311
35312 2010-03-26  David S. Miller  <davem@davemloft.net>
35313
35314         * configure.ac: Fix sparc GOTDATA_OP bug check.
35315         * configure: Rebuild.
35316
35317 2010-03-26  Alan Modra  <amodra@gmail.com>
35318
35319         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
35320
35321 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35322
35323         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
35324         TLS_SECTION_ASM_FLAG.
35325
35326 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
35327
35328         PR bootstrap/43511
35329         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
35330         Clear first_function_block_is_cold.
35331
35332         PR c/43385
35333         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
35334         argument if the argument is truth_value_p.
35335
35336 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
35337
35338         * config/rs6000/constraints.md: Update copyright year for my changes.
35339
35340         PR target/43484
35341         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
35342         used in reg+reg addressing, swap registers.
35343
35344 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
35345
35346         PR debug/43293
35347         * target.h (struct gcc_target): Add code_end hook.
35348         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
35349         if not yet defined.
35350         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
35351         * toplev.c (compile_file): Call targetm.asm_out.code_end
35352         hook before unwind info/debug info output.
35353         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
35354         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
35355         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35356         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
35357         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35358         * config/i386/i386.c (ix86_file_end): Renamed to...
35359         (ix86_code_end): ... this.  Make static.  Don't call
35360         file_end_indicate_exec_stack.  Emit unwind info using
35361         final_start_function/final_end_function.
35362         (darwin_x86_file_end): Remove.
35363         (TARGET_ASM_CODE_END): Define.
35364         * config/i386/i386.h (TARGET_ASM_FILE_END,
35365         NEED_INDICATE_EXEC_STACK): Don't define.
35366         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
35367         (TARGET_ASM_FILE_END): Define to darwin_file_end.
35368         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
35369         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
35370
35371         PR target/43498
35372         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
35373         at the beginning and final_end_function at the end.
35374         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
35375
35376 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35377
35378         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
35379         and Sun as TLS syntax.
35380         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
35381         * configure: Regenerate.
35382         * config.in: Regenerate.
35383         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
35384         (default_elf_asm_named_section): Use it.
35385         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
35386         (i386_output_dwarf_dtprel): Likewise.
35387         (output_addr_const_extra): Likewise.
35388         (output_pic_addr_const): Lowercase @GOTTPOFF.
35389         (output_addr_const_extra): Likewise.
35390         (output_pic_addr_const): Lowercase @GOTNTPOFF.
35391         (output_addr_const_extra): Likewise.
35392         (output_pic_addr_const): Lowercase @INDNTPOFF.
35393         (output_addr_const_extra): Likewise.
35394         (output_pic_addr_const): Lowercase @NTPOFF.
35395         (output_addr_const_extra): Likewise.
35396         (output_pic_addr_const): Lowercase @TPOFF.
35397         (output_addr_const_extra): Likewise.
35398         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
35399         (*tls_global_dynamic_64): Likewise.
35400         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
35401         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
35402
35403         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
35404         (ASM_OUTPUT_TLS_COMMON): Use it.
35405         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
35406
35407         PR target/38118
35408         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
35409         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
35410         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
35411         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
35412         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
35413         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
35414
35415 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35416
35417         * config/i386/i386.c (override_options): Don't accept
35418         -mtls-dialect=sun any longer.
35419         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
35420         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
35421         (*tls_local_dynamic_base_32_sun): Likewise.
35422         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
35423
35424 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
35425
35426         PR debug/43508
35427         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
35428         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
35429
35430         PR debug/43479
35431         * ira.c (adjust_cleared_regs): New function.
35432         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
35433
35434         PR debug/19192
35435         PR debug/43479
35436         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
35437         from gimple_block.
35438         * expr.c (expand_expr_real): Restore previous
35439         curr_insn_source_location and curr_insn_block after
35440         expand_expr_real_1 call.
35441         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
35442         instead of expand_expr_real_1.
35443
35444 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
35445
35446         PR rtl-optimization/43413
35447         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
35448         hard regs too.
35449
35450 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
35451
35452         PR target/43348
35453         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
35454         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
35455
35456 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35457
35458         * config/i386/i386.c (ix86_target_string): Add -mfma.
35459         Fix a typo in comment.
35460
35461 2010-03-22  Mike Stump  <mikestump@comcast.net>
35462
35463         PR target/23071
35464         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
35465         Don't overly align based upon packed packed fields.
35466
35467 2010-03-22  Jason Merrill  <jason@redhat.com>
35468
35469         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
35470         Use () rather than [], and move before the element type.
35471
35472 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35473
35474         * doc/configfiles.texi (Configuration Files): Removed
35475         fixinc/Makefile*, intl/Makefile.*.
35476         * doc/makefile.texi: Fixed markup. Abstract from version
35477         control system used.
35478         (Makefile): Removed obsolete java/parse.y example.
35479         * doc/sourcebuild.texi: Likewise.
35480         (Top Level): Added config, gnattools, libdecnumber, libgcc,
35481         libgomp, libssp.  Removed fastjar.
35482         (Miscellaneous Docs): Clarify location.
35483         Added COPYING3, COPYING3.LIB.
35484         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
35485
35486 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35487
35488         PR target/38085
35489         * config/i386/i386.c (x86_function_profiler)
35490         [!NO_PROFILE_COUNTERS]: Fix typo.
35491         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
35492         instead of callq.
35493
35494 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
35495             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35496
35497         * doc/sourcebuild.texi (Test Directives): Split into six
35498         subsections, with most of the current text in new subsections
35499         Directives, Selectors, and Final Actions.
35500         (Directives): Split list of test directives into multiple
35501         subsubsections.
35502         (Selectors): Describe use and syntax of selectors.
35503         (Effective-Target Keywords): Describe all existing keywords.
35504         (Add Options): Describe features for dg-add-options.
35505         (Require Support): Describe variants of dg-require-support.
35506         (Final Actions): Describe commands to use in dg-final.
35507
35508 2010-03-22  Michael Matz  <matz@suse.de>
35509
35510         PR middle-end/43475
35511         * recog.c (validate_replace_rtx_group): Replace also in
35512         REG_EQUAL and REG_EQUIV notes.
35513
35514 2010-03-22  Richard Guenther  <rguenther@suse.de>
35515
35516         PR tree-optimization/43390
35517         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
35518         sure vector extracts are type correct.
35519
35520 2010-03-22  Richard Guenther  <rguenther@suse.de>
35521
35522         PR middle-end/40106
35523         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
35524         x * sqrt (x) even when optimizing for size if the target
35525         has native support for sqrt.
35526
35527 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
35528
35529         * varasm.c (make_decl_rtl_for_debug): Also clear
35530         flag_mudflap for the duration of make_decl_rtl call.
35531
35532         PR debug/43443
35533         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
35534         locs from preserved VALUEs.
35535
35536 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35537
35538         PR middle-end/42718
35539         * pa.md (movmemsi): Set align to one if zero.
35540         (movmemdi): Likewise.
35541
35542 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
35543
35544         PR target/42321
35545         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
35546         with their corresponding prologue pushes.
35547
35548 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
35549
35550         PR target/43156
35551         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
35552         at the begining or end.
35553         (spu_expand_epilogue): Likewise.
35554
35555 2010-03-20  Richard Guenther  <rguenther@suse.de>
35556
35557         PR rtl-optimization/43438
35558         * combine.c (make_extraction): Properly zero-/sign-extend an
35559         extraction of the low part of a CONST_INT.  Also handle
35560         CONST_DOUBLE.
35561
35562 2010-03-19  Mike Stump  <mikestump@comcast.net>
35563
35564         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
35565         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
35566         (override_options): Use SUBTARGET32_DEFAULT_CPU.
35567
35568 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
35569
35570         PR c/43211
35571         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
35572         an error.
35573
35574 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
35575
35576         PR rtl-optimization/42258
35577         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
35578         use that may match DEF.
35579
35580         PR target/40697
35581         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
35582         the cost of loading the constant rather than assuming
35583         COSTS_N_INSNS (1).
35584         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
35585         outer code is AND, do the same tests as the andsi3 expander and
35586         return COSTS_N_INSNS (1) if and is cheap.
35587
35588         * optabs.c (avoid_expensive_constant): Fix formatting.
35589
35590 2010-03-19  Michael Matz  <matz@suse.de>
35591
35592         PR c++/43116
35593         * attribs.c (decl_attributes): When rebuilding a function pointer
35594         type use the same qualifiers as the original pointer type.
35595
35596 2010-03-19  Martin Jambor  <mjambor@suse.cz>
35597
35598         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
35599         and is_gimple_ip_invariant_address.
35600
35601 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35602
35603         Revert
35604         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35605
35606         * config/arm/arm.c (arm_override_options): Turn off
35607         flag_dwarf2_cfi_asm for AAPCS variants.
35608
35609 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35610
35611         PR target/43399
35612         * config/arm/arm.c (emit_multi_reg_push): Update comments.
35613         Use PRE_MODIFY instead of PRE_DEC.
35614         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
35615         (vfp_emit_fstmd): Likewise.
35616
35617 2010-03-19  Michael Matz  <matz@suse.de>
35618
35619         PR target/43305
35620         * builtins.c (expand_builtin_interclass_mathfn,
35621         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
35622         if that fails.
35623
35624 2010-03-19  Richard Guenther  <rguenther@suse.de>
35625
35626         PR tree-optimization/43415
35627         * tree-ssa-pre.c (phi_translate): Split out worker to ...
35628         (phi_translate_1): ... this.
35629         (phi_translate): Move all caching here.  Cache all NARY
35630         and REFERENCE translations.
35631
35632 2010-03-19  David S. Miller  <davem@davemloft.net>
35633
35634         With help from Eric Botcazou.
35635         * config/sparc/sparc.c: Include dwarf2out.h.
35636         (emit_pic_helper): Delete.
35637         (pic_helper_symbol_name): Delete.
35638         (pic_helper_emitted_p): Delete.
35639         (pic_helper_needed): New.
35640         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
35641         (get_pc_thunk_name): New.
35642         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
35643         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
35644         Set pic_helper_needed to true.  Don't call emit_pic_helper.
35645         (sparc_expand_prologue): Update load_pic_register call.
35646         (sparc_output_mi_thunk): Likewise.
35647         (sparc_file_end): Emit a hidden comdat symbol for the PIC
35648         thunk if possible.  Output CFI information as needed.
35649
35650 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
35651             Jack Howarth  <howarth@bromo.med.uc.edu>
35652
35653         PR target/36399
35654         * config/i386/i386.h: Fix ABI on darwin x86-32.
35655
35656 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
35657
35658         * tree.h: Declare make_decl_rtl_for_debug.
35659         * varasm.c (make_decl_rtl_for_debug): New.
35660         * dwarf2out.c (rtl_for_decl_location): Call it.
35661         * cfgexpand.c (expand_debug_expr): Call it.
35662
35663 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
35664
35665         PR bootstrap/43399
35666         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
35667         mem_mode.
35668
35669         PR bootstrap/43403
35670         * var-tracking.c (vt_init_cfa_base): Do nothing if
35671         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
35672
35673 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
35674
35675         PR debug/42873
35676         * var-tracking.c (canonicalize_vars_star): New.
35677         (dataflow_post_merge_adjust): Use it.
35678
35679 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
35680
35681         PR debug/43058
35682         * var-tracking.c (non_suitable_const): New function.
35683         (add_uses): For DEBUG_INSNs with constants, don't record any
35684         value, instead just the constant value itself.
35685         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
35686         is not VAR_LOC_UNKNOWN_P, set var to the constant.
35687         (emit_notes_in_bb): Likewise.
35688         (emit_note_insn_var_location): For onepart variables if
35689         cur_loc is a VOIDmode constant, use DECL_MODE.
35690
35691 2010-03-18  Martin Jambor  <mjambor@suse.cz>
35692
35693         PR middle-end/42450
35694         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
35695         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
35696         all non-clones.  Moved call redirection...
35697         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
35698         (cgraph_materialize_all_clones): Dispose of all
35699         combined_args_to_skip bitmaps.
35700         (verify_cgraph_node): Do not check for edges pointing to wrong
35701         nodes in inline clones.
35702         * tree-inline.c (copy_bb): Call
35703         cgraph_redirect_edge_call_stmt_to_callee.
35704         * ipa.c (cgraph_remove_unreachable_nodes): Call
35705         cgraph_node_remove_callees even when there are used clones.
35706
35707 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
35708
35709         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
35710
35711 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
35712
35713         PR target/43383
35714         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
35715         for 32bit.
35716
35717 2010-03-18  Michael Matz  <matz@suse.de>
35718
35719         PR middle-end/43419
35720         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
35721         into sqrt(x) if we need to preserve signed zeros.
35722
35723 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
35724             Eric Botcazou  <ebotcazou@adacore.com>
35725
35726         PR rtl-optimization/43360
35727         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
35728         note if we don't know its invariant status.
35729
35730 2010-03-18  Michael Matz  <matz@suse.de>
35731
35732         PR tree-optimization/43402
35733         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
35734         PHI chains of ssa names registered for update.
35735
35736 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
35737
35738         PR target/42427
35739         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
35740         non-offsettable and pre_modify update addressing.
35741         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
35742         and "2" alternatives "#".
35743         (*movdd_softfloat32): Make all alternatives "#";
35744         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
35745         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
35746         (*movdf_softfloat32): Make all alternatives "#";
35747         (movdi): Use the new DIFD mode iterator to create a common splitter
35748         for movdi, movdf and movdd patterns.
35749
35750 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
35751
35752         * common.opt (dumpdir): Remove redundant tab.
35753
35754 2010-03-17  Martin Jambor  <mjambor@suse.cz>
35755
35756         PR tree-optimization/43347
35757         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
35758         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
35759
35760 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
35761
35762         PR rtl-optimization/42216
35763         * regrename.c (create_new_chain): New function, broken out from...
35764         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
35765         appending a use to an empty chain.
35766         (build_def_use): Remove previous changes that convert OP_INOUT to
35767         OP_OUT operands; instead detect the case where an OP_INOUT operand
35768         uses a previously untracked register and create an empty chain for it.
35769
35770 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35771
35772         * doc/extend.texi (Function Attributes): Rewrite unfinished
35773         sentence in ms_abi documentation.
35774
35775 2010-03-17  Alan Modra  <amodra@gmail.com>
35776
35777         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
35778         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
35779         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
35780         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
35781
35782 2010-03-16  Richard Henderson  <rth@redhat.com>
35783
35784         PR middle-end/43365
35785         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
35786         (lower_try_finally): Save and restore eh_seq around the expansion
35787         of the try-finally.
35788
35789 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
35790
35791         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
35792         statements before splitting block.
35793
35794 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35795
35796         * doc/sourcebuild.texi (Testsuites): Fix markup.
35797         Use pathnames relative to gcc/testsuite.
35798         (Test Directives): Move description of how timeout is determined.
35799         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
35800         (C Tests): Correct gcc.misc-tests directory.
35801         Framework tests now live in gcc.test-framework.
35802
35803 2010-03-16  Richard Guenther  <rguenther@suse.de>
35804
35805         PR middle-end/43379
35806         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
35807         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
35808
35809 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
35810             Alexandre Oliva  <aoliva@redhat.com>
35811
35812         PR tree-optimization/42917
35813         * lambda-code.c (remove_iv): Skip debug statements.
35814         (lambda_loopnest_to_gcc_loopnest): Likewise.
35815         (not_interesting_stmt): Debug statements are not interesting.
35816
35817 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
35818
35819         PR debug/43051
35820         PR debug/43092
35821         * cselib.c (cselib_preserve_constants,
35822         cfa_base_preserved_val): New static variables.
35823         (preserve_only_constants): New function.
35824         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
35825         clear its REG_VALUES.  If cselib_preserve_constants, don't
35826         empty the whole hash table, but preserve there VALUEs with constants,
35827         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
35828         (cselib_preserve_cfa_base_value): New function.
35829         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
35830         (cselib_init): Change argument to int bitfield.  Set
35831         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
35832         is in it.
35833         (cselib_finish): Clear cselib_preserve_constants and
35834         cfa_base_preserved_val.
35835         * cselib.h (enum cselib_record_what): New enum.
35836         (cselib_init): Change argument to int.
35837         (cselib_preserve_cfa_base_value): New prototype.
35838         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
35839         * dse.c (dse_step1): Likewise.
35840         * cfgcleanup.c (thread_jump): Likewise.
35841         * sched-deps.c (sched_analyze): Likewise.
35842         * gcse.c (local_cprop_pass): Likewise.
35843         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
35844         If FN is non-NULL, call the callback always and whenever it returns
35845         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
35846         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
35847         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
35848         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
35849         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
35850         * var-tracking.c: Include recog.h.
35851         (bb_stack_adjust_offset): Remove.
35852         (vt_stack_adjustments): Don't call it, instead just gather the
35853         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
35854         (adjust_stack_reference): Remove.
35855         (compute_cfa_pointer): New function.
35856         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
35857         (struct adjust_mem_data): New type.
35858         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
35859         functions.
35860         (get_address_mode): New function.
35861         (replace_expr_with_values): Use it.
35862         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
35863         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
35864         (adjust_sets): Remove.
35865         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
35866         Use get_address_mode.
35867         (get_adjusted_src): Remove.
35868         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
35869         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
35870         (add_with_sets): Don't call adjust_sets.
35871         (fp_setter, vt_init_cfa_base): New functions.
35872         (vt_initialize): Change return type to bool.  Move most of pool etc.
35873         initialization to the beginning of the function from end.  Pass
35874         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
35875         If !frame_pointer_needed, call vt_stack_adjustment before mos
35876         vector is filled, call vt_init_cfa_base if argp/framep has been
35877         eliminated to sp.  If frame_pointer_needed and argp/framep has
35878         been eliminated to hard frame pointer, set
35879         hard_frame_pointer_adjustment and call vt_init_cfa_base after
35880         encountering fp setter in the prologue.  For MO_ADJUST, call
35881         log_op_type before pusing the op into mos vector, not afterwards.
35882         Call adjust_insn before cselib_process_insn/add_with_sets,
35883         call cancel_changes (0) afterwards.
35884         (variable_tracking_main_1): Adjust for vt_initialize calling
35885         vt_stack_adjustments and returning whether it succeeded or not.
35886
35887 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
35888
35889         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
35890         debug statements.
35891
35892 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
35893
35894         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
35895         has been set.
35896         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
35897         drap_reg has not been set.
35898
35899 2010-03-15  Michael Matz  <matz@suse.de>
35900
35901         PR middle-end/43300
35902         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
35903         use it to expand block copies.
35904         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
35905         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
35906         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
35907
35908 2010-03-15  Richard Guenther  <rguenther@suse.de>
35909
35910         PR tree-optimization/43367
35911         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
35912         elimination check.
35913
35914 2010-03-15  Richard Guenther  <rguenther@suse.de>
35915
35916         PR tree-optimization/43317
35917         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
35918
35919 2010-03-15  Martin Jambor  <mjambor@suse.cz>
35920
35921         PR tree-optimization/43141
35922         * tree-sra.c (create_abstract_origin): New function.
35923         (modify_function): Call create_abstract_origin.
35924
35925 2010-03-15  Chris Demetriou  <cgd@google.com>
35926
35927         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
35928         wasn't copied.
35929
35930 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35931
35932         PR middle-end/43354
35933         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
35934         call insert_out_of_ssa_copy for default definitions.
35935
35936 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35937
35938         * graphite-clast-to-gimple.c (my_long_long): Defined.
35939         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
35940         * graphite-sese-to-poly.c (my_long_long): Defined.
35941         (scop_ivs_can_be_represented): Use it.
35942
35943 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35944
35945         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
35946         graphite-max-bbs-per-function, and loop-block-tile-size.
35947         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
35948         with "maximum".
35949         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
35950
35951 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35952
35953         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
35954         forward declaration.
35955         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
35956         (add_upper_bounds_from_estimated_nit): New.
35957         (build_loop_iteration_domains): Use it.
35958
35959 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35960
35961         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
35962
35963 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35964
35965         PR middle-end/43306
35966         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
35967         should be an INTEGER_CST.  Also handle CASE_CONVERT.
35968
35969 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35970
35971         * graphite.c (graphite_initialize): To bound the number of bbs per
35972         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
35973         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
35974         * doc/invoke.texi: Document it.
35975
35976 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35977
35978         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
35979         * graphite-sese-to-poly.h (build_poly_scop): Same.
35980
35981 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35982
35983         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
35984         the number of parameters in the scop.  Use as an upper bound
35985         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
35986         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
35987         * doc/invoke.texi: Document it.
35988
35989 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
35990
35991         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
35992         * doc/c-tree.texi: Remove.
35993         * doc/generic.texi: Merge c-tree.texi here.
35994         * doc/gccint.texi (Trees): Remove menu entry.
35995         (c-tree.texi): Remove @include.
35996         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
35997         * doc/languages.texi (Reading RTL): Ditto.
35998
35999 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
36000
36001         PR target/42869
36002         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
36003
36004 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
36005
36006         PR middle-end/42431
36007         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
36008         code added to work around reload clobbering CONST insns.
36009
36010 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
36011
36012         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
36013         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
36014         (cselib_preserve_only_values): Remove retain argument, don't
36015         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
36016         * cselib.h (cselib_preserve_only_values): Remove retain argument.
36017         * var-tracking.c (micro_operation): Move insn field before union.
36018         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
36019         (struct variable_tracking_info_def): Remove n_mos field, change
36020         mos into a vector of micro_operations.
36021         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
36022         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
36023         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
36024         changing into a vector.
36025         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
36026         come before all other uops generated by add_stores.
36027         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
36028         argument removal.
36029         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
36030         a vector.  Run just one pass over the bbs instead of separate counting
36031         and computation phase.
36032         (vt_finalize): Free VTI (bb)->mos vector instead of array.
36033
36034         PR debug/43329
36035         * tree-inline.c (remap_decls): Put old_var rather than origin_var
36036         into *nonlocalized_list vector.
36037         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
36038         even if origin is non-NULL.
36039         (gen_variable_die): Likewise.
36040         (process_scope_var): Don't change origin.
36041         (gen_decl_die): Likewise.
36042         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
36043         before adding new edges instead of after it, fix moving over
36044         debug stmts.
36045
36046 2010-03-11  David S. Miller  <davem@davemloft.net>
36047
36048         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
36049         of four.
36050         * configure: Rebuild.
36051
36052 2010-03-11  Martin Jambor  <mjambor@suse.cz>
36053
36054         PR tree-optimization/43257
36055         * tree.c (assign_assembler_name_if_neeeded): New function.
36056         (free_lang_data_in_cgraph): Assembler name assignment moved to the
36057         above new function.
36058         * tree.h (assign_assembler_name_if_neeeded): Declare.
36059         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
36060         the function if needed.
36061
36062 2010-03-11  Chris Demetriou  <cgd@google.com>
36063
36064         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
36065         include/stdint-gcc.h, and include/stdint.h world-readable.
36066
36067 2010-03-11  Richard Guenther  <rguenther@suse.de>
36068
36069         PR tree-optimization/43255
36070         * tree-vrp.c (process_assert_insertions_for): Do not insert
36071         asserts for trivial conditions.
36072
36073 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36074
36075         PR tree-optimization/43280
36076         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
36077         generation.  Move calculation of size out of the if branch.
36078         (find_bswap): Modify compare number generation.
36079
36080 2010-03-11  Richard Guenther  <rguenther@suse.de>
36081
36082         PR lto/43200
36083         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
36084         (input_gimple_stmt): Fixup handled component types during
36085         operand read.  Also fix up decls in ADDR_EXPRs.
36086
36087 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
36088
36089         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
36090         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
36091
36092 2010-03-10  Jan Hubicka  <jh@suse.cz>
36093
36094         PR c/43288
36095         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
36096         * varasm.c (get_variable_section): Don't do that here...
36097         (make_decl_rtl): ... and here.
36098         (do_assemble_alias): Produce decl RTL.
36099         (assemble_alias): Likewise.
36100
36101 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
36102
36103         PR debug/43290
36104         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
36105         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
36106         of fde->vdrap_reg.
36107         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
36108         (based_loc_descr): Only express drap or vdrap regno based expressions
36109         using DW_OP_fbreg when not optimizing.
36110         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
36111         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
36112         REG_CFA_SET_VDRAP note.
36113
36114 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
36115
36116         PR tree-optimization/43236
36117         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
36118         error in calculation of base address in reverse iteration case.
36119         (generate_builtin): Take number of latch executions if the statement
36120         is in the latch.
36121
36122 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
36123
36124         PR middle-end/42859
36125         * tree-eh.c: Include pointer-set.h.
36126         (lower_eh_dispatch): Filter out duplicate case labels and
36127         remove the unneeded edge when the label is unused.  Return
36128         true when some edges are removed.
36129         (execute_lower_eh_dispatch): When any lowering resulted in
36130         removing an edge, also delete unreachable blocks.
36131
36132 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
36133
36134         PR bootstrap/43287
36135         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
36136         UNSPEC_MACHOPIC_OFFSET.
36137
36138 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
36139
36140         PR target/43294
36141         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
36142         (m68k_delegitimize_address): New function.
36143
36144 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
36145
36146         PR debug/43299
36147         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
36148
36149         PR debug/43299
36150         * var-tracking.c (adjust_sets): New function.
36151         (count_with_sets, add_with_sets): Use it.
36152         (get_adjusted_src): New inline function.
36153         (add_stores): Use it.
36154
36155         PR debug/43304
36156         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
36157         call cselib_dummy_expand_value_rtx_cb instead of
36158         cselib_expand_value_rtx_cb.
36159
36160         PR debug/43293
36161         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
36162         * config/i386/i386.c: Include debug.h and dwarf2out.h.
36163         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
36164         and .cfi_endproc around the pic thunks.
36165         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
36166         all queued unwind info register saves are saved before the call.
36167         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
36168         considered as sp-=4 for unwind info and the pop as sp+=4 which
36169         also clobbers dest, but doesn't actually restore it.
36170
36171         PR debug/43290
36172         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
36173         RTX_FRAME_RELATED_P.
36174
36175 2010-03-09  Jie Zhang  <jie@codesourcery.com>
36176
36177         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
36178         whitespaces in output template.
36179
36180 2010-03-09  Jie Zhang  <jie@codesourcery.com>
36181
36182         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
36183         out array boundary.
36184
36185 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
36186
36187         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
36188         builtins.exp in a separate job.
36189
36190 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36191
36192         * graphite-sese-to-poly.c (add_param_constraints): Use
36193         lower_bound_in_type and upper_bound_in_type.
36194
36195 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36196
36197         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
36198         instead of unsigned_type_node.
36199
36200 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36201             Reza Yazdani  <reza.yazdani@amd.com>
36202
36203         PR middle-end/43065
36204         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
36205         on pointer type parameters.
36206
36207 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
36208
36209         PR middle-end/42644
36210         PR middle-end/42130
36211         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
36212         handle conversions from pointer to integers.
36213         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
36214         induction variable, to be able to work with code generated by CLooG.
36215         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
36216         (build_poly_scop): Bail out if we cannot codegen a loop.
36217
36218 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
36219
36220         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
36221         code generation with gloog_error.
36222
36223 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36224
36225         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
36226         Call fold_convert on all the returned values.
36227         (expand_scalar_variables_expr): Pass to
36228         expand_scalar_variables_ssa_name the type of the resulting expression.
36229
36230 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36231
36232         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
36233         ppl_min_for_le_pointset.
36234         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
36235         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
36236
36237 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36238
36239         * graphite-dependences.c (map_into_dep_poly): Removed.
36240         (dependence_polyhedron_1): Use combine_context_id_scat.
36241
36242 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36243
36244         * graphite-poly.h (struct poly_scattering): Add layout documentation.
36245         (struct poly_bb): Same.
36246         (combine_context_id_scat): New.
36247
36248 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36249
36250         PR middle-end/42326
36251         * sese.c (name_defined_in_loop_p): Return false for default
36252         definitions.
36253
36254 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36255
36256         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
36257         and clean up the logic.
36258
36259 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
36260
36261         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
36262         early return.
36263
36264 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
36265
36266         * var-tracking.c (remove_cselib_value_chains): Define only for
36267         ENABLE_CHECKING.
36268         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
36269         delete_slot_part, emit_notes_for_differences_1): Don't call
36270         remove_cselib_value_chains here.
36271         (set_slot_part, emit_notes_for_differences_2): Don't call
36272         add_cselib_value_chains here.
36273         (preserved_values): New vector.
36274         (preserve_value): New function.
36275         (add_uses, add_stores, vt_add_function_parameters): Use it
36276         instead of cselib_preserve_value.
36277         (changed_values_stack): New vector.
36278         (check_changed_vars_0): New function.
36279         (check_changed_vars_1, check_changed_vars_2): Use it.
36280         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
36281         changed_values_stack VALUEs.
36282         (vt_emit_notes): For all preserved_values call
36283         add_cselib_value_chains.  If ENABLE_CHECKING call
36284         remove_cselib_value_chains before verifying value_chains is empty.
36285         Initialize and free changed_values_stack.
36286         (vt_initialize): Initialize preserved_values.
36287         (vt_finalize): Free preserved_values.
36288
36289 2010-03-08  Richard Guenther  <rguenther@suse.de>
36290
36291         PR tree-optimization/43269
36292         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
36293         region detection.
36294
36295 2010-03-08  Martin Jambor  <mjambor@suse.cz>
36296
36297         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
36298         (ipa_is_param_called): Removed.
36299         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
36300         (ipa_print_node_params): Do not print the called flag.
36301         (ipa_write_node_info): Do not stream the called flag.
36302         (ipa_read_node_info): Likewise.
36303
36304 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
36305
36306         PR debug/43176
36307         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
36308         * cselib.c (struct expand_value_data): Add dummy field.
36309         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
36310         dummy to false.
36311         (cselib_dummy_expand_value_rtx_cb): New function.
36312         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
36313         any rtl.
36314         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
36315         * var-tracking.c: Include pointer-set.h.
36316         (variable): Change n_var_parts to char from int.  Add
36317         cur_loc_changed and in_changed_variables fields.
36318         (variable_canonicalize): Remove.
36319         (shared_var_p): New inline function.
36320         (unshare_variable): Maintain cur_loc_changed and
36321         in_changed_variables fields.  If var was in changed_variables,
36322         replace it there with new_var.  Just copy cur_loc instead of
36323         resetting it to something else.
36324         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
36325         (dataflow_set_union): Don't call variable_canonicalize.
36326         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
36327         of their DEBUG_EXPR_TREE_DECLs.
36328         (canonicalize_loc_order_check): Verify that cur_loc is NULL
36329         and in_changed_variables and cur_loc_changed is false.
36330         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
36331         and cur_loc_changed.  Don't update cur_loc here.
36332         (variable_merge_over_src): Don't call variable_canonicalize.
36333         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
36334         removing loc that is equal to cur_loc, clear cur_loc,
36335         set cur_loc_changed and ensure variable_was_changed is called.
36336         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
36337         compare pointers in cur_loc check, if it is equal to loc,
36338         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
36339         (variable_different_p): Remove compare_current_location argument,
36340         don't compare cur_loc.
36341         (dataflow_set_different_1): Adjust variable_different_p caller.
36342         (variable_was_changed): If dv had some var in changed_variables
36343         already, reset in_changed_variables flag for it and propagate
36344         cur_loc_changed over to the new variable.  On empty var
36345         always set cur_loc_changed.  Set in_changed_variables on whatever
36346         var is added to changed_variables.
36347         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
36348         Use shared_var_p.  When removing loc that is equal to cur_loc,
36349         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
36350         end, don't set it to something else, just call variable_was_changed.
36351         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
36352         loc being removed, clear cur_loc and set cur_loc_changed.
36353         Set cur_loc_changed if all locations have been removed.
36354         (struct expand_loc_callback_data): New type.
36355         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
36356         allocated.  Always create SUBREGs if simplify_subreg failed.
36357         Prefer to use cur_loc, when that fails and still in
36358         changed_variables (and seen first time) recompute it.  Set
36359         cur_loc_changed of variables which had to change cur_loc and
36360         compute elcd->cur_loc_changed if any of the subexpressions used
36361         had to change cur_loc.
36362         (vt_expand_loc): Adjust to pass arguments in
36363         expand_loc_callback_data structure.
36364         (vt_expand_loc_dummy): New function.
36365         (emitted_notes): New variable.
36366         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
36367         that weren't used for any other decl in current
36368         emit_notes_for_changes call call vt_expand_loc_dummy to update
36369         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
36370         first loc_chain location if NULL before.  Always use just
36371         cur_loc instead of first loc_chain location.  When cur_loc_changed
36372         is false, when not --enable-checking=rtl just don't emit any note.
36373         When rtl checking, compute the note and assert it is the same
36374         as previous note.  Clear cur_loc_changed and in_changed_variables
36375         at the end before removing from changed_variables.
36376         (check_changed_vars_3): New function.
36377         (emit_notes_for_changes): Traverse changed_vars to call
36378         check_changed_vars_3 on each changed var.
36379         (emit_notes_for_differences_1): Clear cur_loc_changed and
36380         in_changed_variables.  Recompute cur_loc of new_var.
36381         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
36382         (vt_emit_notes): Initialize and destroy emitted_notes.
36383
36384 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
36385
36386         PR rtl-optimization/42220
36387         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
36388         Use verify_reg_tracked to determine if we should use OP_OUT rather
36389         than OP_INOUT.
36390         (build_def_use): If we see an in-out operand for a register that we
36391         know nothing about, treat is an output if possible, fail the block if
36392         not.
36393
36394 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
36395
36396         PR debug/42897
36397         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
36398         permanently.
36399
36400 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
36401
36402         PR debug/42897
36403         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
36404         uses of relevant DEFs that are dead outside the loop too.
36405
36406 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
36407
36408         * var-tracking.c (dataflow_set_merge): Swap src and src2.
36409         Reverted:
36410         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
36411         PR debug/41371
36412         * var-tracking.c (values_to_unmark): New variable.
36413         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36414         values_to_unmark vector.  Moved body to...
36415         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
36416         instead queue it into values_to_unmark vector.
36417         (vt_find_locations): Free values_to_unmark vector.
36418
36419 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
36420
36421         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
36422         (site.exp): Export them when plugins are enabled.
36423
36424 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
36425
36426         PR middle-end/42326
36427         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
36428         that contain scevs.
36429         (chrec_fold_multiply): Same.
36430
36431 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
36432
36433         PR c/43248
36434         * c-decl.c (build_compound_literal): Return early if init is
36435         an error_mark_node.
36436
36437 2010-03-04  Martin Jambor  <mjambor@suse.cz>
36438
36439         PR tree-optimization/43164
36440         PR tree-optimization/43191
36441         * tree-sra.c (type_consists_of_records_p): Reject records with
36442         zero-size bit-fields at the end.
36443
36444 2010-03-04  Mike Stump  <mikestump@comcast.net>
36445
36446         * Makefile.in (TAGS): Remove *.y.
36447
36448 2010-03-04  Richard Guenther  <rguenther@suse.de>
36449
36450         PR tree-optimization/40761
36451         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
36452         in reverse order.
36453         (my_rev_post_order_compute): New function.
36454         (init_pre): Call it.
36455
36456 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
36457
36458         PR middle-end/43209
36459         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
36460         decrease the cost of an IV candidate when the cost is infinite.
36461
36462 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36463
36464         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
36465         Use '3DNow!' for the extension of that name, ensure normal space
36466         after the string.
36467         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
36468
36469 2010-03-03  Jeff Law  <law@redhat.com>
36470
36471         * PR middle-end/32693
36472         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
36473         than gen_rtx_SUBREG.
36474         (extract_bit_field_1): Likewise.
36475
36476 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
36477
36478         * doc/sourcebuild.texi (Test directives): Document that arguments
36479         include-opts and exclude-opts are now optional for dg-skip-if,
36480         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
36481
36482 2010-03-03  Jason Merrill  <jason@redhat.com>
36483
36484         PR c++/12909
36485         * cgraph.h (varpool_node): Add extra_name field.
36486         * varpool.c (varpool_extra_name_alias): New.
36487         (varpool_assemble_decl): Emit extra name aliases.
36488         (varpool_mark_needed_node): Look past an extra name alias.
36489         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
36490         * lto-streamer-in.c (lto_input_tree): Read it.
36491         * lto-streamer-out.c (output_unreferenced_globals): Write it.
36492
36493 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36494
36495         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
36496         (sparc*-*-solaris2*): ...this.
36497
36498 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
36499
36500         PR debug/43229
36501         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
36502         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
36503         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
36504         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
36505
36506         PR debug/43237
36507         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
36508         fallthrough to default handling, just with want_address 0 instead of 2.
36509         For single element lists, add_AT_loc directly, otherwise create an
36510         artificial variable DIE and stick location list to it.
36511
36512         PR debug/43177
36513         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
36514         (VAL_EXPR_HAS_REVERSE): Define.
36515         (reverse_op): New function.
36516         (add_stores): For reversible operations add an extra MO_VAL_USE.
36517
36518 2010-03-02  Jason Merrill  <jason@redhat.com>
36519
36520         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
36521
36522 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
36523
36524         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
36525         (sparc64-*-linux*): Likewise.
36526         (sparc64-*-solaris2*): Include assembler files before linker ones.
36527         (sparc-*-solaris2*): Simplify and reorder to match previous case.
36528         * config/sparc/gas.h: Delete.
36529         * config/sparc/sol2-64.h: Add copyright notice.
36530         * config/sparc/sol2-gas-bi.h: Likewise.
36531         * config/sparc/sol2-gld.h: Likewise.
36532         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
36533         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
36534         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
36535         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
36536         (sparc_elf_asm_named_section): Rename into...
36537         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
36538
36539 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
36540
36541         * config/alpha/alpha.c (override_options): Fix -mtune error message.
36542
36543 2010-03-02  Jeff Law  <law@redhat.com>
36544
36545         PR middle-end/42431
36546         * reload1.c (rtx_p, substitute_stack): Declare.
36547         (substitute): Record addresses of changed rtxs.
36548         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
36549         Restore the original rtx when complete.
36550         (reload): Free subsitute_stack when complete.
36551
36552 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
36553
36554         * doc/gccint.texi (menu): Add Testsuites as a chapter.
36555         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
36556         new chapter.
36557         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
36558         LTO Testing, gcov Testing, profopt Testing, compat Testing,
36559         Torture Tests): Change from subsection to section.
36560
36561 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
36562             Steven Bosscher  <steven@gcc.gnu.org>
36563
36564         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
36565         instead of bb.
36566
36567 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
36568
36569         PR middle-end/42640
36570         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
36571         the assignment from the new induction variable to the assignment
36572         of the value from the original loop PHI function.
36573
36574 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
36575             Daniel Jacobowitz  <dan@codesourcery.com>
36576
36577         * doc/sourcebuild.texi (Test directives): Clarify options to
36578         dg-skip-if.
36579
36580 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36581
36582         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
36583         Disable cfi directives unless GCC and gas agree on using read-only
36584         .eh_frame sections for 64-bit.
36585         * configure: Regenerate.
36586
36587 2010-03-01  Richard Guenther  <rguenther@suse.de>
36588
36589         PR tree-optimization/43220
36590         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
36591         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
36592
36593 2010-03-01  Richard Guenther  <rguenther@suse.de>
36594             Martin Jambor  <mjambor@suse.cz>
36595
36596         PR middle-end/41250
36597         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
36598         gimplified parameters.
36599
36600 2010-03-01  Christian Bruel  <christian.bruel@st.com>
36601
36602         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
36603
36604 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
36605
36606         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
36607
36608 2010-03-01  Richard Guenther  <rguenther@suse.de>
36609
36610         PR middle-end/43213
36611         * expr.c (expand_assignment): Use the alias-oracle to tell
36612         if the rhs aliases the result decl.
36613
36614 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36615
36616         PR pch/14940
36617         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
36618         to sol_gt_pch_get_address.
36619         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
36620         64-bit, SPARC and x86.
36621         (sol_gt_pch_get_address): New function.
36622
36623 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
36624
36625         * toplev.h (inform_n, error_n): Declare.
36626         * diagnostic.c (inform_n, error_n): New function.
36627
36628 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
36629
36630         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
36631         has no rtl yet when processing local_decls, queue it and recheck
36632         if deferred stack allocation hasn't assigned it rtl.
36633
36634 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
36635
36636         * config/sh/sh.c (unspec_bbr_uid): New.
36637         (gen_block_redirect): Use it instead of INSN_UID.
36638         (gen_far_branch): Likewise.
36639
36640 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
36641
36642         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
36643         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
36644
36645 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36646
36647         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
36648         (Warning Options): -Wno-conversion-null is valid for
36649         Objective-C++ as well.
36650         * doc/tm.texi (Named Address Spaces): Likewise.
36651         * doc/plugins.texi (Plugins): Replace TABs with spaces.
36652         * doc/tree-ssa.texi (Tree SSA): Likewise.
36653
36654 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
36655
36656         PR bootstrap/43202
36657         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
36658         by default.  Don't set the default arch for
36659         i[34567]86-*-darwin*|x86_64-*-darwin*.
36660
36661 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
36662
36663         PR bootstrap/43202
36664         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
36665         default.  Set the default 32bit/64bit archs with $with_arch
36666         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
36667
36668 2010-02-27  Richard Guenther  <rguenther@suse.de>
36669
36670         PR tree-optimization/43186
36671         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
36672         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
36673         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
36674         unroller iterations.
36675
36676 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
36677
36678         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
36679         required and i[34567]86-*-* targets don't support 64bit ISA.
36680
36681 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
36682
36683         PR ada/43096
36684         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36685         the same alias set.
36686
36687 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
36688
36689         * config.gcc: Set the default arch at least to Prescott for
36690         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
36691         if SSE math is enabled.
36692
36693 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36694
36695         * diagnostic.c (diagnostic_initialize): Update.
36696         (diagnostic_report_diagnostic): Test inhibit_notes_p for
36697         informative notes.
36698         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
36699         (diagnostic_inhibit_notes): New.
36700         * toplev.c (process_options): inhibit notes with -fcompare-debug.
36701
36702 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36703
36704         PR c/20631
36705         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
36706         * doc/standards.texi: Likewise.
36707         * doc/extend.texi: Likewise.
36708         * doc/trouble.texi: Likewise.
36709         * doc/cppopts.texi: Likewise.
36710         * doc/install.texi: Likewise.
36711         * c.opt (std=c90,std=gnu90): New options.
36712         * c-opts.c (c_common_handle_option): Handle them.
36713
36714 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36715
36716         PR c/24577
36717         * c-decl.c (undeclared_variable): Use an informative note.
36718
36719 2010-02-26  Richard Guenther  <rguenther@suse.de>
36720
36721         PR tree-optimization/43186
36722         * gimple.h (gimple_fold): Remove.
36723         * gimple.c (gimple_fold): Remove.  Inline into single user ...
36724         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
36725         Try harder for conditions.
36726
36727 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
36728
36729         PR debug/43190
36730         * function.c (used_types_insert): Don't skip through named pointer
36731         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
36732         and it is different from the main variant's type.
36733
36734 2010-02-26  Nick Clifton  <nickc@redhat.com>
36735
36736         * config/rx/rx.md (sminsi3): Remove bogus alternative.
36737
36738 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
36739
36740         * config.gcc: Support --with-fpmath=sse for x86.
36741
36742         * config/i386/ssemath.h: New.
36743
36744         * doc/install.texi (--with-fpmath=sse): Documented.
36745
36746 2010-02-26  Richard Guenther  <rguenther@suse.de>
36747
36748         PR tree-optimization/43188
36749         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
36750         vector types of over-aligned element type.
36751
36752 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
36753
36754         PR target/43175
36755         * config/i386/i386.c (expand_vec_perm_blend): Use correct
36756         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
36757
36758 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
36759
36760         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
36761
36762 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
36763
36764         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
36765         * var-tracking.c: Include diagnostic.h.
36766         (debug_dv): New function.
36767         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
36768
36769         PR debug/43160
36770         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
36771         (add_value_chain, add_value_chains, remove_value_chain,
36772         remove_value_chains): Handle DEBUG_EXPRs.
36773         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
36774
36775         PR debug/43161
36776         * regcprop.c (struct queued_debug_insn_change): New type.
36777         (struct value_data_entry): Add debug_insn_changes field.
36778         (struct value_data): Add n_debug_insn_changes field.
36779         (debug_insn_changes_pool): New variable.
36780         (free_debug_insn_changes, apply_debug_insn_changes,
36781         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
36782         (kill_value_one_regno): Call free_debug_insn_changes if needed.
36783         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
36784         fields.
36785         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
36786         changes for them.
36787         (copyprop_hardreg_forward_1): Don't call apply_change_group for
36788         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
36789         changes, call cprop_find_used_regs via note_stores.
36790         (copyprop_hardreg_forward): When copying vd from predecessor
36791         which has any queued DEBUG_INSN changes, make sure the pointers are
36792         cleared.  At the end call df_analyze and then if there are any
36793         DEBUG_INSN changes queued at the end of some basic block for still
36794         live registers, apply them.
36795         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
36796
36797 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
36798
36799         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
36800         (arm*-*-*): Ditto.
36801
36802 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
36803
36804         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
36805         targets.  Set the default with_cpu/with_arch from arch/cpu.
36806         Allow x86-64 and native for with_cpu/with_arch.
36807
36808 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
36809
36810         * ebitmap.c: Change calls to verify_popcount with calls to
36811         sbitmap_verify_popcount.
36812         (ebitmap_clear_bit): Fixed map->cacheindex test and
36813         map>cache update when bit clearing results in an empty
36814         element.
36815
36816 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
36817
36818         PR target/43154
36819         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
36820         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
36821         and support both V2DF and V2DI modes.
36822         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
36823         support both V2DF and V2DI modes.
36824         (general): Delete trailing whitespace from a few patterns.
36825
36826         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36827         V2DF/V2DI interleave high/low builtins.
36828
36829         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
36830         new VSX builtins.
36831
36832         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
36833         interleave high/low functions.
36834
36835 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
36836
36837         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
36838         #pragma extern_prefix.
36839
36840 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
36841
36842         PR debug/43166
36843         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
36844         BLKmode, assert op0 is a MEM and just adjust its mode.
36845
36846         PR debug/43165
36847         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
36848         if bitpos isn't multiple of mode's bitsize.
36849
36850 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36851
36852         * c.opt (-ftemplate-depth=): New.
36853         (-ftemplate-depth-): Deprecate.
36854         * optc-gen.awk: Handle -ftemplate-depth=.
36855         * opth-gen.awk: Likewise.
36856         * c-opts.c (c_common_handle_option): Likewise.
36857         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
36858
36859 2010-02-24  Jason Merrill  <jason@redhat.com>
36860
36861         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
36862
36863 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36864
36865         * cfg.c (alloc_aux_for_block): Remove inline.
36866         (alloc_aux_for_edge): Likewise.
36867
36868 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36869
36870         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
36871
36872 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36873
36874         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
36875         * config/i386/sol2-gas.h: New file.
36876         * config.gcc (i[34567]86-*-solaris2*): Use it.
36877
36878 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36879
36880         PR c/43128
36881         * c-typeck.c (ep_convert_and_check): New.
36882         (build_conditional_expr): Use it.
36883         (build_binary_op): Likewise.
36884
36885 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
36886
36887         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
36888
36889         PR debug/43150
36890         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
36891         bounds even for -O+.
36892         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
36893         expr needs to have DECL_NAME set.
36894
36895 2010-02-24  Nick Clifton  <nickc@redhat.com>
36896
36897         * config/mep/mep.c: Include gimple.h.
36898         (mep_function_uses_sp): Delete unused function.
36899         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
36900         parameters.  Use unsigned integers to count args.  Return a
36901         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
36902
36903 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36904
36905         PR target/43107
36906         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
36907         greater or equal to nelt instead of 2 * nelt.
36908         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
36909         with nelt - 1.
36910
36911 2010-02-23  Jason Merrill  <jason@redhat.com>
36912
36913         PR debug/42800
36914         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
36915         in cfun->local_decls even if they have register types.
36916
36917         PR c++/42837
36918         * stor-layout.c (place_field): Don't warn about unnecessary
36919         DECL_PACKED if the type is packed.
36920
36921 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36922
36923         PR target/43139
36924         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
36925         GOTOFF relocs, even when the base reg isn't pic pointer.
36926
36927 2010-02-23  Michael Matz  <matz@suse.de>
36928
36929         PR debug/43077
36930         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
36931         (expand_gimple_basic_block): Generate and use debug temps if there
36932         are debug uses left after the last real use of TERed ssa names.
36933         Unlink debug immediate uses when they are expanded.
36934
36935 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36936
36937         PR 43123
36938         * config/i386/i386.c (override_options): Reorganise to provide
36939         better error messages.
36940
36941 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36942
36943         PR middle-end/43083
36944         * graphite-scop-detection.c (create_single_exit_edge): Move
36945         the call to find_single_exit_edge to....
36946         (create_sese_edges): ...here.  Don't handle multiple edges
36947         exiting the function.
36948         (build_graphite_scops): Don't handle multiple edges
36949         exiting the function.
36950
36951 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36952
36953         PR middle-end/43097
36954         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
36955         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
36956
36957 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36958
36959         PR middle-end/43026
36960         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
36961
36962 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36963
36964         PR c++/43126
36965         * c-typeck.c (convert_arguments): Print declaration location.
36966         * c-common.c (validate_nargs): Rename as
36967         builtin_function_validate_nargs.
36968         (check_builtin_function_arguments): Update.
36969
36970 2010-02-22  Richard Guenther  <rguenther@suse.de>
36971
36972         PR lto/43045
36973         * tree-inline.c (declare_return_variable): Use the type of
36974         the call stmt lhs if available.
36975
36976 2010-02-22  Duncan Sands  <baldrick@free.fr>
36977
36978         * passes.c (register_pass): Always consider all pass lists when
36979         ref_pass_instance_number is zero.
36980
36981 2010-02-22  Richard Guenther  <rguenther@suse.de>
36982
36983         PR tree-optimization/42749
36984         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
36985         parameter.  Do arithmetic in the original type.
36986         (update_accumulator_with_ops): Likewise.
36987         (adjust_accumulator_values): Adjust.
36988
36989 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36990
36991         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
36992         (QI to BLKmode splitter): New splitter.
36993
36994 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
36995
36996         * config/i386/i386.c (initial_ix86_tune_features): Turn on
36997         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
36998
36999 2010-02-22  Richard Guenther  <rguenther@suse.de>
37000
37001         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
37002
37003 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
37004
37005         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
37006         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
37007         ($(T)crti.o, $(T)crtn.o): Remove rules.
37008
37009 2010-02-21  Tobias Burnus  <burnus@net-b.de>
37010
37011         PR fortran/35259
37012         * doc/invoke.texi (-fassociative-math): Document that this
37013         option is automatically enabled for Fortran.
37014
37015 2010-02-20  David S. Miller  <davem@davemloft.net>
37016
37017         * configure.ac: Test if linker and assembler properly support
37018         GOTDATA_OP relocations.
37019         * configure: Rebuild.
37020         * config.in: Likewise.
37021         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
37022         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
37023         (movsi_high_pic): Likewise.
37024         (movdi_lo_sum_pic): Likewise.
37025         (movdi_high_pic): Likewise.
37026         (movsi_pic_gotdata_op): New pattern.
37027         (movdi_pic_gotdata_op): Likewise.
37028         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
37029         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
37030
37031 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
37032
37033         PR target/43067
37034         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
37035         attribute to ssemul.
37036         (xop_mulv2div2di3_high): Ditto.
37037
37038 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37039
37040         PR c++/35669
37041         * c.opt (Wconversion-null): New option.
37042         * doc/invoke.texi (Wconversion-null): Document.
37043
37044 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37045
37046         * common.opt (Wlarger-than-): Add Undocumented.
37047
37048 2010-02-19  Mike Stump  <mikestump@comcast.net>
37049
37050         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
37051
37052 2010-02-19  Jason Merrill  <jason@redhat.com>
37053
37054         PR target/40332
37055         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
37056         * configure: Likewise.
37057
37058 2010-02-20  Alan Modra  <amodra@gmail.com>
37059
37060         PR middle-end/42344
37061         * cgraph.h (cgraph_make_decl_local): Declare.
37062         * cgraph.c (cgraph_make_decl_local): New function.
37063         (cgraph_make_node_local): Use it.
37064         * cgraphunit.c (cgraph_function_versioning): Likewise.
37065         * ipa.c (function_and_variable_visibility): Likewise.
37066
37067 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
37068
37069         PR bootstrap/43121
37070         * except.c (sjlj_emit_function_enter): Don't call
37071         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
37072         directly.
37073         * rtl.h (add_reg_br_prob_note): Remove prototype.
37074
37075 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37076
37077         PR 41779
37078         * c-common.c (conversion_warning): Remove widening conversions
37079         before checking the conversion of integers to reals.
37080
37081 2010-02-19  Mike Stump  <mikestump@comcast.net>
37082
37083         PR middle-end/43125
37084         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
37085
37086         PR objc/43061
37087         * cgraphunit.c (process_function_and_variable_attributes): Check
37088         DECL_PRESERVE_P instead of looking up attribute "used".
37089         * ipa-pure-const.c (check_decl): Likewise.
37090         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
37091         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
37092         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
37093         instead of attribute "used".
37094         * config/sol2-c.c (solaris_pragma_init): Likewise.
37095         (solaris_pragma_fini): Likewise.
37096
37097 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
37098
37099         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
37100         Use XCNEW instead of xcalloc.
37101         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
37102         XNEW instead of xmalloc.
37103         (get_fields): Use XNEWVEC instead of xmalloc.
37104
37105         PR debug/43084
37106         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
37107         populate vars array.
37108         (create_new_general_access): For debug stmts just reset value.
37109         (get_stmt_accesses): For accesses within debug stmts just record them
37110         using add_access_to_acc_sites instead of preventing the peeling or
37111         counting them as accesses.
37112
37113         PR middle-end/42233
37114         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
37115
37116 2010-02-19  Richard Guenther  <rguenther@suse.de>
37117
37118         PR tree-optimization/42916
37119         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
37120         instructions.
37121
37122 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
37123
37124         * configure.ac: Replace all uses of changequote in macro arguments
37125         with proper quoting.
37126
37127 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
37128
37129         PR middle-end/42233
37130         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
37131
37132 2010-02-19  Richard Guenther  <rguenther@suse.de>
37133
37134         PR tree-optimization/42944
37135         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
37136         test for aliasing with errno.
37137
37138 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
37139
37140         PR middle-end/42233
37141         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
37142         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
37143         * dojump.c: Include output.h.
37144         (inv): New inline function.
37145         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
37146         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
37147         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
37148         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
37149         argument, pass it down to other calls.
37150         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
37151         add REG_BR_PROB note to the conditional jump.
37152         * cfgexpand.c (add_reg_br_prob_note): Removed.
37153         (expand_gimple_cond): Don't call it, add the probability
37154         as last argument to jumpif_1/jumpifnot_1.
37155         * Makefile.in (dojump.o): Depend on output.h.
37156         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
37157         callers.
37158         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
37159         * stmt.c (do_jump_if_equal): Likewise.
37160         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
37161         * loop-unswitch.c (compare_and_jump_seq): Likewise.
37162         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
37163         Likewise.
37164         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
37165         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
37166         jumpifnot_1 callers.
37167         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
37168         callers.
37169         (store_expr): Adjust jumpifnot caller.
37170         (store_constructor): Adjust jumpif caller.
37171
37172         PR middle-end/42233
37173         * gimplify.c (gimple_boolify): For __builtin_expect call
37174         gimple_boolify also on its first argument.
37175
37176 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
37177
37178         * configure.ac (gnu-unique-object): Wrap regexps using [] in
37179         changequote block.
37180         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
37181         * configure: Regenerated.
37182
37183 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37184
37185         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
37186         lang_hooks.types_compatible_p instead of comptypes.
37187
37188 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37189
37190         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
37191         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
37192         if __prefer_thumb__ is defined.
37193
37194 2010-02-18  Martin Jambor  <mjambor@suse.cz>
37195
37196         PR tree-optimization/43066
37197         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
37198         array with zero-sized element type.
37199
37200 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
37201
37202         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
37203         rtx, allocate struct var_loc_node here and return it to the
37204         caller, and only if it is actually needed.
37205         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
37206         move it earlier and return immediately if it returns NULL.
37207
37208 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
37209
37210         * config/sparc/gas.h: New file.  Restore
37211         TARGET_ASM_NAMED_SECTION to its ELF default.
37212         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
37213         check !HAVE_GNU_AS.
37214         * config/sparc/sparc.c (sparc_elf_asm_named_section):
37215         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
37216         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
37217         after sparc/sysv4.h.
37218
37219 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
37220
37221         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
37222
37223 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
37224
37225         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
37226         patterns from predicated pattern.
37227
37228 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
37229
37230         PR target/43103
37231         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
37232         for insn mnemonic suffix.
37233
37234 2010-02-17  Richard Guenther  <rguenther@suse.de>
37235
37236         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
37237         to loop PHI nodes.
37238
37239 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
37240
37241         PR debug/42918
37242         * caller-save.c (save_call_clobbered_regs): If BB ends with
37243         a DEBUG_INSN, move any notes in between last real insn and the last
37244         DEBUG_INSN after the last DEBUG_INSN.
37245
37246 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
37247
37248         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
37249         Fix return type.  Fix argument type.  Explain meaning of return value.
37250
37251 2010-02-16  Richard Guenther  <rguenther@suse.de>
37252
37253         PR tree-optimization/41043
37254         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
37255         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
37256         statements ...
37257         (vrp_visit_phi_node): ... but only for loop PHI nodes.
37258
37259 2010-02-16  Ira Rosen  <irar@il.ibm.com>
37260
37261         PR tree-optimization/43074
37262         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
37263         * tree-vect-loop.c (vect_analyze_loop_operations): Add
37264         vectorizable cycles in hybrid SLP check.
37265         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
37266
37267 2010-02-16  Richard Guenther  <rguenther@suse.de>
37268
37269         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
37270         (true_dependence): If memrefs_conflict_p computes must-alias
37271         trust it.  Move TBAA check after offset-based disambiguation.
37272         (canon_true_dependence): Likewise.
37273
37274 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
37275
37276         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
37277         * doc/invoke.texi: Document it.
37278         * var-tracking.c: Include toplev.h and params.h.
37279         (vt_find_locations): Return bool indicating success.  Compute
37280         hash sizes unconditionally.  Check new parameter, report.
37281         (variable_tracking_main_1): Check vt_find_locations results and
37282         retry.  Renamed from...
37283         (variable_tracking_main): ... this.  New wrapper to preserve
37284         flag_var_tracking_assignments.
37285         * Makefile.in (var-tracking.o): Adjust dependencies.
37286
37287 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
37288             Jakub Jelinek  <jakub@redhat.com>
37289
37290         PR target/42854
37291         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
37292         if weak_import attribute is present.
37293         * config/darwin.c (machopic_select_section): Likewise.
37294
37295 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
37296
37297         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
37298         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
37299         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
37300         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
37301
37302         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
37303         types.
37304
37305         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
37306         Fix argument types.
37307
37308         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
37309         Rewrite text to refer to the names.
37310
37311 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
37312
37313         * config/i386/i386-builtin-types.def
37314         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
37315         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
37316         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
37317         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
37318         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
37319         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
37320         IX86_BUILTIN_VPERMIL2PS256.
37321         (MULTI_ARG_4_DF2_DI_I): Defined.
37322         (MULTI_ARG_4_DF2_DI_I1): Defined.
37323         (MULTI_ARG_4_SF2_SI_I): Defined.
37324         (MULTI_ARG_4_SF2_SI_I1): Defined.
37325         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
37326         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
37327         __builtin_ia32_vpermil2ps256.
37328         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37329         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37330         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
37331         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37332         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37333         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
37334         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
37335         CODE_FOR_xop_vpermil2v8sf3.
37336         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
37337         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
37338         * config/i386/xopintrin.h (_mm_permute2_pd): New.
37339         (_mm256_permute2_pd): New.
37340         (_mm_permute2_ps): New.
37341         (_mm256_permute2_ps): New.
37342
37343 2010-02-15  Nick Clifton  <nickc@redhat.com>
37344
37345         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
37346         boolean parameters.  Use emit_jump_insn when emitting a pop
37347         instruction containing a return insn.
37348         (push): Use 'true' rather than '1' as second parameter to F.
37349         (h8300_expand_prologue): Likewise.
37350         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
37351         (h8300_expand_epilogue): Likewise.
37352
37353 2010-02-15  Richard Guenther  <rguenther@suse.de>
37354
37355         PR middle-end/43068
37356         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
37357         if that is zero.
37358
37359 2010-02-15  Nick Clifton  <nickc@redhat.com>
37360
37361         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
37362         delta.
37363
37364 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
37365
37366         * intl.c (fake_ngettext): New function.
37367         * intl.h (fake_ngettext): Declare.
37368         (ngettext): Define macro.
37369         * collect2.c (notice_translated): New function.
37370         (main): Use notice_translated and ngettext.
37371         * collect2.h (notice_translated): Declare.
37372
37373 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
37374
37375         * reorg.c (delete_computation): Comment fixes.
37376         * caller-save.c (setup_save_areas): Idem.
37377         * sel-sched-dump.c (dump_lv_set): Idem.
37378         * rtl.def: Idem.
37379
37380 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37381
37382         * config/s390/s390.c (s390_sched_init): New function.
37383         (TARGET_SCHED_INIT): Target hook defined.
37384
37385 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
37386             Jack Howarth  <howarth@bromo.med.uc.edu>
37387             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
37388
37389         PR target/42982
37390         Partial revert of unintended change in fix for PR41605.
37391         * config/darwin.h: Fix typo.
37392         * config/darwin9.h: Same.
37393
37394 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
37395
37396         * c-pch.c (pch_init): Clear v.
37397
37398 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
37399
37400         PR middle-end/42930
37401         * graphite-scop-detection.c (graphite_can_represent_scev): Call
37402         graphite_can_represent_init for MULT_EXPR.
37403
37404 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
37405
37406         PR middle-end/42914
37407         PR middle-end/42530
37408         * graphite-sese-to-poly.c (remove_phi): New.
37409         (translate_scalar_reduction_to_array): Call remove_phi.
37410
37411 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
37412
37413         PR middle-end/42771
37414         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
37415         * graphite-clast-to-gimple.h (gloog): Update declaration.
37416         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
37417         * graphite-poly.h (struct poly_bb): Add missing comments.
37418         (struct scop): Add poly_scop_p field.
37419         (POLY_SCOP_P): New.
37420         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
37421         * graphite.c (graphite_transform_loops): Build the polyhedral
37422         representation for each scop before code generation.
37423         * sese.c (rename_variables_in_operand): Removed.
37424         (rename_variables_in_expr): Return the renamed expression.
37425         (rename_sese_parameters): New.
37426         * sese.h (rename_sese_parameters): Declared.
37427
37428 2010-02-11  Richard Guenther  <rguenther@suse.de>
37429
37430         PR tree-optimization/42998
37431         * tree-ssa-pre.c (create_expression_by_pieces): Treat
37432         POINTER_PLUS_EXPR properly.
37433
37434 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
37435             Changpeng Fang  <changpeng.fang@amd.com>
37436
37437         PR middle-end/40886
37438         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
37439         the cost of an IV candidate when the IV is used in a test against zero.
37440
37441         * gcc.dg/tree-ssa/ivopts-3.c: New.
37442
37443 2010-02-11  Richard Guenther  <rguenther@suse.de>
37444
37445         PR lto/41664
37446         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
37447         pointer-vs-decl case by swapping refs.  Handle some cases
37448         of pointer-vs-decl disambiguations more conservatively.
37449         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
37450         to false after expanding.
37451
37452 2010-02-11  Richard Guenther  <rguenther@suse.de>
37453
37454         PR driver/43021
37455         * gcc.c (process_command): Handle LTO file@offset case more
37456         appropriately.
37457
37458 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
37459
37460         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
37461         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
37462         of DEBUG_INSNs.
37463         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
37464
37465         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
37466         if MEM's mode size isn't DWARF2_ADDR_SIZE.
37467         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
37468         Optimize eq/ne comparisons when both arguments are known to be
37469         zero-extended.
37470         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
37471         Don't mask operands unnecessarily if they are known to be already
37472         zero-extended.
37473
37474 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
37475
37476         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
37477         instead of loop.
37478
37479 2010-02-10  Richard Guenther  <rguenther@suse.de>
37480
37481         PR tree-optimization/43017
37482         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
37483         for wrapping signed arithmetic.
37484
37485 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
37486
37487         PR debug/43010
37488         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
37489         if no debug info should be emitted for it.
37490
37491 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
37492
37493         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
37494         note when flag_exceptions is set.
37495
37496 2010-02-10  Duncan Sands  <baldrick@free.fr>
37497
37498         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
37499
37500 2010-02-10  Richard Guenther  <rguenther@suse.de>
37501
37502         PR c/43007
37503         * tree.c (get_unwidened): Handle constants.
37504         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
37505
37506 2010-02-10  Martin Jambor  <mjambor@suse.cz>
37507
37508         PR lto/42985
37509         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
37510         check for variable argument counts independently.
37511
37512 2010-02-10  Christian Bruel  <christian.bruel@st.com>
37513
37514         PR target/42841
37515         * config/sh/sh.c (find_barrier): Increase length for non delayed
37516         conditional branches.
37517
37518 2010-02-10  Christian Bruel  <christian.bruel@st.com>
37519
37520         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
37521
37522 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
37523
37524         * builtins.c (set_builtin_user_assembler_name): Also handle
37525         ffs if int is smaller than word.
37526
37527 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
37528
37529         PR middle-end/42973
37530         * ira-conflicts.c (get_dup): Remove.
37531         (process_reg_shuffles): Add new parameter.  Use it as an
37532         additional guard for copy generation.
37533         (add_insn_allocno_copies): Rewrite.
37534
37535 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
37536
37537         * common.opt (fsched2-use-traces): Preserved for backward
37538         compatibility.
37539         * doc/invoke.texi: Remove the documentation about option
37540         -fsched2-use-traces.
37541         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
37542         flag_sched2_use_traces.
37543         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
37544         the backward compatibility flag section.
37545
37546 2010-02-09  Richard Guenther  <rguenther@suse.de>
37547
37548         PR tree-optimization/43008
37549         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
37550         make HEAP variables initialized from global memory if they
37551         are not known builtin functions.
37552         (find_func_aliases): Adjust.
37553
37554 2010-02-09  Richard Guenther  <rguenther@suse.de>
37555
37556         PR tree-optimization/43000
37557         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
37558         arithmetic manually.
37559
37560 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
37561
37562         PR tree-optimization/42931
37563         * tree-loop-linear.c (try_interchange_loops): Don't call
37564         double_int_mul if estimated_loop_iterations failed.
37565
37566 2010-02-08  Martin Jambor  <mjambor@suse.cz>
37567
37568         PR middle-end/42898
37569         * tree-sra.c (build_accesses_from_assign): Do not mark in
37570         should_scalarize_away_bitmap if stmt has volatile ops.
37571         (sra_modify_assign): Do not process assigns piecemeal if if stmt
37572         has volatile ops.
37573
37574 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
37575
37576         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
37577
37578 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
37579
37580         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
37581         before the pattern.
37582
37583 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
37584
37585         PR middle-end/42946
37586         * df-core.c (df_finish_pass): Change type of saved_flags to int.
37587
37588 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
37589
37590         PR middle-end/42988
37591         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
37592         to unknown_dependence.
37593         (graphite_legal_transform_dr): Handle the unknown_dependence.
37594         (graphite_carried_dependence_level_k): Same.
37595
37596 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
37597
37598         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
37599
37600 2010-02-07  Richard Guenther  <rguenther@suse.de>
37601
37602         PR middle-end/42991
37603         * expr.c (get_inner_reference): Always initialize *pbitsize.
37604
37605 2010-02-07  Richard Guenther  <rguenther@suse.de>
37606
37607         PR middle-end/42956
37608         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
37609         new ARRAY_REFs on variable size element or minimal index arrays.
37610         Complete.
37611         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
37612         gimple_fold_indirect_ref.
37613
37614 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
37615
37616         PR target/42957
37617         * arm.c (arm_override_options): Just return if the user has specified
37618         an invalid fpu name.
37619
37620 2010-02-03  Jason Merrill  <jason@redhat.com>
37621
37622         PR c++/42870
37623         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
37624         i386_pe_maybe_record_exported_symbol.
37625
37626 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
37627
37628         PR target/42924
37629         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37630         (pa_delegitimize_address): New function.
37631
37632 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
37633
37634         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
37635         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
37636
37637 2010-02-05  Richard Guenther  <rguenther@suse.de>
37638
37639         PR lto/42762
37640         * lto-streamer-in.c (get_resolution): Deal with references
37641         to undefined functions.
37642
37643 2010-02-05  Richard Guenther  <rguenther@suse.de>
37644
37645         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
37646         (fold_const_aggregate_ref): Likewise.
37647         (ccp_fold_stmt): Substitute loads.
37648         (maybe_fold_reference): Verify types before substituting.
37649         Unshare properly.
37650         (fold_gimple_assign): Unshare properly.
37651         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
37652
37653 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
37654
37655         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
37656         for rs6000_gen_cell_microcode.
37657
37658 2010-02-04  Richard Guenther  <rguenther@suse.de>
37659
37660         PR rtl-optimization/42952
37661         * dse.c (const_or_frame_p): Remove MEM handling.
37662
37663 2010-02-04  Nick Clifton  <nickc@redhat.com>
37664
37665         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
37666         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37667         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
37668         (mn10300_asm_output_mi_thunk): New function.
37669         (mn10300_can_output_mu_thunk): New function.
37670         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
37671         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
37672         (FUNCTION_ARG): Delete incorrect comment.
37673
37674 2010-02-03  Jason Merrill  <jason@redhat.com>
37675
37676         PR c++/40138
37677         * fold-const.c (operand_equal_p): Handle erroneous types.
37678
37679 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
37680
37681         * config/h8300/h8300.md (can_delay): Fix attibute condition.
37682
37683 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
37684
37685         PR rtl-optimization/42941
37686         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
37687         of xmalloc.
37688
37689 2010-02-03  Jason Merrill  <jason@redhat.com>
37690
37691         PR c++/35652
37692         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
37693
37694 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
37695
37696         PR debug/42896
37697         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
37698         (cselib_reset_table): Renamed from...
37699         (cselib_reset_table_with_next_value): ... this.
37700         (cselib_get_next_uid): Renamed from...
37701         (cselib_get_next_unknown_value): ... this.
37702         * cselib.c (next_uid): Renamed from...
37703         (next_unknown_value): ... this.
37704         (cselib_clear_table): Adjust.
37705         (cselib_reset_table): Adjust.  Renamed from...
37706         (cselib_reset_table_with_next_value): ... this.
37707         (cselib_get_next_uid): Adjust.  Renamed from...
37708         (cselib_get_next_unknown_value): ... this.
37709         (get_value_hash): Use hash.
37710         (cselib_hash_rtx): Likewise.
37711         (new_cselib_val): Adjust.  Set and dump uid.
37712         (cselib_lookup_mem): Pass next_uid as hash.
37713         (cselib_subst_to_values): Likewise.
37714         (cselib_log_lookup): Dump uid.
37715         (cselib_lookup): Pass next_uid as hash.  Adjust.
37716         (cselib_process_insn): Adjust.
37717         (cselib_init): Initialize next_uid.
37718         (cselib_finish): Adjust.
37719         (dump_cselib_table): Likewise.
37720         * dse.c (canon_address): Dump value uid.
37721         * print-rtl.c (print_rtx): Print value uid.
37722         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
37723         (dvuid): New type.
37724         (dv_uid): New function, sort of renamed from...
37725         (dv_htab_hash): ... this, reimplemented in terms of it and...
37726         (dv_uid2hash): ... this.  New.
37727         (variable_htab_eq): Drop excess assertions.
37728         (tie_break_pointers): Removed.
37729         (canon_value_cmp): Compare uids.
37730         (variable_post_merge_New_vals): Print uids.
37731         (vt_add_function_parameters): Adjust.
37732         (vt_initialize): Reset table.  Adjust.
37733
37734 2010-02-03  Richard Guenther  <rguenther@suse.de>
37735
37736         PR tree-optimization/42944
37737         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
37738         (call_may_clobber_ref_p_1): Likewise.  Properly handle
37739         malloc and calloc clobbering errno.
37740
37741 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
37742
37743         * doc/invoke.texi: Fix name of sched1 dump.
37744
37745         * opts.c (decode_options): Set flag_tree_switch_conversion
37746         only conditionally on optimize >= 2.
37747
37748         * gcse.c: Assorted comment fixes in pass description.
37749
37750 2010-02-03  Anthony Green  <green@moxielogic.com>
37751
37752         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
37753         nop padding in order to maintain alignment of storage location of
37754         target function address.
37755         (moxie_trampoline_init): Store target function address at newly
37756         aligned location.
37757         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
37758         to 32.
37759         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
37760
37761 2010-02-03  Richard Guenther  <rguenther@suse.de>
37762
37763         PR middle-end/42927
37764         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
37765
37766 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37767
37768         * config.gcc: Reenable check for obsolete targets.
37769         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
37770         mips-sgi-irix6.[0-4]*.
37771
37772 2010-02-02  Nick Clifton  <nickc@redhat.com>
37773
37774         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
37775         constant size of 4 as being the same as 0.
37776         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
37777         can take values in the range 0..4.
37778
37779 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
37780
37781         PR java/41991
37782         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
37783         as _darwin10_Unwind_FindEnclosingFunction().
37784         * libgcc-libsystem.ver: New.
37785
37786 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
37787
37788         PR target/41399
37789         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
37790         implicitly set registers.
37791
37792 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
37793
37794         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
37795         (arm_override_options): Allow automatic selection of the thread
37796         pointer register if thumb2.
37797         (legitimize_pic_address): Improve code sequences for Thumb2.
37798         (arm_call_tls_get_addr): Likewise.
37799         (legitimize_tls_address): Likewise.
37800         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
37801         (pic_load_addr_32bit): ... this.  New named pattern.
37802         * thumb2.md (pic_load_addr_thumb2): Delete.
37803         (pic_load_dot_plus_four): Delete.
37804         (tls_load_dot_plus_four): New named pattern.
37805
37806 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37807
37808         PR libgomp/29986
37809         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
37810         Document fix for TLS bug.
37811
37812 2010-01-31  Richard Guenther  <rguenther@suse.de>
37813
37814         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
37815         conservatively correct.
37816
37817 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37818
37819         PR target/42850
37820         Revert:
37821         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37822
37823         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37824
37825 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
37826
37827         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
37828
37829 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
37830
37831         * config.gcc: Adjust order of makefile fragments for mingw targets.
37832
37833 2010-01-31  Richard Guenther  <rguenther@suse.de>
37834
37835         PR middle-end/42898
37836         * gimplify.c (gimplify_init_constructor): For volatile LHS
37837         initialize a temporary.
37838
37839 2010-01-31  Matthias Klose  <doko@ubuntu.com>
37840
37841         * configure.ac: Fix __stack_chk_fail check for cross builds configured
37842         --with-headers
37843         * configure: Regenerate.
37844
37845 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
37846
37847         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37848         the same alias set and their sizes different constantness.
37849         (aliasing_component_refs_p): Revert 2009-10-24 change.
37850
37851 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37852
37853         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
37854         unused.
37855
37856 2010-01-29  Richard Guenther  <rguenther@suse.de>
37857
37858         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
37859         Assert we successfully updated the call.
37860
37861 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
37862
37863         PR rtl-optimization/42889
37864         * df.h (df_set_bb_dirty_nonlr): New prototype.
37865         * df-core.c (df_set_bb_dirty_nonlr): New function.
37866         * df-scan.c (df_insn_rescan): Call it instead of
37867         df_set_bb_dirty for DEBUG_INSNs.
37868
37869 2010-01-29  Richard Guenther  <rguenther@suse.de>
37870
37871         PR middle-end/37448
37872         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
37873         quadratic behavior in most cases.
37874
37875 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
37876
37877         PR target/42891
37878         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
37879         in the call to gen_x86_movsicc_0_m1.
37880
37881 2010-01-28  Richard Guenther  <rguenther@suse.de>
37882
37883         PR tree-optimization/42871
37884         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
37885
37886 2010-01-28  Richard Guenther  <rguenther@suse.de>
37887
37888         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
37889         into call arguments.
37890
37891 2010-01-28  Richard Guenther  <rguenther@suse.de>
37892
37893         PR middle-end/42883
37894         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
37895         the forwarder if the destination is an EH landing pad.
37896
37897 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
37898
37899         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
37900         block list passed to gimple_duplicate_sese_tail.
37901         (parallelize_loops): Avoid parallelization when the function
37902         has_nonlocal_label.
37903         Avoid parallelization when the preheader is IRREDUCIBLE.
37904         Try to optimize when estimated_loop_iterations_int is unresolved.
37905         Add the loop's location to the dump file.
37906         * tree-cfg.c (add_phi_args_after_redirect): Remove.
37907         (gimple_duplicate_sese_tail): Remove the check for the latch.
37908         Redirect nexits to the exit block.
37909         Remove handling of the incoming edges to the latch.
37910         Redirect the backedge from the copied latch to the exit bb.
37911
37912 2010-01-28  Michael Matz  <matz@suse.de>
37913
37914         PR target/42881
37915         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
37916         Wrap force_reg into a sequence, emit it before user.
37917
37918 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
37919
37920         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
37921         (arm_rev): New.
37922         (arm_legacy_rev): Likewise.
37923         (thumb_legacy_rev): Likewise.
37924
37925 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37926
37927         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
37928         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
37929         on MEM's address failed, try avoid_constant_pool_reference and
37930         recurse if it returned something different.
37931         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
37932         address, try avoid_constant_pool_reference and recurse if it
37933         returned something different.
37934         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
37935         address and avoid_constant_pool_reference returned something
37936         different, don't set have_address.
37937
37938 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
37939
37940         PR debug/42861
37941         * var-tracking.c (val_store): Add modified argument, obey it.
37942         Adjust callers.
37943         (count_uses): Move down logging of main.
37944         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
37945         don't need resolution.
37946         (emit_notes_in_bb): Likewise.
37947
37948 2010-01-27  Richard Guenther  <rguenther@suse.de>
37949
37950         PR middle-end/42878
37951         * tree-inline.c (remap_decl): Delay remapping of SSA name
37952         default definitions until we need them.
37953
37954 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37955
37956         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37957         (rs6000_delegitimize_address): New function.
37958
37959         * config/s390/s390.c (s390_delegitimize_address): Call
37960         delegitimize_mem_from_attrs.
37961
37962         PR middle-end/42874
37963         * tree-inline.c (cannot_copy_type_1): Removed.
37964         (copy_forbidden): Don't forbid copying of functions containing
37965         records/unions with variable length fields.
37966
37967 2010-01-27  Christian Bruel  <christian.bruel@st.com>
37968
37969         Revert:
37970         PR target/42841
37971         * config/sh/sh.c (find_barrier): Increase length for non delayed
37972         conditional branches.
37973
37974 2010-01-27  Matthias Klose  <doko@ubuntu.com>
37975
37976         * configure.ac (gnu-unique-object): Fix ldd version check.
37977         * configure: Regenerate.
37978
37979 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37980
37981         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
37982         HAVE_GNU_AS value.
37983         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
37984         Test for HAVE_GNU_AS value.
37985
37986 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37987
37988         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
37989         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
37990         INT64_TYPE): Define.
37991         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
37992         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
37993         INT_LEAST64_TYPE): Define.
37994         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
37995         UINT_LEAST64_TYPE): Define.
37996         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
37997         INT_FAST64_TYPE): Define.
37998         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
37999         UINT_FAST64_TYPE): Define.
38000         (INTMAX_TYPE, UINTMAX_TYPE): Define.
38001         (INTPTR_TYPE, UINTPTR_TYPE): Define.
38002         (SIG_ATOMIC_TYPE): Define.
38003
38004 2010-01-26  Richard Guenther  <rguenther@suse.de>
38005
38006         * df-scan.c (df_scan_set_bb_info): Remove assert.
38007         (df_insn_rescan_debug_internal): Merge asserts.
38008         (df_install_ref): Likewise.
38009         (df_mark_reg): Use bitmap_set_range.
38010         (df_hard_reg_used_p): Remove assert.
38011         (df_hard_reg_used_count): Likewise.
38012
38013 2010-01-26  Richard Guenther  <rguenther@suse.de>
38014
38015         PR rtl-optimization/42685
38016         * web.c (web_main): Ignore DEBUG_INSNs.
38017
38018 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
38019
38020         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
38021
38022         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
38023         Fix types of fndecl and arglist parameters.
38024
38025 2010-01-26  Richard Guenther  <rguenther@suse.de>
38026
38027         PR middle-end/42806
38028         * tree-eh.c (unsplit_eh): Skip debug insns.
38029
38030 2010-01-26  Richard Guenther  <rguenther@suse.de>
38031
38032         PR tree-optimization/42250
38033         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
38034
38035 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
38036
38037         PR fortran/42866
38038         * omp-low.c (expand_omp_sections): Only use single_pred if
38039         l2_bb is single_pred_p.
38040
38041 2010-01-25  Christian Bruel  <christian.bruel@st.com>
38042
38043         PR target/42841
38044         * config/sh/sh.c (find_barrier): Increase length for non delayed
38045         conditional branches.
38046         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
38047
38048 2010-01-24  David S. Miller  <davem@davemloft.net>
38049
38050         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
38051         define if not using GAS.
38052         * config/sparc/sparc.c (sparc_elf_asm_named_section):
38053         Likewise.  Delete SECTION_MERGE code, which is only applicable
38054         when using GAS.
38055
38056 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
38057
38058         PR c++/42748
38059         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
38060         mangling of va_list in system headers.
38061
38062 2010-01-23  Toon Moene  <toon@moene.org>
38063
38064         * tree-predcom.c (combine_chains): Return NULL, not false.
38065
38066 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
38067
38068         * tree-loop-distribution.c (distribute_loop): Fix declaration and
38069         initialization of variable res to agree with return type.
38070
38071 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
38072
38073         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
38074         * tree-sra.c: Add include of expr.h.
38075
38076 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
38077
38078         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
38079         insert the debug stmt on the single non-EH edge from the stmt.
38080
38081 2010-01-22  Richard Henderson  <rth@redhat.com>
38082
38083         PR tree-opt/42833
38084         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
38085         the RHS until after generate_subtree_copies has insertted its
38086         code before the current statement.
38087
38088 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
38089
38090         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
38091
38092         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
38093
38094 2010-01-21  Martin Jambor  <mjambor@suse.cz>
38095
38096         PR tree-optimization/42585
38097         * tree-sra.c (struct access): New field grp_total_scalarization.
38098         (dump_access): Dump the new field.
38099         (should_scalarize_away_bitmap): New variable.
38100         (cannot_scalarize_away_bitmap): Likewise.
38101         (sra_initialize): Allocate new bitmaps.
38102         (sra_deinitialize): Free new bitmaps.
38103         (create_access_1): New function.
38104         (create_access): Parts moved to create_access_1.
38105         (type_consists_of_records_p): New function.
38106         (completely_scalarize_record): Likewise.
38107         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
38108         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
38109         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
38110         access.
38111         (analyze_all_variable_accesses): Completely scalarize small eligible
38112         records.
38113
38114 2010-01-21  Martin Jambor  <mjambor@suse.cz>
38115
38116         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
38117
38118 2010-01-21  Andrew Haley  <aph@redhat.com>
38119
38120         * gcc.c (process_command): Move lang_specific_driver before
38121         setting cc_libexec_prefix.
38122
38123 2010-01-21  Richard Guenther  <rguenther@suse.de>
38124
38125         PR middle-end/19988
38126         * fold-const.c (negate_expr_p): Pretend only negative
38127         real constants are easily negatable.
38128
38129 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
38130             Jason Merrill  <jason@redhat.com>
38131
38132         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
38133         (TYPE_TRANSPARENT_AGGR): this, for union and record.
38134         * calls.c (initialize argument_information): Handle it.
38135         * c-common.c (handle_transparent_union_attribute): Use new name.
38136         * c-decl.c (finish_struct): Ditto.
38137         * c-typeck.c (type_lists_compatible_p): Ditto.
38138         (convert_for_assignment): Use new name and also handle record.
38139         * function.c (aggregate_value_p): Handle it.
38140         (pass_by_reference): Ditto.
38141         (assign_parm_data_types): Ditto.
38142         * print-tree.c (print_node): Ditto.
38143         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
38144         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
38145         * tree.c (first_field): New fn.
38146
38147 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
38148
38149         PR target/42818
38150         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
38151         even when linking statically, for now.
38152
38153 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
38154
38155         PR debug/42715
38156         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
38157         without a cselib val.
38158         (count_uses): Accept MO_VAL_SET with no val on stores.
38159         (add_stores): Likewise.
38160
38161 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
38162
38163         * var-tracking.c (check_value_val): Add a compile time assertion.
38164         (dv_is_decl_p): Simplify.
38165         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
38166         gcc_assert if ENABLE_CHECKING.
38167
38168 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
38169
38170         PR debug/42782
38171         * var-tracking.c: Include tree-flow.h.
38172         (mem_dies_at_call): New.
38173         (dataflow_set_preserve_mem_locs): Use it.
38174         (dataflow_set_remove_mem_locs): Likewise.
38175         (dump_var): Renamed from dump_variable.  Adjust all callers.
38176         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
38177         * Makefile.in (var-tracking.o): Adjust deps.
38178
38179 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
38180
38181         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
38182
38183 2010-01-20  Richard Guenther  <rguenther@suse.de>
38184
38185         PR tree-optimization/42717
38186         * tree-ssa-dce.c (get_live_post_dom): Remove.
38187         (forward_edge_to_pdom): Take an arbitrary edge to copy
38188         degenerate PHI args from.
38189         (remove_dead_stmt): Use the first post-dominator even if it
38190         does not contain live statements as redirection destination.
38191
38192 2010-01-20  Richard Guenther  <rguenther@suse.de>
38193
38194         * tree-inline.c (estimate_num_insns): Handle EH builtins.
38195
38196 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
38197
38198         * sel-sched.c (create_speculation_check): Remove set but not used
38199         variable twin.
38200         (try_transformation_cache): Remove set but not used variable ds.
38201         (calculate_privileged_insns): Remove set but not used variables
38202         cur_insn and min_spec_insn.
38203         (find_best_expr): Remove set but not used variable avail_n.
38204         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
38205         variable e.
38206         * cgraphunit.c (assemble_thunk): Remove set but not used variable
38207         false_label.
38208         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
38209         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
38210         new_scop_exit_edge.
38211
38212 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
38213
38214         PR bootstrap/42786
38215         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
38216         cpu types.  Add support for *-sse3 cpu types.
38217         (x86_64-*-*): Ditto.
38218
38219 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
38220
38221         PR middle-end/42803
38222         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
38223         argument, call initializer_constant_valid_p_1 instead of
38224         initializer_constant_valid_p, pass CACHE to it, return NULL
38225         immediately if first call returns NULL.
38226         (initializer_constant_valid_p_1): New function.
38227         (initializer_constant_valid_p): Use it.
38228
38229 2010-01-20  Thomas Quinot  <quinot@adacore.com>
38230
38231         * tree.def (PLACEHOLDER_EXPR): Fix comment.
38232
38233 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
38234
38235         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
38236         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
38237         (loc_list_from_tree): Don't handle unsigned division.  Handle
38238         signed modulo using DW_OP_{over,over,div,mul,minus}.
38239         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
38240         modulo instead of signed.
38241
38242 2010-01-20  DJ Delorie  <dj@redhat.com>
38243
38244         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
38245         (Fpa): Pass it
38246         (h8300_emit_stack_adjustment): Propogate it.
38247         (push): Pass it.
38248         (h8300_expand_prologue): Likewise.
38249         (h8300_expand_epilogue): Likewise.
38250
38251 2010-01-19  Michael Matz  <matz@suse.de>
38252
38253         PR tree-optimization/41783
38254         * tree-data-ref.c (toplevel): Include flags.h.
38255         (dump_data_dependence_relation):  Also dump the inputs if the
38256         result will be unknown.
38257         (split_constant_offset_1): Look through some conversions.
38258         * tree-predcom.c (determine_roots_comp): Restart a new chain if
38259         the offset from last element is too large.
38260         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
38261         (reassociate_to_the_same_stmt): Handle vector registers.
38262         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
38263         (e.g. conversions).
38264         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
38265         wide_prolog_niters argument, emit widening instructions.
38266         (vect_do_peeling_for_alignment): Adjust caller, use widened
38267         variant of the iteration cound.
38268         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
38269
38270 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38271
38272         PR target/38697
38273         * config/arm/neon-testgen.m (emit_automatics): New parameter
38274         features. Adjust for Fixed_return_reg feature.
38275         (test_intrinsic): Call emit_automatics with new feature.
38276         * config/arm/neon.ml: Update copyright years.
38277         (features): New Fixed_return_reg feature.
38278         (ops): Update feature for Vget_low.
38279
38280 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
38281
38282         PR tree-optimization/42719
38283         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
38284         stmt uses.
38285
38286         PR debug/42728
38287         * fwprop.c (all_uses_available_at): Return false if def_set dest
38288         is a REG that is used in def_insn.
38289
38290 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
38291
38292         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
38293
38294         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
38295         Add argument names.
38296
38297         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
38298
38299         * target.h (struct gcc_target) <secondary_reload>: Change type
38300         of last argument to secondary_reload_info *.
38301
38302 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
38303
38304         PR target/42774
38305         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
38306         memory references with unaligned offsets.  Remove CQImode handling.
38307         (unaligned_memory_operand): Return 1 for memory references with
38308         unaligned offsets.  Remove CQImode handling.
38309
38310 2010-01-18  Richard Guenther  <rguenther@suse.de>
38311
38312         PR middle-end/39954
38313         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
38314         builtin calls.
38315
38316 2010-01-18  Richard Guenther  <rguenther@suse.de>
38317
38318         PR tree-optimization/42781
38319         * tree-ssa-structalias.c (find_what_var_points_to): Skip
38320         restrict processing only if the original variable was artificial.
38321
38322 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
38323
38324         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
38325         find number of popped argument bytes.
38326
38327         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
38328         Fix the text that describes the return value for invalid insns.
38329
38330         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
38331
38332         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
38333         Clarify what 'cost of the -dependence' is.  Fix quoting.
38334
38335         * toplev.c (default_get_pch_validity): Rename argument to "sz".
38336         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
38337
38338 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
38339
38340         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
38341         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
38342
38343 2010-01-17  Richard Guenther  <rguenther@suse.de>
38344
38345         PR middle-end/42248
38346         * function.c (split_complex_args): Take a VEC to modify.
38347         (assign_parms_augmented_arg_list): Build a VEC instead of
38348         a chain of PARM_DECLs.
38349         (assign_parms_unsplit_complex): Take a VEC of arguments.
38350         Do not fixup unmodified parms.
38351         (assign_parms): Deal with the VEC.
38352         (gimplify_parameters): Likewise.
38353
38354 2010-01-17  Richard Guenther  <rguenther@suse.de>
38355
38356         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
38357         node existence check.
38358         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
38359         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
38360         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
38361         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
38362         (gimple_execute_on_growing_pred): Likewise.
38363
38364 2010-01-17  Richard Guenther  <rguenther@suse.de>
38365
38366         PR tree-optimization/42773
38367         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
38368         (compute_antic_aux): Likewise.
38369         (compute_partial_antic_aux): Likewise.
38370
38371 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
38372
38373         PR debug/42767
38374         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
38375         and US_TRUNCATE.
38376
38377 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
38378
38379         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
38380         appearance.
38381
38382         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
38383         Fix markup for strict argument.
38384
38385         (TARGET_SCHED_REORDER2): Fix argument types.
38386
38387         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
38388         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
38389
38390         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
38391         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
38392
38393         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
38394         Add argument name.
38395
38396         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
38397         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
38398         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
38399         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
38400         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
38401
38402         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
38403
38404         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
38405
38406         (TARGET_ASM_RELOC_RW_MASK): Add return type.
38407         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
38408
38409         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
38410
38411         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
38412         Use prototype.
38413
38414         (TARGET_ASM_NAMED_SECTION): Fix argument list.
38415
38416         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
38417         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
38418
38419         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
38420
38421         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
38422
38423         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
38424         referring to it.  Fix language.
38425
38426         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
38427
38428         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
38429
38430         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
38431
38432         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
38433
38434         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
38435         '@var{stream}.  Remove stray 'and'.
38436
38437         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
38438
38439         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
38440
38441         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
38442
38443         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
38444         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
38445
38446         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
38447         Fix description of return value.
38448         Rename argument "sz" to "len."
38449
38450         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
38451         Clarify meaning of 'true' return value.
38452
38453         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
38454
38455         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
38456         rep_mode versus mode_rep.
38457
38458         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
38459
38460         (TARGET_BUILTIN_DECL): Fix name.
38461
38462         (TARGET_COMMUTATIVE_P): Fix type of first argument.
38463
38464         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
38465
38466         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
38467
38468         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
38469
38470         (TARGET_RELAXED_ORDERING): Use @deftypevr.
38471
38472         (TARGET_GET_DRAP_RTX): Note that this is a hook.
38473         Clarify language.
38474
38475         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
38476         Rename argument tm_fn to md_fn.
38477
38478         (TARGET_OPTION_PRINT): Fix argument list.
38479
38480 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
38481
38482         PR target/42664
38483         * config/i386/i386.c (ix86_fixup_binary_operands):
38484         Revert FMA4 fixup of operands.
38485
38486 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38487
38488         PR other/42525
38489         * Makefile.in (write_entries_to_file, install-plugin):
38490         Use \012 instead of \n with tr.
38491
38492 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
38493
38494         * configure.ac (HAVE_AS_REF): New C macro.
38495         * configure: Regenerate.
38496         * config.in: Likewise.
38497         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
38498         if HAVE_AS_REF.
38499         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
38500         if HAVE_AS_REF.
38501
38502 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
38503
38504         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
38505
38506         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
38507
38508         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
38509
38510         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
38511
38512         (TARGET_IN_SMALL_DATA_P): Fix argument type.
38513
38514         (TARGET_BINDS_LOCAL_P): Fix argument type.
38515
38516         (TARGET_ASM_FILE_END): Use prototype.
38517
38518         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
38519
38520         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
38521
38522         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
38523
38524         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
38525
38526         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
38527         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
38528
38529         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
38530         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
38531
38532         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
38533         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
38534         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
38535         (TARGET_ADDR_SPACE_CONVERT): Likewise.
38536
38537         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
38538
38539         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
38540
38541         (TARGET_INIT_BUILTINS): Use prototype.
38542
38543         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
38544         Put 'const char *' in braces.  Fix parameter types.
38545         (TARGET_INVALID_CONVERSION): Fix parameter types.
38546         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
38547         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
38548
38549         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
38550         Fix argument type.
38551
38552         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
38553
38554         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
38555
38556 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
38557
38558         * doc/tm.texi (TARGET_HELP): Fix return type.
38559
38560         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
38561         in braces.  Fix argument types.
38562
38563         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
38564
38565         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
38566
38567         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
38568
38569         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
38570         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
38571
38572         (TARGET_MANGLE_TYPE): Fix argument types.
38573
38574         (TARGET_IRA_COVER_CLASSES): Use prototype.
38575
38576         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
38577
38578         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
38579
38580         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
38581
38582         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
38583
38584         (TARGET_CALLEE_COPIES): Fix argument types.
38585
38586         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
38587
38588         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
38589
38590         (TARGET_FUNCTION_VALUE): Fix argument types.
38591
38592         (TARGET_RETURN_IN_MSB): Fix argument type.
38593
38594         (TARGET_RETURN_IN_MEMORY): Fix argument types.
38595
38596         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
38597
38598         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
38599
38600         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
38601         agree with return type.
38602
38603         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
38604
38605 2010-01-15  Jing Yu  <jingyu@google.com>
38606
38607         PR rtl-optimization/42691
38608         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
38609         a pseudo to a constant and are merged, and adjust comments.
38610
38611 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
38612
38613         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
38614
38615 2010-01-15  Richard Guenther  <rguenther@suse.de>
38616
38617         PR middle-end/42739
38618         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
38619         labels of computed or non-local gotos to the destination.
38620         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
38621         landing pad label is the first label.
38622
38623 2010-01-15  Richard Guenther  <rguenther@suse.de>
38624
38625         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
38626
38627 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
38628
38629         PR target/42747
38630         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
38631         to allow generation of the xssqrtdp instruction on power7.
38632         (sqrtdf2_fpr): Ditto.
38633
38634 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
38635
38636         PR middle-end/42674
38637         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
38638         functions with noreturn attribute.
38639
38640         PR c++/42608
38641         * varasm.c (declare_weak): Add weak attribute to decl if it
38642         doesn't have one already.
38643         (assemble_external): Only add decls to weak_decls if they also
38644         have weak attribute.
38645
38646 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
38647
38648         * var-tracking.c (var_reg_delete): Don't delete the association
38649         between REGs and values or one-part variables if the register
38650         isn't clobbered.
38651
38652 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
38653
38654         PR debug/42657
38655         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
38656         because its first operand is a non-localized variable.
38657
38658 2010-01-14  Martin Jambor  <mjambor@suse.cz>
38659
38660         PR tree-optimization/42706
38661         * tree-sra.c (encountered_recursive_call): New variable.
38662         (encountered_unchangable_recursive_call): Likewise.
38663         (sra_initialize): Initialize both new variables.
38664         (callsite_has_enough_arguments_p): New function.
38665         (scan_function): Call decl and flags check only for IPA-SRA, check
38666         whether there is a recursive call and whether it has enough arguments.
38667         (all_callers_have_enough_arguments_p): New function.
38668         (convert_callers): Look for recursive calls only when
38669         encountered_recursive_call is set.
38670         (ipa_early_sra): Bail out either if
38671         !all_callers_have_enough_arguments_p or
38672         encountered_unchangable_recursive_call.
38673
38674 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38675
38676         * sel-sched.c: Add 2010 to copyright years.
38677         * sel-sched-ir.c: Likewise.
38678         * sel-sched-ir.h: Likewise.
38679
38680 2010-01-14  Martin Jambor  <mjambor@suse.cz>
38681
38682         PR tree-optimization/42714
38683         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
38684         constructors specially.
38685
38686 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38687
38688         * config/i386/drivers-i386.c (detect_caches_intel):
38689         Add l2sizekb parameter and fill in.
38690         (host_detect_local_cpu): Add l2sizekb, fill in.
38691         Add Atom small cache heuristic.
38692
38693 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38694
38695         * config/i386/drivers-i386.c (detect_caches_cpuid4):
38696         Add level3 parameter and fill in.
38697         (detect_caches_intel): Handle level3 cache.
38698
38699 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38700
38701         * config/i386/drivers-i386.c (host_detect_local_cpu):
38702         Fix core duo detection.
38703
38704 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38705
38706         * config/i386/drivers-i386.c (host_detect_local_cpu):
38707         Fix Atom detection.
38708
38709 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38710
38711         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
38712         (rs6000_variable_issue_1): this.  Use...
38713         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
38714
38715 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38716
38717         * sel-sched-ir.c (sel_restore_other_notes): Rename to
38718         sel_restore_notes.  Update all callers.  Call reemit_notes
38719         for all insns.
38720
38721 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38722
38723         PR rtl-optimization/42246
38724         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
38725         loops.
38726
38727 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38728
38729         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
38730         all successors is the same as number of successors in current region.
38731
38732 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38733
38734         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
38735         to rename is not separable.  Otherwise check that its LHS is not NULL.
38736
38737 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38738
38739         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
38740
38741 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38742
38743         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
38744         available registers when failed to discover LHS register class.
38745         Fix indentation.  Update comment.
38746
38747 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38748             Alexander Monakov  <amonakov@ispras.ru>
38749
38750         PR rtl-optimization/42389
38751         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
38752         to can_issue_more.
38753         (advance_state_on_fence): Likewise.
38754         (sel_target_adjust_priority): Print debug output only when
38755         sched_verbose >= 4, not 2.
38756         (get_expr_cost): Do not issue all unique insns on the next cycle.
38757         (fill_insns): Initialize can_issue_more from the value saved
38758         with the fence.
38759         * sel-sched-ir.c (flist_add): New parameter issue_more.
38760         Init FENCE_ISSUE_MORE with it.
38761         (merge_fences): Likewise.
38762         (init_fences): Update call to flist_add.
38763         (add_to_fences, add_clean_fence_to_fences)
38764         (add_dirty_fence_to_fences): Likewise.
38765         (move_fence_to_fences): Update call to merge_fences.
38766         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
38767         sched groups.
38768         * sel-sched-ir.h (struct _fence): New field issue_more.
38769         (FENCE_ISSUE_MORE): New accessor macro.
38770
38771 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38772
38773         PR rtl-optimization/42388
38774         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
38775         that have no predecessors nor successors.  Do not call move_bb_info
38776         for empty blocks outside of current region.
38777
38778 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38779
38780         PR rtl-optimization/42294
38781         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
38782         * sel-sched.c (move_exprs_to_boundary): Transitively add all
38783         originators' originators.
38784
38785 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38786
38787         PR rtl-optimization/39453
38788         PR rtl-optimization/42246
38789         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
38790         for pipelining_p.
38791         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
38792
38793 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38794             Alexander Monakov  <amonakov@ispras.ru>
38795
38796         PR middle-end/42245
38797         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
38798         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
38799         argument.  Update all callers.
38800         (tidy_control_flow): ... and here.  Recompute topological order
38801         of basic blocks in region if necessary.
38802         (sel_redirect_edge_and_branch): Change return type.  Return true
38803         if topological order might have been invalidated.
38804         (purge_empty_blocks): Export and move from...
38805         * sel-sched.c (purge_empty_blocks): ... here.
38806         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
38807         (maybe_tidy_empty_bb): Delete prototype.
38808         (purge_empty_blocks): Declare.
38809
38810 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38811
38812         PR rtl-optimization/42249
38813         * sel-sched.c (try_replace_dest_reg): When chosen register
38814         and original register is the same, do not bail out early, but
38815         still check all original insns for validity of replacing destination
38816         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
38817         in this case.
38818
38819 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
38820
38821         PR c/42721
38822         Port from no-undefined-overflow branch:
38823         2009-03-09  Richard Guenther  <rguenther@suse.de>
38824
38825         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
38826
38827 2010-01-14  Richard Guenther  <rguenther@suse.de>
38828
38829         PR lto/42665
38830         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
38831
38832 2010-01-14  Ira Rosen  <irar@il.ibm.com>
38833
38834         PR tree-optimization/42709
38835         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
38836         as scalar type in creation of constant vector operand.
38837
38838 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38839
38840         PR testsuite/42414
38841         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
38842         (check-parallel-%): Match `testsuite' directory component only
38843         at the end.
38844
38845 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
38846
38847         PR translation/39521
38848         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
38849         strings with _().
38850
38851 2010-01-13  Richard Guenther  <rguenther@suse.de>
38852
38853         PR tree-optimization/42730
38854         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
38855         offset zero.
38856
38857 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
38858
38859         PR target/pr42542
38860         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
38861         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
38862         them signed.
38863
38864 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
38865
38866         * config/bfin/libgcc-bfin.ver: Regenerate based on current
38867         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
38868         ___umulsi3_highpart.
38869
38870         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
38871         rather than schedule_insns if the pass is enabled.
38872
38873 2010-01-13  Martin Jambor  <mjambor@suse.cz>
38874
38875         PR tree-optimization/42704
38876         * tree-sra.c (sra_modify_assign): Do not delete assignments to
38877         SSA_NAMEs.
38878
38879 2010-01-13  Martin Jambor  <mjambor@suse.cz>
38880
38881         PR tree-optimization/42703
38882         * tree-sra.c (analyze_access_subtree): Check that we can build a
38883         reference to the original data within the aggregate.
38884
38885 2010-01-13  Richard Guenther  <rguenther@suse.de>
38886
38887         PR tree-optimization/42705
38888         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
38889
38890 2010-01-13  Richard Guenther  <rguenther@suse.de>
38891
38892         PR middle-end/42716
38893         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
38894
38895 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
38896
38897         PR debug/41371
38898         * var-tracking.c (values_to_unmark): New variable.
38899         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
38900         values_to_unmark vector.  Moved body to...
38901         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
38902         instead queue it into values_to_unmark vector.
38903         (vt_find_locations): Free values_to_unmark vector.
38904
38905 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
38906
38907         * config/s390/s390.c (override_options): Set
38908         default of max-pending-list-length to 256
38909
38910 2010-01-13  Richard Guenther  <rguenther@suse.de>
38911
38912         PR lto/42678
38913         * tree-pass.h (PROP_gimple_lcx): New.
38914         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
38915         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
38916         before the final cleanup_eh.
38917         (dump_properties): Dump PROP_gimple_lcx.
38918         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
38919         (tree_lower_complex_O0): Remove.
38920         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
38921         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
38922         tree_lower_complex, schedule TODO_update_ssa.
38923         * lto-streamer-out.c (output_function): Stream the functions
38924         properties.
38925         * lto-streamer-in.c (input_function): Likewise.
38926         (lto_read_body): Do not override them here.
38927
38928 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
38929
38930         PR c/42708
38931         * c-typeck.c (build_c_cast): Fold value cast to union type before
38932         wrapping it in a CONSTRUCTOR.
38933
38934 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38935
38936         PR rtl-optimization/42699
38937         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
38938         involved.
38939
38940 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38941
38942         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38943         SUBTARGET_WARN_UNUSED_SPEC): Move ...
38944         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38945         SUBTARGET_WARN_UNUSED_SPEC): ... here
38946         * config/mips/iris5.h (LIBGCC_SPEC): Define.
38947
38948 2010-01-12  Julian Brown  <julian@codesourcery.com>
38949
38950         * config/arm/neon-schedgen.ml (Utils): Don't try to
38951         open missing module.
38952         (find_with_result): New.
38953
38954 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38955
38956         PR debug/42662
38957         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
38958         sharing when canonicalizing ({lt,ge}u (plus a b) b).
38959
38960         PR tree-optimization/42645
38961         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
38962         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
38963         decl_map, set processing_debug_stmt to -1 and return name without
38964         any remapping.
38965
38966 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
38967
38968         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
38969         binutils version, and reword target configuration description.
38970
38971 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38972
38973         * config/avr/avr.h (LINKER_NAME): Remove.
38974
38975 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
38976
38977         PR target/42416
38978         * config/rs6000/rs6000.c (rs6000_override_options): On targets
38979         that support VSX, warn for -mno-altivec if vsx is not disabled,
38980         and disable vsx.
38981
38982 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
38983             Shujing Zhao  <pearly.zhao@oracle.com>
38984
38985         PR translation/42469
38986         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
38987         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
38988         character between option name and help text.
38989         * c.opt (imultilib): Likewise.
38990
38991 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
38992
38993         * lto-streamer-out.c (output_unreferenced_globals): Output static
38994         variables.
38995
38996 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
38997
38998         PR rtl-optimization/42621
38999         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
39000         optimizing for size.
39001         (duplicate_computed_gotos): Remove now-redundant check.
39002
39003 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
39004
39005         PR target/37454
39006         * configure.ac: Save and restore LDFLAGS and LIBS
39007         * configure: Regenerate.
39008
39009 2010-01-10  Richard Guenther  <rguenther@suse.de>
39010
39011         PR middle-end/42667
39012         * builtins.c (fold_builtin_strlen): Add type argument and
39013         convert the resulting length to it.
39014         (fold_builtin_1): Adjust.
39015
39016 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
39017
39018         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
39019         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
39020         1 insn.
39021         (num_insns_constant_wide): Adjust for that change.
39022
39023 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39024
39025         PR debug/42631
39026         * web.c (union_defs): Add used argument, to combine uses of
39027         uninitialized regs.
39028         (entry_register): Adjust type and tests of used argument.
39029         (web_main): Widen used for new use.  Pass it to union_defs.
39030         * df.h (union_defs): Adjust prototype.
39031
39032 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39033
39034         PR debug/42630
39035         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
39036         uses in new incoming argument.  Free body.
39037         (reset_debug_uses_in_loop): New.
39038         (analyze_insn_to_expand_var): Call the latter if the former found
39039         anything.  Fix whitespace.  Reject invalid dest overlaps before
39040         going through all insns in the loop.
39041
39042 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39043
39044         PR debug/42629
39045         * haifa-sched.c (dying_use_p): Debug insns don't count.
39046
39047 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39048
39049         PR middle-end/42363
39050         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
39051         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
39052         (verify_gimple_call): Reject LHS in noreturn calls.
39053
39054 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39055
39056         PR debug/42604
39057         PR debug/42395
39058         * tree-vect-loop-manip.c (adjust_info): New type.
39059         (adjust_vec): New pointer to vector.
39060         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
39061         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
39062         (slpeel_update_phis_for_duplicate_loop): Use them.
39063         (slpeel_update_phi_nodes_for_guard1): Likewise.
39064         (slpeel_update_phi_nodes_for_guard2): Likewise.
39065         (slpeel_tree_peel_loop_to_edge): Likewise.
39066         (vect_update_ivs_after_vectorizer): Likewise.
39067
39068 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39069
39070         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
39071         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
39072
39073 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
39074
39075         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
39076         bogus uninitialized warning.
39077
39078 2010-01-09  Richard Guenther  <rguenther@suse.de>
39079
39080         PR middle-end/42512
39081         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
39082         the evolution is compatible with the initial condition.
39083
39084 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
39085
39086         * gcc.c (process_command): Update copyright notice dates.
39087         * gcov.c (print_version): Likewise.
39088         * gcov-dump.c (print_version): Likewise.
39089         * mips-tfile.c (main): Likewise.
39090         * mips-tdump.c (main): Likewise.
39091
39092 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
39093
39094         PR target/41885
39095         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
39096         (rotlhi3): Delete.
39097         (rotlhi3_8): Delete.
39098         (rotlsi3): Delete.
39099         (rotlsi3_8): Delete.
39100         (rotlsi3_16): Delete.
39101         (rotlsi3_24): Delete.
39102         (rotl<mode>3): New.
39103         (*rotw<mode>3): New.
39104         (*rotb<mode>3): New.
39105         * config/avr/avr.c (avr_rotate_bytes): New function.
39106         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
39107
39108 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
39109
39110         PR target/37454
39111         * configure.ac: Modify -rdynamic check.
39112         * configure: Regenerate.
39113
39114 2010-01-08  DJ Delorie  <dj@redhat.com>
39115
39116         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
39117         register popping order.
39118
39119 2010-01-08  Richard Guenther  <rguenther@suse.de>
39120
39121         PR lto/42528
39122         * c.opt (fsigned-char): Also let LTO handle this option.
39123         (funsigned-char): Likewise.
39124
39125 2010-01-07  Richard Guenther  <rguenther@suse.de>
39126
39127         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
39128         (gimple_op): Likewise.
39129         (gimple_op_ptr): Likewise.
39130         (gimple_assign_set_lhs): Remove gcc_assert.
39131         (gimple_assign_set_rhs1): Likewise.
39132         (gimple_assign_set_rhs2): Likewise.
39133         (gimple_call_set_lhs): Likewise.
39134         (gimple_call_set_fn): Likewise.
39135         (gimple_call_set_fndecl): Likewise.
39136         (gimple_call_fndecl): Likewise.
39137         (gimple_call_return_type): Likewise.
39138         (gimple_call_set_chain): Likewise.
39139         (gimple_call_num_args): Likewise.
39140         (gimple_call_set_arg): Likewise.
39141         (gimple_cond_set_code): Likewise.
39142         (gimple_cond_set_lhs): Likewise.
39143         (gimple_cond_set_rhs): Likewise.
39144         (gimple_cond_set_true_label): Likewise.
39145         (gimple_cond_set_false_label): Likewise.
39146         (gimple_label_set_label): Likewise.
39147         (gimple_goto_set_dest): Likewise.
39148         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
39149         (gimple_debug_bind_get_value): Likewise.
39150         (gimple_debug_bind_get_value_ptr): Likewise.
39151         (gimple_debug_bind_set_var): Likewise.
39152         (gimple_debug_bind_set_value): Likewise.
39153         (gimple_debug_bind_reset_value): Likewise.
39154         (gimple_debug_bind_has_value_p): Likewise.
39155         (gimple_return_retval_ptr): Remove gcc_assert.
39156         (gimple_return_retval): Likewise.
39157         (gimple_return_set_retval): Likewise.
39158         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
39159         (safe_referenced_var_iterator): Remove.
39160         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
39161         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
39162         (fill_referenced_var_vec): Remove.
39163         (first_readonly_imm_use): Remove redundant gcc_assert.
39164         (phi_arg_index_from_use): Combine gcc_asserts.
39165         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
39166         (first_imm_use_stmt): Remove redundant gcc_assert.
39167         * tree-cfg.c (verify_gimple_call): Verify function and chain
39168         operands.  Verify arguments.
39169         (verify_types_in_gimple_stmt): Verify condition code and labels.
39170
39171 2010-01-07  Richard Guenther  <rguenther@suse.de>
39172
39173         PR tree-optimization/42641
39174         * sese.c (rename_map_elt_info): Use the SSA name version, do
39175         not hash pointers.
39176
39177 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
39178
39179         PR tree-optimization/42625
39180         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
39181         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
39182
39183 2010-01-07  Duncan Sands  <baldrick@free.fr>
39184
39185         * Makefile.in (PLUGIN_HEADERS): Add version.h.
39186
39187 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
39188
39189         PR target/42511
39190         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
39191         note itself is not function_invariant_p.
39192
39193 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
39194
39195         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
39196         Do not add the DF_NOTE problem.
39197         * store-motion.c (execute_rtl_store_motion): Likewise.
39198
39199 2010-01-07  Martin Jambor  <mjambor@suse.cz>
39200
39201         PR tree-optimization/42157
39202         * tree-sra.c (compare_access_positions): Stabilize sort if both
39203         accesses have integer types, return zero immediately if they are the
39204         same.
39205
39206 2010-01-06  Richard Henderson  <rth@redhat.com>
39207
39208         PR middle-end/41883
39209         * haifa-sched.c (add_to_note_list): Merge into ...
39210         (concat_note_lists): ... here, and ...
39211         (unlink_other_notes, rm_other_notes): Merge into...
39212         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
39213         NOTE_INSN_EPILOGUE_BEG.
39214
39215 2010-01-06  Richard Guenther  <rguenther@suse.de>
39216
39217         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
39218         not inline regular functions into always-inline functions.
39219
39220 2010-01-06  Nick Clifton  <nickc@redhat.com>
39221
39222         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
39223         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
39224         used together.
39225         (OVERRIDE_OPTIONS): Delete.
39226         (OPTIMIZATION_OPTIONS): Define.
39227         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
39228         * config/rx/rx.c (rx_handle_option): Issue an error message if
39229         -mcpu=rx200 and -fpu are used together.
39230         (rx_set_optimization_options): New function.  Issue an error
39231         message if an optimization attribute attempts to reset the FPU/
39232         math optimization pairing.
39233         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
39234         * config/rx/rx.opt: Set the default to 32-bit doubles.
39235         * config/rx/t-rx: Add multilibs for -nofpu option.
39236         * doc/invoke.texi: Update documentation of RX options.
39237
39238 2010-01-06  Richard Guenther  <rguenther@suse.de>
39239
39240         * tree-ssa-pre.c (name_to_id): New global.
39241         (alloc_expression_id): Simplify SSA name handling.
39242         (lookup_expression_id): Likewise.
39243         (init_pre): Zero name_to_id.
39244         (fini_pre): Free it.
39245
39246 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
39247
39248         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
39249
39250 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
39251
39252         PR target/42542
39253         * config/i386/sse.md (smaxv2di3): New.
39254         (umaxv2di3): Likewise.
39255         (sminv2di3): Likewise.
39256         (uminv2di3): Likewise.
39257
39258 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
39259
39260         PR target/42564
39261         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
39262         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
39263         (legitimize_tls_address): Likewise.
39264         (sparc_tls_referenced_p): Likewise.
39265         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
39266         and adjust calls to legitimize_pic_address.
39267         (legitimate_constant_p) Use sparc_tls_referenced_p.
39268         (legitimate_pic_operand_p): Likewise.
39269         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
39270         (sparc_tls_symbol_ref_1): Delete.
39271         (sparc_tls_referenced_p): Make static, recognize specific patterns.
39272         (legitimize_tls_address): Make static, handle CONST patterns.
39273         (legitimize_pic_address): Make static, remove unused parameter and
39274         adjust recursive calls.
39275         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
39276         and adjust call to legitimize_pic_address.
39277         (sparc_output_mi_thunk): Likewise.
39278
39279 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
39280             H.J. Lu  <hongjiu.lu@intel.com>
39281
39282         PR target/42542
39283         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
39284         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
39285         operands to make them signed.
39286
39287         Revert:
39288         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
39289
39290         PR target/42542
39291         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39292         GTU to GT for V4SI and V2DI.
39293
39294         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39295         (umin<mode>3): Removed.
39296         (uminv8hi3): New.
39297         (uminv4si3): Likewise.
39298
39299 2010-01-05  Martin Jambor  <mjambor@suse.cz>
39300
39301         PR tree-optimization/42462
39302         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
39303         current_function_decl to helper functions and macros.
39304
39305 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39306
39307         PR bootstrap/41771
39308         * flags.h: Don't include real.h.
39309         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
39310         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
39311         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
39312         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
39313         * dominance.c: Update copyright.
39314         * gimple.c (walk_gimple_op): Remove inline.
39315         * tree-ssa-reassoc.c: Include real.h.
39316         * Makefile.in (FLAGS_H): Remove $(REAL_H).
39317         (tree-ssa-reassoc.o): Depend on $(REAL_H).
39318
39319 2010-01-05  Nick Clifton  <nickc@redhat.com>
39320
39321         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
39322         register to push into the stack frame when the accumulator has to
39323         be saved during interrupts.
39324
39325 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
39326
39327         * doc/invoke.texi: Remove the documentation about option
39328         -Wunreachable-code.
39329         * common.opt (Wunreachable-code):  Preserved for backward
39330         compatibility.
39331         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
39332         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
39333         the backward compatibility flag section.
39334
39335 2010-01-05  Richard Guenther  <rguenther@suse.de>
39336
39337         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
39338
39339 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
39340
39341         PR other/42611
39342         * cfgexpand.c (expand_one_var): Diagnose too large variables.
39343
39344         PR tree-optimization/42508
39345         * tree-sra.c (convert_callers): Check for recursive call
39346         by comparing cgraph nodes instead of decls.
39347         (modify_function): Call ipa_modify_formal_parameters also
39348         on all same_body aliases.
39349
39350         * cgraphunit.c (cgraph_materialize_all_clones): Compare
39351         cgraph nodes when checking for same_body aliases.
39352
39353 2010-01-05  Richard Guenther  <rguenther@suse.de>
39354
39355         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
39356         allocation and lookup.
39357         (get_or_alloc_expr_for_constant): Likewise.
39358         (phi_translate): Sink allocation.
39359
39360 2010-01-04  Richard Guenther  <rguenther@suse.de>
39361
39362         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
39363         a new entry only if needed.
39364         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
39365         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
39366         hashtable lookup.
39367         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
39368         the result array.
39369         (phi_translate): Handle CONSTANTs early.
39370
39371 2010-01-04  Martin Jambor  <mjambor@suse.cz>
39372
39373         PR tree-optimization/42398
39374         * tree-sra.c (struct access): Removed flag grp_different_types.
39375         (dump_access): Do not dump the removed flag.
39376         (sort_and_splice_var_accesses): Do not set the removed flag.
39377         (sra_modify_expr): Check for type compatibility directly.
39378
39379 2010-01-04  Martin Jambor  <mjambor@suse.cz>
39380
39381         PR tree-optimization/42366
39382         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
39383         edges with variable number of parameters.
39384         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
39385         flag instead of asserting it.
39386         (ipa_read_node_info): Read uses_analysis_done flag.
39387
39388 2010-01-04  Richard Guenther  <rguenther@suse.de>
39389
39390         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
39391         iterative_hash_* as intended.
39392         (vn_reference_compute_hash): Likewise.  Simplify hashing
39393         SSA names.
39394         (vn_reference_lookup_2): Likewise.
39395         (vn_nary_op_compute_hash): Likewise.
39396         (vn_phi_compute_hash): Likewise.
39397         (expressions_equal_p): Remove strange code.
39398         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
39399         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
39400         (bitmap_insert_into_set_1): Take value-id as parameter.
39401         (add_to_value): Pass it.
39402         (bitmap_insert_into_set): Likewise.
39403         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
39404
39405 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
39406
39407         PR driver/42442
39408         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
39409         (do_self_spec): For switches with SWITCH_IGNORE set set also
39410         SWITCH_IGNORE_PERMANENTLY.
39411         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
39412         of SWITCH_IGNORE.
39413
39414 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
39415
39416         * lto-streamer-out.c (output_unreferenced_globals): Output the full
39417         tree of an unreferenced global var.
39418
39419 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
39420
39421         PR target/42542
39422         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39423         GTU to GT for V4SI and V2DI.
39424
39425         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39426         (umin<mode>3): Removed.
39427         (uminv8hi3): New.
39428         (uminv4si3): Likewise.
39429
39430 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
39431
39432         PR lto/42581
39433         * collect2.c (main): Turn on trace in collect2 if -v is passed
39434         to gcc with LTO.
39435
39436 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
39437
39438         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
39439         description of expression operand.
39440
39441 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
39442
39443         * configure.ac: Add install-html to target_list for Make-hooks.
39444         * configure: Regenerate.
39445         * fortran/Make-lang.in (F95_HTMLFILES): New.
39446         (fortran.html): Use it.
39447         (fortran.install-html): New.
39448         * Makefile.in (install-html): Add lang.install-html.
39449         * java/Make-lang.in (JAVA_HTMLFILES): New.
39450         (java.html): Use it.
39451         (java.install-html): New.
39452         * objc/Make-lang.in (objc.install-html): New.
39453         * objcp/Make-lang.in (obj-c++.install-html): New.
39454         * cp/Make-lang.in (c++.install-html): New.
39455         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
39456         * lto/Make-lang.in (lto.install-html): New.
39457
39458 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
39459
39460         PR lto/42520
39461         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
39462
39463 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
39464
39465         PR rtl-optimization/41862
39466         * store-motion.c (store_killed_in_insn, compute_store_table,
39467         remove_reachable_equiv_notes, replace_store_insn,
39468         build_store_vectors): Ignore all DEBUG_INSNs.
39469
39470 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
39471
39472         PR lto/41564
39473         * common.opt: Add dumpdir.
39474
39475         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
39476         isn't specified.
39477         (option_map): Add --dumpdir.
39478
39479         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
39480
39481         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
39482
39483         * opts.c (decode_options): Try dump_dir_name first if
39484         dump_base_name isn't an absolute path.
39485         (common_handle_option): Handle OPT_dumpdir.
39486
39487         * toplev.c (dump_dir_name): New.
39488         (print_switch_values): Also ignore -dumpdir.
39489
39490         * toplev.h (dump_dir_name): New.
39491
39492 2010-01-03  Richard Guenther  <rguenther@suse.de>
39493
39494         PR tree-optimization/42589
39495         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
39496         double-word expansion of bswap32.
39497
39498 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
39499
39500         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
39501         with BLOCK_FOR_INSN.
39502         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
39503         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
39504         noce_process_if_block): Likewise.
39505         * gcse.c (compute_local_properties, insert_expr_in_table,
39506         insert_set_in_table, canon_list_insert, find_avail_set,
39507         pre_insert_copy_insn): Likewise.
39508
39509         * basic-block.h (BLOCK_NUM): Move from here...
39510         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
39511
39512 2010-01-03  Richard Guenther  <rguenther@suse.de>
39513
39514         PR tree-optimization/42438
39515         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
39516         contains_may_not_return_call flag.
39517         (BB_MAY_NOTRETURN): New.
39518         (valid_in_sets): Trapping nary operations are not valid
39519         in blocks that may not return.
39520         (insert_into_preds_of_block): Remove check for trapping expressions.
39521         (compute_avail): Compute also BB_MAY_NOTRETURN.
39522
39523 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
39524
39525         * doc/invoke.texi: Add 2010 to copyright years.
39526
39527 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
39528
39529         * config/sparc/sparc.c: Fix formatting nits.
39530
39531 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
39532             Alexander Monakov  <amonakov@ispras.ru>
39533
39534         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
39535
39536 2010-01-02  Richard Guenther  <rguenther@suse.de>
39537
39538         PR middle-end/42577
39539         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
39540         (simplify_switch_using_ranges): Mark to be removed edges
39541         as non-executable.
39542
39543 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39544
39545         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
39546
39547         * collect2.c (scan_libraries): Add missing argument in call to
39548         scan_prog_file.
39549
39550 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
39551
39552         PR target/42448
39553         * config/alpha/predicates.md (aligned_memory_operand): Return false
39554         for CQImode.
39555         (unaligned_memory_operand): Return true for CQImode.
39556         * config/alpha/alpha.c (get_aligned_mem): Assert that location
39557         doesn not cross aligned SImode word boundary.
39558
39559 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
39560
39561         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
39562         Remove.
39563         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
39564         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
39565
39566 2010-01-02  Richard Guenther  <rguenther@suse.de>
39567
39568         PR lto/41597
39569         * toplev.c (compile_file): Emit LTO marker properly.  Change
39570         it to __gnu_lto_v1.
39571         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
39572
39573 2010-01-01  Richard Guenther  <rguenther@suse.de>
39574
39575         PR debug/42455
39576         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
39577
39578 2010-01-01  Richard Guenther  <rguenther@suse.de>
39579
39580         PR c/42570
39581         * c-decl.c (grokdeclarator): For zero-size arrays force
39582         structural equality checks as layout_type does.
39583
39584 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
39585
39586         * builtins.c: Update copyright to 2010.
39587
39588 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
39589
39590         PR lto/42531
39591         * lto-streamer-out.c (produce_asm): Revert the last change.
39592         (copy_function): Likewise.
39593
39594         * lto-streamer.c (lto_get_section_name): Skip any leading
39595         asterisk in name.
39596
39597 2010-01-01  Richard Guenther  <rguenther@suse.de>
39598
39599         PR middle-end/42559
39600         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
39601         for LABEL_DECLs.
39602
39603 \f
39604 Copyright (C) 2010 Free Software Foundation, Inc.
39605
39606 Copying and distribution of this file, with or without modification,
39607 are permitted in any medium without royalty provided the copyright
39608 notice and this notice are preserved.