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