OSDN Git Service

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