OSDN Git Service

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