OSDN Git Service

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