OSDN Git Service

* config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
2
3         * config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
4         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
5         * config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.
6
7 2010-12-14  Bernd Schmidt  <bernds@codesourcery.com>
8
9         PR rtl-optimization/44374
10         Reapply patch with fixes.
11         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
12         * df-core.c (df_set_bb_dirty): Set it.
13         * ifcvt.c (find_memory): Remove function.
14         (dead_or_predicable): Use can_move_insns_across.
15         * df.h (can_move_insns_across): Declare function.
16         * cfgcleanup.c (block_was_dirty): New static variable.
17         (flow_find_head_matching_sequence): Test for epilogue notes.
18         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
19         than df_get_bb_dirty.
20         (try_head_merge_bb): New static function.
21         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
22         is set.
23         * df-problems.c: Include "target.h"
24         (df_simulate_find_uses): New static function.
25         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
26         (find_memory, find_memory_store): New static functions.
27         (can_move_insns_across): New function.
28         * Makefile.in (df-problems.o): Update dependencies.
29
30 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
31
32         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
33         (DBX_REGISTER_NUMBER): Undefine.
34         * config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
35         (DBX_REGISTER_NUMBER): Undefine.
36         * config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
37
38 2010-12-13  Jack Howarth <howarth@bromo.med.uc.edu>
39             Joseph Myers <joseph@codesourcery.com>
40
41         PR bootstrap/46650
42         * system.h: Include cstring for cxx bootstrap.
43
44 2010-12-13  Jakub Jelinek  <jakub@redhat.com>
45
46         PR lto/46879
47         * lto-streamer-out.c (output_gimple_stmt): Never replace first
48         GIMPLE_DEBUG argument with MEM_REF.
49
50         PR debug/46867
51         * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
52         (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
53         (vt_emit_notes): Don't initialize and destroy emitted_notes.
54
55 2010-12-13  Jan Hubicka  <jh@suse.cz>
56
57         PR middle-end/45388
58         * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
59         (cgraph_build_static_cdtor): ... here.
60         (build_cdtor): Use cgraph_build_static_cdtor_1.
61
62 2010-12-13  Nathan Froyd  <froydnj@codesourcery.com>
63
64         PR target/46040
65         * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
66         (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
67
68 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
69
70         * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
71         WCHAR_TYPE_SIZE): Define.
72         * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
73
74 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
75
76         * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
77         Don't use svr4.h.
78
79 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
80
81         * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
82         WCHAR_TYPE_SIZE): Undefine.
83         * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
84         WCHAR_TYPE_SIZE): Define.
85         * config.gcc (mn10300-*-*): Don't use svr4.h.
86
87 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
88
89         * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
90         redefine.
91         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
92         * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
93
94 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
95
96         PR debug/46576
97         * jump.c (mark_all_labels): Skip debug insns.
98
99 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
100
101         PR debug/46782
102         * cfgcleanup.c (try_forward_edges): Skip debug insns.
103
104 2010-12-12  Jan Hubicka  <jh@suse.cz>
105             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
106
107         * varasm.c (default_function_section): Check flag_reorder_functions
108         and targetm.have_named_sections.
109         * config/darwin.c (darwin_function_section): Check
110         flag_reorder_functions.
111
112 2010-12-12  Finn Thain  <fthain@telegraphics.com.au>
113
114         PR target/46179
115         * config/m68k/m68k.c (handle_move_double): Insert calls to
116         m68k_final_prescan_insn to clean up @TLS operand syntax.
117
118 2010-12-10  Sebastian Pop  <sebastian.pop@amd.com>
119
120         PR tree-optimization/43023
121         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
122         Removed.
123         (stores_zero_from_loop): Call stmt_stores_zero.
124         * tree-data-ref.h (stmt_stores_zero): New.
125         * tree-loop-distribution.c (generate_memset_zero): Do not return a
126         boolean.  Call gcc_assert on stride_of_unit_type_p.
127         (generate_builtin): Call stmt_stores_zero.
128         (rdg_flag_all_uses): Removed.
129         (rdg_flag_similar_memory_accesses): Removed.
130         (build_rdg_partition_for_component): Removed parameter
131         other_stores.  Removed call to rdg_flag_similar_memory_accesses.
132         (can_generate_builtin): New.
133         (similar_memory_accesses): New.
134         (fuse_partitions_with_similar_memory_accesses): New.
135         (rdg_build_partitions): Call
136         fuse_partitions_with_similar_memory_accesses.
137
138 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
139
140         PR rtl-optimization/46804
141         * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
142         on the setter of src_reg rather than on insn.  If it is
143         equal to the setter's original SET_SRC, replace it with its
144         zero or sign extension instead of dropping it.
145
146 2010-12-10  Richard Guenther  <rguenther@suse.de>
147
148         PR lto/46808
149         * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
150         after errors.
151         (lto_symtab_merge_decls_1): Adjust.
152
153 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
154
155         PR middle-end/46674
156         PR lto/43157
157         * target.def (mangle_assembler_name): New target asm_out hook.
158         * targhooks.c (default_mangle_assembler_name): Add default hook
159         implementation.
160         * targhooks.h (default_mangle_assembler_name): Add prototype.
161         * lto-symtab.c (lto_symtab_register_decl): Use new hook when
162         processing DECL_ASSEMBLER_NAMEs for lto symtabs.
163         (lto_symtab_get_resolution): Likewise.
164         (lto_cgraph_replace_node): Likewise.
165         (lto_symtab_prevailing_decl): Likewise.
166         * lto-streamer-out.c (write_symbol): Likewise.
167         * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
168         * doc/tm.texi: Regenerate.
169         * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
170         point at i386_pe_mangle_assembler_name.
171         * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
172         * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
173         prototype.
174
175 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
176
177         * c-typeck.c (readonly_error): Delete.
178
179 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
180
181         PR rtl-optimization/46865
182         * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
183         ASM_OPERANDS and ASM_INPUT if integers are different,
184         call locator_eq.
185         * jump.c (rtx_renumbered_equal_p): Likewise.
186
187         PR tree-optimization/46864
188         * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
189         when there are EDGE_EH exit edges.
190
191 2010-12-10  Tobias Burnus  <burnus@net-b.de>
192
193         PR fortran/46540
194         * configure.ac: Handle --disable-libquadmath-support.
195         * doc/install.texi: Document --disable-libquadmath and
196         --disable-libquadmath-support
197         * configure: Regenerate.
198         * config.in: Regenerate.
199
200 2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
201             Iain Sandoe  <iains@gcc.gnu.org>
202
203         PR 43751/target
204         * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
205
206 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
207
208         * config/rs6000/rs6000.c
209         (rs6000_darwin64_record_arg_advance_recurse): Name register increment
210         explicitly.  (rs6000_darwin64_record_arg_recurse): Make sure we split
211         long doubles when we run out of regs.   Also flag that this requires
212         stack and therefore cannot be returned by value.
213         (rs6000_darwin64_record_arg): Update comment.
214         (rs6000_function_value): Likewise.
215
216 2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
217
218         * c-parser.c (c_parser_objc_class_definition): Recognize
219         Objective-C 2.0 class extensions.
220
221 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
222
223         * config/darwin.c: Remove c-tree.h and c-lang.h
224         * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
225
226 2010-12-10  Joern Rennecke  <amylaar@spamcop.net>
227
228         PR target/46881
229         * doc/tm.texi: Regenerate.
230         * target.def: Fix "preferred" spelling.  Refer to rclass by its
231         exact name.
232         * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
233         to rclass.
234
235 2010-12-09  Paul Koning  <ni1d@arrl.net>
236
237         * config/pdp11/pdp11-protos.h (output_move_double,
238         output_move_quad): Delete.
239         (output_move_multiple, pdp11_expand_operands): New functions.
240         (pdp11_action, pdp11_partorder): New enums.
241         * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
242         output_move_multiple.
243         (adddi3, subdi3, negdi2): New patterns.
244         (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
245         (abshi2): Delete.
246         (neghi2, negqi2): Use PDPint iterator.
247         * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
248         output_move_quad): Delete.
249         (pdp11_expand_operands, output_move_multiple): New functions.
250
251 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
252
253         * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
254         * config.gcc (vax-*-linux*): Don't use svr4.h.
255
256 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
257
258         * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
259
260 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
261
262         * doc/extend.texi (Attribute Syntax): Correct description of
263         attributes in pointer declarators.
264
265 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
266
267         * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
268         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
269         mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
270
271 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
272
273         * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
274         WCHAR_TYPE_SIZE): Define.
275         * config.gcc (mep-*-*): Don't use svr4.h.
276
277 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
278
279         * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
280         WCHAR_TYPE_SIZE): Define.
281         * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
282         WCHAR_TYPE_SIZE): Don't define.
283         * config.gcc (mcore-*-elf): Don't use svr4.h.
284
285 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
286
287         * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
288         m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
289
290 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
291
292         * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
293         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
294         * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
295
296 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
297
298         * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
299
300 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
301
302         * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
303         * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
304         svr4.h.
305
306 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
307
308         * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
309         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
310         * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
311         WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
312         * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
313
314 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
315
316         * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
317         WCHAR_TYPE_SIZE): Define.
318         * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
319
320 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
321
322         * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
323         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
324         * config.gcc (fr30-*-elf): Don't use svr4.h.
325
326 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
327
328         * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
329         * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
330
331 2010-12-09  Richard Guenther  <rguenther@suse.de>
332
333         PR middle-end/46844
334         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
335         addresses.
336
337 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
338
339         * config/i386/netware.h (TARGET_POSIX_IO): Define.
340         * config/i386/nto.h (TARGET_POSIX_IO): Define.
341         * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
342         * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
343         * config/openbsd.h (TARGET_POSIX_IO): Define.
344         * config/rtems.h (TARGET_POSIX_IO): Define.
345         * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
346         * config/sol2.h (TARGET_POSIX_IO): Define.
347         * config/svr4.h (TARGET_POSIX_IO): Don't define.
348         * config/vxworksae.h (TARGET_POSIX_IO): Define.
349
350 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
351
352         * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
353         * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
354         Define.
355         * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
356         undefine.
357         * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
358         undefine.
359         * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
360         Don't undefine.
361         * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
362         Don't undefine.
363         * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
364         Don't undefine.
365         * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
366         * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
367         Don't undefine.
368         * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
369         Don't undefine.
370         * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
371         Don't undefine.
372         * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
373         define.
374         * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
375         undefine.
376
377 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
378
379         * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
380         non-GNU assembler.
381         * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
382         Remove.
383         * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
384         * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
385         * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
386         non-GNU assembler.
387         * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
388         * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
389
390 2010-12-09  Martin Jambor  <mjambor@suse.cz>
391
392         * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
393         zero is the first phi parameter.
394
395 2010-12-09  Martin Jambor  <mjambor@suse.cz>
396
397         * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
398         * ipa-prop.c (ipa_modify_call_arguments): Use it.
399         * tree-sra.c (splice_param_accesses): Test that all accesses have the
400         same alias reference type.
401         (turn_representatives_into_adjustments): Set alias_ptr_type of the
402         adjustment.
403
404 2010-12-09  Martin Jambor  <mjambor@suse.cz>
405
406         PR middle-end/46734
407         * tree-sra.c (splice_param_accesses): Check that there are not
408         multiple ADDRESSABLE types.
409
410 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
411
412         * config/arc/arc.h (ASM_SPEC): Remove %{v}.
413         * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
414         * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
415         * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
416         * config/frv/frv.h (ASM_SPEC): Remove %{v}.
417         * config/i386/linux.h (ASM_SPEC): Remove %{v}.
418         * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
419         * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
420         * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
421         * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
422         * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
423         * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
424         * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
425         * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
426         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
427         * config/mips/mips.h (ASM_SPEC): Remove %{v}.
428         * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
429         * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
430         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
431         * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
432         * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
433         * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
434         * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
435         * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
436         * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
437
438 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
439
440         * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
441         * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
442         * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
443         %{r*:}.
444         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
445         %{r*:}.
446         * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
447         * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
448
449 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
450
451         * config/alpha/freebsd.h (LINK_SPEC): Don't use
452         %{!dynamic-linker:}.
453         * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
454         * config/arm/freebsd.h (LINK_SPEC): Likewise.
455         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
456         * config/bfin/linux.h (LINK_SPEC): Likewise.
457         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
458         * config/frv/linux.h (LINK_SPEC): Likewise.
459         * config/i386/freebsd.h (LINK_SPEC): Likewise.
460         * config/i386/freebsd64.h (LINK_SPEC): Likewise.
461         * config/i386/linux.h (LINK_SPEC): Likewise.
462         * config/i386/linux64.h (LINK_SPEC): Likewise.
463         * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
464         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
465         * config/ia64/linux.h (LINK_SPEC): Likewise.
466         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
467         * config/m32r/linux.h (LINK_SPEC): Likewise.
468         * config/m68k/linux.h (LINK_SPEC): Likewise.
469         * config/microblaze/linux.h (LINK_SPEC): Likewise.
470         * config/mips/linux.h (LINK_SPEC): Likewise.
471         * config/mips/linux64.h (LINK_SPEC): Likewise.
472         * config/mips/openbsd.h (LINK_SPEC): Likewise.
473         * config/mn10300/linux.h (LINK_SPEC): Likewise.
474         * config/netbsd-elf.h (LINK_SPEC): Likewise.
475         * config/pa/pa-linux.h (LINK_SPEC): Likewise.
476         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
477         LINK_OS_LINUX_SPEC64): Likewise.
478         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
479         LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
480         Likewise.
481         * config/s390/linux.h (LINK_SPEC): Likewise.
482         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
483         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
484         * config/sparc/linux.h (LINK_SPEC): Likewise.
485         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
486         LINK_SPEC): Likewise.
487         * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
488         * config/vax/linux.h (LINK_SPEC): Likewise.
489         * config/xtensa/linux.h (LINK_SPEC): Likewise.
490
491 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
492
493         * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
494         * config/frv/frv.h (ASM_SPEC): Likewise.
495         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
496         * config/i386/sol2.h (ASM_SPEC): Likewise.
497         * config/m68k/linux.h (ASM_SPEC): Likewise.
498         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
499         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
500         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
501         * config/sol2.h (ASM_SPEC): Likewise.
502         * config/sparc/linux.h (ASM_SPEC): Likewise.
503         * config/sparc/linux64.h (ASM_SPEC): Likewise.
504         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
505         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
506         * config/svr4.h (SVR4_ASM_SPEC): Likewise.
507
508 2010-12-09  Richard Guenther  <rguenther@suse.de>
509
510         * reginfo.c (struct subregs_of_mode_node): Remove.
511         (subregs_of_mode): Likewise.
512         (som_hash): Likewise.
513         (som_eq): Likewise.
514         (invalid_mode_changes): New bitmap.
515         (record_subregs_of_mode): Get subregs_of_mode argument.
516         Fill in invalid_mode_changes bitmap.
517         (find_subregs_of_mode): Get subregs_of_mode argument and pass
518         it through.
519         (init_subregs_of_mode): Adjust.
520         (finish_subregs_of_mode): Likewise.
521         (invalid_mode_change_p): Query invalid_mode_changes bitmap.
522
523 2010-12-09  Richard Guenther  <rguenther@suse.de>
524
525         * ira.c (ira): Do not call finish_subregs_of_mode.
526         * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
527
528 2010-12-09  Richard Guenther  <rguenther@suse.de>
529
530         * rtl.h (invalid_mode_change_p): Adjust prototype.
531         * reginfo.c (invalid_mode_change_p): Remove from argument.
532         * ira-costs.c (print_allocno_costs): Adjust callers.
533         (find_costs_and_classes): Likewise.
534
535 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
536
537         * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
538         locg and stocg even in comment.
539         (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
540
541         PR target/41082
542         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
543         instead of stve*x.
544         (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
545         of operand 0.
546         * config/rs6000/altivec.md (VI_scalar): New mode attr.
547         (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
548         vector mode for operand 0, put operand 1 into UNSPEC.
549
550 2010-12-09  Yao Qi  <yao@codesourcery.com>
551
552         * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
553         PREFERRED_RENAME_CLASS.
554
555 2010-12-08  Ian Lance Taylor  <iant@google.com>
556
557         * doc/sourcebuild.texi (Front End): Remove reference to
558         snapshot-README and snapshot-index.html.
559
560 2010-12-08  Ian Lance Taylor  <iant@google.com>
561
562         * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
563         to update_web_docs_svn.
564         (Front End): Likewise.
565
566 2010-12-08  Iain Sandoe <iains@gcc.gnu.org>
567
568         gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
569         x86_64-*-darwin* to with_cpu:-core2.
570         gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
571         with movd for darwin assembler.
572         gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
573         (*vec_concatv2di_rex64_sse): Ditto.
574
575 2010-12-08  Richard Guenther  <rguenther@suse.de>
576             Sebastian Pop  <sebastian.pop@amd.com>
577
578         PR tree-optimization/45230
579         PR tree-optimization/45231
580         PR tree-optimization/45370
581         * sese.c (rename_uses): Returns a bool.  Call
582         recompute_tree_invariant_for_addr_expr only on the RHS of a
583         GIMPLE_ASSIGN.
584         (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
585         rename_uses returns true.
586         * tree-ssa-copy.c (replace_exp): Add a comment about calling
587         fold_stmt_inplace after replace_exp.
588
589 2010-12-08  Mike Stump  <mikestump@comcast.net>
590
591         PR debug/46749
592         * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
593         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
594         * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
595         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
596         * collect2.c (post_ld_pass): Add.
597         (process_args): Add.
598         (maybe_run_lto_and_relink): Call post_ld_pass after ld.
599         (main): Likewise.  Call process_args.
600
601 2010-12-08  Jakub Jelinek  <jakub@redhat.com>
602
603         PR middle-end/46844
604         * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
605         parameter.
606
607 2010-12-08  Richard Earnshaw  <rearnsha@arm.com>
608
609         PR target/46631
610         * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
611         into a 16-bit instruction.
612
613 2010-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
614
615         PR middle-end/42694
616         * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
617         where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
618         instruction, but do optimize if y is 0.5 or 1./3. since that
619         changes an expensive call into a cheaper one.
620
621 2010-12-08  Richard Guenther  <rguenther@suse.de>
622
623         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
624         instead of a division to divide by BITS_PER_UNIT.
625
626 2010-12-08  Richard Guenther  <rguenther@suse.de>
627
628         * gimplify.c (gimple_tree_eq): Assert hashes are equal only
629         when checking is enabled.
630
631 2010-12-07  Andrey Belevantsev  <abel@ispras.ru>
632
633         PR target/43603
634         * haifa-sched.c (sched_create_recovery_edges): Update
635         dominator info.
636         * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
637         after deleting an empty block.
638         (tidy_control_flow): Also verify dominators.
639         (sel_remove_bb): Update dominator info after removing a block.
640         (sel_redirect_edge_and_branch_force): Assert that no unreachable
641         blocks will be created. Update dominator info.
642         (sel_redirect_edge_and_branch): Update dominator info when
643         basic blocks do not become unreachable.
644         (sel_remove_loop_preheader): Update dominator info.
645
646 2010-12-07  Richard Guenther  <rguenther@suse.de>
647
648         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
649         Reset alignment information.
650         (bump_vector_ptr): Likewise.
651
652 2010-12-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
653
654         PR middle-end/46671
655         PR target/46685
656         * config/pa/pa.c (pa_function_section): New function.
657         (TARGET_ASM_FUNCTION_SECTION): Define.
658
659 2010-12-07  Ian Lance Taylor  <iant@google.com>
660             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
661
662         PR bootstrap/46810
663         * configure.ac: Disable AC_MSG_ERROR while looking for the C++
664         preprocessor.
665         * configure: Rebuild.
666
667 2010-12-07  Paul Koning  <ni1d@arrl.net>
668
669         * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
670         values with sign rather than as unsigned.
671
672 2010-12-07  Paul Koning  <ni1d@arrl.net>
673
674         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
675         (pdp11_function_section): New function.
676
677 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
678
679         * config/mcore/mcore.c Don't include assert.h.
680         (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
681         * config/spu/spu.c: Don't include assert.h.
682         (spu_sms_res_mii): Use gcc_assert.
683
684 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
685
686         PR tree-optimization/42327
687         * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
688         instead of using integer_minus_one_node.
689
690 2010-12-07  Nathan Froyd  <froydnj@codesourcery.com>
691
692         PR c++/45330
693         * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
694         * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
695
696 2010-12-07  Richard Guenther  <rguenther@suse.de>
697
698         PR tree-optimization/46832
699         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
700         that the call has a lhs.
701
702 2010-12-07  Yao Qi  <yao@codesourcery.com>
703
704         * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
705         * regrename.c (struct du_head): Add new element length.
706         (sort_du_head, get_element, merge, merge_sort_comparison):
707         New functions of merge sort implementation to du_head list.
708         (regrename_optimize): Sort du_head linked list by length.
709         Iterate registers in a preferred-register-first order.
710         Move some code to ...
711         (check_new_reg_p): here.  New function.
712         (create_new_chain):  Initialize length.
713         (scan_rtx_reg): Increase length for non-debug insns.
714         * target.def: New hook preferred_rename_class.
715         * targhook.c (default_preferred_rename_class): New.
716         * targhook.h: Declare it.
717         * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
718         * doc/tm.texi: Regenerate.
719
720 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
721
722         PR debug/46799
723         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
724         instead of BUILTINS_LOCATION.
725         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
726         BUILTINS_LOCATION.
727         (create_parallel_loop): Add LOC argument, use it for OMP clauses
728         and GIMPLE_*OMP* statements.
729         (gen_parallel_loop): Determine locus for the parallel loop, pass it
730         to create_loop_fn and create_parallel_loop.
731         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
732         set_curr_insn_source_location (UNKNOWN_LOCATION).
733
734 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
735             Richard Guenther  <rguenther@suse.de>
736
737         PR target/46737
738         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
739         (bfin_reorder_loops): Change type of index to intptr_t.
740
741 2010-12-07  Richard Guenther  <rguenther@suse.de>
742
743         PR tree-optimization/46726
744         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
745
746 2010-12-07  Richard Guenther  <rguenther@suse.de>
747
748         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
749         virtual operands.
750
751 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
752
753         * c-parser.c (c_parser_typeof_specifier): Removed special
754         treatment of objc_volatilized attribute for Objective-C.
755
756 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
757
758         * ira.c (update_equiv_regs): Prohibit move insns if
759         pressure-sensitive scheduling was done.
760
761 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
762
763         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
764         of c_process_expr_stmt() for the iterating and collection
765         expressions of an Objective-C fast enumeration loop.
766
767 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
768
769         PR debug/45997
770         * dwarf2out.c (modified_type_die): If both is_const_type and
771         is_volatile_type is set, start with DW_TAG_const_type or
772         DW_TAG_volatile_type depending on where we get qualified type
773         in the recursive call.
774
775         PR target/43897
776         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
777         as a store into that register.
778
779         PR tree-optimization/46528
780         PR debug/46338
781         * profile.c (branch_prob): Make sure last is never set to a debug
782         stmt.
783
784         PR debug/46771
785         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
786         on DEBUG_INSNs.
787
788         PR rtl-optimization/46777
789         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
790         also barrier after tablejump.
791
792 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
793             Richard Henderson  <rth@redhat.com>
794
795         PR target/46740
796         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
797
798 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
799
800         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
801         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
802
803 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
804
805         PR target/46735
806         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
807         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
808         (int12_operand, int_2word_operand, uint16_operand): Likewise.
809         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
810         (uint5_operand, uint4_operand): Likewise.
811         * config/frv/frv.h (IN_RANGE_P): Delete.
812         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
813         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
814         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
815         (CONST_OK_FOR_P): Likewise.
816         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
817         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
818         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
819         (*movsicc_internal2_float, casesi): Likewise.
820         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
821         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
822         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
823         (frv_split_cond_move, frv_rtx_costs): Likewise.
824
825         PR target/46739
826         * config/mmix/mmix.c (mmix_intval): Split shift count.
827
828 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
829
830         * config/i386/i386.c (m_COREI7): New.
831         (initial_ix86_tune_features): Turn on
832         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
833         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
834
835 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
836
837         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
838
839         * config/i386/driver-i386.c (host_detect_local_cpu): Support
840         Sandy Bridge.
841
842         * config/i386/i386.c (override_options): Handle "corei7-avx".
843
844         * doc/invoke.texi: Document corei7-avx.
845
846 2010-12-06  Richard Guenther  <rguenther@suse.de>
847
848         PR tree-optimization/46806
849         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
850         coalesce different types.
851
852 2010-12-06  Richard Guenther  <rguenther@suse.de>
853
854         PR tree-optimization/46785
855         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
856         call statements as operand definition.
857
858 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
859
860         * doc/tm.texi.in: Fix typo.
861         * doc/tm.texi: Regenerate.
862
863 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
864
865         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
866         last change.
867
868 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
869
870         * c-family/c-common.h: Removed the declarations of all the objc_
871         callbacks, and moved them into c-objc.h.  Removed
872         objc_ivar_visibility_kind and moved it into c-objc.h.
873         * c-family/c-objc.h: New file.
874         * c-family/c-common.c: Include c-objc.h.
875         * c-family/c-format.c: Same change.
876         * c-family/stub-objc.c: Same change.
877         * c-decl.c: Include c-family/c-objc.h.
878         * c-parser.c: Same change.
879         * c-typeck.c: Same change.
880         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
881         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
882         (c-parser.o): same change.
883         (c-typeck.o): Same change.
884         (c-family/c-format.o): Same change.
885         (c-family/stub-objc.o): Same change.
886         (c-family/c-common.o): Same change.
887         (PLUGIN_HEADERS): Added c-family/c-objc.h.
888
889 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
890
891         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
892         --with-dwarf2 option.
893
894 2010-12-03  Jan Hubicka  <jh@suse.cz>
895
896         * lto-streamer-in.c (input_cfg): Fix pasto.
897
898 2010-12-03  Jan Hubicka  <jh@suse.cz>
899
900         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
901         and functions with user asm defined names.
902         (varpool_externally_visible_p): Do not localize vars with user
903         asm defined names.
904
905 2010-12-03  Jan Hubicka  <jh@suse.cz>
906
907         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
908         to prevent mangling with lto frontend.
909
910 2010-12-03  Jan Hubicka  <jh@suse.cz>
911
912         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
913         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
914
915 2010-12-03  Jan Hubicka  <jh@suse.cz>
916
917         PR tree-optimization/46760
918         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
919         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
920         * lto-cgraph.c (lto_output_edge): Fix assert.
921         (lto_output_node): Output count_materialization_scale.
922         (output_profile_summary): Output only runs and sum_max.
923         (input_node): Input count_materialization_scale.
924         (input_profile_summary): Read data into file specific gcov summary.
925         (merge_profile_summaries): New function.
926         (input_cgraph): Update call of input_profile_summary;
927         call merge_profile_summaries.
928         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
929         rescale counts at read in.
930         (intput_bb): Likewise.
931         (input_function): Update call of input_bb.
932         (lto_read_body): Update call of input_cfg.
933         * lto-streamer.h: Inlclude gcov-io.h
934         (lto_file_decl_data): Add gcov_ctr_summary.
935
936 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
937
938         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
939         (Cond Exec Macros): ... to this.
940         * doc/tm.texi: Regenerate.
941
942 2010-12-03  Jason Merrill  <jason@redhat.com>
943
944         PR debug/46123
945         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
946         a declaration DIE.
947
948 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
949
950         * config/arm/arm.c (arm_legitimate_index_p): Split
951         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
952         slightly larger constants in the latter case.
953         (thumb2_legitimate_index_p): Likewise.
954
955 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
956
957         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
958         * gcc.c (cc1_options): Add %{Qy:}.
959
960 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
961
962         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
963         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
964         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
965
966 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
967
968         PR rtl-optimization/45354
969         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
970         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
971         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
972         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
973
974 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
975
976         * basic-block.h (struct edge_prediction): Remove forward
977         declaration.
978         * tree-flow.h (struct edge_prediction): Move from here...
979         * predict.c (struct edge_prediction): ...to here.
980         * cselib.h (struct elt_list): Move from here...
981         * cselib.c (struct elt_list): ...to here.
982
983 2010-12-02  Ian Lance Taylor  <iant@google.com>
984
985         * gcc.c (default_compilers): Add entry for ".go".
986         * common.opt: Add -static-libgo as a driver option.
987         * doc/install.texi (Configuration): Mention libgo as an option for
988         --enable-shared.  Mention go as an option for --enable-languages.
989         * doc/invoke.texi (Overall Options): Mention .go as a file name
990         suffix.  Mention go as a -x option.
991         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
992         language.
993         * doc/sourcebuild.texi (Top Level): Mention libgo.
994         * doc/standards.texi (Standards): Add section on Go language.
995         Move references for other languages into their own section.
996         * doc/contrib.texi (Contributors): Mention that I contributed the
997         Go frontend.
998
999 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1000
1001         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
1002         (const_call_expr_arg_iterator_d): Likewise.
1003         (expanded_location): Likewise.
1004         * c-tree.h (struct c_arg_tag_d): Likewise.
1005         * dwarf2out.c (struct cfa_loc): Likewise.
1006         (struct skeleton_chain_struct): Likewise.
1007         * except.c (struct ttypes_filter): Likewise.
1008         * cselib.h (struct cselib_val_struct): Likewise.
1009         (elt_loc_list): Likewise.
1010         (elt_list): Likewise.
1011         * varasm.c (struct addr_const): Likewise.
1012         * tree-flow.h (struct edge_prediction): Likewise.
1013         (struct int_tree_map): Likewise.
1014         (struct _edge_var_map): Likewise.
1015
1016 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
1017
1018         PR target/46768
1019         * config/i386/i386.c (initial_ix86_tune_features): Turn on
1020         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
1021
1022 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
1023
1024         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
1025
1026 2010-12-02  Ian Lance Taylor  <iant@google.com>
1027
1028         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
1029         header files unordered_map, tr1/unordered_map, and ext/hash_map.
1030         * configure, config.in: Rebuild.
1031
1032 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
1033
1034         PR target/46685
1035         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
1036         (sparc_expand_move): Call it to decide whether to emit the special
1037         mov{si,di}_pic_label_ref patterns.
1038         (sparc_legitimize_pic_address): Call it to decide whether to emit
1039         the regular PIC sequence for labels.  Fix long line.
1040         (sparc_file_end): Set is_thunk for the PIC helper.
1041
1042 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1043
1044         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
1045         for a non-shared type.
1046
1047 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
1048
1049         PR middle-end/45297
1050         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
1051         with MEM_REFs as POINTER_PLUS_EXPR.
1052
1053 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1054
1055         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
1056         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
1057         mentioning /lib/elf.
1058
1059 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1060
1061         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
1062         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
1063         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
1064         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
1065         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
1066         * config/sol2.h (LINK_SPEC): Remove %{b}.
1067         * config/svr4.h (LINK_SPEC): Remove %{b}.
1068
1069 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1070
1071         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
1072         * config/i386/linux.h (LINK_SPEC): Cut long comment.
1073         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
1074         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
1075         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
1076         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
1077         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1078         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
1079         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1080         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
1081         %{v:%{!V:-V}}.
1082
1083 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1084
1085         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
1086         -ftraditional.
1087
1088 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
1089
1090         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
1091         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
1092         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
1093         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
1094         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
1095         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
1096         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
1097         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1098         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
1099         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
1100         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
1101         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
1102         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
1103         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
1104         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
1105         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
1106         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1107         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
1108
1109 2010-12-02  Paul Koning  <ni1d@arrl.net>
1110
1111         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
1112         opcodes if CC_NO_OVERFLOW is set.
1113         (notice_update_cc_on_set): Correct setting of CC0 as a side
1114         effect; set CC_NO_OVERFLOW for cases where C flag is not
1115         meaningful.
1116
1117 2010-12-02  Ian Lance Taylor  <iant@google.com>
1118
1119         * doc/install.texi (Configuration): Update default for
1120         --with-boot-ldflags.
1121
1122 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
1123
1124         PR c/45062
1125         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
1126         !funcdef_flag.
1127
1128 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
1129
1130         PR tree-optimization/45199
1131         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
1132         (stores_zero_from_loop): Call
1133         mem_write_stride_of_same_size_as_unit_type_p.
1134         * tree-data-ref.h (stride_of_unit_type_p): New.
1135         * tree-loop-distribution.c (generate_memset_zero): Simplified.
1136         Call stride_of_unit_type_p.
1137         (build_rdg_partition_for_component): Do not call
1138         rdg_flag_similar_memory_accesses when
1139         flag_tree_loop_distribute_patterns is set.
1140
1141 2010-12-02  Richard Guenther  <rguenther@suse.de>
1142
1143         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
1144         sign-changing conversions for induction detection.
1145
1146 2010-12-02  Richard Guenther  <rguenther@suse.de>
1147
1148         PR tree-optimization/46723
1149         * tree-vect-loop.c (get_initial_def_for_induction): Strip
1150         conversions from the induction evolution and apply it to
1151         the result instead.
1152         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
1153         assigns for induction defs.
1154
1155 2010-12-02  Richard Guenther  <rguenther@suse.de>
1156
1157         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
1158         the case we need to split the edge and not the block.
1159
1160 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
1161
1162         DFA model for Core 2 and Core i7 scheduling.
1163
1164         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
1165         * config/i386/i386.c (ix86_option_override_internal): Update entries
1166         for Core 2 and Core i7.
1167         (ix86_issue_rate): Set issue rate to 3 [be realistic].
1168         * config/i386/i386.md: Include "core2.md".
1169         (define_attr cpu): Add "corei7".
1170
1171 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
1172
1173         Define tuning for Core 2 and Core i7.
1174
1175         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
1176         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
1177         (m_CORE2): Replace with m_CORE2_{32,64}.
1178         (m_CORE2I7{,_32,_64}): New macros.
1179         (m_GENERIC32, m_GENERIC64): Update.
1180         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
1181         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
1182         set m_CORE2I7_64 iff m_GENERIC64.
1183         (processor_target_table): Use generic costs for Core 2 and Core i7.
1184         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
1185         (ix86_issue_rate): Remove entry for Core 2.
1186         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
1187         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
1188         (TARGET_CORE2): Update.
1189         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
1190         (PROCESSOR_CORE2): Remove.
1191
1192 2010-12-02  Richard Guenther  <rguenther@suse.de>
1193
1194         * lto-streamer.h (LTO_major_version): Bump to 2.
1195
1196 2010-12-02  Richard Guenther  <rguenther@suse.de>
1197
1198         PR lto/44871
1199         * gimple.c (canonical_type_hash_cache): New hashtable.
1200         (gimple_type_hash): Make a wrapper around ...
1201         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
1202         (gimple_canonical_type_hash): Likewise.
1203         (gtc_visit): Take a gtc_mode argument.
1204         (gimple_types_compatible_p_1): Likewise. Do not compare struct
1205         tag names or field names when computing canonical types.
1206         (gimple_types_compatible_p): Adjust.
1207         (visit): Take a gtc_mode argument.
1208         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
1209         names or field names when computing hashes of canonical types.
1210         (gimple_register_canonical_type): Use gimple_canonical_type_hash
1211         for the hash.
1212         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1213         (free_gimple_type_tables): Free canonical_type_hash_cache.
1214
1215 2010-12-02  Richard Guenther  <rguenther@suse.de>
1216             Ira Rosen  <irar@il.ibm.com>
1217
1218         PR tree-optimization/46663
1219         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1220         FUNCTION_DECL exists and that it's a builtin.
1221
1222 2010-12-02  Jie Zhang  <jie@codesourcery.com>
1223
1224         PR middle-end/46674
1225         * varasm.c (compute_visible_aliases): Handle user set
1226         assembler name.
1227
1228 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1229
1230         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1231         thinko regarding setting -mno-<xxx> debug switches.
1232         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
1233
1234 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1235
1236         * intl.c: Don't include tm.h.
1237         * Makefile.in (intl.o): Don't depend on $(TM_H).
1238
1239 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1240
1241         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1242         unused warning.
1243         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1244
1245 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1246
1247         * graphite-sese-to-poly.c (analyze_drs): Removed.
1248         (build_scop_drs): Do not call analyze_drs.
1249         (analyze_drs_in_stmts): New.
1250         (insert_stmts): New.
1251         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1252         (insert_out_of_ssa_copy_on_edge): Same.
1253         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1254         (rewrite_phi_out_of_ssa): Same.
1255         (rewrite_cross_bb_scalar_dependence): Same.
1256         (split_reduction_stmt): Move data references in the new basic blocks.
1257         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1258
1259 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1260
1261         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1262
1263 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1264
1265         PR middle-end/45297
1266         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
1267         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
1268         * graphite-poly.h (new_poly_bb): Update declaration.
1269         (gbb_from_bb): Moved here...
1270         (pbb_from_bb): New.
1271         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1272         Removed.
1273         (graphite_stmt_p): Removed.
1274         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
1275         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
1276         new_poly_bb.
1277         (build_scop_bbs_1): Do not pass in sbitmap reductions.
1278         (build_scop_bbs): Same.
1279         (gbb_from_bb): ... from here.
1280         (add_conditions_to_constraints): Moved up.
1281         (analyze_drs): New.
1282         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
1283         not contain data references.
1284         (new_pbb_from_pbb): New.
1285         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1286         block is split.
1287         (rewrite_close_phi_out_of_ssa): Update call to
1288         insert_out_of_ssa_copy_on_edge.
1289         (rewrite_reductions_out_of_ssa): Now static.
1290         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1291         (split_pbb): New.
1292         (split_reduction_stmt): Call split_pbb.
1293         (translate_scalar_reduction_to_array): Pass in the scop, do not
1294         pass in the sbitmap reductions.
1295         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1296         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1297         (rewrite_commutative_reductions_out_of_ssa): Same.
1298         (build_poly_scop): Call build_scop_bbs,
1299         rewrite_commutative_reductions_out_of_ssa,
1300         rewrite_reductions_out_of_ssa, and
1301         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
1302         before scop_to_lst.
1303         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1304         Removed declaration.
1305         (rewrite_reductions_out_of_ssa): Same.
1306         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1307         (build_scop_bbs): Same.
1308         * graphite.c (graphite_transform_loops): Do not initialize reductions.
1309         Do not call build_scop_bbs,
1310         rewrite_commutative_reductions_out_of_ssa,
1311         rewrite_reductions_out_of_ssa, and
1312         rewrite_cross_bb_scalar_deps_out_of_ssa.
1313         * sese.h (struct gimple_bb): Add field pbb.
1314         (GBB_PBB): New.
1315
1316 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1317
1318         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1319         New.
1320         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
1321         handle_scalar_deps_crossing_scop_limits.
1322         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1323         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
1324
1325 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1326
1327         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1328         when replacing a constant in an ADDR_EXPR.
1329
1330 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1331
1332         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1333         for the stride.
1334         (lst_do_strip_mine): Same.
1335         (scop_do_strip_mine): Same.
1336         * graphite-poly.c (apply_poly_transforms): Update call to
1337         scop_do_strip_mine.
1338         * graphite-poly.h (scop_do_strip_mine): Update declaration.
1339
1340 2010-12-01  Jan Hubicka  <jh@suse.cz>
1341
1342         * tree.c (build_common_builtin_nodes): Do not initialize
1343         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1344         * builtins.c (expand_builtin_profile_func): Remove.
1345         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1346         BUILT_IN_PROFILE_FUNC_EXIT.
1347         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1348         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1349         * gimplify.c (gimplify_function_tree): Reorganize code calling
1350         profiling functions.
1351
1352 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1353
1354         * opts.c: Expand comment on tm.h include.
1355
1356 2010-12-01  Yao Qi  <yao@codesourcery.com>
1357
1358         * config/arm/predicates.md ("vfp_register_operand"): Return true for
1359         VFP_D0_D7_REGS classes.
1360
1361 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1362
1363         * common.opt (flag_stack_check): New Variable entry.
1364         (fcompare-debug-second): Use Var.
1365         * flags.h (flag_compare_debug, flag_stack_check): Remove.
1366         * opts.c (flag_compare_debug): Remove.
1367         (common_handle_option): Don't handle OPT_fcompare_debug_second.
1368         Set opts->x_flag_stack_check for OPT_fstack_check_.
1369         * toplev.c (flag_stack_check): Remove.
1370
1371 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * common.opt (main_input_filename, main_input_basename,
1374         main_input_baselength): New Variable entries.  From toplev.c.
1375         * final.c (output_quoted_string): Move from toplev.c.
1376         * output.h (output_quoted_string): Move from toplev.h.
1377         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1378         access main_input_filename, main_input_baselength and
1379         main_input_basename.
1380         * targhooks.c: Include intl.h and opts.h.
1381         (option_affects_pch_p, default_get_pch_validity): Move from
1382         toplev.c.
1383         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1384         Move from toplev.h.
1385         * toplev.c (main_input_filename, main_input_basename,
1386         main_input_baselength): Move to common.opt.
1387         (output_quoted_string): Move to final.c.
1388         (warn_deprecated_use): Move to tree.c.
1389         (option_affects_pch_p, default_get_pch_validity,
1390         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1391         * toplev.h (skip_leading_substring): Move to tree-dump.c.
1392         (warn_deprecated_use): Move to tree.h.
1393         (output_quoted_string): Move to output.h.
1394         (main_input_filename, main_input_basename, main_input_baselength):
1395         Move to common.opt.
1396         (default_get_pch_validity, default_pch_valid_p): Move to
1397         targhooks.c.
1398         * tree-dump.c (skip_leading_substring): Move from toplev.h.
1399         * tree.c (warn_deprecated_use): Move from toplev.c.
1400         * tree.h (warn_deprecated_use): Move from toplev.h.
1401         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1402         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1403         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1404         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1405         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1406         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1407         config/mcore/mcore.c, config/mep/mep.c,
1408         config/microblaze/microblaze.c, config/mips/mips.c,
1409         config/mmix/mmix.c, config/mn10300/mn10300.c,
1410         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1411         config/picochip/picochip.c, config/s390/s390.c,
1412         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1413         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1414         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1415         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1416         varasm.c, xcoffout.c: Don't include toplev.h.
1417         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1418         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1419         varasm.o, xcoffout.o): Update dependencies.
1420         * config/arm/t-arm (arm.o): Update dependencies.
1421         * config/spu/t-spu-elf (spu.o): Update dependencies.
1422
1423 2010-12-01  Richard Guenther  <rguenther@suse.de>
1424
1425         PR tree-optimization/46730
1426         * value-prof.c (gimple_ic): Always generate a separate merge BB.
1427
1428 2010-11-30  Ian Lance Taylor  <iant@google.com>
1429
1430         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
1431         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1432         * config/i386/linux64.h (ASM_SPEC): Likewise.
1433         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1434         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1435         * config/i386/vxworks.h (ASM_SPEC): Likewise.
1436         * config/i386/x86-64.h (ASM_SPEC): Likewise.
1437         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1438         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1439
1440 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1441
1442         * c-decl.c (finish_function): Call objc_finish_function in
1443         Objective-C.
1444         * c-typeck.c (convert_for_assignment): Do not call
1445         objc_type_quals_match().
1446
1447 2010-11-30  Richard Guenther  <rguenther@suse.de>
1448
1449         PR tree-optimization/46722
1450         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1451         operands as arguments.
1452         (execute_optimize_widening_mul): Also handle power of two as
1453         multiplication.
1454
1455 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1456
1457         PR middle-end/46709
1458         * cgraphunit.c (process_function_and_variable_attributes): Fix
1459         cut'n'pasteo.
1460
1461 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1462
1463         * hwint.c:  New.  Extracted from toplev.c.
1464         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1465         Move from toplev.h.
1466         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1467         Move to hwint.c.
1468         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1469         Move to hwint.h.
1470         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1471         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1472         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1473         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1474         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1475         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1476         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1477         tree-vrp.c: Don't include toplev.h.
1478         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1479         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1480         toplev.h in generated output.
1481         * Makefile.in (OBJS-common): Add hwint.o.
1482         Dependencies for above files changed to remove toplev.h.
1483         (hwint.o): New.
1484         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1485         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1486         toplev.h.
1487         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1488         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1489
1490 2010-11-30  Richard Guenther  <rguenther@suse.de>
1491
1492         PR tree-optimization/46717
1493         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1494         call.  Manually create EH edges for the direct call and update
1495         target PHI nodes.
1496
1497 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1498
1499         * diagnostic-core.h: Include bversion.h.
1500         * toplev.h: Don't include input.h or bversion.h.
1501         (parse_optimize_options): Don't declare here.
1502         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1503         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1504         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1505         config/host-darwin.c, config/i386/host-cygwin.c,
1506         config/i386/host-mingw32.c, config/i386/msformat-c.c,
1507         config/i386/netware.c, config/i386/nwld.c,
1508         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1509         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1510         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1511         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1512         config/score/score3.c, config/score/score7.c,
1513         config/sh/symbian-base.c, config/sh/symbian-c.c,
1514         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1515         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1516         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1517         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1518         graphite-blocking.c, graphite-clast-to-gimple.c,
1519         graphite-dependences.c, graphite-flattening.c,
1520         graphite-interchange.c, graphite-poly.c,
1521         graphite-scop-detection.c, graphite.c, haifa-sched.c,
1522         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1523         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1524         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1525         lto-opts.c, lto-section-in.c, lto-section-out.c,
1526         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1527         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1528         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1529         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1530         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1531         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1532         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1533         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1534         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1535         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1536         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1537         include toplev.h.
1538         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
1539         toplev.h.  Dependencies for above files and c-family files changed
1540         to remove $(TOPLEV_H) or toplev.h.
1541         (C_TREE_H): Don't include $(TOPLEV_H).
1542         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
1543         bversion.h.
1544         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1545         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1546         config/t-darwin, config/t-sol2,
1547         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1548         Dependencies for above files changed to remove $(TOPLEV_H) or
1549         toplev.h.
1550
1551 2010-11-30  Richard Guenther  <rguenther@suse.de>
1552
1553         PR lto/44986
1554         * gcc.c (main): Use the first input with a compiler as infile
1555         for link spec processing.
1556
1557 2010-11-30  Richard Guenther  <rguenther@suse.de>
1558
1559         PR lto/45949
1560         * cgraphunit.c (ipa_passes): Stop after errors from
1561         small IPA passes.
1562
1563 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
1564
1565         * gcc-plugin.h: Include coretypes.h.
1566         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1567
1568 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1569
1570         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1571         * ggc-none.c (ggc_internal_alloc_zone_stat)
1572         (ggc_internal_cleared_alloc_zone_stat): New.
1573
1574 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
1575
1576         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1577         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1578         (rs6000_emit_prologue): Don't set PIC register if
1579         TARGET_SINGLE_PIC_BASE.
1580         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1581         * doc/invoke.texi (msingle-pic-base): Document.
1582
1583 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
1584
1585         PR driver/46712
1586         * exec-tool.in (id): New.
1587         Check and export LT_RCU_$id instead of LT_RCU.
1588
1589 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
1590
1591         PR tree-optimization/46675
1592         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1593         in offset calculation.
1594
1595 2010-11-29  Jan Hubicka  <jh@suse.cz>
1596
1597         * collect2.c (main): Do not imply verbose output with
1598         LTO and linker plugin.
1599
1600 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
1601
1602         * dwarf2out.c (print_die): Print the address of the current DIE or
1603         of any DIE referenced by the current one.
1604
1605 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
1606
1607         PR debug/46101
1608         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1609         function.
1610         (scope_die_for, gen_type_die_for_member): Replace uses of
1611         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1612
1613 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
1614
1615         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1616         (darwin_asm_declare_object_name): Correct spelling.
1617         (darwin_output_aligned_bss): Likewise.
1618
1619 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
1620             Mike Stump  <mrs@gcc.gnu.org>
1621
1622         PR target/26427
1623         PR target/33120
1624         PR testsuite/35710
1625         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1626         (ASM_OUTPUT_LOCAL): Likewise.
1627         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1628         (darwin_output_aligned_bss): Likewise.
1629         (darwin_asm_output_aligned_decl_local): Likewise.
1630         (darwin_asm_output_aligned_decl_common): Likewise.
1631         (darwin_use_anchors_for_symbol_p): Likewise.
1632         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1633         (TARGET_ASM_OUTPUT_ANCHOR): Define.
1634         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1635         (DARWIN_SECTION_ANCHORS): Set to 1.
1636         * config/darwin.c (emit_aligned_common): New var.
1637         (darwin_init_sections): Check that the Darwin private zero-size section
1638         marker is in range.
1639         (darwin_text_section): Check for zero-sized objects.
1640         (darwin_mergeable_string_section): Likewise.
1641         (darwin_mergeable_constant_section): Likewise.
1642         (machopic_select_section): Adjust to check for zero-sized objects.
1643         Assert that OBJC meta data are non-zero sized.
1644         (darwin_asm_declare_object_name): New.
1645         (darwin_asm_declare_constant_name): Adjust for zero-sized
1646         object sections.
1647         (BYTES_ZFILL): Define.
1648         (darwin_emit_weak_or_comdat): New.
1649         (darwin_emit_local_bss): New.
1650         (darwin_emit_common): New.
1651         (darwin_output_aligned_bss): New.
1652         (darwin_asm_output_aligned_decl_common): New.
1653         (darwin_asm_output_aligned_decl_local): New.
1654         (darwin_file_end): Disable subsections_via_symbols when section
1655         anchoring is active.
1656         (darwin_asm_output_anchor): Re-enable.
1657         (darwin_use_anchors_for_symbol_p): New.
1658         (darwin_override_options): Check for versions that can emit
1659         aligned common.  Update usage of flags to current.
1660         * config/darwin-sections.def: Update comments and flags for
1661         non-anchor sections.  zobj_const_section, zobj_data_section,
1662         zobj_bss_section, zobj_const_data_section: New.
1663         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1664         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1665         (L2_MAX_OFILE_ALIGNMENT): Define.
1666         (ASM_OUTPUT_ALIGNED_BSS): Define.
1667         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1668         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1669         (SECTION_NO_ANCHOR): Define.
1670         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1671         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1672
1673 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
1674
1675         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1676         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1677         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1678         Conditionally define.
1679         (GET_ENVIRONMENT): Poison.
1680         * configure.ac: Don't test for mincore.
1681         * configure: Regenerate.
1682         * config.in: Regenerate.
1683         * collect2-aix.c: Don't include <sys/mman.h>.
1684         * collect2.c: Don't include <signal.h>.
1685         (SIGCHLD): Don't define.
1686         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1687         * config/alpha/alpha.c: Include "splay-tree.h" instead of
1688         <splay-tree.h>.
1689         * config/arm/arm.c (arm_target_help): Use getenv instead of
1690         GET_ENVIRONMENT.
1691         * config/avr/driver-avr.c: Don't include <stdlib.h>.
1692         * config/frv/frv.c: Don't include <ctype.h>.
1693         * config/host-darwin.c: Don't include <sys/mman.h>.
1694         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1695         (MAP_FAILED): Don't define.
1696         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1697         * config/host-solaris.c: Don't include <sys/mman.h>.
1698         * config/i386/cygming.h: Don't include <stdio.h>.
1699         * config/i386/driver-i386.c: Don't include <stdlib.h>.
1700         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1701         * config/iq2000/iq2000.c: Don't include <signal.h>.
1702         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1703         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1704         * config/mep/mep-pragma.c: Don't include <stdio.h>.
1705         * config/microblaze/microblaze.c: Don't include <signal.h>.
1706         * config/mips/mips.c: Don't include <signal.h>.
1707         * config/rs6000/host-darwin.c: Don't include <signal.h>.
1708         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1709         * defaults.h (GET_ENVIRONMENT): Don't define.
1710         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1711         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1712         (SIGCHLD, MAP_FAILED, kill): Don't define.
1713         (process_command): Use getenv instead of GET_ENVIRONMENT.
1714         * genhooks.c: Don't include <string.h>.
1715         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1716         <sys/types.h>.
1717         (MAP_FAILED): Don't define.
1718         * ggc-page.c Don't include <sys/mman.h>.
1719         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1720         * ggc-zone.c: Don't include <sys/mman.h>.
1721         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1722         * graph.c: Include "config.h" instead of <config.h>.
1723         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1724         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1725         (SIGCHLD, kill): Don't define.
1726         * mips-tfile.c: Don't include <signal.h>.
1727         * opts.c: Don't include <signal.h> or <sys/resource.h>.
1728         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1729         * passes.c: Don't include <signal.h>, <sys/resource.h> or
1730         <sys/times.h>.
1731         * sparseset.h: Don't include <assert.h>.
1732         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1733         * tlink.c: Don't include "libiberty.h".
1734         * toplev.c: Don't include <signal.h> or <sys/times.h>.
1735         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1736         * tree-switch-conversion.c: Don't include <signal.h>.
1737         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1738
1739 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1740
1741         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1742         c_parser_objc_try_catch_finally_statement for consistency with the
1743         C++ parser.  Parse @catch(...) and pass NULL_TREE to
1744         objc_begin_catch_clause() in that case.  Improved error recovery.
1745         Reorganized code to be almost identical to
1746         cp_parser_objc_try_catch_finally_statement.
1747
1748 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
1749
1750         PR tree-optimization/46621
1751         * gimple.h: Don't include tm.h or hard-reg-set.h .
1752         * Makefile.in (GIMPLE_H): Remove $(TM_H).
1753
1754         PR bootstrap/44756
1755         * cppbuiltin.c: Include target.h .
1756         (define_builtin_macros_for_type_sizes):
1757         Use targetm.float_words_big_endian.
1758
1759 2010-11-27  Jan Hubicka  <jh@suse.cz>
1760
1761         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1762         and output cold_text_section_label.
1763         (dwarf2out_init): Don't do that there.
1764         (dwarf2out_finish): Handle cold section end label only if cold
1765         section was used.
1766
1767 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1768
1769         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1770         VLA variables.
1771
1772 2010-11-27  Richard Guenther  <rguenther@suse.de>
1773
1774         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1775         (gimple_assign_ssa_name_copy_p): Likewise.
1776         (gimple_assign_unary_nop_p): Use is_gimple_assign.
1777         (is_gimple_cast): Remove.
1778         (gimple_assign_single_p): Move ...
1779         * gimple.h (gimple_assign_single_p): ... here.
1780         (is_gimple_cast): Remove.
1781         (gimple_assign_rhs_code): Simplify.
1782         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1783         instead of is_gimple_cast.
1784         * ipa-type-escape.c (look_for_casts): Likewise.
1785
1786 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
1787
1788         * doc/options.texi (Enum, EnumValue): Document new record types.
1789         (Enum): Document new option flag.
1790         * opt-functions.awk
1791         * optc-gen.awk: Handle enumerated option arguments.
1792         * opth-gen.awk: Handle enumerated option arguments.
1793         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1794         enum_value_to_arg): New.
1795         (decode_cmdline_option): Handle enumerated arguments.
1796         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1797         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1798         * opts.c (print_filtered_help, print_specific_help): Take
1799         lang_mask arguments.
1800         (print_filtered_help): Handle printing values of enumerated
1801         options.  Print possible arguments for enumerated options.
1802         (print_specific_help): Update call to print_filtered_help.
1803         (common_handle_option): Update calls to print_specific_help.  Use
1804         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
1805         handle OPT_ffp_contract_, OPT_fexcess_precision_,
1806         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1807         OPT_fira_region_ here.
1808         * opts.h (enum cl_var_type): Add CLVC_ENUM.
1809         (struct cl_option): Add var_enum.
1810         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1811         struct cl_enum, cl_enums, cl_enums_count): New.
1812         (CL_ERR_ENUM_ARG): Define.
1813         (CL_ERR_NEGATIVE): Update value.
1814         (enum_value_to_arg): Declare.
1815         * common.opt (flag_ira_algorithm, flag_ira_region,
1816         flag_fp_contract_mode, flag_excess_precision_cmdline,
1817         default_visibility, flag_tls_default): Remove Variable entries.
1818         (help_enum_printed): New Variable.
1819         (fdiagnostics-show-location=): Use Enum.  Add associated
1820         SourceInclude, Enum and EnumValue entries.
1821         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1822         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
1823         associated Enum and EnumValue entries.
1824
1825 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
1826
1827         PR target/46623
1828         * config/microblaze/microblaze.c (microblaze_block_move_straight):
1829         Use XALLOCAVEC.
1830         (microblaze_option_override): Don't use C++ style comments.
1831         (save_restore_insns): Remove unused variable base_offset.
1832         (microblaze_expand_prologue): Remove unused variable insn.
1833         (microblaze_secondary_reload): Adjust type to match target.h .
1834         (microblaze_elf_in_small_data_p): Move declarations to start of block.
1835         (microblaze_expand_move): Likewise.
1836         * config/microblaze/microblaze.h (LARGE_INT):
1837         Avoid signed / unsigned comparisons.
1838         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1839         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1840         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
1841
1842 2010-11-26  Michael Matz  <matz@suse.de>
1843
1844         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1845
1846         * passes.c (init_optimization_passes): Remove superfluous
1847         copy-prop pass.
1848
1849 2010-11-26  Richard Guenther  <rguenther@suse.de>
1850
1851         PR lto/46648
1852         * gimple.c (gtc_visit): Do not return true for members of an
1853         SCC still being processed but the current lattice value of
1854         the member.  Treat SCC members comparison state as lattice,
1855         starting at equal, eventually dropping to unequal.
1856         (gimple_types_compatible_p_1): Likewise.
1857
1858 2010-11-26  Richard Guenther  <rguenther@suse.de>
1859
1860         PR middle-end/46559
1861         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1862         for location list processing.
1863
1864 2010-11-26  Richard Guenther  <rguenther@suse.de>
1865
1866         PR lto/46560
1867         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1868         flags manually.
1869
1870 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1871
1872         * config/s390/s390.c (print_operand_address): Replace assert with
1873         error message.
1874         (print_operand): Replace assertions, gcc_unreachable and
1875         fatal_insn with error messages.
1876
1877 2010-11-26  Richard Guenther  <rguenther@suse.de>
1878
1879         PR tree-optimization/46665
1880         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1881
1882 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
1883
1884         * config/arm/arm.c (arm_option_override): enable loop array
1885         prefetching at -O3 for suitable targets, and configure params.
1886         * config/arm/arm-protos.h (struct tune_params): Add fields for
1887         configuring loop array prefetching.
1888
1889 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
1890
1891         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1892
1893 2010-11-26  Richard Guenther  <rguenther@suse.de>
1894
1895         PR tree-optimization/46664
1896         * tree-affine.c (aff_combination_to_tree): Add rest last.
1897
1898 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1899
1900         PR target/33637
1901         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1902         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1903         * configure: Regenerated.
1904         * exec-tool.in: Not quoting command, may have extra arguments.
1905
1906 2010-11-26  Richard Guenther  <rguenther@suse.de>
1907
1908         PR tree-optimization/46528
1909         PR debug/46338
1910         * profile.c (branch_prob): Do not split blocks based on locations
1911         from debug statements.
1912
1913 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
1914
1915         PR middle-end/46647
1916         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1917         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
1918
1919         PR bootstrap/45700
1920         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1921         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1922         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1923         build6_loc): Define.
1924         * fold-const.c (protected_set_expr_location_unshare): New inline.
1925         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1926         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1927         pedantic_omit_one_operand_loc, omit_two_operands_loc,
1928         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1929         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1930         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1931         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1932         instead of buildN followed by SET_EXPR_LOCATION or
1933         protected_set_expr_location.
1934         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1935         Use buildN_stat_loc instead of buildN_stat followed by
1936         SET_EXPR_LOCATION.
1937
1938 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
1939
1940         * Makefile.in (s-tm-texi): Remove spurous tab.
1941
1942 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1943
1944         PR debug/46258
1945         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1946         debug stmts.
1947
1948 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1949
1950         * toplev.c (finalize): Add no_backend parameter.  Don't finish
1951         passes when preprocessing only.  Adjust...
1952         (do_compile): ... caller.
1953
1954 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1955
1956         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1957         flag_unsafe_math_optimizations.
1958         (negsf2): Likewise.
1959         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1960         to negate a multiply if !flag_signed_zeros is true.
1961
1962 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1963
1964         * gengtype-state.c (read_state_structures): Initialize "previous".
1965
1966 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1967             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1968
1969         * gengtype-state.c: Add new file.
1970
1971         * gengtype.c (type count): New variable.
1972         (new_structure, find_param_structure, create_pointer)
1973         (create_array): Use it to set state_number in types.
1974         (dump_everything): Improve comment.
1975         (main): Call read_state and write_state. Print type_count.
1976
1977         * gengtype.h (type_lineloc): New function.
1978         (read_state, write_state): New declarations.
1979
1980         * Makefile.in (GENGTYPE_FLAGS): New variable.
1981         (s-gtype): Run gengtype twice and generate gtype.state.
1982         (build/gengtype-state.o): New rule.
1983         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1984         (mostlyclean): Update comment.  Remove gtype.state.
1985
1986 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1987
1988         PR middle-end/46637
1989         * combine.c (try_combine): When substing i2dest for i2src, pass
1990         1 as last argument even if
1991         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1992
1993 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1994
1995         PR middle-end/46647
1996         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1997         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1998
1999 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
2000
2001         * target.def (supports_split_stack, except_unwind_info): Take
2002         gcc_options parameters.
2003         * targhooks.c (default_except_unwind_info,
2004         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
2005         gcc_options parameters.
2006         * targhooks.h (default_except_unwind_info,
2007         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
2008         prototypes.
2009         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
2010         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
2011         Document that hooks must not be modified.
2012         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
2013         * doc/tm.texi: Regenerate.
2014         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
2015         &global_options to targetm.except_unwind_info.
2016         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2017         dwarf2out_begin_prologue, dwarf2out_frame_init,
2018         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
2019         &global_options to targetm.except_unwind_info.
2020         * except.c (init_eh, finish_eh_generation,
2021         gate_convert_to_eh_region_ranges,
2022         output_one_function_exception_table): Pass &global_options to
2023         targetm.except_unwind_info.
2024         * expr.c (build_personality_function): Pass &global_options to
2025         targetm.except_unwind_info.
2026         * function.c (expand_function_end): Pass &global_options to
2027         targetm.except_unwind_info.
2028         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
2029         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
2030         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
2031         and targetm.supports_split_stack.  Remove assertions about opts
2032         and opts_set.
2033         (common_handle_option): Remove assertions about opts, opts_set and dc.
2034         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
2035         &global_options to targetm.except_unwind_info.
2036         * tree.c (build_common_builtin_nodes: Pass &global_options to
2037         targetm.except_unwind_info.
2038         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
2039         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
2040         thumb1_expand_prologue, thumb1_output_function_prologue,
2041         arm_unwind_emit, arm_output_fn_unwind): Update calls to
2042         arm_except_unwind_info.
2043         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
2044         parameter.
2045         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
2046         parameter.
2047         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
2048         ia64_reorg, ia64_asm_unwind_emit): Update calls to
2049         ia64_except_unwind_info.
2050         * config/pa/pa.c (pa_option_override): Pass &global_options to
2051         targetm.except_unwind_info.
2052         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2053         Remove prototype.
2054
2055 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
2056
2057         * cgraphunit.c (process_function_and_variable_attributes):
2058         Mark dllexport-ed function/variables as needed.
2059         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
2060         as externally visible.
2061
2062 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
2063
2064         PR rtl-optimization/46585
2065         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
2066         (vinsn_init): Skip computation of dependencies for local NOPs.
2067         (vinsn_delete): Don't try to free regsets for local NOPs.
2068         (setup_nop_and_exit_insns): Change definition of nop_pattern.
2069
2070 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
2071
2072         PR rtl-optimization/46602
2073         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
2074         (tidy_control_flow): Here.
2075
2076 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
2077             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2078
2079         PR bootstrap/45888
2080         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
2081         Fix target.def pathname in timestamp comparison.
2082
2083 2010-11-24  Richard Henderson  <rth@redhat.com>
2084
2085         * config/ia64/predicates.md (pmpyshr_operand): New.
2086         * config/ia64/ia64.c (ia64_expand_unpack): New.
2087         (ia64_expand_widen_mul_v4hi): New.
2088         (ia64_expand_widen_sum): Update for pattern renames.
2089         (ia64_expand_dot_prod_v8qi): Likewise.
2090         * config/ia64/ia64-protos.h: Update.
2091         * config/ia64/vect.md (vecwider): New mode attribute.
2092         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
2093         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
2094         (pmpyshr2, pmpyshr2_u): New.
2095         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
2096         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
2097         (mulv2si3): New.
2098         (vec_pack_ssat_v4hi): Rename from pack2_sss.
2099         (vec_pack_usat_v4hi): Rename from *pack2_uss.
2100         (vec_pack_ssat_v2si): Rename from pack4_sss.
2101         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
2102         vec_select operation.
2103         (vec_interleave_highv8qi): Similarly.
2104         (mux1_alt): Rename from *mux1_alt.
2105         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
2106         (vec_interleave_lowv4hi): Rename from unpack2_l.
2107         (vec_interleave_highv4hi): Rename from unpack2_h.
2108         (mix2_r): Rename from *mix2_r.
2109         (mix2_l): Similarly.
2110         (vec_extract_evenodd_helper): New.
2111         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
2112         (vec_interleave_lowv2si): Rename from *unpack4_l.
2113         (vec_interleave_highv2si): Rename from *unpack4_h.
2114         (vec_extract_evenv2si, vec_extract_oddv2si): New.
2115         (vec_interleave_lowv2sf): Rename from fmix_r.
2116         (vec_interleave_highv2sf): Rename from *fmix_l.
2117         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
2118         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
2119         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
2120         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
2121
2122 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
2123
2124         * targhooks.c (default_except_unwind_info): Remove
2125         MUST_USE_SJLJ_EXCEPTIONS case.
2126         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2127         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2128         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2129         * doc/tm.texi: Regenerate.
2130         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
2131
2132 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
2133
2134         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2135         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
2136         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
2137         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
2138         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
2139
2140 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
2141
2142         PR target/46519
2143         * config/i386/i386.c (ix86_expand_call): Don't check
2144         TREE_THIS_VOLATILE.
2145
2146 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
2147
2148         PR target/46519
2149         * config/i386/i386.c (upper_128bits_state): New.
2150         (block_info_def): Remove upper_128bits_set and done.  Add state,
2151         referenced, count, processed and rescanned.
2152         (check_avx256_stores): Updated.
2153         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
2154         Call note_stores only if needed.  Set referenced and count.
2155         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
2156         (rescan_move_or_delete_vzeroupper): New.
2157         (move_or_delete_vzeroupper):  Process and rescan all all basic
2158         blocks instead of predecessor blocks of all exit points.
2159         (ix86_option_override_internal): Enable vzeroupper optimization
2160         only for -fexpensive-optimizations and not optimizing for size.
2161         (use_avx256_p): Removed.
2162         (init_cumulative_args): Don't set use_avx256_p.
2163         (ix86_function_arg): Likewise.
2164         (ix86_expand_move): Likewise.
2165         (ix86_expand_vector_move_misalign): Likewise.
2166         (ix86_local_alignment): Likewise.
2167         (ix86_minimum_alignment): Likewise.
2168         (ix86_expand_epilogue): Don't check use_avx256_p when generating
2169         vzeroupper.
2170         (ix86_expand_call): Likewise.
2171
2172         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
2173         and use_avx256_p.  Add rescan_vzeroupper_p.
2174
2175 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
2176
2177         * toplev.c: Include <signal.h>.
2178
2179 2010-11-24  Richard Guenther  <rguenther@suse.de>
2180
2181         PR lto/43218
2182         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
2183         conflicting function signatures as non-inlineable.
2184
2185 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
2186
2187         PR rtl-optimization/46614
2188         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
2189          (deps_analyze_insn): Mark JUMP_INSNs in
2190         last_pending_memory_flush that weren't added through
2191         flush_pending_lists with NON_FLUSH_JUMP_KIND.
2192         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
2193         on INSN_LIST instead of JUMP_P check on its operand.
2194         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
2195
2196 2010-11-24  Richard Guenther  <rguenther@suse.de>
2197
2198         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2199
2200 2010-11-24  Richard Guenther  <rguenther@suse.de>
2201
2202         PR lto/46606
2203         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2204         a FIELD_DECL that is type correct issue a warning and fixup
2205         with a VIEW_CONVERT_EXPR.
2206
2207 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
2208
2209         * doc/invoke.texi (Options for Debugging Your Program or GCC):
2210         Explain static numbering of dump files.
2211
2212 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
2213
2214         * common.opt (user_vect_verbosity_level): New Variable entry.
2215         (ftree-vectorizer-verbose=): Mark as UInteger.
2216         * flag-types.h (enum vect_verbosity_levels): Move from enum
2217         verbosity_levels in tree-vectorizer.h.
2218         * opts.c: Don't include tree.h.
2219         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
2220         gcc_options parameter; take integer option argument.
2221         (common_handle_option): Update call to vect_set_verbosity_level.
2222         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2223         (vect_set_verbosity_level): Move to opts.c.
2224         (vect_verbosity_level, vect_print_dump_info): Update for change of
2225         enum name.
2226         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2227         (vect_print_dump_info): Update for change of enum name.
2228         * tree.h (vect_set_verbosity_level): Remove.
2229         * Makefile.in (opts.o): Update dependencies.
2230
2231 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
2232
2233         PR middle-end/46629
2234         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2235         instead of insn with any_condjump_p.
2236
2237 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
2238
2239         * config/mips/loongson.md: Change the description comment of the file
2240         and update the copyright years.
2241         (define_insn "<u>div<mode>3): Add loongson3a support.
2242         (define_insn "<u>mod<mode>3"): Likewise.
2243         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2244         mul<mode>3_mul3_loongson.
2245         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2246         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2247
2248 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2249
2250         * common.opt (initial_max_fld_align, flag_debug_asm,
2251         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2252         flag_print_asm_name, graph_dump_format, help_printed,
2253         help_columns, flag_opts_finished): New Variable entries.
2254         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2255         frandom-seed=): Mark deferred.
2256         (fsched-verbose=): Use UInteger and Var.
2257         * flags.h (set_struct_debug_option, flag_print_asm_name,
2258         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2259         graph_dump_format): Don't declare here.
2260         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2261         * opts-global.c: Include dbgcnt.h and debug.h.
2262         (decode_options): Pass location to finish_options.
2263         (handle_common_deferred_options): Check flag_dump_all_passed.
2264         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2265         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
2266         OPT_fstack_limit.
2267         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2268         (set_struct_debug_option): Add location_t parameter.  Update
2269         recursive call.  Use error_at.
2270         (default_options_optimization): Use error_at.
2271         (finish_options): Add location_t parameter.  Use
2272         opts->x_flag_opts_finished instead of first_time_p.  Use
2273         opts->x_optimize instead of optimize.  Use error_at.  Pass
2274         location to inform.
2275         (print_filtered_help): Use opts->x_help_printed to track what
2276         options have been printed.
2277         (print_specific_help): Use opts->x_help_columns to track number of
2278         columns.
2279         (common_handle_option): Pass locations and gcc_options pointers to
2280         more functions.  Use warning_at instead of fnotice and warning.
2281         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2282         OPT_fdebug_prefix_map_.  Use error_at.  Set
2283         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2284         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
2285         OPT_fsched_verbose_.
2286         (handle_param): Add location_r parameter.  Use error_at.
2287         (set_debug_level): Add location_r parameter.  Use error_at and
2288         warning_at.
2289         (setup_core_dumping): Add diagnostic_context parameter.
2290         (decode_d_option): Add gcc_options, location_t and
2291         diagnostic_context parameters and use them instead of global
2292         state.  Use warning_at.
2293         (enable_warning_as_error): Use error_at.
2294         * opts.h (finish_options): Update prototype.
2295         (set_struct_debug_option): Declare here.
2296         * rtl.h (fix_sched_param): Remove.
2297         * stor-layout.c (initial_max_fld_align): Remove.
2298         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2299         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2300         (process_options): Set maximum_field_alignment.
2301         * tree.h (initial_max_fld_align) Don't declare here.
2302         * Makefile.in (opts.o, opts-global.o): Update dependencies.
2303
2304 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2305
2306         * flag-types.h (struct visibility_flags): Don't declare here.
2307         * flags.h (strip_off_ending, fast_math_flags_set_p,
2308         fast_math_flags_struct_set_p): Declare here.
2309         (visibility_options): Don't declare here.
2310         * opts-common.c (option_enabled, get_option_state): Move from
2311         opts.c.
2312         * opts-global.c: Include diagnostic.h instead of
2313         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
2314         and toplev.h.
2315         (const_char_p, ignored_options, in_fnames, num_in_fnames,
2316         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2317         print_ignored_options, unknown_option_callback,
2318         post_handling_callback, lang_handle_option, add_input_filename,
2319         read_cmdline_options, initial_lang_mask, init_options_once,
2320         decode_cmdline_options_to_array_default_mask,
2321         set_default_handlers, decode_options): Move from opts.c.
2322         (print_ignored_options): Use warning_at instead of saving and
2323         restoring input_location.
2324         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
2325         instead of expr.h.  Don't include langhooks.h, except.h or
2326         lto-streamer.h.  Add more comments on includes.
2327         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2328         toplev.c.
2329         (visibility_options): Move to c-family/c-common.c.
2330         (const_char_p, ignored_options, in_fnames, num_in_fnames,
2331         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2332         print_ignored_options, unknown_option_callback,
2333         post_handling_callback, lang_handle_option, add_input_filename,
2334         read_cmdline_options, initial_lang_mask, init_options_once,
2335         decode_cmdline_options_to_array_default_mask,
2336         set_default_handlers, decode_options): Move to opts-global.c.
2337         (target_handle_option, default_options_optimization,
2338         finish_options, common_handle_option): Remove static.
2339         (option_enabled, get_option_state): Move to opts-common.c.
2340         * opts.h (common_handle_option, target_handle_option,
2341         finish_options, default_options_optimization): Declare.
2342         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2343         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2344         opts.c.
2345         * toplev.h (strip_off_ending, decode_d_option,
2346         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2347         declare here.
2348         * Makefile.in (opts.o, opts-global.o): Update dependencies.
2349
2350 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
2351
2352         PR driver/42690
2353         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2354         options, replace by call of pass-through-libs spec function to process
2355         link_gcc_c_sequence spec.
2356         (lto_libgcc_spec): Delete variable.
2357         (static_specs[]): Remove related entry.
2358         (static_spec_functions[]): Add new entry for pass-through-libs.
2359         (main): Don't generate deleted lto_libgcc_spec.
2360         (pass_through_libs_spec_func): New function to implement the new
2361         pass-through-libs spec function.
2362         * doc/invoke.texi (pass-through-libs): Document new spec function.
2363
2364 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2365
2366         * doc/options.texi (Warning, Optimization): Document.
2367
2368 2010-11-23  Jan Hubicka  <jh@suse.cz>
2369
2370         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2371         (tree_decl_with_vis): Add implicit_section_name_p.
2372         * targhooks.h (default_function_section): Declare.
2373         * target.def (function_section): New hook.
2374         * defaults.h (HOT_TEXT_SECTION_NAME,
2375         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2376         * predict.c (choose_function_section): Remove.
2377         (estimate_bb_frequencies): Do not use choose_function_section.
2378         * coretypes.h (enum node_frequency): Move here from cgraph.h
2379         * cgraph.h (enum node_frequency): Remove.
2380         * varasm.c (initialize_cold_section_name, unlikely_text_section,
2381         unlikely_text_section_p): Remove.
2382         (named_subsection_entry): New structure.
2383         (get_text_section): New function.
2384         (default_function_section): New function.
2385         (function_section_1): Break out from ...; handle profile info.
2386         (function_section): ... here.
2387         (unlikely_text_section): Remove.
2388         (unlikely_text_section_p): Use function_section_1.
2389         (assemble_start_function): Do not initialize cold section.
2390         (default_section_type_flags): Do not special case cold subsection.
2391         (switch_to_section): Likewise.
2392         * output.h (get_text_section): Define.
2393         * config/i386/winnt.c: Do not special case cold section.
2394         * config/darwin-protos.h (darwin_function_section): Declare.
2395         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2396         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2397         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2398         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2399         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2400         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2401         * config/darwin.c (machopic_select_section): Use
2402         darwin_function_section.
2403         (darwin_function_section): New function.
2404         * config/darwin.h (HOT_TEXT_SECTION_NAME,
2405         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2406         (TARGET_ASM_FUNCTION_SECTION): Define.
2407         * system.h (HOT_TEXT_SECTION_NAME,
2408         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2409
2410 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
2411
2412         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2413         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2414
2415 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
2416
2417         PR middle-end/46499
2418         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2419         following unconditional jumps.
2420
2421 2010-11-23  Richard Guenther  <rguenther@suse.de>
2422
2423         * doc/md.texi (386 constraints): Clarify A constraint documentation.
2424
2425 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
2426             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2427
2428         * gengtype.c (enum typekind, struct options)
2429         (struct nested_ptr_data, struct pair, NUM_PARAM)
2430         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2431         Move to gengtype.h.
2432         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2433         Remove static, add zero state_number.
2434         (typedefs, structures, param_structs, variables): Remove static.
2435         (create_option): Remove.
2436         (create_string_option, create_type_option, create_nested_option):
2437         New functions.
2438         (create_nested_ptr_option): Use create_nested_option.
2439         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2440         new create*option functions.
2441         (process_gc_options): Adjust for discriminated option.
2442         (output_mangled_typename): Handle TYPE_NONE.
2443         (walk_type): Test option kinds.
2444         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2445         (write_func_for_structure, write_type, write_local, write_root)
2446         (write_roots, note_def_vec, dump_options): Adjust for
2447         discriminated option.
2448
2449         * gengtype.h (typedefs, structures, param_structs, variables
2450         enum typekind): Move from gengtype.c
2451         (enum option_kind): New discriminating enumeration.
2452         (struct options): Becomes discriminated.
2453         (struct nested_ptr_data): Nove from gengtype.c
2454         (create_string_option, create_type_option, create_nested_option)
2455         (create_nested_ptr_option): New functions
2456         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2457         (UNION_OR_STRUCT_P): Move from gengtype.c
2458
2459         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2460         discriminated options.
2461
2462 2010-11-23  Richard Guenther  <rguenther@suse.de>
2463
2464         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2465         twice.  Avoid re-allocating the ops vector all the time.
2466
2467 2010-11-23  Richard Guenther  <rguenther@suse.de>
2468
2469         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2470         is_gimple_min_invariant, group tree code checks to allow
2471         combining them.
2472         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2473         of is_gimple_reg.
2474
2475 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
2476
2477         * config.gcc (sparc*-*-*): Reorder.
2478
2479 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
2480
2481         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2482         Remove ENABLE_CHECKING around DBGPRINTF.
2483
2484 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
2485
2486         * common.opt (exit_after_options, write_symbols, debug_info_level,
2487         use_gnu_debug_info_extensions): New Variable entries.
2488         (fprofile-dir=): Use Var.
2489         * flag-types.h (enum debug_info_level): Rename to enum
2490         debug_info_levels.
2491         * flags.h (write_symbols, debug_info_level,
2492         use_gnu_debug_info_extensions): Remove declarations.
2493         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2494         (set_struct_debug_option): Make static variables const.
2495         (use_gnu_debug_info_extensions): Remove.
2496         (set_debug_level, print_filtered_help, print_specific_help,
2497         fast_math_flags_set_p): Take gcc_options parameters and use them
2498         in place of global variables.
2499         (print_filtered_help): Make new_help non-static.
2500         (print_specific_help): Update call to print_filtered_help.
2501         (common_handle_option): Update calls to print_specific_help.  Use
2502         gcc_options structure for more settings.  Make --help table
2503         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
2504         set_debug_level.
2505         * toplev.c (profile_data_prefix): Remove.
2506         * toplev.h (profile_data_prefix, exit_after_options): Remove
2507         declarations.
2508         (fast_math_flags_set_p): Update prototype.
2509         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2510         Update call to fast_math_flags_set_p.
2511
2512 2010-11-22  Richard Henderson  <rth@redhat.com>
2513
2514         PR target/46434
2515         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2516         return the address register extracted.
2517         (crx_decompose_address): Update the extracted address register.
2518
2519 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
2520
2521         PR driver/43335
2522         * gcc.c (main): Don't crash when lto-wrapper program is not found.
2523
2524 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
2525
2526         PR target/46608
2527         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2528         * config/picochip/picochip-protos.h: Don't include "target.h" .
2529         (picochip_secondary_reload): Don't declare.
2530
2531         PR target/46613
2532         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2533         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2534         static.
2535
2536 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
2537
2538         PR bootstrap/46609
2539         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2540         (source_dot_c_frul): Likewise.
2541
2542 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
2543
2544         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2545
2546 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
2547
2548         PR bootstrap/44970
2549         * Makefile.in (fwprop.o) Add sparseset.h.
2550         * fwprop.c: Include sparseset.h
2551         (struct find_occurrence_data, find_occurrence_callback,
2552         find_occurrence): Remove.
2553         (active_defs, active_defs_check, register_active_defs,
2554         update_df_init, update_uses): New.
2555         (update_df): Rewrite.
2556         (try_fwprop_subst, forward_propagate_asm): Add calls to
2557         update_df_init and update_df.
2558         (fwprop_init): Allocate active_defs and active_defs_check.
2559         (fwprop_done): Free them.
2560         (fwprop, fwprop_addr): Adjust comments.
2561         * df.h (df_uses_create): Declare.
2562         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2563         (df_ref_create): Return result of df_ref_create_structure directly.
2564         (df_ref_create_structure): Call df_install_ref_incremental when
2565         no collection_rec is passed.
2566         (df_ref_record): Do not create multiword hard reg info when no
2567         collection_rec is passed.
2568         (df_uses_create): New.
2569
2570 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2571
2572         PR middle-end/43057
2573         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2574         setting location.
2575
2576 2010-11-22  Richard Guenther  <rguenther@suse.de>
2577
2578         * gimple-fold.c (maybe_fold_reference): When canonicalizing
2579         MEM_REFs, preserve volatileness.
2580         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2581         addresses.
2582
2583 2010-11-22  Richard Guenther  <rguenther@suse.de>
2584
2585         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2586
2587 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
2588
2589         PR rtl-optimization/45652
2590         * alias.c (get_reg_base_value): New.
2591         * rtl.h (get_reg_base_value): Add prototype.
2592         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
2593         non-null REG_BASE_VALUE for renaming.
2594
2595 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
2596             Basile Starynkevitch  <basile@starynkevitch.net>
2597
2598         * gengtype.c: Include xregex.h and obstack.h
2599         Added comments about role of get_output_file_with_visibility and
2600         our regexpr machinery.
2601         (frul_actionrout_t, struct file_rule_st): New.
2602         (hader_dot_h_frul, source_dot_c_frul): New functions.
2603         (NULL_REGEX,  NULL_FRULACT): New.
2604         (files_rules): New.
2605         (matching_file_name_substitute): New function.
2606         (get_output_file_with_visibility): Updated comments and rewritten
2607         to use the new files_rules machinery.
2608
2609         * Makefile.in (XREGEX_H): Added variable.
2610         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2611
2612 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
2613
2614         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2615
2616 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
2617
2618         * target.def (conditional_register_usage): Define.
2619         * reginfo.c (init_reg_sets_1): Call
2620         targetm.conditional_register_usage.
2621         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2622         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2623         for making it a hook.
2624         * doc/tm.texi: Regenerate.
2625         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2626         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2627         New function.
2628         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2629         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2630         * config/arc/arc.c (arc_conditional_register_usage): ...here.
2631         New function.
2632         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2633         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2634         * config/arm/arm.c (arm_conditional_register_usage): ...here.
2635         New function.
2636         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2637         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2638         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2639         * config/bfin/bfin.c (conditional_register_usage): Move code into...
2640         (bfin_conditional_register_usage): ...here.  New function.
2641         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2642         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2643         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2644         * config/cris/cris.c (cris_conditional_register_usage): Make static.
2645         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2646         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2647         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2648         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2649         * config/frv/frv.c (frv_conditional_register_usage): Make static.
2650         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2651         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2652         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2653         New function.
2654         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2655         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2656         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2657         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2658         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2659         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2660         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2661         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2662         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2663         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2664         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2665         New function.
2666         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2667         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2668         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2669         Delete.
2670         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2671         static.
2672         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2673         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2674         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2675         * config/mep/mep.c (mep_conditional_register_usage): Make static.
2676         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2677         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2678         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2679         * config/mips/mips.c (mips_conditional_register_usage): Make static.
2680         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2681         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2682         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2683         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2684         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2685         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2686         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2687         ...here.  New function.
2688         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2689         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2690         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2691         * config/pa/pa.c (pa_conditional_register_usage): ...here.
2692         New function.
2693         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2694         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2695         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2696         New function.
2697         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2698         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2699         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2700         Delete.
2701         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2702         static.
2703         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2704         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2705         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2706         * config/rx/rx.c (rx_conditional_register_usage): Make static.
2707         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2708         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2709         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2710         * config/s390/s390.c (s390_conditional_register_usage): Make static.
2711         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2712         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2713         * config/score/score.c (score_conditional_register_usage): ...here.
2714         New function.
2715         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2716         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2717         * config/sh/sh.c (sh_conditional_register_usage): ...here.
2718         New function.
2719         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2720         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2721         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2722         New function.
2723         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2724         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2725         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2726         * config/spu/spu.c (spu_conditional_register_usage): Make static.
2727         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2728         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2729         * config/v850/v850.c (v850_conditional_register_usage): ...here.
2730         New function.
2731         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2732
2733 2010-11-21  Jan Hubicka  <jh@suse.cz>
2734             Dominique d'Humieres <dominiq@lps.ens.ft>
2735
2736         PR target/46510
2737         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2738         finalize external decls.
2739
2740 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
2741
2742         * system.h (strerror): Poison.
2743
2744 2010-11-21  Richard Henderson  <rth@redhat.com>
2745
2746         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2747         for infq/huge_valq.
2748
2749 2010-11-21  Richard Henderson  <rth@redhat.com>
2750
2751         PR rtl-optimization/46571
2752         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2753         (compute_hash_table_work): Use NONDEBUG_INSN_P.
2754
2755 2010-11-21  Paul Koning  <ni1d@arrl.net>
2756
2757         * config/mips/pdp11.md (negsi2): Fix wrong code.
2758
2759 2010-11-21  Paul Koning  <ni1d@arrl.net>
2760
2761         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2762         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2763
2764 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2765
2766         * config/mips/mips.c (machine_function): Rename load_label_length to
2767         load_label_num_insns.
2768         (mips_load_label_length): Rename to...
2769         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
2770         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
2771
2772 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2773
2774         PR target/46533
2775         * config/alpha/predicates.md (direct_call_operand): Return false
2776         for !TARGET_SMALL_TEXT targets.
2777
2778 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2779
2780         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2781         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2782         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2783         * doc/tm.texi: Regenerate.
2784         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2785         HANDLE_PRAGMA_WEAK): Poison.
2786         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2787         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2788         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2789         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2790         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2791         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2792         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2793         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2794         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2795         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2796         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2797         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2798         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2799         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2800         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2801         (HANDLE_PRAGMA_WEAK): Don't undefine.
2802         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2803         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2804         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2805         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2806         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2807         (HANDLE_PRAGMA_WEAK): Don't undefine.
2808         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2809         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2810         (HANDLE_PRAGMA_PACK): Don't undefine.
2811         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2812         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2813         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2814         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2815         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2816         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2817         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2818         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2819         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2820         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2821         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2822         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2823         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2824         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2825         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2826         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2827         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2828
2829 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2830
2831         PR target/31100
2832         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2833         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2834         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2835
2836 2010-11-20  Jan Hubicka  <jh@suse.cz>
2837
2838         * cgraph.c (ld_plugin_symbol_resolution_names): New.
2839         (dump_cgraph_node): Dump resolution.
2840         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2841         (cgraph_comdat_can_be_unshared_p): Dclare.
2842         * lto-streamer-out.c (produce_symtab): Use
2843         cgraph_comdat_can_be_unshared_p.
2844         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2845         (cgraph_comdat_can_be_unshared_p): New function based on logic
2846         in cgraph_externally_visible_p.
2847         (cgraph_externally_visible_p): Use it.
2848         (varpool_externally_visible_p): Virtual tables can be unshared.
2849         * varpool.c (dump_varpool_node): Dump resolution.
2850
2851 2010-11-20  Jan Hubicka  <jh@suse.cz>
2852
2853         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2854
2855 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2856
2857         PR other/46202
2858         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2859         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2860         shell quoting.
2861         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2862         (install-strip): New target.
2863         (STRIPPROG): New variable, exported if STRIP is set.
2864         * doc/install.texi (Final install): Minor markup and code style
2865         fixes.  Document install-strip target.
2866
2867 2010-11-20  Paul Koning  <ni1d@arrl.net>
2868
2869         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2870         pdp11_regno_reg_class): New functions.
2871         * config/pdp11/pdp11.md (define_constants): Add register numbers.
2872         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2873         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2874         functions.
2875         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2876         frame pointer and argument pointer pseudo-registers.
2877         (ARG_POINTER_REGNUM): Define.
2878         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2879         argument pointer.
2880         (FIRST_PARM_OFFSET): Update for argument pointer.
2881         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2882         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2883         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2884         frame pointer and argument pointer.
2885
2886 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
2887
2888         PR debug/46561
2889         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2890         when looking for immediate uses.
2891
2892         PR tree-optimization/45830
2893         * stmt.c (expand_switch_using_bit_tests_p): New function.
2894         (expand_case): Use it.
2895         * tree.h (expand_switch_using_bit_tests_p): New prototype.
2896         * tree-switch-conversion.c (struct switch_conv_info): Add
2897         bit_test_uniq, bit_test_count and bit_test_bb fields.
2898         (check_range): Fix a comment.
2899         (check_process_case): Compute bit_test_uniq and bit_test_count.
2900         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2901         allocation.
2902         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2903         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2904         (array_value_type): New function.
2905         (build_one_array): Use it, if it returned different type,
2906         fold_convert all constructor fields and convert back to the
2907         wider type in the generated code.
2908         (process_switch): Initialize bit_test_uniq, bit_test_count and
2909         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
2910         returned true.
2911
2912 2010-11-19  Michael Matz  <matz@suse.de>
2913
2914         PR tree-optimization/46077
2915         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2916
2917 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
2918
2919         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2920         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2921         function.
2922         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2923
2924 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2925
2926         * mode-switching.c (optimize_mode_switching): Use
2927         FOR_BB_INSNS instead of open-coded loop.
2928         * cfgrtl.c (redirect_branch_edge): Ditto.
2929
2930 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
2931
2932         PR target/46436
2933         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2934         to accomodate 32 bit HOST_WIDE_INT.
2935         (m68hc11_emit_logical): Remove unused variable insn.
2936         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2937         this_insn_uses_iy before use.
2938
2939         PR target/46434
2940         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2941
2942 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2943
2944         PR c/46547
2945         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2946         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2947
2948 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2949
2950         * doc/extend.texi (Function attributes): Document PowerPC target
2951         attributes that are supported.
2952         (Pragmas): Document that PowerPC now supports target pragmas.
2953
2954         * doc/options.texi (TargetVariable): Document TargetVariable,
2955         HeaderInclude, and SourceInclude.
2956
2957         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2958         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2959         -ffp-contract=off.
2960
2961         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2962         SourceInclude directives.  Fix a cut+paste error with target save
2963         enum variables.  Sort enums in the structures after ints and
2964         before shorts.
2965         * opth-gen.awk: Ditto.
2966
2967         * configure.ac: Add support for HeaderInclude and SourceInclude option
2968         directives to add the appropriate files to the dependency lists.
2969         * configure: Regenerate.
2970         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2971         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2972         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2973         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2974         (gcc-options.o): Ditto.
2975         * opt-include.awk: New awk script to handle HeaderInclude and
2976         TargetInclude.
2977
2978         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2979         gets saved in the target options.
2980         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2981         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2982         (-mprototype): Ditto.
2983         (-mbit-word): ditto.
2984         (-mregnames): Ditto.
2985         (-msecure-plt): Ditto.
2986         (-mbss-plt): Ditto.
2987         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2988         (-mpowerpc-gfxopt): Ditto.
2989         (-mmfcrf): Ditto.
2990         (-mpopcntb): Ditto.
2991         (-mfprnd): Ditto.
2992         (-mcmpb): Ditto.
2993         (-mmmfpgpr): Ditto.
2994         (-maltivec): Ditto.
2995         (-mhard-dfp): Ditto.
2996         (-mmulhw): Ditto.
2997         (-mdlmzb): Ditto.
2998         (-mmultiple): Ditto.
2999         (-mstring): Ditto.
3000         (-mpopcntd): Ditto.
3001         (-mfriz): Ditto.
3002         (-mvsx): Ditto.
3003         (-mno-update): Ditto.
3004         (-mavoid-indexed-addresses): Ditto.
3005         (-mtls-markers): Ditto.
3006         (-msched-epilog): Ditto.
3007         (-msched-prolog): Ditto.
3008         (-maix-struct-return): Ditto.
3009         (-msvr4-struct-return): Ditto.
3010         (-mxl-compat): Ditto.
3011         (-mrecip-precision): Ditto.
3012         (-mfp-in-toc): Ditto.
3013         (-msum-in-toc): Ditto.
3014         (-mvrsave): Ditto.
3015         (-mblock-move-inline-limit=): Ditto.
3016         (-misel): Ditto.
3017         (-mpaired): Ditto.
3018         (-mlongcall): Ditto.
3019         (-mgen-cell-microcode): Ditto.
3020         (-mwarn-cell-microcode): Ditto.
3021         (-mwarn-altivec-long): Ditto.
3022         (-mprioritize-restricted-insns=): Ditto.
3023         (-msingle-float): Ditto.
3024         (-mdouble-float): Ditto.
3025         (-msimple-fpu): Ditto.
3026         (-mxilinx-fpu): Ditto.
3027         * config/rs6000/aix64.opt (-mpe): Ditto.
3028
3029         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
3030         (rs6000_cpu): Move variable to be a target variable.  Rename
3031         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
3032         -mdebug=<xxx> variables into a single int.
3033         (rs6000_always_hint): Ditto.
3034         (rs6000_sched_groups): Ditto.
3035         (rs6000_align_branch_targets): Ditto.
3036         (rs6000_sched_costly_dep): Ditto.
3037         (rs6000_sched_insert_nops): Ditto.
3038         (rs6000_long_double_type_size): Ditto.
3039         (rs6000_ieeequad): Ditto.
3040         (rs6000_altivec_abi): Ditto.
3041         (rs6000_spe): Ditto.
3042         (rs6000_spe_abi): Ditto.
3043         (rs6000_float_gprs): Ditto.
3044         (rs6000_darwin64_abi): Ditto.
3045         (can_override_loop_align): Ditto.
3046         (rs6000_sdata): Ditto.
3047         (rs6000_tls_size): Ditto.
3048         (rs6000_current_abi): Ditto.
3049         (rs6000_traceback): Ditto.
3050         (rs6000_alignment_flags): Ditto.
3051         (rs6000_current_cmodel): Ditto.
3052         (rs6000_recip_control): Ditto.
3053         (rs6000_cpu_index): Ditto.
3054         (rs6000_tune_index): Ditto.
3055         (rs6000_debug): Ditto.
3056         (rs6000_target_flags_explict): Ditto.
3057
3058         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
3059         declaration.
3060
3061         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
3062         cmodel.  Change all uses.
3063
3064         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
3065         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
3066         Rename cmodel to rs6000_current_cmodel.
3067         (rs6000_sched_groups): Ditto.
3068         (rs6000_align_branch_targets): Ditto.
3069         (rs6000_sched_costly_dep): Ditto.
3070         (rs6000_sched_insert_nops): Ditto.
3071         (rs6000_long_double_type_size): Ditto.
3072         (rs6000_ieeequad): Ditto.
3073         (rs6000_altivec_abi): Ditto.
3074         (rs6000_spe): Ditto.
3075         (rs6000_spe_abi): Ditto.
3076         (rs6000_float_gprs): Ditto.
3077         (rs6000_darwin64_abi): Ditto.
3078         (can_override_loop_align): Ditto.
3079         (rs6000_sdata): Ditto.
3080         (rs6000_tls_size): Ditto.
3081         (rs6000_current_abi): Ditto.
3082         (rs6000_traceback): Ditto.
3083         (rs6000_alignment_flags): Ditto.
3084         (rs6000_current_cmodel): Ditto.
3085         (rs6000_recip_control): Ditto.
3086         (rs6000_cpu_index): Ditto.
3087         (rs6000_tune_index): Ditto.
3088         (rs6000_debug): Ditto.
3089         (rs6000_target_flags_explict): Ditto.
3090         (rs6000_sched_insert_nops_str): Make static.
3091         (rs6000_sched_costly_dep_str): Ditto.
3092         (rs6000_recip_name): Ditto.
3093         (rs6000_abi_name): Ditto.
3094         (rs6000_sdata_name): Ditto.
3095         (enum rs6000_traceback_name): Move to rs6000-opts.h.
3096         (rs6000_parse_tls_size_option): Delete.
3097         (rs6000_valid_attribute_p): New function for target attributes and
3098         pragmas.
3099         (rs6000_function_specific_save): Ditto.
3100         (rs6000_function_specific_restore): Ditto.
3101         (rs6000_function_specific_print): Ditto.
3102         (rs6000_can_inline_p): Ditto.
3103         (rs6000_set_current_function): Ditto.
3104         (rs6000_inner_target_options): Ditto.
3105         (rs6000_debug_target_options): Ditto.
3106         (rs6000_pragma_target_parse): Ditto.
3107         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
3108         attributes and pragmas.
3109         (TARGET_OPTION_SAVE): Ditto.
3110         (TARGET_OPTION_RESTORE): Ditto.
3111         (TARGET_OPTION_PRINT): Ditto.
3112         (TARGET_CAN_INLINE_P): Ditto.
3113         (TARGET_SET_CURRENT_FUNCTION): Ditto.
3114         (POWER_MASKS): Move to file level scope from the
3115         rs6000_option_override_internal function.
3116         (POWERPC_MASKS): Ditto.
3117         (ISA_*_MASKS): Ditto.
3118         (struct rs6000_ptt): Ditto.
3119         (processor_target_table): Ditto.
3120         (rs6000_cpu_name_lookup): Map cpu name to an index in
3121         processor_target_table.
3122         (rs6000_debug_reg_global): Print more information on processor
3123         options for -mdebug=reg.
3124         (rs6000_init_hard_regno_mode_ok): Add support for target
3125         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
3126         Allow -mdebug=val1,val2.  Rename cmodel variable.
3127         (rs6000_option_override_internal): Ditto.
3128         (rs6000_option_override): Ditto.
3129         (rs6000_handle_option): Ditto.
3130         (rs6000_conditional_register_usage): Add debug trace message.
3131         (struct rs6000_opt_mask): New for target attribute/pragma support.
3132         (rs6000_opt_masks): Ditto.
3133         (struct rs6000_opt_var): Ditto.
3134         (rs6000_opt_vars): Ditto.
3135         (rs6000_previous_function): Ditto.
3136
3137         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
3138         wasn't already included.
3139         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
3140         (enum processor_type): Ditto.
3141         (rs6000_cpu): Ditto.
3142         (enum fpu_type_t): Ditto.
3143         (fpu_type): Ditto.
3144         (enum rs6000_dependence_cost): Ditto.
3145         (enum rs6000_nop_insertion): Ditto.
3146         (enum group_termination): Ditto.
3147         (rs6000_long_double_type_size): Ditto.
3148         (rs6000_ieeequad): Ditto.
3149         (rs6000_altivec_abi): Ditto.
3150         (rs6000_spe_abi): Ditto.
3151         (rs6000_spe): Ditto.
3152         (rs6000_float_gprs): Ditto.
3153         (rs6000_alignment_flags): Ditto.
3154         (rs6000_sched_insert_nops): Ditto.
3155         (enum rs6000_vector): Ditto.
3156         (enum rs6000_abi): Ditto.
3157         (rs6000_current_opt): Ditto.
3158         (rs6000_debug_*): Delete.
3159         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
3160         (TARGET_DEBUG*): Ditto.
3161
3162         * config/rs6000/rs6000-opts.h: New header file to define the enums
3163         that are used in target variables that are now defined in rs6000.opt.
3164
3165         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
3166         rs6000-opts.h.
3167         (rs6000_sdata): Ditto.
3168         (rs6000_abi_name): Delete.
3169         (rs6000_sdata_name): Ditto.
3170         (rs6000_tls_size_string): Ditto.
3171
3172 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3173
3174         * common.opt (debug_struct_ordinary, debug_struct_generic): New
3175         Variable entries.
3176         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
3177         should_emit_struct_debug): Move from opts.c.
3178         * flag-types.h (enum debug_struct_file): Move from opts.c.
3179         * flags.h (should_emit_struct_debug): Remove.
3180         (base_of_path): Declare.
3181         (set_struct_debug_option): Add gcc_options parameter.
3182         * optc-gen.awk, opth-gen.awk: Handle array variables.
3183         * opts.c (enum debug_struct_file, debug_struct_ordinary,
3184         debug_struct_generic): Remove.
3185         (set_struct_debug_option): Add gcc_options parameter.
3186         (base_of_path): Remove static.
3187         (main_input_basename, main_input_baselength, matches_main_base,
3188         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
3189         Remove.
3190         * toplev.c (main_input_basename, main_input_baselength): Define
3191         here.
3192         * toplev.h (main_input_basename, main_input_baselength): Declare
3193         here.
3194
3195 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3196
3197         * common.opt (flag_instrument_functions_exclude_functions,
3198         flag_instrument_functions_exclude_files): New Variable definitions.
3199         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3200         * gimplify.c (char_p): Declare type and vectors.
3201         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
3202         * opts.c (flag_instrument_functions_exclude_functions,
3203         flag_instrument_functions_exclude_files): Remove.
3204         (add_comma_separated_to_vector): Take void **.
3205         (flag_instrument_functions_exclude_p): Move to gimplify.c.
3206         (common_handle_option): Use options structure for
3207         -finstrument-functions-exclude- options.
3208
3209 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3210
3211         * doc/options.texi (Var): Document effects of Defer.
3212         (Defer): Document.
3213         * opt-functions.awk (var_type, var_set): Handle deferred options.
3214         * opts-common.c (set_option): Handle CLVC_DEFER.
3215         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3216         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3217         fstack-limit-symbol=): Mark as deferred.
3218         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3219         plugin.h.
3220         (print_filtered_help): Don't report state of CLVC_DEFER options.
3221         (common_handle_option): Move code for OPT_fcall_used_,
3222         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3223         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3224         OPT_fstack_limit_symbol_ to opts-global.c.
3225         (option_enabled, get_option_state): Handle CLVC_DEFER.
3226         * opts.h: Include vec.h.
3227         (enum cl_var_type): Add CLVC_DEFER.
3228         (cl_deferred_option): Define type and vectors.
3229         (handle_common_deferred_options): Declare.
3230         * opts-global.c: New.
3231         * toplev.c (toplev_main): Call handle_common_deferred_options
3232         * Makefile.in (OPTS_H): Include $(VEC_H).
3233         (OBJS-common): Include opts-global.o.
3234         (opts.o): Update dependencies.
3235         (opts-global.o): Add dependencies.
3236
3237 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3238
3239         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3240         to objc_declare_protocols.
3241
3242 2010-11-19  Richard Guenther  <rguenther@suse.de>
3243
3244         PR lto/45789
3245         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3246         IDENTIFIERs do not stream TREE_TYPE.
3247         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3248
3249 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
3250
3251         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3252
3253 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
3254
3255         PR target/45870
3256         * dwarf2out.c (const_ok_for_output_1): Don't complain about
3257         non-delegitimized TLS UNSPECs.
3258
3259 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
3260             Ian Lance Taylor  <iant@google.com>
3261
3262         * config/darwin-c.c (darwin_additional_format_types): Export.
3263
3264 2010-11-18  Paul Koning  <ni1d@arrl.net>
3265
3266         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3267         pointer.
3268
3269 2010-11-18  Paul Koning  <ni1d@arrl.net>
3270
3271         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3272         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3273         * config/pdp11/pdp11.opt (-mabshi): Delete.
3274
3275 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
3276
3277         * resource.h (struct resources): Fix typo in the comment.
3278
3279 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
3280
3281         PR target/46546
3282         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3283
3284 2010-11-18  Richard Henderson  <rth@redhat.com>
3285
3286         PR middle-end/46515
3287         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3288         maybe_copy_epilogue_insn; handle prologue insns as well.
3289         * rtl.h, cfglayout.c: Update for rename.
3290         * recog.c (peep2_attempt): Copy prologue/epilogue data for
3291         RTX_FRAME_RELATED_P insns.
3292
3293 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
3294
3295         PR middle-end/46534
3296         * builtins.c (fold_builtin_printf): Don't copy and modify string
3297         before build_string_literal, instead modify what
3298         build_string_literal returned.
3299
3300 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3301
3302         PR c/33193
3303         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3304         REALPART_EXPR and IMAGPART_EXPR.
3305
3306 2010-11-18  Richard Guenther  <rguenther@suse.de>
3307
3308         PR tree-optimization/46172
3309         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3310         function.
3311         (slpeel_tree_peel_loop_to_edge): Call it.
3312
3313 2010-11-18  Jeff Law  <law@redhat.com>
3314
3315         PR middle-end-optimization/46297
3316         * postreload.c (reload_combine_note_store): Deal with embedded
3317         side effects in MEM expressions.
3318
3319 2010-11-18  Richard Guenther  <rguenther@suse.de>
3320
3321         PR lto/45089
3322         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3323         when checking is not enabled.
3324
3325 2010-11-18  Richard Guenther  <rguenther@suse.de>
3326
3327         PR lto/46525
3328         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3329         type leaders.
3330         (gimple_register_canonical_type): Also cache the canoncial type
3331         for non type leaders.
3332
3333 2010-11-18  Richard Guenther  <rguenther@suse.de>
3334
3335         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3336
3337 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
3338
3339         PR middle-end/46518
3340         * sel-sched-ir.c (init_expr): Use the correct type for
3341         target_available.
3342         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3343
3344 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
3345
3346         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3347         as well as -mrelocatable at the same time.
3348
3349 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
3350
3351         PR target/46422
3352         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3353         Call the clz builtin.
3354
3355 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
3356             Steve Ellcey  <sje@cup.hp.com>
3357
3358         PR middle-end/31490
3359         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3360         if section attribute used.
3361
3362 2010-11-17  Jan Hubicka  <jh@suse.cz>
3363
3364         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3365         expand errno setting variant when optimizing for size.
3366
3367 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
3368
3369         * postreload.c (reload_combine): Call control_flow_insn_p only once.
3370         Reverse backward loop.  Fix formatting issues.
3371
3372 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
3373
3374         * c-parser.c (c_token_is_qualifier,
3375         c_parser_next_token_is_qualifier): New.
3376         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3377         Improve error message on specs->tagdef_seen_p.
3378         (c_parser_struct_or_union_specifier): Improve error recovery.
3379         (c_parser_declspecs): Move exit condition on C_ID_ID early.
3380         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3381         using c_parser_next_token_is_qualifier; extend it to cover
3382         a ctsk_tagdef typespec and !typespec_ok in general.
3383
3384 2010-11-17  Richard Guenther  <rguenther@suse.de>
3385
3386         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3387         (gimple_mod_pow2_value_transform): Likewise.
3388         (gimple_mod_subtract_transform): Likewise.
3389
3390 2010-11-17  Richard Guenther  <rguenther@suse.de>
3391
3392         PR lto/46504
3393         * gimple.c (gimple_register_canonical_type): Make sure to only
3394         make type leaders canonical types.
3395
3396 2010-11-17  Michael Matz  <matz@suse.de>
3397
3398         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3399         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3400         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3401         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3402         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3403         (pass_build_ssa): ... but here.
3404         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3405         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3406         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3407         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3408         * predict.c (rebuild_frequencies): Ditto.
3409         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3410         * emit-rtl.c (verify_rtl_sharing): Ditto.
3411         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3412         * tree-ssa-live.c (remove_unused_locals): Ditto.
3413         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3414         * tree-ssa.c (pass_early_warn_uninitialized,
3415         execute_update_addresses_taken, pass_update_address_taken): Ditto.
3416         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3417         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.