1 2010-12-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4 * config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
5 of next_real_insn. Search forward checking for both ASM_INPUT and
6 ASM_OPERANDS asms until exit condition is found.
7 (branch_needs_nop_p): Likewise.
8 (use_skip_p): New function.
9 (output_cbranch): Use use_skip_p.
10 (output_bb, output_bvb): Likewise.
12 2010-12-18 Kai Tietz <kai.tietz@onevision.com>
15 * config/i386/i386.c (ix86_keep_aggregate_return_pointer):
17 (ix86_return_pops_args): Use ix86_keep_aggregate_return_pointer
18 function instead of KEEP_AGGREGATE_RETURN_POINTER.
19 (ix86_handle_callee_pop_aggregate_return): New handler.
20 (ix86_attribute_table): Add new attribute
21 callee_pop_aggregate_return.
22 * doc/extend.texi (callee_pop_aggregate_return): Add
23 attribute documentation.
25 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
27 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS):
28 Only set sjlj exceptions for NeXT/m32.
30 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
32 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION):
33 Only expose when not building for target.
35 2010-12-17 Joseph Myers <joseph@codesourcery.com>
37 * config/netbsd.opt, config/netbsd-elf.opt: New files.
38 * config.gcc (alpha*-*-netbsd*, arm*-*-netbsdelf*, arm*-*-netbsd*,
39 i[34567]86-*-netbsdelf*, i[34567]86-*-netbsd*, x86_64-*-netbsd*,
40 m68k*-*-netbsdelf*, mips*-*-netbsd*, powerpc-*-netbsd*,
41 sh*-*-netbsd*, sparc-*-netbsdelf*, sparc64-*-netbsd*,
42 vax-*-netbsdelf*, vax-*-netbsd*): Use these .opt files.
44 2010-12-17 Richard Henderson <rth@redhat.com>
46 * regcprop.c (find_oldest_value_reg): Continue search instead of
47 failing if an element in the copy chain is of the wrong regclass.
49 2010-12-17 Paolo Bonzini <bonzini@gnu.org>
52 * function.c (used_types_insert): Handle ERROR_MARK.
53 * c-decl.c (grokdeclarator): Handle ERROR_MARK.
54 (declspecs_add_type): Leave error_mark_node in specs->type.
55 (finish_declspecs): Change it to integer_type_node here.
56 * c-parser.c (c_parser_peek_2nd_token): Move earlier.
57 (enum c_lookahead_kind): New.
58 (c_parser_next_token_starts_typename): New name of
59 c_parser_next_tokens_start_typename. Accept lookahead enum
60 and handle it here instead of...
61 (c_parser_next_tokens_start_declaration): ... here. Call it.
62 (c_parser_declspecs): Accept another argument. Do not exit
63 on C_ID_ID if it is guessed to be an unknown typename.
64 (c_parser_parms_declarator): Use 2nd token to distinguish a K&R
65 declaration from an ANSI declaration starting with an unknown
67 (c_parser_struct_declaration, c_parser_objc_type_name,
68 c_parser_typeof_specifier, c_parser_declarator,
69 c_parser_direct_declarator_inner): Adjust calls.
70 (c_parser_parameter_declaration): Likewise.
71 (c_parser_type_name): Pass back an error_mark_node to the caller.
72 (c_parser_postfix_expression): Do error recovery when
73 c_parser_type_name returns NULL.
75 2010-12-17 Joseph Myers <joseph@codesourcery.com>
77 * config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
79 * config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define.
80 (DBX_REGISTER_NUMBER): Undefine.
81 * config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
82 * config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
84 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
85 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
86 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
87 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
88 i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*,
89 i[34567]86-*-solaris2*,
90 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h.
92 2010-12-17 H.J. Lu <hongjiu.lu@intel.com>
94 * config/i386/i386.c (move_or_delete_vzeroupper_2): Replace
95 "BB [%i]" with "[bb %i]" in dump.
96 (move_or_delete_vzeroupper_1): Likewise.
97 (rescan_move_or_delete_vzeroupper): Likewise. Always dump
98 upper 128bit state at exit.
100 2010-12-17 Joseph Myers <joseph@codesourcery.com>
102 * config/interix.opt: New.
103 * config/interix.h (LINK_SPEC): Don't handle -soname*.
104 * config.gcc (i[34567]86-*-interix3*): Use interix.opt.
106 2010-12-17 Andrew Stubbs <ams@codesourcery.com>
108 * config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
109 operand order for plus.
110 Drop redundant % from constraints.
112 2010-12-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
114 * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
116 * config/spu/spu.md ("floattisf2"): New expander.
117 ("floatunstisf2"): New insn pattern and splitter.
118 ("cgt_ti_m1"): New insn pattern.
120 2010-12-17 Bernd Schmidt <bernds@codesourcery.com>
122 * config/arm/arm.c (arm_select_cc_mode): Before calling
123 arm_select_dominance_cc_mode for AND or IOR operations, ensure
126 2010-12-17 Alexander Monakov <amonakov@ispras.ru>
129 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
130 to use unadjusted UB.
132 2010-12-17 Dodji Seketeli <dodji@redhat.com>
134 * dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
135 info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
136 that underlying type instead.
138 2010-12-16 Jan Hubicka <jh@suse.cz>
141 * ipa-inline.c: Update doplevel comment.
142 (cgraph_estimate_size_after_inlining): Remove times attribute.
143 (cgraph_mark_inline_edge): Update.
144 (cgraph_mark_inline): Remove.
145 (cgraph_estimate_growth): Update.
146 (cgraph_check_inline_limits): Remove one only argument.
147 (cgraph_edge_badness): Update.
148 (cgraph_decide_recursive_inlining): Update.
149 (cgraph_decide_inlining_of_small_function): Fix handling of tree_can_inline_p
150 and call_stmt_cannot_inline_p.
151 (cgraph_flatten): Likewise.
152 (cgraph_decide_inlining): Update.
153 (cgraph_decide_inlining_incrementally): Fix handling of call_stmt_cannot_inline_p.
155 2010-12-16 Joseph Myers <joseph@codesourcery.com>
157 * config/darwin.opt (dylinker, headerpad_max_install_names,
158 keep_private_externs, nofixprebinding, nomultidefs, noprebind,
159 noseglinkedit, object, prebind, prebind_all_twolevel_modules,
160 preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
161 twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
163 * config/darwin.h (LINK_SPEC): Remove '*' after
164 headerpad_max_install_names.
166 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
168 PR tree-optimization/46924
169 * graphite-sese-to-poly.c (detect_commutative_reduction): Do not
170 detect reductions outside the current SESE region.
171 * sese.h (stmt_in_sese_p): New.
172 (defined_in_sese_p): Call stmt_in_sese_p.
174 2010-12-16 Jakub Jelinek <jakub@redhat.com>
176 PR tree-optimization/46966
177 * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
178 for bbs that are removed from SCOP_BBS vector.
180 2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
182 * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
183 get_ref_base_and_extent returns -1 as the max size.
185 2010-12-16 Konrad Eisele <konrad@gaisler.com>
186 Eric Botcazou <ebotcazou@adacore.com>
188 Support for LEON processor
189 * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
190 (sparc-*-linux*): Likewise.
191 (sparc-*-rtems*): Remove Solaris left-overs.
192 (sparc*-*-*): Remove obsolete sparc86x setting.
193 (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
194 * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
195 * config/sparc/sparc.h (TARGET_CPU_leon): Define.
196 (TARGET_CPU_sparc86x): Delete.
197 (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
198 (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
199 (TARGET_CPU_f934): Likewise.
200 (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
201 (CPP_CPU_SPEC): Add entry for -mcpu=leon.
202 (enum processor_type): Add PROCESSOR_LEON. Reorganize.
203 * config/sparc/sparc.c (leon_costs): New cost array.
204 (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
205 Initialize cost array to leon_costs if -mtune=leon.
206 * config/sparc/sparc.md (cpu attribute): Add leon. Reorganize.
207 Include leon.md scheduling description.
208 * config/sparc/leon.md: New file.
209 * config/sparc/t-elf: Do not assemble Solaris startup files.
210 * config/sparc/t-leon: New file.
211 * config/sparc/t-leon3: Likewise.
213 2010-12-16 Jakub Jelinek <jakub@redhat.com>
215 PR tree-optimization/43655
216 * tree-ssa-ter.c (is_replaceable_p): Don't use
217 gimple_references_memory_p for -O0, instead check for load
220 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
222 PR tree-optimization/46404
223 * graphite-clast-to-gimple.c (gloog): Call scev_reset.
225 2010-12-16 Anatoly Sokolov <aesok@post.ru>
227 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
228 * config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
229 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
231 2010-12-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
233 * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
234 * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
235 (LIBGCC2_UNITS_PER_WORD): Define if not already defined.
237 2010-12-16 Jakub Jelinek <jakub@redhat.com>
240 * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
241 use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
243 2010-12-16 Chung-Lin Tang <cltang@codesourcery.com>
247 (zero_extendhisi2 for register input splitter): Change
248 "register_operand" to "s_register_operand".
249 (zero_extendqisi2 for register input splitter): Same.
251 2010-12-16 Jan Hubicka <jh@suse.cz>
254 * predic.c (predict_paths_leading_to_edge): New function.
255 (apply_return_prediction): Use it.
256 (predict_paths_for_bb): Do not special case abnormals.
258 2010-12-16 Joseph Myers <joseph@codesourcery.com>
260 * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
263 2010-12-15 Joseph Myers <joseph@codesourcery.com>
265 * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
266 * doc/tm.texi: Regenerate.
267 * system.h (US_SOFTWARE_GOFAST): Poison.
268 * config.gcc (enable_gofast): Don't handle.
269 * config/gofast.h: Remove.
270 * config/mips/t-gofast: Remove.
271 * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle.
272 * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle.
273 * config/mips/elforion.h: Don't mention GOFAST in comment.
274 * config/mips/mips.c: Don't include gofast.h.
275 (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
276 * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define
278 * config/sparc/sparc.c: Don't include gofast.h.
279 (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
280 * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine
283 2010-12-14 Jan Hubicka <jh@suse.cz>
285 * config/darwin.opt (dylinker, headerpad_max_install_names,
286 keep_private_externs, nofixprebinding, nomultidefs, noprebind,
287 noseglinkedit, object, prebind, prebind_all_twolevel_modules,
288 preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
289 twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
291 * config/darwin.h (LINK_SPEC): Remove '*' after
292 headerpad_max_install_names.
294 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
296 PR tree-optimization/46924
297 * graphite-sese-to-poly.c (detect_commutative_reduction): Do not
298 detect reductions outside the current SESE region.
299 * sese.h (stmt_in_sese_p): New.
300 (defined_in_sese_p): Call stmt_in_sese_p.
302 2010-12-16 Jakub Jelinek <jakub@redhat.com>
304 PR tree-optimization/46966
305 * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
306 for bbs that are removed from SCOP_BBS vector.
308 2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
310 * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
311 get_ref_base_and_extent returns -1 as the max size.
313 2010-12-16 Konrad Eisele <konrad@gaisler.com>
314 Eric Botcazou <ebotcazou@adacore.com>
316 Support for LEON processor
317 * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
318 (sparc-*-linux*): Likewise.
319 (sparc-*-rtems*): Remove Solaris left-overs.
320 (sparc*-*-*): Remove obsolete sparc86x setting.
321 (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
322 * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
323 * config/sparc/sparc.h (TARGET_CPU_leon): Define.
324 (TARGET_CPU_sparc86x): Delete.
325 (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
326 (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
327 (TARGET_CPU_f934): Likewise.
328 (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
329 (CPP_CPU_SPEC): Add entry for -mcpu=leon.
330 (enum processor_type): Add PROCESSOR_LEON. Reorganize.
331 * config/sparc/sparc.c (leon_costs): New cost array.
332 (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
333 Initialize cost array to leon_costs if -mtune=leon.
334 * config/sparc/sparc.md (cpu attribute): Add leon. Reorganize.
335 Include leon.md scheduling description.
336 * config/sparc/leon.md: New file.
337 * config/sparc/t-elf: Do not assemble Solaris startup files.
338 * config/sparc/t-leon: New file.
339 * config/sparc/t-leon3: Likewise.
341 2010-12-16 Jakub Jelinek <jakub@redhat.com>
343 PR tree-optimization/43655
344 * tree-ssa-ter.c (is_replaceable_p): Don't use
345 gimple_references_memory_p for -O0, instead check for load
348 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
350 PR tree-optimization/46404
351 * graphite-clast-to-gimple.c (gloog): Call scev_reset.
353 2010-12-16 Anatoly Sokolov <aesok@post.ru>
355 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
356 * config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
357 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
359 2010-12-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
361 * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
362 * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
363 (LIBGCC2_UNITS_PER_WORD): Define if not already defined.
365 2010-12-16 Jakub Jelinek <jakub@redhat.com>
368 * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
369 use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
371 2010-12-16 Chung-Lin Tang <cltang@codesourcery.com>
375 (zero_extendhisi2 for register input splitter): Change
376 "register_operand" to "s_register_operand".
377 (zero_extendqisi2 for register input splitter): Same.
379 2010-12-16 Jan Hubicka <jh@suse.cz>
382 * predic.c (predict_paths_leading_to_edge): New function.
383 (apply_return_prediction): Use it.
384 (predict_paths_for_bb): Do not special case abnormals.
386 2010-12-16 Joseph Myers <joseph@codesourcery.com>
388 * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
391 2010-12-15 Joseph Myers <joseph@codesourcery.com>
393 * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
394 * doc/tm.texi: Regenerate.
395 * system.h (US_SOFTWARE_GOFAST): Poison.
396 * config.gcc (enable_gofast): Don't handle.
397 * config/gofast.h: Remove.
398 * config/mips/t-gofast: Remove.
399 * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle.
400 * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle.
401 * config/mips/elforion.h: Don't mention GOFAST in comment.
402 * config/mips/mips.c: Don't include gofast.h.
403 (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
404 * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define
406 * config/sparc/sparc.c: Don't include gofast.h.
407 (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
408 * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine
411 2010-12-14 Jan Hubicka <jh@suse.cz>
413 * tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I
416 2010-12-15 Martin Jambor <mjambor@suse.cz>
418 PR tree-optimization/46053
421 * cgraph.h (cgraph_indirect_call_info): New field thunk_delta.
422 * gimple.h (gimple_fold_obj_type_ref): Declaration removed.
423 (gimple_fold_call): Declare.
424 (gimple_adjust_this_by_delta): Likewise.
425 * cgraph.c (cgraph_make_edge_direct): New parameter delta. Updated
427 (cgraph_clone_edge): Create a copy of indirect_info also for direct
429 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Adjust this
431 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Renamed to
432 gimple_get_virt_mehtod_for_binfo, new parameter delta. Do not search
433 through thunks, in fact bail out if we encounter one, check that
434 BINFO_VIRTUALS is not NULL.
435 (gimple_adjust_this_by_delta): New function.
436 (gimple_fold_obj_type_ref): Removed.
437 (gimple_fold_obj_type_ref_call): New function.
438 (fold_gimple_call): Renamed to gimple_fold_call, made external.
439 Updated users. Call gimple_fold_obj_type_ref_call instead of
440 gimple_fold_obj_type_ref.
441 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Process
443 (ipcp_discover_new_direct_edges): Likewise.
444 * ipa-prop.c (ipa_make_edge_direct_to_target): New parameter delta.
446 (ipa_write_indirect_edge_info): Stream thunk_delta.
447 (ipa_read_indirect_edge_info): Likewise.
448 * tree-ssa-ccp.c (ccp_fold_stmt): Use gimple_fold_call instead of
449 gimple_fold_obj_type_ref.
451 2010-12-15 Alexander Monakov <amonakov@ispras.ru>
453 PR rtl-optimization/46649
454 * sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first
455 basic block in the region.
457 2010-12-15 Joseph Myers <joseph@codesourcery.com>
459 * config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
460 * config.gcc (xstormy16-*-elf): Don't use svr4.h.
462 2010-12-15 Joseph Myers <joseph@codesourcery.com>
464 * config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
465 * config.gcc (rx-*-elf*): Don't use svr4.h.
467 2010-12-14 Sebastian Pop <sebastian.pop@amd.com>
469 PR tree-optimization/46845
470 * sese.c (scalar_evolution_in_region): Handle scop parameters
471 before scev analysis.
473 2010-12-14 Sebastian Pop <sebastian.pop@amd.com>
475 PR tree-optimization/46928
476 * tree-data-ref.c (analyze_overlapping_iterations): Handle "A[p] == A[p]"
477 in data dependence analysis with p a parameter of the loop.
479 2010-12-14 Sebastian Pop <sebastian.pop@amd.com>
481 PR tree-optimization/45948
482 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): New.
483 (stmt_has_scalar_dependences_outside_loop): New.
484 (stmt_generated_in_another_partition): New.
485 (add_scalar_computations_to_partition): New.
486 (rdg_build_partitions): Call add_scalar_computations_to_partition.
488 2010-12-14 Joseph Myers <joseph@codesourcery.com>
490 * config/arc/arc.h (LIB_SPEC): Define.
491 * config.gcc (arc-*-elf*): Don't use svr4.h.
493 2010-12-14 Joseph Myers <joseph@codesourcery.com>
495 * config/sh/elf.h (LIB_SPEC): Define.
496 * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* |
497 sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* |
498 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* |
499 sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*,
500 sh-wrs-vxworks): Don't use svr4.h.
502 2010-12-14 Jan Hubicka <jh@suse.cz>
506 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Construct nodes
507 for aliases when they are used.
509 2010-12-14 Joseph Myers <joseph@codesourcery.com>
511 * config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
512 sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
513 sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
514 sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.
516 2010-12-14 Thomas Klein <th.r.klein@web.de>
518 * config/arm/arm.c (arm_expand_prologue): Report the static stack
519 size if -fstack-usage is used.
520 (thumb1_expand_prologue): Likewise.
522 2010-12-14 Jakub Jelinek <jakub@redhat.com>
525 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
526 instead of gsi_last_nondebug_bb if bump_in_latch.
528 PR tree-optimization/46909
529 * gimple-fold.c (and_var_with_comparison_1): Save partial
530 result even in the is_and case, if both partial results
531 are the same, return it.
532 (or_var_with_comparison_1): Use is_or predicate instead of
533 innercode == TRUTH_OR_EXPR test. Save partial result
534 even in the is_or case, if both partial results are the
535 same, return it. In the !is_or case when both partial
536 results are the same, return the partial result instead
537 of boolean_true_node.
539 2010-12-14 Jan Hubicka <jh@suse.cz>
542 * varasm.c (assemble_start_function): Do not call resolve_unique_section.
543 * cfgexpand.c (gimple_expand_cfg): Resolve it here.
545 2010-12-14 Alexander Monakov <amonakov@ispras.ru>
547 PR rtl-optimization/46875
548 * sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
549 * sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.
551 2010-12-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
553 * config/h8300/h8300.md (define_split) : Add condition for
554 "and with single_zero" splitter to handle 16-bit const operands.
555 * config/h8300/h8300.md (define_split) : Add condition for
556 "ior with single_one" splitter to handle 16-bit const operands.
557 * config/h8300/h8300.md (define_split) : Add condition for
558 "xor with single_one" splitter to handle 16-bit const operands.
559 * testsuite/gcc.dg/h8300-bit-insn-ice.c: New.
561 2010-12-13 Jan Hubicka <jh@suse.cz>
564 * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
565 (cgraph_build_static_cdtor): ... here.
566 (build_cdtor): Use cgraph_build_static_cdtor_1.
568 2010-12-13 Joseph Myers <joseph@codesourcery.com>
570 * config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
571 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
572 * config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.
574 2010-12-14 Bernd Schmidt <bernds@codesourcery.com>
576 PR rtl-optimization/44374
577 Reapply patch with fixes.
578 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
579 * df-core.c (df_set_bb_dirty): Set it.
580 * ifcvt.c (find_memory): Remove function.
581 (dead_or_predicable): Use can_move_insns_across.
582 * df.h (can_move_insns_across): Declare function.
583 * cfgcleanup.c (block_was_dirty): New static variable.
584 (flow_find_head_matching_sequence): Test for epilogue notes.
585 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
586 than df_get_bb_dirty.
587 (try_head_merge_bb): New static function.
588 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
590 * df-problems.c: Include "target.h"
591 (df_simulate_find_uses): New static function.
592 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
593 (find_memory, find_memory_store): New static functions.
594 (can_move_insns_across): New function.
595 * Makefile.in (df-problems.o): Update dependencies.
597 2010-12-13 Joseph Myers <joseph@codesourcery.com>
599 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
600 (DBX_REGISTER_NUMBER): Undefine.
601 * config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
602 (DBX_REGISTER_NUMBER): Undefine.
603 * config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
605 2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu>
606 Joseph Myers <joseph@codesourcery.com>
609 * system.h: Include cstring for cxx bootstrap.
611 2010-12-13 Jakub Jelinek <jakub@redhat.com>
614 * lto-streamer-out.c (output_gimple_stmt): Never replace first
615 GIMPLE_DEBUG argument with MEM_REF.
618 * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
619 (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
620 (vt_emit_notes): Don't initialize and destroy emitted_notes.
622 2010-12-13 Nathan Froyd <froydnj@codesourcery.com>
625 * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
626 (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
628 2010-12-13 Joseph Myers <joseph@codesourcery.com>
630 * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
631 WCHAR_TYPE_SIZE): Define.
632 * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
634 2010-12-13 Joseph Myers <joseph@codesourcery.com>
636 * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
639 2010-12-13 Joseph Myers <joseph@codesourcery.com>
641 * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
642 WCHAR_TYPE_SIZE): Undefine.
643 * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
644 WCHAR_TYPE_SIZE): Define.
645 * config.gcc (mn10300-*-*): Don't use svr4.h.
647 2010-12-13 Joseph Myers <joseph@codesourcery.com>
649 * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
651 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
652 * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
654 2010-12-13 Alexandre Oliva <aoliva@redhat.com>
657 * jump.c (mark_all_labels): Skip debug insns.
659 2010-12-13 Alexandre Oliva <aoliva@redhat.com>
662 * cfgcleanup.c (try_forward_edges): Skip debug insns.
664 2010-12-12 Jan Hubicka <jh@suse.cz>
665 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
667 * varasm.c (default_function_section): Check flag_reorder_functions
668 and targetm.have_named_sections.
669 * config/darwin.c (darwin_function_section): Check
670 flag_reorder_functions.
672 2010-12-12 Finn Thain <fthain@telegraphics.com.au>
675 * config/m68k/m68k.c (handle_move_double): Insert calls to
676 m68k_final_prescan_insn to clean up @TLS operand syntax.
678 2010-12-10 Sebastian Pop <sebastian.pop@amd.com>
680 PR tree-optimization/43023
681 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
683 (stores_zero_from_loop): Call stmt_stores_zero.
684 * tree-data-ref.h (stmt_stores_zero): New.
685 * tree-loop-distribution.c (generate_memset_zero): Do not return a
686 boolean. Call gcc_assert on stride_of_unit_type_p.
687 (generate_builtin): Call stmt_stores_zero.
688 (rdg_flag_all_uses): Removed.
689 (rdg_flag_similar_memory_accesses): Removed.
690 (build_rdg_partition_for_component): Removed parameter
691 other_stores. Removed call to rdg_flag_similar_memory_accesses.
692 (can_generate_builtin): New.
693 (similar_memory_accesses): New.
694 (fuse_partitions_with_similar_memory_accesses): New.
695 (rdg_build_partitions): Call
696 fuse_partitions_with_similar_memory_accesses.
698 2010-12-10 Jakub Jelinek <jakub@redhat.com>
700 PR rtl-optimization/46804
701 * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
702 on the setter of src_reg rather than on insn. If it is
703 equal to the setter's original SET_SRC, replace it with its
704 zero or sign extension instead of dropping it.
706 2010-12-10 Richard Guenther <rguenther@suse.de>
709 * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
711 (lto_symtab_merge_decls_1): Adjust.
713 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
717 * target.def (mangle_assembler_name): New target asm_out hook.
718 * targhooks.c (default_mangle_assembler_name): Add default hook
720 * targhooks.h (default_mangle_assembler_name): Add prototype.
721 * lto-symtab.c (lto_symtab_register_decl): Use new hook when
722 processing DECL_ASSEMBLER_NAMEs for lto symtabs.
723 (lto_symtab_get_resolution): Likewise.
724 (lto_cgraph_replace_node): Likewise.
725 (lto_symtab_prevailing_decl): Likewise.
726 * lto-streamer-out.c (write_symbol): Likewise.
727 * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
728 * doc/tm.texi: Regenerate.
729 * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
730 point at i386_pe_mangle_assembler_name.
731 * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
732 * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
735 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
737 * c-typeck.c (readonly_error): Delete.
739 2010-12-10 Jakub Jelinek <jakub@redhat.com>
741 PR rtl-optimization/46865
742 * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
743 ASM_OPERANDS and ASM_INPUT if integers are different,
745 * jump.c (rtx_renumbered_equal_p): Likewise.
747 PR tree-optimization/46864
748 * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
749 when there are EDGE_EH exit edges.
751 2010-12-10 Tobias Burnus <burnus@net-b.de>
754 * configure.ac: Handle --disable-libquadmath-support.
755 * doc/install.texi: Document --disable-libquadmath and
756 --disable-libquadmath-support
757 * configure: Regenerate.
758 * config.in: Regenerate.
760 2010-12-10 Jack Howarth <howarth@bromo.med.uc.edu>
761 Iain Sandoe <iains@gcc.gnu.org>
764 * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
766 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
768 * config/rs6000/rs6000.c
769 (rs6000_darwin64_record_arg_advance_recurse): Name register increment
770 explicitly. (rs6000_darwin64_record_arg_recurse): Make sure we split
771 long doubles when we run out of regs. Also flag that this requires
772 stack and therefore cannot be returned by value.
773 (rs6000_darwin64_record_arg): Update comment.
774 (rs6000_function_value): Likewise.
776 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
778 * c-parser.c (c_parser_objc_class_definition): Recognize
779 Objective-C 2.0 class extensions.
781 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
783 * config/darwin.c: Remove c-tree.h and c-lang.h
784 * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
786 2010-12-10 Joern Rennecke <amylaar@spamcop.net>
789 * doc/tm.texi: Regenerate.
790 * target.def: Fix "preferred" spelling. Refer to rclass by its
792 * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
795 2010-12-09 Paul Koning <ni1d@arrl.net>
797 * config/pdp11/pdp11-protos.h (output_move_double,
798 output_move_quad): Delete.
799 (output_move_multiple, pdp11_expand_operands): New functions.
800 (pdp11_action, pdp11_partorder): New enums.
801 * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
802 output_move_multiple.
803 (adddi3, subdi3, negdi2): New patterns.
804 (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
806 (neghi2, negqi2): Use PDPint iterator.
807 * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
808 output_move_quad): Delete.
809 (pdp11_expand_operands, output_move_multiple): New functions.
811 2010-12-09 Joseph Myers <joseph@codesourcery.com>
813 * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
814 * config.gcc (vax-*-linux*): Don't use svr4.h.
816 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
818 * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
820 2010-12-09 Joseph Myers <joseph@codesourcery.com>
822 * doc/extend.texi (Attribute Syntax): Correct description of
823 attributes in pointer declarators.
825 2010-12-09 Joseph Myers <joseph@codesourcery.com>
827 * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
828 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
829 mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
831 2010-12-09 Joseph Myers <joseph@codesourcery.com>
833 * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
834 WCHAR_TYPE_SIZE): Define.
835 * config.gcc (mep-*-*): Don't use svr4.h.
837 2010-12-09 Joseph Myers <joseph@codesourcery.com>
839 * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
840 WCHAR_TYPE_SIZE): Define.
841 * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
842 WCHAR_TYPE_SIZE): Don't define.
843 * config.gcc (mcore-*-elf): Don't use svr4.h.
845 2010-12-09 Joseph Myers <joseph@codesourcery.com>
847 * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
848 m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
850 2010-12-09 Joseph Myers <joseph@codesourcery.com>
852 * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
853 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
854 * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
856 2010-12-09 Joseph Myers <joseph@codesourcery.com>
858 * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
860 2010-12-09 Joseph Myers <joseph@codesourcery.com>
862 * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
863 * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
866 2010-12-09 Joseph Myers <joseph@codesourcery.com>
868 * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
869 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
870 * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
871 WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
872 * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
874 2010-12-09 Joseph Myers <joseph@codesourcery.com>
876 * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
877 WCHAR_TYPE_SIZE): Define.
878 * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
880 2010-12-09 Joseph Myers <joseph@codesourcery.com>
882 * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
883 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
884 * config.gcc (fr30-*-elf): Don't use svr4.h.
886 2010-12-09 Joseph Myers <joseph@codesourcery.com>
888 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
889 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
891 2010-12-09 Richard Guenther <rguenther@suse.de>
894 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
897 2010-12-09 Joseph Myers <joseph@codesourcery.com>
899 * config/i386/netware.h (TARGET_POSIX_IO): Define.
900 * config/i386/nto.h (TARGET_POSIX_IO): Define.
901 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
902 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
903 * config/openbsd.h (TARGET_POSIX_IO): Define.
904 * config/rtems.h (TARGET_POSIX_IO): Define.
905 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
906 * config/sol2.h (TARGET_POSIX_IO): Define.
907 * config/svr4.h (TARGET_POSIX_IO): Don't define.
908 * config/vxworksae.h (TARGET_POSIX_IO): Define.
910 2010-12-09 Joseph Myers <joseph@codesourcery.com>
912 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
913 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
915 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
917 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
919 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
921 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
923 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
925 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
926 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
928 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
930 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
932 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
934 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
937 2010-12-09 Joseph Myers <joseph@codesourcery.com>
939 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
941 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
943 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
944 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
945 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
947 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
948 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
950 2010-12-09 Martin Jambor <mjambor@suse.cz>
952 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
953 zero is the first phi parameter.
955 2010-12-09 Martin Jambor <mjambor@suse.cz>
957 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
958 * ipa-prop.c (ipa_modify_call_arguments): Use it.
959 * tree-sra.c (splice_param_accesses): Test that all accesses have the
960 same alias reference type.
961 (turn_representatives_into_adjustments): Set alias_ptr_type of the
964 2010-12-09 Martin Jambor <mjambor@suse.cz>
967 * tree-sra.c (splice_param_accesses): Check that there are not
968 multiple ADDRESSABLE types.
970 2010-12-09 Joseph Myers <joseph@codesourcery.com>
972 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
973 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
974 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
975 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
976 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
977 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
978 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
979 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
980 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
981 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
982 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
983 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
984 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
985 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
986 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
987 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
988 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
989 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
990 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
991 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
992 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
993 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
994 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
995 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
996 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
998 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1000 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1001 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
1002 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
1004 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
1006 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
1007 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1009 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1011 * config/alpha/freebsd.h (LINK_SPEC): Don't use
1012 %{!dynamic-linker:}.
1013 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
1014 * config/arm/freebsd.h (LINK_SPEC): Likewise.
1015 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
1016 * config/bfin/linux.h (LINK_SPEC): Likewise.
1017 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
1018 * config/frv/linux.h (LINK_SPEC): Likewise.
1019 * config/i386/freebsd.h (LINK_SPEC): Likewise.
1020 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
1021 * config/i386/linux.h (LINK_SPEC): Likewise.
1022 * config/i386/linux64.h (LINK_SPEC): Likewise.
1023 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
1024 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
1025 * config/ia64/linux.h (LINK_SPEC): Likewise.
1026 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1027 * config/m32r/linux.h (LINK_SPEC): Likewise.
1028 * config/m68k/linux.h (LINK_SPEC): Likewise.
1029 * config/microblaze/linux.h (LINK_SPEC): Likewise.
1030 * config/mips/linux.h (LINK_SPEC): Likewise.
1031 * config/mips/linux64.h (LINK_SPEC): Likewise.
1032 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1033 * config/mn10300/linux.h (LINK_SPEC): Likewise.
1034 * config/netbsd-elf.h (LINK_SPEC): Likewise.
1035 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
1036 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
1037 LINK_OS_LINUX_SPEC64): Likewise.
1038 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
1039 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
1041 * config/s390/linux.h (LINK_SPEC): Likewise.
1042 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
1043 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1044 * config/sparc/linux.h (LINK_SPEC): Likewise.
1045 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1046 LINK_SPEC): Likewise.
1047 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
1048 * config/vax/linux.h (LINK_SPEC): Likewise.
1049 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1051 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1053 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
1054 * config/frv/frv.h (ASM_SPEC): Likewise.
1055 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1056 * config/i386/sol2.h (ASM_SPEC): Likewise.
1057 * config/m68k/linux.h (ASM_SPEC): Likewise.
1058 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1059 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1060 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1061 * config/sol2.h (ASM_SPEC): Likewise.
1062 * config/sparc/linux.h (ASM_SPEC): Likewise.
1063 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1064 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1065 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1066 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
1068 2010-12-09 Richard Guenther <rguenther@suse.de>
1070 * reginfo.c (struct subregs_of_mode_node): Remove.
1071 (subregs_of_mode): Likewise.
1072 (som_hash): Likewise.
1074 (invalid_mode_changes): New bitmap.
1075 (record_subregs_of_mode): Get subregs_of_mode argument.
1076 Fill in invalid_mode_changes bitmap.
1077 (find_subregs_of_mode): Get subregs_of_mode argument and pass
1079 (init_subregs_of_mode): Adjust.
1080 (finish_subregs_of_mode): Likewise.
1081 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
1083 2010-12-09 Richard Guenther <rguenther@suse.de>
1085 * ira.c (ira): Do not call finish_subregs_of_mode.
1086 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
1088 2010-12-09 Richard Guenther <rguenther@suse.de>
1090 * rtl.h (invalid_mode_change_p): Adjust prototype.
1091 * reginfo.c (invalid_mode_change_p): Remove from argument.
1092 * ira-costs.c (print_allocno_costs): Adjust callers.
1093 (find_costs_and_classes): Likewise.
1095 2010-12-09 Jakub Jelinek <jakub@redhat.com>
1097 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
1098 locg and stocg even in comment.
1099 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
1102 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
1104 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
1106 * config/rs6000/altivec.md (VI_scalar): New mode attr.
1107 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
1108 vector mode for operand 0, put operand 1 into UNSPEC.
1110 2010-12-09 Yao Qi <yao@codesourcery.com>
1112 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
1113 PREFERRED_RENAME_CLASS.
1115 2010-12-08 Ian Lance Taylor <iant@google.com>
1117 * doc/sourcebuild.texi (Front End): Remove reference to
1118 snapshot-README and snapshot-index.html.
1120 2010-12-08 Ian Lance Taylor <iant@google.com>
1122 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
1123 to update_web_docs_svn.
1124 (Front End): Likewise.
1126 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
1128 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
1129 x86_64-*-darwin* to with_cpu:-core2.
1130 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
1131 with movd for darwin assembler.
1132 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1133 (*vec_concatv2di_rex64_sse): Ditto.
1135 2010-12-08 Richard Guenther <rguenther@suse.de>
1136 Sebastian Pop <sebastian.pop@amd.com>
1138 PR tree-optimization/45230
1139 PR tree-optimization/45231
1140 PR tree-optimization/45370
1141 * sese.c (rename_uses): Returns a bool. Call
1142 recompute_tree_invariant_for_addr_expr only on the RHS of a
1144 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
1145 rename_uses returns true.
1146 * tree-ssa-copy.c (replace_exp): Add a comment about calling
1147 fold_stmt_inplace after replace_exp.
1149 2010-12-08 Mike Stump <mikestump@comcast.net>
1152 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
1153 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1154 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
1155 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1156 * collect2.c (post_ld_pass): Add.
1157 (process_args): Add.
1158 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
1159 (main): Likewise. Call process_args.
1161 2010-12-08 Jakub Jelinek <jakub@redhat.com>
1164 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
1167 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
1170 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
1171 into a 16-bit instruction.
1173 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1176 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
1177 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
1178 instruction, but do optimize if y is 0.5 or 1./3. since that
1179 changes an expensive call into a cheaper one.
1181 2010-12-08 Richard Guenther <rguenther@suse.de>
1183 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
1184 instead of a division to divide by BITS_PER_UNIT.
1186 2010-12-08 Richard Guenther <rguenther@suse.de>
1188 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
1189 when checking is enabled.
1191 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
1194 * haifa-sched.c (sched_create_recovery_edges): Update
1196 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
1197 after deleting an empty block.
1198 (tidy_control_flow): Also verify dominators.
1199 (sel_remove_bb): Update dominator info after removing a block.
1200 (sel_redirect_edge_and_branch_force): Assert that no unreachable
1201 blocks will be created. Update dominator info.
1202 (sel_redirect_edge_and_branch): Update dominator info when
1203 basic blocks do not become unreachable.
1204 (sel_remove_loop_preheader): Update dominator info.
1206 2010-12-07 Richard Guenther <rguenther@suse.de>
1208 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1209 Reset alignment information.
1210 (bump_vector_ptr): Likewise.
1212 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1216 * config/pa/pa.c (pa_function_section): New function.
1217 (TARGET_ASM_FUNCTION_SECTION): Define.
1219 2010-12-07 Ian Lance Taylor <iant@google.com>
1220 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1223 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
1225 * configure: Rebuild.
1227 2010-12-07 Paul Koning <ni1d@arrl.net>
1229 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
1230 values with sign rather than as unsigned.
1232 2010-12-07 Paul Koning <ni1d@arrl.net>
1234 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
1235 (pdp11_function_section): New function.
1237 2010-12-07 Joseph Myers <joseph@codesourcery.com>
1239 * config/mcore/mcore.c Don't include assert.h.
1240 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
1241 * config/spu/spu.c: Don't include assert.h.
1242 (spu_sms_res_mii): Use gcc_assert.
1244 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
1246 PR tree-optimization/42327
1247 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
1248 instead of using integer_minus_one_node.
1250 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
1253 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
1254 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
1256 2010-12-07 Richard Guenther <rguenther@suse.de>
1258 PR tree-optimization/46832
1259 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
1260 that the call has a lhs.
1262 2010-12-07 Yao Qi <yao@codesourcery.com>
1264 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
1265 * regrename.c (struct du_head): Add new element length.
1266 (sort_du_head, get_element, merge, merge_sort_comparison):
1267 New functions of merge sort implementation to du_head list.
1268 (regrename_optimize): Sort du_head linked list by length.
1269 Iterate registers in a preferred-register-first order.
1270 Move some code to ...
1271 (check_new_reg_p): here. New function.
1272 (create_new_chain): Initialize length.
1273 (scan_rtx_reg): Increase length for non-debug insns.
1274 * target.def: New hook preferred_rename_class.
1275 * targhook.c (default_preferred_rename_class): New.
1276 * targhook.h: Declare it.
1277 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
1278 * doc/tm.texi: Regenerate.
1280 2010-12-07 Jakub Jelinek <jakub@redhat.com>
1283 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
1284 instead of BUILTINS_LOCATION.
1285 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
1287 (create_parallel_loop): Add LOC argument, use it for OMP clauses
1288 and GIMPLE_*OMP* statements.
1289 (gen_parallel_loop): Determine locus for the parallel loop, pass it
1290 to create_loop_fn and create_parallel_loop.
1291 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
1292 set_curr_insn_source_location (UNKNOWN_LOCATION).
1294 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
1295 Richard Guenther <rguenther@suse.de>
1298 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
1299 (bfin_reorder_loops): Change type of index to intptr_t.
1301 2010-12-07 Richard Guenther <rguenther@suse.de>
1303 PR tree-optimization/46726
1304 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
1306 2010-12-07 Richard Guenther <rguenther@suse.de>
1308 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
1311 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
1313 * c-parser.c (c_parser_typeof_specifier): Removed special
1314 treatment of objc_volatilized attribute for Objective-C.
1316 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
1318 * ira.c (update_equiv_regs): Prohibit move insns if
1319 pressure-sensitive scheduling was done.
1321 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
1323 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
1324 of c_process_expr_stmt() for the iterating and collection
1325 expressions of an Objective-C fast enumeration loop.
1327 2010-12-06 Jakub Jelinek <jakub@redhat.com>
1330 * dwarf2out.c (modified_type_die): If both is_const_type and
1331 is_volatile_type is set, start with DW_TAG_const_type or
1332 DW_TAG_volatile_type depending on where we get qualified type
1333 in the recursive call.
1336 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
1337 as a store into that register.
1339 PR tree-optimization/46528
1341 * profile.c (branch_prob): Make sure last is never set to a debug
1345 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
1348 PR rtl-optimization/46777
1349 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
1350 also barrier after tablejump.
1352 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
1353 Richard Henderson <rth@redhat.com>
1356 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
1358 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
1360 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
1361 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
1363 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
1366 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
1367 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
1368 (int12_operand, int_2word_operand, uint16_operand): Likewise.
1369 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
1370 (uint5_operand, uint4_operand): Likewise.
1371 * config/frv/frv.h (IN_RANGE_P): Delete.
1372 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
1373 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
1374 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1375 (CONST_OK_FOR_P): Likewise.
1376 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
1377 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
1378 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
1379 (*movsicc_internal2_float, casesi): Likewise.
1380 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
1381 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
1382 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
1383 (frv_split_cond_move, frv_rtx_costs): Likewise.
1386 * config/mmix/mmix.c (mmix_intval): Split shift count.
1388 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
1390 * config/i386/i386.c (m_COREI7): New.
1391 (initial_ix86_tune_features): Turn on
1392 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
1393 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
1395 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
1397 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
1399 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1402 * config/i386/i386.c (override_options): Handle "corei7-avx".
1404 * doc/invoke.texi: Document corei7-avx.
1406 2010-12-06 Richard Guenther <rguenther@suse.de>
1408 PR tree-optimization/46806
1409 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
1410 coalesce different types.
1412 2010-12-06 Richard Guenther <rguenther@suse.de>
1414 PR tree-optimization/46785
1415 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
1416 call statements as operand definition.
1418 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
1420 * doc/tm.texi.in: Fix typo.
1421 * doc/tm.texi: Regenerate.
1423 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1425 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
1428 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
1430 * c-family/c-common.h: Removed the declarations of all the objc_
1431 callbacks, and moved them into c-objc.h. Removed
1432 objc_ivar_visibility_kind and moved it into c-objc.h.
1433 * c-family/c-objc.h: New file.
1434 * c-family/c-common.c: Include c-objc.h.
1435 * c-family/c-format.c: Same change.
1436 * c-family/stub-objc.c: Same change.
1437 * c-decl.c: Include c-family/c-objc.h.
1438 * c-parser.c: Same change.
1439 * c-typeck.c: Same change.
1440 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
1441 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
1442 (c-parser.o): same change.
1443 (c-typeck.o): Same change.
1444 (c-family/c-format.o): Same change.
1445 (c-family/stub-objc.o): Same change.
1446 (c-family/c-common.o): Same change.
1447 (PLUGIN_HEADERS): Added c-family/c-objc.h.
1449 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1451 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
1452 --with-dwarf2 option.
1454 2010-12-03 Jan Hubicka <jh@suse.cz>
1456 * lto-streamer-in.c (input_cfg): Fix pasto.
1458 2010-12-03 Jan Hubicka <jh@suse.cz>
1460 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
1461 and functions with user asm defined names.
1462 (varpool_externally_visible_p): Do not localize vars with user
1465 2010-12-03 Jan Hubicka <jh@suse.cz>
1467 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
1468 to prevent mangling with lto frontend.
1470 2010-12-03 Jan Hubicka <jh@suse.cz>
1472 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
1473 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
1475 2010-12-03 Jan Hubicka <jh@suse.cz>
1477 PR tree-optimization/46760
1478 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
1479 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
1480 * lto-cgraph.c (lto_output_edge): Fix assert.
1481 (lto_output_node): Output count_materialization_scale.
1482 (output_profile_summary): Output only runs and sum_max.
1483 (input_node): Input count_materialization_scale.
1484 (input_profile_summary): Read data into file specific gcov summary.
1485 (merge_profile_summaries): New function.
1486 (input_cgraph): Update call of input_profile_summary;
1487 call merge_profile_summaries.
1488 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
1489 rescale counts at read in.
1490 (intput_bb): Likewise.
1491 (input_function): Update call of input_bb.
1492 (lto_read_body): Update call of input_cfg.
1493 * lto-streamer.h: Inlclude gcov-io.h
1494 (lto_file_decl_data): Add gcov_ctr_summary.
1496 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
1498 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
1499 (Cond Exec Macros): ... to this.
1500 * doc/tm.texi: Regenerate.
1502 2010-12-03 Jason Merrill <jason@redhat.com>
1505 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
1508 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
1510 * config/arm/arm.c (arm_legitimate_index_p): Split
1511 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
1512 slightly larger constants in the latter case.
1513 (thumb2_legitimate_index_p): Likewise.
1515 2010-12-03 Joseph Myers <joseph@codesourcery.com>
1517 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
1518 * gcc.c (cc1_options): Add %{Qy:}.
1520 2010-12-03 Joseph Myers <joseph@codesourcery.com>
1522 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
1523 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1524 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
1526 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
1528 PR rtl-optimization/45354
1529 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
1530 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
1531 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
1532 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
1534 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1536 * basic-block.h (struct edge_prediction): Remove forward
1538 * tree-flow.h (struct edge_prediction): Move from here...
1539 * predict.c (struct edge_prediction): ...to here.
1540 * cselib.h (struct elt_list): Move from here...
1541 * cselib.c (struct elt_list): ...to here.
1543 2010-12-02 Ian Lance Taylor <iant@google.com>
1545 * gcc.c (default_compilers): Add entry for ".go".
1546 * common.opt: Add -static-libgo as a driver option.
1547 * doc/install.texi (Configuration): Mention libgo as an option for
1548 --enable-shared. Mention go as an option for --enable-languages.
1549 * doc/invoke.texi (Overall Options): Mention .go as a file name
1550 suffix. Mention go as a -x option.
1551 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
1553 * doc/sourcebuild.texi (Top Level): Mention libgo.
1554 * doc/standards.texi (Standards): Add section on Go language.
1555 Move references for other languages into their own section.
1556 * doc/contrib.texi (Contributors): Mention that I contributed the
1559 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1561 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
1562 (const_call_expr_arg_iterator_d): Likewise.
1563 (expanded_location): Likewise.
1564 * c-tree.h (struct c_arg_tag_d): Likewise.
1565 * dwarf2out.c (struct cfa_loc): Likewise.
1566 (struct skeleton_chain_struct): Likewise.
1567 * except.c (struct ttypes_filter): Likewise.
1568 * cselib.h (struct cselib_val_struct): Likewise.
1569 (elt_loc_list): Likewise.
1570 (elt_list): Likewise.
1571 * varasm.c (struct addr_const): Likewise.
1572 * tree-flow.h (struct edge_prediction): Likewise.
1573 (struct int_tree_map): Likewise.
1574 (struct _edge_var_map): Likewise.
1576 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
1579 * config/i386/i386.c (initial_ix86_tune_features): Turn on
1580 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
1582 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
1584 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
1586 2010-12-02 Ian Lance Taylor <iant@google.com>
1588 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
1589 header files unordered_map, tr1/unordered_map, and ext/hash_map.
1590 * configure, config.in: Rebuild.
1592 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
1595 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
1596 (sparc_expand_move): Call it to decide whether to emit the special
1597 mov{si,di}_pic_label_ref patterns.
1598 (sparc_legitimize_pic_address): Call it to decide whether to emit
1599 the regular PIC sequence for labels. Fix long line.
1600 (sparc_file_end): Set is_thunk for the PIC helper.
1602 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
1604 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
1605 for a non-shared type.
1607 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
1610 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
1611 with MEM_REFs as POINTER_PLUS_EXPR.
1613 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1615 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
1616 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
1617 mentioning /lib/elf.
1619 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1621 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
1622 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
1623 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
1624 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
1625 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
1626 * config/sol2.h (LINK_SPEC): Remove %{b}.
1627 * config/svr4.h (LINK_SPEC): Remove %{b}.
1629 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1631 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
1632 * config/i386/linux.h (LINK_SPEC): Cut long comment.
1633 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
1634 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
1635 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
1636 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
1637 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1638 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
1639 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1640 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
1643 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1645 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
1648 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1650 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
1651 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
1652 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
1653 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
1654 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
1655 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
1656 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
1657 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1658 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
1659 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
1660 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
1661 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
1662 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
1663 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
1664 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
1665 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
1666 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1667 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
1669 2010-12-02 Paul Koning <ni1d@arrl.net>
1671 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
1672 opcodes if CC_NO_OVERFLOW is set.
1673 (notice_update_cc_on_set): Correct setting of CC0 as a side
1674 effect; set CC_NO_OVERFLOW for cases where C flag is not
1677 2010-12-02 Ian Lance Taylor <iant@google.com>
1679 * doc/install.texi (Configuration): Update default for
1680 --with-boot-ldflags.
1682 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
1685 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
1688 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
1690 PR tree-optimization/45199
1691 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
1692 (stores_zero_from_loop): Call
1693 mem_write_stride_of_same_size_as_unit_type_p.
1694 * tree-data-ref.h (stride_of_unit_type_p): New.
1695 * tree-loop-distribution.c (generate_memset_zero): Simplified.
1696 Call stride_of_unit_type_p.
1697 (build_rdg_partition_for_component): Do not call
1698 rdg_flag_similar_memory_accesses when
1699 flag_tree_loop_distribute_patterns is set.
1701 2010-12-02 Richard Guenther <rguenther@suse.de>
1703 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
1704 sign-changing conversions for induction detection.
1706 2010-12-02 Richard Guenther <rguenther@suse.de>
1708 PR tree-optimization/46723
1709 * tree-vect-loop.c (get_initial_def_for_induction): Strip
1710 conversions from the induction evolution and apply it to
1712 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
1713 assigns for induction defs.
1715 2010-12-02 Richard Guenther <rguenther@suse.de>
1717 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
1718 the case we need to split the edge and not the block.
1720 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
1722 DFA model for Core 2 and Core i7 scheduling.
1724 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
1725 * config/i386/i386.c (ix86_option_override_internal): Update entries
1726 for Core 2 and Core i7.
1727 (ix86_issue_rate): Set issue rate to 3 [be realistic].
1728 * config/i386/i386.md: Include "core2.md".
1729 (define_attr cpu): Add "corei7".
1731 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
1733 Define tuning for Core 2 and Core i7.
1735 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
1736 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
1737 (m_CORE2): Replace with m_CORE2_{32,64}.
1738 (m_CORE2I7{,_32,_64}): New macros.
1739 (m_GENERIC32, m_GENERIC64): Update.
1740 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
1741 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
1742 set m_CORE2I7_64 iff m_GENERIC64.
1743 (processor_target_table): Use generic costs for Core 2 and Core i7.
1744 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
1745 (ix86_issue_rate): Remove entry for Core 2.
1746 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
1747 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
1748 (TARGET_CORE2): Update.
1749 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
1750 (PROCESSOR_CORE2): Remove.
1752 2010-12-02 Richard Guenther <rguenther@suse.de>
1754 * lto-streamer.h (LTO_major_version): Bump to 2.
1756 2010-12-02 Richard Guenther <rguenther@suse.de>
1759 * gimple.c (canonical_type_hash_cache): New hashtable.
1760 (gimple_type_hash): Make a wrapper around ...
1761 (gimple_type_hash_1): ... this. Take gtc_mode argument.
1762 (gimple_canonical_type_hash): Likewise.
1763 (gtc_visit): Take a gtc_mode argument.
1764 (gimple_types_compatible_p_1): Likewise. Do not compare struct
1765 tag names or field names when computing canonical types.
1766 (gimple_types_compatible_p): Adjust.
1767 (visit): Take a gtc_mode argument.
1768 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
1769 names or field names when computing hashes of canonical types.
1770 (gimple_register_canonical_type): Use gimple_canonical_type_hash
1772 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1773 (free_gimple_type_tables): Free canonical_type_hash_cache.
1775 2010-12-02 Richard Guenther <rguenther@suse.de>
1776 Ira Rosen <irar@il.ibm.com>
1778 PR tree-optimization/46663
1779 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1780 FUNCTION_DECL exists and that it's a builtin.
1782 2010-12-02 Jie Zhang <jie@codesourcery.com>
1785 * varasm.c (compute_visible_aliases): Handle user set
1788 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1790 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1791 thinko regarding setting -mno-<xxx> debug switches.
1792 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
1794 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1796 * intl.c: Don't include tm.h.
1797 * Makefile.in (intl.o): Don't depend on $(TM_H).
1799 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1801 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1803 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1805 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1807 * graphite-sese-to-poly.c (analyze_drs): Removed.
1808 (build_scop_drs): Do not call analyze_drs.
1809 (analyze_drs_in_stmts): New.
1810 (insert_stmts): New.
1811 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1812 (insert_out_of_ssa_copy_on_edge): Same.
1813 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1814 (rewrite_phi_out_of_ssa): Same.
1815 (rewrite_cross_bb_scalar_dependence): Same.
1816 (split_reduction_stmt): Move data references in the new basic blocks.
1817 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1819 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1821 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1823 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1826 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
1827 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
1828 * graphite-poly.h (new_poly_bb): Update declaration.
1829 (gbb_from_bb): Moved here...
1831 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1833 (graphite_stmt_p): Removed.
1834 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
1835 sbitmap reductions. Always build a gimple_bb_p. Do not call
1837 (build_scop_bbs_1): Do not pass in sbitmap reductions.
1838 (build_scop_bbs): Same.
1839 (gbb_from_bb): ... from here.
1840 (add_conditions_to_constraints): Moved up.
1842 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
1843 not contain data references.
1844 (new_pbb_from_pbb): New.
1845 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1847 (rewrite_close_phi_out_of_ssa): Update call to
1848 insert_out_of_ssa_copy_on_edge.
1849 (rewrite_reductions_out_of_ssa): Now static.
1850 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1852 (split_reduction_stmt): Call split_pbb.
1853 (translate_scalar_reduction_to_array): Pass in the scop, do not
1854 pass in the sbitmap reductions.
1855 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1856 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1857 (rewrite_commutative_reductions_out_of_ssa): Same.
1858 (build_poly_scop): Call build_scop_bbs,
1859 rewrite_commutative_reductions_out_of_ssa,
1860 rewrite_reductions_out_of_ssa, and
1861 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
1863 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1864 Removed declaration.
1865 (rewrite_reductions_out_of_ssa): Same.
1866 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1867 (build_scop_bbs): Same.
1868 * graphite.c (graphite_transform_loops): Do not initialize reductions.
1869 Do not call build_scop_bbs,
1870 rewrite_commutative_reductions_out_of_ssa,
1871 rewrite_reductions_out_of_ssa, and
1872 rewrite_cross_bb_scalar_deps_out_of_ssa.
1873 * sese.h (struct gimple_bb): Add field pbb.
1876 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1878 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1880 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
1881 handle_scalar_deps_crossing_scop_limits.
1882 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1883 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1885 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1887 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1888 when replacing a constant in an ADDR_EXPR.
1890 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1892 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1894 (lst_do_strip_mine): Same.
1895 (scop_do_strip_mine): Same.
1896 * graphite-poly.c (apply_poly_transforms): Update call to
1898 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1900 2010-12-01 Jan Hubicka <jh@suse.cz>
1902 * tree.c (build_common_builtin_nodes): Do not initialize
1903 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1904 * builtins.c (expand_builtin_profile_func): Remove.
1905 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1906 BUILT_IN_PROFILE_FUNC_EXIT.
1907 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1908 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1909 * gimplify.c (gimplify_function_tree): Reorganize code calling
1910 profiling functions.
1912 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1914 * opts.c: Expand comment on tm.h include.
1916 2010-12-01 Yao Qi <yao@codesourcery.com>
1918 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1919 VFP_D0_D7_REGS classes.
1921 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1923 * common.opt (flag_stack_check): New Variable entry.
1924 (fcompare-debug-second): Use Var.
1925 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1926 * opts.c (flag_compare_debug): Remove.
1927 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1928 Set opts->x_flag_stack_check for OPT_fstack_check_.
1929 * toplev.c (flag_stack_check): Remove.
1931 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1933 * common.opt (main_input_filename, main_input_basename,
1934 main_input_baselength): New Variable entries. From toplev.c.
1935 * final.c (output_quoted_string): Move from toplev.c.
1936 * output.h (output_quoted_string): Move from toplev.h.
1937 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1938 access main_input_filename, main_input_baselength and
1939 main_input_basename.
1940 * targhooks.c: Include intl.h and opts.h.
1941 (option_affects_pch_p, default_get_pch_validity): Move from
1943 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1945 * toplev.c (main_input_filename, main_input_basename,
1946 main_input_baselength): Move to common.opt.
1947 (output_quoted_string): Move to final.c.
1948 (warn_deprecated_use): Move to tree.c.
1949 (option_affects_pch_p, default_get_pch_validity,
1950 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1951 * toplev.h (skip_leading_substring): Move to tree-dump.c.
1952 (warn_deprecated_use): Move to tree.h.
1953 (output_quoted_string): Move to output.h.
1954 (main_input_filename, main_input_basename, main_input_baselength):
1956 (default_get_pch_validity, default_pch_valid_p): Move to
1958 * tree-dump.c (skip_leading_substring): Move from toplev.h.
1959 * tree.c (warn_deprecated_use): Move from toplev.c.
1960 * tree.h (warn_deprecated_use): Move from toplev.h.
1961 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1962 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1963 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1964 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1965 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1966 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1967 config/mcore/mcore.c, config/mep/mep.c,
1968 config/microblaze/microblaze.c, config/mips/mips.c,
1969 config/mmix/mmix.c, config/mn10300/mn10300.c,
1970 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1971 config/picochip/picochip.c, config/s390/s390.c,
1972 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1973 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1974 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1975 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1976 varasm.c, xcoffout.c: Don't include toplev.h.
1977 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1978 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1979 varasm.o, xcoffout.o): Update dependencies.
1980 * config/arm/t-arm (arm.o): Update dependencies.
1981 * config/spu/t-spu-elf (spu.o): Update dependencies.
1983 2010-12-01 Richard Guenther <rguenther@suse.de>
1985 PR tree-optimization/46730
1986 * value-prof.c (gimple_ic): Always generate a separate merge BB.
1988 2010-11-30 Ian Lance Taylor <iant@google.com>
1990 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
1991 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1992 * config/i386/linux64.h (ASM_SPEC): Likewise.
1993 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1994 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1995 * config/i386/vxworks.h (ASM_SPEC): Likewise.
1996 * config/i386/x86-64.h (ASM_SPEC): Likewise.
1997 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1998 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
2000 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2002 * c-decl.c (finish_function): Call objc_finish_function in
2004 * c-typeck.c (convert_for_assignment): Do not call
2005 objc_type_quals_match().
2007 2010-11-30 Richard Guenther <rguenther@suse.de>
2009 PR tree-optimization/46722
2010 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
2011 operands as arguments.
2012 (execute_optimize_widening_mul): Also handle power of two as
2015 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2018 * cgraphunit.c (process_function_and_variable_attributes): Fix
2021 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2023 * hwint.c: New. Extracted from toplev.c.
2024 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2026 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2028 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2030 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
2031 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
2032 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
2033 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
2034 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
2035 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
2036 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
2037 tree-vrp.c: Don't include toplev.h.
2038 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
2039 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
2040 toplev.h in generated output.
2041 * Makefile.in (OBJS-common): Add hwint.o.
2042 Dependencies for above files changed to remove toplev.h.
2044 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
2045 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
2047 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
2048 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
2050 2010-11-30 Richard Guenther <rguenther@suse.de>
2052 PR tree-optimization/46717
2053 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
2054 call. Manually create EH edges for the direct call and update
2057 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2059 * diagnostic-core.h: Include bversion.h.
2060 * toplev.h: Don't include input.h or bversion.h.
2061 (parse_optimize_options): Don't declare here.
2062 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
2063 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
2064 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
2065 config/host-darwin.c, config/i386/host-cygwin.c,
2066 config/i386/host-mingw32.c, config/i386/msformat-c.c,
2067 config/i386/netware.c, config/i386/nwld.c,
2068 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
2069 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
2070 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
2071 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
2072 config/score/score3.c, config/score/score7.c,
2073 config/sh/symbian-base.c, config/sh/symbian-c.c,
2074 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
2075 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
2076 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
2077 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
2078 graphite-blocking.c, graphite-clast-to-gimple.c,
2079 graphite-dependences.c, graphite-flattening.c,
2080 graphite-interchange.c, graphite-poly.c,
2081 graphite-scop-detection.c, graphite.c, haifa-sched.c,
2082 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
2083 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
2084 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
2085 lto-opts.c, lto-section-in.c, lto-section-out.c,
2086 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
2087 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
2088 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
2089 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
2090 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
2091 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
2092 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
2093 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
2094 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
2095 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2096 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
2098 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
2099 toplev.h. Dependencies for above files and c-family files changed
2100 to remove $(TOPLEV_H) or toplev.h.
2101 (C_TREE_H): Don't include $(TOPLEV_H).
2102 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
2104 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
2105 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
2106 config/t-darwin, config/t-sol2,
2107 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
2108 Dependencies for above files changed to remove $(TOPLEV_H) or
2111 2010-11-30 Richard Guenther <rguenther@suse.de>
2114 * gcc.c (main): Use the first input with a compiler as infile
2115 for link spec processing.
2117 2010-11-30 Richard Guenther <rguenther@suse.de>
2120 * cgraphunit.c (ipa_passes): Stop after errors from
2123 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
2125 * gcc-plugin.h: Include coretypes.h.
2126 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
2128 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2130 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
2131 * ggc-none.c (ggc_internal_alloc_zone_stat)
2132 (ggc_internal_cleared_alloc_zone_stat): New.
2134 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2136 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
2137 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
2138 (rs6000_emit_prologue): Don't set PIC register if
2139 TARGET_SINGLE_PIC_BASE.
2140 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
2141 * doc/invoke.texi (msingle-pic-base): Document.
2143 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
2146 * exec-tool.in (id): New.
2147 Check and export LT_RCU_$id instead of LT_RCU.
2149 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
2151 PR tree-optimization/46675
2152 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
2153 in offset calculation.
2155 2010-11-29 Jan Hubicka <jh@suse.cz>
2157 * collect2.c (main): Do not imply verbose output with
2158 LTO and linker plugin.
2160 2010-11-29 Dodji Seketeli <dodji@redhat.com>
2162 * dwarf2out.c (print_die): Print the address of the current DIE or
2163 of any DIE referenced by the current one.
2165 2010-11-29 Dodji Seketeli <dodji@redhat.com>
2168 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
2170 (scope_die_for, gen_type_die_for_member): Replace uses of
2171 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
2173 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
2175 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
2176 (darwin_asm_declare_object_name): Correct spelling.
2177 (darwin_output_aligned_bss): Likewise.
2179 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
2180 Mike Stump <mrs@gcc.gnu.org>
2185 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
2186 (ASM_OUTPUT_LOCAL): Likewise.
2187 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
2188 (darwin_output_aligned_bss): Likewise.
2189 (darwin_asm_output_aligned_decl_local): Likewise.
2190 (darwin_asm_output_aligned_decl_common): Likewise.
2191 (darwin_use_anchors_for_symbol_p): Likewise.
2192 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
2193 (TARGET_ASM_OUTPUT_ANCHOR): Define.
2194 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
2195 (DARWIN_SECTION_ANCHORS): Set to 1.
2196 * config/darwin.c (emit_aligned_common): New var.
2197 (darwin_init_sections): Check that the Darwin private zero-size section
2199 (darwin_text_section): Check for zero-sized objects.
2200 (darwin_mergeable_string_section): Likewise.
2201 (darwin_mergeable_constant_section): Likewise.
2202 (machopic_select_section): Adjust to check for zero-sized objects.
2203 Assert that OBJC meta data are non-zero sized.
2204 (darwin_asm_declare_object_name): New.
2205 (darwin_asm_declare_constant_name): Adjust for zero-sized
2207 (BYTES_ZFILL): Define.
2208 (darwin_emit_weak_or_comdat): New.
2209 (darwin_emit_local_bss): New.
2210 (darwin_emit_common): New.
2211 (darwin_output_aligned_bss): New.
2212 (darwin_asm_output_aligned_decl_common): New.
2213 (darwin_asm_output_aligned_decl_local): New.
2214 (darwin_file_end): Disable subsections_via_symbols when section
2215 anchoring is active.
2216 (darwin_asm_output_anchor): Re-enable.
2217 (darwin_use_anchors_for_symbol_p): New.
2218 (darwin_override_options): Check for versions that can emit
2219 aligned common. Update usage of flags to current.
2220 * config/darwin-sections.def: Update comments and flags for
2221 non-anchor sections. zobj_const_section, zobj_data_section,
2222 zobj_bss_section, zobj_const_data_section: New.
2223 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
2224 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
2225 (L2_MAX_OFILE_ALIGNMENT): Define.
2226 (ASM_OUTPUT_ALIGNED_BSS): Define.
2227 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2228 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2229 (SECTION_NO_ANCHOR): Define.
2230 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
2231 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
2233 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2235 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
2236 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
2237 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
2238 Conditionally define.
2239 (GET_ENVIRONMENT): Poison.
2240 * configure.ac: Don't test for mincore.
2241 * configure: Regenerate.
2242 * config.in: Regenerate.
2243 * collect2-aix.c: Don't include <sys/mman.h>.
2244 * collect2.c: Don't include <signal.h>.
2245 (SIGCHLD): Don't define.
2246 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
2247 * config/alpha/alpha.c: Include "splay-tree.h" instead of
2249 * config/arm/arm.c (arm_target_help): Use getenv instead of
2251 * config/avr/driver-avr.c: Don't include <stdlib.h>.
2252 * config/frv/frv.c: Don't include <ctype.h>.
2253 * config/host-darwin.c: Don't include <sys/mman.h>.
2254 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
2255 (MAP_FAILED): Don't define.
2256 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
2257 * config/host-solaris.c: Don't include <sys/mman.h>.
2258 * config/i386/cygming.h: Don't include <stdio.h>.
2259 * config/i386/driver-i386.c: Don't include <stdlib.h>.
2260 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
2261 * config/iq2000/iq2000.c: Don't include <signal.h>.
2262 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
2263 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
2264 * config/mep/mep-pragma.c: Don't include <stdio.h>.
2265 * config/microblaze/microblaze.c: Don't include <signal.h>.
2266 * config/mips/mips.c: Don't include <signal.h>.
2267 * config/rs6000/host-darwin.c: Don't include <signal.h>.
2268 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
2269 * defaults.h (GET_ENVIRONMENT): Don't define.
2270 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
2271 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
2272 (SIGCHLD, MAP_FAILED, kill): Don't define.
2273 (process_command): Use getenv instead of GET_ENVIRONMENT.
2274 * genhooks.c: Don't include <string.h>.
2275 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
2277 (MAP_FAILED): Don't define.
2278 * ggc-page.c Don't include <sys/mman.h>.
2279 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2280 * ggc-zone.c: Don't include <sys/mman.h>.
2281 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2282 * graph.c: Include "config.h" instead of <config.h>.
2283 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
2284 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
2285 (SIGCHLD, kill): Don't define.
2286 * mips-tfile.c: Don't include <signal.h>.
2287 * opts.c: Don't include <signal.h> or <sys/resource.h>.
2288 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
2289 * passes.c: Don't include <signal.h>, <sys/resource.h> or
2291 * sparseset.h: Don't include <assert.h>.
2292 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
2293 * tlink.c: Don't include "libiberty.h".
2294 * toplev.c: Don't include <signal.h> or <sys/times.h>.
2295 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
2296 * tree-switch-conversion.c: Don't include <signal.h>.
2297 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
2299 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
2301 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
2302 c_parser_objc_try_catch_finally_statement for consistency with the
2303 C++ parser. Parse @catch(...) and pass NULL_TREE to
2304 objc_begin_catch_clause() in that case. Improved error recovery.
2305 Reorganized code to be almost identical to
2306 cp_parser_objc_try_catch_finally_statement.
2308 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
2310 PR tree-optimization/46621
2311 * gimple.h: Don't include tm.h or hard-reg-set.h .
2312 * Makefile.in (GIMPLE_H): Remove $(TM_H).
2315 * cppbuiltin.c: Include target.h .
2316 (define_builtin_macros_for_type_sizes):
2317 Use targetm.float_words_big_endian.
2319 2010-11-27 Jan Hubicka <jh@suse.cz>
2321 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
2322 and output cold_text_section_label.
2323 (dwarf2out_init): Don't do that there.
2324 (dwarf2out_finish): Handle cold section end label only if cold
2327 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
2329 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
2332 2010-11-27 Richard Guenther <rguenther@suse.de>
2334 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
2335 (gimple_assign_ssa_name_copy_p): Likewise.
2336 (gimple_assign_unary_nop_p): Use is_gimple_assign.
2337 (is_gimple_cast): Remove.
2338 (gimple_assign_single_p): Move ...
2339 * gimple.h (gimple_assign_single_p): ... here.
2340 (is_gimple_cast): Remove.
2341 (gimple_assign_rhs_code): Simplify.
2342 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
2343 instead of is_gimple_cast.
2344 * ipa-type-escape.c (look_for_casts): Likewise.
2346 2010-11-26 Joseph Myers <joseph@codesourcery.com>
2348 * doc/options.texi (Enum, EnumValue): Document new record types.
2349 (Enum): Document new option flag.
2351 * optc-gen.awk: Handle enumerated option arguments.
2352 * opth-gen.awk: Handle enumerated option arguments.
2353 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
2354 enum_value_to_arg): New.
2355 (decode_cmdline_option): Handle enumerated arguments.
2356 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
2357 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
2358 * opts.c (print_filtered_help, print_specific_help): Take
2359 lang_mask arguments.
2360 (print_filtered_help): Handle printing values of enumerated
2361 options. Print possible arguments for enumerated options.
2362 (print_specific_help): Update call to print_filtered_help.
2363 (common_handle_option): Update calls to print_specific_help. Use
2364 value rather than arg for OPT_fdiagnostics_show_location_. Don't
2365 handle OPT_ffp_contract_, OPT_fexcess_precision_,
2366 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
2367 OPT_fira_region_ here.
2368 * opts.h (enum cl_var_type): Add CLVC_ENUM.
2369 (struct cl_option): Add var_enum.
2370 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
2371 struct cl_enum, cl_enums, cl_enums_count): New.
2372 (CL_ERR_ENUM_ARG): Define.
2373 (CL_ERR_NEGATIVE): Update value.
2374 (enum_value_to_arg): Declare.
2375 * common.opt (flag_ira_algorithm, flag_ira_region,
2376 flag_fp_contract_mode, flag_excess_precision_cmdline,
2377 default_visibility, flag_tls_default): Remove Variable entries.
2378 (help_enum_printed): New Variable.
2379 (fdiagnostics-show-location=): Use Enum. Add associated
2380 SourceInclude, Enum and EnumValue entries.
2381 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
2382 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
2383 associated Enum and EnumValue entries.
2385 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
2388 * config/microblaze/microblaze.c (microblaze_block_move_straight):
2390 (microblaze_option_override): Don't use C++ style comments.
2391 (save_restore_insns): Remove unused variable base_offset.
2392 (microblaze_expand_prologue): Remove unused variable insn.
2393 (microblaze_secondary_reload): Adjust type to match target.h .
2394 (microblaze_elf_in_small_data_p): Move declarations to start of block.
2395 (microblaze_expand_move): Likewise.
2396 * config/microblaze/microblaze.h (LARGE_INT):
2397 Avoid signed / unsigned comparisons.
2398 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
2399 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
2400 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
2402 2010-11-26 Michael Matz <matz@suse.de>
2404 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
2406 * passes.c (init_optimization_passes): Remove superfluous
2409 2010-11-26 Richard Guenther <rguenther@suse.de>
2412 * gimple.c (gtc_visit): Do not return true for members of an
2413 SCC still being processed but the current lattice value of
2414 the member. Treat SCC members comparison state as lattice,
2415 starting at equal, eventually dropping to unequal.
2416 (gimple_types_compatible_p_1): Likewise.
2418 2010-11-26 Richard Guenther <rguenther@suse.de>
2421 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
2422 for location list processing.
2424 2010-11-26 Richard Guenther <rguenther@suse.de>
2427 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
2430 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2432 * config/s390/s390.c (print_operand_address): Replace assert with
2434 (print_operand): Replace assertions, gcc_unreachable and
2435 fatal_insn with error messages.
2437 2010-11-26 Richard Guenther <rguenther@suse.de>
2439 PR tree-optimization/46665
2440 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
2442 2010-11-26 Ian Bolton <ian.bolton@arm.com>
2444 * config/arm/arm.c (arm_option_override): enable loop array
2445 prefetching at -O3 for suitable targets, and configure params.
2446 * config/arm/arm-protos.h (struct tune_params): Add fields for
2447 configuring loop array prefetching.
2449 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
2451 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
2453 2010-11-26 Richard Guenther <rguenther@suse.de>
2455 PR tree-optimization/46664
2456 * tree-affine.c (aff_combination_to_tree): Add rest last.
2458 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2461 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
2462 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
2463 * configure: Regenerated.
2464 * exec-tool.in: Not quoting command, may have extra arguments.
2466 2010-11-26 Richard Guenther <rguenther@suse.de>
2468 PR tree-optimization/46528
2470 * profile.c (branch_prob): Do not split blocks based on locations
2471 from debug statements.
2473 2010-11-26 Jakub Jelinek <jakub@redhat.com>
2476 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
2477 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
2480 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
2481 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
2482 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
2483 build6_loc): Define.
2484 * fold-const.c (protected_set_expr_location_unshare): New inline.
2485 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
2486 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
2487 pedantic_omit_one_operand_loc, omit_two_operands_loc,
2488 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
2489 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
2490 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
2491 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
2492 instead of buildN followed by SET_EXPR_LOCATION or
2493 protected_set_expr_location.
2494 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
2495 Use buildN_stat_loc instead of buildN_stat followed by
2498 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
2500 * Makefile.in (s-tm-texi): Remove spurous tab.
2502 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
2505 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
2508 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
2510 * toplev.c (finalize): Add no_backend parameter. Don't finish
2511 passes when preprocessing only. Adjust...
2512 (do_compile): ... caller.
2514 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2516 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
2517 flag_unsafe_math_optimizations.
2519 Move fnegabs related patterns together. Only use fmpynfadd instruction
2520 to negate a multiply if !flag_signed_zeros is true.
2522 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
2524 * gengtype-state.c (read_state_structures): Initialize "previous".
2526 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
2527 Jeremie Salvucci <jeremie.salvucci@free.fr>
2529 * gengtype-state.c: Add new file.
2531 * gengtype.c (type count): New variable.
2532 (new_structure, find_param_structure, create_pointer)
2533 (create_array): Use it to set state_number in types.
2534 (dump_everything): Improve comment.
2535 (main): Call read_state and write_state. Print type_count.
2537 * gengtype.h (type_lineloc): New function.
2538 (read_state, write_state): New declarations.
2540 * Makefile.in (GENGTYPE_FLAGS): New variable.
2541 (s-gtype): Run gengtype twice and generate gtype.state.
2542 (build/gengtype-state.o): New rule.
2543 (build/gengtype$(build_exeext)): Link gengtype-state.o.
2544 (mostlyclean): Update comment. Remove gtype.state.
2546 2010-11-25 Jakub Jelinek <jakub@redhat.com>
2549 * combine.c (try_combine): When substing i2dest for i2src, pass
2550 1 as last argument even if
2551 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
2553 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
2556 * builtins.c (target_char_cast): Check INTEGER_CST instead of
2557 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
2559 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2561 * target.def (supports_split_stack, except_unwind_info): Take
2562 gcc_options parameters.
2563 * targhooks.c (default_except_unwind_info,
2564 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
2565 gcc_options parameters.
2566 * targhooks.h (default_except_unwind_info,
2567 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
2569 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
2570 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
2571 Document that hooks must not be modified.
2572 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
2573 * doc/tm.texi: Regenerate.
2574 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
2575 &global_options to targetm.except_unwind_info.
2576 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2577 dwarf2out_begin_prologue, dwarf2out_frame_init,
2578 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
2579 &global_options to targetm.except_unwind_info.
2580 * except.c (init_eh, finish_eh_generation,
2581 gate_convert_to_eh_region_ranges,
2582 output_one_function_exception_table): Pass &global_options to
2583 targetm.except_unwind_info.
2584 * expr.c (build_personality_function): Pass &global_options to
2585 targetm.except_unwind_info.
2586 * function.c (expand_function_end): Pass &global_options to
2587 targetm.except_unwind_info.
2588 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
2589 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
2590 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
2591 and targetm.supports_split_stack. Remove assertions about opts
2593 (common_handle_option): Remove assertions about opts, opts_set and dc.
2594 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
2595 &global_options to targetm.except_unwind_info.
2596 * tree.c (build_common_builtin_nodes: Pass &global_options to
2597 targetm.except_unwind_info.
2598 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
2599 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
2600 thumb1_expand_prologue, thumb1_output_function_prologue,
2601 arm_unwind_emit, arm_output_fn_unwind): Update calls to
2602 arm_except_unwind_info.
2603 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
2605 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
2607 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
2608 ia64_reorg, ia64_asm_unwind_emit): Update calls to
2609 ia64_except_unwind_info.
2610 * config/pa/pa.c (pa_option_override): Pass &global_options to
2611 targetm.except_unwind_info.
2612 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2615 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
2617 * cgraphunit.c (process_function_and_variable_attributes):
2618 Mark dllexport-ed function/variables as needed.
2619 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
2620 as externally visible.
2622 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
2624 PR rtl-optimization/46585
2625 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
2626 (vinsn_init): Skip computation of dependencies for local NOPs.
2627 (vinsn_delete): Don't try to free regsets for local NOPs.
2628 (setup_nop_and_exit_insns): Change definition of nop_pattern.
2630 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
2632 PR rtl-optimization/46602
2633 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
2634 (tidy_control_flow): Here.
2636 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
2637 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2640 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
2641 Fix target.def pathname in timestamp comparison.
2643 2010-11-24 Richard Henderson <rth@redhat.com>
2645 * config/ia64/predicates.md (pmpyshr_operand): New.
2646 * config/ia64/ia64.c (ia64_expand_unpack): New.
2647 (ia64_expand_widen_mul_v4hi): New.
2648 (ia64_expand_widen_sum): Update for pattern renames.
2649 (ia64_expand_dot_prod_v8qi): Likewise.
2650 * config/ia64/ia64-protos.h: Update.
2651 * config/ia64/vect.md (vecwider): New mode attribute.
2652 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
2653 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
2654 (pmpyshr2, pmpyshr2_u): New.
2655 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
2656 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
2658 (vec_pack_ssat_v4hi): Rename from pack2_sss.
2659 (vec_pack_usat_v4hi): Rename from *pack2_uss.
2660 (vec_pack_ssat_v2si): Rename from pack4_sss.
2661 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
2662 vec_select operation.
2663 (vec_interleave_highv8qi): Similarly.
2664 (mux1_alt): Rename from *mux1_alt.
2665 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
2666 (vec_interleave_lowv4hi): Rename from unpack2_l.
2667 (vec_interleave_highv4hi): Rename from unpack2_h.
2668 (mix2_r): Rename from *mix2_r.
2669 (mix2_l): Similarly.
2670 (vec_extract_evenodd_helper): New.
2671 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
2672 (vec_interleave_lowv2si): Rename from *unpack4_l.
2673 (vec_interleave_highv2si): Rename from *unpack4_h.
2674 (vec_extract_evenv2si, vec_extract_oddv2si): New.
2675 (vec_interleave_lowv2sf): Rename from fmix_r.
2676 (vec_interleave_highv2sf): Rename from *fmix_l.
2677 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
2678 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
2679 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
2680 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
2682 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
2684 * targhooks.c (default_except_unwind_info): Remove
2685 MUST_USE_SJLJ_EXCEPTIONS case.
2686 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2687 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2688 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2689 * doc/tm.texi: Regenerate.
2690 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
2692 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
2694 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2695 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
2696 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
2697 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
2698 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
2700 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
2703 * config/i386/i386.c (ix86_expand_call): Don't check
2706 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
2709 * config/i386/i386.c (upper_128bits_state): New.
2710 (block_info_def): Remove upper_128bits_set and done. Add state,
2711 referenced, count, processed and rescanned.
2712 (check_avx256_stores): Updated.
2713 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
2714 Call note_stores only if needed. Set referenced and count.
2715 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
2716 (rescan_move_or_delete_vzeroupper): New.
2717 (move_or_delete_vzeroupper): Process and rescan all all basic
2718 blocks instead of predecessor blocks of all exit points.
2719 (ix86_option_override_internal): Enable vzeroupper optimization
2720 only for -fexpensive-optimizations and not optimizing for size.
2721 (use_avx256_p): Removed.
2722 (init_cumulative_args): Don't set use_avx256_p.
2723 (ix86_function_arg): Likewise.
2724 (ix86_expand_move): Likewise.
2725 (ix86_expand_vector_move_misalign): Likewise.
2726 (ix86_local_alignment): Likewise.
2727 (ix86_minimum_alignment): Likewise.
2728 (ix86_expand_epilogue): Don't check use_avx256_p when generating
2730 (ix86_expand_call): Likewise.
2732 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
2733 and use_avx256_p. Add rescan_vzeroupper_p.
2735 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2737 * toplev.c: Include <signal.h>.
2739 2010-11-24 Richard Guenther <rguenther@suse.de>
2742 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
2743 conflicting function signatures as non-inlineable.
2745 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2747 PR rtl-optimization/46614
2748 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
2749 (deps_analyze_insn): Mark JUMP_INSNs in
2750 last_pending_memory_flush that weren't added through
2751 flush_pending_lists with NON_FLUSH_JUMP_KIND.
2752 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
2753 on INSN_LIST instead of JUMP_P check on its operand.
2754 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
2756 2010-11-24 Richard Guenther <rguenther@suse.de>
2758 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2760 2010-11-24 Richard Guenther <rguenther@suse.de>
2763 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2764 a FIELD_DECL that is type correct issue a warning and fixup
2765 with a VIEW_CONVERT_EXPR.
2767 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2769 * doc/invoke.texi (Options for Debugging Your Program or GCC):
2770 Explain static numbering of dump files.
2772 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2774 * common.opt (user_vect_verbosity_level): New Variable entry.
2775 (ftree-vectorizer-verbose=): Mark as UInteger.
2776 * flag-types.h (enum vect_verbosity_levels): Move from enum
2777 verbosity_levels in tree-vectorizer.h.
2778 * opts.c: Don't include tree.h.
2779 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
2780 gcc_options parameter; take integer option argument.
2781 (common_handle_option): Update call to vect_set_verbosity_level.
2782 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2783 (vect_set_verbosity_level): Move to opts.c.
2784 (vect_verbosity_level, vect_print_dump_info): Update for change of
2786 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2787 (vect_print_dump_info): Update for change of enum name.
2788 * tree.h (vect_set_verbosity_level): Remove.
2789 * Makefile.in (opts.o): Update dependencies.
2791 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2794 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2795 instead of insn with any_condjump_p.
2797 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
2799 * config/mips/loongson.md: Change the description comment of the file
2800 and update the copyright years.
2801 (define_insn "<u>div<mode>3): Add loongson3a support.
2802 (define_insn "<u>mod<mode>3"): Likewise.
2803 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2804 mul<mode>3_mul3_loongson.
2805 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2806 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2808 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2810 * common.opt (initial_max_fld_align, flag_debug_asm,
2811 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2812 flag_print_asm_name, graph_dump_format, help_printed,
2813 help_columns, flag_opts_finished): New Variable entries.
2814 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2815 frandom-seed=): Mark deferred.
2816 (fsched-verbose=): Use UInteger and Var.
2817 * flags.h (set_struct_debug_option, flag_print_asm_name,
2818 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2819 graph_dump_format): Don't declare here.
2820 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2821 * opts-global.c: Include dbgcnt.h and debug.h.
2822 (decode_options): Pass location to finish_options.
2823 (handle_common_deferred_options): Check flag_dump_all_passed.
2824 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2825 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
2827 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2828 (set_struct_debug_option): Add location_t parameter. Update
2829 recursive call. Use error_at.
2830 (default_options_optimization): Use error_at.
2831 (finish_options): Add location_t parameter. Use
2832 opts->x_flag_opts_finished instead of first_time_p. Use
2833 opts->x_optimize instead of optimize. Use error_at. Pass
2835 (print_filtered_help): Use opts->x_help_printed to track what
2836 options have been printed.
2837 (print_specific_help): Use opts->x_help_columns to track number of
2839 (common_handle_option): Pass locations and gcc_options pointers to
2840 more functions. Use warning_at instead of fnotice and warning.
2841 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2842 OPT_fdebug_prefix_map_. Use error_at. Set
2843 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2844 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
2845 OPT_fsched_verbose_.
2846 (handle_param): Add location_r parameter. Use error_at.
2847 (set_debug_level): Add location_r parameter. Use error_at and
2849 (setup_core_dumping): Add diagnostic_context parameter.
2850 (decode_d_option): Add gcc_options, location_t and
2851 diagnostic_context parameters and use them instead of global
2852 state. Use warning_at.
2853 (enable_warning_as_error): Use error_at.
2854 * opts.h (finish_options): Update prototype.
2855 (set_struct_debug_option): Declare here.
2856 * rtl.h (fix_sched_param): Remove.
2857 * stor-layout.c (initial_max_fld_align): Remove.
2858 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2859 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2860 (process_options): Set maximum_field_alignment.
2861 * tree.h (initial_max_fld_align) Don't declare here.
2862 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2864 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2866 * flag-types.h (struct visibility_flags): Don't declare here.
2867 * flags.h (strip_off_ending, fast_math_flags_set_p,
2868 fast_math_flags_struct_set_p): Declare here.
2869 (visibility_options): Don't declare here.
2870 * opts-common.c (option_enabled, get_option_state): Move from
2872 * opts-global.c: Include diagnostic.h instead of
2873 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
2875 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2876 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2877 print_ignored_options, unknown_option_callback,
2878 post_handling_callback, lang_handle_option, add_input_filename,
2879 read_cmdline_options, initial_lang_mask, init_options_once,
2880 decode_cmdline_options_to_array_default_mask,
2881 set_default_handlers, decode_options): Move from opts.c.
2882 (print_ignored_options): Use warning_at instead of saving and
2883 restoring input_location.
2884 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2885 instead of expr.h. Don't include langhooks.h, except.h or
2886 lto-streamer.h. Add more comments on includes.
2887 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2889 (visibility_options): Move to c-family/c-common.c.
2890 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2891 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2892 print_ignored_options, unknown_option_callback,
2893 post_handling_callback, lang_handle_option, add_input_filename,
2894 read_cmdline_options, initial_lang_mask, init_options_once,
2895 decode_cmdline_options_to_array_default_mask,
2896 set_default_handlers, decode_options): Move to opts-global.c.
2897 (target_handle_option, default_options_optimization,
2898 finish_options, common_handle_option): Remove static.
2899 (option_enabled, get_option_state): Move to opts-common.c.
2900 * opts.h (common_handle_option, target_handle_option,
2901 finish_options, default_options_optimization): Declare.
2902 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2903 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2905 * toplev.h (strip_off_ending, decode_d_option,
2906 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2908 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2910 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2913 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2914 options, replace by call of pass-through-libs spec function to process
2915 link_gcc_c_sequence spec.
2916 (lto_libgcc_spec): Delete variable.
2917 (static_specs[]): Remove related entry.
2918 (static_spec_functions[]): Add new entry for pass-through-libs.
2919 (main): Don't generate deleted lto_libgcc_spec.
2920 (pass_through_libs_spec_func): New function to implement the new
2921 pass-through-libs spec function.
2922 * doc/invoke.texi (pass-through-libs): Document new spec function.
2924 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2926 * doc/options.texi (Warning, Optimization): Document.
2928 2010-11-23 Jan Hubicka <jh@suse.cz>
2930 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2931 (tree_decl_with_vis): Add implicit_section_name_p.
2932 * targhooks.h (default_function_section): Declare.
2933 * target.def (function_section): New hook.
2934 * defaults.h (HOT_TEXT_SECTION_NAME,
2935 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2936 * predict.c (choose_function_section): Remove.
2937 (estimate_bb_frequencies): Do not use choose_function_section.
2938 * coretypes.h (enum node_frequency): Move here from cgraph.h
2939 * cgraph.h (enum node_frequency): Remove.
2940 * varasm.c (initialize_cold_section_name, unlikely_text_section,
2941 unlikely_text_section_p): Remove.
2942 (named_subsection_entry): New structure.
2943 (get_text_section): New function.
2944 (default_function_section): New function.
2945 (function_section_1): Break out from ...; handle profile info.
2946 (function_section): ... here.
2947 (unlikely_text_section): Remove.
2948 (unlikely_text_section_p): Use function_section_1.
2949 (assemble_start_function): Do not initialize cold section.
2950 (default_section_type_flags): Do not special case cold subsection.
2951 (switch_to_section): Likewise.
2952 * output.h (get_text_section): Define.
2953 * config/i386/winnt.c: Do not special case cold section.
2954 * config/darwin-protos.h (darwin_function_section): Declare.
2955 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2956 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2957 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2958 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2959 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2960 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2961 * config/darwin.c (machopic_select_section): Use
2962 darwin_function_section.
2963 (darwin_function_section): New function.
2964 * config/darwin.h (HOT_TEXT_SECTION_NAME,
2965 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2966 (TARGET_ASM_FUNCTION_SECTION): Define.
2967 * system.h (HOT_TEXT_SECTION_NAME,
2968 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2970 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
2972 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2973 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2975 2010-11-23 Jakub Jelinek <jakub@redhat.com>
2978 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2979 following unconditional jumps.
2981 2010-11-23 Richard Guenther <rguenther@suse.de>
2983 * doc/md.texi (386 constraints): Clarify A constraint documentation.
2985 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2986 Jeremie Salvucci <jeremie.salvucci@free.fr>
2988 * gengtype.c (enum typekind, struct options)
2989 (struct nested_ptr_data, struct pair, NUM_PARAM)
2990 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2992 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2993 Remove static, add zero state_number.
2994 (typedefs, structures, param_structs, variables): Remove static.
2995 (create_option): Remove.
2996 (create_string_option, create_type_option, create_nested_option):
2998 (create_nested_ptr_option): Use create_nested_option.
2999 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
3000 new create*option functions.
3001 (process_gc_options): Adjust for discriminated option.
3002 (output_mangled_typename): Handle TYPE_NONE.
3003 (walk_type): Test option kinds.
3004 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
3005 (write_func_for_structure, write_type, write_local, write_root)
3006 (write_roots, note_def_vec, dump_options): Adjust for
3007 discriminated option.
3009 * gengtype.h (typedefs, structures, param_structs, variables
3010 enum typekind): Move from gengtype.c
3011 (enum option_kind): New discriminating enumeration.
3012 (struct options): Becomes discriminated.
3013 (struct nested_ptr_data): Nove from gengtype.c
3014 (create_string_option, create_type_option, create_nested_option)
3015 (create_nested_ptr_option): New functions
3016 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
3017 (UNION_OR_STRUCT_P): Move from gengtype.c
3019 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
3020 discriminated options.
3022 2010-11-23 Richard Guenther <rguenther@suse.de>
3024 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
3025 twice. Avoid re-allocating the ops vector all the time.
3027 2010-11-23 Richard Guenther <rguenther@suse.de>
3029 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
3030 is_gimple_min_invariant, group tree code checks to allow
3032 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
3035 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
3037 * config.gcc (sparc*-*-*): Reorder.
3039 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
3041 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
3042 Remove ENABLE_CHECKING around DBGPRINTF.
3044 2010-11-22 Joseph Myers <joseph@codesourcery.com>
3046 * common.opt (exit_after_options, write_symbols, debug_info_level,
3047 use_gnu_debug_info_extensions): New Variable entries.
3048 (fprofile-dir=): Use Var.
3049 * flag-types.h (enum debug_info_level): Rename to enum
3051 * flags.h (write_symbols, debug_info_level,
3052 use_gnu_debug_info_extensions): Remove declarations.
3053 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
3054 (set_struct_debug_option): Make static variables const.
3055 (use_gnu_debug_info_extensions): Remove.
3056 (set_debug_level, print_filtered_help, print_specific_help,
3057 fast_math_flags_set_p): Take gcc_options parameters and use them
3058 in place of global variables.
3059 (print_filtered_help): Make new_help non-static.
3060 (print_specific_help): Update call to print_filtered_help.
3061 (common_handle_option): Update calls to print_specific_help. Use
3062 gcc_options structure for more settings. Make --help table
3063 const. Don't handle OPT_fprofile_dir_ here. Update calls to
3065 * toplev.c (profile_data_prefix): Remove.
3066 * toplev.h (profile_data_prefix, exit_after_options): Remove
3068 (fast_math_flags_set_p): Update prototype.
3069 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3070 Update call to fast_math_flags_set_p.
3072 2010-11-22 Richard Henderson <rth@redhat.com>
3075 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
3076 return the address register extracted.
3077 (crx_decompose_address): Update the extracted address register.
3079 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
3082 * gcc.c (main): Don't crash when lto-wrapper program is not found.
3084 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
3087 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
3088 * config/picochip/picochip-protos.h: Don't include "target.h" .
3089 (picochip_secondary_reload): Don't declare.
3092 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
3093 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
3096 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
3099 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
3100 (source_dot_c_frul): Likewise.
3102 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
3104 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
3106 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
3109 * Makefile.in (fwprop.o) Add sparseset.h.
3110 * fwprop.c: Include sparseset.h
3111 (struct find_occurrence_data, find_occurrence_callback,
3112 find_occurrence): Remove.
3113 (active_defs, active_defs_check, register_active_defs,
3114 update_df_init, update_uses): New.
3115 (update_df): Rewrite.
3116 (try_fwprop_subst, forward_propagate_asm): Add calls to
3117 update_df_init and update_df.
3118 (fwprop_init): Allocate active_defs and active_defs_check.
3119 (fwprop_done): Free them.
3120 (fwprop, fwprop_addr): Adjust comments.
3121 * df.h (df_uses_create): Declare.
3122 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
3123 (df_ref_create): Return result of df_ref_create_structure directly.
3124 (df_ref_create_structure): Call df_install_ref_incremental when
3125 no collection_rec is passed.
3126 (df_ref_record): Do not create multiword hard reg info when no
3127 collection_rec is passed.
3128 (df_uses_create): New.
3130 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
3133 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
3136 2010-11-22 Richard Guenther <rguenther@suse.de>
3138 * gimple-fold.c (maybe_fold_reference): When canonicalizing
3139 MEM_REFs, preserve volatileness.
3140 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
3143 2010-11-22 Richard Guenther <rguenther@suse.de>
3145 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
3147 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
3149 PR rtl-optimization/45652
3150 * alias.c (get_reg_base_value): New.
3151 * rtl.h (get_reg_base_value): Add prototype.
3152 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
3153 non-null REG_BASE_VALUE for renaming.
3155 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
3156 Basile Starynkevitch <basile@starynkevitch.net>
3158 * gengtype.c: Include xregex.h and obstack.h
3159 Added comments about role of get_output_file_with_visibility and
3160 our regexpr machinery.
3161 (frul_actionrout_t, struct file_rule_st): New.
3162 (hader_dot_h_frul, source_dot_c_frul): New functions.
3163 (NULL_REGEX, NULL_FRULACT): New.
3165 (matching_file_name_substitute): New function.
3166 (get_output_file_with_visibility): Updated comments and rewritten
3167 to use the new files_rules machinery.
3169 * Makefile.in (XREGEX_H): Added variable.
3170 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
3172 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
3174 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
3176 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
3178 * target.def (conditional_register_usage): Define.
3179 * reginfo.c (init_reg_sets_1): Call
3180 targetm.conditional_register_usage.
3181 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
3182 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
3183 for making it a hook.
3184 * doc/tm.texi: Regenerate.
3185 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3186 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
3188 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3189 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3190 * config/arc/arc.c (arc_conditional_register_usage): ...here.
3192 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3193 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3194 * config/arm/arm.c (arm_conditional_register_usage): ...here.
3196 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3197 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
3198 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
3199 * config/bfin/bfin.c (conditional_register_usage): Move code into...
3200 (bfin_conditional_register_usage): ...here. New function.
3201 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3202 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
3203 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
3204 * config/cris/cris.c (cris_conditional_register_usage): Make static.
3205 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3206 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
3207 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
3208 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
3209 * config/frv/frv.c (frv_conditional_register_usage): Make static.
3210 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3211 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3212 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
3214 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3215 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
3216 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
3217 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
3218 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3219 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
3220 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
3221 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
3222 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3223 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3224 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
3226 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3227 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
3228 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
3230 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
3232 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3233 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
3234 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
3235 * config/mep/mep.c (mep_conditional_register_usage): Make static.
3236 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3237 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
3238 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
3239 * config/mips/mips.c (mips_conditional_register_usage): Make static.
3240 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3241 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
3242 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
3243 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
3244 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3245 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3246 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
3247 ...here. New function.
3248 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3249 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3250 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
3251 * config/pa/pa.c (pa_conditional_register_usage): ...here.
3253 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3254 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3255 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
3257 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3258 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
3259 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
3261 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
3263 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3264 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
3265 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
3266 * config/rx/rx.c (rx_conditional_register_usage): Make static.
3267 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3268 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
3269 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
3270 * config/s390/s390.c (s390_conditional_register_usage): Make static.
3271 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3272 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3273 * config/score/score.c (score_conditional_register_usage): ...here.
3275 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3276 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3277 * config/sh/sh.c (sh_conditional_register_usage): ...here.
3279 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3280 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3281 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
3283 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3284 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
3285 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
3286 * config/spu/spu.c (spu_conditional_register_usage): Make static.
3287 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3288 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3289 * config/v850/v850.c (v850_conditional_register_usage): ...here.
3291 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3293 2010-11-21 Jan Hubicka <jh@suse.cz>
3294 Dominique d'Humieres <dominiq@lps.ens.ft>
3297 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
3298 finalize external decls.
3300 2010-11-21 Joseph Myers <joseph@codesourcery.com>
3302 * system.h (strerror): Poison.
3304 2010-11-21 Richard Henderson <rth@redhat.com>
3306 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
3309 2010-11-21 Richard Henderson <rth@redhat.com>
3311 PR rtl-optimization/46571
3312 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
3313 (compute_hash_table_work): Use NONDEBUG_INSN_P.
3315 2010-11-21 Paul Koning <ni1d@arrl.net>
3317 * config/mips/pdp11.md (negsi2): Fix wrong code.
3319 2010-11-21 Paul Koning <ni1d@arrl.net>
3321 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
3322 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3324 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
3326 * config/mips/mips.c (machine_function): Rename load_label_length to
3327 load_label_num_insns.
3328 (mips_load_label_length): Rename to...
3329 (mips_load_label_num_insns): ...this. Adjust to first renaming.
3330 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
3332 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
3335 * config/alpha/predicates.md (direct_call_operand): Return false
3336 for !TARGET_SMALL_TEXT targets.
3338 2010-11-20 Joseph Myers <joseph@codesourcery.com>
3340 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
3341 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
3342 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
3343 * doc/tm.texi: Regenerate.
3344 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
3345 HANDLE_PRAGMA_WEAK): Poison.
3346 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3347 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3348 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
3349 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
3350 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3351 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3352 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3353 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
3354 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3355 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
3356 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3357 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
3358 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3359 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3360 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
3361 (HANDLE_PRAGMA_WEAK): Don't undefine.
3362 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3363 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
3364 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3365 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
3366 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
3367 (HANDLE_PRAGMA_WEAK): Don't undefine.
3368 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3369 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
3370 (HANDLE_PRAGMA_PACK): Don't undefine.
3371 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
3372 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3373 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3374 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3375 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
3376 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3377 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3378 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3379 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
3380 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3381 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
3382 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3383 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3384 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3385 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3386 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
3387 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3389 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
3392 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
3393 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
3394 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
3396 2010-11-20 Jan Hubicka <jh@suse.cz>
3398 * cgraph.c (ld_plugin_symbol_resolution_names): New.
3399 (dump_cgraph_node): Dump resolution.
3400 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
3401 (cgraph_comdat_can_be_unshared_p): Dclare.
3402 * lto-streamer-out.c (produce_symtab): Use
3403 cgraph_comdat_can_be_unshared_p.
3404 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
3405 (cgraph_comdat_can_be_unshared_p): New function based on logic
3406 in cgraph_externally_visible_p.
3407 (cgraph_externally_visible_p): Use it.
3408 (varpool_externally_visible_p): Virtual tables can be unshared.
3409 * varpool.c (dump_varpool_node): Dump resolution.
3411 2010-11-20 Jan Hubicka <jh@suse.cz>
3413 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
3415 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3418 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
3419 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
3421 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
3422 (install-strip): New target.
3423 (STRIPPROG): New variable, exported if STRIP is set.
3424 * doc/install.texi (Final install): Minor markup and code style
3425 fixes. Document install-strip target.
3427 2010-11-20 Paul Koning <ni1d@arrl.net>
3429 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
3430 pdp11_regno_reg_class): New functions.
3431 * config/pdp11/pdp11.md (define_constants): Add register numbers.
3432 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
3433 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
3435 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
3436 frame pointer and argument pointer pseudo-registers.
3437 (ARG_POINTER_REGNUM): Define.
3438 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
3440 (FIRST_PARM_OFFSET): Update for argument pointer.
3441 (INITIAL_FRAME_POINTER_OFFSET): Delete.
3442 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
3443 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
3444 frame pointer and argument pointer.
3446 2010-11-20 Jakub Jelinek <jakub@redhat.com>
3449 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
3450 when looking for immediate uses.
3452 PR tree-optimization/45830
3453 * stmt.c (expand_switch_using_bit_tests_p): New function.
3454 (expand_case): Use it.
3455 * tree.h (expand_switch_using_bit_tests_p): New prototype.
3456 * tree-switch-conversion.c (struct switch_conv_info): Add
3457 bit_test_uniq, bit_test_count and bit_test_bb fields.
3458 (check_range): Fix a comment.
3459 (check_process_case): Compute bit_test_uniq and bit_test_count.
3460 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
3462 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
3463 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
3464 (array_value_type): New function.
3465 (build_one_array): Use it, if it returned different type,
3466 fold_convert all constructor fields and convert back to the
3467 wider type in the generated code.
3468 (process_switch): Initialize bit_test_uniq, bit_test_count and
3469 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
3472 2010-11-19 Michael Matz <matz@suse.de>
3474 PR tree-optimization/46077
3475 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
3477 2010-11-19 Anatoly Sokolov <aesok@post.ru>
3479 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3480 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
3482 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3484 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3486 * mode-switching.c (optimize_mode_switching): Use
3487 FOR_BB_INSNS instead of open-coded loop.
3488 * cfgrtl.c (redirect_branch_edge): Ditto.
3490 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
3493 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
3494 to accomodate 32 bit HOST_WIDE_INT.
3495 (m68hc11_emit_logical): Remove unused variable insn.
3496 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
3497 this_insn_uses_iy before use.
3500 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
3502 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3505 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
3506 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
3508 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3510 * doc/extend.texi (Function attributes): Document PowerPC target
3511 attributes that are supported.
3512 (Pragmas): Document that PowerPC now supports target pragmas.
3514 * doc/options.texi (TargetVariable): Document TargetVariable,
3515 HeaderInclude, and SourceInclude.
3517 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
3518 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
3521 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
3522 SourceInclude directives. Fix a cut+paste error with target save
3523 enum variables. Sort enums in the structures after ints and
3525 * opth-gen.awk: Ditto.
3527 * configure.ac: Add support for HeaderInclude and SourceInclude option
3528 directives to add the appropriate files to the dependency lists.
3529 * configure: Regenerate.
3530 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
3531 (OPTIONS_C_EXTRA): New variable for SourceInclude.
3532 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
3533 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
3534 (gcc-options.o): Ditto.
3535 * opt-include.awk: New awk script to handle HeaderInclude and
3538 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
3539 gets saved in the target options.
3540 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
3541 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3542 (-mprototype): Ditto.
3543 (-mbit-word): ditto.
3544 (-mregnames): Ditto.
3545 (-msecure-plt): Ditto.
3547 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
3548 (-mpowerpc-gfxopt): Ditto.
3555 (-mhard-dfp): Ditto.
3558 (-mmultiple): Ditto.
3563 (-mno-update): Ditto.
3564 (-mavoid-indexed-addresses): Ditto.
3565 (-mtls-markers): Ditto.
3566 (-msched-epilog): Ditto.
3567 (-msched-prolog): Ditto.
3568 (-maix-struct-return): Ditto.
3569 (-msvr4-struct-return): Ditto.
3570 (-mxl-compat): Ditto.
3571 (-mrecip-precision): Ditto.
3572 (-mfp-in-toc): Ditto.
3573 (-msum-in-toc): Ditto.
3575 (-mblock-move-inline-limit=): Ditto.
3578 (-mlongcall): Ditto.
3579 (-mgen-cell-microcode): Ditto.
3580 (-mwarn-cell-microcode): Ditto.
3581 (-mwarn-altivec-long): Ditto.
3582 (-mprioritize-restricted-insns=): Ditto.
3583 (-msingle-float): Ditto.
3584 (-mdouble-float): Ditto.
3585 (-msimple-fpu): Ditto.
3586 (-mxilinx-fpu): Ditto.
3587 * config/rs6000/aix64.opt (-mpe): Ditto.
3589 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
3590 (rs6000_cpu): Move variable to be a target variable. Rename
3591 cmodel to rs6000_current_cmodel because of macro conflict. Merge
3592 -mdebug=<xxx> variables into a single int.
3593 (rs6000_always_hint): Ditto.
3594 (rs6000_sched_groups): Ditto.
3595 (rs6000_align_branch_targets): Ditto.
3596 (rs6000_sched_costly_dep): Ditto.
3597 (rs6000_sched_insert_nops): Ditto.
3598 (rs6000_long_double_type_size): Ditto.
3599 (rs6000_ieeequad): Ditto.
3600 (rs6000_altivec_abi): Ditto.
3601 (rs6000_spe): Ditto.
3602 (rs6000_spe_abi): Ditto.
3603 (rs6000_float_gprs): Ditto.
3604 (rs6000_darwin64_abi): Ditto.
3605 (can_override_loop_align): Ditto.
3606 (rs6000_sdata): Ditto.
3607 (rs6000_tls_size): Ditto.
3608 (rs6000_current_abi): Ditto.
3609 (rs6000_traceback): Ditto.
3610 (rs6000_alignment_flags): Ditto.
3611 (rs6000_current_cmodel): Ditto.
3612 (rs6000_recip_control): Ditto.
3613 (rs6000_cpu_index): Ditto.
3614 (rs6000_tune_index): Ditto.
3615 (rs6000_debug): Ditto.
3616 (rs6000_target_flags_explict): Ditto.
3618 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
3621 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
3622 cmodel. Change all uses.
3624 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
3625 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
3626 Rename cmodel to rs6000_current_cmodel.
3627 (rs6000_sched_groups): Ditto.
3628 (rs6000_align_branch_targets): Ditto.
3629 (rs6000_sched_costly_dep): Ditto.
3630 (rs6000_sched_insert_nops): Ditto.
3631 (rs6000_long_double_type_size): Ditto.
3632 (rs6000_ieeequad): Ditto.
3633 (rs6000_altivec_abi): Ditto.
3634 (rs6000_spe): Ditto.
3635 (rs6000_spe_abi): Ditto.
3636 (rs6000_float_gprs): Ditto.
3637 (rs6000_darwin64_abi): Ditto.
3638 (can_override_loop_align): Ditto.
3639 (rs6000_sdata): Ditto.
3640 (rs6000_tls_size): Ditto.
3641 (rs6000_current_abi): Ditto.
3642 (rs6000_traceback): Ditto.
3643 (rs6000_alignment_flags): Ditto.
3644 (rs6000_current_cmodel): Ditto.
3645 (rs6000_recip_control): Ditto.
3646 (rs6000_cpu_index): Ditto.
3647 (rs6000_tune_index): Ditto.
3648 (rs6000_debug): Ditto.
3649 (rs6000_target_flags_explict): Ditto.
3650 (rs6000_sched_insert_nops_str): Make static.
3651 (rs6000_sched_costly_dep_str): Ditto.
3652 (rs6000_recip_name): Ditto.
3653 (rs6000_abi_name): Ditto.
3654 (rs6000_sdata_name): Ditto.
3655 (enum rs6000_traceback_name): Move to rs6000-opts.h.
3656 (rs6000_parse_tls_size_option): Delete.
3657 (rs6000_valid_attribute_p): New function for target attributes and
3659 (rs6000_function_specific_save): Ditto.
3660 (rs6000_function_specific_restore): Ditto.
3661 (rs6000_function_specific_print): Ditto.
3662 (rs6000_can_inline_p): Ditto.
3663 (rs6000_set_current_function): Ditto.
3664 (rs6000_inner_target_options): Ditto.
3665 (rs6000_debug_target_options): Ditto.
3666 (rs6000_pragma_target_parse): Ditto.
3667 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
3668 attributes and pragmas.
3669 (TARGET_OPTION_SAVE): Ditto.
3670 (TARGET_OPTION_RESTORE): Ditto.
3671 (TARGET_OPTION_PRINT): Ditto.
3672 (TARGET_CAN_INLINE_P): Ditto.
3673 (TARGET_SET_CURRENT_FUNCTION): Ditto.
3674 (POWER_MASKS): Move to file level scope from the
3675 rs6000_option_override_internal function.
3676 (POWERPC_MASKS): Ditto.
3677 (ISA_*_MASKS): Ditto.
3678 (struct rs6000_ptt): Ditto.
3679 (processor_target_table): Ditto.
3680 (rs6000_cpu_name_lookup): Map cpu name to an index in
3681 processor_target_table.
3682 (rs6000_debug_reg_global): Print more information on processor
3683 options for -mdebug=reg.
3684 (rs6000_init_hard_regno_mode_ok): Add support for target
3685 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
3686 Allow -mdebug=val1,val2. Rename cmodel variable.
3687 (rs6000_option_override_internal): Ditto.
3688 (rs6000_option_override): Ditto.
3689 (rs6000_handle_option): Ditto.
3690 (rs6000_conditional_register_usage): Add debug trace message.
3691 (struct rs6000_opt_mask): New for target attribute/pragma support.
3692 (rs6000_opt_masks): Ditto.
3693 (struct rs6000_opt_var): Ditto.
3694 (rs6000_opt_vars): Ditto.
3695 (rs6000_previous_function): Ditto.
3697 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
3698 wasn't already included.
3699 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
3700 (enum processor_type): Ditto.
3701 (rs6000_cpu): Ditto.
3702 (enum fpu_type_t): Ditto.
3704 (enum rs6000_dependence_cost): Ditto.
3705 (enum rs6000_nop_insertion): Ditto.
3706 (enum group_termination): Ditto.
3707 (rs6000_long_double_type_size): Ditto.
3708 (rs6000_ieeequad): Ditto.
3709 (rs6000_altivec_abi): Ditto.
3710 (rs6000_spe_abi): Ditto.
3711 (rs6000_spe): Ditto.
3712 (rs6000_float_gprs): Ditto.
3713 (rs6000_alignment_flags): Ditto.
3714 (rs6000_sched_insert_nops): Ditto.
3715 (enum rs6000_vector): Ditto.
3716 (enum rs6000_abi): Ditto.
3717 (rs6000_current_opt): Ditto.
3718 (rs6000_debug_*): Delete.
3719 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
3720 (TARGET_DEBUG*): Ditto.
3722 * config/rs6000/rs6000-opts.h: New header file to define the enums
3723 that are used in target variables that are now defined in rs6000.opt.
3725 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
3727 (rs6000_sdata): Ditto.
3728 (rs6000_abi_name): Delete.
3729 (rs6000_sdata_name): Ditto.
3730 (rs6000_tls_size_string): Ditto.
3732 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3734 * common.opt (debug_struct_ordinary, debug_struct_generic): New
3736 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
3737 should_emit_struct_debug): Move from opts.c.
3738 * flag-types.h (enum debug_struct_file): Move from opts.c.
3739 * flags.h (should_emit_struct_debug): Remove.
3740 (base_of_path): Declare.
3741 (set_struct_debug_option): Add gcc_options parameter.
3742 * optc-gen.awk, opth-gen.awk: Handle array variables.
3743 * opts.c (enum debug_struct_file, debug_struct_ordinary,
3744 debug_struct_generic): Remove.
3745 (set_struct_debug_option): Add gcc_options parameter.
3746 (base_of_path): Remove static.
3747 (main_input_basename, main_input_baselength, matches_main_base,
3748 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
3750 * toplev.c (main_input_basename, main_input_baselength): Define
3752 * toplev.h (main_input_basename, main_input_baselength): Declare
3755 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3757 * common.opt (flag_instrument_functions_exclude_functions,
3758 flag_instrument_functions_exclude_files): New Variable definitions.
3759 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3760 * gimplify.c (char_p): Declare type and vectors.
3761 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
3762 * opts.c (flag_instrument_functions_exclude_functions,
3763 flag_instrument_functions_exclude_files): Remove.
3764 (add_comma_separated_to_vector): Take void **.
3765 (flag_instrument_functions_exclude_p): Move to gimplify.c.
3766 (common_handle_option): Use options structure for
3767 -finstrument-functions-exclude- options.
3769 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3771 * doc/options.texi (Var): Document effects of Defer.
3773 * opt-functions.awk (var_type, var_set): Handle deferred options.
3774 * opts-common.c (set_option): Handle CLVC_DEFER.
3775 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3776 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3777 fstack-limit-symbol=): Mark as deferred.
3778 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3780 (print_filtered_help): Don't report state of CLVC_DEFER options.
3781 (common_handle_option): Move code for OPT_fcall_used_,
3782 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3783 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3784 OPT_fstack_limit_symbol_ to opts-global.c.
3785 (option_enabled, get_option_state): Handle CLVC_DEFER.
3786 * opts.h: Include vec.h.
3787 (enum cl_var_type): Add CLVC_DEFER.
3788 (cl_deferred_option): Define type and vectors.
3789 (handle_common_deferred_options): Declare.
3790 * opts-global.c: New.
3791 * toplev.c (toplev_main): Call handle_common_deferred_options
3792 * Makefile.in (OPTS_H): Include $(VEC_H).
3793 (OBJS-common): Include opts-global.o.
3794 (opts.o): Update dependencies.
3795 (opts-global.o): Add dependencies.
3797 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3799 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3800 to objc_declare_protocols.
3802 2010-11-19 Richard Guenther <rguenther@suse.de>
3805 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3806 IDENTIFIERs do not stream TREE_TYPE.
3807 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3809 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
3811 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3813 2010-11-19 Jakub Jelinek <jakub@redhat.com>
3816 * dwarf2out.c (const_ok_for_output_1): Don't complain about
3817 non-delegitimized TLS UNSPECs.
3819 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
3820 Ian Lance Taylor <iant@google.com>
3822 * config/darwin-c.c (darwin_additional_format_types): Export.
3824 2010-11-18 Paul Koning <ni1d@arrl.net>
3826 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3829 2010-11-18 Paul Koning <ni1d@arrl.net>
3831 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3832 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3833 * config/pdp11/pdp11.opt (-mabshi): Delete.
3835 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
3837 * resource.h (struct resources): Fix typo in the comment.
3839 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3842 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3844 2010-11-18 Richard Henderson <rth@redhat.com>
3847 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3848 maybe_copy_epilogue_insn; handle prologue insns as well.
3849 * rtl.h, cfglayout.c: Update for rename.
3850 * recog.c (peep2_attempt): Copy prologue/epilogue data for
3851 RTX_FRAME_RELATED_P insns.
3853 2010-11-18 Jakub Jelinek <jakub@redhat.com>
3856 * builtins.c (fold_builtin_printf): Don't copy and modify string
3857 before build_string_literal, instead modify what
3858 build_string_literal returned.
3860 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3863 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3864 REALPART_EXPR and IMAGPART_EXPR.
3866 2010-11-18 Richard Guenther <rguenther@suse.de>
3868 PR tree-optimization/46172
3869 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3871 (slpeel_tree_peel_loop_to_edge): Call it.
3873 2010-11-18 Jeff Law <law@redhat.com>
3875 PR middle-end-optimization/46297
3876 * postreload.c (reload_combine_note_store): Deal with embedded
3877 side effects in MEM expressions.
3879 2010-11-18 Richard Guenther <rguenther@suse.de>
3882 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3883 when checking is not enabled.
3885 2010-11-18 Richard Guenther <rguenther@suse.de>
3888 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3890 (gimple_register_canonical_type): Also cache the canoncial type
3891 for non type leaders.
3893 2010-11-18 Richard Guenther <rguenther@suse.de>
3895 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3897 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3900 * sel-sched-ir.c (init_expr): Use the correct type for
3902 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3904 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3906 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3907 as well as -mrelocatable at the same time.
3909 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3912 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3913 Call the clz builtin.
3915 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3916 Steve Ellcey <sje@cup.hp.com>
3919 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3920 if section attribute used.
3922 2010-11-17 Jan Hubicka <jh@suse.cz>
3924 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3925 expand errno setting variant when optimizing for size.
3927 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3929 * postreload.c (reload_combine): Call control_flow_insn_p only once.
3930 Reverse backward loop. Fix formatting issues.
3932 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
3934 * c-parser.c (c_token_is_qualifier,
3935 c_parser_next_token_is_qualifier): New.
3936 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3937 Improve error message on specs->tagdef_seen_p.
3938 (c_parser_struct_or_union_specifier): Improve error recovery.
3939 (c_parser_declspecs): Move exit condition on C_ID_ID early.
3940 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3941 using c_parser_next_token_is_qualifier; extend it to cover
3942 a ctsk_tagdef typespec and !typespec_ok in general.
3944 2010-11-17 Richard Guenther <rguenther@suse.de>
3946 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3947 (gimple_mod_pow2_value_transform): Likewise.
3948 (gimple_mod_subtract_transform): Likewise.
3950 2010-11-17 Richard Guenther <rguenther@suse.de>
3953 * gimple.c (gimple_register_canonical_type): Make sure to only
3954 make type leaders canonical types.
3956 2010-11-17 Michael Matz <matz@suse.de>
3958 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3959 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3960 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3961 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3962 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3963 (pass_build_ssa): ... but here.
3964 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3965 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3966 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3967 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3968 * predict.c (rebuild_frequencies): Ditto.
3969 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3970 * emit-rtl.c (verify_rtl_sharing): Ditto.
3971 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3972 * tree-ssa-live.c (remove_unused_locals): Ditto.
3973 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3974 * tree-ssa.c (pass_early_warn_uninitialized,
3975 execute_update_addresses_taken, pass_update_address_taken): Ditto.
3976 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3977 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3978 * passes.c (pass_postreload, execute_todo): Ditto.
3979 * tree-ssanames.c (pass_release_ssa_names): Ditto.
3981 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3983 * doc/invoke.texi (-dy): Remove.
3984 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3985 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3986 * langhooks.c (lhd_do_nothing_i): Remove.
3987 * langhooks.h (lang_hooks.parse_file): Take no arguments.
3988 * toplev.c (set_yydebug): Remove.
3989 (compile_file): Update call to lang_hooks.parse_file.
3990 (decode_d_option): Don't handle -dy.
3992 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3994 PR rtl-optimization/46440
3995 * combine.c (update_cfg_for_uncondjump): When changing
3996 an indirect jump into unconditional jump, remove BARRIERs
3999 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4001 * opts.c (target_handle_option): Do not assert that loc ==
4004 2010-11-17 Jakub Jelinek <jakub@redhat.com>
4005 Richard Guenther <rguenther@suse.de>
4008 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4009 call_may_clobber_ref_p_1): Return true for __sync_* and some
4010 OpenMP builtins that act as threading barriers.
4012 2010-11-17 Richard Guenther <rguenther@suse.de>
4014 PR tree-optimization/46498
4015 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
4017 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4019 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
4020 (xtensa_function_arg_boundary): ...this.
4021 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
4022 thinko in declaration.
4023 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
4024 number of parameters to picochip_function_arg_boundary.
4025 (picochip_arg_advance): Likewise.
4027 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4030 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
4031 under check for type.
4033 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
4035 * ifcvt.c (dead_or_predicable): Fix typo.
4037 2010-11-16 Richard Henderson <rth@redhat.com>
4039 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
4040 * config/s390/s390.opt (mfused-madd): Remove.
4041 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
4042 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4043 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
4044 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
4046 2010-11-16 Richard Henderson <rth@redhat.com>
4048 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
4049 * config/rs6000/rs6000.opt (mfused-madd): Remove.
4050 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
4051 (*altivec_vmaddfp_1): Remove.
4052 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
4053 (altivec_mulv4sf3): Expand to FMA directly.
4054 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
4055 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
4056 * config/rs6000/paired.md (paired_madds0): Use FMA.
4057 (paired_madds1): Likewise.
4058 (*paired_madd): Rename from paired_madd; use FMA.
4059 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
4060 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
4061 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
4062 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
4063 (rs6000_emit_madd): Use fma_optab.
4064 (rs6000_emit_msub): Use fms_optab.
4065 (rs6000_emit_nmsub): Expand the FMA pattern directly.
4066 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
4067 (*fmasf4_fpr): Rename from fmasf4_fpr.
4068 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
4069 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
4070 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
4071 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
4072 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
4073 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
4074 (*fmadf4_fpr): Rename from fmadf4_fpr.
4075 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
4076 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
4077 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
4078 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
4079 (fmasf4, fmadf4): Macroize into...
4080 (fma<FMA_F>4): ... here.
4081 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
4082 (nfma<FMA_F>4, nfms<FMA_F>4): New.
4083 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
4085 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
4086 (*vsx_fmadd<mode>4_1): Remove.
4087 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
4088 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
4089 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
4090 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
4091 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
4092 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
4093 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
4095 2010-11-16 Richard Henderson <rth@redhat.com>
4097 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
4098 (fmasf4, fnmadf4, fnmasf4): Likewise.
4099 (unnamed plus+mult insns and splitters): Delete.
4101 2010-11-16 Richard Henderson <rth@redhat.com>
4103 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
4104 (fnma<VSF>4): Rename from fnms_<VSF>.
4105 (fms<VSF>4): Rename from fms_<VSF>.
4106 (fma<VDF>4): Rename from fma_<VDF>.
4107 (fms<VDF>4): Rename from fms_<VDF>.
4108 (nfma<VDF>4): Rename from fnma_<VDF>.
4109 (nfms<VDF>4): Rename from fnms_<VDF>.
4110 (fnma<VDF>4, fnms<VDF>4): New expanders.
4111 (floatunsdisf2): Update for the renames.
4112 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
4113 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
4115 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
4117 PR rtl-optimization/46490
4118 * combine.c (expand_compound_operation): Fix thinko.
4120 2010-11-16 Richard Henderson <rth@redhat.com>
4123 * recog.c (peep2_attempt): Convert frame-related info when possible.
4124 (peep2_fill_buffer): Allow frame-related insns into the buffer.
4125 (peephole2_optimize): Allow peep2_attempt to fail.
4127 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
4129 PR rtl-optimization/46315
4130 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
4131 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
4133 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
4134 (remove_reg_equal_equiv_notes_for_defs): ...this.
4135 (delete_unmarked_insns): Adjust to above renaming.
4136 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
4137 referring to registers set in the insns being moved, if any.
4139 * df-core.c (df_ref_dump): New function extracted from...
4140 (df_refs_chain_dump): ...here. Call it.
4141 (df_regs_chain_dump): Likewise.
4142 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
4143 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
4145 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
4147 PR rtl-optimization/46395
4148 * postreload.c (reload_combine): Invalidate register use
4149 information on all control flow insns.
4151 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
4152 LABEL_REF in UNSPEC operand.
4154 2010-11-16 Jan Hubicka <jh@suse.cz>
4156 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
4157 when !flag_toplevel_reorder do not remove unless variable is
4158 COMDAT or ARTIFICIAL.
4159 * ipa.c (varpool_can_remove_if_no_refs): ... here.
4160 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
4161 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
4162 * varpool.c (decide_is_variable_needed): Do not handle visibility
4164 (varpool_finalize_decl): Likewise.
4165 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
4166 update outdated comment on DECL_RTL_SET_P check.
4168 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4170 * config/sol2.h (NM_FLAGS): Define.
4171 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
4172 * doc/tm.texi: Update.
4174 2010-11-16 Nick Clifton <nickc@redhat.com>
4176 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
4177 (msubsf4): Rename to fmssf4, and use fma.
4178 (nmaddsf4): Rename to fnmasf4 and use fma.
4179 (nmsubsf4): Rename to fnmssf4 and use fma.
4181 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
4184 * config/score/score3.c (score3_return_in_memory): Constify arguments.
4185 (score3_in_small_data_p, score3_function_value): Likewise.
4186 (score3_trampoline_init): Use LCT_NORMAL.
4187 (score3_print_operand): Initialize code as UNKNOWN.
4188 * config/score/predicates.md (score_load_multiple_operation):
4189 Remove unused variable.
4190 (score_store_multiple_operation): Likewise.
4191 * config/score/score7.c (score7_return_in_memory): Constify arguments.
4192 (score7_in_small_data_p, score7_function_value): Likewise.
4193 (score7_trampoline_init): Use LCT_NORMAL.
4194 (score7_print_operand): Initialize code as UNKNOWN.
4195 * config/score/score3.h (score3_return_in_memory): Update prototype.
4196 (score3_in_small_data_p, score3_function_value): Likewise.
4197 * config/score/score-protos.h (score_function_value): Likewise.
4198 * config/score/score7.h (score7_return_in_memory): Update prototype.
4199 (score7_in_small_data_p, score7_function_value): Likewise.
4200 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
4201 (score_return_in_memory, score_pass_by_reference): Constify arguments.
4202 (score_output_mi_thunk, score_function_prologue): Don't return a value.
4203 (score_function_epilogue, score_in_small_data_p): Likewise.
4204 (score_option_override, score_asm_trampoline_template): Likewise.
4205 (score_trampoline_init, score_print_operand): Likewise.
4206 (score_print_operand_address, score_prologue): Likewise.
4207 (score_epilogue, score_call, score_call_value): Likewise.
4208 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
4209 (score_function_arg_advance): Likewise. Make static.
4210 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
4211 (score_function_arg, score_legitimate_address_p): Make static.
4212 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
4213 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
4214 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
4215 Allow (W) == HOST_BITS_PER_WIDE_INT.
4218 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
4219 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
4221 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4223 * config/arc/arc.c: Delete pasto.
4224 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
4226 2010-11-16 Anatoly Sokolov <aesok@post.ru>
4228 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
4229 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4230 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
4231 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4232 (mn10300_preferred_reload_class,
4233 mn10300_preferred_output_reload_class): New functions.
4235 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4237 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
4238 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
4239 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
4240 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
4242 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4244 * builtins.c (std_gimplify_va_arg_expr): Use
4245 targetm.calls.function_arg_boundary.
4246 * function.c (assign_parms, locate_and_pad_parm): Likewise.
4247 * calls.c (struct arg_data): Update comment.
4248 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
4249 * target.def (function_arg_boundary): Define.
4250 * targhooks.h (default_function_arg_boundary): Declare.
4251 * targhooks.c (default_function_arg_boundary): Define.
4252 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
4253 TARGET_FUNCTION_ARG_BOUNDARY.
4254 (FUNCTION_ARG_BOUNDARY): Delete.
4255 (TARGET_FUNCTION_ARG_BOUNDARY): New.
4256 * doc/tm.texi: Regenerate.
4257 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
4258 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
4259 * config/arc/arc.c (arc_function_arg_boundary): Define.
4260 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4261 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
4262 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
4263 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
4264 (arm_function_arg_boundary): Define.
4265 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4266 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
4267 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
4268 * config/frv/frv.c (frv_function_arg_boundary): Make static.
4269 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4270 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
4271 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
4272 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
4273 (ix86_compat_function_arg_boundary): Take and return unsigned int.
4274 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4275 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
4276 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
4277 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
4278 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4279 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
4280 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
4281 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4282 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
4283 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
4284 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
4285 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4286 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
4287 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
4288 * config/mips/mips.c (mips_function_arg_boundary): Make static.
4289 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4290 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
4291 * config/pa/pa.c (pa_function_arg_boundary): Define.
4292 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4293 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
4294 * config/picochip/picochip-protos.h
4295 (picochip_get_function_arg_boundary): Delete.
4296 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
4298 (picochip_function_arg_boundary): ...this. Make static.
4299 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
4300 (picochip_arg_advance): Adjust.
4301 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4302 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
4303 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
4304 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
4305 (rs6000_function_arg_boundary): ...this. Make static.
4306 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
4307 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4308 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
4309 * config/rx/rx.c (rx_function_arg_boundary): Define.
4310 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4311 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
4312 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
4313 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4314 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
4315 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
4316 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
4317 (xtensa_function_arg_boundary): ...this. Make static.
4318 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4320 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4322 * expr.c (alignment_for_piecewise_move): New function.
4323 (widest_int_mode_for_size): New function.
4324 (move_by_pieces, move_by_pieces_ninsns): Call them.
4325 (can_store_by_pieces, store_by_pieces_1): Likewise.
4327 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4329 * gcc.c (char_p): Define. Define a VEC of it.
4330 (n_linker_options, n_assembler_options, n_preprocessor_options):
4332 (linker_options, assembler_options, preprocessor_options): Convert
4334 (add_preprocessor_option): Adjust.
4335 (add_assembler_option): Adjust.
4336 (add_linker_option): Adjust.
4337 (do_specs_vec): New function.
4338 (do_spec_1): Call it. Adjust for new types.
4340 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4342 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
4343 (sreal.o, statistics.o, stringpool.o): Likewise.
4345 2010-11-16 Richard Guenther <rguenther@suse.de>
4347 PR tree-optimization/44545
4348 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
4349 statements are not reassociatable.
4350 (reassociate_bb): Likewise.
4352 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4354 * bitmap.c: Delete unnecessary includes.
4355 * ebitmap.c: Likewise.
4356 * et-forest.c: Likewise.
4357 * sreal.c: Likewise.
4358 * statistics.c: Likewise.
4359 * stringpool.c: Likewise.
4360 * double-int.c: Add comment for inclusion of tm.h.
4362 2010-11-16 Richard Guenther <rguenther@suse.de>
4364 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
4365 (visit_nary_op): ... this.
4366 (visit_binary_op): Remove.
4367 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
4369 2010-11-16 Richard Guenther <rguenther@suse.de>
4372 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
4374 2010-11-16 Nick Clifton <nickc@redhat.com>
4376 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
4379 2010-11-15 Richard Henderson <rth@redhat.com>
4381 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
4382 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
4385 2010-11-15 Richard Henderson <rth@redhat.com>
4387 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
4388 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
4391 2010-11-15 Richard Henderson <rth@redhat.com>
4393 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
4394 and *mulsubsf4 respectively. Use fma rtx_code.
4396 2010-11-15 Joseph Myers <joseph@codesourcery.com>
4398 * gcc.c: Include "vec.h".
4399 (argbuf): Make into a VEC.
4400 (argbuf_length, argbuf_index): Remove.
4401 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
4402 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
4403 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
4404 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
4405 (gcc.o): Depend on $(VEC_H).
4407 2010-11-15 Richard Henderson <rth@redhat.com>
4409 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
4410 via FMA if unsafe math.
4411 (insert_var_expansion_initialization): Handle FMA.
4412 (combine_var_copies_in_loop_exit): Likewise.
4414 2010-11-15 Richard Henderson <rth@redhat.com>
4416 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
4417 * config/ia64/ia64.opt: Remove mfused-madd.
4418 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
4419 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
4420 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
4421 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
4422 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
4423 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
4424 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
4425 (fmav2sf4): Rename from fpma; use FMA code.
4426 (fmsv2sf4): Rename from fpms; use FMA code.
4427 (fnmav2sf4): Rename from *fpnma; use FMA code.
4428 * config/ia64/ia64.md (MODE_SDF): New iterator.
4429 (suffix): New mode attribute.
4430 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
4431 (fmssf4): Rename from *fmssf4.
4432 (fnmasf4): Rename from *nfmasf4.
4433 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
4434 (*nmadddf4, *nmadddf4_truncsf): Remove.
4435 (fmsdf4): Rename from *fmsdf4.
4436 (fnmadf4): Rename from *nfmadf4.
4437 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
4438 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
4439 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
4440 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
4441 (fmsxf4): Rename from *fmsxf4.
4442 (fnmaxf4): Rename from *nfmaxf4.
4443 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
4444 (*fnmaxf_trunc_<MODE_SDF>): New.
4446 2010-11-15 Jakub Jelinek <jakub@redhat.com>
4448 PR tree-optimization/46461
4449 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
4452 2010-11-15 Ian Lance Taylor <iant@google.com>
4454 * godump.c: New file.
4455 * common.opt (fdump-go-spec=): New option.
4456 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
4457 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
4458 (TYPE_SYMTAB_IS_DIE): Define.
4459 (struct tree_type): Change GTY for symtab field to use
4460 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
4461 to pick the union field.
4462 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
4463 (dump_go_spec_init): Declare.
4464 * toplev.c (process_options): Handle flag_dump_go_spec.
4465 * debug.c: Include "tree.h".
4466 (do_nothing_debug_hooks): Set tree_type_symtab_field.
4467 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4468 * dbxout.c (dbx_debug_hooks): Likewise.
4469 (xcoff_debug_hooks): Likewise.
4470 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4471 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
4472 SDB_DEBUGGING_INFO is not defined.
4473 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
4474 (Overall Options): Document -fdump-go-spec.
4475 * Makefile.in (OBJS-common): Add godump.o.
4476 (debug.o): Add dependency on $(TREE_H).
4477 (godump.o): New target.
4478 (GTFILES): Add $(srcdir)/godump.c.
4480 2010-11-15 Jakub Jelinek <jakub@redhat.com>
4483 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
4484 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
4485 style < 0, add REG_FRAME_RELATED_EXPR.
4488 * rtl.h (vt_equate_reg_base_value): New prototype.
4489 * alias.c (vt_equate_reg_base_value): New function.
4490 * var-tracking.c (vt_init_cfa_base): Use it.
4492 2010-11-15 Jan Hubicka <jh@suse.cz>
4493 Diego Novillo <dnovillo@google.com>
4496 * doc/lto.texi: Add.
4497 * doc/gccint.texi: Add reference to lto.texi.
4498 * doc/invoke.texi: Update user documentation for LTO.
4499 Move internal flags to lto.texi
4501 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4503 * c-typeck.c (build_unary_op): Use
4504 objc_build_incr_expr_for_property_ref to build the pre/post
4505 increment/decrement of an Objective-C property ref, and skip the
4506 lvalue_or_else check in that case.
4508 2010-11-15 Martin Jambor <mjambor@suse.cz>
4510 PR tree-optimization/46349
4511 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
4512 (contains_vce_or_bfcref_p): Likewise.
4513 (sra_modify_assign): Use them.
4515 2010-11-15 Richard Guenther <rguenther@suse.de>
4517 PR tree-optimization/46467
4518 * tree-ssa-structalias.c (do_structure_copy): Properly treat
4519 variables without subvars.
4521 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
4523 * config/picochip/picochip.c (file header): Picochip name change.
4524 * config/picochip/picochip.md (file header): Likewise.
4525 * config/picochip/predicates.md (file header): Likewise.
4526 * config/picochip/dfa_space.md (file header): Likewise.
4527 * config/picochip/dfa_speed.md (file header): Likewise.
4528 * config/picochip/picochip.h(file header): Likewise.
4529 * config/picochip/constraints.md (file header): Likewise.
4530 * config/picochip/picochip-protos.h (file header): Likewise.
4531 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
4532 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
4533 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
4534 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
4535 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
4536 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
4537 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
4538 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
4539 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
4540 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
4541 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
4542 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
4543 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
4544 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
4546 2010-11-15 Richard Guenther <rguenther@suse.de>
4549 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
4551 2010-11-15 Nick Clifton <nickc@redhat.com>
4553 * config/stormy16/stormy16.c (direct_return): Do not generate a
4554 direct return for interrupt handlers.
4556 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
4558 * Makefile.in (tm.texi): Replace with rule for:
4559 ($(srcdir)/doc/tm.texi).
4560 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
4561 $(srcdir)/doc/tm.texi .
4562 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
4566 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
4569 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
4570 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
4573 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
4575 2010-11-15 Richard Guenther <rguenther@suse.de>
4578 * lto-opts.c (lto_write_options): Write -fexceptions even if
4579 not set by the user.
4581 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4584 * c-decl.c (declspecs_add_type): Make variables with error types
4586 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
4587 do not start a declaration before an Objective-C foreach.
4588 (c_parser_declaration_or_fndef): Improve recovery after unknown
4590 (c_parser_for_statement): Hoist entrance of "foreach context"
4591 before ifs, add corresponding reset where it was missing. Do
4592 not set objc_could_be_foreach_context for C.
4594 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
4596 PR tree-optimization/45722
4597 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
4598 this is a reference to a component.
4599 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
4600 (ipa_note_param_call): Adjust comment.
4602 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
4604 * config/mips/mips.c (machine_function): Remove
4605 initialized_mips16_gp_pseudo_p.
4606 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
4607 detect whether a pseudo has already been created. Unconditionally
4608 create a new one if not.
4609 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
4610 expanding to rtl. Create a new pseudo otherwise, if allowed.
4612 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
4615 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
4616 * tm.texi: Regenerated.
4617 * output.h (decode_reg_name_and_count): Declare.
4618 * varasm.c (decode_reg_name_and_count): New function.
4619 (decode_reg_name): Reimplement using decode_reg_name_and_count.
4620 * reginfo.c (fix_register): Use decode_reg_name_and_count and
4621 iterate over all regs used.
4622 * stmt.c (expand_asm_operands): Likewise.
4623 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
4624 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
4625 multiple machine registers.
4627 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
4629 * stor-layout.c (place_union_field): Do not put location information
4630 on offset expressions.
4631 (place_field): Likewise.
4632 (finalize_record_size): Likewise on size expressions.
4633 (finalize_type_size): Likewise.
4634 (layout_type): Likewise.
4636 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
4639 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
4640 * df-core.c (df_set_bb_dirty_nonrl): Remove.
4641 * df.h (df_set_bb_dirty_nonlr): Likewise.
4643 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
4645 * config/mips/mips.md (call_internal): Pass curr_insn to
4647 (call_internal_direct): Ditto.
4648 (call_value_internal): Ditto.
4649 (call_value_internal_direct): Ditto.
4650 (call_value_multiple_internal): Ditto.
4651 * config/mips/mips.c (mips_split_call): Do not copy
4652 CALL_INSN_FUNCTION_USAGE here.
4654 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
4656 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
4657 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
4658 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
4659 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
4660 (TUNE_LOONGSON_3A): Define.
4661 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
4662 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
4663 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
4664 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
4665 (mips_rtx_cost_data): Add Loongson-3A.
4667 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
4669 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
4672 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
4674 * dwarf2out.c (macinfo_entry): New struct.
4675 (output_comp_unit): Emit the section start label here and flag that we
4676 will emit an info section.
4677 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
4679 (dwarf2out_end_source_file): Likewise.
4680 (dwarf2out_define): Likewise.
4681 (dwarf2out_undef): Likewise.
4682 (output_macinfo): New.
4683 (dwarf2out_init): Do not emit debug section switches here, allocate a
4684 vec for macinfo, when required.
4685 (dwarf2out_finish): First switch to debug_abbrev_section here.
4686 debug_line_section, debug_macinfo_section, Likewise.
4687 Check that the pubtypes table has at least one unpruned entry before
4690 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4693 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
4694 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
4696 (c_parser_compound_statement_nostart, c_parser_label,
4697 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
4698 (c_parser_declaration_or_fndef): Detect the case now matched by
4699 c_parser_next_tokens_start_declaration, give error and correct it.
4701 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4703 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
4704 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
4706 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
4707 (shadow_tag_warned, check_compound_literal_type): Adjust
4708 uses of tag_defined_p.
4709 (declspecs_add_type): Set typespec_kind.
4710 * c-parser.c (c_parser_declaration_or_fndef,
4711 c_parser_declspecs, c_parser_struct_declaration,
4712 c_parser_parameter_declaration, c_parser_type_name,
4713 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
4715 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
4716 tag_defined_p, pass ctsk_firstref through.
4718 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4720 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
4721 (struct format_wanted_type): Replace field "name" with "kind", add
4722 "format_start" and "format_length".
4723 (check_format_info_main): Fill in new fields. Fill in
4724 FORMAT_WANTED_TYPES even for missing arguments. Move checks
4725 after the final NUL outside the while loop. Do not include
4726 width and precision modifiers in the format_start/format_length
4728 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
4729 arguments. Compute WANTED_TYPE first so that format_type_warning
4730 can be called for missing arguments. Adjust calls to
4731 format_type_warning.
4732 (format_type_warning): Fetch as much information as possible
4733 from format_wanted_type. Adjust printing now that every
4734 warning has a "descr", as well as for missing argument warnings
4735 and to include % sign for format specifiers.
4737 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
4739 PR rtl-optimization/46204
4740 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
4741 Update all callers. Do not recompute topological order. Adjust
4742 fallthrough edges following a degenerate conditional jump.
4744 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4746 * opts-common.c (control_warning_option): New.
4747 * opts.c (set_default_handlers): New.
4748 (decode_options): Use set_default_handlers and
4749 control_warning_option.
4750 (common_handle_option): Update call to enable_warning_as_error.
4751 (enable_warning_as_error): Take gcc_options parameters. Use
4752 control_warning_option.
4753 * opts.h (set_default_handlers, control_warning_option): Declare.
4755 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4757 * Makefile.in (OPTS_H): Define.
4758 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
4759 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
4760 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
4761 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
4762 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
4763 * gcc.c (driver_handle_option): Take location_t parameter.
4764 (process_command, do_self_spec): Update calls to
4765 read_cmdline_option.
4766 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
4767 * langhooks.c (lhd_handle_option): Take location_t parameter.
4768 * langhooks.h (handle_option): Take location_t parameter.
4769 * lto-opts.c (lto_reissue_options): Update call to set_option.
4770 * opts-common.c (handle_option): Make static. Take location_t
4771 parameter and pass it to other functions.
4772 (handle_generated_option): Take location_t parameter and pass it
4774 (read_cmdline_option): Take location_t parameter and pass it to
4775 other functions. Use warning_at and error_at.
4776 (set_option): Take location_t parameter and pass it to other
4778 * opts.c (common_handle_option): Take location_t parameter and
4779 pass it to other functions.
4780 (enable_warning_as_error): Make static. Take location_t parameter
4781 and pass it to other functions.
4782 (lang_handle_option): Take location_t parameter and pass it to
4784 (target_handle_option): Take location_t parameter.
4785 (read_cmdline_options, maybe_default_option,
4786 maybe_default_options, default_options_optimization,
4787 decode_options): Take location_t parameter and pass it to other
4789 * opts.h: Include input.h.
4790 (struct cl_option_handler_func, decode_options, set_option,
4791 handle_generated_option, read_cmdline_option): Take location_t
4793 (handle_option, enable_warning_as_error): Remove.
4794 * toplev.c (toplev_main): Update call to decode_options.
4796 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
4798 * graphite-cloog-util.c (oppose_constraint,
4799 cloog_matrix_to_ppl_constraint,
4800 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
4801 CLooG isl uses unsigned integers. This triggered a warning.
4803 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4806 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
4807 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
4808 (xtensa_function_arg_1): De-constify cum.
4809 (xtensa_expand_prologue): Use add_reg_note.
4812 * config/cris/cris.c (saved_regs_mentioned): Delete.
4813 (cris_reload_address_legitimized): Cast itype to enum reload_type.
4814 Remove unused variable op0p.
4815 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
4816 (cris_emit_movem_store): Use add_reg_note.
4819 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
4821 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4823 * function.c (expand_function_end): Set the locator of the prologue on
4824 the stack checking insns.
4826 2010-11-12 Richard Henderson <rth@redhat.com>
4828 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
4829 * config/xtensa/xtensa.opt (mfused-madd): Remove.
4830 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
4832 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
4833 (fnmasf4): Rename from mulsubsf3; use fma.
4835 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4836 Richard Henderson <rth@redhat.com>
4839 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
4840 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
4843 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
4845 * opts-common.c (decode_cmdline_option): Initialize separate_args.
4847 2010-11-12 Jan Hubicka <jh@suse.cz>
4849 * doc/invoke.texi (early-inlining-insns): Update default.
4850 * params.def (early-inlining-insns): Default to 10.
4852 2010-11-12 Olivier Hainque <hainque@adacore.com>
4854 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
4856 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4858 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
4859 (SUPPORTS_INIT_PRIORITY): Define.
4861 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4864 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
4865 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
4866 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
4867 (avr_device_to_devicelib): Likewise.
4868 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
4870 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
4871 (zero_extendhidi2, zero_extendsidi2): Likewise.
4872 * config/avr/avr.c (avr_num_arg_regs): Constify type.
4873 (avr_return_addr_rtx): De-constify tem.
4874 (avr_rotate_bytes): Move declarations to start of block.
4875 Don't use variable length array. Put nested if/else into block.
4877 PR rtl-optimization/46433
4878 * var-tracking.c: Include tm_p.h .
4882 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
4884 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
4885 * doc/tm.texi: Regenerate.
4888 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
4889 * config/bfin/bfin.c: Include sel-sched.h .
4890 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
4891 (expand_interrupt_handler_prologue): Remove unused variable insn.
4892 (bfin_load_pic_reg): Likewise.
4893 (bfin_rtx_costs): Make code / outer_code variables of type
4894 enum rtx_code, copied from re-named parameters.
4895 (bfin_local_alignment): Change align argument and return type
4897 (bfin_adjust_cost): Remove unused variable insn_type.
4898 Declare variables at start of block.
4899 (struct loop_info): Rename to...
4900 (struct loop_info_d).
4901 (workaround_rts_anomaly): Change type of icode to int.
4902 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
4903 with int-typed variable.
4904 (note_np_check_stores): Likewise.
4905 (trapping_loads_p): Remove unused variable pat.
4906 (bfin_expand_binop_builtin): Use expand_normal.
4907 (bfin_expand_unop_builtin): Likewise.
4908 (bfin_expand_builtin): Likewise. Set tmode before use.
4911 * final.c (split_double): Don't use BITS_PER_WORD directly in
4915 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
4919 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
4921 (xstormy16_function_arg): Dereference cum.
4922 (xstormy16_expand_builtin): Use expand_normal.
4923 Change type of omode to enum machine_mode.
4924 (combine_bnp): Rename and to and_insn.
4927 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
4930 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4933 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
4935 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
4938 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
4940 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
4943 * common.opt (fmax-errors=): New option.
4944 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
4945 * diagnostic.h (struct diagnostic_context): Add max_errors field.
4946 * diagnostic.c (diagnostic_initialize): Initialize it.
4947 (diagnostic_action_after_output): Exit if more than max_errors
4949 * doc/invoke.texi (Warning Options): Add -fmax-errors.
4950 (-fmax-errors): Document.
4952 2010-11-11 Richard Henderson <rth@redhat.com>
4954 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
4956 2010-11-11 Richard Henderson <rth@redhat.com>
4958 * config/fused-madd.opt: New file.
4959 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
4960 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
4961 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4962 * config/i386/i386.opt (mfused-madd): Remove.
4963 * config/i386/sse.md (split_fma): Remove.
4964 (split_fms, split_fnma, split_fnms): Remove.
4966 2010-11-12 Jakub Jelinek <jakub@redhat.com>
4969 * config/i386/i386.md (*ashl<mode>3_cconly,
4970 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
4971 change nonimmediate_operand predicate to register_operand.
4973 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
4975 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
4977 2010-11-11 Jan Hubicka <jh@suse.cz>
4979 * opts.c (finish_options): Do not error on -flto-partition alone.
4981 * doc/invoke.texi (-fwhopr): Merge into -flto section.
4982 (-flto-partition): Document none.
4983 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
4984 * lto-wrapper.c: Update comment.
4985 (run_gcc): Update LTO option parsing.
4986 * opts.c (finish_options): add support -flto-partition=none
4987 (common_handle_option): Remove fwhopr.
4988 * common.opt: Turn fwhopr into flto.
4989 * collect2.c (main): Update option handling.
4990 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
4991 * ipa-split.c (execute_split_functions): Remove flag_whopr.
4992 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
4993 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
4994 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
4996 2010-11-11 Jan Hubicka <jh@suse.cz>
4998 PR tree-optimize/40436
4999 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
5000 (eliminated_by_inlining_prob): ... this one; return 50% probability
5002 (estimate_function_body_sizes): Update use of
5003 eliminated_by_inlining_prob; estimate static function size
5006 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
5009 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
5010 declare. Change type of argument four to type int.
5011 (mep_secondary_input_reload_class): Returns enum reg_class.
5012 (mep_secondary_output_reload_class): Likewise.
5013 (mep_function_value): Change types of arguments to cont_tree.
5014 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
5015 argument four to type int.
5016 (mep_secondary_input_reload_class): Returns enum reg_class.
5017 (mep_secondary_output_reload_class): Likewise.
5018 (mep_function_value): Change types of arguments to cont_tree.
5019 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
5020 mep_regno_reg_class to enum reg_class.
5022 2010-11-11 Richard Henderson <rth@redhat.com>
5024 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
5025 that the target has the exact fma operation that we matched.
5027 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5029 * reginfo.c (fix_register): Avoid inserting English word in
5030 diagnostic sentence. Use %qs for quoting and %'.
5032 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
5034 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5035 Intel processor family 6, model 0x2c.
5037 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5039 * opts.c (warning_as_error_callback,
5040 register_warning_as_error_callback): Remove.
5041 (enable_warning_as_error): Don't use warning_as_error_callback.
5042 * opts.h (register_warning_as_error_callback): Remove.
5044 2010-11-11 Richard Henderson <rth@redhat.com>
5046 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
5047 in between the MULT and the PLUS/MINUS.
5049 2010-11-11 Jakub Jelinek <jakub@redhat.com>
5052 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
5053 BLKmode mode for it.
5054 (expand_expr_real_1): Similarly for op0.
5056 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5058 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
5059 Document optional target selector.
5061 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
5063 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
5064 assembling high and low parts of size if not using 32-bit HWINT; else
5065 use DECL_SIZE_UNITS, not DECL_SIZE.
5067 2010-11-11 Martin Jambor <mjambor@suse.cz>
5069 PR tree-optimization/46383
5070 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
5072 (compute_complex_ancestor_jump_func): Likewise.
5073 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
5075 2010-11-11 Jakub Jelinek <jakub@redhat.com>
5078 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
5079 true if expr1->hash != expr2->hash.
5081 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5083 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
5084 diagnostics with lowercase letters.
5085 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
5087 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
5089 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5090 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
5092 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5093 Remove trailing ' ' from diagnostic.
5094 * config/avr/avr.c (print_operand_address): Start diagnostic with
5095 a lowercase letter and remove trailing '.'.
5096 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
5097 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
5098 with lowercase letters. Use %' in diagnostics. Remove trailing
5099 '.' from diagnostics.
5100 (bfin_handle_longcall_attribute): Use %' in diagnostic.
5101 * config/cris/cris.c (cris_split_movdx,
5102 cris_expand_pic_call_address): Start diagnostics with lowercase
5104 (cris_asm_output_label_ref): Use %' in diagnostic.
5105 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
5107 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
5109 * config/darwin-c.c (version_as_macro): Start diagnostic with a
5111 * config/darwin-driver.c (darwin_default_min_version): Use %' in
5113 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
5115 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5116 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
5118 * config/i386/i386.c (ix86_option_override_internal): Write
5119 diagnostic as a single sentence without trailing '.'. Use %' in
5121 (ix86_function_sseregparm, classify_argument): Start diagnostics
5122 with lowercase letters.
5123 (ix86_expand_prologue): Use %' in diagnostic.
5124 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
5126 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
5128 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
5130 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5131 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
5133 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
5135 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
5137 * config/microblaze/microblaze.c (microblaze_handle_option):
5138 Remove trailing '.' from diagnostic.
5139 (print_operand): Start diagnostic with a lowercase letter.
5140 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
5141 lowercase letters. Avoid '`' in diagnostics.
5142 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
5143 lowercase letters. Avoid '`' in diagnostics.
5144 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
5145 lowercase letters. Avoid '`' in diagnostics.
5146 * config/picochip/picochip.c (picochip_option_override,
5147 picochip_emit_save_register, picochip_function_arg,
5148 picochip_output_label, picochip_output_internal_label,
5149 picochip_asm_output_opcode, picochip_output_cbranch,
5150 picochip_output_compare, picochip_output_branch,
5151 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
5152 diagnostics. Start diagnostics with lowercase letters. Use %' in
5154 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
5155 "SPE" capitalization. Start diagnostic with a lowercase letter.
5156 (rs6000_handle_option): Start diagnostics with lowercase letters.
5157 (def_builtin): Remove trailing '.' from diagnostic.
5158 (rs6000_savres_routine_name): Start diagnostic with a lowercase
5160 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
5162 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
5164 * config/s390/s390.c (s390_option_override) Start diagnostics with
5165 lowercase letters. Use %' in diagnostic.
5166 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
5168 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
5170 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
5172 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
5174 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5175 * config/spu/spu.c (spu_option_override): Start diagnostics with
5176 lowercase letters. Use %qs for quoting in diagnostics.
5177 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
5178 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
5179 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
5181 * convert.c (convert_to_integer, convert_to_vector): Use %' in
5183 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
5184 letter and use "cannot" spelling.
5185 * expmed.c (extract_fixed_bit_field): Start diagnostic with
5186 lowercase letter and format as a single sentence without '.'.
5187 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
5188 Use %' in diagnostics.
5189 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
5190 Use %' in diagnostics.
5191 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
5192 Use %' in diagnostics.
5193 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
5194 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
5195 with lowercase letters and remove tailing '.' and '\n'.
5196 * lto-cgraph.c (input_profile_summary): Start diagnostic with
5197 lowercase letter and remove trailing '.'.
5198 (input_cgraph): Start diagnostics with lowercase letters and
5199 remove trailing '\n'.
5200 * opts.c (finish_options, common_handle_option): Start diagnostics
5201 with lowercase letters and remove trailing '.'. Fix typo in
5203 * passes.c (position_pass): Start diagnostic with lowercase letter.
5204 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
5205 register_callback, try_init_one_plugin): Start diagnostics with
5207 * reload1.c (spill_failure): Use %' in diagnostic.
5208 (gen_reload): Start diagnostic with a lowercase letter.
5209 * stor-layout.c (place_field): Start diagnostic with a lowercase
5211 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
5212 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
5213 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
5214 Start diagnostics with lowercase letters, remove trailing '.' and
5215 use %' in diagnostics.
5216 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
5217 (verify_ssa): Don't split diagnostic across two error calls.
5218 Spell out "number" and use %' in diagnostic.
5219 * value-prof.c (visit_hist, check_counter): Start diagnostics with
5222 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
5225 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
5226 (_mm_cvtpu16_ps): Ditto.
5228 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5230 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
5231 warn_larger_than, larger_than_size, warn_frame_larger_than,
5232 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
5233 default_visibility, flag_tls_default): New Variable declarations.
5234 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
5235 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
5236 (v): Declare as Common and document here.
5237 * flags.h (default_visibility, flag_generate_lto,
5238 warn_larger_than, larger_than_size, warn_frame_larger_than,
5239 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
5240 flag_shlib, flag_excess_precision_cmdline): Remove.
5241 (set_Wstrict_aliasing): Update prototype.
5242 * gcc.c (verbose_flag): Remove.
5243 (driver_handle_option): Add diagnostic_context parameter. Don't
5244 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
5246 * opts-common.c (handle_option): Pass dc to handler.
5247 * opts.c (warn_larger_than, larger_than_size,
5248 warn_frame_larger_than, frame_larger_than_size,
5249 default_visibility): Remove.
5250 (common_handle_option): Add diagnostic_context parameter.
5251 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
5252 gcc_options parameters.
5253 (lang_handle_option, target_handle_option, read_cmdline_options,
5254 decode_options): Add diagnostic_context parameters.
5255 (finish_options): Access option state through opts pointer where
5257 (common_handle_option): Access option state through opts pointer
5258 where possible. Do not set local static variable verbose. Do not
5259 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
5260 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
5261 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
5262 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
5263 OPT_fwhopr_. Do not explicitly set .opt file variables for
5264 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
5265 (set_Wstrict_aliasing): Add gcc_options parameter.
5266 * opts.h (struct cl_option_handler_func): Add diagnostic_context
5267 parameter to handler.
5268 (decode_options): Add diagnostic_context parameter.
5269 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
5270 asm_file_name, flag_generate_lto, flag_gen_aux_info,
5271 aux_info_file_name, flag_shlib, flag_tls_default,
5272 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
5273 (toplev_main): Pass global_dc to decode_options.
5274 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
5275 aux_info_file_name, asm_file_name): Remove.
5276 * tree.h (flag_tls_default): Remove.
5278 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
5281 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
5282 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
5284 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
5286 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
5287 (x86_64-*-*): Likewise.
5288 * config/i386/cpuid.h: Define TBM bit.
5289 * config/i386/driver-i386.c (host_detect_local_cpu): Define
5291 * config/i386/i386-c.c (ix86_target_macros_internal): Check
5293 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
5294 (OPTION_MASK_ISA_TBM_UNSET): New.
5295 (ix86_handle_option): Handle -mtbm.
5296 (isa_opts): Add -mtbm.
5297 (enum pta_flags): Add PTA_TBM.
5298 (ix86_option_override_internal): Add TBM support.
5299 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
5300 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
5301 (IX86_BUILTIN_BEXTRI64): Likewise.
5302 (bdesc_args): Add TBM intrinsics.
5303 (ix86_expand_builtin): Add TBM specific case.
5304 * config/i386/i386.h (TARGET_TBM): New for TBM.
5305 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
5306 (tbm_bextri_<mode>): Likewise.
5307 (*tbm_blcfill_<mode>): Likewise.
5308 (*tbm_blci_<mode>): Likewise.
5309 (*tbm_blcic_<mode>): Likewise.
5310 (*tbm_blcmsk_<mode>): Likewise.
5311 (*tbm_blcs_<mode>): Likewise.
5312 (*tbm_blsfill_<mode>): Likewise.
5313 (*tbm_blsic_<mode>): Likewise.
5314 (*tbm_t1mskc_<mode>): Likewise.
5315 (*tbm_tzmsk_<mode>): Likewise.
5316 * config/i386/i386.opt: Add -mtbm.
5317 * config/i386/tbmintrin.h (__bextri_u32): New.
5318 (__blcfill_u32): Likewise.
5319 (__blci_u32): Likewise.
5320 (__blcic_u32): Likewise.
5321 (__blcmsk_u32): Likewise.
5322 (__blcs_u32): Likewise.
5323 (__blsfill_u32): Likewise.
5324 (__blsic_u32): Likewise.
5325 (__t1mskc_u32): Likewise.
5326 (__tzmsk_u32): Likewise.
5327 (__bextri_u64): Likewise.
5328 (__blcfill_u64): Likewise.
5329 (__blci_u64): Likewise.
5330 (__blcic_u64): Likewise.
5331 (__blcmsk_u64): Likewise.
5332 (__blcs_u64): Likewise.
5333 (__blsfill_u64): Likewise.
5334 (__blsic_u64): Likewise.
5335 (__t1mskc_u64): Likewise.
5336 (__tzmsk_u64): Likewise.
5337 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
5338 * doc/invoke.texi: Document -mtbm.
5339 * doc/extend.texi: Document TBM built-in functions.
5341 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
5343 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
5344 (x86_64-*-*): Likewise.
5345 * config/i386/cpuid.h: Define BMI bit.
5346 * config/i386/driver-i386.c (host_detect_local_cpu): Define
5348 * config/i386/i386-c.c (ix86_target_macros_internal): Check
5350 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
5351 (OPTION_MASK_ISA_BMI_UNSET): New.
5352 (ix86_handle_option): Handle -mbmi.
5353 (isa_opts): Add -mbmi.
5354 (enum pta_flags): Add PTA_BMI.
5355 (ix86_option_override_internal): Add BMI support.
5356 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
5357 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
5358 (IX86_BUILTIN_BEXTR64): Likewise.
5359 (IX86_BUILTIN_CTZS): Likewise.
5360 (bdesc_args): Add BMI intrinsics.
5361 (ix86_expand_args_builtin): Add BMI specific cases.
5362 * config/i386/i386.h (TARGET_BMI): New for BMI.
5363 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
5364 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
5365 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
5366 (UNSPEC_TZCNT): Likewise.
5367 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
5368 (bmi_andn_<mode>): New for BMI.
5369 (bmi_bextr_<mode>): Likewise.
5370 (bmi_blsi_<mode>): Likewise.
5371 (bmi_blsmsk_<mode>): Likewise.
5372 (bmi_blsr_<mode>): Likewise.
5373 * config/i386/i386.opt: Add -mbmi.
5374 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
5375 * config/i386/bmiintrin.h (__lzcnt_u16): New.
5376 (__tzcnt_u16): Likewise.
5377 (__andn_u32): Likewise.
5378 (__bextr_u32): Likewise.
5379 (__blsi_u32): Likewise.
5380 (__blsmsk_u32): Likewise.
5381 (__blsr_u32): Likewise.
5382 (__lzcnt_u32): Likewise.
5383 (__tzcnt_u32): Likewise.
5384 (__andn_u64): Likewise.
5385 (__bextr_u64): Likewise.
5386 (__blsi_u64): Likewise.
5387 (__blsmsk_u64): Likewise.
5388 (__blsr_u64): Likewise.
5389 (__lzcnt_u64): Likewise.
5390 (__tzcnt_u64): Likewise.
5391 * doc/invoke.texi: Document -mbmi and -mno-bmi.
5392 * doc/extend.texi: Document BMI built-in functions.
5394 2010-11-10 Jan Hubicka <jh@suse.cz>
5396 PR tree-optimize/46228
5397 * doc/invoke.texi (comdat-sharing-probability): Document.
5398 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
5399 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
5401 2010-11-10 Jan Hubicka <jh@suse.cz>
5403 PR tree-optimize/46228
5404 * cgraph.c (cgraph_propagate_frequency): Fix typo.
5406 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
5408 PR tree-optimization/46414
5409 * tree-inline.c (estimate_move_cost): Check preferred vector
5410 mode for vector type.
5412 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5414 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
5416 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
5418 PR tree-optimization/45971
5419 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
5420 for phi nodes analyzable by scev.
5422 2010-11-10 Richard Guenther <rguenther@suse.de>
5424 PR tree-optimization/44964
5425 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
5427 2010-11-10 Martin Jambor <mjambor@suse.cz>
5429 PR tree-optimization/46351
5430 PR tree-optimization/46377
5431 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
5432 aggregate bit-fields.
5434 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5436 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5437 * doc/tm.texi: Regenerate.
5438 * opts-common.c (tm.h): Don't include.
5439 (target_option_translations): Remove.
5440 (decode_cmdline_options_to_array): Don't handle translating options.
5441 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
5442 * config/darwin-driver.c: Don't condition includes on
5443 CROSS_DIRECTORY_STRUCTURE.
5444 (darwin_default_min_version): Make static.
5445 (darwin_driver_init): New. Call darwin_default_min_version if not
5446 CROSS_DIRECTORY_STRUCTURE.
5447 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5448 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
5449 (ASM_SPEC): Add %{static}.
5450 (darwin_default_min_version): Don't declare.
5451 (darwin_driver_init): Declare.
5452 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
5453 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
5454 * config/darwin.opt (all_load, allowable_client,
5455 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
5456 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
5457 exported_symbols_list, filelist, findirect-virtual-calls,
5458 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
5459 framework, fterminated-vtables, gfull, gused, image_base, init,
5460 install_name, multi_module, multiply_defined,
5461 multiply_defined_unused, no_dead_strip_inits_and_terms,
5462 seg_addr_table, seg_addr_table_filename, segaddr,
5463 segs_read_only_addr, segs_read_write_addr, single_module,
5464 umbrella, unexported_symbols_list, weak_reference_mismatches,
5465 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
5466 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
5467 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
5468 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
5469 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
5470 (ASM_SPEC): Add %{static}.
5471 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
5472 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5473 (DRIVER_SELF_SPECS): Handle options formerly in
5474 TARGET_OPTION_TRANSLATE_TABLE.
5475 * config/mep/mep.opt (mfar): New.
5476 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5477 (DRIVER_SELF_SPECS): Define. Handle options formerly in
5478 TARGET_OPTION_TRANSLATE_TABLE.
5479 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
5480 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
5481 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
5482 ffix-and-continue, findirect-data): New.
5483 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5484 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
5485 (mnofpu): Define mask and use Report here.
5487 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5489 * config/s390/s390.c (s390_emit_prologue): Report the stack
5490 size if -fstack-usage is used.
5492 2010-11-10 Richard Guenther <rguenther@suse.de>
5494 PR tree-optimization/46398
5495 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
5497 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
5500 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
5501 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
5502 GP_REG_OR_PSEUDO_STRICT_P.
5503 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
5504 unexpected alternative.
5505 (*movsf_internal): Likewise.
5506 (indirect_jump): Replace call to non-existant function with call to
5508 (tablejump): Likewise.
5509 * config/iq2000/iq2000.c: Include df.h .
5510 (iq2000_function_arg_advance): Use CONST_CAST2.
5511 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
5512 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
5513 a non-zero function address.
5514 (iq2000_initial_elimination_offset): Add gcc_unreachable for
5515 unexpected value of FROM.
5516 (symbolic_expression_p): Delete.
5517 (iq2000_function_value): Constify func.
5518 (expand_one_builtin): Use expand_normal.
5519 (iq2000_print_operand): Don't print VALUE if calculating it failed.
5521 PR rtl-optimization/44764
5522 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
5525 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
5526 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
5527 with ATTRIBUTE_UNUSED.
5528 (valid_psw_flag): Constify parameter which.
5529 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
5532 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
5533 (mmix_dbx_register_number): Likewise.
5534 * config/mmix/mmix.c: Include df.h .
5535 (mmix_local_alignment): Change argument basic_align and return type
5537 (mmix_dbx_register_number): Change argument and return type to
5539 (mmix_expand_prologue): Use add_reg_note.
5542 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
5543 (spu_split_store): Use aform.
5544 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
5546 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5549 * doc/gty.texi (GTY Options): Clarify that variable_size produces
5550 allocators taking size in bytes, compare with length option. Add
5551 size calculation example.
5552 (Invoking the garbage collector): Ensure that sentences are
5553 followed by two spaces. Describe that pointer fields must be
5554 initialized at ggc_collect call.
5555 (Troubleshooting): New section.
5557 2010-11-09 Jan Hubicka <jh@suse.cz>
5559 PR tree-optimization/40436
5560 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
5561 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
5562 normal instructions; be sure bultin is not implemented in this file;
5563 compute non-zero return cost.
5564 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
5565 * tree-inline.h (eni_weights_d): Add return cost.
5567 2010-11-09 Joseph Myers <joseph@codesourcery.com>
5569 * c-parser.c (c_parser_struct_declaration): Handle declaration
5570 specifiers followed by CPP_CLOSE_BRACE.
5572 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5574 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
5575 split occurs before reload, and we allocate memory at the time of
5576 the split, not during expansion. Add attributes.
5577 (floatsi<mode>2_lfiwax_mem): Ditto.
5578 (floatunssi<mode>2_lfiwzx): Ditto.
5579 (floatunssi<mode>2_lfiwzx_mem): Ditto.
5580 (floatsidf2): Ditto.
5581 (floatunssisf2): Ditto.
5582 (floatunssidf2): Ditto.
5583 (fix_trunc<mode>si2): Ditto.
5584 (fix_trunc<mode>si2_stfiwx): Ditto.
5585 (fix_trunc<mode>si2_internal): Ditto.
5586 (fix_trunc<mode>si2): Ditto.
5587 (fix_trunc<mode>di2): Ditto.
5588 (fixuns_trunc<mode>si2_stfiwx): Ditto.
5589 (floatsisf2): Ditto.
5590 (floatdidf2_mem): Ditto.
5591 (floatunsdidf2_mem): Ditto.
5592 (floatunsdidf2): Ditto.
5593 (floatdisf2_internal1): Ditto.
5594 (floatdisf2_mem): Ditto.
5595 (floatunsdisf2_mem): Ditto.
5596 (floatsi<mode>2_lfiwax_mem2): Delete.
5597 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5598 (fix_trunc<mode>si2_mem): Ditto.
5599 (fixuns_trunc<mode>si2_mem): Ditto.
5600 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
5601 type operations to reduce copying the values to multiple memory slots.
5602 (roundu32<mode>2_fprs): Ditto.
5604 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
5605 PRE_INC, PRE_DEC, PRE_MODIFY.
5606 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
5608 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
5611 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5614 * cfgexpand.c (partition_stack_vars): Call
5615 update_alias_info_with_stack_vars unconditionally.
5616 (update_alias_info_with_stack_vars): Allow unused
5617 unreferenced vars when not optimizing.
5619 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
5621 PR tree-optimization/46036
5622 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
5623 add_to_dst_predicate_list.
5625 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5628 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
5630 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
5631 argument, call dead_debug_reset when adding REG_UNUSED note.
5632 (dead_debug_reset): New function.
5633 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
5634 df_create_unused_note callers.
5636 2010-11-09 Anatoly Sokolov <aesok@post.ru>
5638 * config/fr30/fr30.c: Include "df.h".
5640 2010-11-09 Richard Guenther <rguenther@suse.de>
5642 PR tree-optimization/46355
5643 * tree-loop-distribution.c (tree_loop_distribution): Do not
5644 distribute loops without a single exit.
5646 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5648 PR rtl-optimization/46237
5649 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
5650 saved hard regs if they might get partially clobbered.
5652 2010-11-09 Paul Koning <ni1d@arrl.net>
5654 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
5656 2010-11-09 Richard Guenther <rguenther@suse.de>
5658 PR tree-optimization/46177
5659 * tree-loop-distribution.c (prop_phis): Remove.
5660 (generate_builtin): Re-use the old loop exit edge to avoid
5661 needing to update PHI nodes.
5663 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
5665 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
5666 type of args_size to unsigned HOST_WIDE_INT.
5669 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
5670 * config/t-pnt16-warn: New file.
5671 * config/picochip/picochip.c (picochip_emit_stack_allocate):
5673 (picochip_emit_save_register): Likewise.
5674 (picochip_emit_restore_register): Remove variable insn.
5675 (picochip_legitimize_address): Don't use C++ style comments.
5676 (picochip_legitimize_reload_address): Likewise.
5677 (reorder_var_tracking_notes): Remove variable vliw_start.
5678 (picochip_reorg): Cast first arguemnt to emit_note_after to
5680 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
5681 (picochip_expand_builtin_3op): Likewise.
5682 (picochip_expand_builtin_2opvoid): Likewise.
5683 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
5684 (picochip_expand_array_testport): Likewise.
5685 (picochip_init_builtins): Remove unused variables.
5686 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
5687 to unsigned long, and output it as such.
5688 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
5689 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
5690 (schedType): Cast result of picochip_schedule_type to
5691 enum attr_schedType.
5694 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
5695 conditional to type of S.
5696 (mn10300_function_arg): Remove unused variable align.
5697 (mn10300_arg_partial_bytes): Likewise.
5698 * config/mn10300/mn10300.md (attribute cpu): Cast value to
5701 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
5704 * gengtype-parse.c (type): Call get_input_file_name to get file name.
5706 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
5708 * tree.h (contains_placeholder_p): Fix comment.
5709 (type_contains_placeholder_p): Adjust comment.
5710 * tree.c (contains_placeholder_p): Fix comment.
5711 (type_contains_placeholder_1): Do not recurse on pointed-to types and
5713 (type_contains_placeholder_p): Add comment.
5715 2010-11-09 Paul Koning <ni1d@arrl.net>
5717 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
5718 output of byte values.
5720 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5723 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
5726 2010-11-09 Richard Guenther <rguenther@suse.de>
5729 * varasm.c (compute_visible_aliases): New function.
5730 (remove_unreachable_alias_pairs): Aliases make a target available
5731 even though we reclaimed the cgraph node.
5732 (finish_aliases_1): Likewise.
5733 * Makefile.in (varasm.o): Add pointer-set.h dependency.
5735 2010-11-09 Nick Clifton <nickc@redhat.com>
5737 * config/mn10300/mn10300-modes.def: New file.
5739 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
5740 Jeremie Salvucci <jeremie.salvucci@free.fr>
5742 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
5743 (plugin_files, get_file_basename, get_file_realbasename)
5744 (get_file_langdir, error_at_line, gt_files, this_file)
5745 (system_h_file, read_input_list, create_field_all)
5746 (get_file_srcdir_relative_path, get_file_basename)
5747 (get_file_langdir, get_file_gtfilename)
5748 (get_output_file_with_visibility, get_output_file_name)
5749 (struct flist, put_mangled_filename, walk_type)
5750 (put_mangled_filename, finish_root_table, write_roots): Use
5752 (lang_dir_names, num_lang_dirs): Remove static.
5753 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
5754 (main): Use input_file-s.
5756 * gengtype.h: (struct input_file_st, input_file): New type.
5757 (struct fileloc): Use it.
5758 (gt_files, num_gt_files, this_file, system_h_file)
5759 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
5760 (get_input_file_name): New function.
5761 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
5763 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
5764 (get_output_file_name): Ditto.
5766 * gengtype-lex.l (yybegin): Use input_file.
5768 * gengtype-parse.c (parse_error): Use input_file.
5770 2010-11-08 Xinliang David Li <davidxl@google.com>
5772 PR tree-optimization/46316
5773 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
5774 * double-int.h (double_int_mul_with_sign): New function.
5775 * double-int.c (double_int_mul_with_sign): New function.
5777 2010-11-08 Paul Koning <ni1d@arrl.net>
5779 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
5781 2010-11-08 Paul Koning <ni1d@arrl.net>
5783 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
5785 2010-11-08 Paul Koning <ni1d@arrl.net>
5787 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
5790 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5793 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5794 turn on ISA 2.04 rounding instructions for power5.
5796 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
5800 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
5802 (movdi_low_st): Ditto.
5804 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5805 Richard Henderson <rth@redhat.com>
5808 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
5809 (attribute acc_group): Cast value to enum attr_acc_group.
5810 (*movdi_nodouble+6): Use gen_int_mode.
5811 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
5812 if RTX_CODE is defined or not.
5813 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
5815 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
5816 (frv_frame_access, frv_expand_prologue): Remove unused variables.
5817 (frv_expand_block_clear): Likewise.
5818 (frv_trampoline_init): Use LCT_NORMAL.
5819 (struct frv_packet_group): New struct, broken out of type of
5821 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
5822 use cast in loop counter increment.
5823 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
5824 assigning to io->type.
5825 (bdesc_set): Use rtx_code UNKNOWN in initializer.
5826 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
5827 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
5828 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
5829 (frv_read_argument): Use expand_normal.
5832 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
5833 lm32_legitimate_constant_p.
5834 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5835 * config/lm32/lm32.c (gen_int_relational): Make new block for
5836 LE / LT / LEU / LTU case. Declare variables at start of block.
5837 (lm32_block_move_inline): Use XALLOCAVEC.
5839 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5841 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
5843 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5845 * gengtype (get_output_file_for_structure): Ensure type is union
5847 (write_splay_tree_allocator_def): Use
5848 get_output_file_with_visibility.
5850 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5852 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
5853 to defined values in case of an error.
5854 (s390_option_override): Skip further processing if the -march
5855 parameter wasn't recognized.
5857 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5859 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
5860 assert that REG is a hard register number before using it as an index.
5863 * config/i386/i386.c (ix86_expand_split_stack_prologue):
5864 Avoid warnings when HOST_WIDE_INT is 32 bit.
5866 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
5869 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
5870 (sparc_promote_prototypes): Likewise.
5871 (sparc_promote_function_mode): Promote in 32-bit mode as well.
5872 (sparc_return_in_memory): Remove superfluous parentheses.
5873 (sparc_struct_value_rtx): Fix long lines.
5874 (sparc_function_value_1): Promote in 32-bit mode as well.
5876 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
5878 PR rtl-optimization/45352
5879 * sel-sched.c (find_best_expr): Do not set pneed_stall when
5880 the variable_issue hook is not implemented.
5881 (fill_insns): Remove dead variable stall_iterations.
5882 (init_seqno_1): Force EBB start for resetting sched cycles on any
5883 successor blocks of the rescheduled region.
5884 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
5885 (reset_sched_cycles_in_current_ebb): Add debug printing.
5886 New variable issued_insns. Advance state when we have issued
5889 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5891 * gengtype (main): Get here's position using POS_HERE macro for
5894 2010-11-07 Ian Lance Taylor <iant@google.com>
5897 * config/i386/i386.c (split_stack_fn_large): New static variable.
5898 (ix86_expand_split_stack_prologue): Handle large model.
5900 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
5902 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
5903 all possible addressing modes.
5905 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
5907 PR tree-optimization/46346
5908 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
5910 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5912 * config/mips/mips.c: Revert previous patch.
5913 * config/mips/mips.md: Likewise.
5915 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5917 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
5918 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
5919 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
5920 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
5921 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
5923 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
5924 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
5925 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
5926 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
5928 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
5931 * c-decl.c (lookup_label): Labels can only be referenced in a
5933 (store_parm_decls_oldstyle): Skip erroneous parameters.
5935 2010-11-06 Anatoly Sokolov <aesok@post.ru>
5937 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5938 LIBCALL_VALUE): Remove macros.
5939 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5940 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5941 (fr30_function_value_regno_p, fr30_function_value,
5942 fr30_libcall_value): New functions.
5944 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
5947 * target.def (generate_internal_label): New asm_out hook.
5948 * output.h (default_generate_internal_label): Declare.
5949 * varasm.c (default_generate_internal_label): Define.
5951 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5954 * doc/extend.tex (format): Document NSString extension.
5955 (format_arg): Likewise.
5956 (Darwin Format Checks): New section.
5957 * doc/tm.texi: Document string object hooks (generated).
5958 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
5959 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5960 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5961 * target.def (objc_construct_string_object): Rename, amend
5963 (string_object_ref_type_p): New hook.
5964 (check_string_object_format_arg): New hook.
5965 * c-parser.c (c_parser_attributes): Allow objective-c class names as
5966 attribute identifiers.
5967 * config/darwin-c.c (darwin_cfstring_ref_p): New.
5968 (darwin_check_cfstring_format_arg): New.
5969 (darwin_additional_format_types): New.
5970 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
5971 (darwin_check_cfstring_format_arg): New.
5972 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
5973 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5974 (TARGET_N_FORMAT_TYPES): New.
5975 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5977 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
5978 Pascal Obry <obry@adacore.com>
5980 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
5981 in 64-bit mode and 17 otherwise.
5983 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5986 * var-tracking.c (emit_note_insn_var_location): Make sure that
5987 call related var location notes come before the normal ones.
5989 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
5992 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
5995 2010-11-05 Ian Lance Taylor <iant@google.com>
5997 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
5999 2010-11-05 Jakub Jelinek <jakub@redhat.com>
6002 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
6003 pointer_set_contains if DECL_NAME is NULL.
6005 2010-11-05 Ian Lance Taylor <iant@google.com>
6008 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
6009 request enough additional space for alignment, and force alignment.
6011 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
6013 * config/i386/i386.c (legitimate_pic_address_disp_p):
6014 Handle UNSPEC_PCREL.
6015 (ix86_legitimate_address_p): Likewise.
6016 (legitimize_pic_address): Likewise.
6017 (output_pic_addr_const): Likewise.
6018 (ix86_delegitimize_address): Likewise.
6019 (ix86_find_base_term): Likewise.
6020 (memory_address_length): Likewise.
6021 (x86_output_mi_thunk): Handle special case x64
6022 for non local binding.
6023 * config/i386/i386.md (UNSPEC_PCREL): New.
6024 * config/i386/winnt.c (i386_pe_binds_local_p):
6025 Allow weak symbol for x64 windows with non-local binding.
6027 2010-11-05 Jakub Jelinek <jakub@redhat.com>
6030 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
6031 instead of EXPAND_NORMAL for base expansion.
6033 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
6035 * config.gcc: Support --with-fpmath=avx for x86.
6036 * config/i386/avxmath.h: New.
6037 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
6039 2010-11-05 Ian Lance Taylor <iant@google.com>
6041 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
6042 * gengtype.c (walk_type): Don't recognize descbits option.
6044 2010-11-05 Joseph Myers <joseph@codesourcery.com>
6046 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
6047 WORD_SWITCH_TAKES_ARG): Remove.
6048 * doc/options.texi (Args): Document.
6049 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
6050 * doc/tm.texi: Regenerate.
6051 * opt-functions.awk (switch_flags): Handle Args.
6052 * opts-common.c: Update comment on tm.h include.
6053 (decode_cmdline_option): Handle options with multiple arguments.
6054 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
6055 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
6056 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6057 CL_COMMON): Update values.
6058 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
6059 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
6060 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
6061 sectobjectsymbols, sectorder, segcreate, segprot): New.
6063 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
6064 Uros Bizjak <ubizjak@gmail.com>
6066 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
6067 256bit AVX register is used.
6068 (ix86_expand_vector_move_misalign): Likewise.
6069 (ix86_expand_vector_move): Replace use_avx256_p with
6070 VALID_AVX256_REG_MODE.
6072 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
6075 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
6076 change. Set $@-warn.o to -Wno-error.
6079 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
6080 comparing it to a signed value.
6083 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
6085 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
6089 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
6090 (m32c_function_arg). Add comma between arguments two and three.
6091 (m32c_promote_prototypes): Remove declaration.
6092 (current_function_special_page_vector): Likewise.
6093 (m32c_regno_reg_class): Change return type to enum reg_class.
6094 (m32c_pushm_popm): Use add_reg_note.
6095 (m32c_push_rounding): Change return type to unsigned int.
6096 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
6098 (m32c_insert_attributes): Constify variable name.
6099 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
6100 (m32c_prepare_shift): Remove variable lref.
6101 (m32c_expand_movcc): Remove variable cmp.
6102 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
6103 (m32c_compare_redundant): Remove variable op2.
6104 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
6105 (m32c_pragma_memregs): Assign the number to target_memregs.
6106 (m32c_pragma_address): Remove variable var_str.
6107 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
6109 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
6110 * config/m32c/bitops.md (andsi3): Add default case to switch.
6111 (iorsi3, xorsi3): Likewise.
6112 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
6113 * config/m32c/jump.md (call, call_value): Likewise.
6114 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
6115 (m32c_regno_reg_class): Likewise.
6116 (current_function_special_page_vector): Declare.
6118 2010-11-05 Jakub Jelinek <jakub@redhat.com>
6120 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
6122 PR tree-optimization/46099
6123 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
6124 if it is NULL and uid wasn't found in the hash table. Just fold the
6125 result if it is NULL otherwise. Insert other potentially needed
6126 stmts right before current stmt instead of on the entry edge.
6127 (struct elv_data): Add gsi and reset fields.
6128 (eliminate_local_variables_1): Adjust caller. If take_address_of
6129 failed for debug stmt, set dta->reset and return.
6130 (eliminate_local_variables_stmt): Change STMT argument for GSI,
6131 pass GSI through to the callback, handle resetting of debug stmts.
6132 (eliminate_local_variables): Adjust caller. Process debug stmts
6136 * gimplify.c (gimplify_asm_expr): If a "m" input is a
6137 {pre,post}{in,de}crement, fail.
6140 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
6141 * tree-pretty-print.c (dump_generic_node): Likewise.
6142 (op_code_prio): Likewise.
6143 * cfgexpand.c (expand_debug_expr): Likewise.
6145 2010-11-04 Paul Koning <ni1d@arrl.net>
6147 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
6150 2010-11-04 Chao-ying Fu <fu@mips.com>
6152 * configure.ac: Test assembler support for DSP Rev1 mult.
6153 * configure: Regenerate.
6154 * config.in: Regenerate.
6155 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
6156 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
6157 (CODE_FOR_mips_multu): New define.
6158 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
6160 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
6161 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
6162 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
6163 New define_expand patterns.
6164 * config/mips/constraints.md (ka): Update the constraint to test
6165 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
6166 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
6167 mips_multu): Delete.
6168 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
6169 Change target constraint to "ka".
6170 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
6171 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
6172 Emit the accumulator destination when ISA_HAS_DSP_MULT.
6173 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
6174 Emit the accumulator destination when ISA_HAS_DSP_MULT.
6175 (<u>maddsidi4): Likewise.
6176 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
6177 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
6179 2010-11-04 Paul Koning <ni1d@arrl.net>
6181 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
6183 2010-11-04 Paul Koning <ni1d@arrl.net>
6185 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
6187 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6189 Fixed using the Objective-C 2.0 dot-syntax with class names.
6190 * c-parser.c (c_parser_next_token_starts_declspecs): In
6191 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
6192 (c_parser_next_token_starts_declaration): Same.
6193 (c_parser_postfix_expression): Parse the Objective-C 2.0
6194 dot-syntax with a class name.
6196 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
6198 * final.c (compute_alignments): Compute/free loop info all the time.
6199 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
6200 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
6201 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
6202 * config/rs6000/rs6000.c (cfgloop.h): Include.
6203 (can_override_loop_align): New.
6204 (rs6000_option_override_internal): Set it.
6205 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
6206 (rs6000_loop_align): New function.
6207 (rs6000_loop_align_max_skip): Likewise.
6209 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6212 * collect2.c (main): Print --help output to stdout. Do not
6213 exit right away, so ld --help is appended. Add empty lines
6214 to separate output suitably.
6216 2010-11-04 Jakub Jelinek <jakub@redhat.com>
6218 PR tree-optimization/46233
6219 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
6220 after calling analyze_function, not before.
6223 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
6224 instead of build_va_arg_indirect_ref.
6225 * config/spu/spu.c (spu_va_start): Likewise.
6226 * config/s390/s390.c (s390_va_start): Likewise.
6228 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
6231 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
6232 if the innermode is not vector mode, determine the mode of a subreg
6233 by using mode_for_size of inner_size.
6235 2010-11-04 Richard Guenther <rguenther@suse.de>
6237 PR rtl-optimization/46183
6238 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
6239 (execute_rtl_pre): Likewise.
6240 (execute_rtl_hoist): Likewise.
6242 2010-11-04 Richard Guenther <rguenther@suse.de>
6244 PR tree-optimization/46068
6245 * ipa-split.c (consider_split): Remove gcc_unreachable.
6247 2010-11-04 Richard Guenther <rguenther@suse.de>
6249 * tree-nested.c (build_addr): Use build_fold_addr_expr.
6251 2010-11-04 Richard Guenther <rguenther@suse.de>
6253 PR tree-optimization/45991
6254 * gimplify.c (force_gimple_operand_1): Use the provded test
6255 function in the initial test.
6257 2010-11-04 Jeff Law <law@redhat.com>
6259 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
6260 of readonly memory equivalances for const/pure calls.
6262 2010-11-04 Richard Guenther <rguenther@suse.de>
6264 PR tree-optimization/45733
6265 * tree-vect-stmts.c (reverse_vec_elements): Honor the
6266 permute builtins function return type.
6268 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
6271 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
6272 as an index, check it is not INVALID_REGNUM.
6275 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
6277 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
6280 * function.c (thread_prologue_and_epilogue_insns): Add
6281 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
6284 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
6287 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
6288 (pdp11_preferred_reload_class): Rename class to rclass.
6289 (pdp11_preferred_output_reload_class): Likewise.
6290 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
6292 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
6295 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
6296 iteration variables to enum machine_mode.
6299 * config/h8300/h8300.c: Include df.h.
6300 (push, pop): Use add_reg_note.
6301 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
6302 (compute_a_shift_cc): Likewise.
6303 (expand_a_shift): Argument code has type enum rtx_code.
6304 (struct shift_insn): Member cc_valid has type enum attr_cc.
6305 (struct shift_info) <cc_inline, cc_special>: Likewise.
6307 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
6308 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
6310 2010-11-04 Ira Rosen <irar@il.ibm.com>
6312 PR tree-optimization/46213
6313 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
6314 MINUS_EXPR only if the first operand is reduction operand.
6316 2010-11-04 Richard Guenther <rguenther@suse.de>
6317 Richard Henderson <rth@redhat.com>
6319 * tree.def (FMA_EXPR): New tree code.
6320 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
6321 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
6322 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
6323 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
6324 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6325 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
6326 (execute_optimize_widening_mul): Call it. Reorganize to allow
6327 dead stmt removal. Move TODO flags ...
6328 (pass_optimize_widening_mul): ... here.
6329 * flag-types.h (enum fp_contract_mode): New enum.
6330 * common.opt (flag_fp_contract_mode): New variable.
6331 (-ffp-contract): New option.
6332 * opts.c (common_handle_option): Handle it.
6333 * doc/invoke.texi (-ffp-contract): Document.
6334 * tree.h (fold_fma): Declare.
6335 * builtins.c (fold_fma): New function.
6336 (fold_builtin_fma): Likewise.
6337 (fold_builtin_3): Call it for fma.
6338 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
6339 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
6340 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
6342 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
6344 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
6345 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
6346 (fms_optab, fnma_optab, fnms_optab): New defines.
6347 * gimplify.c (gimplify_expr): Handle binary truth expressions
6348 explicitly. Handle FMA_EXPR.
6349 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
6352 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6353 Richard Guenther <rguenther@suse.de>
6355 * passes.c (init_optimization_passes): Move veclower after SSA.
6356 * tree-vect-generic.c (uniform_vector_p): New function.
6357 (expand_vector_operations_1): Handle conversion.
6358 (pass_lower_vector): Update SSA form.
6360 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
6362 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
6363 plugin capabilities.
6364 * configure: Regenerate.
6366 2010-11-03 Xinliang David Li <davidxl@google.com>
6369 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
6370 Adjust cbase if the use stmt is after iv update.
6372 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
6374 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
6376 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
6378 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
6379 comment. Pass true to the last argument of output_stack_adjust.
6381 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6384 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
6385 if 256bit AVX register is used.
6387 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6389 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
6390 xsmindp/xsmaxdp on VSX for single precision min/max.
6391 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
6392 (vsx_sminsf3): Ditto.
6394 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
6396 * combine.c (try_combine): Fix formatting issues, improve comments and
6399 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
6401 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
6402 of the result before building binary expressions.
6404 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6406 PR rtl-optimization/45865
6407 * Makefile.in (df-problems.o): Revert revision 164552.
6408 * basic-block.h (enum bb_flags): Likewise.
6409 * cfgcleanup.c (block_was_dirty): Likewise.
6410 (try_forward_edges): Likewise.
6411 (try_crossjump_bb): Likewise.
6412 (try_head_merge_bb): Likewise.
6413 (try_optimize_cfg): Likewise.
6414 (cleanup_cfg): Likewise.
6415 * df-core.c (df_set_bb_dirty): Likewise.
6416 * df-problems.c: Likewise.
6417 (df_simulate_find_uses): Likewise.
6418 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
6419 (find_memory, find_memory_store): Likewise.
6420 (can_move_insns_across): Likewise.
6421 * df.h (can_move_insns_across): Likewise.
6422 * ifcvt.c (find_memory): Likewise.
6423 (dead_or_predicable): Likewise.
6425 2010-11-03 Richard Guenther <rguenther@suse.de>
6428 * predict.c (strip_predict_hints): Simply DCE builtin expect if
6429 the result is unused.
6431 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6433 PR tree-optimization/46009
6434 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
6435 cond_if_else_store_replacement if bb1 and bb2 have the same
6437 (cond_store_replacement): Use gimple_assign_single_p, don't
6438 check if rhs is SSA_NAME or invariant. Call release_defs for
6440 (cond_if_else_store_replacement): New function.
6442 2010-11-03 Richard Guenther <rguenther@suse.de>
6444 * opts.c (finish_options): Properly check for all WHOPR
6445 flags before complaining about -flto-partition.
6447 2010-11-04 Alan Modra <amodra@gmail.com>
6449 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
6450 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
6452 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
6453 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
6454 on input, "r" on output.
6456 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6458 Implemented -fobjc-std=objc1 flag.
6459 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
6461 * doc/standards.texi (Standards): Updated the section on
6462 Objective-C; mention support for Objective-C 2.0 features and the
6463 new -fstd-objc=objc1 flag to disable them.
6465 2010-11-03 Richard Guenther <rguenther@suse.de>
6468 * dwarf2out.c (scope_die_for): Properly detect global scope.
6470 2010-11-03 Richard Guenther <rguenther@suse.de>
6472 PR tree-optimization/46190
6473 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6474 Properly compute peel iterations.
6476 2010-11-03 Richard Guenther <rguenther@suse.de>
6478 PR tree-optimization/46286
6479 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
6480 re-allocated vector data.
6482 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6485 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
6486 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
6489 2010-11-03 Richard Guenther <rguenther@suse.de>
6491 PR tree-optimization/46217
6492 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
6494 (execute_update_addresses_taken): Likewise.
6496 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
6499 * targhooks.c (targhook_words_big_endian): New function.
6500 (targhook_float_words_big_endian): Likewise.
6501 * targhooks.h (targhook_words_big_endian): Declare.
6502 (targhook_float_words_big_endian): Likewise.
6503 * target.def (words_big_endian, float_words_big_endian): New hooks.
6505 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6507 PR tree-optimization/46165
6508 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
6509 a normal call into noreturn call.
6511 2010-11-03 Richard Guenther <rguenther@suse.de>
6514 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
6517 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6519 PR tree-optimization/46107
6520 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
6521 if cfg_hook_duplicate_loop_to_header_edge failed.
6523 2010-11-03 Ian Lance Taylor <iant@google.com>
6526 * config.gcc: Don't set lto_binary_reader.
6527 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
6528 (Configuration): Mention --disable-lto. Remove --with-libelf
6531 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6534 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
6536 * gcse.c (insert_insn_end_basic_block): Likewise.
6538 PR rtl-optimization/46034
6539 PR rtl-optimization/46212
6540 PR rtl-optimization/46248
6541 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
6542 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
6543 before i0dest -> i0src substitution and pass 1 instead of 0 as last
6544 argument to subst on i2pat.
6546 2010-11-02 Ian Lance Taylor <iant@google.com>
6548 * configure.ac: Use AC_SYS_LARGEFILE.
6549 * configure: Rebuild.
6550 * config.in: Rebuild.
6552 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
6554 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
6556 * c-typeck.c (build_function_call_vec): Likewise.
6557 * cfgexpand.c (expand_debug_expr): Likewise.
6558 * cgraphunit.c (assemble_thunk): Likewise.
6559 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
6560 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
6561 (fold_binary_loc, fold_ternary_loc): Likewise.
6562 * gimple-fold.c (get_symbol_constant_value): Likewise.
6563 * gimple-low.c (lower_builtin_setjmp): Likewise.
6564 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
6565 * gimplify.c (gimplify_init_constructor): Likewise.
6566 * lambda.h (build_linear_expr): Likewise.
6567 * omp-low.c (omp_reduction_init): Likewise.
6568 * tree-inline.c (remap_ssa_name): Likewise.
6569 * tree-object-size.c (compute_object_sizes): Likewise.
6570 * tree-sra.c (init_subtree_with_zero): Likewise.
6571 (sra_ipa_modify_assign): Likewise.
6572 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
6573 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
6574 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
6575 (undistribute_ops_list): Likewise.
6576 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
6577 * tree-vect-stmts.c (vectorizable_call): Likewise.
6578 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
6579 (build_zero_cst): Handle more cases directly. Update comment.
6581 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
6583 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
6584 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
6586 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
6587 and call ix86_split_call_vzeroupper instead of
6588 ix86_split_call_pop_vzeroupper.
6589 (*call_pop_1_vzeroupper): Likewise.
6590 (*sibcall_pop_1_vzeroupper): Likewise.
6591 (*call_value_pop_0_vzeroupper): Likewise.
6592 (*call_value_pop_1_vzeroupper): Likewise.
6593 (*sibcall_value_pop_1_vzeroupper): Likewise.
6595 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
6597 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
6599 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
6601 * basic-block.h (insert_insn_end_bb_new): Delete.
6602 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
6604 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
6605 H.J. Lu <hongjiu.lu@intel.com>
6607 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
6608 (ix86_split_call_pop_vzeroupper): Likewise.
6610 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
6611 (ix86_expand_call): Conditionally decorate calls with
6612 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
6613 (ix86_split_call_vzeroupper): New.
6614 (ix86_split_call_pop_vzeroupper): Likewise.
6616 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
6617 (*call_pop_0_vzeroupper): New insn_and_split pattern.
6618 (*call_pop_1_vzeroupper): Likewise.
6619 (*sibcall_pop_1_vzeroupper): Likewise.
6620 (*call_0_vzeroupper): Likewise.
6621 (*call_1_vzeroupper): Likewise.
6622 (*sibcall_1_vzeroupper): Likewise.
6623 (*call_1_rex64_vzeroupper): Likewise.
6624 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
6625 (*call_1_rex64_large_vzeroupper): Likewise.
6626 (*sibcall_1_rex64_vzeroupper): Likewise.
6627 (*call_value_pop_0_vzeroupper): Likewise.
6628 (*call_value_pop_1_vzeroupper): Likewise.
6629 (*sibcall_value_pop_1_vzeroupper): Likewise.
6630 (*call_value_0_vzeroupper): Likewise.
6631 (*call_value_0_rex64_vzeroupper): Likewise.
6632 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
6633 (*call_value_1_vzeroupper): Likewise.
6634 (*sibcall_value_1_vzeroupper): Likewise.
6635 (*call_value_1_rex64_vzeroupper): Likewise.
6636 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
6637 (*call_value_1_rex64_large_vzeroupper): Likewise.
6638 (*sibcall_value_1_rex64_vzeroupper): Likewise.
6640 2010-11-02 Ian Lance Taylor <iant@google.com>
6643 * config.gcc: Revert last patch: set lto_binary_reader.
6645 2010-11-02 Richard Guenther <rguenther@suse.de>
6647 PR tree-optimization/46149
6648 * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
6649 non-indirect MEM_REF variants.
6651 2010-11-02 Richard Guenther <rguenther@suse.de>
6653 PR tree-optimization/46216
6654 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6655 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
6657 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6659 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
6660 (*-*-osf*): Likewise.
6661 * configure: Regenerate.
6663 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
6665 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
6666 for Intel Core 2 and Core i7.
6668 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
6670 Model decoder of Core 2/i7 for multipass scheduling.
6672 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
6673 New type to hold target-specific data for multipass scheduling.
6674 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
6675 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
6677 (core2i7_secondary_decoder_max_insn_size,)
6678 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
6679 New static variables.
6680 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
6681 ([_]ix86_first_cycle_multipass_data): New static variable.
6682 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
6683 Implement targetm.sched hooks.
6684 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
6686 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
6687 Implement new targetm.sched hooks.
6688 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
6689 targetm.sched hook to install multipass scheduling hooks on demand.
6691 * doc/tm.texi.in: Document new targetm.sched hooks.
6692 * doc/tm.texi: Regenerate.
6694 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
6695 (first_cycle_multipass_data_t): New typedef.
6696 (struct choice_entry: target_data): New field.
6697 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
6698 to allow target model restrictions not represented in DFA.
6699 (choose_ready, schedule_block): Update.
6700 (sched_extend_ready_list, sched_finish_ready_list): Call new target
6701 hooks to initialize target-specific data for multipass scheduling.
6702 * sched-int.h (max_issue): Update declaration.
6703 * sel-sched.c (choose_best_insn): Update.
6704 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
6705 (first_cycle_multipass_{init, fini}): Define and document new
6706 targetm.sched hooks.
6708 2010-11-02 Richard Guenther <rguenther@suse.de>
6710 PR tree-optimization/46184
6711 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
6712 input vector type from the reduction operand as well.
6714 2010-11-02 Richard Guenther <rguenther@suse.de>
6716 PR tree-optimization/46177
6717 * tree-loop-distribution.c (prop_phis): Use
6718 mark_virtual_phi_result_for_renaming.
6720 2010-11-02 Martin Jambor <mjambor@suse.cz>
6723 * tree.c (get_binfo_at_offset): Bail out on artificial
6724 fields. Identify primary bases according to their offsets.
6726 2010-11-02 Martin Jambor <mjambor@suse.cz>
6728 PR tree-optimization/45875
6729 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
6730 (gimple_get_relevant_ref_binfo): Detect primary bases according to
6733 2010-11-02 Ian Lance Taylor <iant@google.com>
6735 * doc/install.texi (Configuration): Note in two places that Java
6736 is not enabled by default.
6738 2010-11-02 Ian Lance Taylor <iant@google.com>
6740 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
6741 (Configuration): Mention --disable-lto. Remove --with-libelf
6744 2010-11-02 Ian Lance Taylor <iant@google.com>
6746 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
6747 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
6748 LIBELFINC. Remove HAVE_libelf.
6749 * config.gcc: Don't set lto_binary_reader.
6750 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
6751 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
6752 (LIBS): Remove $(LIBELFLIBS).
6753 (INCLUDES): Remove $(LIBELFINC).
6754 * configure: Rebuild.
6755 * config.in: Rebuild.
6757 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
6759 * config/microblaze/microblaze-protos.h (function_arg): Delete.
6760 (function_arg_advance): Delete.
6761 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
6762 (FUNCTION_ARG): Delete.
6763 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
6764 (microblaze_function_arg_advance): ...this. Make static. Take a
6765 const_tree and a bool.
6766 (function-arg): Rename to...
6767 (microblaze_function_arg): ...this. Make static. Take a const_tree
6769 (microblaze_expand_prologue): Call targetm.calls.function_arg and
6770 targetm.calls.function_arg_advance.
6771 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6773 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6775 Merge from FSF "apple/trunk" branch.
6777 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
6778 * config/darwin.opt: .. to here.
6779 (matt-stubs): New option.
6780 * config/i386/darwin.opt: Delete.
6781 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
6782 (MACHO_DYNAMIC_NO_PIC_P): New.
6783 (MACHOPIC_INDIRECT): New.
6784 (MACHOPIC_PURE): New.
6785 * config/i386/darwin.h (DARWIN_X86) Define to 1.
6786 (MACHOPIC_ATT_STUB): New.
6787 (CC1_SPEC): Do not remove mdynamic-no-pic.
6788 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6789 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6790 (FUNCTION_PROFILER): Correct over-length line.
6791 (SUBTARGET_OVERRIDE_OPTIONS): New.
6792 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6793 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
6794 (legitimate_constant_p): Handle mdynamic-no-pic.
6795 (ix86_legitimate_address_p): Likewise.
6796 (ix86_legitimize_address): Likewise.
6797 (ix86_expand_move): Likewise.
6798 (machopic_output_stub): Update for ATT-style stubs and
6800 * config/darwin-protos.h (machopic_symbol_defined_p): New.
6801 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
6802 TARGET_DYNAMIC_NO_PIC: Remove.
6803 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6804 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6805 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
6806 Remove handling of mdynamic-no-pic.
6807 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
6809 (machopic_symbol_defined_p): Do not try to use current_function_decl
6810 when generating _get_pc thunks within stubs.
6811 (machopic_indirect_data_reference): Rework for direct conditionals
6812 rather than #ifdefs, add x86 mdynamic-no-pic
6813 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
6815 (darwin_override_options): Handle mdynamic-no-pic here.
6816 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
6817 (machopic_lazy_symbol_ptr3_section): New.
6818 (machopic_picsymbol_stub2_section): New.
6819 (machopic_picsymbol_stub3_section): New.
6820 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
6821 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6822 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6823 Moved common definition from x86 and rs6000.
6824 (MACHO_DYNAMIC_NO_PIC_P): Override value.
6825 (MACHOPIC_INDIRECT): Likewise.
6826 (MACHOPIC_PURE): Likewise.
6827 * config.gcc (x86-darwin-*): Remove darwin.opt.
6829 2010-11-02 Jakub Jelinek <jakub@redhat.com>
6832 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
6833 instead of gsi_last_bb.
6835 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6836 Maxim Kuvyrkov <maxim@codesourcery.com>
6838 * config/i386/i386.c (cpu_names): Add "corei7".
6839 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
6841 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6842 Maxim Kuvyrkov <maxim@codesourcery.com>
6844 Tune alignment for Intel Core i7
6846 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
6847 (enum processor_type): Update comment. Add entries for Core i7.
6848 * config/i386-c.c (ix86_target_macros_internal): Update.
6849 * config/i386.c (m_COREI7{_32,_64}): New macros.
6850 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
6851 (processor_target_table): Tune alignment for Core i7.
6852 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
6854 * doc/invoke.texi: Document "corei7" option value.
6856 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6857 Maxim Kuvyrkov <maxim@codesourcery.com>
6858 H.J. Lu <hjl.tools@gmail.com>
6860 Basic support for Intel Core i7
6862 * i386.c (ix86_option_override_internal): Add entry for corei7, use
6863 generic tuning. Use generic32 when compiling for 32-bit ABI.
6865 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6867 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
6868 sections and call darwin_asm_dwarf_section() to handle them.
6869 (darwin_asm_dwarf_section): New.
6870 (darwin_file_start): Remove code emitting dwarf section symbols.
6872 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
6874 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
6875 explicitly disable stack protection when building libgcc.
6876 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
6878 2010-11-01 Jason Merrill <jason@redhat.com>
6880 * fold-const.c (fold_indirect_ref_1): Handle folding
6881 POINTER_PLUS_EXPR to ARRAY_REF.
6883 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
6885 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6886 (sh_delegitimize_address): New function.
6888 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6890 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
6891 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
6892 (CC1_SPEC): Don't handle -target.
6893 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
6895 * config/darwin.opt (Zallowable_client, Zbundle_loader,
6896 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
6897 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
6898 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
6899 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
6900 Zweak_reference_mismatches, client_name, compatibility_version,
6901 current_version, dylinker_install_name, pagezero_size,
6902 read_only_relocs, seg1addr, segs_read_only_addr,
6903 segs_read_write_addr, sub_library, sub_umbrella): New.
6904 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
6905 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
6906 * config/freebsd.opt: New.
6907 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
6908 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
6909 * config/rpath.opt: New.
6910 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
6911 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
6914 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6916 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
6917 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
6918 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
6919 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
6920 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
6921 Document that options in .opt files do not need to be included.
6922 * doc/tm.texi: Regenerate.
6923 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
6924 * opts-common.c: Update comment on tm.h include.
6925 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
6926 * system.h (SWITCH_TAKES_ARG): Poison.
6927 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
6928 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
6930 (LINK_COMMAND_SPEC_A): Don't include %{x}.
6931 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6932 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
6933 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
6934 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6935 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
6936 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
6937 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
6938 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
6939 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6940 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
6941 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
6942 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
6943 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
6944 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
6945 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
6946 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
6947 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
6948 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
6949 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
6950 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
6951 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
6952 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
6953 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6955 2010-11-01 Paul Koning <ni1d@arrl.net>
6957 * config/pdp11/pdp11.md: Use iterators.
6958 (addqi3, subqi3, iorsi3, xorsi3): Delete.
6960 2010-11-01 Steve Ellcey <sje@cup.hp.com>
6962 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
6964 * libgcov.c (__gcov_indirect_call_profiler): Set
6965 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
6966 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
6968 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
6970 PR tree-optimization/46259
6973 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6974 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
6975 build_vector_from_val.
6977 2010-11-01 DJ Delorie <dj@redhat.com>
6979 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
6980 as well as an assertion.
6982 2010-11-01 Paul Koning <ni1d@arrl.net>
6984 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
6985 complex modes in memory.
6987 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
6989 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
6991 2010-11-01 Jakub Jelinek <jakub@redhat.com>
6994 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
6995 (cfa_base_offset): New variable.
6996 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
6997 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
6999 (vt_init_cfa_base): Initialize cfa_base_offset.
7001 2010-11-01 Alan Modra <amodra@gmail.com>
7004 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
7005 and savres_strategy.
7006 (stack_info): New file scope var.
7007 (rs6000_init_machine_status): Init stack_info.
7008 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
7009 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
7010 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
7011 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
7012 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
7013 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
7014 (rs6000_savres_strategy): Rewrite.
7015 (rs6000_stack_info): Use "stack_info" in place of local "info".
7016 Return cached stack info when reload_completed unless ENABLE_CHECKING
7017 in which case confirm newly calculated stack info matches old info.
7018 Delay calculation of lr_save_p, set it for out of line gp save/restore
7019 as well as fp. Call rs6000_savres_strategy from here..
7020 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
7021 (rs6000_output_function_prologue): Use info->savres_strategy to
7022 determine whether fp save/restore externs need to be emitted.
7024 2010-10-31 Jason Merrill <jason@redhat.com>
7026 * tree.h (EXPR_LOC_OR_HERE): New macro.
7027 * builtins.c (c_strlen): Use it.
7028 * c-decl.c (build_enumerator): Likewise.
7029 * gimplify.c (internal_get_tmp_var): Likewise.
7030 (shortcut_cond_expr): Likewise.
7031 (gimplify_one_sizepos): Likewise.
7033 2010-10-31 Richard Henderson <rth@redhat.com>
7035 * config/i386/cygming.h (TARGET_SEH): New.
7036 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
7037 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
7038 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
7039 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
7040 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
7041 (ASM_DECLARE_FUNCTION_SIZE): New.
7042 * config/i386/i386-protos.h: Update.
7043 * config/i386/i386.c (ix86_option_override_internal): Enable
7044 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
7045 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
7046 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
7047 (ix86_compute_frame_layout): For SEH, disable
7048 use_fast_prologue_epilogue, move frame pointer to the end of
7049 the frame. Initialize hfp_save_offset.
7050 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
7051 at end of prologue for SEH.
7052 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
7053 emit blockage at beginning of epilogue.
7054 (ix86_expand_binary_operator): After reload, emit LEA if needed.
7055 (ix86_output_call_insn): New.
7056 * config/i386/i386.h (TARGET_SEH): New.
7057 (struct machine_function): Add member seh.
7058 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
7059 * config/i386/winnt.c (struct seh_frame_state): New.
7060 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
7061 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
7062 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
7063 i386_pe_start_function, i386_pe_end_function): New.
7065 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
7066 as CFA_STORE in rules 12 and 13.
7068 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
7070 PR tree-optimization/46142
7071 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
7072 accommodate third function argument.
7074 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7076 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
7078 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7080 * fold-const.c (build_zero_vector): Use build_vector_from_val.
7081 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7082 (get_initial_def_for_reduction): Likewise.
7083 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7084 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
7085 * tree.c (build_one_cst): Likewise.
7086 (build_vector_from_val): Use types_compatible_p for assert.
7088 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7090 * emit-rtl.c (mark_used_flags): New function.
7091 (set_used_flags, reset_used_flags): Call it.
7093 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
7096 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
7097 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
7099 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
7102 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
7103 (ix86_compat_aligned_value_p): This.
7104 (ix86_old_function_arg_boundary): Renamed to ...
7105 (ix86_compat_function_arg_boundary): This. Updated.
7106 (ix86_contains_aligned_value_p): New.
7107 (ix86_function_arg_boundary): Align long double parameters on
7108 stack to 4byte in 32bit.
7110 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7112 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7113 * c-parser.c (c_parser_objc_at_property_declaration): Removed
7114 parsing of RID_COPIES and RID_IVAR. Updated call to
7115 objc_add_property_declaration.
7116 * c-typecheck.c (build_component_ref): Call
7117 objc_maybe_build_component_ref instead of objc_build_setter_call.
7118 Use objc_is_property_ref to improve Objective-C checks.
7119 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
7120 of objc_build_getter_call.
7122 2010-10-29 Paul Koning <ni1d@arrl.net>
7124 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
7125 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
7126 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
7127 (REG_OK_STRICT): Move description.
7129 2010-10-29 Paul Koning <ni1d@arrl.net>
7131 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
7133 2010-10-29 Paul Koning <ni1d@arrl.net>
7135 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
7137 2010-10-29 Paul Koning <ni1d@arrl.net>
7140 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
7142 2010-10-29 Richard Henderson <rth@redhat.com>
7145 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
7148 2010-10-29 Paul Koning <ni1d@arrl.net>
7150 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
7151 register to register move.
7153 2010-10-29 Paul Koning <ni1d@arrl.net>
7155 * config/pdp11/pdp11.c (print_operand_address): Correct handling
7156 of integer constant addresses, delete vax-only logic.
7158 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
7160 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
7161 a conditional expression.
7163 2010-10-29 Paul Koning <ni1d@arrl.net>
7165 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
7166 instruction encoding.
7168 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7169 Andrew Pinski <pinskia@gmail.com>
7171 * tree.h (build_vector_from_val): Declare.
7172 * tree.c (build_vector_from_val): New function.
7173 * c-typeck.c (build_binary_op): Handle vector shifting.
7174 * doc/extend.texi: Description of the vector shifting operation.
7176 2010-10-29 Paul Koning <pkoning@equallogic.com>
7178 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
7179 pdp11_secondary_memory_needed): Declare.
7180 * config/pdp11/predicates.md (float_operand): New predicate.
7181 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
7182 (cbranchdf4, movdf): Change predicate.
7183 (movsf): Handle FPU register case.
7184 (truncdfsf2, extendsfdf2): Add FPU register case.
7185 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
7186 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
7187 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7188 (pdp11_register_move_cost): Update cost matrix.
7189 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
7190 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
7191 pdp11_secondary_memory_needed): New function.
7192 (pdp11_return_in_memory): Add other float types.
7193 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
7194 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
7195 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
7196 REGISTER_MOVE_COST): Delete.
7197 (BASE_RETURN_VALUE_REG): Add other float types.
7199 2010-10-29 Nick Clifton <nickc@redhat.com>
7201 * doc/invoke.texi: Document -mam34 and -mtune options.
7202 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
7203 (mn10300_tune_cpu): New variable.
7204 (mn10300_handle_option): Handle -mam34 and -mtune options.
7205 (mn10300_option_override): Convert tune string into tune cpu variable.
7206 (mn10300_legitimate_constant_p): Delete unused local variable.
7207 (is_load_insn): New function.
7208 (is_store_insn): New function.
7209 (mn10300_adjust_schedule_cost): New function.
7210 (TARGET_SCHED_ADJUST_COST): Define.
7211 * config/mn10300/mn10300.opt (mam34): New option.
7212 (mtune): New option.
7213 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
7214 (enum processor_type): Add AM34.
7215 (TARGET_AM34): Define.
7216 * config/mn10300/mn10300.md (attr cpu): Add am34.
7217 Add pipeline description.
7218 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
7219 Remove unneeded alternatives. Add timing attribute.
7220 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
7221 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
7222 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
7223 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
7224 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
7225 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
7226 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
7227 float_conditional_branch, jump, indirect_jump, tablejump,
7228 call_internal, call_value_internal, zero_extendqisi2_am33,
7229 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
7230 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
7231 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
7232 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
7233 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
7234 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
7235 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
7236 return_internal_regs, store_movm, return, call_next_insn):
7237 Add timing attribute.
7238 (am33_subsi3): Add missing clobber of CC_REG.
7239 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
7240 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
7241 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
7242 extendqisi2): Fix predicates.
7243 (call_internal, call_internal_value): Separate alternatives.
7244 * config/mn10300/t-mn10300: Add AM34 multilib.
7246 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
7248 * config/sh/sh.c (sh_promote_function_mode): Use
7249 default_promote_function_mode if !sh_promote_prototypes.
7251 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
7253 * recog.c (split_all_insns): Remove dead code.
7255 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7257 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7259 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7261 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
7262 (FUNCTION_ARG_ADVANCE): Delete.
7263 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
7265 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
7266 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7267 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7269 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7271 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
7272 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7273 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
7274 Take a const_tree and a bool.
7275 (mcore_function_arg_advance): New function.
7276 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7278 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7280 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
7281 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7282 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
7283 Take a const_tree and a bool.
7284 (mcore_function_arg_advance): New function.
7285 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7287 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7289 * config/h8300/h8300-protos.h (function_arg): Delete.
7290 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7291 * config/h8300/h8300.c (function_arg): Rename to...
7292 (h8300_function_arg): ...this. Make static. Take a const_tree and
7294 (h8300_function_arg_advance): New function.
7295 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7297 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7299 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
7301 * config/arc/arc.c (arc_function_arg): ...here and...
7302 (arc_function_arg_advance): ...here. New functions.
7303 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7305 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7307 * config/crx/crx-protos.h (crx_function_arg): Delete.
7308 (crx_function_arg_advance): Delete.
7309 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7310 * config/crx/crx.c (crx_function_arg): Make static. Take a
7311 const_tree and a bool.
7312 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
7313 (enough_regs_for_param): Take a const_tree.
7314 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7316 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7318 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
7319 (m68hc11_function_arg_advance): Delete.
7320 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
7321 (FUNCTION_ARG_ADVANCE): Delete.
7322 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
7323 Take a const_tree and a bool.
7324 (m68hc11_function_arg_advance): Likewise.
7325 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7327 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7329 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
7330 (xstormy16_function_arg_advance): Delete.
7331 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
7332 (FUNCTION_ARG_ADVANCE): Delete.
7333 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
7334 Take a const_tree and a bool.
7335 (xstormy16_function_arg_advance): Likewise. Return void, updating
7336 the CUM parameter instead.
7337 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7339 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7341 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
7342 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7343 (MOXIE_FUNCTION_ARG_SIZE): Move to...
7344 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
7345 (moxie_function_arg): Make static. Take a const_tree and a bool.
7346 (moxie_function_arg_advance): New function.
7347 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7349 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7351 * config/mn10300/mn10300-protos.h (function_arg): Delete.
7352 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
7353 (FUNCTION_ARG_ADVANCE): Delete.
7354 * config/mn10300/mn10300.c (function_arg): Rename to...
7355 (mn10300_function_arg): ...this. Make static. Take a const_tree
7357 (mn10300_function_arg_advance): New function.
7358 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7360 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7362 * config/iq2000/iq2000-protos.h (function_arg): Delete.
7363 (function_arg_advance): Delete.
7364 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7365 * config/iq2000/iq2000.c (function_arg): Rename to...
7366 (iq2000_function_arg): ...this. Make static. Take a const_tree and
7368 (function_arg_advance): Rename to...
7369 (iq2000_function_arg_advance): ...this. Make static. Take a
7370 const_tree and a bool.
7371 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
7372 iq2000_function_arg.
7373 (iq2000_pass_by_reference): Call iq2000_function_arg).
7374 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7376 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7378 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
7379 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7380 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
7382 (fr30_function_arg): New function.
7383 (fr30_function_arg_advance): New function.
7384 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7386 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7388 * config/frv/frv-protos.h (frv_function_arg): Delete.
7389 (frv_function_arg_advance): Delete.
7390 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7391 * config/frv/frv.c (frv_function_arg): Rename to...
7392 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
7393 (frv_function_arg, frv_function_incoming_arg): New functions.
7394 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
7395 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7396 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7398 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
7401 * config/i386/sse.md (sse_movhlps_exp): Use destination
7402 returned from ix86_fixup_binary_operands to expand insn.
7403 (sse_movlhps_exp): Ditto.
7404 (sse_loadhps_exp): Ditto.
7405 (sse_loadlps_exp): Ditto.
7406 (sse2_loadhpd_exp): Ditto.
7407 (sse2_loadlpd_exp): Ditto.
7409 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
7411 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
7412 constants in thumb2.
7414 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
7416 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
7417 arithmetics in masking operations.
7418 (contains_muldiv): Likewise.
7419 (try_combine): Likewise.
7420 (find_split_point): Likewise.
7421 (combine_simplify_rtx): Likewise.
7422 (simplify_if_then_else): Likewise.
7423 (simplify_set): Likewise.
7424 (expand_compound_operation): Likewise.
7425 (expand_field_assignment): Likewise.
7426 (make_extraction): Likewise.
7427 (extract_left_shift): Likewise.
7428 (make_compound_operation): Likewise.
7429 (force_to_mode): Likewise.
7430 (make_field_assignment): Likewise.
7431 (reg_nonzero_bits_for_combine): Likewise.
7432 (simplify_shift_const_1): Likewise.
7433 (simplify_comparison): Likewise.
7435 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
7437 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
7438 (ia64_function_arg_advance): Delete.
7439 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
7440 (FUNCTION_ARG_ADVANCE): Delete.
7441 * config/ia64/ia64.c (ia64_function_arg): Rename to...
7442 (ia64_function_arg_1): ...this. Make static. Take const_tree and
7444 (ia64_function_arg, ia64_function_incoming_arg): New functions.
7445 (ia64_function_arg_advance): Make static. Take a const_tree and
7447 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7448 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7450 2010-10-27 Steve Ellcey <sje@cup.hp.com>
7452 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
7453 (TARGET_GET_RAW_ARG_MODE): New.
7454 * doc/tm.texi: Regenerate.
7455 * target.def (get_raw_result_mode): New.
7456 (get_raw_arg_mode): New.
7457 * targhooks.c (default_get_reg_raw_mode): New.
7458 * targhooks.h (default_get_reg_raw_mode): New.
7459 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
7460 (apply_result_size): Ditto.
7461 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
7462 (TARGET_GET_RAW_RESULT_MODE): Define.
7463 (TARGET_GET_RAW_ARG_MODE): Ditto.
7465 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
7467 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
7468 for newer Solaris 10 release.
7469 (sparc_fallback_frame_state): Likewise.
7471 2010-10-27 Jason Merrill <jason@redhat.com>
7473 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
7476 2010-10-27 Jie Zhang <jie@codesourcery.com>
7477 Maxim Kuvyrkov <maxim@codesourcery.com>
7479 * haifa-sched.c (ISSUE_POINTS): Remove.
7480 (max_issue): Don't issue more than issue_rate instructions.
7482 2010-10-27 Ian Lance Taylor <iant@google.com>
7485 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
7486 (split_stack_return): Replace UNSPEC_STACK_CHECK with
7487 UNSPECV_SPLIT_STACK_RETURN.
7489 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
7491 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
7493 * config/i386/i386.c (block_info): New.
7494 (BLOCK_INFO): Likewise.
7495 (call_avx256_state): Likewise.
7496 (check_avx256_stores): Likewise.
7497 (move_or_delete_vzeroupper_2): Likewise.
7498 (move_or_delete_vzeroupper_1): Likewise.
7499 (move_or_delete_vzeroupper): Likewise.
7500 (use_avx256_p): Likewise.
7501 (function_pass_avx256_p): Likewise.
7502 (flag_opts): Add -mvzeroupper.
7503 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
7504 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
7506 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
7507 generate vzeroupper.
7508 (init_cumulative_args): Add an int to indicate caller. Set
7509 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
7510 based on return type.
7511 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
7512 caller_pass_avx256_p based on argument type.
7513 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
7514 is used, but not returned by caller.
7515 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
7516 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
7518 (ix86_minimum_alignment): Likewise.
7519 (ix86_expand_special_args_builtin): Set target to
7520 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
7521 (ix86_reorg): Run the vzeroupper optimization if needed.
7523 * config/i386/i386.h (ix86_args): Add caller.
7524 (INIT_CUMULATIVE_ARGS): Updated.
7525 (machine_function): Add use_vzeroupper_p, use_avx256_p,
7526 caller_pass_avx256_p, caller_return_avx256_p,
7527 callee_pass_avx256_p and callee_return_avx256_p.
7529 * config/i386/i386.opt (-mvzeroupper): New.
7531 * config/i386/predicates.md (vzeroupper_operation): Removed.
7533 * config/i386/sse.md (avx_vzeroupper): Removed.
7534 (*avx_vzeroupper): Removed.
7535 (avx_vzeroupper): New.
7537 * doc/invoke.texi: Document -mvzeroupper.
7539 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
7541 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
7542 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
7543 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
7545 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
7546 Olivier Hainque <hainque@adacore.com>
7548 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
7549 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
7550 fs->signal_frame instead.
7552 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7554 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
7555 parsing of RID_COPIES and RID_IVAR.
7557 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7559 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
7560 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
7561 Do not use objc_set_property_attr, but use local variables
7562 instead. Detect repeated usage of setter, getter and ivar
7563 attributes. Improved error processing when a setter name does not
7564 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
7565 that the token is a keyword. Updated call to
7566 objc_add_property_declaration.
7568 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7570 * c-parser.c (c_parser_objc_at_property): Renamed to
7571 c_parser_objc_at_property_declaration. Updated calls to
7572 objc_add_property_variable, now objc_add_property_declaration.
7573 Code rewritten to be much more robust in recovering from syntax
7574 errors. Added comments.
7575 (c_parser_objc_property_attrlist): Removed.
7576 (c_parser_external_declaration): Updated calls to
7577 c_parser_objc_at_property, now
7578 c_parser_objc_at_property_declaration.
7579 (c_parser_objc_methodprotolist): Same change.
7581 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
7583 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
7585 2010-10-26 Jan Hubicka <jh@suse.cz>
7587 * ipa.c (process_references): Enqueue all referenced nodes;
7588 mark as reachable only non-external nodes.
7589 (cgraph_remove_unreachable_nodes): All referenced nodes should
7590 be enqueued; remove bogues node->needed check.
7592 2010-10-26 Jan Hubicka <jh@suse.cz>
7594 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
7597 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
7599 * config/i386/i386.md (split_stack_return): Replace
7600 unspec_volatile with unspec.
7602 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
7604 * doc/install.texi: Fix typo in --with-sysroot description.
7606 2010-10-26 Jan Hubicka <jh@suse.cz>
7608 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7609 Use info provided by linker plugin.
7611 2010-10-26 Jason Merrill <jason@redhat.com>
7613 * varasm.c (constructor_static_from_elts_p): Don't require a
7614 CONSTRUCTOR to have elements to be suitable for static
7615 initialization. Allow ARRAY_TYPE as well.
7617 2010-10-26 Jan Hubicka <jh@suse.cz>
7620 * cgraph.c (cgraph_set_readonly_flag): Rename to...
7621 (cgraph_set_const_flags) ... this one; get also looping argument;
7622 clear constructor/destructor flags.
7623 (cgraph_set_pure_flag): Likewise.
7624 (cgraph_set_looping_const_or_pure_flag): Remove.
7625 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
7626 to optimize away static ctors/dtors; it does not work on inline clones;
7627 external functions can always be rmeoved.
7628 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
7629 inline clones; in LTO external functions always can go.
7630 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
7631 (cgraph_mark_address_taken_node): Assert that we are not taking
7632 address of inline clone.
7633 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
7635 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
7637 (ipcp_initialize_node_lattices): Only local functions can be
7638 handled without cloning.
7639 * cgraph.h (cgraph_set_readonly_flag,
7640 cgraph_set_looping_const_or_pure_flag): Remove.
7641 (cgraph_set_const_flag): Declare.
7642 (cgraph_set_pure_flag): Update.
7643 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
7645 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
7646 look at inline clones; fix handling of external definitions.
7647 (cgraph_postorder): Do not look at inline clones in the first pass.
7648 (function_and_variable_visibility): Drop constructors/destructor
7649 flags at pure and const functions.
7650 * tree-profile.c (tree_profiling): Update.
7651 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
7652 address taken; external functions do not account to whole program size.
7653 (cgraph_decide_inlining): Likewise; do not try to inline
7654 functions already inlined.
7656 2010-10-26 Jie Zhang <jie@codesourcery.com>
7658 * doc/invoke.texi: Improve documentation of
7659 -fstrict-volatile-bitfields.
7661 2010-10-26 Ira Rosen <irar@il.ibm.com>
7663 PR tree-optimization/46167
7664 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
7665 is basic block for the statement.
7667 2010-10-26 Paul Koning <ni1d@arrl.net>
7669 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
7670 current definition of struct_real_format.
7672 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
7675 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
7676 (ix86_function_arg_boundary): Always align parameters on stack
7677 in 64bit and align parameters with alignment >= 16byte on stack
7678 in 32bit. Warn alignment change.
7680 2010-10-26 Ian Lance Taylor <iant@google.com>
7683 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
7686 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
7688 Implement opaque-enum-specifiesr for C++0x
7689 * tree.h (ENUM_IS_OPAQUE): New.
7690 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
7692 2010-10-26 Jie Zhang <jie@codesourcery.com>
7694 * stor-layout.c (layout_decl): Use the field's type to
7695 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
7696 * config/arm/arm.c (arm_override_options): Default to
7697 -fstrict-volatile-bitfields.
7699 2010-10-25 Paul Koning <ni1d@arrl.net>
7701 * config/pdp11/pdp11.md: Add define_constants for register
7702 numbers, branch offset limits.
7703 * config/pdp11/pdp11.c: Use named constants instead of numbers.
7704 * config/pdp11.pdp11.h: Ditto.
7706 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
7708 * configure.ac: Use $cpu_type instead of $target to define the nop.
7709 * configure: Regenerate.
7711 2010-10-25 Jie Zhang <jie@codesourcery.com>
7713 * combine.c (try_combine): If insns need to be kept around, check that
7714 they can be copied in the merged instruction.
7716 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7718 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
7720 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
7721 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
7722 it has been modified.
7724 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7726 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
7728 2010-10-24 Paul Koning <ni1d@arrl.net>
7730 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
7731 * config/pdp11/pdp11.c (output_jump): Ditto.
7733 2010-10-24 Ian Lance Taylor <iant@google.com>
7735 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
7737 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7739 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
7740 least one insn with a locus corresponding to an edge's goto_locus,
7741 disregard non-fallthru edges to the exit block and merge the blocks
7742 created for the same goto_locus.
7744 2010-10-23 Joseph Myers <joseph@codesourcery.com>
7746 * gcc.c (n_switches_alloc_debug_check): New.
7747 (set_option_handlers): New.
7748 (process_command): Use set_option_handlers.
7749 (do_self_spec): Pass spec-generated options through option handlers.
7750 (main): Also save and restore n_switches_alloc when swapping
7753 2010-10-23 Richard Henderson <rth@redhat.com>
7756 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
7757 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
7758 Honor matching operands when splitting to XOR.
7760 2010-10-23 Ian Lance Taylor <iant@google.com>
7762 * tree-vrp.c (extract_range_from_binary_expr): If
7763 flag_non_call_exceptions don't eliminate division by zero.
7764 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7766 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
7768 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
7769 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
7770 __ORDER_PDP_ENDIAN__.
7771 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7772 (struct DWstruct): Define based on __BYTE_ORDER__.
7773 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7774 (struct INTstruct): Define based on __BYTE_ORDER__.
7775 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7776 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
7777 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
7778 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7779 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7780 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7781 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7782 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7783 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7784 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7785 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7786 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7787 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7788 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7789 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7790 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7791 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7792 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7793 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7794 * doc/tm.texi: Regenerate.
7795 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
7796 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
7798 2010-10-23 Jie Zhang <jie@codesourcery.com>
7800 PR rtl-optimization/37360
7801 * config/mips/mips.c (cached_can_issue_more): New local variable.
7802 (mips_sched_reorder_1): New.
7803 (mips_sched_reorder): Use mips_sched_reorder_1.
7804 (mips_sched_reorder2): New.
7805 (mips_variable_issue): Set cached_can_issue_more.
7806 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
7807 instead of mips_sched_reorder.
7810 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
7811 PR rtl-optimization/37360
7812 * haifa-sched.c (max_issue): Do not assert that we never issue more
7813 insns than issue_rate. Add comment.
7815 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
7817 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
7818 location info of the expression.
7820 2010-10-22 DJ Delorie <dj@redhat.com>
7822 * doc/extend.texi (Named Address Spaces): Document the M32C named
7825 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
7826 __far address space.
7827 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
7828 "__far" address space for R8C and M16C processor variants.
7829 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
7830 (far_addr_space_p): New.
7831 (encode_pattern_1): Add sign and zero extend support.
7832 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
7833 (m32c_extra_constraint_p2): Add SF constraint.
7834 (m32c_legitimate_address_p): Support __far addresses.
7835 (m32c_addr_space_pointer_mode): New.
7836 (m32c_addr_space_address_mode): New.
7837 (m32c_addr_space_legitimate_address_p): New.
7838 (m32c_addr_space_legitimize_address): New.
7839 (m32c_addr_space_subset_p): New.
7840 (m32c_addr_space_convert): New.
7841 (conversions): Add __far operand patterns.
7842 (m32c_prepare_move): Force constants into registers for __far moves.
7843 (m32c_split_move): __far moves are always split.
7844 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
7845 * config/m32c/mov.md (mov<mode>_far_op1): New.
7846 (mov<mode>_far_op2): New.
7847 (movqi_op): Add __far (SF) support.
7848 (movhi_op): Likewise.
7849 (movsi_splittable): Split A1A0 also.
7851 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7852 Andrew Pinski <pinskia@gmail.com>
7854 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
7855 * doc/extend.texi: New paragraph
7857 2010-10-22 Paul Koning <ni1d@arrl.net>
7859 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
7861 2010-10-22 DJ Delorie <dj@redhat.com>
7863 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
7865 2010-10-22 Paul Koning <ni1d@arrl.net>
7867 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
7869 2010-10-22 Richard Henderson <rth@redhat.com>
7871 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
7872 cases for __builtin_fma and __builtin_fmaf.
7874 2010-10-22 Richard Henderson <rth@redhat.com>
7876 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
7877 NEG+USE for vectors as well.
7878 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
7881 2010-10-22 Joseph Myers <joseph@codesourcery.com>
7883 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
7884 SWITCH_CURTAILS_COMPILATION): Remove.
7885 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
7886 * doc/tm.texi: Regenerate.
7887 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
7889 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7891 * config/i386/bdver1.md: New file.
7892 * config/i386/i386.md (include "bdver1.md"): Invoke the
7893 pipeline description for bdver1.
7894 (x86_sahf_1): Add "bdver1_decode" attribute.
7895 (*cmpfp_i_mixed): Likewise.
7896 (*cmpfp_i_sse): Likewise.
7897 (*cmpfp_i_i387): Likewise.
7898 (*cmpfp_iu_mixed): Likewise.
7899 (*cmpfp_iu_sse): Likewise.
7900 (*cmpfp_iu_387): Likewise.
7901 (*swap<mode>,*swap<mode>_1): Likewise.
7902 (fixuns_trunc<mode>hi2): Likewise.
7903 (fix_trunc<mode>si_sse): Likewise.
7904 (x86_fnstcw_1): Likewise.
7905 (x86_fldcw_1): Likewise.
7906 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
7907 (*floatsi<mode>2_vector_mixed): Likewise.
7908 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
7909 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7910 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7911 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
7912 (*floatsi<mode>2_vector_sse): Likewise.
7913 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
7914 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7915 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7916 (*mul<mode>3_1): Likewise.
7917 (*mulsi3_1_zext): Likewise.
7918 (*mulhi3_1): Likewise.
7919 (*mulqi3_1): Likewise.
7920 (*<u>mul<mode><dwi>3_1): Likewise.
7921 (*<u>mulqihi3_1): Likewise.
7922 (*<s>muldi3_highpart_1): Likewise.
7923 (*<s>mulsi3_highpart_1): Likewise.
7924 (*<s>mulsi3_highpart_zext): Likewise.
7925 (x86_64_shld): Likewise.
7926 (x86_shld): Likewise.
7927 (x86_64_shrd): Likewise.
7928 (x86_shrd): Likewise.
7929 (sqrtxf2): Likewise.
7930 (sqrt_extend<mode>xf2_i387): Likewise.
7931 (*sqrt<mode>2_sse): Likewise.
7932 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
7933 (sse_cvtsi2ssq): Likewise.
7934 (sse_cvtss2si): Likewise.
7935 (sse_cvtss2si_2): Likewise.
7936 (sse_cvtss2siq): Likewise.
7937 (sse_cvtss2siq_2): Likewise.
7938 (sse_cvttss2si): Likewise.
7939 (sse_cvttss2siq): Likewise.
7940 (sse2_cvtpi2pd): Likewise.
7941 (sse2_cvttpd2pi): Likewise.
7942 (sse2_cvtsi2sd): Likewise.
7943 (sse2_cvtsi2sdq): Likewise.
7944 (sse2_cvtsd2si): Likewise.
7945 (sse2_cvtsd2si_2): Likewise.
7946 (sse2_cvtsd2siq): Likewise.
7947 (sse2_cvtsd2siq_2): Likewise.
7948 (sse2_cvttsd2si): Likewise.
7949 (sse2_cvttsd2siq): Likewise.
7950 (*sse2_cvtpd2dq): Likewise.
7951 (*sse2_cvttpd2dq): Likewise.
7952 (sse2_cvtsd2ss): Likewise.
7953 (sse2_cvtss2sd): Likewise.
7954 (*sse2_cvtpd2ps): Likewise.
7955 (sse2_cvtps2pd): Likewise.
7957 2010-10-22 Richard Guenther <rguenther@suse.de>
7960 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
7961 remove the virtual operands if they are not needed.
7963 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7965 * config/i386/i386.c (processor_costs bdver1_cost): Update
7966 insn costs and architectural parameters for bdver1.
7968 2010-10-22 Richard Guenther <rguenther@suse.de>
7970 * gimple.h (gimple_register_canonical_type): Declare.
7971 * gimple.c (gimple_canonical_types): New global hashtable.
7972 (struct gimple_type_leader_entry_s): New type.
7973 (gimple_type_leader): New global cache.
7974 (gimple_lookup_type_leader): New function.
7975 (gtc_visit): Query the proper cache.
7976 (gimple_types_compatible_p): Likewise.
7977 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
7978 (gimple_canonical_type_eq): New function.
7979 (gimple_register_canonical_type): Likewise.
7980 (print_gimple_types_stats): Adjust for gimple_canonical_types.
7981 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
7982 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
7983 gimple_types_compatible_p for LTO.
7985 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
7988 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
7989 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
7990 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
7991 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
7992 (<sse>_movu<ssemodesuffix>): New expander.
7993 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
7994 (avx_movdqu<avxmodesuffix>): New expander.
7995 (*sse2_movdqu): Rename from sse2_movdqu.
7996 (sse2_movdqu): New expander.
7998 2010-10-22 Richard Guenther <rguenther@suse.de>
8000 PR tree-optimization/45720
8001 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8002 Handle negative step.
8003 (vect_enhance_data_refs_alignment): Likewise.
8004 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
8005 (vect_create_cond_for_align_checks): Likewise.
8006 (vect_create_cond_for_alias_checks): Likewise.
8008 2010-10-22 Ira Rosen <irar@il.ibm.com>
8010 PR tree-optimization/46126
8011 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
8012 vectorizable_shift in case of basic block vectorization.
8014 2010-10-22 Joseph Myers <joseph@codesourcery.com>
8016 * target.h (enum opt_levels, struct default_options): New.
8017 * target.def (handle_ofast): Remove hook.
8018 (target_option.optimization): Change to
8019 target_option.optimization_table.
8020 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
8021 TARGET_OPTION_OPTIMIZATION_TABLE.
8022 (CAN_DEBUG_WITHOUT_FP): Remove.
8023 * doc/tm.texi: Regenerate.
8024 * opts.c (maybe_default_option, maybe_default_options,
8025 default_options_table): New.
8026 (default_options_optimization): Take extra parameters. Don't
8027 assert that global_options and global_options_set are in use. Use
8028 maybe_default_options.
8029 (decode_options): Pass extra parameters to
8030 default_options_optimization.
8031 * common.opt (falign-loops): Use value 0 with Var.
8032 (frerun-cse-after-loop, ftree-ter): Remove Init.
8033 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
8034 TARGET_OPTION_OPTIMIZATION): Remove.
8035 * targhooks.c (empty_optimization_table): New.
8036 * targhooks.h (empty_optimization_table): Declare.
8037 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
8038 * config/alpha/alpha.c (alpha_option_optimization_table,
8039 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8040 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
8041 * config/arm/arm.c (arm_option_optimization: Change to
8042 arm_option_optimization_table.
8043 (TARGET_OPTION_OPTIMIZATION): Change to
8044 TARGET_OPTION_OPTIMIZATION_TABLE.
8045 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
8046 * config/avr/avr.c (avr_option_optimization_table,
8047 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8048 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
8049 * config/cris/cris.c (cris_option_optimization): Change to
8050 cris_option_optimization_table.
8051 (TARGET_OPTION_OPTIMIZATION): Change to
8052 TARGET_OPTION_OPTIMIZATION_TABLE.
8053 * config/crx/crx.c (crx_option_optimization): Change to
8054 crx_option_optimization_table.
8055 (TARGET_OPTION_OPTIMIZATION): Change to
8056 TARGET_OPTION_OPTIMIZATION_TABLE.
8057 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
8058 * config/fr30/fr30.c (fr30_option_optimization_table,
8059 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8060 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
8061 * config/frv/frv.c (frv_option_optimization_table,
8062 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8063 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
8064 * config/h8300/h8300.c (h8300_option_optimization): Change to
8065 h8300_option_optimization_table.
8066 (TARGET_OPTION_OPTIMIZATION): Change to
8067 TARGET_OPTION_OPTIMIZATION_TABLE.
8068 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
8069 * config/i386/i386.c (ix86_option_optimization): Change to
8070 ix86_option_optimization_table.
8071 (TARGET_OPTION_OPTIMIZATION): Change to
8072 TARGET_OPTION_OPTIMIZATION_TABLE.
8073 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
8075 * config/ia64/ia64.c (ia64_option_optimization): Change to
8076 ia64_option_optimization_table.
8077 (TARGET_OPTION_OPTIMIZATION): Change to
8078 TARGET_OPTION_OPTIMIZATION_TABLE.
8079 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
8080 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
8082 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8083 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8084 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
8085 * config/lm32/lm32.c (lm32_option_optimization_table,
8086 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8087 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
8088 * config/m32r/m32r.c (m32r_option_optimization): Change to
8089 m32r_option_optimization_table.
8090 (TARGET_OPTION_OPTIMIZATION): Change to
8091 TARGET_OPTION_OPTIMIZATION_TABLE.
8092 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
8093 CAN_DEBUG_WITHOUT_FP): Remove.
8094 * config/mcore/mcore.c (mcore_option_optimization): Change to
8095 mcore_option_optimization_table.
8096 (TARGET_OPTION_OPTIMIZATION): Change to
8097 TARGET_OPTION_OPTIMIZATION_TABLE.
8098 * config/mep/mep.c (mep_option_optimization): Change to
8099 mep_option_optimization_table.
8100 (TARGET_OPTION_OPTIMIZATION): Change to
8101 TARGET_OPTION_OPTIMIZATION_TABLE.
8102 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
8103 * config/microblaze/microblaze.c
8104 (microblaze_option_optimization_table,
8105 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8106 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
8107 * config/mips/mips.c (mips_option_optimization_table,
8108 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8109 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
8110 * config/mmix/mmix.c (mmix_option_optimization): Change to
8111 mmix_option_optimization_table.
8112 (TARGET_OPTION_OPTIMIZATION): Change to
8113 TARGET_OPTION_OPTIMIZATION_TABLE.
8114 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
8115 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8116 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8117 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
8118 * config/pa/pa.c (pa_option_optimization_table,
8119 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8120 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
8121 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
8122 pdp11_option_optimization_table.
8123 (TARGET_OPTION_OPTIMIZATION): Change to
8124 TARGET_OPTION_OPTIMIZATION_TABLE.
8125 * config/picochip/picochip.c (picochip_option_optimization_table,
8126 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8127 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
8128 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
8129 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8130 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
8131 * config/rx/rx.c (rx_option_optimization_table,
8132 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8133 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
8134 * config/s390/s390.c (s390_option_optimization): Change to
8135 s390_option_optimization_table.
8136 (s390_option_override): Update comment.
8137 (TARGET_OPTION_OPTIMIZATION): Change to
8138 TARGET_OPTION_OPTIMIZATION_TABLE.
8139 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
8140 * config/score/score.c (score_option_optimization_table,
8141 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8142 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
8143 * config/sh/sh.c (sh_option_optimization): Change to
8144 sh_option_optimization_table.
8145 (TARGET_OPTION_OPTIMIZATION): Change to
8146 TARGET_OPTION_OPTIMIZATION_TABLE.
8147 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
8148 (sh_option_override, expand_block_move, multcosts, find_barrier,
8149 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
8150 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
8151 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
8152 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
8153 instead of TARGET_SMALLCODE.
8154 * config/sh/sh.opt (mspace): Make into an alias for -Os.
8155 * config/sparc/sparc.c (sparc_option_optimization_table,
8156 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8157 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
8158 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8159 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8160 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
8161 * config/v850/v850.c (v850_option_optimization): Change to
8162 v850_option_optimization_table.
8163 (TARGET_OPTION_OPTIMIZATION): Change to
8164 TARGET_OPTION_OPTIMIZATION_TABLE.
8165 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
8166 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
8167 xtensa_option_optimization_table.
8168 (TARGET_OPTION_OPTIMIZATION): Change to
8169 TARGET_OPTION_OPTIMIZATION_TABLE.
8170 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
8172 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
8174 Based on the CFString implementation in FSF apple/trunk branch.
8176 * target.def (objc_construct_string): New Hook.
8177 * doc/tm.texi (objc_construct_string): Document.
8178 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
8179 * config/t-darwin: Amend build rules for darwin.o.
8180 * config/darwin.opt: Add cfstrings flags.
8181 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
8182 (darwin_objc_construct_string): New.
8183 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
8184 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
8185 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
8186 (darwin_fold_builtin): Likewise.
8187 (darwin_build_constant_cfstring): Likewise.
8188 (darwin_objc_construct_string): Likewise.
8189 (darwin_cfstring_p): Likewise.
8190 (darwin_enter_string_into_cfstring_table): Likewise.
8191 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
8192 * config/darwin.c (darwin_running_cxx): New var.
8193 (machopic_select_section): Return cfstring_constant_object_section.
8194 (darwin_override_options): Set darwin_running_cxx.
8195 (add_builtin_field_decl): New.
8196 (darwin_init_cfstring_builtins): New.
8197 (darwin_build_constant_cfstring): New.
8198 (darwin_fold_builtin): New.
8199 (cfstring_hash): New.
8201 (darwin_enter_string_into_cfstring_table): New.
8202 * config/darwin-sections.def (cfstring_constant_object_section): New.
8203 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
8204 (TARGET_OBJC_CONSTRUCT_STRING): Define.
8206 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8208 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
8209 TYPE_STUB_DECL instead of TREE_CHAIN.
8210 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
8211 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
8212 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
8213 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
8214 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
8215 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
8217 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
8219 2010-10-22 Jie Zhang <jie@codesourcery.com>
8221 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
8222 (copy_blkmode_from_reg): Likewise.
8223 (read_complex_part): Likewise.
8224 (expand_expr_real_1): Calculate packedp and pass it to
8226 * expr.h (extract_bit_field): Update declaration.
8227 * calls.c (store_unaligned_arguments_into_pseudos): Update call
8228 to extract_bit_field.
8229 * expmed.c (extract_fixed_bit_field): Update calls to
8230 extract_fixed_bit_field.
8231 (store_split_bit_field): Likewise.
8232 (extract_bit_field_1): Add new argument packedp.
8233 (extract_bit_field): Add new argument packedp.
8234 (extract_fixed_bit_field): Add new argument packedp and let
8235 packed attribute override volatile.
8236 * stmt.c (expand_return): Update call to extract_bit_field.
8238 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8240 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
8242 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8244 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
8245 of gcc_checking_assert.
8246 * sel-sched.c (code_motion_process_successors): Likewise.
8248 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
8250 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
8251 when stopping because of a different locus on edge or insn.
8252 (try_optimize_cfg): Add comment.
8253 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
8254 block is a forwarder block, propagate locus on the edge.
8255 (cfg_layout_merge_blocks): Likewise.
8257 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
8260 * config/i386/i386.md (*pushti2): New insn pattern.
8261 (pushti2 splitter): New insn splitter.
8262 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
8265 2010-10-21 Paul Koning <ni1d@arrl.net>
8267 * config/pdp11/pdp11-protos.md (arith_operand,
8268 const_immediate_operand, expand_shift_operand,
8269 immediate15_operand): Delete
8270 * config/pdp11/pdp11.c: Ditto.
8271 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
8272 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
8273 EXTRA_CONSTRAINT): Delete.
8274 * config/pdp11/pdp11.md (various): Use standard constraints
8275 instead of removed ones.
8276 * config/pdp11/constraints.md: New file.
8277 * config/pdp11/predicates.md: New file.
8279 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
8282 * alias.c (true_dependence_1): Remove obsolete check for QImode.
8283 (may_alias_p): Ditto.
8285 2010-10-21 Martin Jambor <mjambor@suse.cz>
8287 PR tree-optimization/45875
8288 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
8290 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8292 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
8294 (create_new_def_for): Likewise.
8296 2010-10-21 Nick Clifton <nickc@redhat.com>
8298 * config/mn10300/mn10300.c: Fold code to 80-character width.
8299 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
8300 MEM, CONST_INT and CONST_DOUBLE.
8301 (targetm): Move initialization to end of file.
8302 (print_operand): Rename to mn10300_print_operand.
8303 (print_operand_address): Rename to mn10300_print_operand_address.
8304 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
8305 (expand_prologue): Rename to mn10300_expand_prologue.
8306 (expand_epilogue): Rename to mn10300_expand_epilogue.
8307 (initial_offset): Rename to mn10300_initial_offset.
8308 (function_arg): Rename to mn10300_function_arg.
8309 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
8310 (symbolic_operand): Rename to mn10300_symbolic_operand.
8311 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
8312 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
8313 * config/mn10300/mn10300-protos.h: Update prototypes.
8314 * config/mn10300/mn10300.h: Fold code to 80-character width.
8315 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
8316 MEM, CONST_INT and CONST_DOUBLE.
8317 (CPP_SPEC): Move to...
8318 (TARGET_CPU_CPP_BUILTINS): ... here.
8319 * config/mn10300/mn10300.md: Fold code to 80-character width.
8320 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
8321 MEM, CONST_INT and CONST_DOUBLE.
8323 2010-10-21 Ira Rosen <irar@il.ibm.com>
8325 PR tree-optimization/46049
8326 PR tree-optimization/46052
8327 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
8328 (vect_get_slp_defs): Add arguments.
8329 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
8330 operands to vect_get_slp_defs.
8331 (vectorizable_reduction): Fix comment, pass scalar operands to
8333 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
8334 type to determine number of units in the created vector.
8335 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
8336 (vectorizable_conversion): Fix comment.
8337 (vectorizable_shift): New function.
8338 (vectorizable_operation): Move code that handles shifts to
8340 (vectorizable_type_demotion): Fix comment, pass scalar operands to
8342 (vectorizable_type_promotion, vectorizable_store): Likewise.
8343 (vectorizable_condition): Fix comment.
8344 (vect_analyze_stmt): Call vectorizable_shift.
8345 (vect_transform_stmt): Likewise.
8346 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
8347 Use it as the operand to create vectors for, except reduction
8348 initial definition and store. Use operands type.
8349 (vect_get_slp_defs): Add new arguments. Pass them to
8350 vect_get_constant_vectors.
8352 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8354 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
8355 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
8356 * cfghooks.c (fixup_reorder_chain): Likewise.
8357 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
8358 * cgraph.c (cgraph_add_thunk): Likewise.
8359 (cgraph_create_edge_1): Likewise.
8360 (cgraph_create_virtual_clone): Likewise.
8361 * ddg.c (add_cross_iteration_register_deps): Likewise.
8362 * dwarf2out.c (modified_type_die): Likewise.
8363 * emit-rtl.c (set_mem_alias_set): Likewise.
8364 * ggc-zone.c (zone_allocate_marks): Likewise.
8365 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
8366 * gimple.c (iterative_hash_gimple_type): Likewise.
8367 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
8368 (create_single_exit_edge): Likewise.
8369 * haifa-sched.c (choose_ready): Likewise.
8370 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8371 * passes.c (execute_todo): Likewise.
8372 * sched-ebb.c (begin_schedule_ready): Likewise.
8373 * sel-sched.c (code_motion_process_successors): Likewise.
8374 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
8375 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
8376 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
8377 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
8378 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
8379 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
8380 (ssa_conflicts_add): Likewise.
8381 * tree-ssa-copy.c (replace_exp): Likewise.
8382 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
8383 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
8384 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
8385 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
8386 (compute_antic): Likewise.
8387 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
8388 (add_dependence): Likewise.
8389 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
8390 * tree-vrp.c (supports_overflow_infinity): Likewise.
8391 (make_overflow_infinity, negative_overflow_infinity): Likewise.
8392 (avoid_overflow_infinity, register_new_assert_for): Likewise.
8393 (process_assert_insertions_for): Likewise.
8394 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
8395 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
8396 (intersect_loc_chains, variable_merge_over_cur): Likewise.
8398 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8400 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
8401 * reload1.c (has_nonexceptional_receiver): Likewise.
8402 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
8403 (create_new_def_for): Likewise.
8404 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
8405 (merge_phi_nodes): Likewise.
8406 (has_abnormal_incoming_edge_p): Delete.
8408 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
8410 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
8412 2010-10-21 Richard Guenther <rguenther@suse.de>
8413 Michael Matz <matz@suse.de>
8415 PR tree-optimization/45764
8416 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8417 Adjust initial misalignment for negative DR_STEP.
8418 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
8419 do not have the same alignment over the whole iteration domain.
8421 2010-10-21 Richard Guenther <rguenther@suse.de>
8423 PR tree-optimization/46111
8424 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
8426 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8428 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
8430 2010-10-21 Tristan Gingold <gingold@adacore.com>
8432 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
8433 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
8435 2010-10-21 Tristan Gingold <gingold@adacore.com>
8437 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
8439 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
8441 2010-10-21 Tristan Gingold <gingold@adacore.com>
8443 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
8444 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
8446 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
8448 * basic-block.h (find_fallthru_edge): Define.
8449 * cfgcleanup.c (merge_blocks_move): Use it.
8450 (try_crossjump_bb): Likewise.
8451 * cfglayout.c (fixup_reorder_chains): Likewise.
8452 (fixup_fallthru_exit_predecessor): Likewise.
8453 * cfgrtl.c (rtl_split_edge): Likewise.
8454 (rtl_verify_flow_info): Likewise.
8455 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8456 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
8457 * ifcvt.c (block_fallthru): Likewise.
8458 * reload1.c (fixup_abnormal_edges): Likewise.
8459 * sched-ebb.c (being_schedule_ready): Likewise.
8460 (schedule_ebb): Likwise.
8461 * sched-rgn.c (find_single_block_region): Likewise.
8462 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
8463 * tree-complex.c (expand_complex_move): Likewise.
8464 * sched-int.h (find_fallthru_edge): Rename to...
8465 (find_fallthru_edge_from): ...this.
8466 * haifa-sched.c (find_fallthru_edge): Rename to...
8467 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
8468 (init_before_recovery): Call find_fallthru_edge_from.
8469 * sel-sched-ir.c (merge_fences): Likewise.
8470 * sel-sched.c (in_fallthru_bb_p): Likewise.
8471 (move_cond_jump): Likewise.
8473 2010-10-20 Paul Koning <ni1d@arrl.net>
8475 * config/pdp11/pdp11.md (various): Fix conditions on a number of
8476 insn to check for target 11/40 or higher.
8478 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8480 * parser.c (c_parser_objc_method_type): Mark inline. Return a
8481 bool instead of a tree.
8482 (c_parser_objc_method_decl): Added bool argument. Updated call to
8483 objc_build_method_signature.
8484 (c_parser_objc_method_definition): Do not call
8485 objc_set_method_type. Updated calls to c_parser_objc_method_type,
8486 c_parser_objc_method_decl and objc_start_method_definition.
8487 (c_parser_objc_methodproto): Do not call objc_set_method_type.
8488 Updated calls to c_parser_objc_method_type,
8489 c_parser_objc_method_decl and objc_add_method_declaration.
8491 2010-10-20 Jakub Jelinek <jakub@redhat.com>
8493 PR tree-optimization/45919
8494 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
8497 PR tree-optimization/46066
8498 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
8499 instead of gsi_last_bb.
8501 2010-10-20 DJ Delorie <dj@redhat.com>
8503 * config/m32c/m32c.c (m32c_option_override): Always disable
8504 function-cse in 16-bit mode. Indirect calls are always worse than
8505 direct calls as there is no 16-bit indirect call opcode.
8506 (m32c_override_options_after_change): New, likewise.
8508 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
8510 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
8511 emitting the conditional move in the inner mode of the SUBREG.
8513 2010-10-20 Anatoly Sokolov <aesok@post.ru>
8515 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
8516 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
8517 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8518 (ia64_preferred_reload_class): Make static. Change rclass argument
8519 and result types from enum reg_class to reg_class_t.
8521 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
8523 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
8524 call for single operand expression.
8526 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
8528 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
8529 if there is a call statement to pure or const function in the block.
8531 2010-10-20 Paul Koning <pkoning@equallogic.com>
8533 Fix several build errors for pdp11 target.
8534 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
8535 (cbranchdf4): Conditional on TARGET_FPU.
8536 (movdf): Ditto; correct alternatives check.
8537 (movmemhi): Fix predicate and constraint.
8538 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
8540 2010-10-20 Richard Guenther <rguenther@suse.de>
8543 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
8544 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
8545 (verify_gimple_assign_single): Disable ADDR_EXPR type check
8548 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
8551 * ira-emit.c (store_can_be_removed_p): Return false instead of
8554 2010-10-20 Dmitry Melnik <dm@ispras.ru>
8556 * fold-const.c (fold_binary_loc): New transformation.
8558 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
8561 * config/i386/sse.md (reduc_splus_v8sf): Updated.
8562 (reduc_splus_v4df): Likewise.
8564 2010-10-20 Richard Guenther <rguenther@suse.de>
8566 PR tree-optimization/45860
8567 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
8568 conditional store replacement for non-register type stores.
8570 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
8572 * stor-layout.c (skip_simple_constant_arithmetic): New function.
8573 (self_referential_size): Use it instead of skip_simple_arithmetic.
8575 2010-10-20 Olivier Hainque <hainque@adacore.com>
8577 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
8578 If the current function calls eh_return, claim live all registers
8579 that we need to check for liveness otherwise.
8581 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8583 * c-decl.c (c_write_global_declarations): Call
8584 objc_write_global_declarations when compiling Objective-C.
8585 * c-lang.c (finish_file): Removed.
8587 2010-10-19 DJ Delorie <dj@redhat.com>
8589 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
8590 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
8591 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
8592 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
8593 * doc/tm.texi: Regenerate.
8594 * targhooks.h (default_label_align_after_barrier_max_skip,
8595 default_loop_align_max_skip, default_label_align_max_skip,
8596 default_jump_align_max_skip): Declare.
8597 * target.def (label_align_after_barrier_max_skip): New.
8598 (loop_align_max_skip): New.
8599 (label_align_max_skip): New.
8600 (jump_align_max_skip): New.
8601 * system.h (poison): Add those macros to the list.
8602 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
8603 (LOOP_ALIGN_MAX_SKIP): Remove.
8604 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
8605 (JUMP_ALIGN_MAX_SKIP): Remove.
8606 (default_label_align_after_barrier_max_skip): New.
8607 (default_loop_align_max_skip): New.
8608 (default_label_align_max_skip): New.
8609 (default_jump_align_max_skip): New.
8610 (compute_alignments): Use the new hooks.
8611 (shorten_branches): Likewise.
8613 2010-10-19 Richard Henderson <rth@redhat.com>
8615 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
8616 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
8617 (fma4i_fmadd_<mode>): New.
8618 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
8619 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
8620 standard fma patterns.
8621 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
8623 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
8624 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
8625 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
8627 2010-10-19 Paul Koning <pkoning@equallogic.com>
8629 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
8630 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
8632 2010-10-19 Richard Henderson <rth@redhat.com>
8634 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
8635 (fmadf4, *fmsdf4, *nfmadf4): New.
8636 (fmaxf4, *fmsxf4, *nfmaxf4): New.
8638 2010-10-19 Michael Eager <eager@eagercon.com>
8640 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
8641 Use sjlj unwind info for exceptions.
8643 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
8646 * dwarf2out.c (add_calling_convention_attribute): Flag main
8647 Fortran subroutine with DW_AT_main_subprogram.
8649 2010-10-19 Nick Clifton <nickc@redhat.com>
8651 * config/rx/rx.c (rx_function_value): Small integer types are
8653 (rx_promote_function_mode): New function.
8654 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8656 2010-10-19 Nick Clifton <nickc@redhat.com>
8658 * config/mep/mep.c (mep_print_operand): Use
8659 targetm.strip_name_encoding.
8660 (mep_output_aligned_common): Likewise.
8662 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
8664 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
8666 2010-10-18 Richard Henderson <rth@redhat.com>
8668 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
8669 (fma (neg a) (neg b) c) and (fma a (neg b) c).
8671 2010-10-18 Richard Henderson <rth@redhat.com>
8673 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
8674 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
8675 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
8676 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
8677 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
8678 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
8679 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
8680 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
8681 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
8682 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
8683 (bdesc_multi_arg): Remove the corresponding builtins.
8684 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
8685 (UNSPEC_FMA4_FMSUBADD): Remove.
8686 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
8687 * config/i386/sse.md (FMA4MODEF4): Remove.
8689 (fma<mode>4): New expander.
8690 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
8691 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
8692 (*fma4i_fmsub_<mode>): Similarly.
8693 (*fma4i_fnmadd_<mode>): Similarly.
8694 (*fma4i_fnmsub_<mode>): Similarly.
8695 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
8696 with the first operand.
8697 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
8698 of explicit arithmetic. Macroize with AVXMODEF2P.
8699 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
8700 (xop_frcz<mode>2): Macroize with FMAMODE.
8701 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
8703 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
8705 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
8706 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
8707 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
8708 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
8709 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
8710 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
8711 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
8712 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
8714 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
8716 PR rtl-optimization/45966
8717 * combine.c (try_combine): If added_sets_2, deal with the case
8718 where i0 feeds i1 and i1 feeds i2.
8720 2010-10-18 Jan Hubicka <jh@suse.cz>
8722 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
8723 preserve flags before trying to guess on visibility.
8724 (varpool_externally_visible_p): New function.
8725 (function_and_variable_visibility): Use it.
8727 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8729 Implemented parsing @synthesize and @dynamic for Objective-C.
8730 * c-parser.c (c_parser_external_declaration): Recognize
8731 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8732 (c_parser_objc_at_synthesize_declaration): New.
8733 (c_parser_objc_at_dynamic_declaration): New.
8735 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8737 * c-parser.c (c_parser_objc_class_declaration): After finding an
8738 error, parse the whole declaration then reset parser->error.
8740 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8743 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
8744 * builtins.c (mode_has_fma): Ditto.
8746 2010-10-18 Steve Ellcey <sje@cup.hp.com>
8750 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
8752 2010-10-18 Joseph Myers <joseph@codesourcery.com>
8754 * config/i386/i386.c (ix86_option_override_internal): Define and
8755 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
8757 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8758 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
8760 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8762 Merge from 'apple/trunk' branch on FSF servers.
8763 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
8764 following Objective-C change:
8766 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
8769 * c-parse.in (objc_quals): Build objc qualifier list same way
8772 2010-10-18 Jan Hubicka <jh@suse.cz>
8774 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
8775 function_and_variable_visibility): Revert accidental commit.
8777 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8779 Merge from 'apple/trunk' branch on FSF servers.
8780 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
8781 the following Objective-C change:
8783 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
8786 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
8787 'volatilized' type used in a typeof operator.
8789 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
8791 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
8792 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
8793 rewrite modelled on gimple_purge_dead_eh_edges.
8794 (gimple_purge_all_dead_abnormal_call_edges): New function.
8795 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
8796 directly instead of through gimple_purge_dead_abnormal_call_edges.
8797 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
8798 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
8799 removed AB side-effects from one of its statements.
8800 (init_pre): Initialize need_ab_cleanup.
8801 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
8802 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
8804 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8807 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
8808 on computed goto argument.
8810 2010-10-18 Richard Guenther <rguenther@suse.de>
8812 PR tree-optimization/45967
8813 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
8814 (could_have_pointers): Likewise.
8815 (handle_rhs_call, handle_const_call, handle_pure_call,
8816 find_func_aliases, intra_create_variable_infos): Remove calls to them.
8817 (struct fieldoff): Add must_have_pointers field.
8818 (type_must_have_pointers): New function.
8819 (field_must_have_pointers): Likewise.
8820 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
8821 Adjust field merging.
8822 (create_function_info_for): May-have-pointers of varinfo is
8824 (create_variable_info_for_1): Likewise.
8826 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
8828 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
8829 of operands to vec_concat.
8831 2010-10-18 Richard Guenther <rguenther@suse.de>
8834 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
8835 also clear references to entries of it.
8837 2010-10-18 Andi Kleen <ak@linux.intel.com>
8840 * gccbug.in: Remove.
8841 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
8842 (doc, distclean, install-common): Remove reference to gccbug.
8843 * configure: Regenerate.
8844 * configure.ac (all_outputs): Remove gccbug.
8845 * doc/configfiles.texi: Remove references to gccbug.
8846 * doc/sourcebuild.texi: Dito.
8848 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8851 * fold-const.c (fold_binary_loc): If integer_pow2p has
8852 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
8854 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8855 Jeremie Salvucci <jeremie.salvucci@free.fr>
8857 * gengtype.c (verbosity_level): Add variable.
8858 (set_gc_used): Count variables for verbosity.
8859 (close_output_files): Backing up files, counting written ones
8861 (write_types): Count emitted functions for verbosity. Added
8863 (write_enum_defn): Count structures for verbosity. Added debug
8865 (gengtype_long_options): Add "verbose" & "backupdir".
8866 (print_usage): Ditto.
8867 (main): Verbose display of parsed files.
8869 * gengtype.h (verbosity_level): Add declaration.
8871 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8873 * gengtype.c (parse_program_options): Add allocation of
8874 plugin_files, and correct test on nb_plugin_files.
8876 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8878 Merge from 'apple/trunk' branch on FSF servers.
8880 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8883 * c-decl.c (undeclared_variable): Issue diagnostic on
8884 private 'ivar' access.
8886 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8889 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
8890 generated sequence to match *avx_vperm2f128<mode>_nozero.
8891 (vec_interleave_lowv4df): Ditto.
8892 (vec_interleave_highv8sf): Ditto.
8893 (vec_interleave_lowv8sf): Ditto.
8895 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
8897 * libgcov.c (create_file_directory): Enable it for win32 case.
8898 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
8899 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
8900 (GCOV_PREFIX_SKIP): Likewise.
8902 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8904 * doc/objc.texi (GNU Objective-C runtime API): New section.
8905 (Modern GNU Objective-C runtime API): New section.
8906 (Traditional GNU Objective-C runtime API): New section.
8907 (Executing code before main): Mention that this section is
8908 specific to the GNU Objective-C runtime.
8909 (Garbage Collection): Same.
8911 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8913 * c-parser.c (c_parser_for_statement): Move initialization of
8914 cond and incr before if.
8916 2010-10-17 Anatoly Sokolov <aesok@post.ru>
8918 * target.def (preferred_output_reload_class): New hook.
8919 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
8920 * doc/tm.texi: Regenerate.
8921 * targhooks.c (default_preferred_output_reload_class): New function.
8922 * targhooks.h (default_preferred_output_reload_class): Declare.
8923 * reload.c (find_dummy_reload): Change rclass argument type from
8924 enum reg_class to reg_class_t. Change this_alternative array type
8925 from enum reg_class to reg_class_t.
8926 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8927 (push_reload): Change preferred_class variable type to reg_class_t.
8928 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8929 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
8930 argument type from enum reg_class to reg_class_t. Use
8931 HARD_REGISTER_NUM_P predicate.
8932 * recog.h (reg_fits_class_p): Update prototype.
8934 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8935 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
8937 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
8938 static. Change regclass argument and result types from enum reg_class
8940 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8942 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8944 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
8945 visibility enum, and handle @package.
8947 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8949 * doc/objc.texi (What you can and what you cannot do in +load):
8950 Document that sending messages to constant string objects in +load
8951 is not guaranteed to work.
8953 2010-10-16 Jan Hubicka <jh@suse.cz>
8956 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
8957 existence of refrences before removing the function.
8959 2010-10-16 Jan Hubicka <jh@suse.cz>
8961 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
8962 only_called_at_startup and only_called_at_exit.
8963 (cgraph_propagate_frequency): Compute only_called_at_startup and
8964 only_called_at_exit.
8965 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
8966 only_called_at_exit.
8967 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
8969 * predict.c (compute_function_frequency): Initialize the new flags.
8971 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
8973 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
8974 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
8975 on the bounds of its domain.
8976 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
8978 2010-10-16 Anatoly Sokolov <aesok@post.ru>
8980 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
8981 * config/avr/avr-protos.h (preferred_reload_class): Remove.
8982 * config/avr/avr.c (preferred_reload_class): Remove.
8983 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
8984 * config/pa/pa.c (emit_move_sequence): Update comment
8985 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
8986 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
8987 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
8988 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
8989 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
8990 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
8991 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
8992 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
8993 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
8994 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
8995 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
8996 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
8997 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
8999 2010-10-16 Joseph Myers <joseph@codesourcery.com>
9001 * opts.c (set_fast_math_flags,
9002 set_unsafe_math_optimizations_flags): Make static.
9003 * toplev.h (set_fast_math_flags,
9004 set_unsafe_math_optimizations_flags): Remove prototypes.
9006 2010-10-16 Joseph Myers <joseph@codesourcery.com>
9008 * config/arm/arm.c (arm_option_optimization): Set
9009 flag_section_anchors to 1 not 2.
9010 * config/i386/i386.c (ix86_option_override_internal): Check
9011 global_options_set.x_flag_zee and
9012 global_options_set.x_flag_omit_frame_pointer.
9013 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
9015 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
9016 global_options_set.x_flag_omit_frame_pointer.
9017 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
9018 opts->x_flag_section_anchors to 1 not 2.
9019 * config/sh/sh.c (sh_option_optimization): Don't set
9020 flag_schedule_insns to 2.
9021 (sh_option_override): Check
9022 global_options_set.x_flag_schedule_insns.
9023 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
9025 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
9027 * configure.ac: Make sure inhibit_libc remains false for mingw targets
9029 * configure: Regenerated.
9031 2010-10-15 Xinliang David Li <davidxl@google.com>
9033 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
9035 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
9036 into a recursive function.
9038 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
9040 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
9041 (*movdfcc_1): ditto.
9043 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9045 * target.def (target_option.init_struct): New hook.
9046 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
9047 * doc/tm.texi: Regenerate.
9048 * hooks.c (hook_void_gcc_optionsp): New.
9049 * hooks.h (hook_void_gcc_optionsp): Declare.
9050 * langhooks-def.h (lhd_init_options_struct): Remove.
9051 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
9052 * langhooks.c (lhd_init_options_struct): Remove.
9053 * opts.c (init_options_struct): Also call
9054 targetm.target_option.init_struct.
9055 * config/i386/i386.c (ix86_option_init_struct,
9056 TARGET_OPTION_INIT_STRUCT): New.
9057 (ix86_option_optimization): Move some settings to
9058 ix86_option_init_struct.
9059 * config/pdp11/pdp11.c (pdp11_option_init_struct,
9060 TARGET_OPTION_INIT_STRUCT): New.
9061 (pdp11_option_optimization): Move some settings to
9062 pdp11_option_init_struct.
9063 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
9064 rs6000_option_init_struct. Use options structure pointer.
9065 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
9066 * config/s390/s390.c (s390_option_init_struct,
9067 TARGET_OPTION_INIT_STRUCT): New.
9068 (s390_option_optimization): Don't set
9069 flag_asynchronous_unwind_tables here.
9070 * config/sh/sh.c (sh_option_init_struct,
9071 TARGET_OPTION_INIT_STRUCT): New.
9072 (sh_option_optimization): Don't set flag_finite_math_only here.
9073 * config/spu/spu.c (spu_option_optimization): Replace by
9074 spu_option_optimization. Use options structure pointer.
9075 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
9077 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9079 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
9081 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
9082 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
9083 (Standard names): Document fma.
9085 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
9086 __FP_FAST_FMAF, __FP_FAST_FMAL.
9088 * builitns.c (expand_builtin_mathfn_ternary): New function for
9089 expanding ternary math functions, like fma.
9090 (expand_builtin): Call it for the fma builtins.
9092 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
9095 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
9096 vectorizable functions to support vectorizing fma.
9098 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9099 Handle fma builtins.
9101 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
9102 (UNSPEC_VSX_MSUB): Ditto.
9103 (UNSPEC_VSX_NMADD): Ditto.
9104 (UNSPEC_VSX_NMSUB): Ditto.
9105 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
9106 of UNSPEC. Renumber combiner patterns.
9107 (vsx_fmsub<mode>4*): Ditto.
9108 (vsx_fnmadd<mode>4*): Ditto.
9109 (vsx_fnmsub<mode>4*): Ditto.
9111 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
9112 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
9113 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
9114 (altivec_vmaddfp_1): Ditto.
9115 (altivec_vmaddfp_2): Ditto.
9116 (atlivec_mulv4sf3): Ditto.
9117 (altivec_vnmsubfp): Ditto.
9118 (altivec_vnmsubfp_1): Ditto.
9119 (altivec_vnmsubfp_2): Ditto.
9120 (altivec_vnmsubfp_3): Delete.
9122 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
9123 (fmasf4_fpr): Ditto.
9124 (fmssf4_fpr): Ditto.
9125 (fnmasf4_fpr): Ditto.
9126 (fnmssf4_fpr): Ditto.
9128 (fmadf4_fpr): Ditto.
9129 (fmsdf4_fpr): Ditto.
9130 (fnmadf4_fpr): Ditto.
9131 (fnmsdf4_fpr): Ditto.
9133 * optabs.h (OTI_fma): Add fma optab.
9136 * genopinit.c (optabs): Set fma optab.
9138 * rtl.def (FMA): Add FMA rtl.
9140 * tree.h (mode_has_fma): New function to return if MODE supports a
9141 fast multiply and add instruction.
9142 * builtins.c (mode_has_fma): Ditto.
9144 2010-10-15 Jan Hubicka <jh@suse.cz>
9146 * lto-streamer-out.c (write_symbol): Use pointer set of seen
9147 objects instead of bitmap.
9148 (produce_symtab): Likewise; output defined symbols first.
9150 2010-10-15 Jie Zhang <jie@codesourcery.com>
9152 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
9153 Option Summary and Index.
9155 2010-10-15 Richard Guenther <rguenther@suse.de>
9157 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
9158 for automatic variables again.
9160 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9162 * doc/extend.texi (Variable Length): Don't refer to VLAs not
9165 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9167 * config/rx/rx.c (rx_option_optimization): Change to
9168 rx_override_options_after_change. Don't change
9169 flag_lto_compression_level. Don't check for changes to whether
9170 FPU instructions can be used. Check and set only
9171 flag_finite_math_only, not other fast-math flags.
9172 (rx_option_override): Call rx_override_options_after_change.
9173 (TARGET_OPTION_OPTIMIZATION): Remove.
9174 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9176 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9178 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
9179 disable section anchors for lang_hooks.name[4] != 'O'.
9181 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9183 * config/frv/frv.c (frv_option_optimization,
9184 TARGET_OPTION_OPTIMIZATION): Remove.
9185 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
9187 2010-10-15 Michael Matz <matz@suse.de>
9189 * cgraphunit.c (clone_of_p): Define unconditionally.
9191 2010-10-15 Richard Guenther <rguenther@suse.de>
9194 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
9196 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
9198 * ifcvt.c (find_active_insn_before): New function.
9199 (find_active_insn_after): New function.
9200 (cond_exec_process_if_block): Use new functions to replace
9201 prev_active_insn() and next_active_insn().
9203 2010-10-14 Yao Qi <yao@codesourcery.com>
9206 * config/arm/arm.c (arm_build_builtin_va_list): Assign
9207 va_list_name to TYPE_STUB_DECL (va_list_type).
9209 2010-10-14 Jan Hubicka <jh@suse.cz>
9212 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
9213 redirected to clone, be happy.
9214 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
9215 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
9216 former_clone_of unconditionally.
9218 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9220 Merge from FSF apple 'trunk' branch.
9221 2006 Fariborz Jahanian <fjahanian@apple.com>
9223 Radars 4436866, 4505126, 4506903, 4517826
9224 * c-parser.c (c_parser, objc_property_attr_context) New flag.
9225 (c_lex_one_token): Handle property attributes.
9226 (c_parser_external_declaration): Handle @property.
9227 (c_parser_declaration_or_fndef): Warn on invalid attributes before
9228 @alias, @class, @end and @property objc keywords.
9229 (c_parser_objc_methodprotolist): Handle @property.
9230 (c_parser_objc_property_attrlist): New.
9231 (c_parser_objc_at_property): New.
9232 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
9233 (build_modify_expr): Likewise.
9235 2010-10-14 Jakub Jelinek <jakub@redhat.com>
9237 PR tree-optimization/46008
9238 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
9240 2010-10-14 Richard Guenther <rguenther@suse.de>
9242 PR tree-optimization/44913
9243 * tree-data-ref.c (disjoint_objects_p): Remove.
9244 (dr_may_alias_p): Simplify. Only hand the base object to
9246 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9247 some more trees, bail out instead of asserting.
9248 (ptr_derefs_may_alias_p): Likewise. Export.
9249 (refs_may_alias_p_1): Handle STRING_CSTs.
9250 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
9252 2010-10-14 Joseph Myers <joseph@codesourcery.com>
9255 * c-typeck.c (build_binary_op): Don't try to compute a semantic
9256 type with excess precision for boolean operations.
9258 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
9259 Basile Starynkevitch <basile@starynkevitch.net>
9261 * gengtype.c: Include getopt.h and version.h.
9263 (lang_bitmap, struct outf, outf_p)
9264 (get_output_file_with_visibility, oprintf): Definitions moved to
9266 (output_files, header_file, srcdir, srcdir_len, this_file)
9267 (do_dump): No more static variables.
9269 (dbgprint_count_type_at): Added new function.
9270 (gengtype_long_options): New.
9271 (print_usage, print_version, parse_program_options): New.
9272 (main): Call parse_program_options, and removed old option
9273 handling code. Added some debug output.
9275 * gengtype.h: Updated copyright year.
9276 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
9277 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
9278 Moved from gengtype.c to here.
9279 (do_debug, read_state_filename, write_state_filename): New variables.
9280 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
9283 (REVISION): Always defined.
9284 (version.o): Removed ifdef REVISION_c.
9285 (s-gtype): Pass arguments to build/gengtype program.
9286 (build/version.o): Added building rule.
9287 (build/gengtype$(build_exeext)): Added build/version.o.
9289 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9291 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
9292 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
9295 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
9297 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
9298 may_trap_or_fault_p instead of may_trap_p predicate.
9299 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
9300 (substitute_placeholder_in_expr): Likewise.
9301 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
9302 flag on MEM_REF nodes.
9303 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
9304 flags on INDIRECT_REF nodes.
9306 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
9308 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
9309 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
9310 (arm*-*-eabi*) <tm_file>: Likewise.
9311 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
9312 (frv-*-*linux*) <tm_file>: Likewise.
9313 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
9314 and associated helper macros.
9315 * config/frv/frv-abi.h: Delete.
9317 2010-10-14 Richard Guenther <rguenther@suse.de>
9320 * tree.def (NULLPTR_TYPE): New tree code.
9321 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
9322 * dwarf2out.c (is_base_type): Likewise.
9323 (gen_type_die_with_usage): Likewise.
9324 * sdbout.c (plain_type_1): Likewise.
9325 * tree.c (build_int_cst_wide): Likewise.
9326 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
9328 2010-10-14 Joseph Myers <joseph@codesourcery.com>
9330 * params.c (params_finished): New.
9331 (add_params): Assert !params_finished.
9332 (finish_params): New.
9333 (set_param_value_internal): Take params and params_set
9334 parameters. Assert params_finished.
9335 (set_param_value, maybe_set_param_value): Take params and
9336 params_set parameters. Update calls to set_param_value_internal.
9337 (set_default_param_value): Assert !params_finished. Don't use
9338 set_param_value_internal.
9339 (default_param_value, init_param_values): New.
9340 * params.h (struct param_info): Change value to default_value.
9342 (set_param_value, maybe_set_param_value): Add params and
9343 params_set parameters.
9344 (PARAM_VALUE): Get parameters from global_options.
9345 (PARAM_SET_P): Remove.
9346 (finish_params, default_param_value, init_param_values): New.
9347 * common.opt (param_values): New Variable.
9348 * config/arm/arm.c (arm_option_override): Pass extra arguments to
9349 maybe_set_param_value.
9350 * config/i386/i386.c (ix86_option_override_internal): Pass extra
9351 arguments to maybe_set_param_value.
9352 * config/picochip/picochip.c (picochip_option_override): Pass
9353 extra arguments to maybe_set_param_value.
9354 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
9355 extra arguments to maybe_set_param_value.
9356 * config/s390/s390.c (s390_option_override): Use
9357 maybe_set_param_value instead of set_param_value. Pass extra
9358 arguments to maybe_set_param_value.
9359 * config/sparc/sparc.c (sparc_option_override): Pass extra
9360 arguments to maybe_set_param_value.
9361 * config/spu/spu.c (spu_option_override): Pass extra arguments to
9362 maybe_set_param_value.
9363 * opts.c (handle_param): Take opts and opts_set parameters.
9364 Update call to set_param_value.
9365 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
9366 initial_loop_invariant_max_bbs_in_loop): Remove.
9367 (init_options_once): Don't set them.
9368 (init_options_struct): Initialize parameters structures.
9369 (default_options_optimization): Use default_param_value when
9370 restoring defaults. Update calls to maybe_set_param_value.
9371 (finish_options): Update calls to maybe_set_param_value.
9372 (common_handle_option): Update calls to handle_param and
9374 * toplev.c (DEFPARAM): Update definition for changes to param_info.
9375 (general_init): Call finish_params.
9377 2010-10-14 Nick Clifton <nickc@redhat.com>
9379 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
9380 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
9381 (FIRST_PSEUDO_REGISTER): Increase by one.
9382 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
9383 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
9384 (MODES_TIEABLE): Call mn10300_modes_tieable.
9385 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
9386 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
9387 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
9388 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
9389 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
9390 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
9391 (mn10300_cc_status_mdep): Delete.
9392 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
9393 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
9394 the combine-stack-adjust pass.
9395 (print_operand): Use the mode of the comparison operation to
9396 select the comparison suffix.
9397 (notice_update_cc): Delete.
9398 (mn10300_secondary_reload_class): Remove test for stack pointer
9400 (output_tst): Rename to mn10300_output_cmp.
9401 (impossible_plus_operand): Move into predicates.md.
9402 (mn10300_legitimize_address): Make static.
9403 (mn10300_legitimate_address_p): Make static. Only allow SI sized
9404 constant pic operands.
9405 (mn10300_legitimate_constant_p): New function.
9406 (mn10300_case_values_threshold): Make static.
9407 (mn10300_hard_regno_mode_ok): New function.
9408 (mn10300_modes_tieable): New function.
9409 (mn10300_select_cc_mode): New function.
9410 * config/mn10300/predicates.md (impossible_plus_operand): Define.
9411 * config/mn10300/mn10300-protos.h: Tidy.
9412 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
9413 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
9414 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
9415 with clobbers or sets of CC_REG.
9417 (mov*): Remove use of CLR instruction.
9418 (cbranch_si4_<code>): New pattern/split.
9419 (integer_conditional_branch): New pattern.
9420 (cbranch_sf4_<code>): New pattern/split.
9421 (float_conditional_branch): New pattern.
9422 (casesi): Use addsi3 pattern instead of movsi pattern to add and
9423 move a value at the same time.
9424 (cc0 peepholes): Remove.
9426 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
9428 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
9429 on RTX_FRAME_RELATED_P insns and the insn to which
9430 NOTE_INSN_EPILOGUE_BEG is attached.
9431 * sched-vis.c (print_value): Allow NULL value.
9433 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
9435 PR rtl-optimization/45570
9436 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
9437 assert that we are pipelining outer loops. Allow returning
9440 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
9442 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
9443 (tidy_control_flow): Tidy vertical space.
9444 (sel_remove_bb): New variable idx. Use it to remember the basic
9445 block index before deleting the block.
9446 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
9447 (sel_merge_blocks): ... here.
9448 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
9450 2010-10-14 Jakub Jelinek <jakub@redhat.com>
9452 * cse.c (is_dead_reg): Change into inline function that is not
9453 called through for_each_rtx.
9454 (set_live_p): Adjust caller.
9455 (insn_live_p): Don't reset DEBUG_INSNs here.
9456 (struct dead_debug_insn_data): New data.
9457 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
9458 (delete_trivially_dead_insns): If there is just one setter for the
9459 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
9460 and add DEBUG_INSN for it right before the removed setter and
9461 use the DEBUG_EXPR instead of the dead pseudo.
9463 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
9465 * et-forest.c (et_nca): Return NULL immediately when
9466 the dominance forest has disjoint components.
9468 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
9470 * ira.c (setup_class_hard_regs): Fix typo in indexing
9471 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
9473 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
9475 * graph.c (inbb): New variable.
9476 (start_bb): Set inbb to 1 if output is inside of a building block.
9477 (end_bb): Check if output is inside of a building block.
9479 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
9481 PR rtl-optimization/45912
9482 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
9483 regno of registers instead of their index to compute the alignment.
9485 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
9487 * config/i386/i386.c (ix86_build_const_vector): Check vector
9488 mode instead of scalar mode.
9489 (ix86_build_signbit_mask): Likewise.
9490 (ix86_expand_fp_absneg_operator): Updated.
9491 (ix86_expand_copysign): Likewise.
9492 (ix86_expand_int_vcond): Likewise.
9493 (ix86_emit_swdivsf): Likewise.
9494 (ix86_sse_copysign_to_positive): Likewise.
9495 (ix86_expand_sse_fabs): Likewise.
9496 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
9497 * config/i386/sse.md (copysign<mode>3): Likewise.
9498 (sse2_cvtudq2ps): Likewise.
9499 (vec_unpacku_float_hi_v4si): Likewise.
9500 (vec_unpacku_float_lo_v4si): Likewise.
9502 * config/i386/i386.c (ix86_builtins): Add
9503 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
9504 (bdesc_args): Likewise.
9505 (ix86_builtin_vectorized_function): Support
9506 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
9507 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
9508 and IX86_BUILTIN_CVTPS2DQ256.
9509 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
9511 * config/i386/sse.md (STORENT_MODE): New.
9512 (VEC_FLOAT_MODE): Likewise.
9513 (VEC_EXTRACT_MODE): Likewise.
9514 (*avx_cvtdq2pd256_2): Likewise.
9515 (vec_pack_trunc_v4df): Likewise.
9516 (vec_interleave_highv8sf): Likewise.
9517 (vec_interleave_lowv8sf): Likewise.
9518 (storent<mode>): Macroized.
9519 (<code><mode>2: absneg): Likewise.
9520 (copysign<mode>3): Likewise.
9521 (vec_extract<mode>): Likewise.
9524 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
9527 2010-10-13 Richard Guenther <rguenther@suse.de>
9528 H.J. Lu <hongjiu.lu@intel.com>
9530 * config/i386/sse.md (reduc_splus_v8sf): Add.
9531 (reduc_splus_v4df): Likewise.
9532 (vec_unpacks_hi_v8sf): Likewise.
9533 (vec_unpacks_lo_v8sf): Likewise.
9534 (*avx_cvtps2pd256_2): Likewise.
9535 (vec_unpacks_float_hi_v8si): Likewise.
9536 (vec_unpacks_float_lo_v8si): Likewise.
9537 (vec_interleave_highv4df): Likewise.
9538 (vec_interleave_lowv4df): Likewise.
9540 2010-10-13 Richard Guenther <rguenther@suse.de>
9543 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
9544 alone if there are no virtual methods.
9546 2010-10-13 Richard Henderson <rth@redhat.com>
9548 * expr.c (build_personality_function): Take parameter LANG instead
9549 of parameter NAME. Build the name based on the lang prefix and the
9550 unwind method in use.
9551 * tree.c (lhd_gcc_personality): Update call to
9552 build_personality_function.
9554 2010-10-13 Richard Guenther <rguenther@suse.de>
9557 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
9559 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
9561 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
9562 Canonicalize input operands of ASM_OPERANDS insns.
9564 2010-10-13 Richard Guenther <rguenther@suse.de>
9566 PR tree-optimization/45788
9567 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
9568 EH update until fixup-cfg.
9570 2010-10-13 Julian Brown <julian@codesourcery.com>
9572 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
9573 from CORE_REGS and GENERAL_REGS classes.
9574 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
9575 final constraint for register preferencing.
9577 2010-10-13 Richard Guenther <rguenther@suse.de>
9579 PR tree-optimization/45970
9580 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
9581 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
9582 (stmt_kills_ref_p): Likewise.
9583 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
9585 2010-10-13 Richard Guenther <rguenther@suse.de>
9587 PR tree-optimization/45982
9588 * tree-ssa-structalias.c (make_constraints_to): New function.
9589 (make_constraint_to): Implement in terms of make_constraints_to.
9590 (find_func_aliases): Properly make return values of pure/const
9591 functions escape if they assign to sth that is not a pointer.
9593 2010-10-13 Richard Guenther <rguenther@suse.de>
9596 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
9597 Fixup the CFG when EH was fixed up.
9599 2010-10-13 Ira Rosen <irar@il.ibm.com>
9601 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
9602 Use operand's type for POINTER_PLUS_EXPR.
9604 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
9606 * c-parser.c (c_parser_for_statement): Initialize incr.
9608 2010-10-12 Xinliang David Li <davidxl@google.com>
9610 PR tree-optimization/45972
9611 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
9612 with too many arguments.
9614 2010-10-12 Jakub Jelinek <jakub@redhat.com>
9617 * tree-ssa-forwprop.c: Include expr.h.
9618 (constant_pointer_difference, simplify_builtin_call): New functions.
9619 (tree_ssa_forward_propagate_single_use_vars): Call
9620 simplify_builtin_call on builtin calls.
9622 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
9624 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
9625 (*adddi3_extend_sp32): Likewise.
9626 (*subdi3_insn_sp32): Likewise.
9627 (*subdi3_extend_sp32): Likewise.
9628 (*negdi2_sp32): Use negative test for consistency.
9630 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
9632 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
9633 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9634 * config/fixed-bit.h: Likewise.
9635 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9636 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9637 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
9638 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
9639 (DF_SIZE): Likewise.
9640 * doc/tm.texi: Regenerate.
9642 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
9644 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
9645 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
9646 (*isel_reversed_unsigned_<mode>): New.
9647 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
9648 as valid comparisons and adjust operands and output appropriately.
9649 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
9651 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
9653 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
9654 DATA_ALIGNMENT and add COND parameter. Update comments above.
9655 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
9656 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
9658 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
9661 * exec-tool.in: Support '-plugin' as the second option to the linker.
9663 2010-10-12 Richard Henderson <rth@redhat.com>
9666 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
9667 (expand_stack_vars): Assert large base allocated when used.
9669 2010-10-12 Richard Guenther <rguenther@suse.de>
9671 * tree-ssa-structalias.c (get_constraint_for_1): Constants
9672 only point to nonlocal, not anything.
9674 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
9676 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
9677 unwind info for exceptions.
9679 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9682 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
9683 Document optional target selector.
9685 2010-10-12 Joseph Myers <joseph@codesourcery.com>
9687 * flag-types.h: New.
9688 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
9689 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
9691 (OPTIONS_H): Define.
9692 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
9694 * configure.ac (tm_include_list): Include options.h not flags.h.
9695 * configure: Regenerate.
9696 * flags.h: Include flag-types.h. Include options.h at top of file
9698 (enum debug_info_type, enum debug_info_level, enum
9699 debug_info_usage, enum symbol_visibility, struct visibility_flags,
9700 enum ira_algorithm, enum ira_region, enum excess_precision, enum
9701 graph_dump_types, enum stack_check_type,
9702 enum warn_strict_overflow_code): Move to flag-types.h
9703 * opth-gen.awk: Include flag-types.h in options.h.
9705 2010-10-12 Jakub Jelinek <jakub@redhat.com>
9707 * expr.c (store_expr): Share code for STRING_CST and
9708 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
9709 check if target is a MEM.
9711 * rtl.h: Include hashtab.h.
9712 (iterative_hash_rtx): New prototype.
9713 * rtl.c (iterative_hash_rtx): New function.
9714 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
9715 (output_loc_list): Return immediately if emitted is set, set it.
9716 (hash_loc_operands, hash_locs, hash_loc_list,
9717 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
9718 optimize_location_lists_1, optimize_location_lists): New function.
9719 (dwarf2out_finish): Call optimize_location_lists.
9720 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
9722 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9726 * Makefile.in ($(lang_checks_parallel))
9727 ($(lang_checks_parallelized)): Use single quotes for
9728 $(RUNTESTFLAGS), to allow passing quoted content.
9730 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9732 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
9733 actual_oldval. Use __builtin_expect.
9734 (SUBWORD_VAL_CAS): Likewise.
9736 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9738 * recog.c (nonmemory_operand): Call immediate_operand for
9739 CONSTANT_P operands.
9741 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
9743 * config/i386/i386.md (movmem<mode>): Macroize expander from
9744 movmem{si,di} using SWI48 mode iterator.
9745 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
9746 *strmovsi_rex_1 using P mode iterator.
9747 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
9748 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
9749 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
9750 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
9751 (setmem<mode>): Macroize expander from setmem{si,di} using
9752 SWI48 mode iterator.
9753 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
9754 *strsetsi_rex_1 using P mode iterator.
9755 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
9756 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
9757 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
9758 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
9759 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
9760 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
9761 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
9763 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
9764 *strlenqi_rex_1 using P mode iterator.
9766 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
9769 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
9771 (mark_ref_live, mark_ref_dead): Use them.
9772 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
9773 Save the original reg, and use the new functions.
9774 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
9776 (check_and_make_def_conflict): Save the original reg.
9778 2010-10-11 Martin Jambor <mjambor@suse.cz>
9781 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
9784 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9786 * Makefile.in ($(lang_checks_parallel))
9787 ($(lang_checks_parallelized)): Use single quotes for
9788 $(RUNTESTFLAGS), to allow passing quoted content.
9791 * opt-functions.awk (BEGIN): New section.
9792 (lower, upper, digit, alnum): New variables.
9793 (static_var, opt_sanitized_name): Use alnum instead of character
9794 classes, for non-C locale.
9795 * optc-gen.awk: Likewise.
9796 * opth-gen.awk: Likewise.
9798 2010-10-11 Anatoly Sokolov <aesok@post.ru>
9800 * target.def (preferred_reload_class): New hook.
9801 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
9802 * doc/tm.texi: Regenerate.
9803 * targhooks.c (default_preferred_reload_class): New function.
9804 * targhooks.h (default_preferred_reload_class): Declare.
9805 * reload.c (find_dummy_reload): Change preferred_class variable type
9806 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
9808 (find_reloads): Change goal_alternative array type from int to
9809 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
9810 (push_reload, find_reloads_address_part): Use
9811 TARGET_PREFERRED_RELOAD_CLASS target hook.
9812 * reload1.c (emit_input_reload_insns): Ditto.
9813 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
9814 hook. Change rclass argument and secondary_class variable types from
9815 'enum reg_class' to reg_class_t.
9817 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
9818 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
9819 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
9820 Change regclass argument and result types from enum reg_class to
9822 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9824 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
9826 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
9827 in masking operations.
9828 (simplify_const_unary_operation): Likewise.
9829 (simplify_binary_operation_1): Likewise.
9830 (simplify_const_binary_operation): Likewise.
9831 (simplify_const_relational_operation): Likewise.
9832 (simplify_ternary_operation): Likewise.
9833 (simplify_immed_subreg): Likewise.
9835 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9838 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
9839 (TARGET_SUPPORTS_WEAK): New.
9840 * doc/tm.texi: Regenerate.
9841 * defaults.h (SUPPORTS_WEAK): Update comment.
9842 (TARGET_SUPPORTS_WEAK): New.
9843 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
9844 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
9846 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
9847 make_decl_one_only): Likewise.
9848 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
9849 TARGET_SUPPORTS_WEAK.
9850 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
9851 instead of SUPPORTS_WEAK.
9853 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9855 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
9857 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9859 * vec.h (VEC_qsort): Define.
9860 * dbxout.c (output_used_types): Use it.
9861 * df-scan.c (df_sort_and_compress_refs): Likewise.
9862 (df_sort_and_compress_mws): Likewise.
9863 * genautomata.c (uniq_sort_alt_states): Likewise.
9864 (evaluate_equiv_classes): Likewise.
9865 (output_trans_table): Likewise.
9866 (output_state): Likewise.
9867 * gimplify.c (compare_case_labels): Likewise.
9868 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
9869 * ipa.c (build_cdtor_fns): Likewise.
9870 * lto.c (lto_wpa_write_files): Likewise.
9871 * sel-sched.c (fill_vec_av_set): Likewise.
9872 * tree-predcom.c (determine_roots_comp): Likewise.
9873 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
9874 (splice_param_accesses): Likewise.
9875 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
9876 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9877 (reassociate_bb): Likewise.
9878 * tree-ssa-sccvn.c (sort_scc): Likewise.
9879 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
9881 2010-10-11 Ian Lance Taylor <iant@google.com>
9883 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
9884 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
9885 TREE_THIS_NOTRAP when appropriate.
9886 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
9887 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
9888 newly created MEM_REF.
9890 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
9892 Nathan Froyds patch to hooks FUNCTION_ARG etc.
9893 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
9894 (picochip_incoming_function_arg): Delete.
9895 (picochip_arg_advance): Delete.
9896 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
9897 (FUNCTION_INCOMING_ARG): Delete.
9898 (FUNCTION_ARG_ADVANCE): Delete.
9899 * config/picochip/picochip.c (picochip_function_arg): Take a
9900 const_tree and a bool.
9901 (picochip_incoming_function_arg): Likewise.
9902 (picochip_arg_advance): Likewise.
9903 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9904 (TARGET_FUNCTION_ARG_ADVANCE): Define.
9906 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9909 * ipa.c (build_cdtor): Delete endless loop.
9911 2010-10-07 Andi Kleen <ak@linux.intel.com>
9913 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
9915 (checksum-options): Add.
9916 (cc1-dummy): Remove.
9917 (cc1-checksum): Change to run checksum over object files
9919 * dummy-checksum.c: Remove.
9920 * genchecksum.c: Update copyright.
9921 (usage): Allow multiple arguments.
9923 (dosum): Change for incremental checksum. Remove C output.
9924 (main): Iterate over all argument files. Add C output.
9926 2010-10-11 Joseph Myers <joseph@codesourcery.com>
9928 * params.c (set_param_value_internal): New.
9929 (set_param_value): Use set_param_value_internal.
9930 (maybe_set_param_value, set_default_param_value): New.
9931 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
9932 (maybe_set_param_value, set_default_param_value): Declare.
9933 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
9934 * config/i386/i386.c (ix86_option_override_internal): Use
9935 maybe_set_param_value.
9936 * config/ia64/ia64.c (ia64_option_default_params,
9937 TARGET_OPTION_DEFAULT_PARAMS): New.
9938 (ia64_option_optimization): Move some code to
9939 ia64_option_default_params.
9940 * config/picochip/picochip.c (picochip_option_override): Use
9941 maybe_set_param_value.
9942 * config/rs6000/rs6000.c (rs6000_option_default_params,
9943 TARGET_OPTION_DEFAULT_PARAMS): New.
9944 (rs6000_option_override_internal): Use maybe_set_param_value.
9945 (rs6000_option_optimization): Move some code to
9946 rs6000_option_default_params.
9947 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
9948 * config/sh/sh.c (sh_option_default_params,
9949 TARGET_OPTION_DEFAULT_PARAMS): New.
9950 (sh_option_optimization): Move some code to sh_option_default_params.
9951 * config/sparc/sparc.c (sparc_option_override): Use
9952 maybe_set_param_value.
9953 * config/spu/spu.c (spu_option_default_params,
9954 TARGET_OPTION_DEFAULT_PARAMS): New.
9955 (spu_option_optimization): Move some code to spu_option_default_params.
9956 (spu_option_override): Use maybe_set_param_value.
9957 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
9958 * doc/tm.texi: Regenerate.
9959 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
9960 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
9962 (default_options_optimization): Use maybe_set_param_value.
9963 (finish_options): Use maybe_set_param_value.
9964 * target.def (target_option.default_params): New hook.
9965 * toplev.c (general_init): Call targetm.target_option.default_params.
9967 2010-10-11 Ira Rosen <irar@il.ibm.com>
9969 PR tree-optimization/45902
9970 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
9971 vector type for constants, unless it's a pointer.
9973 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9975 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
9977 2010-10-11 Jakub Jelinek <jakub@redhat.com>
9980 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
9981 (ix86_delegitimize_address): Use it.
9983 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
9985 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
9987 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
9989 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
9990 to cum struct in the call to function_arg_advance.
9991 (alpha_function_arg_advance): Mark named as unused.
9993 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
9995 * config/mips/mips.c (mips_handle_option): Make "value" with
9998 2010-10-09 Richard Henderson <rth@redhat.com>
10001 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
10002 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
10003 required_align, tidy the code a bit. Emit split_stack code in the
10004 right place. Mark the return value with the alignment properly.
10005 * expr.h (allocate_dynamic_stack_space): Update decl.
10006 * builtins.c (expand_builtin_apply): Update call to
10007 allocate_dynamic_stack_space.
10008 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
10009 * calls.c (initialize_argument_information): Update call to
10010 allocate_dynamic_stack_space.
10011 (expand_call): Likewise.
10013 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
10014 Don't update_stack_alignment here.
10015 (alloc_stack_frame_space): Make ALIGN unsigned.
10016 (stack_var_cmp): Sort by alignment too.
10017 (partition_stack_vars): Don't merge large and small alignment vars.
10018 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
10019 Take care when BASE is not virtual_stack_vars_rtx.
10020 (expand_stack_vars): Allocate dynamic stack space for large
10021 alignment variables.
10022 (expand_one_stack_var): Update all to expand_one_stack_var_at.
10023 (defer_stack_allocation): True for large alignment vars.
10024 (update_stack_alignment): Merge into ...
10025 (expand_one_var): ... here.
10026 (gimple_expand_cfg): Place code from expand_stack_vars.
10028 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10030 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10031 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
10032 (pdp11_function_arg_advance): New function.
10033 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10035 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10037 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
10038 * libgcc2.c: Likewise.
10040 2010-10-09 Richard Guenther <rguenther@suse.de>
10043 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
10044 Properly check if a decl is an automatic var.
10046 2010-10-09 Richard Guenther <rguenther@suse.de>
10049 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
10051 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10053 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
10054 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10055 * config/mmix/mmix.c (mmix_function_arg): Rename to...
10056 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
10058 (mmix_function_arg): New function.
10059 (mmix_function_incoming_arg): New function.
10060 (mmix_function_arg_advance): New function.
10061 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
10062 (TARGET_FUNCTION_ARG_ADVANCE): Define.
10064 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10066 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10067 * config/vax/vax.c (vax_function_arg): New function.
10068 (vax_function_arg_advance): New function.
10069 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10071 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10073 * config/pa/pa-protos.h (function_arg): Delete.
10074 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10075 * config/pa/pa.c (function_arg): Rename to...
10076 (pa_function_arg): ...this. Make static. Take a const_tree and
10078 (pa_function_arg_advance): New function.
10079 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10081 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10083 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10084 * config/m68k/m68k.c (m68k_function_arg): New function.
10085 (m68k_function_arg_advance): New function.
10086 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10088 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10090 * config/avr/avr-protos.h (function_arg): Delete.
10091 (function_arg_advance): Delete.
10092 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10093 * config/avr/avr.c (function_arg): Rename to...
10094 (avr_function_arg): ...this. Make static. Take a const_tree and
10096 (function_arg_advance): Rename to...
10097 (avr_function_arg_advance): ...this. Make static. Take a
10098 const_tree and a bool.
10099 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10101 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10103 * config/alpha/alpha-protos.h (function_arg): Delete.
10104 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10105 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
10106 * config/alpha/alpha.c (function_arg): Rename to...
10107 (alpha_function_arg): ...this. Make static. Take a const_tree and
10108 a bool. Delete TARGET_ABI_UNICOSMK code.
10109 (alpha_function_arg_advance): New function.
10110 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10112 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10114 * config/mep/mep-protos.h (mep_function_arg): Delete.
10115 (mep_function_arg_advance): Delete.
10116 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10117 * config/mep/mep.c (mep_function_arg): Make static. Take a
10118 const_tree and a bool.
10119 (mep_function_arg_advance): Likewise.
10120 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10122 2010-10-09 Richard Guenther <rguenther@suse.de>
10124 PR tree-optimization/45945
10125 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
10127 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
10129 PR tree-optimization/45612
10130 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
10131 Test LABEL_DECLs as well. Fix formatting issues.
10132 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
10133 whose label is present in NON_SSA_VARS.
10134 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
10135 as well. Fix formatting issues.
10136 (visit_bb): Fix typos and formatting issue.
10138 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10140 PR tree-optimization/45950
10141 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
10142 before initializing vno->op.
10144 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
10146 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
10147 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
10149 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
10152 * config/i386/i386.c (ix86_binary_operator_ok): Support
10153 "andhi/andsi/anddi" as a zero-extending move.
10155 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10157 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
10158 into a temporary array.
10160 2010-10-08 Jakub Jelinek <jakub@redhat.com>
10162 PR tree-optimization/45903
10163 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
10164 of {A,L}SHIFTRT of MEM.
10166 2010-10-08 Richard Guenther <rguenther@suse.de>
10168 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10169 Re-construct BLOCK_VARS.
10170 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
10171 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10172 * tree.c (free_lang_data_in_block): Remove.
10173 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
10174 Do not touch the BLOCK tree.
10175 * expr.c (expand_expr_real_1): Allow externals.
10177 2010-10-08 Richard Guenther <rguenther@suse.de>
10179 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
10180 Do not output BLOCK_SUBBLOCKS.
10181 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
10182 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
10183 Re-construct BLOCK_SUBBLOCKS of parent block.
10184 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
10185 for BINFO_BASE_ACCESSES.
10187 2010-10-08 Joseph Myers <joseph@codesourcery.com>
10189 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
10190 (TREE_H): Include $(FLAGS_H) instead of options.h.
10191 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
10192 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
10193 * common.opt (flag_complex_method, flag_evaluation_order,
10194 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
10195 Variable declarations.
10196 * configure.ac (tm_include_list): Include flags.h instead of options.h.
10197 * configure: Regenerate.
10198 * flags.h: Condition out contents for target libraries. Include
10199 options.h at end of file.
10200 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
10201 flag_evaluation_order, flag_warn_unused_result): Remove.
10202 * gcc.c (main): Intialize global_options with global_options_init.
10203 * langhooks-def.h (lhd_init_options_struct): Declare.
10204 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
10205 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
10206 * langhooks.c (lhd_init_options_struct): New.
10207 * langhooks.h (struct lang_hooks): Add init_options_struct.
10208 Update comment on init_options.
10209 * optc-gen.awk: Generate initializer for global_options_init, not
10211 * opth-gen.awk: Condition out structure declarations for target
10212 libraries. Declare global_options_init.
10213 * opts-common.c: Include flags.h instead of options.h.
10214 * opts.c (flag_warn_unused_result): Remove.
10215 (read_cmdline_options): Take gcc_options parameters. Pass them to
10216 read_cmdline_option.
10217 (initial_lang_mask, initial_min_crossjump_insns,
10218 initial_max_fields_for_field_sensitive,
10219 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
10220 (init_options_once): New. Split out of decode_options.
10221 (init_options_struct): New. Split out of decode_options.
10222 (decode_cmdline_options_to_array_default_mask): New.
10223 (default_options_optimization): New. Split out of decode_options.
10224 (decode_options): Move most code to other functions. Update call
10225 to read_cmdline_options.
10226 (finish_options): New. Split out of decode_options.
10227 * opts.h (decode_options): Add gcc_options parameters.
10228 (init_options_once, init_options_struct,
10229 decode_cmdline_options_to_array_default_mask): New.
10230 * toplev.c (flag_complex_method, flag_ira_algorithm,
10231 flag_ira_region, flag_evaluation_order): Remove.
10232 (general_init): Use global_options_init for initial flag values
10234 (toplev_main): Call init_options_once, init_options_struct,
10235 lang_hooks.init_options_struct,
10236 decode_cmdline_options_to_array_default_mask and
10237 lang_hooks.init_option before decode_options. Update arguments to
10239 * tree.h: Include flags.h instead of options.h.
10241 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10243 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10245 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10247 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
10249 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
10250 (FUNCTION_INCOMING_ARG): Delete.
10251 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
10252 (function_arg_slotno): Likewise. Take bool arguments.
10253 (sparc_arg_partial_bytes): Update call to it.
10254 (function_arg): Rename to...
10255 (sparc_function_arg_1): ...this. Take bool arguments.
10256 (sparc_function_arg, sparc_function_incoming_arg): New functions.
10257 (function_arg_advance): Rename to...
10258 (sparc_function_arg_advance): ...this. Take bool argument.
10259 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
10260 (TARGET_FUNCTION_INCOMING_ARG): Define.
10262 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10264 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
10266 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10267 * config/bfin/bfin.c (function_arg_advance): Rename to...
10268 (bfin_function_arg_advance): ...this. Make static. Take const_tree
10269 and bool arguments.
10270 (function_arg): Rename to...
10271 (bfin_function_arg): ...this. Make static. Take const_tree and bool
10273 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10275 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10277 * config/score/score-protos.h (score_function_arg): Delete.
10278 (score_function_arg_advance): Delete.
10279 * config/score/score3.h (score3_function_arg_advance): Take a
10280 const_tree and a bool.
10281 (score3_function_arg): Likewise.
10282 * config/score/score7.h (score7_function_arg_advance): Likewise.
10283 (score7_function_arg): Likewise.
10284 * config/score/score3.c (score3_classify_arg): Likewise.
10285 (score3_function_arg_advance, score3_function_arg): Likewise.
10286 * config/score/score7.c (score7_classify_arg): Likewise.
10287 (score7_function_arg_advance, score7_function_arg): Likewise.
10288 * config/score/score.c (score_function_arg_advance): Likewise.
10289 (score_function_arg): Likewise. De-const-ify `cum' argument.
10290 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10292 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10294 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
10295 (s390_function_arg): Delete.
10296 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10297 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
10298 (s390_function_arg_integer): Likewise.
10299 (s390_function_arg_advance): Make static. Take a const_tree and
10301 (s390_function_arg): Likewise.
10302 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10304 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10306 * config/spu/spu-protos.h (spu_function_arg): Delete.
10307 * config/spu/spu.h (FUNCTION_ARG): Delete.
10308 (FUNCTION_ARG_ADVANCE): Move code to ...
10309 * config/spu/spu.c (spu_function_arg_advance): New function.
10310 (spu_function_arg): Make static. Take a const_tree and a bool.
10311 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
10312 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10314 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10316 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10318 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10320 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
10321 (init_vn_nary_op_from_op): New function.
10322 (init_vn_nary_op_from_stmt): New function.
10323 (vn_nary_op_lookup_1): New function.
10324 (sizeof_vn_nary_op): New function.
10325 (alloc_vn_nary_op_noinit): New function.
10326 (alloc_vn_nary_op): New function.
10327 (vn_nary_op_insert_into): New function.
10328 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
10329 (vn_nary_op_lookup): Likewise.
10330 (vn_nary_op_lookup_stmt): Likewise.
10331 (vn_nary_op_insert_pieces): Likewise.
10332 (vn_nary_op_insert): Likewise.
10333 (vn_nary_op_insert_stmt): Likewise.
10334 (copy_nary): Likewise.
10335 (set_value_id_for_result): New function.
10336 (set_hashtable_value_ids): Call it.
10338 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10340 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10341 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
10343 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10345 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
10346 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10348 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
10351 * cse.c (cse_extended_basic_block): Preserve cc0 info across
10352 debug isnsn. Skip them when searching for cc0 setter.
10353 (set_live_p): Skip debug insns when searching for cc0 user.
10355 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
10361 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
10362 type of MEM_REFs to INTEGER_CSTs.
10364 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
10366 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
10367 m68hc11_print_operand_address.
10369 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
10371 * builtins.c (rewrite_call_expr): Move code to...
10372 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
10373 (rewrite_call_expr_array): New function.
10374 (fold_builtin_sprintf_chk_1): New function.
10375 (fold_builtin_sprintf_chk): Call it.
10376 (gimple_fold_builtin_sprintf_chk): Likewise.
10377 (fold_builtin_snprintf_chk_1): New function.
10378 (fold_builtin_snprintf_chk): Call it.
10379 (gimple_fold_builtin_snprintf_chk): Likewise.
10380 (gimple_rewrite_call_expr): Delete.
10382 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
10384 * config.host: Update copyright year.
10386 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
10388 * config.host (host_lto_plugin_soname): New shell variable.
10389 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
10390 * config.in: Regenerate.
10391 * configure: Regenerate.
10392 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
10393 LTO plugin shared library.
10395 2010-10-07 Richard Henderson <rth@redhat.com>
10397 * target.h (enum unwind_info_type): Move ...
10398 * coretypes.h: ... here.
10400 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
10402 * doc/objc.texi (Fast enumeration protocol): Mention that
10403 'unsigned int' can also be used instead of 'unsigned long' in
10404 countByEnumeratingWithState:objects:count:.
10406 2010-10-07 Martin Jambor <mjambor@suse.cz>
10408 * tree-sra.c (struct access): New field grp_assignment_write.
10409 (dump_access): Dump grp_assignment_write.
10410 (build_accesses_from_assign): Set grp_assignment_write.
10411 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
10412 (mark_read_status): Renamed to mark_rw_status, individual values
10414 (analyze_access_subtree): Changed type of mark_write to
10415 mark_read_status. Fixed propagating of mark_read and
10416 mark_write. Changed benefit estimate. Updated comment.
10418 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
10421 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
10422 check for vectype_out returned by get_vectype_for_scalar_type().
10424 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
10427 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
10428 constraint, add register specifier in instruction template.
10429 (neon_vec_pack_trunc_<mode>): Likewise.
10430 (neon_vec_<US>mult_<mode>): Add register specifier to
10431 instruction template.
10433 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
10435 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
10437 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
10438 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
10439 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
10440 (cygwin2.o): Likewise.
10441 * config/i386/cygwin1.c: Delete file.
10442 * config/i386/cygwin2.c: Likewise.
10443 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
10444 make all {%!mno-cygwin} ones unconditional.
10445 (STARTFILE_SPEC): Likewise.
10446 (REAL_LIBGCC_SPEC): Likewise.
10447 (LIB_SPEC): Likewise.
10448 (CXX_WRAP_SPEC): Likewise.
10449 (LINK_SPEC): Likewise.
10450 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
10451 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
10452 (cygwin_gplusplus_include_dir): Delete now-unused array.
10453 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
10454 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
10455 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
10456 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
10457 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
10458 (cygwin_local_include_dir): Delete now-unused array.
10459 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
10460 (cygwin_cross_include_dir): Delete now-unused array.
10461 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
10462 (cygwin_tool_include_dir): Delete now-unused array.
10463 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
10464 (cygwin_standard_include_dir): Delete now-unused array.
10465 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
10466 (GEN_CVT_ARRAY): Delete now-unused macro definition.
10467 (cvt_to_mingw): Delete now-unused array.
10468 (mingw_scan): Remove prototype of deleted function.
10469 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
10470 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
10471 * doc/invoke.texi (-mcygwin): Don't document removed option.
10472 (-mno-cygwin): Likewise.
10474 2010-10-07 Richard Guenther <rguenther@suse.de>
10476 * machmode.h (mode_for_vector): Declare.
10477 * stor-layout.c (mode_for_vector): New function, split out from ...
10478 (layout_type): ... here.
10479 * tree-vectorizer.h (current_vector_size): Declare.
10480 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
10481 mask vector type is available.
10482 (get_vectype_for_scalar_type): Rename to ...
10483 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
10485 (get_vectype_for_scalar_type): New wrapper around
10486 get_vectype_for_scalar_type_and_size using current_vector_size.
10487 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
10488 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
10489 of vect_analyze_loop here.
10490 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
10491 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
10493 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
10494 V8SF to V8SI conversion builtin.
10496 2010-10-07 Richard Guenther <rguenther@suse.de>
10498 * target.def (autovectorize_vector_sizes): New target hook.
10499 * targhooks.c (default_autovectorize_vector_sizes): New function.
10500 * targhooks.h (default_autovectorize_vector_sizes): Declare.
10501 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
10503 * doc/tm.texi: Update.
10504 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
10505 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10507 2010-10-07 Richard Guenther <rguenther@suse.de>
10509 * target.def (units_per_simd_word): Rename to ...
10510 (preferred_simd_mode): ... this. Return mode instead of size.
10511 * targhooks.c (default_units_per_simd_word): Rename to ...
10512 (default_preferred_simd_mode): ... this. Return word_mode.
10513 * targhooks.h (default_preferred_simd_mode): Declare.
10514 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
10515 (arm_preferred_simd_mode): ... this. Re-implement.
10516 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
10517 (ix86_preferred_simd_mode): ... this. Re-implement.
10518 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
10519 (sparc_preferred_simd_mode): ... this. Re-implement.
10520 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
10521 (mips_preferred_simd_mode): ... this. Re-implement.
10522 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
10523 (rs6000_preferred_simd_mode): ... this. Re-implement.
10524 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
10525 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
10526 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
10527 * doc/tm.texi: Update.
10529 2010-10-07 Richard Guenther <rguenther@suse.de>
10531 PR middle-end/45869
10532 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
10535 2010-10-07 Alan Modra <amodra@gmail.com>
10537 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
10538 rather than sign extension by hand.
10540 2010-10-07 Jan Hubicka <jh@suse.cz>
10542 PR middle-end/45926
10543 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
10545 2010-10-07 Richard Guenther <rguenther@suse.de>
10548 * configure.ac: Fix typo.
10549 * configure: Regenerated.
10551 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10553 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
10554 define_builtin_std where it's unnecessary.
10555 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
10557 2010-10-06 Anatoly Sokolov <aesok@post.ru>
10559 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
10560 * doc/tm.texi.in: Regenerate.
10561 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
10562 * targhooks.c (default_class_likely_spilled_p): Don't use the
10563 CLASS_LIKELY_SPILLED_P macro.
10565 * config/arm/arm.md: Update comment.
10567 2010-10-06 Jan Hubicka <jh@suse.cz>
10569 * ipa.c (cgraph_remove_unreachable_nodes): External references can
10571 (cgraph_externally_visible_p): We can not bring local comdats that
10572 are known to linker; fix handling of internal visibility.
10573 (function_and_variable_visibility): Likewise.
10575 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
10577 PR rtl-optimization/45394
10578 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
10579 (struct rtx_subst_pair): Remove AFTER field.
10580 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
10581 (propagate_for_debug): Remove MOVE parameter and adjust.
10582 (try_combine): In the special case where I2 is a PARALLEL, combine only
10583 destinations of SETs and set I2SRC to the I2 source.
10584 Adjust calls to propagate_for_debug throughout.
10585 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
10588 2010-10-06 Olivier Hainque <hainque@adacore.com>
10590 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
10591 switch on insn codes as sequence of ifs.
10593 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
10595 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
10596 be UI_NONE for picochip.
10597 (picochip_option_override): Do not disable exception flags.
10598 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
10601 2010-10-06 Richard Guenther <rguenther@suse.de>
10603 * Makefile.in (regmove.o): Depend on $(TARGET_H).
10605 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
10607 Implemented fast enumeration for Objective-C.
10608 * c-parser.c (objc_could_be_foreach_context): New.
10609 (c_lex_one_token): Recognize RID_IN keyword in a potential
10610 Objective-C foreach context.
10611 (c_parser_declaration_or_fndef): Added parameter. Accept
10612 Objective-C RID_IN keyword as terminating a declaration; in that
10613 case, return the declaration in the new parameter.
10614 (c_parser_extenral_declaration): Updated calls to
10615 c_parser_declaration_or_fndef.
10616 (c_parser_declaration_or_fndef): Same change.
10617 (c_parser_compound_statement_nostart): Same change.
10618 (c_parser_label): Same change.
10619 (c_parser_objc_methodprotolist): Same change.
10620 (c_parser_omp_for_loop): Same change.
10621 (c_parser_for_statement): Detect and parse Objective-C foreach
10623 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
10624 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
10625 fast enumeration parsing code to turn off the c99 error but still
10626 perform checks on the loop declarations.
10627 * c-tree.h (check_for_loop_decls): Updated declaration.
10628 * doc/objc.texi: Document fast enumeration.
10630 2010-10-06 Nick Clifton <nickc@redhat.com>
10632 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
10633 (MDR_REGNUM): Define.
10634 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
10635 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
10636 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
10637 (REGISTER_NAMES): Add MDR.
10638 (DWARF2_DEBUGGING_INFO): Define to 1.
10639 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10640 (F): New function. Sets RTX_FRAME_RELATED_P.
10641 (mn10300_gen_multiple_store): Use F.
10642 (expand_prologue): Use F. Use gen_movsf() to push floating
10644 (expand_epilogue): Use gen_movsf() to pop floating point registers.
10645 (mn10300_option_override): Disable combine stack adjust pass.
10647 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
10650 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
10651 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
10653 2010-10-06 Jakub Jelinek <jakub@redhat.com>
10655 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
10656 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
10657 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
10658 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
10659 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
10660 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
10661 BUILT_IN_TOUPPER): Mark as leaf.
10663 PR middle-end/45838
10664 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10665 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10666 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10667 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10668 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
10669 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
10670 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
10672 2010-10-05 Anatoly Sokolov <aesok@post.ru>
10674 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
10675 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10676 (m68hc11_class_likely_spilled_p): New function.
10678 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
10680 * c-parser.c (c_parser_objc_method_definition): Updated comment.
10682 2010-10-05 Jan Hubicka <jh@suse.cz>
10684 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
10686 * opts.c (decode_options): Handle lto partitions.
10687 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
10688 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
10690 2010-10-05 Jan Hubicka <jh@suse.cz>
10692 * cgraphunit.c (assemble_function): Output thunks and aliases before
10693 the function itself.
10695 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
10697 * config/picochip/picochip.c (picochip_option_override): Disable
10698 exception flags for picochip.
10700 2010-10-05 Joseph Myers <joseph@codesourcery.com>
10702 * opts-common.c (handle_option, handle_generated_option,
10703 read_cmdline_option, set_option): Add diagnostic_context
10704 parameter. Update calls among these functions.
10705 (set_option): Don't use global_dc.
10706 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
10707 (decode_options): Pass global_dc to enable_warning_as_error.
10708 (common_handle_option): Pass global_dc to enable_warning_as_error.
10709 (enable_warning_as_error): Add diagnostic_context parameter.
10710 Document parameters. Don't use global_dc. Pass
10711 diagnostic_context parameter to handle_generated_option.
10712 * opts.h (set_option, handle_option, handle_generated_option,
10713 read_cmdline_option, enable_warning_as_error): Add
10714 diagnostic_context parameter.
10715 * Makefile.in (lto-opts.o): Update dependencies.
10716 * coretypes.h (struct diagnostic_context, diagnostic_context):
10718 * diagnostic.h (diagnostic_context): Don't declare typedef here.
10719 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
10720 * langhooks-def.h (struct diagnostic_context): Don't declare here.
10721 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
10722 using diagnostic_context typedef.
10723 * langhooks.c (lhd_initialize_diagnostics): Declare using
10724 diagnostic_context typedef.
10725 * langhooks.h (struct diagnostic_context): Don't declare here.
10726 (initialize_diagnostics, print_error_function): Declare using
10727 diagnostic_context typedef.
10728 * lto-opts.c: Include diagnostic.h.
10729 (lto_reissue_options): Pass global_dc to set_option. Pass
10730 DK_UNSPECIFIED not 0.
10731 * plugin.c (plugins_internal_error_function): Declare using
10732 diagnostic_context typedef.
10733 * plugin.h (struct diagnostic_context): Don't declare here.
10734 (plugins_internal_error_function): Declare using
10735 diagnostic_context typedef.
10737 2010-10-05 Olivier Hainque <hainque@adacore.com>
10738 Nicolas Roche <roche@adacore.com>
10740 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
10741 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
10743 2010-10-05 Ira Rosen <irar@il.ibm.com>
10745 PR tree-optimization/45752
10746 * tree-vect-slp.c (vect_get_mask_element): Remove static
10747 variables, make them function arguments.
10748 (vect_transform_slp_perm_load): Pass new arguments to
10749 vect_get_mask_element.
10751 2010-10-05 Richard Guenther <rguenther@suse.de>
10753 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
10754 (gimple_mod_pow2): Likewise.
10755 (gimple_mod_subtract): Likewise.
10756 (gimple_ic): Likewise.
10757 (gimple_stringop_fixed_value): Likewise.
10758 * tree-profile.c (tree_init_edge_profiler): Mark profile
10759 functions nothrow and leaf.
10760 (add_abnormal_goto_call_edges): Remove.
10761 (tree_gen_edge_profiler): Work on SSA form.
10762 (tree_gen_ic_profiler): Likewise. Simplify.
10763 (do_tree_profiling): Update SSA form.
10764 (pass_tree_profile): Remove.
10765 (do_tree_profiling): Likewise.
10766 (gate_tree_profile_ipa): New function.
10767 (pass_ipa_tree_profile): New.
10768 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
10769 state of instrumented functions.
10770 * passes.c (init_optimization_passes): Remove early non-SSA
10771 inlining. Move profiling after early optimizations.
10772 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
10773 (pass_ipa_early_inline): Likewise.
10774 * tree-pass.h (pass_ipa_early_inline): Remove.
10775 (pass_tree_profile): Likewise.
10776 (pass_ipa_tree_profile): Declare.
10778 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10779 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
10781 * config/s390/s390.c (z196_cost): New.
10782 (s390_handle_arch_option): Add -march=z196.
10783 (s390_option_override): Use the new cost function and use the z10
10784 defaults also for z196.
10785 (legitimate_reload_constant_p): Adjust comment.
10786 (legitimate_reload_fp_constant_p): New function.
10787 (s390_preferred_reload_class): Distingiush between FP and Int constants.
10788 (preferred_la_operand_p): Avoid la with index on z196.
10789 (s390_adjust_priority): Trigger also for z196.
10790 (s390_issue_rate): Issue rate for z196 is 3.
10791 (s390_z10_fix_long_loop_prediction): Rename to ...
10792 (s390_fix_long_loop_prediction): ... this.
10793 (s390_reorg): Apply the z10 adjustments also for z196.
10794 (s390_loop_unroll_adjust): Do this also for z196.
10795 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
10796 (enum processor_flags): Add PF_Z196.
10797 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
10798 (TARGET_CPU_Z196, TARGET_Z196): New macros.
10799 * config.gcc: Enable z196 for --with-arch.
10800 * config/s390/2817.md: New file.
10801 * config/s390/2084.md: New type for multiply and add.
10802 * config/s390/2097.md: Likewise.
10803 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
10804 (UNSPECV_ATOMIC_OP): New constants.
10805 (fmadddf, fmaddsf): New values for type attribute.
10806 (z196prop): New insn attribute.
10807 (cpu, cpu_facility): Add z196.
10808 (ATOMIC_Z196): New code iterator.
10809 (noxa): New code attribute.
10810 (gk): New mode attribute.
10811 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
10812 Support load zero for fp constants.
10813 (fixuns_truncdddi2, fixuns_trunctddi2)
10814 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
10816 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
10817 (popcounthi2, popcountqi2): New expander.
10818 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
10819 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
10820 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
10822 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
10823 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
10824 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
10825 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
10826 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
10827 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
10828 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
10829 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
10830 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
10831 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
10832 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
10833 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
10834 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
10835 Support new z196 instructions.
10837 2010-10-05 Richard Guenther <rguenther@suse.de>
10839 PR middle-end/45877
10840 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
10841 case where gimplification optimizes away the stmt.
10843 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10846 * var-tracking.c (strip_pointer_flags): New function.
10847 (emit_note_insn_var_location): If rtx_equal_p check failed,
10848 retry on locations simplified with simplify_replace_fn_rtx
10849 and strip_pointer_flags as its callback.
10851 2010-10-04 Jan Hubicka <jh@suse.cz>
10853 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
10854 (can_refer_decl_in_current_unit_p): ... this one; reverse return
10855 value; handle comdats too.
10856 (canonicalize_constructor_val): Use it; handle function_decls
10858 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10859 * gimple.c (get_base_address): Accept all kinds of decls.
10861 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10863 * flags.h (g_switch_value, g_switch_set): Remove.
10864 * opts.c (g_switch_value, g_switch_set): Remove.
10865 * config/g.opt (G): Add Var(g_switch_value).
10866 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
10867 (alpha_option_override): Check global_options_set.x_g_switch_value
10868 instead of g_switch_set.
10869 (alpha_in_small_data_p): Remove cast in comparison with
10871 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
10872 g_switch_value to unsigned HOST_WIDE_INT.
10873 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
10874 with g_switch_value.
10875 (frv_handle_option): Don't handle -G here.
10876 (frv_option_override): Check global_options_set.x_g_switch_value
10877 instead of g_switch_set. Don't modify g_switch_set.
10878 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
10879 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
10880 g_switch_value to unsigned HOST_WIDE_INT.
10881 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
10882 (ia64_option_override): Check global_options_set.x_g_switch_value
10883 instead of g_switch_set.
10884 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
10886 (lm32_in_small_data_p): Remove cast in comparison with
10888 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
10889 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
10891 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
10892 (m32r_init): Check global_options_set.x_g_switch_value instead of
10894 (m32r_in_small_data_p): Remove cast in comparison with
10896 (m32r_file_start): Format g_switch_value with %d.
10897 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
10898 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
10899 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
10901 (microblaze_option_override): Check
10902 global_options_set.x_g_switch_value instead of g_switch_set.
10903 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
10904 (mips_option_override): Check global_options_set.x_g_switch_value
10905 instead of g_switch_set.
10906 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
10907 (rs6000_file_start): Format g_switch_value with %d.
10908 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
10909 comparisons with g_switch_value.
10910 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
10911 global_options_set.x_g_switch_value instead of g_switch_set.
10912 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10913 global_options_set.x_g_switch_value instead of g_switch_set.
10914 * config/score/score.c (score_handle_option): Don't handle -G here.
10915 * config/score/score3.c (score3_option_override): Check
10916 global_options_set.x_g_switch_value instead of g_switch_set.
10917 * config/score/score7.c (score7_option_override): Check
10918 global_options_set.x_g_switch_value instead of g_switch_set.
10920 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10922 * common.opt (fira-coalesce): Remove.
10924 * doc/invoke.texi (flag_ira_coalesce): Remove.
10926 * ira-color.c (allocno_coalesced_p): Move before
10927 copy_freq_compare_func.
10928 processed_coalesced_allocno_bitmap): Ditto.
10929 (update_conflict_hard_regno_costs): Don't use
10930 ALLOCNO_FIRST_COALESCED_ALLOCNO.
10931 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
10932 (assign_hard_reg): Assume no coalesced allocnos.
10933 (get_coalesced_allocnos_attributes): Remove.
10934 (bucket_allocno_compare_func): Assume no coalesced allocnos.
10935 (push_allocno_to_stack): Ditto.
10936 (remove_allocno_from_bucket_and_push): Use
10937 ira_print_expanded_allocno instead of print_coalesced_allocno.
10938 (push_allocnos_to_stack): Assume uncoalesced allocnos.
10939 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
10940 all_conflicting_hard_regs.
10941 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
10942 (setup_allocno_left_conflicts_size): Ditto.
10943 (put_allocno_into_bucket): Ditto.
10944 (copy_freq_compare_func): Remove.
10945 (copy_freq_compare_func, merge_allocnos): Move before
10946 coalesced_pseudo_reg_freq_compare.
10947 coalesced_allocno_conflict_p): Ditto.
10948 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
10949 parameter. Assume it true.
10950 (color_allocnos): Assume uncoalesced allocnos. Use
10951 ira_print_expanded_allocno instead of print_coalesced_allocno.
10952 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
10955 * ira.c: Remove comment about coalescing.
10957 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10959 * config/mips/mips.h (target_flags_explicit): Declare for
10962 2010-10-04 Andi Kleen <ak@linux.intel.com>
10964 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
10965 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
10967 2010-10-04 Matthias Klose <doko@ubuntu.com>
10969 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
10970 multilib osdirname if it exists.
10971 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
10973 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10975 PR middle-end/45876
10976 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
10977 arg0's type or its unsigned counterpart as utype. Convert
10978 arg1 to utype unconditionally.
10980 2010-10-04 Julian Brown <julian@codesourcery.com>
10982 * expr.c (expand_assignment): Add assertion to prevent emitting
10983 null rtx for movmisalign pattern.
10984 (expand_expr_real_1): Likewise.
10985 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
10986 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
10987 (arm_vector_alignment_reachable): New.
10988 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
10989 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
10990 (arm_print_operand): Include alignment qualifier in %A.
10991 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
10992 (movmisalign<mode>): New expander.
10993 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
10996 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10998 * optc-gen.awk: Define global_options_set. Don't define
10999 target_flags_explicit.
11000 * opth-gen.awk: Declare global_options_set. Define
11001 target_flags_explicit as macro.
11002 * opts-common.c (handle_option): Take opts_set and generated_p
11004 (handle_generated_option, read_cmdline_option, set_option): Take
11005 opts_set parameter.
11006 (set_option): Use opts_set instead of hardcoding target_flags and
11007 target_flags_explicit.
11008 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
11009 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
11010 flag_value_profile_transformations_set, flag_peel_loops_set,
11011 flag_branch_probabilities_set, flag_inline_functions_set,
11012 flag_ipa_cp_set, flag_ipa_cp_clone_set,
11013 flag_predictive_commoning_set, flag_unswitch_loops_set,
11014 flag_gcse_after_reload_set): Remove.
11015 (common_handle_option, lang_handle_option, target_handle_option):
11016 Take opts_set parameter. Assert that it is &global_options_set.
11017 (common_handle_option): Don't set _set variables. Check opts_set
11018 instead of such variables.
11019 (enable_warning_as_error): Pass &global_options_set to
11020 handle_generated_option.
11021 * opts.h (cl_option_handler_func.handler, set_option,
11022 handle_option, handle_generated_option, read_cmdline_option): Add
11023 opts_set parameters.
11024 (handle_option): Add generated_p parameter.
11025 * config/i386/i386.c (ix86_function_specific_save,
11026 ix86_function_specific_restore): Updat for renaming of
11027 target_flags_explicit field.
11028 * config/i386/i386.opt (target_flags_explicit): Rename to
11029 ix86_target_flags_explicit.
11030 * config/ia64/ia64.c (ia64_override_options_after_change): Check
11031 global_options_set.x_flag_selective_scheduling and
11032 global_options_set.x_flag_selective_scheduling2, not
11033 sel_sched_switch_set.
11034 * flags.h (sel_sched_switch_set,
11035 flag_speculative_prefetching_set): Remove.
11036 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
11037 that it is &global_options_set.
11038 (process_command): Pass &global_options_set to read_cmdline_option.
11039 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
11041 * toplev.c (target_flags_explicit): Remove.
11043 2010-10-04 Jan Hubicka <jh@suse.cz>
11045 PR middle-end/45871
11046 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
11047 use get_ref_base_and_offset to handle references.
11048 (fold_const_aggregate_ref): Update.
11050 2010-10-04 Martin Jambor <mjambor@suse.cz>
11052 PR tree-optimization/45572
11053 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
11054 ipa_check_create_node_params.
11055 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
11057 2010-10-04 Yao Qi <yao@codesourcery.com>
11059 * doc/passes.texi: Clean up.
11061 2010-10-03 Ian Lance Taylor <iant@google.com>
11063 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
11064 referring to a field using a typedef name.
11065 (find_anonymous_field_with_type): New static function.
11066 (convert_to_anonymous_field): New static function.
11067 (convert_for_assignment): If -fplan9-extensions, permit converting
11068 pointer to struct to pointer to anonymous field.
11069 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
11070 (is_duplicate_field): New static function.
11071 (detect_field_duplicates_hash): If -fplan9-extensions, check for
11072 typedef names duplicating field names.
11073 (detect_field_duplicates): Likewise.
11074 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
11075 (C Dialect Options): Document -fplan9-extensions.
11076 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
11078 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
11080 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
11082 (vect_create_data_ref_ptr): Likewise.
11083 * tree-vect-stmts.c (vectorizable_store): Likewise.
11084 (perm_mask_for_reverse): Likewise.
11085 (reverse_vec_elements): Likewise.
11086 (vectorizable_load): Likewise.
11088 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11090 * cppbuiltin.c: New file.
11091 * cppbuiltin.h: New file.
11092 * Makefile.in: Take into account cppbuiltin.{h,c}.
11094 2010-10-03 Andi Kleen <ak@linux.intel.com>
11096 * lto-cgraph.c (input_cgraph): Check for missing sections.
11098 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
11100 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
11101 to nonimmediate_operand. Force operand 2 to register when allowed.
11102 (*<shiftrt_insn><mode>3_mask): Ditto.
11103 (*<rotate_insn><mode>3_mask): Ditto.
11105 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
11107 PR tree-optimization/45720
11108 PR tree-optimization/45764
11109 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11110 Don't accept backwards consecutive accesses.
11111 (vect_create_data_ref_ptr): Disallow negative steps.
11113 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
11114 (perm_mask_for_reverse): Removed.
11115 (reverse_vec_elements): Likewise.
11116 (vectorizable_load): Don't handle negative steps.
11118 2010-10-02 Jan Hubicka <jh@suse.cz>
11120 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
11121 call destination is known.
11123 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11126 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
11129 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11131 * doc/install.texi (Configuration): Document build_configargs,
11132 host_configargs, target_configargs.
11134 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
11136 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
11137 (*<shiftrt_insn><mode>3_mask): Ditto.
11138 (*<rotate_insn><mode>3_mask): Ditto.
11140 2010-10-01 Steve Ellcey <sje@cup.hp.com>
11142 PR tree-optimization/44716
11143 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11144 (HOT_TEXT_SECTION_NAME): Define.
11146 2010-10-01 Nick Clifton <nickc@redhat.com>
11148 * common.opt: Add -fcombine-stack-adjustments.
11149 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
11150 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
11151 flag_combine_stack_adjustments.
11152 * doc/invoke.texi: Document the new option.
11154 2010-10-01 Richard Guenther <rguenther@suse.de>
11156 PR tree-optimization/45854
11157 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
11159 2010-10-01 Anthony Green <green@moxielogic.com>
11161 * config.gcc: Fix moxie-*-rtems* configuration.
11163 2010-10-01 Richard Guenther <rguenther@suse.de>
11165 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
11166 (gen_decl_die): Likewise.
11168 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11170 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
11171 to the function code for SPU MD builtins.
11172 (spu_expand_builtin): Update.
11173 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
11175 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11177 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
11178 sjlj_except_unwind_info.
11180 2010-10-01 Tristan Gingold <gingold@adacore.com>
11182 * configure.ac: Define the nop insn for avr*-*-*
11183 * configure: Regenerate.
11185 2010-10-01 Alan Modra <amodra@gmail.com>
11188 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
11189 extend toc_restore_insn.
11191 2010-09-30 Richard Guenther <rguenther@suse.de>
11193 PR tree-optimization/43959
11194 * function.c (gimplify_parameters): Use create_tmp_reg instead of
11197 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
11199 * config/sh/sh.c (sh_expand_prologue): Set
11200 current_function_static_stack_size.
11202 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11204 * configure.ac: Check for Solaris 8 ld with .hidden support.
11205 * configure: Regenerate.
11207 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11209 PR middle-end/45758
11210 * graphite.c (graphite_initialize): Call scev_reset.
11212 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11214 * sese.h (scev_analyzable_p): Return false for real or floating
11215 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
11217 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11219 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
11221 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
11223 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
11224 Do not allocate ub_expr, it is passed in initialized.
11226 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11228 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
11229 (build_cloog_prog): Dump CLooG input file when
11230 flag_graphite_dump_cloog is set. This is disabled on trunk.
11231 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
11233 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11235 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
11236 verify_dominators for CDI_POST_DOMINATORS.
11237 * sese.h: Remove comment about CDI_POST_DOMINATORS.
11238 (recompute_all_dominators): Remove call to free_dominance_info
11239 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
11240 for CDI_POST_DOMINATORS.
11242 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11244 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
11245 over pbb_dim_iter_domain.
11247 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11249 * graphite-flattening.c: Fix comments.
11251 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11253 * Makefile.in (OBJS-common): Add graphite-flattening.o.
11254 (graphite-flattening.o): New rule.
11255 * common.opt (floop-flatten): New flag.
11256 * doc/invoke.texi (-floop-flatten): Documented.
11257 * graphite-flattening.c: New.
11258 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
11259 * graphite-poly.h (flatten_all_loops): Declared.
11260 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
11261 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
11262 is set, also set flag_graphite.
11264 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11266 * graphite-poly.c (cloog_checksum): New.
11267 * graphite-poly.h (cloog_checksum): Declared.
11269 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11271 * graphite-poly.c (pbb_number_of_iterations): Removed.
11272 (pbb_number_of_iterations_at_time): Correctly compute the number
11273 of iterations in the transformed loop.
11274 * graphite-poly.h (pbb_number_of_iterations): Removed.
11276 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11278 * graphite-poly.h (lst_update_scattering_seq): Removed.
11279 (lst_update_scattering): Correctly handle outermost loop dewey
11282 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11284 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
11285 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
11286 * graphite-poly.h (lst_niter_for_loop): New.
11288 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11290 * graphite-poly.c (apply_poly_transforms): Do not abort when the
11291 transform read from disk is not legal. Call fatal_error instead.
11293 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11295 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
11296 (print_scop_header): Removed. Inlined in the only call place...
11297 (print_scop): ... here.
11299 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11301 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
11303 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11305 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
11307 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11309 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
11310 (dot_deps_stmt): Same.
11311 * graphite-poly.c (dot_lst): Same.
11313 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11315 * graphite-blocking.c (scop_do_strip_mine): Do not call
11316 graphite_legal_transform.
11317 (scop_do_block): Same.
11319 2010-09-30 Vladimir Kargov <kargov@gmail.com>
11321 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
11324 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11326 * tree-scalar-evolution.c (instantiate_array_ref): New.
11327 (instantiate_scev_r): Also handle ARRAY_REFs.
11329 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11331 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11332 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
11333 RESULT_DECL, and FIELD_DECL. Return false for an
11334 SSA_NAME_IS_DEFAULT_DEF.
11335 (compute_scalar_evolution_in_loop): Do not further analyze the
11336 scalar evolution when no_evolution_in_loop_p returns true.
11338 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11340 * tree-chrec.h (evolution_function_is_affine_p): Do not check
11341 whether CHREC_LEFT is invariant. A function is affine when
11342 CHREC_RIGHT is invariant.
11344 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11346 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
11348 (rewrite_degenerate_phi): Same.
11349 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
11351 2010-09-30 Vladimir Kargov <kargov@gmail.com>
11353 * graphite-scop-detection.c (graphite_can_represent_scev,
11354 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
11355 graphite_can_represent_loop): Remove outermost_loop.
11357 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11359 PR middle-end/45229
11360 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
11361 handle GIMPLE_CALLs with no LHS.
11363 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11365 * graphite-poly.c (init_graphite_out_file): New.
11366 (init_graphite_in_file): New.
11367 (apply_poly_transforms): Updated to enable reading and writing of
11368 multiple scop files.
11370 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
11372 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
11375 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11377 * graphite-clast-to-gimple.c (precision_for_value): Adjust
11378 computation of precision by 1.
11380 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11382 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
11383 (openscop_read_polyhedron_matrix): New.
11384 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
11385 (openscop_read_N_int): Same.
11386 * graphite-poly.c (openscop_read_N_int): New.
11387 (openscop_read_one_int): New.
11388 (openscop_read_N_string): New.
11389 (openscop_read_one_string): New.
11390 (openscop_read_powerset_matrix): New.
11391 (graphite_read_transforms): Remove.
11392 (graphite_read_scatt): New.
11393 (graphite_read_scop_file): New.
11394 (apply_poly_transforms): Updated to call graphite_read_scop_file.
11396 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11398 * graphite-poly.c: Change include order.
11400 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11402 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
11403 (cloog_matrix_nrows): New.
11405 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11407 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
11409 * graphite-poly.c (openscop_print_scattering_function_1): Same.
11410 (print_scattering_function_1): Same.
11411 (openscop_print_pbb_domain): Same.
11412 (openscop_print_scop_context): Same.
11413 (print_scop_context): Same.
11415 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
11417 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
11418 (openscop_print_pdr_polyhedron): Print pph.
11420 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11422 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
11423 priority signed types.
11425 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11427 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
11428 the call to lang_hooks.types.type_for_size. Call
11429 build_nonstandard_integer_type.
11431 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11433 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
11434 (openscop_print_polyhedron_matrix): New.
11435 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
11436 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
11437 (openscop_print_pdr_powerset): New.
11438 (openscop_print_powerset_matrix): New.
11439 (openscop_print_scattering_function_1): New.
11440 (print_scattering_function): Add support for scattering names and
11442 (graphite_write_transforms): Remove.
11443 (print_pdr_access_layout): Updated to support OpenScop format.
11445 (openscop_print_pbb_domain): New.
11446 (print_pbb_body): Added a parameter to allow indicating that pbb_body
11448 (print_pbb): Updated to call the new print_pbb_body.
11449 (openscop_print_scop_context): New.
11450 (print_scop_header): New.
11451 (print_scop): Updated to call print_scop_header.
11452 * graphite-poly.h: Document OpenScop format.
11454 2010-09-30 Anatoly Sokolov <aesok@post.ru>
11456 * config/cris/m32c.c (cris_memory_move_cost): New.
11457 (cris_register_move_cost): Make static. Change arguments type from
11458 enum reg_class to reg_class_t.
11459 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11460 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11461 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
11463 2010-09-30 Jakub Jelinek <jakub@redhat.com>
11466 * config/i386/i386.c (ix86_gimplify_va_arg): Use
11467 INTVAL (XEXP (slot, 1)) as prev_size.
11469 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
11472 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
11473 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
11475 * config/rs6000/option-defaults.h (toplevel): Change #if
11476 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
11477 global option changes.
11479 2010-09-30 Jakub Jelinek <jakub@redhat.com>
11481 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
11483 PR tree-optimization/31261
11484 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
11485 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
11487 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11490 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
11491 special-casing for generators and turn into ...
11492 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
11493 rule, for better error messages in case of toplevel dependency errors.
11494 (genprog): Add hooks, rename to ...
11495 (genprogerr): ... this, and let genprog also contain check,
11497 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
11498 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
11499 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
11501 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
11502 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11504 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
11505 for GMP, MPFR and MPC.
11507 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11509 * config/sparc/sparc.opt (mimpure-text): Move ...
11510 * config/sol2.opt: ... here. Correct description.
11511 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
11512 * doc/invoke.texi (Option Summary, SPARC Options): Move
11513 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
11514 (Option Summary, Solaris 2 Options): ... here.
11515 (Submodel Options, Solaris 2 Options): New menu entry.
11516 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
11517 (Solaris 2 Options): ... here.
11519 2010-09-30 Michael Eager <eager@eagercon.com>
11521 * extend.texi (interrupt_handler): Add MicroBlaze to list.
11522 (save_volatiles): Describe option for MicroBlaze.
11523 * invoke.texi: Add MicroBlaze Options.
11524 * contrib.texi: Add acknowledgment.
11525 * md.texi: Add MicroBlaze d and z constraints.
11526 * install.texi: Add microblaze-*-elf.
11527 * configure.ac: Add microblaze-*-* to target list.
11528 * configure: Regenerate.
11529 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
11530 * config/microblaze/microblaze-protos.h: New.
11531 * config/microblaze/crti.s: New.
11532 * config/microblaze/predicates.md: New.
11533 * config/microblaze/linux.h: New.
11534 * config/microblaze/microblaze.md: New.
11535 * config/microblaze/constraints.md: New.
11536 * config/microblaze/crtn.s: New.
11537 * config/microblaze/microblaze.opt: New.
11538 * config/microblaze/microblaze-c.c: New.
11539 * config/microblaze/t-microblaze: New.
11540 * config/microblaze/microblaze.c: New.
11541 * config/microblaze/microblaze.h: New.
11543 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
11545 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
11546 parse @optional/@required and set the flags as appropriate.
11548 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
11550 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
11552 2010-09-30 Joseph Myers <joseph@codesourcery.com>
11554 * opt-functions.awk (static_var): Update comment.
11555 (var_ref): Return offsetof expression or -1, not variable address.
11556 * optc-gen.awk: Generate structure field initializers instead of
11557 static variables. Expect -1 for missing variables instead of null
11558 pointer. Add gcc_options parameters to generated functions.
11559 * opth-gen.awk: Generate structure fields for static variables.
11560 Add gcc_options parameters to generated functions.
11561 * common.opt (optimize, optimize_size): Add variables.
11562 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
11563 &global_options to cl_target_option_restore.
11564 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
11565 &global_options to cl_optimization_restore, cl_target_option_save
11566 and cl_target_option_restore.
11567 (ix86_set_current_function): Pass &global_options to
11568 cl_target_option_restore.
11569 * config/pdp11/pdp11.h (optimize): Remove.
11570 * config/rs6000/rs6000.h (optimize): Remove.
11571 * config/sh/sh.h (optimize): Remove.
11572 * config/xtensa/xtensa.h (optimize): Remove.
11573 * coretypes.h (struct gcc_options): Declare.
11574 * diagnostic.c (diagnostic_initialize): Initialize
11575 context->option_state.
11576 (diagnostic_report_diagnostic): Pass option_state to
11577 option_enabled hook.
11578 * diagnostic.h (diagnostic_context.option_enabled): Add void *
11580 (diagnostic_context.option_state): New field.
11581 * final.c (final_start_function, final, final_scan_insn): Rename
11582 optimize parameter to optimize_p.
11583 * flags.h (optimize, optimize_size): Remove.
11584 * function.c (invoke_set_current_function_hook): Pass
11585 &global_options to cl_optimization_restore.
11586 * gcc.c (driver_handle_option): Take gcc_options parameter.
11587 Assert that it is &global_options.
11588 (process_command): Pass &global_options to read_cmdline_option.
11589 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
11591 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
11592 &global_options to set_option.
11593 * opts-common.c (handle_option, handle_generated_option,
11594 read_cmdline_option, set_option): Take explicit gcc_options
11595 parameters. Use option_flag_var.
11596 (option_flag_var): New.
11597 * opts.c (common_handle_option, lang_handle_option,
11598 target_handle_option): Take gcc_options parameter. Assert that it
11599 is &global_options.
11600 (read_cmdline_options): Pass &global_options to read_cmdline_option.
11601 (print_filtered_help): Use option_flag_var. Pass &global_options
11603 (common_handle_option): Use option_flag_var.
11604 (option_enabled): Take opts parameter. Use option_flag_var.
11605 (get_option_state): Take gcc_options parameter. Use
11606 option_flag_var. Pass gcc_options parameter to option_enabled.
11607 (enable_warning_as_error): Pass &global_options to
11608 handle_generated_option.
11609 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
11610 (cl_option_handler_func.handler): Take gcc_options parameter.
11611 (option_enabled, get_option_state, set_option, handle_option,
11612 handle_generated_option, read_cmdline_option): Take gcc_options
11614 * toplev.c (optimize, optimize_size): Remove.
11615 (print_switch_values): Pass &global_options to option_enabled.
11616 (option_affects_pch_p): Use option_flag_var. Pass &global_options
11617 to get_option_state.
11618 (general_init): Initialize global_dc->option_state.
11619 * tree.c (build_optimization_node): Pass &global_options to
11620 cl_optimization_save.
11621 (build_target_option_node): Pass &global_options to
11622 cl_target_option_save.
11624 2010-09-30 Martin Jambor <mjambor@suse.cz>
11626 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
11627 zero sized bit-fields.
11629 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
11631 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
11632 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
11633 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
11634 (c_parser_objc_class_declaration): Same change.
11635 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
11636 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
11637 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
11638 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
11639 and RID_AT_PUBLIC instead of RID_PUBLIC.
11640 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
11641 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
11643 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
11645 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
11646 Add links to current providers of packages for Solaris and IRIX.
11648 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11650 Merge from 'apple/trunk' branch on FSF servers.
11651 * c-parser.c: Applied change originally in c-parse.in.
11653 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
11656 * c-decl.c (start_decl): Check for redeclaration of class name.
11657 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
11659 2010-09-29 Steve Ellcey <sje@cup.hp.com>
11661 * config/ia64/ia64.c (ia64_builtin_decl): New.
11662 (TARGET_BUILTIN_DECL): Define.
11663 (ia64_builtins): New.
11664 (ia64_init_builtins): Save decls in ia64_builtins.
11666 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
11669 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
11670 (move2add_use_add3_insn): Likewise.
11671 (reload_cse_move2add): Likewise.
11672 * rtlanal.c (get_full_rtx_cost): New function.
11673 * rtl.h (struct full_rtx_costs): New.
11674 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
11675 costs_add_n_insns): New inline functions.
11676 (get_full_rtx_cost): Declare.
11679 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
11680 invariants. Check for reg_equiv_invariant.
11681 (reload): Assert that spilled_pseudos is empty when returning.
11683 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
11685 * config/i386/mingw32.h (TARGET_64BIT): replaced by
11686 TARGET_64BIT_DEFAULT in #if check.
11688 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
11690 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
11692 2010-09-29 Mike Stump <mikestump@comcast.net>
11694 * config/darwin.h (flag_mkernel): Remove.
11695 (flag_apple_kext): Likewise.
11697 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11698 Jack Howarth <howarth@bromo.med.uc.edu>
11700 * config/darwin.opt (undefined): Add.
11702 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
11705 * configure.ac: Add --enable-indirect-function option.
11706 * config.gcc: Add default_gnu_indirect_function.
11707 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
11708 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
11709 * varasm.c (do_assemble_alias): Adjust for macro name change.
11710 * configure: Rebuilt.
11711 * doc/install.texi: Document --enable-indirect-function.
11713 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11715 * doc/options.texi (Variable, Var, Init): Update documentation
11716 without reference to VarExists.
11717 (VarExists): Remove.
11718 * common.opt, config/i386/i386.opt, config/linux.opt,
11719 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
11720 Don't use VarExists.
11722 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11724 * optc-gen.awk: Generate global_options initializer instead of
11725 individual variables. Add x_ prefix to names of structure members.
11726 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
11727 names of structure members.
11728 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11729 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
11730 * doc/tm.texi: Regenerate.
11731 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11732 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11733 * c-parser.c (disable_extension_diagnostics,
11734 restore_extension_diagnostics): Update names of cpp_options members.
11735 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11736 * common.opt (fcompare-debug-second): Don't use Var.
11737 * config/alpha/alpha.h (target_flags): Remove.
11738 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11739 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11740 * config/bfin/bfin.h (target_flags): Remove.
11741 * config/cris/cris.h (target_flags): Remove.
11742 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
11743 cl_target_option members.
11744 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
11745 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
11746 ix86_can_inline_p): Update names of cl_target_option members.
11747 * config/i386/i386.h (ix86_isa_flags): Remove.
11748 * config/lm32/lm32.h (target_flags): Remove.
11749 * config/mcore/mcore.h (mcore_stack_increment): Remove.
11750 * config/mcore/mcore.md (addsi3): Remove extern declaration of
11751 flag_omit_frame_pointer.
11752 * config/mep/mep.h (target_flags): Remove.
11753 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11754 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11755 * config/mmix/mmix.h (target_flags): Remove.
11756 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
11757 flag_expensive_optimizations): Remove.
11758 * config/s390/s390.h (flag_pic): Remove.
11759 * config/score/score-conv.h (target_flags): Remove.
11760 * config/sh/sh.h (sh_fixed_range_str): Remove.
11761 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
11762 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11763 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11764 * diagnostic.c (diagnostic_initialize): Update names of
11765 diagnostic_context members.
11766 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
11767 warn_system_headers.
11768 (diagnostic_report_warnings_p): Update for new names.
11769 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11770 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
11771 HARD_FRAME_POINTER_IS_ARG_POINTER.
11772 * flags.h (flag_compare_debug): Declare.
11773 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11774 * opts.c (flag_compare_debug): Define.
11775 (common_handle_option): Update names of diagnostic_context
11776 members. Handle -fcompare-debug-second.
11777 (fast_math_flags_struct_set_p): Update names of cl_optimization
11779 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11780 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11781 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11782 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11783 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11784 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11785 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
11786 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11787 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11789 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
11791 * config/picochip/picochip.c (picochip_output_internal_label):
11792 This function can now be called for debug CFI labels, which can come
11793 in the middle of a vliw instruction. Postpone until end of vliw.
11795 2010-09-29 Richard Guenther <rguenther@suse.de>
11797 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
11798 (DECL_FILE_SCOPE_P): Use it.
11799 (TYPE_FILE_SCOPE_P): New macro.
11801 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11803 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
11804 a CPP_NAME which is a reserved word, clearly separate cases for
11805 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
11807 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11809 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
11810 token->value with the canonical spelling. Do exactly like C and
11811 C++ and leave it as it is.
11813 2010-09-28 Richard Henderson <rth@redhat.com>
11815 * config/alpha/alpha.c (alpha_builtins): New.
11816 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
11817 (alpha_builtin_function): New.
11818 (alpha_add_builtins, alpha_init_builtins): Use it.
11820 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
11822 * doc/standards.texi (Standards): Expanded the section on
11823 Objective-C and Objective-C++.
11825 2010-09-28 DJ Delorie <dj@redhat.com>
11828 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
11831 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11833 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
11834 attributes on methods.
11835 (c_parser_objc_method_definition): Handle attributes.
11836 (c_parser_objc_methodproto): Likewise.
11837 (c_parser_objc_maybe_method_attributes): New.
11838 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
11839 missing definition, similar to that in ObjC++.
11841 2010-09-28 Richard Henderson <rth@redhat.com>
11843 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
11844 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11845 (CONFIG_SJLJ_EXCEPTIONS): Remove.
11846 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
11847 (STACK_CHECK_PROTECT): Likewise.
11848 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
11849 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
11850 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
11851 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
11852 (dwarf2out_assembly_start): Likewise.
11853 * except.c (init_eh): Use targetm.except_unwind_info.
11854 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
11855 (output_one_function_exception_table): Likewise.
11856 * final.c: Unconditionally include dwarf2out.h.
11857 (final_start_function): Unconditionally call dwarf2out routines.
11858 (final_end_function, final_scan_insn): Likewise.
11859 * function.c (expand_function_end): Use targetm.except_unwind_info.
11860 * opts.c (decode_options): Use targetm.except_unwind_info.
11861 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
11862 * target.def (debug_unwind_info, except_unwind_info): New.
11863 * target.h (enum unwind_info_type): New.
11864 * targhooks.c (default_debug_unwind_info): New.
11865 (default_except_unwind_info): New.
11866 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
11867 * targhooks.h: Declare them.
11868 * tree-tailcall.c: Include "target.h"
11869 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
11870 * Makefile.in (tree-tailcall.o): Update.
11871 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
11872 (lhd_gcc_personality): Likewise.
11874 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
11875 (TARGET_EXCEPT_UNWIND_INFO): New.
11876 (DWARF2_UNWIND_INFO): Update.
11877 (TARGET_DEBUG_UNWIND_INFO): New.
11878 * doc/tm.texi: Rebuild.
11880 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
11881 targetm.except_unwind_info.
11883 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
11884 (arm_except_unwind_info): New.
11885 (arm_compute_func_type): Use it.
11886 (arm_expand_prologue, thumb_pushpop): Likewise.
11887 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
11888 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
11889 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
11890 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
11891 (DWARF2_UNWIND_INFO): Remove.
11892 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11893 (ARM_EABI_UNWIND_TABLES): Remove.
11895 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
11896 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
11897 (ia64_except_unwind_info): New.
11898 (ia64_output_function_prologue): Use it.
11899 (ia64_add_bundle_selector_before): Likewise.
11900 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
11901 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
11902 (TARGET_UNWIND_INFO): Remove.
11904 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
11906 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11908 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
11909 (c_parser_objc_protocol_definition): Likewise.
11910 (c_parser_external_declaration): Provide dummy attribute arguments.
11911 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
11912 (c_parser_objc_class_definition): Handle attributes.
11913 (c_parser_objc_protocol_definition): Likewise.
11915 2010-09-28 Tobias Burnus <burnus@net-b.de>
11919 * toplev.h (save_decoded_options, save_decoded_options_count):
11920 New global variables.
11921 * toplev.c (save_decoded_options, save_decoded_options_count):
11924 2010-09-28 Ian Lance Taylor <iant@google.com>
11926 * config/i386/i386.c (ix86_supports_split_stack): Test
11927 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
11929 2010-09-28 Ian Lance Taylor <iant@google.com>
11932 * opts.c (decode_options): Don't test whether the target supports
11933 split stack if flag_split_stack == 0.
11935 2010-09-28 Jan Hubicka <jh@suse.cz>
11937 * builtin-attrs.def (ATTR_LEAF): New attribute.
11938 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
11939 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
11940 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
11941 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
11942 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
11943 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
11944 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
11945 * sync-builtins.def: Annotate all builtins by leaf.
11946 * omp-builtins.def: Annotate all builtins by leaf.
11947 * builtins.def: Annotate relevant builtins with leaf attribute.
11948 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11949 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
11952 2010-09-28 Jan Hubicka <jh@suse.cz>
11954 * tree-ssa-ccp.c (fold_ctor_reference): New function.
11955 (fold_const_aggregate_ref): Use it.
11956 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
11957 into external static.
11959 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11962 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
11963 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
11964 (ix86_solaris_return_in_memory): Remove.
11965 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
11966 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11967 (TARGET_SUBTARGET_DEFAULT): Redefine.
11968 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
11969 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11970 (TARGET_SUBTARGET_DEFAULT): Redefine.
11971 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
11972 -mvect8-ret-in-mem.
11973 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
11975 2010-09-29 Alan Modra <amodra@gmail.com>
11978 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
11979 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
11980 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
11982 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
11983 (rs6000_emit_prologue): Don't just create frame save info for r2,
11986 2010-09-28 Richard Henderson <rth@redhat.com>
11988 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
11989 when 8 bytes are requested.
11991 2010-09-28 Tristan Gingold <gingold@adacore.com>
11993 * config/avr/avr.c (expand_prologue): Set
11994 current_function_static_stack_size.
11996 2010-09-28 Tristan Gingold <gingold@adacore.com>
11998 * config/alpha/alpha.md: Change the initial condition of the
12001 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
12003 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
12004 Split from *avx_<maxmin:code><mode>3.
12005 (*avx_<smaxmin:code><mode>3): Ditto.
12006 * config/i386/i386.md (maxmin): Remove code iterator.
12008 2010-09-27 Ian Lance Taylor <iant@google.com>
12010 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
12011 requires assembler support for CFI directives.
12013 2010-09-27 Richard Henderson <rth@redhat.com>
12015 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
12017 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
12019 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
12020 that AFTER is not in the range FROM..TO, inclusive.
12022 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
12023 Bernd Schmidt <bernds@codesourcery.com>
12025 PR rtl-optimization/45792
12026 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
12027 If not all insns are to be merged, for each edge, stash the
12028 next candidate after the to-be-merged insns before doing the
12029 merge, and use them for the retry at the new insertion point.
12030 Handle CC0 targets when retrying.
12032 2010-09-27 Ian Lance Taylor <iant@google.com>
12034 * common.opt (fsplit-stack): New option.
12035 * opts.c (decode_options): Set flag_split_stack to final value.
12036 * target.def (supports_split_stack): New hook.
12037 * gcc.c (STACK_SPLIT_SPEC): Define.
12038 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
12039 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
12040 (Code Gen Options): Document -fsplit-stack.
12041 * doc/extend.texi (Function Attributes): Mention no_split_stack.
12042 (Function Attributes): Document no_split_stack.
12043 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
12044 TARGET_SUPPORTS_SPLIT_STACK.
12045 * doc/tm.texi: Rebuild.
12046 * function.c (thread_prologue_and_epilogue_insns): If
12047 flag_split_stack, add split stack prologue.
12048 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
12049 * varasm.c (saw_no_split_stack): New static variable.
12050 (assemble_start_function): Set saw_no_split_stack if the function
12051 has the no_split_stack attribute.
12052 (file_end_indicate_split_stack): New function.
12053 * output.h (file_end_indicate_split_stack): Declare.
12054 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
12056 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
12058 * config/i386/i386.c (ix86_option_override_internal): Don't set
12059 expand_builtin_va_start to NULL if -fsplit-stack.
12060 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
12062 (ix86_va_start): If -fsplit-stack, get overflow pointer from
12063 scratch register set by prologue.
12064 (ix86_code_end): If -fsplit-stack, call
12065 file_end_indicate_split_stack.
12066 (ix86_supports_split_stack): New static function.
12067 (SPLIT_STACK_AVAILABLE): Define.
12068 (split_stack_prologue_scratch_regno): New static function.
12069 (split_stack_fn): New static variable.
12070 (ix86_expand_split_stack_prologue): New function.
12071 (ix86_live_on_entry): New static function.
12072 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
12073 (output_pic_addr_const): Likewise.
12074 (i386_asm_output_addr_const_extra): Likewise.
12075 (ix86_expand_call): Change return type to rtx. Return the new
12077 (TARGET_SUPPORTS_SPLIT_STACK): Define.
12078 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12079 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
12080 (split_stack_prologue, split_stack_return): New insns.
12081 (split_stack_space_check): New insn.
12082 * config/i386/i386.h (struct machine_function): Add
12083 split_stack_varargs_pointer field.
12084 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
12085 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12086 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
12087 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12088 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
12090 (ix86_expand_call): Update declaration.
12092 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12094 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
12095 code. Added byref, which was missing in the list of codes.
12096 Explain that enumeration values are encoded as the integer type
12097 that the compiler uses to store them. Explain and make examples
12098 of how 'const' interacts with pointers, and the complication of
12099 the encoding of 'const char *'.
12100 (Legacy type encoding): New subsection, explaining that GCC emits
12101 incorrect type encodings for the NeXT runtime for compatibility
12103 (@@encode): New subsection, explaining @encode and particularly
12104 that protocol qualifiers are not recognized inside an @encode()
12106 (Method signatures): New subsection, explaining how method
12107 signatures are encoded.
12109 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12111 Merge from 'apple/trunk' branch on FSF servers. Removed small
12112 change in build_conditional_expr that had been added when fixing
12113 PR objc/27377 and which did the same check in a less complete way.
12115 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
12118 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
12119 looking for objective-c common pointer types.
12121 2005-06-22 Ziemowit Laski <zlaski@apple.com>
12124 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
12125 use their ObjC common type.
12127 2010-09-27 Richard Guenther <rguenther@suse.de>
12129 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
12131 2010-09-27 Jie Zhang <jie@codesourcery.com>
12133 * print-tree.c (print_node): Print in-constant-pool.
12135 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
12137 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
12138 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
12139 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
12140 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
12142 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
12144 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
12145 from pro_epilogue_adjust_stack_<mode>_{1,2}.
12146 (pro_epilogue_adjust_stack_<mode>_add): Rename from
12147 pro_epilogue_adjust_stack_<mode>_3.
12148 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
12149 renamed pro_epilogue_adjust_stack_{si,di}_add.
12150 (ix86_expand_prologue): Use indirect functions. Update for renamed
12151 pro_epilogue_adjust_stack_{si,di}_sub.
12153 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
12155 * config/i386/i386.md (movmsk_df): New insn.
12156 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
12157 sequence for TARGET_SSE_MATH.
12159 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
12161 * config/mips/mips.c (mips_builtin_decls): Declare.
12162 (mips_init_builtins): Store function declarations in
12163 mips_builtin_decls.
12164 (mips_builtin_decl): New function.
12165 (TARGET_BUILTIN_DECL): Define.
12167 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
12168 Richard Henderson <rth@redhat.com>
12170 * config/i386/cygwin.asm: Include auto-host.h.
12171 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
12172 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
12173 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
12174 alignment code from the 64-bit path. Use gas local labels.
12175 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
12176 from _di_2. Remove the useless constant integer argument.
12177 (pro_epilogue_adjust_stack_<mode>_3): New.
12178 (allocate_stack_worker_probe_<mode>): Macroize from
12179 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
12180 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
12181 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
12182 (__chkstk_ms): New function.
12183 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
12184 * config/i386/t-interix: Likewise.
12185 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
12186 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
12187 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
12188 * configure, config.in: Rebuild.
12190 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
12192 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
12193 statements because of the return slot optimization.
12195 2010-09-25 Anatoly Sokolov <aesok@post.ru>
12197 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
12198 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
12199 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12200 (class_likely_spilled_p): Rename to...
12201 (avr_class_likely_spilled_p): ...this. Make static. Change argument
12202 type to reg_class_t.
12204 2010-09-24 Jan Hubicka <jh@suse.cz>
12206 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
12207 (lto_symtab_resolve_symbols): Set it.
12208 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
12209 store resolution field in cgraph/varpool.
12210 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
12211 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
12212 (cgraph_dump_node): Drop used_from_object_file.
12213 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
12214 (cgraph_function_body_availability): Use decl_replaceable_p.
12215 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
12216 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
12217 cgraph_used_from_object_file_p.
12218 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
12219 cgraph_used_from_object_file_p.
12220 (resolution_used_from_other_file_p): New functoin.
12221 (cgraph_used_from_object_file_p): New predicate.
12222 * cgraph.h: Include plugin-api.h
12223 (struct cgraph_local_info): Remove used_from_object_file.
12224 (struct cgraph_node): Add resolution field.
12225 (struct varpool_node): Likewise; remove used_from_object_file;
12226 reove const_value_known.
12227 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
12228 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
12229 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12230 varpool_used_from_object_file_p): Declare.
12231 (varpool_get_node, varpool_extra_name_alias): Update prototype.
12232 * tree.h (DECL_REPLACEABLE_P): Remove.
12233 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
12234 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
12235 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12236 input_overwrite_node, input_node, input_varpool_node): Stream
12238 * expr.c (expand_expr_real_1): Use const_value_known_p
12239 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
12241 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
12242 (function_and_variable_visibility): Set resolution for local vars
12243 and functions; use varpool_used_from_object_file_p.
12244 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
12246 (default_binds_local_p_1): Use resolutoin info.
12247 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
12248 * varpool.c (varpool_get_node): Constify.
12249 (const_value_known_p): Do not use vnode->const_value_known;
12250 use decl_replaceable_p.
12251 (varpool_finalize_decl): Do not set const_value_known.
12252 (cgraph_variable_initializer_availability): Use decl_replaceable_p
12253 (varpool_extra_name_alias): Return new node.
12254 (varpool_used_from_object_file_p): New function.
12256 2010-09-24 Richard Henderson <rth@redhat.com>
12258 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
12259 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
12260 (do_spill): Use REG_CFA_OFFSET.
12261 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
12263 (ia64_expand_epilogue): Likewise.
12264 (process_set): Split into ...
12265 (process_cfa_adjust_cfa): this,
12266 (process_cfa_register): this,
12267 (process_cfa_offset): and this new function.
12268 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
12269 instead of REG_FRAME_RELATED_EXPR.
12271 2010-09-24 Olivier Hainque <hainque@adacore.com>
12273 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
12275 2010-09-24 Jan Hubicka <jh@suse.cz>
12277 * doc/extend.texi: (attribute leaf): Document.
12278 * tree.c (local_define_builtin): Handle ECF_LEAF.
12279 (build_common_builtin_nodes): Set ECF_LEAF where needed.
12280 * tree.h (ECF_LEAF): New.
12281 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
12282 overwrittable and unavailable functions.
12283 (ipa_init): Put all_module_statics into optimization_summary_obstack.
12284 (copy_global_bitmap): Do not copy all_module_statics.
12285 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
12286 (propagate): Handle overwritable and unavailable leaf functions;
12287 initialize global info for overwritable and unavailable leaf functions;
12288 do not free all module statics.
12289 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
12291 * calls.c (flags_from_decl_or_type): Handle leaf.
12292 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
12295 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
12297 * gengtype.c: Reindented.
12298 * gengtype.h: Reindented.
12299 * gengtype-parse.c: Reindented.
12301 2010-09-24 Jan Hubicka <jh@suse.cz>
12303 PR tree-optimization/45738
12304 PR tree-optimization/45741
12305 * expr.c (string_constant): Allow CONST_DECL too;
12306 check that DECL_INITIAL is set.
12307 * varpool.c (const_value_known_p): Only look into VAR_DECL
12310 2010-09-24 Joseph Myers <joseph@codesourcery.com>
12312 * common.opt (undef): New.
12314 2010-09-24 Jakub Jelinek <jakub@redhat.com>
12316 PR middle-end/45234
12317 * rtl.h (enum global_rtl_index): Add
12318 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
12319 (LAST_VIRTUAL_POINTER_REGISTER): Define.
12320 (virtual_preferred_stack_boundary_rtx,
12321 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
12322 (LAST_VIRTUAL_REGISTER): Increase by one.
12323 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
12324 instead of LAST_VIRTUAL_REGISTER.
12325 * function.c (instantiate_new_reg): Handle
12326 virtual_preferred_stack_boundary_rtx.
12327 * emit-rtl.c (init_virtual_regs): Handle
12328 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
12329 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
12330 * explow.c (round_push): If crtl->preferred_stack_boundary
12331 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
12332 virtual_preferred_stack_boundary_rtx alignment instead of
12333 crtl->preferred_stack_boundary alignment.
12334 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
12335 macros. Never decrease crtl->preferred_stack_boundary,
12336 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
12337 instead of PREFERRED_STACK_BOUNDARY. Don't modify
12338 stack_pointer_delta in dynamic allocation, even when size
12340 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
12342 * print-rtl.c (print_rtx): Handle
12343 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
12344 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
12345 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
12346 * config/frv/frv.c (frv_emit_movsi): Likewise.
12347 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
12348 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
12352 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12354 PR middle-end/45234
12355 * calls.c (expand_call): Make sure that all variable sized
12356 adjustments are multiple of preferred stack boundary after
12359 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
12360 Dominique Dhumieres <dominiq@lps.ens.fr>
12363 * config/darwin-driver.c (darwin_default_min_version):
12364 Adjust size passed to memcpy in two places.
12366 2010-09-24 Richard Guenther <rguenther@suse.de>
12368 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
12369 Make sure to not call set_type_context with error_mark_node.
12370 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
12372 2010-09-24 Richard Guenther <rguenther@suse.de>
12374 * Makefile.in (OBJS-onestep): Remove.
12375 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
12376 (libbackend.a): Remove onestep support.
12377 (libbackend.o): Remove.
12378 * configure.ac (--enable-intermodule): Remove.
12379 * configure: Regenerate.
12381 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
12383 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
12384 reaching the end of a block if it occurs at a DEBUG_INSN.
12386 2010-09-09 Tristan Gingold <gingold@adacore.com>
12389 * config/vms/vms-crt0-64.c: Removed.
12390 * config/vms/vms-crt0.c: Removed.
12391 * config/vms/vms-psxcrt0-64.c: Removed.
12392 * config/vms/vms-psxcrt0.c: Removed.
12393 * config/vms/vms-ucrt0.c: New file.
12394 * config/vms/t-vms64: Removed.
12395 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
12396 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
12397 * config.gcc (alpha-dec-vms): Use t-vms.
12399 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
12401 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
12402 underfull hbox in DVI output.
12403 (-fobjc-class-cxx-cdtors): Same change.
12404 (-fobjc-exceptions): Tidied up documentation. Explain what the
12405 option does, but moved the (lenghty) description of the exception
12406 syntax into objc.texi.
12407 (-fobjc-gc): Explain that the option is not useful with the GNU
12409 (-fzero-link): Explain that the GNU runtime always works in
12411 * doc/objc.texi: All sections: simplified @node declarations
12412 removing specification of next, previous, up node.
12413 (Objective-C): Updated introduction.
12414 (Garbage Collection): Updated. The bohem-gc library is now
12415 included in gcc itself. Mention that this section only applies to
12416 the GNU Objective-C runtime.
12417 (compatibility_alias): Small tidy up.
12418 (Exceptions): New section mostly containing text previously in the
12419 description of the -fobjc-exception command-line option.
12420 (Synchronization): Same.
12422 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
12424 * config/i386/i386.md (ix86_code_end): Move the initialization of
12425 xops array near the consumer. Use AX_REG and SP_REG instead of
12426 numerical constants.
12428 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
12430 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
12431 method [methodname]' for an Objective-C method instead of the less
12432 satisfactory 'too many arguments to function' (with no method name).
12434 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
12436 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
12437 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
12438 (execute_update_addresses_taken): Remove parameter. Execute the
12439 optimization unconditionally.
12440 * passes.c (execute_function_todo): Call execute_update_addresses_taken
12441 unconditionally if TODO_rebuild_alias is set, else only when optimizing
12442 if TODO_update_address_taken is set.
12444 2010-09-23 Anatoly Sokolov <aesok@post.ru>
12446 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12447 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
12448 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12449 (arm_output_addr_const_extra): Make static.
12451 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
12453 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
12454 define as unspec_volatile.
12455 ("nops"): Define as unspec_volatile. Use fputs to write to
12456 asm_out_file directly. Output NOPs on separate lines using while loop.
12457 * config/i386/i386.c (ix86_code_end): Use fputs to write to
12458 asm_out_file directly. Output NOPs on separate lines using while loop.
12460 2010-09-23 Richard Guenther <rguenther@suse.de>
12462 PR tree-optimization/45565
12463 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
12464 Make sure to adjust the fndecl before replacing the stmt.
12466 2010-09-23 Richard Guenther <rguenther@suse.de>
12468 PR middle-end/45750
12469 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
12470 gimplifying MEM_REF.
12472 2010-09-23 Alan Modra <amodra@gmail.com>
12474 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
12475 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
12477 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
12479 PR rtl-optimization/44374
12480 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
12481 * df-core.c (df_set_bb_dirty): Set it.
12482 * ifcvt.c (find_memory): Remove function.
12483 (dead_or_predicable): Use can_move_insns_across.
12484 * df.h (can_move_insns_across): Declare function.
12485 * cfgcleanup.c (block_was_dirty): New static variable.
12486 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
12487 than df_get_bb_dirty.
12488 (try_head_merge_bb): New static function.
12489 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
12491 * df-problems.c: Include "target.h"
12492 (df_simulate_find_uses): New static function.
12493 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
12494 (find_memory, find_memory_store): New static functions.
12495 (can_move_insns_across): New function.
12496 * Makefile.in (df-problems.o): Update dependencies.
12498 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
12501 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
12502 is specified and the suffix of the file isn't ".c".
12503 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12505 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12507 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
12508 * doc/cppopts.texi: Fix markup of index entry.
12509 * doc/extend.texi (Constructing Calls): Fix markup of
12510 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
12511 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
12512 (Vague Linkage, C++ Attributes): Fix markup of index entries and
12514 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
12516 (C Dialect Options, C++ Dialect Options, Warning Options)
12517 (Debugging Options, Spec Files, Darwin Options)
12518 (i386 and x86-64 Options, MIPS Options)
12519 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
12520 index entries, avoid abbreviations, allow URLs to wrap, avoid
12521 long lines, avoid overlong pages from long @itemx lists.
12522 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
12523 * doc/standards.texi (Standards): Likewise.
12524 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
12526 2010-09-22 Joseph Myers <joseph@codesourcery.com>
12528 * opts-common.c (prune_options): Make static. Work with decoded
12530 (decode_cmdline_options_to_array): Call prune_options. Don't
12531 resize option array here.
12532 * opts.h (prune_options): Remove prototype.
12533 * gcc.c (process_command): Take decoded options; don't call
12534 decode_cmdline_options_to_array here. Use decoded options for argv[0].
12535 (main): Call decode_cmdline_options_to_array here instead of
12536 prune_options. Update call to process_command.
12537 * config/darwin-driver.c: Include opts.h.
12538 (darwin_default_min_version): Work with decoded options. Don't
12539 handle -b or -V here.
12540 * config/darwin.h (darwin_default_min_version): Update prototype.
12541 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
12542 darwin_default_min_version.
12543 * config/i386/cygwin.h (mingw_scan): Update prototype.
12544 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
12545 * config/i386/cygwin1.c: Include opts.h.
12546 (mingw_scan): Work with decoded options.
12547 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
12548 * config/t-darwin (darwin-driver.o): Update dependencies.
12550 2010-09-22 Joseph Myers <joseph@codesourcery.com>
12552 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
12553 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
12554 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
12555 -force-link, -force-link=, -language, -language=,
12556 -library-directory, -library-directory=, -no-canonical-prefixes,
12557 -no-standard-libraries, -no-warnings, -optimize, -output,
12558 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
12559 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
12560 -print-file-name=, -print-libgcc-file-name,
12561 -print-multi-directory, -print-multi-lib,
12562 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
12563 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
12564 -profile, -save-temps, -shared, -specs, -specs=, -static,
12565 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
12567 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
12568 * gcc.c (A Short Introduction to Adding a Command-Line Option):
12570 (cc1_options): Correct specs for passing down --help,
12571 --target-help and --help=*. Add spec for passing down --version.
12572 (struct option_map, option_map, target_option_translations,
12573 translate_options): Remove.
12574 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
12575 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
12576 OPT_fhelp_ and OPT_ftarget_help.
12577 (process_command): Don't call translate_options. Call
12578 decode_cmdline_options_to_array before checking for
12579 -no-canonical-prefixes using decoded options.
12580 * opts-common.c (tm.h): Update comment on #include.
12581 (find_opt): Allow abbreviations of long options.
12582 (struct option_map, option_map): New.
12583 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
12585 (target_option_translations): New.
12586 (decode_cmdline_options_to_array): Handle
12587 TARGET_OPTION_TRANSLATE_TABLE in driver.
12588 * opts.c (common_handle_option): Don't handle OPT_fhelp,
12589 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
12591 2010-09-22 Richard Guenther <rguenther@suse.de>
12593 * tree-inline.c (optimize_inline_calls): Schedule cleanups
12594 only if we inlined something. Block compaction and conditional
12595 folding are done by cfg cleanup. Schedule update-address-taken.
12596 (tree_function_versioning): Remove redundant call to number_blocks.
12597 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
12598 folding is done by cfg cleanup.
12599 * passes.c (init_optimization_passes): Remove update-address-taken
12600 pass after IPA inlining.
12602 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12604 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
12605 to update conditions. Fix reg_mode[] check.
12607 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
12609 * config/picochip/picochip.md (movhicc): Use expand to check whether
12610 movhicc is available and split it after reload.
12612 2010-09-22 Richard Guenther <rguenther@suse.de>
12614 * tree-ssanames.c (release_dead_ssa_names): Do not remove
12616 * passes.c (init_optimization_passes): Remove early CFG cleanup.
12617 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
12618 (pass_cleanup_cfg): Likewise.
12619 (execute_fixup_cfg): Cleanup.
12620 * tree-pass.h (pass_cleanup_cfg): Remove.
12622 2010-09-22 Martin Jambor <mjambor@suse.cz>
12624 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
12625 builtins if it is true.
12626 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
12629 2010-09-22 Martin Jambor <mjambor@suse.cz>
12631 * tree-sra.c (struct access): New field grp_no_warning.
12632 (create_access_replacement): Set TREE_NO_WARNING according to
12634 (create_artificial_child_access): Use build_ref_for_model and set
12635 grp_no_warning if build_user_friendly_ref_for_offset fails.
12636 (propagate_subaccesses_across_link): Likewise.
12638 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
12641 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
12644 2010-09-22 Tristan Gingold <gingold@adacore.com>
12646 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
12648 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
12650 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
12651 * config/i386/i386.c (decide_alg): Update for rename.
12653 2010-09-22 Jakub Jelinek <jakub@redhat.com>
12655 PR rtl-optimization/45739
12656 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
12657 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
12659 2010-09-21 Anatoly Sokolov <aesok@post.ru>
12661 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
12662 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
12664 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
12665 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12667 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12670 * c-parser.c (c_parser_objc_method_definition): Check the return
12671 value of objc_start_method_definition and if false is returned,
12672 parse the method definition but emit no code.
12674 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12677 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
12678 call objc_get_interface_ivars ().
12680 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
12683 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
12684 static chain-register is used for 64-bit.
12686 2010-09-21 Richard Guenther <rguenther@suse.de>
12688 * dwarf2out.c (is_cu_die): New function.
12689 (add_pubtype): Use it.
12690 (gen_subprogram_die): Likewise.
12691 (gen_struct_or_union_type_die): Likewise.
12692 (dwarf2out_finish): Likewise.
12693 (comp_unit_die): Rename to ...
12694 (single_comp_unit_die): ... this.
12695 (comp_unit_die): New function lazily constructing and
12696 returning single_comp_unit_die.
12697 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
12698 base_type_die, subrange_type_die, modified_type_die,
12699 lower_bound_default, add_bound_info, add_prototyped_attribute,
12700 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
12701 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
12702 force_decl_die, gen_namespace_die, dwarf2out_decl,
12703 dwarf2out_start_source_file, dwarf2out_end_source_file,
12704 prune_unused_types, dwarf2out_finish): Use it.
12705 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
12706 the global list of translation-unit decls.
12707 (dwarf2out_init): Do not create single_comp_unit_die here.
12708 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
12710 2010-09-21 Richard Guenther <rguenther@suse.de>
12712 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
12715 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
12717 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
12718 (qhs_extenddi_cstr): Likewise.
12719 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
12720 them for the source operand.
12722 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
12724 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
12725 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
12726 (ix86_split_ashr): Ditto.
12727 (ix86_split_lshr): Ditto.
12729 2010-09-21 Richard Guenther <rguenther@suse.de>
12731 PR tree-optimization/45580
12732 * tree-ssa-propagate.c (substitute_and_fold): Always replace
12734 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
12735 virtuals fold the call into a regular indirect one.
12737 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
12739 PR rtl-optimization/42775
12740 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
12741 scheduling is enabled.
12743 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12745 PR rtl-optimization/45728
12746 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
12747 gen_lowpart_common first and if that fails, force_reg first
12748 before calling gen_lowpart.
12750 PR middle-end/45678
12751 * cfgexpand.c (expand_one_stack_var_at): Use
12752 crtl->max_used_stack_slot_alignment as max_align, instead
12753 of maximum of that and PREFERRED_STACK_BOUNDARY.
12754 Don't call update_stack_alignment.
12756 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
12758 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
12759 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
12760 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
12761 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
12762 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
12763 (build_nonstandard_integer_type): Likewise.
12764 (build_range_type_1): New function, built from...
12765 (build_range_type): ...this. Call build_range_type_1.
12766 (build_nonshared_range_type): New function.
12767 (build_array_type_1): New function, built from...
12768 (build_array_type: ...this. Call build_array_type_1.
12769 (build_nonshared_array_type): New function.
12770 * tree.h (build_nonshared_range_type): Declare.
12771 (build_nonshared_array_type): Likewise.
12773 2010-09-20 Anatoly Sokolov <aesok@post.ru>
12775 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
12776 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12777 (arm_class_likely_spilled_p): New function.
12779 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
12781 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
12782 indirect functions.
12783 (ix86_split_ashl): Ditto.
12784 (ix86_split_ashr): Ditto.
12785 (ix86_split_lshr): Ditto.
12786 (ix86_adjust_counter): Ditto.
12788 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
12790 * c-family/c-common.h (constant_string_class): Documented with
12791 comment identical to the one already in c-common.c.
12793 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12795 * dwarf2out.c (any_cfis_emitted): New static variable.
12796 (add_fde_cfi): Set it.
12797 (dwarf2out_frame_debug): Clear it before processing,
12798 if it is set afterwards, flush any queued reg saves.
12801 * dwarf2out.c (add_accessibility_attribute): Assume
12802 DW_ACCESS_private as the default for dwarf_version > 2
12803 and DW_TAG_class_type parent.
12804 (gen_inheritance_die): Assume DW_ACCESS_public as the default
12805 for dwarf_version > 2 and parent other than DW_TAG_class_type.
12807 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12810 * arm.md (arm_movt): Only enable on machines with MOVT.
12812 2010-09-20 Jie Zhang <jie@codesourcery.com>
12814 * config/arm/arm.c (arm_address_offset_is_imm): New.
12815 (arm_early_store_addr_dep): New.
12816 (arm_early_load_addr_dep): New.
12817 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
12818 (arm_early_load_addr_dep): Declare.
12819 (arm_address_offset_is_imm): Declare.
12820 * config/arm/cortex-m4.md: New file.
12821 * config/arm/cortex-m4-fpu.md: New file.
12822 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
12823 (attr generic_sched): Exclude cortexm4.
12824 (attr generic_vfp): Exclude cortexm4.
12826 2010-09-20 Richard Guenther <rguenther@suse.de>
12828 PR middle-end/45704
12829 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
12831 2010-09-20 Jan Hubicka <jh@suse.cz>
12833 PR tree-optimize/45605
12834 * cgraph.h (const_value_known_p): Declare.
12835 (varpool_decide_const_value_known): Remove.
12836 * tree-ssa-ccp.c (get_base_constructor): Use it.
12837 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
12838 * expr.c (string_constant): Likewise.
12839 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
12840 * ipa.c (ipa_discover_readonly_nonaddressable_var,
12841 function_and_variable_visibility): Likewise.
12842 * gimplify.c (gimplify_call_expr): Likewise.
12843 * gimple-fold.c (get_symbol_constant_value): Likewise.
12844 * varpool.c (varpool_decide_const_value_known): Replace by...
12845 (const_value_known_p): ... this one; handle other kinds of DECLs
12846 too and work for automatic vars.
12847 (varpool_finalize_decl): Use const_value_known_p.
12849 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12852 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
12854 2010-09-20 Richard Guenther <rguenther@suse.de>
12856 PR tree-optimization/45705
12857 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
12859 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12861 PR rtl-optimization/45695
12862 * combine.c (try_combine): When splitting a two set pattern,
12863 make sure the pattern which will be put into i2 doesn't use REGs
12864 or MEMs set by insns in between i2 and i3.
12866 2010-09-19 Jan Hubicka <jh@suse.cz>
12869 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
12870 processing same node twice.
12872 2010-09-19 Anatoly Sokolov <aesok@post.ru>
12874 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
12875 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12876 (bfin_class_likely_spilled_p): New function
12878 2010-09-19 Ira Rosen <irar@il.ibm.com>
12880 PR tree-optimization/45714
12881 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
12882 created in vectorizable_call instead of the original statement in
12885 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
12887 * config/i386/i386-protos.h (split_double_mode): New prototype.
12888 (split_di, split_ti): Remove prototypes.
12889 * config/i386/i386.c (split_double_mode): New function.
12890 (split_di, split_ti): Remove.
12891 (ix86_expand_branch): Use split_double_mode.
12892 (ix86_split_to_parts): Ditto.
12893 (ix86_split_ashl): Ditto.
12894 (ix86_split_ashr): Ditto.
12895 (ix86_split_lshr): Ditto.
12896 (ix86_force_to_memory): Ditto.
12897 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
12899 2010-09-18 Jan Hubicka <jh@suse.cz>
12901 PR tree-optimization/45453
12902 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
12903 virtual functions are reachable.
12904 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
12905 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
12906 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
12907 when modifying function.
12909 2010-09-18 Jan Hubicka <jh@suse.cz>
12911 PR tree-optimization/45605
12912 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
12913 * gimple-fold.c (static_object_in_other_unit_p): New function.
12914 (canonicalize_constructor_val): Use it.
12915 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
12917 (gimple_fold_obj_type_ref_known_binfo): Use
12918 static_object_in_other_unit_p.
12920 2010-09-18 Richard Guenther <rguenther@suse.de>
12922 PR tree-optimization/45709
12923 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
12924 insertions until after all PHI nodes of the block are processed.
12926 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
12928 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
12930 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
12932 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
12934 2010-09-18 Richard Guenther <rguenther@suse.de>
12936 PR tree-optimization/45709
12937 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
12939 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
12941 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
12942 (dot_deps_stmt): Same.
12943 * graphite-poly.c (dot_lst): Same.
12944 * graphite-scop-detection.c (dot_all_scops): Same.
12947 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
12950 2009-12-16 Ben Elliston <bje@au.ibm.com>
12952 * tree-data-ref.c (dot_rdg_1): Added back.
12953 (dot_rdg): Same. Added "#if 0" around system call.
12955 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12956 Richard Henderson <rth@redhat.com>
12958 * config/i386/i386.c (initial_ix86_tune_features): Add
12959 X86_TUNE_PAD_SHORT_FUNCTION.
12960 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
12961 (ix86_count_insn): New.
12962 (ix86_pad_short_function): Likewise.
12963 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
12965 * config/i386/i386.h (ix86_tune_indices): Add
12966 X86_TUNE_PAD_SHORT_FUNCTION.
12967 (TARGET_PAD_SHORT_FUNCTION): New.
12969 * config/i386/i386.md (UNSPEC_NOPS): New.
12972 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12974 PR middle-end/45234
12975 * calls.c (expand_call): Make sure that all variable sized
12976 adjustments are multiple of preferred stack boundary after
12979 2010-09-17 DJ Delorie <dj@redhat.com>
12981 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
12982 passed an invalid value, print an error instead of ICEing.
12983 (valid_psw_flag): New.
12984 (rx_expand_builtin): Call it for setpsw/clrpsw.
12985 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
12987 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
12988 (bitclr_in_memory): Likewise.
12989 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
12991 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12993 PR middle-end/45678
12994 * cfgexpand.c (update_stack_alignment): New.
12995 (get_decl_align_unit): Use it.
12996 (expand_one_stack_var_at): Call update_stack_alignment.
12998 2010-09-17 Richard Guenther <rguenther@suse.de>
13000 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
13001 Properly copy the read string.
13003 2010-09-17 Joseph Myers <joseph@codesourcery.com>
13005 * doc/options.texi (Variable): Document.
13006 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
13007 generate target_flags declarations explicitly. Don't define
13008 VarExists variables for the driver.
13009 * common.opt (target_flags): New Variable record.
13010 (flag_dump_unnumbered, flag_dump_unnumbered_links,
13011 flag_var_tracking, flag_var_tracking_assignments,
13012 flag_var_tracking_assignments_toggle): Don't mark variables with
13014 * config/i386/i386.c (ix86_isa_flags): Don't define here.
13015 * config/i386/i386.opt (ix86_isa_flags): Define here.
13016 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
13017 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
13019 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
13020 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
13021 Only define for generator programs.
13022 * rtlanal.c (target_flags): Remove.
13023 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
13024 flag_var_tracking_assignments_toggle): Remove.
13026 2010-09-17 Michael Matz <matz@suse.de>
13028 PR tree-optimization/43432
13029 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
13030 Accept backwards consecutive accesses.
13031 (vect_create_data_ref_ptr): If step is negative generate
13033 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
13034 (perm_mask_for_reverse, reverse_vec_elements): New functions.
13035 (vectorizable_load): Handle loads with negative steps when easily
13038 2010-09-03 Jan Hubicka <jh@suse.cz>
13040 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
13042 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
13044 * config/v850/v850.c (v850_function_value_regno_p): Make static.
13045 Adjust comments. Declare.
13046 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13047 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
13049 2010-09-17 Richard Guenther <rguenther@suse.de>
13051 * common.opt (combine): Remove.
13052 * gcc.c (default_compilers): Remove specs testing combine.
13053 The C compilers no longer can combine.
13054 (option_map): Remove -combine.
13055 (display_help): Remove -combine.
13056 (driver_handle_option): Remove OPT_combine handling.
13057 (compile_input_file_p): Remove.
13058 (do_spec): Remove code concerning combine.
13060 * doc/invoke.texi: Remove traces of -combine.
13061 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
13063 2010-09-17 Richard Guenther <rguenther@suse.de>
13065 PR middle-end/45678
13066 * builtins.c (fold_builtin_memory_op): Always properly adjust
13067 alignment of memory accesses.
13069 2010-09-16 Jan Hubicka <jh@suse.cz>
13071 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
13074 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
13076 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
13078 * config/i386/i386.c (predict_jump): Add prototype.
13079 (flag_opts): Add -m8bit-idiv.
13080 (ix86_split_idivmod): New.
13082 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
13083 Add 2 splitters for SI/DI mode divide.
13084 (divmod<mode>4_1): New pattern.
13085 (udivmod<mode>4_1): Likewise.
13086 (testdi_ccno_1): Likewise.
13088 * config/i386/i386.opt (m8bit-idiv): New.
13090 * doc/invoke.texi: Document -m8bit-idiv.
13092 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
13095 * config/i386/i386.c (min_insn_size): Moved out of the
13096 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
13098 2010-09-16 Jan Hubicka <jh@suse.cz>
13100 * lto-cgraph.c (lto_output_node): Fix handling of clones.
13101 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
13102 unreachable clones with reachable clones.
13103 * tree-inline.c (copy_bb): Fix sanity checking when producing
13106 2010-09-16 Anatoly Sokolov <aesok@post.ru>
13108 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
13109 (TARGET_MEMORY_MOVE_COST): Define.
13110 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
13112 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
13114 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
13115 maybe_tidy_empty_bb.
13118 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
13119 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13121 2010-09-16 Joseph Myers <joseph@codesourcery.com>
13123 * target.def (target_option.optimization): New hook.
13124 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
13125 TARGET_OPTION_OPTIMIZATION hook.
13126 * doc/tm.texi: Regenerate.
13127 * hooks.c (hook_void_int_int): New.
13128 * hooks.h (hook_void_int_int): Declare.
13129 * opts.c: Don't include tm_p.h.
13130 (decode_options): Use targetm.target_option.optimization instead
13131 of OPTIMIZATION_OPTIONS.
13132 * system.h (OPTIMIZATION_OPTIONS): Poison.
13133 * config/arm/arm-protos.h (arm_optimization_options): Remove.
13134 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
13135 (arm_optimization_options): Rename to arm_option_optimization.
13137 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
13138 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
13139 (cris_option_optimization): New.
13140 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
13141 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
13142 (crx_option_optimization): New.
13143 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
13144 * config/frv/frv-protos.h (frv_optimization_options): Remove.
13145 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
13146 (frv_optimization_options): Rename to frv_option_optimization.
13148 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
13149 * config/h8300/h8300.c (h8300_option_optimization): New.
13150 (TARGET_OPTION_OPTIMIZATION): Define.
13151 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
13152 * config/i386/i386-protos.h (optimization_options): Remove.
13153 * config/i386/i386.c (optimization_options): Rename to
13154 ix86_option_optimization. Make static.
13155 (TARGET_OPTION_OPTIMIZATION): Define.
13156 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
13157 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
13158 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
13159 (ia64_optimization_options): Rename to ia64_option_optimization.
13160 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
13161 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
13162 commented-out definition.
13163 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
13164 instead of OPTIMIZATION_OPTIONS.
13165 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
13166 (m32r_option_optimization): New.
13167 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
13168 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
13170 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
13171 (mcore_option_optimization): New.
13172 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
13173 * config/mep/mep-protos.h (mep_optimization_options): Remove.
13174 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
13175 (mep_optimization_options): Rename to mep_option_optimization.
13176 Make static. Take unused level and size parameters.
13177 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
13178 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
13179 (mmix_option_optimization): New.
13180 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
13181 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
13182 (pdp11_option_optimization): New.
13183 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
13184 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
13185 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
13186 (optimization_options): Rename to rs6000_option_optimization.
13188 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
13189 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
13190 * config/rx/rx.c (rx_set_optimization_options): Rename to
13191 rx_option_optimization. Make static. Take unused level and size
13193 (TARGET_OPTION_OPTIMIZATION): Define.
13194 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
13195 * config/s390/s390-protos.h (optimization_options): Remove.
13196 * config/s390/s390.c (optimization_options): Rename to
13197 s390_option_optimization. Make static. Don't mark size parameter
13199 (TARGET_OPTION_OPTIMIZATION): Define.
13200 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
13201 * config/sh/sh-protos.h (sh_optimization_options): Remove.
13202 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
13203 (sh_optimization_options): Rename to sh_option_optimization. Make
13204 static. Don't mark parameters unused.
13205 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
13206 * config/spu/spu-protos.h (spu_optimization_options): Remove.
13207 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
13208 (spu_optimization_options): Rename to spu_option_optimization.
13210 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
13211 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
13212 (v850_option_optimization): New.
13213 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
13214 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
13215 (xtensa_option_optimization): New.
13216 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
13218 2010-09-16 Joseph Myers <joseph@codesourcery.com>
13220 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
13221 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
13222 * doc/tm.texi: Regenerate.
13223 * system.h (OVERRIDE_OPTIONS): Poison.
13224 * target.def (override): Default to hook_void_void.
13225 * targhooks.c (default_target_option_override): Remove.
13226 * genmodes.c, machmode.def: Update comments mentioning
13228 * config/alpha/alpha-modes.def: Update comment mentioning
13229 alpha_override_options.
13230 * config/alpha/alpha-protos.h (override_options): Remove.
13231 * config/alpha/alpha.c (override_options): Rename to
13232 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
13233 (TARGET_OPTION_OVERRIDE): Define.
13234 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
13235 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
13236 of OVERRIDE_OPTIONS.
13237 * config/arc/arc-protos.h (arc_init): Remove.
13238 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
13239 (arc_init): Rename to arc_option_override. Make static.
13240 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
13241 (OVERRIDE_OPTIONS): Remove.
13242 * config/arm/arm-protos.h (arm_override_options): Remove.
13243 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
13244 (arm_override_options): Rename to arm_option_override. Make
13245 static. Call SUBTARGET_OVERRIDE_OPTIONS.
13246 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
13247 * config/arm/arm.md: Update comment referring to arm_override_options.
13248 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
13249 instead of OVERRIDE_OPTIONS.
13250 * config/avr/avr-protos.h (avr_override_options): Remove.
13251 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
13252 (avr_override_options): Rename to avr_option_override. Make static.
13253 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
13254 * config/bfin/bfin-protos.h (override_options): Remove (twice).
13255 * config/bfin/bfin.c (override_options): Rename to
13256 bfin_option_override. Make static.
13257 (TARGET_OPTION_OVERRIDE): Define.
13258 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
13259 * config/cris/cris-protos.h (cris_override_options): Remove.
13260 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
13261 (cris_override_options): Rename to cris_option_override. Make static.
13262 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
13263 * config/frv/frv-protos.h (frv_override_options): Remove.
13264 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
13265 (frv_override_options): Rename to frv_option_override. Make static.
13266 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
13267 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
13268 * config/h8300/h8300.c (h8300_init_once): Rename to
13269 h8300_option_override. Make static.
13270 (TARGET_OPTION_OVERRIDE): Define.
13271 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
13272 * config/i386/i386-protos.h (override_options): Remove.
13273 * config/i386/i386.c (override_options): Rename to
13274 ix86_option_override_internal. Make static. Comments referring
13275 to this function and callers changed.
13276 (ix86_option_override): New.
13277 (TARGET_OPTION_OVERRIDE): Define.
13278 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
13279 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
13280 * config/ia64/ia64.c (ia64_file_start): Update comment referring
13281 to ia64_override_options.
13282 * config/iq2000/iq2000-protos.h (override_options): Remove.
13283 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
13284 (override_options): Rename to iq2000_option_override. Make static.
13285 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
13286 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
13287 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
13288 (lm32_override_options): Rename to lm32_option_override. Make static.
13289 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
13290 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
13291 (m32r_option_override): New.
13292 (m32r_init): Update comment.
13293 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
13294 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
13295 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
13296 (m68hc11_override_options): Rename to m68hc11_option_override.
13297 Make static. Return void.
13298 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
13299 * config/m68k/m68k-protos.h (override_options): Remove.
13300 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
13301 (override_options): Rename to m68k_option_override. Make static.
13302 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
13303 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
13304 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
13305 (mcore_override_options): Rename to mcore_option_override. Make
13307 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
13308 * config/mep/mep-protos.h (mep_override_options): Remove.
13309 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
13310 (mep_override_options): Rename to mep_option_override. Make static.
13311 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
13312 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
13313 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
13314 (mmix_override_options): Rename to mmix_option_override. Make static.
13315 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
13316 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
13317 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
13318 (mn10300_override_options): Rename to mn10300_option_override.
13320 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
13321 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
13322 * config/moxie/moxie.c (moxie_override_options): Rename to
13323 moxie_option_override. Make static.
13324 (TARGET_OPTION_OVERRIDE): Define.
13325 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
13326 * config/picochip/picochip-protos.h (picochip_override_options):
13327 Remove. Update comment referring to picochip_override_options.
13328 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
13329 (picochip_override_options): Rename to picochip_option_override.
13330 Make static. Update comment and definition of
13331 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
13332 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
13333 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13334 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13335 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13336 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13337 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13338 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
13339 instead of OVERRIDE_OPTIONS.
13340 * config/rs6000/rs6000-modes.def: Update comment referring to
13341 rs6000_override_options.
13342 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
13343 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
13344 (rs6000_override_options): Rename to
13345 rs6000_option_override_internal. Make static. Commented
13346 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
13347 (rs6000_option_override): New.
13348 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
13349 instead of OVERRIDE_OPTIONS.
13350 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13351 * config/s390/s390-protos.h (override_options): Remove.
13352 * config/s390/s390.c (override_options): Rename to
13353 s390_option_override. Make static.
13354 (TARGET_OPTION_OVERRIDE): Define.
13355 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
13356 * config/score/score-protos.h (score_override_options): Remove.
13357 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
13358 (score_override_options): Rename to score_option_override. Make
13360 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
13361 Update comment referring to override_options.
13362 * config/score/score3.c (score3_override_options): Rename to
13363 score3_option_override.
13364 * config/score/score3.h (score3_override_options): Rename to
13365 score3_option_override.
13366 * config/score/score7.c (score7_override_options): Rename to
13367 score7_option_override.
13368 * config/score/score7.h (score7_override_options): Rename to
13369 score7_option_override.
13370 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
13371 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
13372 (sparc_override_options): Rename to sparc_option_override. Make
13373 static. Call SUBTARGET_OVERRIDE_OPTIONS.
13374 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
13375 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
13376 instead of OVERRIDE_OPTIONS.
13377 * config/spu/spu-protos.h (spu_override_options): Remove.
13378 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
13379 (spu_override_options): Rename to spu_option_override. Make
13381 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
13382 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
13384 * config/vax/vax-protos.h (override_options): Remove.
13385 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
13386 (override_options): Rename to vax_option_override. Make static.
13387 Call SUBTARGET_OVERRIDE_OPTIONS.
13388 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
13389 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
13390 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
13391 * config/xtensa/xtensa-protos.h (override_options): Remove.
13392 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
13393 (override_options): Rename to xtensa_option_override. Make static.
13394 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
13396 2010-09-16 Richard Guenther <rguenther@suse.de>
13398 PR tree-optimization/45623
13399 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
13400 (get_constraint_for_component_ref): If computing a constraint
13401 for the rhs handle type punning through unions.
13402 (get_constraint_for_address_of): Adjust.
13403 (get_constraint_for_1): Likewise.
13404 (get_constraint_for): Likewise.
13405 (get_constraint_for_rhs): New function.
13406 (do_structure_copy): Adjust.
13407 (make_constraint_to): Likewise.
13408 (handle_const_call): Likewise.
13409 (find_func_aliases): Likewise.
13410 (process_ipa_clobber): Likewise.
13411 (create_variable_info_for): Likewise.
13413 2010-09-16 Ira Rosen <irar@il.ibm.com>
13415 * tree-vectorizer.c: Fix documentation.
13416 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
13417 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
13418 is_pattern_stmt_p, is_loop_header_bb_p,
13419 stmt_vinfo_set_inside_of_loop_cost,
13420 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
13421 known_alignment_for_access_p): Likewise.
13422 * tree-vect-loop.c: Fix documentation.
13423 (vect_get_cost): Start function name from new line.
13424 * tree-vect-data-refs.c: Fix documentation.
13425 * tree-vect_stmts.c: Likewise.
13426 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
13427 (vectorizable_store): Free vec_oprnds if allocated.
13428 (vectorizable_condition): Initialize several variables to avoid
13430 * tree-vect-slp.c: Fix documentation.
13432 2010-09-16 Richard Guenther <rguenther@suse.de>
13434 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
13435 is TS_TRANSLATION_UNIT_DECL.
13436 (initialize_tree_contains_struct): Adjust.
13437 (all_translation_units): New global vector.
13438 (build_translation_unit_decl): New function.
13439 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
13440 (struct tree_translation_unit_decl): New.
13441 (all_translation_units): Declare.
13442 (union tree_node): Add translation_unit_decl member.
13443 (build_translation_unit_decl): Declare.
13444 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
13445 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
13447 (pack_value_fields): Call it.
13448 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
13449 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
13450 (lto_output_tree_pointers): Call it.
13451 * lto-streamer-in.c (lto_input_tree_ref): Handle references
13452 to TRANSLATION_UNIT_DECL.
13453 (unpack_ts_translation_unit_decl_value_fields): New function.
13454 (unpack_value_fields): Call it.
13455 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
13456 (lto_input_tree_pointers): Call it.
13457 * lto-streamer.c (check_handled_ts_structures): Adjust.
13458 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
13459 * c-decl.c (all_translation_units): Remove.
13460 (pop_scope): Use build_translation_unit_decl.
13461 (collect_all_refs): Adjust.
13462 (for_each_global_decl): Likewise.
13463 (c_write_global_declarations): Likewise.
13465 2010-09-16 Jakub Jelinek <jakub@redhat.com>
13468 * fold-const.c (fold_checksum_tree): Change slot from const void **
13469 to void **, use CONST_CAST_TREE to store into *slot.
13471 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
13473 * config/i386/i386.md: Remove unneeded empty conditions and
13474 preparation statements from expanders.
13475 * config/i386/mmx.md: Ditto.
13476 * config/i386/sse.md: Ditto.
13478 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
13480 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
13482 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
13484 PR rtl-optimization/45593
13485 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
13486 insns that were in delay slots as stand-alone insns.
13488 2010-09-15 Ian Lance Taylor <iant@google.com>
13490 * incpath.c (remove_duplicates): If name is not a directory, issue
13491 a warning rather than an error.
13493 2010-09-15 Martin Jambor <mjambor@suse.cz>
13495 PR middle-end/45644
13496 * tree-sra.c (create_access): Check for bit-fields directly.
13498 2010-09-15 Jakub Jelinek <jakub@redhat.com>
13500 PR tree-optimization/45633
13501 * tree-cfg.c (verify_gimple_assign_binary): Allow
13502 MINUS_EXPR with lhs and rhs1 pointer vector and
13503 rhs2 sizetype vector.
13504 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
13505 or vector pointer use TER to optimize pointer subtraction.
13507 2010-09-15 Jie Zhang <jie@codesourcery.com>
13509 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
13512 2010-09-15 Ian Lance Taylor <iant@google.com>
13514 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
13516 2010-09-15 Ian Lance Taylor <iant@google.com>
13518 * function.c (get_arg_pointer_save_area): Set
13519 arg_pointer_save_area_init to true.
13521 2010-09-15 Martin Jambor <mjambor@suse.cz>
13523 * tree-sra.c (generate_subtree_copies): Updated comment.
13524 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
13525 obtained from the statement iterator instead.
13526 (load_assign_lhs_subreplacements): Removed parameters lhs and
13527 right_offset, which is obtained from top_racc instead. Parameter lacc
13528 is now expected to be the root of the processed tree rather than root's
13529 first child. Updated all callers.
13531 2010-09-15 Joseph Myers <joseph@codesourcery.com>
13533 * config/pdp11/pdp11.c (register_move_cost): Rename to
13534 pdp11_register_move_cost.
13535 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
13536 pdp11_register_move_cost.
13537 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
13538 pdp11_register_move_cost instead of register_move_cost.
13540 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
13542 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
13543 pattern for vmovn. Expansion in case of non
13544 -mvectorize-with-neon-quad.
13545 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
13546 non- -mvectorize-with-neon-quad case.
13547 (move_lo_quad_<mode>): New expansion to vmov into low part.
13548 (move_hi_quad_<mode>): New expansion to vmov into high part.
13549 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
13550 (move_lo_quad_v4sf): Likewise.
13551 (move_lo_quad_v8hi): Likewise.
13552 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
13554 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
13556 * config/arm/iterators.md (ANY128): New mode iterator.
13557 (V_narrow_pack): New mode attribute.
13558 (V_HALF): Add attribute.
13559 (V_DOUBLE): Add attribute.
13560 (V_mode_nunits): Add attribute.
13562 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
13564 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
13565 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
13567 2010-09-15 Olivier Hainque <hainque@adacore.com>
13568 Jose Ruiz <ruiz@adacore.com>
13570 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
13571 * config/alpha/osf5-unwind.h: New file.
13573 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13576 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
13577 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
13578 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
13580 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13582 * c-lang.h (struct lang_type): Add variable_size GTY option.
13584 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13587 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
13589 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13591 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
13592 result isn't used in memory address.
13594 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13596 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
13597 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
13598 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
13599 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
13600 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
13601 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
13603 * target.def: Add units_per_simd_word to vectorize.
13605 * targhooks.c (default_units_per_simd_word): New.
13606 * targhooks.h (default_units_per_simd_word): Likewise.
13607 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
13608 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13609 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
13610 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13611 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
13612 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13613 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
13614 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13616 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
13617 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
13619 * tree-vect-stmts.c: Don't include "tm_p.h".
13620 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
13621 with targetm.vectorize.units_per_simd_word.
13623 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
13625 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
13627 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
13628 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
13630 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
13631 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
13633 * doc/tm.texi: Regenerated.
13635 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13637 * tree-vect-stmts.c: Include "tm_p.h".
13639 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
13642 2010-09-14 Martin Jambor <mjambor@suse.cz>
13644 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
13645 location of generated statement. Changed all callers.
13646 (build_ref_for_model): New parameter loc which used to set location of
13647 all generated expressions. Changed all callers.
13648 (generate_subtree_copies): Likewise.
13649 (init_subtree_with_zero): Likewise.
13650 (sra_modify_expr): Set locations of all generated statements and
13651 expressions to the location the original statement.
13652 (handle_unscalarized_data_in_subtree): Likewise.
13653 (load_assign_lhs_subreplacements): Likewise.
13654 (sra_modify_constructor_assign): Likewise.
13655 (sra_modify_assign): Likewise.
13657 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
13662 * doc/install.texi (sparc*-*-*): New section.
13663 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
13665 2010-09-14 Jakub Jelinek <jakub@redhat.com>
13667 PR middle-end/45567
13668 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
13669 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
13670 (expand_builtin): Adjust caller.
13671 (expand_builtin_unop): Only use subtarget if it has the right mode.
13673 2010-09-14 Tristan Gingold <gingold@adacore.com>
13675 * configure.ac (plugins): Fix typos.
13676 * configure: Regenerate.
13678 2010-09-14 Jakub Jelinek <jakub@redhat.com>
13681 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
13682 gen_type_die for function/method return type.
13684 2010-09-14 Ira Rosen <irar@il.ibm.com>
13686 PR tree-optimization/45470
13687 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13688 can throw an exception.
13689 * tree-vect-stmts.c (vectorizable_call): Likewise.
13691 2010-09-14 DJ Delorie <dj@redhat.com>
13694 * config/mep/mep-protos.h (mep_save_register_info,
13695 mep_reinit_regs, mep_init_regs): Declare.
13697 * config/mep/mep.c: Move all target definitions to the end of the
13698 file to avoid the need for duplicate declarations.
13699 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
13700 (mep_reorg_erepeat): Remove unused variables.
13701 (mep_expand_builtin): Likewise.
13703 * config/mep/mep-pragma.c: Don't include rtl.h.
13704 (INVALID_REGNUM): New.
13705 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
13707 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
13708 Avoid enum/integer math.
13710 2010-09-13 Joseph Myers <joseph@codesourcery.com>
13713 * config/mep/t-mep (GTM_H): Add insn-constants.h.
13714 * config/mep/mep.c (mep_conditional_register_usage): Take no
13716 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
13718 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
13719 call to mep_conditional_register_usage.
13721 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
13724 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
13727 2010-09-13 Jakub Jelinek <jakub@redhat.com>
13729 PR rtl-optimization/45617
13730 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
13731 even if low N bits of X aren't known to be zero.
13733 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
13735 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
13737 * config/i386/i386.c (initial_ix86_tune_features): Add
13738 X86_TUNE_VECTORIZE_DOUBLE.
13739 (ix86_units_per_simd_word): New.
13741 * config/i386/i386.h (ix86_tune_indices): Add
13742 X86_TUNE_VECTORIZE_DOUBLE.
13743 (TARGET_VECTORIZE_DOUBLE): New.
13744 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
13746 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
13748 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
13749 (new_temp_expr_table): Allocate call_cnt vector.
13750 (free_temp_expr_table): Free it.
13751 (process_replaceable): Add call_cnt parm and set in vector.
13752 (find_replaceable_in_bb): Skip replacement if def/use span a call.
13753 (debug_ter): Dump call_cnt value, remove stderr uses.
13755 2010-09-13 Jan Hubicka <jh@suse.cz>
13757 * tree.c (build_zero_cst): New.
13758 * tree.h (build_zero_cst): Declare.
13759 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
13760 (get_base_constructor): Break out from ...
13761 (fold_const_aggregate_ref): Here; handle empty constructors.
13763 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
13765 * config/arm/arm.md: (define_attr "conds"): Update comment.
13766 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
13767 conds attribute to clob.
13768 (arm_sync_compare_and_swapsi): Likewise.
13769 (arm_sync_compare_and_swap<mode>): Likewise.
13770 (arm_sync_lock_test_and_setsi): Likewise.
13771 (arm_sync_lock_test_and_set<mode>): Likewise.
13772 (arm_sync_new_<sync_optab>si): Likewise.
13773 (arm_sync_new_nandsi): Likewise.
13774 (arm_sync_new_<sync_optab><mode>): Likewise.
13775 (arm_sync_new_nand<mode>): Likewise.
13776 (arm_sync_old_<sync_optab>si): Likewise.
13777 (arm_sync_old_nandsi): Likewise.
13778 (arm_sync_old_<sync_optab><mode>): Likewise.
13779 (arm_sync_old_nand<mode>): Likewise.
13781 2010-09-13 Olivier Hainque <hainque@adacore.com>
13783 * fwprop.c (forward_propagate_and_simplify): Only attach a
13784 REG_EQUAL note to an insn if the destination is a register.
13785 * gcse.c (try_replace_reg): Likewise.
13787 2010-09-13 Richard Guenther <rguenther@suse.de>
13789 PR tree-optimization/45611
13790 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
13791 (copy_ref_info): Likewise.
13793 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
13798 * tree-pretty-print.c (dump_generic_node): Disregard top-level
13799 types of MEM_REF pointer types to the same type.
13801 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
13803 PR rtl-optimization/41087
13804 * ifcvt.c (noce_get_condition): Don't allow conditions with
13807 2010-09-12 Anatoly Sokolov <aesok@post.ru>
13809 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13810 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
13811 * config/frv/frv.c (frv_register_move_cost): Make static. Change
13812 arguments type to reg_class_t. Add mode argument.
13813 (frv_memory_move_cost): New.
13814 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
13816 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
13818 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
13819 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
13821 2010-09-10 Jan Hubicka <jh@suse.cz>
13823 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
13825 2010-09-10 Richard Guenther <rguenther@suse.de>
13827 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
13828 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
13829 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
13830 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
13831 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
13833 2010-09-10 Richard Guenther <rguenther@suse.de>
13835 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
13836 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
13837 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
13838 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
13840 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
13842 PR middle-end/45634
13843 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
13844 of string folding is of integral type.
13846 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
13848 * doc/invoke.texi (-x): Fix typo.
13850 2010-09-10 Richard Guenther <rguenther@suse.de>
13853 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
13854 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13855 Output DECL_DEBUG_EXPR.
13856 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13857 Input DECL_DEBUG_EXPR.
13859 2010-09-10 Richard Guenther <rguenther@suse.de>
13861 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
13862 (build_index_type): Implement in terms of build_range_type.
13863 (build_range_type): Do not allow NULL_TREE type, improve
13864 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
13866 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
13867 create a distinct copy of the type.
13869 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
13871 * configure: Regenerated.
13872 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
13874 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13876 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
13877 * config/arm/cortex-a9-neon.md: New and partially generated.
13878 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
13880 2010-09-10 Richard Guenther <rguenther@suse.de>
13882 * tree.h (build_index_2_type): Remove.
13883 * tree.c (build_index_2_type): Remove.
13885 2010-09-10 Jakub Jelinek <jakub@redhat.com>
13888 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
13889 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
13890 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
13892 2010-09-10 Martin Jambor <mjambor@suse.cz>
13894 PR tree-optimization/44972
13895 * tree-sra.c: Include toplev.h.
13896 (build_ref_for_offset): Entirely reimplemented.
13897 (build_ref_for_model): New function.
13898 (build_user_friendly_ref_for_offset): New function.
13899 (analyze_access_subtree): Removed build_ref_for_offset check.
13900 (propagate_subaccesses_across_link): Likewise.
13901 (create_artificial_child_access): Use
13902 build_user_friendly_ref_for_offset.
13903 (propagate_subaccesses_across_link): Likewise.
13904 (ref_expr_for_all_replacements_p): Removed.
13905 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
13906 (sra_modify_expr): Use build_ref_for_model.
13907 (load_assign_lhs_subreplacements): Likewise.
13908 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
13909 checks for return values of build_ref_for_offset.
13910 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
13911 build_ref_for_offset.
13912 * ipa-prop.h: Include gimple.h
13913 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
13914 (ipa_analyze_indirect_call_uses): Update comment.
13915 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
13916 (IPA_PROP_H): Likewise.
13918 2010-09-10 Martin Jambor <mjambor@suse.cz>
13920 PR tree-optimization/44972
13921 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
13922 calling build_ref_for_offset.
13924 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13926 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
13927 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
13928 * config/arm/arm-tune.md: Regenerate.
13929 * doc/invoke.texi (ARM Options): Document it.
13931 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
13933 * config/i386/i386.c: Include sched-int.h.
13934 (TARGET_SCHED_DISPATCH): Defined.
13935 (TARGET_SCHED_DISPATCH_DO): Defined.
13936 (DISPATCH_WINDOW_SIZE): Defined.
13937 (MAX_DISPATCH_WINDOWS): Defined.
13938 (MAX_INSN): Defined.
13939 (MAX_IMM): Defined.
13940 (MAX_IMM_SIZE): Defined.
13941 (MAX_IMM_32): Defined.
13942 (MAX_IMM_64): Defined.
13943 (MAX_LOAD): Defined.
13944 (MAX_STORE): Defined.
13946 (dispatch_group): New.
13947 (num_allowable_groups): New.
13949 (sched_insn_info_s): New.
13950 (dispatch_windows_s): New.
13952 (dispatch_window_list): New.
13953 (dispatch_window_list1): New.
13954 (get_mem_group): New.
13956 (dispatch_violation): New.
13958 (is_prefetch): New.
13959 (init_window): New.
13960 (allocate_window): New.
13961 (init_dispatch_sched): New.
13962 (is_end_basic_block): New.
13963 (process_end_window): New.
13964 (allocate_next_window): New.
13965 (find_constant_1): New.
13966 (find_constant): New.
13967 (get_num_immediates): New.
13968 (has_immediate): New.
13969 (get_insn_path): New.
13970 (get_insn_group): New.
13971 (count_num_restricted): New.
13972 (fits_dispatch_window): New.
13973 (add_insn_window): New.
13974 (add_to_dispatch_window): New.
13975 (debug_dispatch_window_file): New.
13976 (debug_dispatch_window): New.
13977 (debug_insn_dispatch_info_file): New.
13978 (debug_ready_dispatch): New.
13979 (do_dispatch): New.
13980 (has_dispatch): New.
13981 * config/i386/i386.h (debug_ready_dispatch): Declared.
13982 (debug_dispatch_window): Declared.
13983 * config/i386/i386.opt (mdispatch-scheduler): New flag.
13984 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
13985 (TARGET_SCHED_DISPATCH_DO): New.
13986 * doc/tm.texi: Regererated.
13987 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
13988 ready_remove_first_dispatch
13989 (schedule_block): Call targetm.sched.dispatch and
13990 targetm.sched.dispatch_do.
13991 (sched_init): Call targetm.sched.dispatch and
13992 targetm.sched.dispatch_do.
13993 (ready_remove_first_dispatch): New.
13994 (number_in_ready): New.
13995 (get_ready_element): New.
13996 * hooks.c (hook_bool_rtx_int_false): New.
13997 (hook_void_rtx_int): New.
13998 * hooks.h (hook_bool_rtx_int_false): Declared.
13999 (hook_void_rtx_int): Declared.
14000 * sched-int.h (IS_DISPATCH_ON): Defined.
14002 (DISPATCH_VIOLATION): Defined.
14003 (FITS_DISPATCH_WINDOW): Defined.
14004 (DISPATCH_INIT): Defined.
14005 (ADD_TO_DISPATCH_WINDOW): Defined.
14006 (get_ready_element): Declared.
14007 (number_in_ready): Declared.
14008 * target.def (dispatch): Defined.
14009 (dispatch_do): Defined.
14011 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
14013 PR middle-end/45312
14014 * reload1.c (merge_assigned_reloads): Remove.
14015 (reload_as_needed): Don't call it.
14017 2010-09-09 Anatoly Sokolov <aesok@post.ru>
14019 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
14020 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14021 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14023 2010-09-09 Matthias Klose <doko@ubuntu.com>
14026 * configure.ac (--enable-plugin): Enhance for cross builds.
14027 * configure: Regenerate.
14029 2010-09-09 Jan Hubicka <jh@suse.cz>
14031 PR tree-optimization/45598
14032 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
14033 string folding is of integral type.
14035 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14037 * configure.ac (gnu_indirect_function): New test.
14038 * configure: Rebuilt.
14039 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
14040 * defaults.h (IFUNC_ASM_TYPE): Provide default.
14042 * doc/extend.texi (Function Attributes): Document ifunc.
14043 * varasm.c (do_assemble_alias): Deal with ifuncs too.
14045 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14047 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
14048 epilogue instruction move.
14050 2010-09-09 Jan Hubicka <jh@suse.cz>
14052 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
14053 command line to allow more partitions than input files.
14055 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
14057 PR middle-end/44554
14058 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
14060 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
14062 PR middle-end/40386
14063 * ira.c (pseudo_for_reload_consideration_p): Don't use
14064 flag_ira_share_spill_slots.
14066 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14068 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
14069 point zero operands that fit into a single GPR.
14070 (s390_preferred_reload_class): Ensure we only return general-purpose
14072 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
14073 floating-point zero operands into GPRs.
14074 ("*mov<mode>_64"): Likewise.
14075 ("mov<mode>"): Likewise using lhi.
14077 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14079 * config/s390/s390.c (s390_symref_operand_p): Return false for
14080 literal pool references.
14081 (s390_check_qrst_address): Update caller.
14083 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
14085 * config/i386/predicates.md (ext_register_operand): Check that
14086 SUBREG_REG is really a register before looking for REGNO.
14087 (reg_not_xmm0_operand): Handle SUBREGs correctly.
14088 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
14090 2010-09-09 Jakub Jelinek <jakub@redhat.com>
14092 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
14093 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
14094 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
14095 * print-rtl.c (print_rtx): Likewise.
14096 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14097 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
14098 for ADDR_EXPR with non-addressable object.
14099 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
14100 (struct dw_val_struct): Add v.val_decl_ref.
14101 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
14102 Handle DW_OP_GNU_implicit_pointer.
14103 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
14104 (get_ref_die_offset_label): New function.
14105 (implicit_ptr_descriptor): New function.
14106 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
14107 (loc_descriptor): Likewise.
14108 (gen_variable_die): Put even definitions into decl_die_table.
14109 (resolve_addr_in_expr): Resolve still unresolved
14110 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
14112 (dwarf2out_finish): Call output_location_lists after outputting
14113 .debug_info and .debug_abbrev instead of before.
14115 2010-09-09 Roland McGrath <roland@redhat.com>
14117 * dwarf2out.c (DWARF_REF_SIZE): Define.
14118 (size_of_loc_descr): Use it for DW_OP_call_ref.
14120 2010-09-09 Alan Modra <amodra@gmail.com>
14122 * doc/invoke.text: Reinstate mcmodel=medium.
14123 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
14124 CMODEL_MEDIUM as default.
14125 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
14126 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
14127 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
14128 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
14130 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14133 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
14134 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
14135 (builtin_longjmp): Likewise.
14136 (allocate_stack): Use hard_frame_pointer_rtx instead of
14138 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
14139 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
14140 (pa_can_eliminate): Likewise.
14141 (TARGET_INTERNAL_ARG_POINTER): Define.
14142 (TARGET_CAN_ELIMINATE): Define.
14143 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
14145 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
14146 (pa_internal_arg_pointer, pa_can_eliminate,
14147 pa_initial_elimination_offset): New.
14148 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
14149 (HARD_FRAME_POINTER_REGNUM): Set to register three.
14150 (INITIAL_FRAME_POINTER_OFFSET): Delete.
14151 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
14153 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
14154 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
14155 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
14156 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
14157 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
14158 new soft frame pointer.
14159 * config/pa/pa64-regs.h: Likewise.
14161 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
14163 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
14164 numerical constant.
14165 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
14167 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
14170 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
14172 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
14176 * tree-pretty-print.c (dump_generic_node): Disregard top-level
14177 qualifiers in otherwise equal MEM_REF pointer types.
14178 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
14179 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
14181 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14184 * config/arm/arm.md (bswapsi2): Handle condition correctly
14185 for armv6 and optimize_size.
14187 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14190 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
14192 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
14194 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
14195 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
14196 ix86_expand_strlen, legitimate_pic_address_disp_p,
14197 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
14198 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
14199 ix86_check_movabs, ix86_secondary_memory_needed): Change function
14201 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
14202 return_in_memory_ms_64, ix86_check_movabs,
14203 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
14204 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
14205 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
14206 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
14207 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
14208 ix86_secondary_memory_needed): Change to bool. Return
14209 "true" and "false" values.
14210 * config/i386/i386.md: Return "true" and "false" values.
14212 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14214 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14215 run_expensive_tests.
14217 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14219 * toplev.c (output_stack_usage): Use lbasename instead of basename.
14221 2010-09-08 Martin Jambor <mjambor@suse.cz>
14224 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
14227 2010-09-08 Richard Guenther <rguenther@suse.de>
14229 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
14231 (iterative_hash_gimple_type): Likewise.
14232 (gimple_type_hash): Likewise.
14233 (gimple_register_type): Likewise.
14234 (print_gimple_types_stats): Likewise.
14235 (free_gimple_type_tables): Likewise.
14237 2010-09-08 Michael Matz <matz@suse.de>
14239 PR tree-optimization/43430
14240 * tree-vect-stmts.c (vectorizable_condition): Support multiple
14241 copies for conditional statements if it's not part of a reduction.
14243 2010-09-08 Michael Matz <matz@suse.de>
14245 PR tree-optimization/33244
14246 * tree-ssa-sink.c (statement_sink_location): Don't sink into
14247 empty loop latches.
14249 2010-09-08 Richard Guenther <rguenther@suse.de>
14251 PR tree-optimization/45578
14252 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
14253 Be more careful when transfering alignment information to
14254 the new induction variable.
14255 (copy_ref_info): Likewise.
14257 2010-09-08 Richard Guenther <rguenther@suse.de>
14259 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
14260 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
14262 2010-09-08 Arnaud Charlet <charlet@adacore.com>
14264 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
14265 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
14267 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
14270 * doc/md.texi: Fixed modes on several standard pattern names.
14272 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
14274 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
14275 (ashl<mode>3): ...this.
14276 (loongson_psra<V_suffix>): Rename to...
14277 (ashr<mode>3): ...this.
14278 (loongson_psrl<V_suffix>): Rename to...
14279 (lshr<mode>3): ...this.
14280 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
14281 (CODE_FOR_loongson_psllw): Define.
14282 (CODE_FOR_loongson_psrlh): Define.
14283 (CODE_FOR_loongson_psrlw): Define.
14284 (CODE_FOR_loongson_psrah): Define.
14285 (CODE_FOR_loongson_psraw): Define.
14287 2010-09-07 Richard Henderson <rth@redhat.com>
14289 * tree-vect-data-refs.c: Include tm_p.h.
14290 * Makefile.in (tree-vect-data-refs.o): Update deps.
14291 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
14292 Move delarations outside #ifdef RTX_CODE.
14294 2010-09-07 Richard Henderson <rth@redhat.com>
14296 * final.c (rest_of_handle_final): Unconditionally do
14297 output_function_exception_table before assemble_end_function.
14299 2010-09-07 Jan Hubicka <jh@suse.cz>
14301 * tree-inline.c (tree_inlinable_function_p): Do not test
14302 DECL_REPLACEABLE_P.
14303 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
14304 update_callee_keys, cgraph_decide_inlining): Test function availability.
14305 * cif-code.def (OVERWRITABLE): New code.
14307 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
14308 Jack Howarth <howarth@bromo.med.uc.edu>
14313 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
14314 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
14315 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
14318 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
14320 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
14321 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
14323 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
14325 * config.gcc: Don't append t-android for Android targets.
14327 * config/t-android: Removed.
14329 2010-09-07 Richard Henderson <rth@redhat.com>
14331 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
14332 * doc/tm.texi.in: Add doc marker.
14333 * doc/tm.texi: Rebuild.
14334 * except.c (switch_to_exception_section): Always build.
14335 (output_one_function_exception_table): Move section switch,
14336 personality output, and label output ...
14337 (output_function_exception_table): ... here. Use the new
14340 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
14341 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
14342 TARGET_ASM_INIT_SECTIONS): New.
14343 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
14345 (TARGET_ASM_UNWIND_EMIT): Update to match.
14346 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
14348 * config/arm/arm.c (arm_asm_emit_except_personality): New.
14349 (arm_asm_init_sections): New.
14350 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
14352 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14354 * config/arm/arm.md: Remove unused variable.
14356 2010-09-07 Anatoly Sokolov <aesok@post.ru>
14358 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14359 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
14360 (m32r_memory_move_cost): New function.
14362 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
14364 * config.gcc: Append t-android for Android targets.
14366 * config/t-android: New.
14368 2010-09-07 Richard Henderson <rth@redhat.com>
14370 * target.def (unwind_emit_before_insn): New hook.
14371 * doc/tm.texi.in: Add @hook marker for it.
14372 * doc/tm.texi: Rebuild.
14373 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
14375 2010-09-07 Martin Jambor <mjambor@suse.cz>
14378 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
14379 are any type attributes.
14381 2010-09-07 Jan Hubicka <jh@suse.cz>
14383 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
14384 array_ref_low_bound in string access folding.
14386 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
14389 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
14390 eh_return fixup sequence.
14392 2010-09-07 Jan Hubicka <jh@suse.cz>
14394 * gimple-fold.c (maybe_fold_reference): Verify that operand is
14395 gimple_min_invariant.
14397 2010-09-07 Richard Guenther <rguenther@suse.de>
14399 PR middle-end/45569
14400 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
14401 nor CONSTRUCTOR can trap.
14402 * tree-complex.c (update_complex_assignment): Update EH info.
14404 2010-09-07 Richard Guenther <rguenther@suse.de>
14406 PR middle-end/45569
14407 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
14408 * passes.c (execute_function_todo): Do not verify anything if
14411 2010-09-07 Richard Guenther <rguenther@suse.de>
14413 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
14415 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
14418 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
14419 New define_mode_attrs.
14420 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
14421 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
14422 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
14423 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
14424 Remove pool_range attribute.
14425 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
14426 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
14427 pool_range and neg_pool_range attributes.
14428 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
14429 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
14430 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
14432 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
14434 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
14437 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
14440 * config/i386/mmx.md (*mov<mode>_internal_rex64,
14441 *mov<mode>_internal_avx, *mov<mode>_internal,
14442 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
14443 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
14445 2010-09-06 Mark Mitchell <mark@codesourcery.com>
14447 * c-typeck.c (do_warn_double_promotion): Remove.
14448 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
14451 2010-09-06 Anatoly Sokolov <aesok@post.ru>
14453 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
14454 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
14455 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
14456 argument type to reg_class_t. Change result type to bool.
14457 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14459 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
14462 * gthr-posix.h (__gthread_objc_thread_detach): Use
14463 _objc_thread_attribs when detaching a thread.
14464 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
14466 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
14469 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
14470 * configure: Regenerated.
14472 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14474 * combine.c (try_combine): Set subst_low_luid to i0.
14476 2010-09-06 Richard Guenther <rguenther@suse.de>
14478 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
14479 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
14480 (build_aligned_type): Declare.
14481 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
14482 (check_aligned_type): New function.
14483 (build_aligned_type): Likewise.
14484 * expr.c (expand_assignment): Handle misaligned stores via
14485 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
14486 (expand_expr_real_1): Likewise.
14487 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
14488 * tree-vect-stmts.c (vectorizable_store): Do not build
14489 MISALIGNED_INDIRECT_REF but initialize alignment information.
14490 (vectorizable_load): Likewise.
14491 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
14493 * cfgexpand.c (expand_debug_expr): Likewise.
14494 * dwarf2out.c (loc_list_from_tree): Likewise.
14495 * fold-const.c (maybe_lvalue_p): Likewise.
14496 (operand_equal_p): Likewise.
14497 (build_fold_addr_expr_with_type_loc): Likewise.
14498 * gimplify.c (gimplify_addr_expr): Likewise.
14499 (gimplify_expr): Likewise.
14500 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
14501 (verify_gimple_assign_single): Likewise.
14502 * tree-dump.c (dequeue_and_dump): Likewise.
14503 (tree_could_trap_p): Likewise.
14504 * tree-predcom.c (ref_at_iteration): Likewise.
14505 * tree-pretty-print.c (dump_generic_node): Likewise.
14506 (op_code_prio): Likewise.
14507 (op_symbol_code): Likewise.
14508 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
14509 * tree-ssa-loop-im.c (for_each_index): Likewise.
14510 (gen_lsm_tmp_name): Likewise.
14511 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
14512 (find_interesting_uses_address): Likewise.
14513 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
14514 * tree-ssa-operands.c (get_expr_operands): Likewise.
14515 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14516 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14517 (ao_ref_init_from_vn_reference): Likewise.
14518 * tree.c (staticp): Likewise.
14519 (build1_stat): Likewise.
14520 (reference_alias_ptr_type): Likewise.
14521 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14522 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
14523 MISALIGNED_INDIRECT_REF handling.
14525 2010-09-06 Richard Guenther <rguenther@suse.de>
14527 PR tree-optimization/45534
14528 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
14529 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
14531 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
14532 valid on the target.
14534 2010-09-06 Andreas Schwab <schwab@redhat.com>
14536 * configure.ac: Quote argument of AC_MSG_WARN.
14537 * configure: Regenerate.
14539 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
14541 * sel-sched.c (move_cond_jump): Correct arguments to
14542 maybe_tidy_empty_bb.
14543 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
14545 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
14547 PR rtl-optimization/44919
14548 * sel-sched.c (move_cond_jump): Remove assert, check that
14549 the several blocks case can only happen with mutually exclusive
14550 insns instead. Rewrite the movement code to support moving through
14551 several basic blocks.
14553 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
14555 * config/i386/i386.md (iptrsize): New mode attribute.
14557 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
14559 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
14560 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
14561 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
14562 (stack_tls_protect_set_<mode>): Ditto from
14563 stack_tls_protect_set_{si,di}. Use %@ to output segment register
14564 of thread base pointer load.
14565 (stack_tls_protect_test_<mode>): Ditto from
14566 stack_tls_protect_test_{si,di}. Use %@ to output segment register
14567 of thread base pointer load.
14568 (stack_protect_set): Rewrite using indirect functions.
14569 (stack_protect_test): Ditto.
14570 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
14571 (ix86_print_operand): Handle '@'.
14573 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
14575 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
14578 2010-09-05 Mark Mitchell <mark@codesourcery.com>
14580 * doc/invoke.texi: Document -Wdouble-promotion.
14581 * c-typeck.c (convert_arguments): Check for implicit conversions
14582 from float to double.
14583 (do_warn_double_promotion): New function.
14584 (build_conditional_expr): Use it.
14585 (build_binary_op): Likewise.
14587 2010-09-05 Richard Guenther <rguenther@suse.de>
14589 PR tree-optimization/45535
14590 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
14591 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
14593 (indirect_refs_may_alias_p): Likewise.
14595 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
14597 * config/sh/sh.c (sh_option_override): Make static.
14598 Adjust comments. Declare.
14599 (sh_function_value_regno_p): Likewise.
14600 (sh_register_move_cost): Modify the arguments, make static.
14601 Adjust comments. Declare.
14602 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
14603 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14604 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
14605 REGISTER_MOVE_COST): Delete.
14606 * config/sh/sh-protos.h (sh_override_options): Delete.
14607 (sh_register_move_cost): Delete.
14608 (sh_function_value_regno_p): Delete.
14610 2010-09-04 Anatoly Sokolov <aesok@post.ru>
14612 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
14613 m32r_function_value_regno_p): New functions.
14614 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14615 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
14616 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
14617 FUNCTION_VALUE_REGNO_P): Remove.
14619 2010-09-04 Jan Hubicka <jh@suse.cz>
14621 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
14622 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
14623 fold_read_from_constant_string.
14625 * gimple.h (canonicalize_constructor_val): Declare.
14626 * gimple-fold.c (canonicalize_constructor_val): New function.
14627 (get_symbol_constant_value):Use it.
14628 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
14630 2010-09-04 Jan Hubicka <jh@suse.cz>
14632 * tree-switch-conversion.c (build_one_array): Set constructor to be
14634 * varpool.c (varpool_finalize_decl): Compute const_value_known.
14636 2010-09-04 Richard Guenther <rguenther@suse.de>
14639 * tree-flow.h (force_gimple_operand_1): Declare.
14640 (force_gimple_operand_gsi_1): Likewise.
14641 * gimplify.c (force_gimple_operand_1): New worker taking a
14642 gimple predicate for ...
14643 (force_gimple_operand): ... which now wraps it.
14644 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
14645 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
14647 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
14648 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
14649 (create_mem_ref): Likewise.
14651 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
14653 * config/i386/predicates.md (sse_reg_operand): New predicate.
14654 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
14655 predicate for operand 1.
14656 (XFmode push splitter): Use fp_register_operand predicate
14658 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
14659 (SF-DF float_extend push splitter): Add reload_completed insn
14661 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
14662 MODEF mode macro. Add reload_completed insn predicate.
14664 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
14666 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
14667 (struct df_extract_ref): Remove.
14668 (union df_ref_d): Remove extract_ref member.
14669 (df_ref_create): Remove last three arguments.
14670 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
14671 * df-scan.c (df_ref_record): Remove last three arguments, do not
14672 pass them to df_ref_create_structure.
14673 (df_uses_record): Remove first and last three arguments. Replace
14674 first argument with DF_REF_REGULAR, adjust calls to remove the
14675 width, offset and mode. Always call recursively on the second
14676 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
14677 (df_ref_create_structure): Remove first argument.
14678 (struct df_scan_problem_data): Remove ref_extract_pool.
14679 (df_scan_free_internal): Do not free it.
14680 (df_scan_alloc): Do not allocate it.
14681 (df_ref_create): Remove last three arguments, do not pass them to
14682 df_ref_create_structure.
14683 (df_free_ref): Remove DF_REF_EXTRACT case.
14684 (df_notes_rescan): Adjust call to df_uses_record.
14685 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
14686 Remove DF_REF_EXTRACT case.
14687 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
14688 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
14689 and SUBREG definitions.
14690 (df_get_conditional_uses): Remove references to width/offset/mode,
14691 adjust call to df_ref_create_structure.
14692 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
14693 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
14694 calls to df_uses_record and df_ref_record.
14695 * fwprop.c (update_df): Remove references to width/offset/mode,
14696 adjust call to df_ref_create.
14698 2010-09-03 Jan Hubicka <jh@suse.cz>
14700 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
14701 (build_cdtor_fns): Update use of build_cdtor.
14703 2010-09-03 Joseph Myers <joseph@codesourcery.com>
14705 * doc/options.texi (SeparateAlias): Document.
14706 * opt-functions.awk (switch_flags): Handle SeparateAlias.
14707 * opth-gen.awk: Generate enumeration names for options marked
14708 SeparateAlias, but not for those marked Ignore.
14709 * opts-common.c (generate_canonical_option): Don't output separate
14710 argument for options marked CL_SEPARATE_ALIAS.
14711 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
14712 * opts.h (CL_SEPARATE_ALIAS): New.
14713 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14714 CL_COMMON): Adjust definitions.
14715 * config/i386/darwin.opt, config/mips/sde.opt: New.
14716 * common.opt (fdump-final-insns): New.
14717 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14719 (mips*-sde-elf*): Add mips/sde.opt.
14720 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
14721 -mno-data-in-code and -mcode-xonly here.
14722 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
14723 * gcc.c (option_map): Add "j" to --dump entry.
14724 (translate_options): Don't translate -d to -foutput-class-dir= here.
14726 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
14728 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
14730 (compute_all_dependences): Same.
14731 (create_rdg_edge_for_ddr): Same.
14732 * tree-data-ref.h (DR_IS_WRITE): New.
14733 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
14734 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
14735 (write_memrefs_written_at_least_once): Same.
14736 * tree-predcom.c (suitable_component_p): Same.
14737 (determine_roots_comp): Same.
14738 (execute_load_motion): Same.
14739 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
14740 (vect_enhance_data_refs_alignment): Same.
14741 (vect_analyze_group_access): Same.
14743 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
14746 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
14747 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
14749 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
14751 * dwarf2out.c (file scope): Remove #if0'd code.
14752 (gen_subprogram_die): Same.
14754 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14756 PR middle-end/45484
14757 * dwarf2out.c (flush_queued_reg_saves): Rename to...
14758 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
14759 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
14760 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
14761 * config/i386/i386.c (output_set_got): Call it.
14763 2010-09-03 Michael Matz <matz@suse.de>
14765 PR middle-end/45415
14766 * tree-sra.c (sra_modify_assign): If we modify the statement,
14769 * tree-ssa.c (verify_ssa): Check number of operands and links
14770 per statement to agree.
14772 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14773 Iain Sandoe <iains@gcc.gnu.org>
14776 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
14777 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
14778 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14780 2010-09-03 Richard Guenther <rguenther@suse.de>
14782 * lto-streamer-out.c (output_function): Output function
14783 start and end loci.
14784 * lto-streamer-in.c (input_function): Input function start
14787 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14789 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
14790 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
14791 * configure: Regenerate.
14792 * aclocal.m4: Regenerate.
14794 2010-09-03 Jan Hubicka <jh@suse.cz>
14797 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
14798 on functions/variables in other partition.
14800 2010-09-03 Jan Hubicka <jh@suse.cz>
14802 * cgraph.h (struct varpool_node): Add const_value_known.
14803 (varpool_decide_const_value_known): Declare.
14804 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
14805 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
14806 (input_varpool_node): Restore const_value_known.
14807 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
14808 initializer folding.
14809 * ipa.c (ipa_discover_readonly_nonaddressable_var,
14810 function_and_variable_visibility): Compute const_value_known.
14811 * gimple-fold.c (get_symbol_constant_value): Use varpool for
14812 initializer folding.
14813 * varpool.c (varpool_decide_const_value_known): New function.
14815 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14817 * config/i386/i386.md: Remove empty preparation statements
14820 2010-09-03 Jan Hubicka <jh@suse.cz>
14822 * passes.c (rest_of_decl_compilation): Do not add local vars into
14824 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
14825 static or extern vars are in varpool.
14826 (varpool_finalize_decl): Sanity check that only static vars are
14829 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14832 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
14833 not just generic vectors with BLKmode.
14835 2010-09-03 Richard Guenther <rguenther@suse.de>
14837 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
14838 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
14839 * tree.h (TMR_SYMBOL): Remove.
14840 (TMR_BASE, TMR_OFFSET): Adjust.
14842 * alias.c (ao_ref_from_mem): Use TMR_BASE.
14843 * builtins.c (get_object_alignment): Merge TMR_BASE and
14844 TMR_SYMBOL handling.
14845 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
14846 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
14847 handling. Also allow TARGET_MEM_REF as base address.
14848 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
14849 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
14850 base. Gimplify TMR_INDEX2.
14851 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
14852 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14853 (get_addr_base_and_unit_offset): Likewise.
14854 * tree-eh.c (tree_could_trap_p): Likewise.
14855 * tree-pretty-print.c (dump_generic_node): Likewise.
14856 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
14857 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
14859 (get_address_description): Reconstruct addres description
14860 from merged TMR_BASE and TMR_INDEX2.
14861 (maybe_fold_tmr): Fold propagated addresses.
14862 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
14863 MEM_REF and TARGET_MEM_REF paths.
14864 (indirect_refs_may_alias_p): Likewise.
14865 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
14866 instead of TMR_SYMBOL.
14867 * tree-ssa-operands.c (get_tmr_operands): Simplify.
14868 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
14869 according to changes ...
14870 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
14871 Split TARGET_MEM_REF into two fields plus the base.
14872 * tree.c (mem_ref_offset): Simplify.
14873 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
14874 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
14875 Strip NOPs when folding MEM_REF addresses.
14876 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
14877 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
14878 (fold_gimple_assign): ... not here.
14880 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
14882 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
14883 * config/mips/mips.c (mips_shift_truncation_mask): New function.
14884 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14886 2010-09-02 Richard Henderson <rth@redhat.com>
14888 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
14889 instead of readelf in the test.
14890 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
14891 in the .debug_frame section for coff targets.
14892 * configure: Rebuild.
14894 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14896 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
14897 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
14898 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14899 (m32c_class_likely_spilled_p): Make static. Change argument type to
14900 reg_class_t. Change result type to bool.
14902 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14904 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
14905 to convert (double)(long) into a single FRIZ instruction or not
14906 when -ffast-math is used.
14908 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
14909 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
14910 or FRIZ instruction if -ffast-math.
14911 * config/rs6000/rs6000.md (friz): Ditto.
14913 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
14915 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14917 * opth-gen.awk (quote, comma): Remove unused variables.
14919 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
14921 * arm.c (arm_override_options): Correct fall-back code to use
14922 SUBTARGET_CPU_DEFAULT.
14924 2010-09-02 Julian Brown <julian@codesourcery.com>
14926 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
14928 (vcond<mode>, vcondu<mode>): New expanders.
14929 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
14930 comparisons with zero.
14931 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
14932 * config/arm/constraints.md (Dz): New constraint.
14934 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14936 * target.def (class_likely_spilled_p): New hook.
14937 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
14938 * doc/tm.texi: Regenerate.
14939 * targhooks.c (default_class_likely_spilled_p): New function.
14940 * targhooks.h (default_class_likely_spilled_p): Declare.
14941 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
14942 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
14943 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
14944 Use fixed_reg_set instead of fixed_regs.
14945 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14946 * calls.c (avoid_likely_spilled_reg): Ditto.
14947 * ira-conflicts.c (ira_build_conflicts): Ditto.
14948 * ira.c (update_equiv_regs): Ditto.
14949 * mode-switching.c (create_pre_exit): Ditto.
14950 * regmove.c (find_matches): Ditto.
14951 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14952 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
14953 (small_register_class_p): New inline function.
14954 (push_secondary_reload, find_reusable_reload, find_reloads): Use
14955 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
14957 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
14958 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
14959 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14961 2010-09-02 Richard Guenther <rguenther@suse.de>
14963 PR tree-optimization/44937
14964 PR tree-optimization/45412
14965 * ipa-split.c (split_function): Properly remove PHI nodes.
14967 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14969 * opts.h (struct cl_option): Add warn_message field.
14970 (struct cl_decoded_option): Add warn_message field.
14971 * doc/options.texi (Ignore, Warn): Document.
14972 * opt-functions.awk (needs_state_p): Don't consider aliases or
14973 ignored options to need state saved.
14974 * optc-gen.awk: Handle Warn and Ignore.
14975 * opth-gen.awk: Output OPT_SPECIAL_ignore.
14976 * opts-common.c (decode_cmdline_option): Set warn_message field.
14977 Handle ignored options.
14978 (decode_cmdline_options_to_array, generate_option,
14979 generate_option_input_file): Set warn_message field.
14980 (read_cmdline_option): Generate warnings from warn_message field.
14981 Handle ignored options.
14982 * common.opt (Wunreachable-code, fargument-alias,
14983 fargument-noalias, fargument-noalias-global,
14984 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
14985 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
14986 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
14987 ftree-salias): Mark Ignore.
14988 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
14989 -mintel-syntax and -mno-intel-syntax here.
14990 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
14992 * opts.c (common_handle_option): Don't handle options marked as
14994 (enable_warning_as_error): Handle ignored options.
14996 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14999 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
15000 alias_target fields.
15001 * opt-functions.awk (opt_sanitized_name): Don't handle
15002 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
15003 * optc-gen.awk: Generate alias fields.
15004 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
15005 Don't generate such constants for aliases.
15006 * opts-common.c (generate_canonical_option): New.
15007 (decode_cmdline_option): Handle aliases. Use
15008 generate_canonical_option for known options instead of copying the
15010 * doc/options.texi (Alias): Document.
15011 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
15012 fstack-check, specs): Mark as aliases.
15013 * gcc.c (driver_handle_option): Canonicalize -L options to joined
15015 (driver_handle_option): Don't handle OPT_specs.
15016 * opts.c (common_handle_option): Don't handle options marked as
15018 (enable_warning_as_error): Handle aliases.
15019 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
15020 OPT_Wlarger_than_eq.
15021 * tree-optimize.c (tree_rest_of_compilation): Use
15022 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
15024 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
15026 * config/i386/i386.md (nonmemory_operand): New mode attribute.
15027 (push memory peephole2): Macroize peepholes using SWI mode iterator.
15028 (move immediate to memory peephole2): Macroize peepholes using
15029 SWI124 mode iterator.
15030 (non-pairable NOT peephole2): Macroize peepholes using SWI124
15032 (simple lea add peephole2): Macroize peepholes using SWI48
15034 (simple lea mult peephole2): Ditto.
15035 (imul by 3,5,9 to lea peephole2): Ditto.
15036 (mov $-1, reg peephole2): Macroize peepholes using SWI248
15038 (imul $32bit_imm,mem,reg peephole2): Ditto.
15039 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
15041 2010-09-02 Ian Bolton <ian.bolton@arm.com>
15043 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
15045 2010-09-02 Olivier Hainque <hainque@adacore.com>
15047 PR middle-end/44763
15048 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
15049 (allocno_priority_compare_func): Use it instead of a straight
15050 difference computation over priorities.
15052 2010-09-02 Andi Kleen <ak@linux.intel.com>
15054 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
15056 2010-09-02 Ira Rosen <irar@il.ibm.com>
15058 * tree-vectorizer.h (get_later_stmt): New function.
15059 (vect_analyze_data_ref_dependences): Add argument.
15060 * tree-vect-loop.c (vect_analyze_loop): Update call to
15061 vect_analyze_data_ref_dependences.
15062 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
15064 (vect_analyze_data_ref_dependence): Add argument for basic block
15065 dependencies. Check dependencies in basic block vectorization.
15066 (vect_analyze_data_ref_dependences): Add argument and update call to
15067 vect_analyze_data_ref_dependences.
15068 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
15069 (vect_bb_vectorizable_with_dependencies): New.
15070 (vect_slp_analyze_bb): Check dependencies in basic block.
15071 (vect_schedule_slp_instance): Insert stores before the last store in
15074 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
15077 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
15078 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
15080 2010-09-01 Jakub Jelinek <jakub@redhat.com>
15082 PR middle-end/45458
15083 * bb-reorder.c (add_labels_and_missing_jumps): Treat
15084 bbs ending with throwing insns like blocks ending with a call.
15085 (fix_up_fall_thru_edges): Likewise.
15087 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
15089 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
15090 (m32c_function_arg_advance): Delete.
15091 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15092 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
15093 comments. Take a const_tree and a bool. Declare.
15094 (m32c_function_arg_advance): Likewise.
15095 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15097 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
15100 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
15101 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
15102 * config/i386/mingw32.h: ... here.
15104 2010-09-01 Andi Kleen <ak@linux.intel.com>
15107 * lto-streamer-in.c (lto_input_ts_target_option): Add.
15108 (lto_input_tree_pointers): Call lto_input_ts_target_option.
15109 * lto-streamer-out (lto_output_ts_target_option): Add.
15110 (lto_output_tree_pointers): Call lto_output_ts_target_option.
15112 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
15115 * config/i386/cygwin.h: Change order of specified import libraries.
15116 * config/i386/mingw32.h: Likewise.
15117 * config/i386/t-cygwin: Likewise.
15118 * config/i386/t-mingw32: Likewise.
15119 * config/i386/t-mingw-w32: Likewise.
15120 * config/i386/t-mingw-w64: Likewise.
15122 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15124 * config/arm/neon-schedgen.ml (core): New type.
15125 (allCores): List of supported cores.
15126 (availability_table): Add supported cores.
15127 (collate_bypasses): Accept core as a parameter.
15128 (worst_case_latencies_and_bypasses): Accept core as a parameter.
15129 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
15130 and coreStr to get tune attribute and prefix for functional units.
15131 (emit_bypasses): Accept core name and use it.
15132 (calculate_per_core_availability_table): New.
15133 (filter_core): New.
15134 (calculate_core_availability_table): New.
15135 (main): Use calculate_core_availablity_table.
15136 * config/arm/cortex-a8-neon.md: Update copyright year.
15137 Regenerated from ml file and merged in.
15138 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
15139 cortex_a8_neon_mrc.
15141 2010-09-01 Ian Bolton <ian.bolton@arm.com>
15143 * Makefile.in (tree-switch-conversion.o): Update dependencies.
15145 2010-09-01 Richard Guenther <rguenther@suse.de>
15147 * alias.c (ao_ref_from_mem): Adjust.
15148 * builtins.c (get_object_alignment): Likewise.
15149 * cfgexpand.c (expand_debug_expr): Likewise.
15150 * gimple.c (get_base_address): Likewise.
15151 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15152 (get_addr_base_and_unit_offset): Likewise. Fix for
15153 both TMR_SYMBOL and TMR_BASE being set.
15154 * tree-eh.c (tree_could_trap_p): Likewise.
15155 * gimplify.c (gimplify_expr): Do not attempt to gimplify
15156 TMR_SYMBOL. Always gimplify TMR_BASE.
15157 * tree-cfg.c (verify_types_in_gimple_reference): Verify
15158 TMR_BASE if there is a TMR_SYMBOL.
15159 * tree-pretty-print.c (dump_generic_node): Adjust.
15160 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
15161 (tree_mem_ref_addr): Likewise.
15162 (create_mem_ref_raw): Likewise.
15163 (move_fixed_address_to_symbol): Likewise.
15164 (create_mem_ref): Likewise.
15165 (dump_mem_address): Likewise.
15166 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
15167 Fix for both TMR_SYMBOL and TMR_BASE being set.
15168 (indirect_refs_may_alias_p): Likewise.
15169 * tree-ssa-operands.c (get_tmr_operands): Adjust.
15170 * tree.def (TARGET_MEM_REF): Adjust documentation.
15172 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
15174 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
15175 Rename from X86_TUNE_ADD_ESP_4.
15176 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
15177 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
15178 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
15179 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
15180 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
15181 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
15182 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
15183 * config/i386/i386.c (initial_ix86_tune_features)
15184 <X86_TUNE_SINGLE_POP>: Invert members.
15185 <X86_TUNE_DOUBLE_POP>: Ditto.
15186 <X86_TUNE_SINGLE_PUSH>: Ditto.
15187 <X86_TUNE_DOUBLE_PUSH>: Ditto.
15188 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
15189 No longer exported.
15190 (push peephole2 patterns): Macroize peepholes using P mode iterator.
15191 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
15192 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
15193 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
15195 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
15197 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
15198 a volatile LHS if the constructor has only one element.
15200 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
15203 * tree.c (stdarg_p): Make fntype parameter const.
15204 * tree.h (stdarg_p): Likewise.
15205 (function_args_iterator): Remove unused fntype field.
15206 (function_args_iter_init): Do not initialize fntype
15207 field. Make fntype parameter const.
15209 2010-09-01 Richard Guenther <rguenther@suse.de>
15211 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
15213 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
15214 (execute_vrp): Compute number of iteration estimates.
15215 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
15216 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
15217 * tree-data-ref.c (estimated_loop_iterations): Adjust.
15218 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15219 Infer loop bounds from undefined behavior based on a new parameter.
15220 (estimate_numbers_of_iterations): Likewise.
15221 (scev_probably_wraps_p): Adjust.
15222 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
15224 2010-09-01 Nick Clifton <nickc@redhat.com>
15226 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
15228 (xstormy16_legitimate_address_p): Use true and false instead of 1
15230 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
15231 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
15233 (xstormy16_expand_call): Fix comment at start of function.
15235 2010-09-01 Nick Clifton <nickc@redhat.com>
15237 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
15238 when pushing accumulator register.
15239 (rx_get_stack_layout): Always save call clobbered registers inside
15240 interrupt handlers.
15241 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
15243 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
15245 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
15246 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
15248 * libgcc-std.ver (GCC_4.6.0): Define version.
15250 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
15252 * tree-nested.c (convert_all_function_calls): Iterate until after the
15253 sum of static chains in the nest doesn't change.
15255 2010-08-31 Anatoly Sokolov <aesok@post.ru>
15257 * config/m32c/m32c.c (classes_intersect): Remove.
15258 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
15259 reg_classes_intersect_p instead of classes_intersect.
15260 (class_can_hold_mode): Change arguments type from enum reg_class to
15261 reg_class_t. Use reg_class_contents instead of class_contents.
15262 (m32c_register_move_cost): Make static. Change arguments type from
15263 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
15264 classes_intersect. Use reg_class_contents instead of class_contents.
15265 (m32c_memory_move_cost): Make static. Change arguments type from
15266 enum reg_class to reg_class_t.
15267 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15268 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15269 * config/m32c/m32c-protos.h (m32c_register_move_cost,
15270 m32c_memory_move_cost): Remove.
15272 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15274 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
15275 (arm_function_arg): Delete.
15276 (arm_needs_doubleword_align): Take a const_tree.
15277 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15278 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
15279 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
15280 (arm_function_arg): Make static. Take a const_tree and a bool.
15281 (arm_function_arg_advance): Likewise.
15282 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15284 2010-08-31 Andi Kleen <ak@linux.intel.com>
15286 * common.opt (fwhopr=): Update for -fwhopr=jobserver
15287 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
15288 * lto-wrapper.c (run_gcc): Add jobserver mode.
15289 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
15292 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
15294 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
15296 (*popdi1_epilogue): Ditto.
15297 (*popsi1_epilogue): Ditto.
15298 (popsi, popdi peephole2 patterns): Update peepholes for changed
15299 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
15301 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
15302 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
15304 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
15305 (override_options): Do not initialize removed ix86_gen_pop1.
15306 (gen_pop): New static function.
15307 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
15308 (release_scratch_register_on_entry): Ditto.
15309 (ix86_restore_reg_using_pop): Ditto.
15310 (ix86_expand_epilogue): Ditto.
15312 2010-08-31 Jakub Jelinek <jakub@redhat.com>
15314 PR middle-end/45461
15315 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
15317 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15319 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
15322 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15324 * doc/extend.texi: Fix documentation of the return value of
15325 __builtin_choose_expr.
15327 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15329 * config/v850/v850-protos.h (function_arg): Delete.
15330 * config/v850/v850.h (FUNCTION_ARG): Delete.
15331 (FUNCTION_ARG_ADVANCE): Move code to...
15332 * config/v850/v850.c (v850_function_arg_advance): ...here.
15333 (v850_function_arg): Make static. Take a const_tree and a bool.
15334 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15336 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15338 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
15340 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
15342 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
15344 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
15346 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15348 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15350 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
15352 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15353 * config/rx/rx.c (rx_function_arg_size): Make static.
15354 (rx_function_arg): Likewise.
15355 (rx_function_arg_advance): New function.
15356 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15358 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
15360 * config/arm/arm.c (arm_override_options): Remove superfluous test.
15363 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
15365 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
15366 (dwarf2out_decl) <CONST_DECL>: Likewise.
15368 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
15370 Stack usage support
15371 * common.opt (-fstack-usage): New option.
15372 * doc/invoke.texi (Debugging options): Document it.
15373 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
15374 allocate_dynamic_stack_space.
15375 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
15376 and propagate it to allocate_dynamic_stack_space.
15377 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
15378 * calls.c (initialize_argument_information): Pass TRUE as 4th
15379 argument to allocate_dynamic_stack_space.
15380 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
15381 to 1 when pushing a variable-sized argument onto the stack. Pass
15382 TRUE as 4th argument to allocate_dynamic_stack_space.
15383 Update current_function_pushed_stack_size.
15384 (emit_library_call_value_1): Likewise.
15385 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
15386 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
15387 attempt to find an upper bound. Remove redundant code for the
15388 SETJMP_VIA_SAVE_AREA case.
15389 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
15390 * function.h (struct stack_usage): New structure.
15391 (current_function_static_stack_size): New macro.
15392 (current_function_dynamic_stack_size): Likewise.
15393 (current_function_pushed_stack_size): Likewise.
15394 (current_function_dynamic_alloc_count): Likewise.
15395 (current_function_has_unbounded_dynamic_stack_size): Likewise.
15396 (current_function_allocates_dynamic_stack_space): Likewise.
15397 (struct function): Add new field 'su'.
15398 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
15399 add the value of the dynamic offset to the dynamic stack usage.
15400 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
15401 for variable-sized objects.
15402 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
15403 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
15404 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
15405 BUILT_IN_ALLOCA for variable-sized objects.
15406 * output.h (output_stack_usage): Declare.
15407 * toplev.c (stack_usage_file): New file pointer.
15408 (output_stack_usage): New function.
15409 (open_auxiliary_file): Likewise.
15410 (lang_dependent_init): Open file if flag_stack_usage is set.
15411 (finalize): Close file if stack_usage_file is not null.
15412 * tree.h (ALLOCA_FOR_VAR_P): New macro.
15413 * config/alpha/alpha.c (compute_frame_size): New function.
15414 (alpha_expand_prologue): Use it.
15415 (alpha_start_function): Likewise.
15416 (alpha_expand_epilogue): Likewise. Set stack usage info.
15417 * config/i386/i386.c (ix86_expand_prologue): Likewise.
15418 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15419 * config/mips/mips.c (mips_expand_prologue): Likewise.
15420 * config/pa/pa.c (hppa_expand_prologue): Likewise.
15421 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15422 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15424 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
15426 PR tree-optimization/45427
15427 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
15428 Handle the case that the exit is never taken correctly.
15429 (number_of_iterations_ne): Pass exit_must_be_taken to
15430 number_of_iterations_ne_max.
15432 2010-08-30 Catherine Moore <clm@codesourcery.com>
15434 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
15435 Infer -mdspr2 for the the 74K.
15437 2010-08-30 Jakub Jelinek <jakub@redhat.com>
15440 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
15442 PR middle-end/45423
15443 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
15444 and TRUTH_{AND,OR,XOR}_EXPR.
15445 * c-parser.c (c_parser_omp_atomic): Handle boolean
15446 {PRE,POST}_{INC,DEC}REMENT.
15448 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
15450 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
15451 (function_arg): Delete.
15452 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15453 (FUNCTION_INCOMING_ARG): Delete.
15454 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
15455 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
15457 (function_arg): Rename to...
15458 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
15460 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
15461 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15462 (TARGET_FUNCTION_INCOMING_ARG): Define.
15464 2010-08-30 Richard Guenther <rguenther@suse.de>
15466 PR tree-optimization/21602
15467 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
15468 using points-to information.
15470 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
15472 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
15474 2010-08-30 Richard Guenther <rguenther@suse.de>
15476 PR tree-optimization/45449
15477 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
15480 2010-08-30 Joseph Myers <joseph@codesourcery.com>
15482 * opts.h (CL_ERR_NEGATIVE): Define.
15483 * opts.c (unknown_option_callback): Don't postpone warnings for
15484 options marked with CL_ERR_NEGATIVE.
15485 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
15486 for negative versions of CL_REJECT_NEGATIVE options.
15488 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
15490 * config/i386/i386.md (zero_extendsidi2_1): Rename from
15491 zero_extendsidi2_32.
15492 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
15493 using SWI12 mode iterator.
15494 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
15495 to define_insn_and_split pattern.
15496 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
15497 using SWI24 mode iterator.
15498 (*zero_extendqi<mode>2_and): Macroize insn from
15499 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
15500 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
15501 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
15502 SWI24 mode iterator.
15503 (*zero_extendqi<mode>2_movzbl): Ditto from
15504 *zero_extendqi{hi,si}2_movzbl.
15505 (extendsidi2_1): Rename from extendsidi2_32.
15506 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
15507 SWI12 mode iterator.
15509 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
15511 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
15512 general purpose registers.
15513 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
15514 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
15515 with general purpose registers and memory operands. Add associated
15516 CCImode post-reload splitter.
15517 * config/ia64/div.md: Change BImode to CCImode throughout.
15519 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
15521 * config/ia64/ia64.md (cstorebi4): Fix thinko.
15523 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
15525 * config/picochip/picochip.c (reorder_var_tracking_notes): This
15526 function was dropping debug insns which caused PR45299.
15528 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
15530 * config/i386/sse.md (extsuffix): New code attribute.
15531 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
15532 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
15533 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
15534 and sse4_1_zero_extendv4qiv4si2.
15535 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
15536 and sse4_1_zero_extendv2qiv2di2.
15537 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
15538 and sse4_1_zero_extendv4hiv4si2.
15539 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
15540 and sse4_1_zero_extendv2hiv2di2.
15541 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
15542 and sse4_1_zero_extendv2siv2di2
15544 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
15545 using any_extend code iterator.
15546 (*avx_<s>mulv8hi3_highpart): Macroize insn from
15547 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
15548 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
15550 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
15551 gen_sse4_1_sign_extend* functions.
15552 (struct builtin_description bdesc_args): Ditto.
15554 2010-08-27 Xinliang David Li <davidxl@google.com>
15557 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
15558 (iv_ca_set_no_cp): Update used inv expr count.
15559 (iv_ca_set_cp): Ditto.
15560 (iv_ca_new): Initialize new member.
15561 (iv_ca_free): Free memory.
15563 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15565 * config/sh/sh-protos.h (sh_function_arg): Delete.
15566 (sh_function_arg_advance): Delete.
15567 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15568 (PASS_IN_REG_P): Eliminate cast.
15569 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
15570 const_tree and a bool.
15571 (sh_function_arg): Likewise.
15572 (sh_output_mi_thunk): Call sh_function_arg_advance) and
15574 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15576 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
15577 Kaz Kojima <kkojima@gcc.gnu.org>
15579 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
15581 (sh_expand_epilogue): Likewise.
15582 * config/sh/sh.md (movml_push_banked): New insn.
15583 (movml_pop_banked): Likewise.
15585 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
15587 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
15588 gen_regexp_oneof, gen_regexp_sequence): Use the string found
15589 in vector element 0 rather than the original string when there's
15591 (gen_regexp): Remove extra semicolon.
15593 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
15594 thumb2_movsf_vfp): Set attribute "insn".
15595 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
15596 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
15597 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
15598 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
15599 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
15600 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
15601 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
15602 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
15603 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
15604 if_not_arith, if_arith_not, cond_move_not): Likewise.
15606 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15608 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
15610 (rs6000_allocate_stack_temp): Ditto.
15611 (rs6000_expand_convert_si_to_sfdf): Ditto.
15613 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
15614 line. Update the options set if power6 or power7 server/embedded
15615 type options are used. If we give a warning for no vsx under
15616 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
15617 (rs6000_allocate_stack_temp): New function to allocate a stack
15618 tempoary and adjust the address so it meets either REG+OFFSET or
15619 REG+REG addressing requirements.
15620 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
15621 that they can be used with the LFIWAX/LFIWZX instrucitons.
15622 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
15623 converting signed/unsigned SImode to either SFmode/DFmode.
15625 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
15626 whether certain instructions can be generated.
15627 (TARGET_FCTIDZ): Ditto.
15628 (TARGET_STFIWX): Ditto.
15629 (TARGET_LFIWAX): Ditto.
15630 (TARGET_LFIWZX): Ditto.
15631 (TARGET_FCFIDS): Ditto.
15632 (TARGET_FCFIDU): Ditto.
15633 (TARGET_FCFIDUS): Ditto.
15634 (TARGET_FCTIDUZ): Ditto.
15635 (TARGET_FCTIWUZ): Ditto.
15637 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
15638 (UNSPEC_FCTID): Ditto.
15639 (UNSPEC_LFIWAX): Ditto.
15640 (UNSPEC_LFIWZX): Ditto.
15641 (UNSPEC_FCTIWUZ): Ditto.
15642 (rreg): Use correct constraints.
15643 (SI_CONVERT_FP): New mode attribute for floating point conversion
15645 (E500_CONVERT): Ditto.
15646 (lfiwax): New insns for converting from integer to floating point
15647 utilizing newer instructions. Attempt to optimize conversions
15648 that come from memory so that we don't load the value into a GPR,
15649 spill it to the stack and reload it into a FPR.
15650 (floatsi<mode>2_lfiwax): Ditto.
15651 (floatsi<mode>2_lfiwax_mem): Ditto.
15652 (floatsi<mode>2_lfiwax_mem2): Ditto.
15654 (floatunssi<mode>2_lfiwzx): Ditto.
15655 (floatunssi<mode>2_lfiwzx_mem): Ditto.
15656 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
15657 (floatdidf2_mem): Ditto.
15658 (floatunsdidf2_fcfidu): Ditto.
15659 (floatunsdidf2_mem): Ditto.
15660 (floatunsdisf2): Ditto.
15661 (floatunsdisf2_fcfidus): Ditto.
15662 (floatunsdisf2_mem): Ditto.
15663 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
15664 Use FCFID on 32-bit hosts that support it.
15665 (floatsidf2_internal): Ditto.
15666 (floatunssisf2): Ditto.
15667 (floatunssidf2): Ditto.
15668 (floatunssidf2_internal): Ditto.
15669 (floatsisf2): Ditto.
15670 (floatdidf2): Ditto.
15671 (floatdidf2_fpr): Ditto.
15672 (floatunsdidf2): Ditto.
15673 (floatdisf2): Ditto.
15674 (floatdisf2_fcfids): Ditto.
15675 (floatdisf2_internal1): Ditto.
15676 (fixuns_truncsfsi2): Delete, merge into common pattern for both
15677 SF/DF. Add power7 support.
15678 (fix_truncsfsi2): Ditto.
15679 (fixuns_truncdfsi2): Ditto.
15680 (fixuns_truncdfdi2): Ditto.
15681 (fix_truncdfsi2): Ditto.
15682 (fix_truncdfsi2_internal): Ditto.
15683 (fix_truncdfsi2_internal_gfxopt): Ditto.
15684 (fix_truncdfsi2_mfpgpr): Ditto.
15686 (btruncdf2): Ditto.
15687 (btruncdf2_fpr): Ditto.
15688 (btructsf2): Ditto.
15690 (ceildf2_fpr): Ditto.
15693 (floordf2_fpr): Ditto.
15696 (rounddf2_fpr): Ditto.
15698 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
15699 (fix_trunc<mode>di2): Ditto.
15700 (fixuns_trunc<mode>si2): Ditto.
15701 (fixuns_trunc<mode>di2): Ditto.
15702 (fctiwz_<mode>): Ditto.
15703 (btrunc<mode>2): Ditto.
15704 (btrunc<mode>2_fpr): Ditto.
15705 (ceil<mode>2): Ditto.
15706 (ceil<mode>2_fpr): Ditto.
15707 (floor<mode>2): Ditto.
15708 (float<mode>2_fpr): Ditto.
15709 (round<mode>2): Ditto.
15710 (round<mode>2_fpr): Ditto.
15711 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
15712 (fixuns_trunc<mode>si2_stfiwx): Ditto.
15713 (fix_truncdfsi2_internal): Ditto.
15714 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
15715 converted value on stack, loaded into GPR, and then stored into
15716 the final destination.
15717 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
15719 (lrint<mode>di2): New insn, provide the lrint builtin functions.
15720 (ftruncdf2): Delete, unused.
15721 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
15723 * config/rs6000/vsx.md (toplevel): Update copyright year.
15724 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
15727 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
15728 Jeremie Salvucci <jeremie.salvucci@free.fr>
15730 * gengtype.c (output_type_enum): Test the right union member.
15732 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
15735 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
15736 operands for operand 1.
15737 (sse4_1_extendv4qiv4si2): Ditto.
15738 (sse4_1_extendv2qiv2di2): Ditto.
15739 (sse4_1_extendv4hiv4si2): Ditto.
15740 (sse4_1_extendv2hiv2di2): Ditto.
15741 (sse4_1_extendv2siv2di2): Ditto.
15742 (sse4_1_zero_extendv8qiv8hi2): Ditto.
15743 (sse4_1_zero_extendv4qiv4si2): Ditto.
15744 (sse4_1_zero_extendv2qiv2di2): Ditto.
15745 (sse4_1_zero_extendv4hiv4si2): Ditto.
15746 (sse4_1_zero_extendv2hiv2di2): Ditto.
15747 (sse4_1_zero_extendv2siv2di2): Ditto.
15748 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
15749 (*sse4_1_extendv4qiv4si2): Ditto.
15750 (*sse4_1_extendv2qiv2di2): Ditto.
15751 (*sse4_1_extendv4hiv4si2): Ditto.
15752 (*sse4_1_extendv2hiv2di2): Ditto.
15753 (*sse4_1_extendv2siv2di2): Ditto.
15754 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
15755 (*sse4_1_zero_extendv4qiv4si2): Ditto.
15756 (*sse4_1_zero_extendv2qiv2di2): Ditto.
15757 (*sse4_1_zero_extendv4hiv4si2): Ditto.
15758 (*sse4_1_zero_extendv2hiv2di2): Ditto.
15759 (*sse4_1_zero_extendv2siv2di2): Ditto.
15761 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15763 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
15764 (mips_function_arg): Delete.
15765 (mips_function_arg_boundary): Take a const_tree.
15766 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
15767 (mips_arg_info): Likewise.
15768 (mips_setup_incoming_varargs): Call mips_function_arg_advance
15769 instead of FUNCTION_ARG_ADVANCE.
15770 (mips_function_arg_advance): Adjust prototype. Make static.
15771 (mips_function_arg): Likewise.
15772 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15773 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
15775 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15777 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15778 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
15779 (function_arg): Delete.
15780 (function_arg_boundary): Take a const_tree.
15781 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
15782 (rs6000_spe_function_arg): Likewise.
15783 (rs6000_parm_start): Likewise.
15784 (rs6000_arg_size): Likewise.
15785 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
15786 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
15787 (rs6000_mixed_function_arg): Likewise.
15788 (function_arg): Rename to...
15789 (rs6000_function_arg): ...this.
15790 (function_arg_advance): Rename to...
15791 (rs6000_function_arg_advance_1): ...this
15792 (rs6000_function_arg_advance): New function. Call it.
15793 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
15794 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
15795 (rs6000_function_value): Likewise.
15796 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15798 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15800 * config/arm/arm.md (enabled): Test the value of arch_enabled
15801 rather than just using it.
15803 2010-08-27 Olivier Hainque <hainque@adacore.com>
15804 Eric Botcazou <ebotcazou@adacore.com>
15806 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
15807 cover all the possible offsets from this base.
15808 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
15810 2010-08-26 Jakub Jelinek <jakub@redhat.com>
15812 PR tree-optimization/44485
15813 * calls.c (flags_from_decl_or_type): For const or pure
15814 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
15815 together with ECF_CONST resp. ECF_PURE.
15816 * builtins.c (expand_builtin): Use flags_from_decl_or_type
15817 instead of querying flags directly.
15818 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
15819 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
15821 2010-08-26 Richard Guenther <rguenther@suse.de>
15823 PR tree-optimization/45255
15824 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
15825 and externals are also invariant.
15827 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15829 PR rtl-optimization/44858
15830 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
15831 newi2pat, make sure they don't affect newpat.
15833 PR rtl-optimization/45400
15834 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
15835 SUBREG_REG if both modes are of MODE_INT class.
15837 2010-08-25 Julian Brown <julian@codesourcery.com>
15839 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
15840 * config/arm/arm.md (generic_sched): No for Cortex-A5.
15841 (generic_vfp): Likewise.
15842 (cortex-a5.md): Include.
15843 * config/arm/cortex-a5.md: New.
15845 2010-08-25 Richard Guenther <rguenther@suse.de>
15847 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
15848 * gimple.c (gimple_get_alias_set): Remove special handling
15851 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
15853 PR middle-end/45355
15854 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
15855 dead_or_set_p when computing i0_feeds_i2_n.
15857 * combine.c (find_split_point): Undo canonicalization of multiply-add
15858 to (minus x (mult)) when it seems likely that this will increase the
15859 chances of a split.
15861 2010-08-25 Richard Guenther <rguenther@suse.de>
15864 * lto-streamer.c (lto_record_common_node): Do not mess with
15865 TYPE_CANONICAL when not in lto.
15866 * gimple.c (gimple_register_type): Likewise.
15868 2010-08-25 Richard Guenther <rguenther@suse.de>
15870 PR tree-optimization/45316
15871 * tree-ssa-pre.c (eliminate): Properly clean EH info.
15873 2010-08-25 Richard Guenther <rguenther@suse.de>
15875 PR tree-optimization/45393
15876 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
15877 and clean EH info. Avoid SSA update.
15878 (execute_cse_sincos): Cleanup the CFG if it has changed.
15880 2010-08-25 Richard Guenther <rguenther@suse.de>
15882 PR middle-end/45379
15883 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
15884 TARGET_MEM_REF in alignment computation.
15886 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15888 PR tree-optimization/45059
15889 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
15890 type conversions from newop{1,2}. Assert t is a comparison and
15891 newop{1,2} after the stripping are gimple vals.
15893 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
15895 * config/arm/iterators.md (VU, SE, V_widen_l): New.
15896 (V_unpack, US): New.
15897 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
15898 (vec_unpack<US>_lo_<mode>): Likewise.
15899 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
15900 (neon_vec_unpack<US>_lo_<mode>): Likewise.
15901 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
15902 (vec_widen_<US>mult_hi_<mode>): Likewise.
15903 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
15904 (neon_vec_<US>mult_hi_<mode>"): Likewise.
15905 (neon_unpack<US>_<mode>): Widening move intermediate step for
15906 vectorizing without -mvectorize-with-neon-quad.
15907 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
15908 for vectorizing without -mvectorize-with-neon-quad.
15909 * config/arm/predicates.md (vect_par_constant_high): Check for
15910 high-half lanes of a vector.
15911 (vect_par_constant_low): Check for low-half lanes of a vector.
15913 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15915 * tree-if-conv.c (struct ifc_dr): New.
15917 (DR_WRITTEN_AT_LEAST_ONCE): New.
15918 (DR_RW_UNCONDITIONALLY): New.
15919 (memref_read_or_written_unconditionally): Use the cached values
15921 (write_memref_written_at_least_once): Same.
15922 (if_convertible_loop_p): Initialize and free DR->aux fields.
15924 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15926 * gimple.c (gimple_could_trap_p_1): Not static anymore.
15927 Pass an extra bool parameter include_mem.
15928 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
15929 (gimple_assign_rhs_could_trap_p): Same.
15930 * gimple.h (gimple_could_trap_p_1): Declared.
15931 * tree-data-ref.h (same_data_refs_base_objects): New.
15932 (same_data_refs): New.
15933 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
15934 (write_memrefs_written_at_least_once): New.
15935 (ifcvt_memrefs_wont_trap): New.
15936 (operations_could_trap): New.
15937 (ifcvt_could_trap_p): New.
15938 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
15939 Gets a vector of data refs.
15940 (if_convertible_stmt_p): Same.
15941 (if_convertible_loop_p_1): New.
15942 (if_convertible_loop_p): Call if_convertible_loop_p_1.
15944 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15946 * common.opt (ftree-loop-if-convert-stores): New flag.
15947 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
15948 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
15949 the created statement before GSI.
15950 (if_convertible_phi_p): Allow virtual phi nodes when
15951 flag_loop_if_convert_stores is set.
15952 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
15953 Do not handle types that do not match is_gimple_reg_type.
15954 Remove loop and bb parameters. Call gimple_could_trap_p instead of
15955 when flag_loop_if_convert_stores is set, as LHS can contain
15957 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
15958 to if_convertible_gimple_assign_stmt_p.
15959 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
15960 (replace_phi_with_cond_gimple_assign_stmt): Renamed
15961 predicate_scalar_phi. Do not handle virtual phi nodes.
15962 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
15963 Call predicate_scalar_phi.
15964 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
15965 just after the labels for flag_loop_if_convert_stores, otherwise
15966 insert the predicate in the end of the BB.
15967 (predicate_mem_writes): New.
15968 (combine_blocks): Call predicate_all_scalar_phis. When
15969 flag_loop_if_convert_stores is set, call predicate_mem_writes.
15970 (tree_if_conversion): Call mark_sym_for_renaming when
15971 flag_loop_if_convert_stores is set.
15972 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
15973 flag_loop_if_convert_stores is set.
15975 2010-08-24 Anatoly Sokolov <aesok@post.ru>
15977 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
15978 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
15979 (pa_function_value): Make static.
15980 (override_options): Rename to...
15981 (pa_option_override): ...this. Make static.
15982 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
15983 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
15984 TARGET_OPTION_OVERRIDE): Define.
15985 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
15986 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
15988 * config/pa/pa-protos.h (override_options): Remove.
15990 2010-08-24 Richard Guenther <rguenther@suse.de>
15992 PR middle-end/45379
15993 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
15994 if addr->index is NULL or zero.
15995 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
15996 TARGET_MEM_REF more properly.
15997 (indirect_ref_may_alias_decl_p): Likewise.
15998 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
15999 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
16001 2010-08-23 Anatoly Sokolov <aesok@post.ru>
16003 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
16004 (m32c_override_options): Rename to...
16005 (m32c_option_override): ...this. Make static.
16006 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
16007 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
16009 * config/m32c/m32c-protos.h (m32c_override_options,
16010 m32c_function_value_regno_p): Remove.
16012 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
16014 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
16015 Fix a typo in a previous commit.
16017 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
16019 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
16020 Pre-initialize innerloop_iters to one.
16022 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
16024 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
16025 existing static function global.
16027 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
16028 is changed to global.
16030 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
16031 may_be_nonaddressable_p on base, and don't collect this reference
16032 if the address of the base could not be taken.
16034 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16036 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
16037 enable the compiler to autovectorize mathmetical functions for
16038 power7 using the Mathematical Acceleration Subsystem library.
16040 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
16041 handle which vector math library we have.
16042 (rs6000_override_options): Add -mveclibabi=mass support.
16043 (rs6000_builtin_vectorized_libmass): New function to handle auto
16044 vectorizing math functions that are in the MASS library.
16045 (rs6000_builtin_vectorized_function): Call it.
16047 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16050 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16053 * gthr-posix.h (__gthread_active_init): Delete.
16054 (__gthread_active_p): Do activity check here.
16055 Don't include errno.h on hppa-hpux. Update comment.
16056 * gthr-posix95.h (__gthread_active_init): Delete.
16057 (__gthread_active_p): Do activity check here.
16058 Don't include errno.h on hppa-hpux. Update comment.
16059 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
16060 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
16061 add -lpthread when -mt or -pthread is specified.
16062 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
16063 (LINK_GCC_C_SEQUENCE_SPEC): Define.
16064 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
16065 (stublib.c, pthread_default_stacksize_np-stub.o,
16066 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
16067 $(T)libgcc_stub.a): Add methods.
16068 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
16069 (stublib.c, pthread_default_stacksize_np-stub.o,
16070 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
16071 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16072 pthread_mutex_unlock): New stubs.
16074 2010-08-22 Joseph Myers <joseph@codesourcery.com>
16076 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
16077 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
16079 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
16080 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
16081 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
16082 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
16083 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
16085 * cppspec.c: Include opts.h.
16086 (lang_specific_driver): Use cl_decoded_option structures.
16087 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
16088 * doc/tm.texi: Regenerate.
16089 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
16090 (driver_handle_option): Allow driver options needing no special
16092 (process_command): Decode options before call to
16093 lang_specific_driver. Pass decoded options to
16094 lang_specific_driver.
16095 * gcc.h (lang_specific_driver): Update prototype.
16096 * gccspec.c: Include opts.h.
16097 (lang_specific_driver): Use cl_decoded_option structures.
16098 * opts-common.c (option_ok_for_language, generate_option,
16099 generate_option_input_file): New.
16100 (decode_cmdline_option): Use option_ok_for_language.
16101 (decode_cmdline_options_to_array): Use generate_option_input_file.
16102 (handle_generated_option): Use generate_option.
16103 * opts.h (generate_option, generate_option_input_file): Declare.
16105 2010-08-22 Anatoly Sokolov <aesok@post.ru>
16107 * config/mips/mips.c (mips_override_options): Rename to...
16108 (mips_option_override): ...this. Make static.
16109 (TARGET_OPTION_OVERRIDE): Define.
16110 (mips_in_small_data_p): Update comment.
16111 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
16112 (FIXED_REGISTERS): Update comment.
16113 * config/mips/mips-protos.h (mips_override_options): Remove.
16115 2010-08-21 Olivier Hainque <hainque@adacore.com>
16117 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
16119 2010-08-21 Olivier Hainque <hainque@adacore.com>
16121 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
16122 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
16124 2010-08-20 Jan Hubicka <jh@suse.cz>
16126 * tree-pass.h (pass_ipa_cdtor_merge): New function.
16127 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
16129 (record_cdtor_fn): Move to ipa.c; do not test for
16131 (build_cdtor): Move to ipa.c; add code avoiding construction
16132 when target have ctors/dtors and there is only one ctor/dtor at given
16134 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
16135 sort; reverse order of constructors.
16136 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
16137 (cgraph_finalize_function): Do not call record_cdtor_fn.
16138 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
16139 (cgraph_build_static_cdtor): Move to ipa.c.
16140 * ipa.c: Include target.h and tree-iterator.h.
16141 (cgraph_build_static_cdtor, static_ctors, static_dtors,
16142 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
16143 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
16144 pass_ipa_cdtor_merge): New.
16145 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
16146 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
16149 2010-08-20 Jan Hubicka <jh@suse.cz>
16153 * cgraph.h (cgraph_only_called_directly_p,
16154 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
16156 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
16158 (cgraph_finalize_function): Static cdtors are reachable.
16159 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
16161 2010-08-20 Jan Hubicka <jh@suse.cz>
16163 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
16165 * lto-streamer-out.c (lto_output): Likewise.
16166 * passes.c (ipa_write_optimization_summaries): Initialize statement
16169 2010-08-20 Olivier Hainque <hainque@adacore.com>
16171 * tree.h (alias_diag_flags): New enum.
16172 (alias_pair): Add an 'emitted_diags' field.
16173 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
16174 (assemble_alias): Initialize emitted_diags of new pairs.
16176 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
16178 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16179 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16180 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16181 (STACK_CHECK_PROTECT): Define.
16182 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
16183 (output_probe_stack_range): Likewise.
16184 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
16185 builtin stack checking is enabled.
16186 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
16187 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16188 (probe_stack_range): New insn.
16190 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
16193 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
16196 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
16199 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16202 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
16203 to cover zero extension into 64-bit register.
16204 (*sse2_pextrw): Likewise.
16205 (*sse4_1_pextrd_zext): New insn.
16207 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
16209 revert r163410, partially revert r163267.
16210 * config/rs6000/darwin.h (LIB_SPEC): Remove.
16211 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
16214 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16216 PR middle-end/44974
16217 * builtins.c (expand_builtin): Don't optimize away
16218 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
16220 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
16222 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
16223 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
16224 alternative 1 of operand 2.
16226 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16227 Paolo Bonzini <bonzini@gnu.org>
16229 * simplify-rtx.c (simplify_unary_operation_1): Optimize
16230 (sign_extend (zero_extend (...)) and
16231 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
16233 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16235 PR rtl-optimization/45353
16236 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
16237 after bb_note is a BARRIER.
16239 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
16241 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
16244 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16245 Michael Matz <matz@suse.de>
16247 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
16249 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
16251 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
16252 (ggc_mark_roots): ...here.
16254 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
16256 * vec.h (FOR_EACH_VEC_ELT): Define.
16257 * c-decl.c: Use it.
16258 * cfgloop.c: Likewise.
16259 * cfgloopmanip.c: Likewise.
16260 * cgraph.c: Likewise.
16261 * cgraphunit.c: Likewise.
16262 * combine.c: Likewise.
16263 * config/bfin/bfin.c: Likewise.
16264 * config/mips/mips.c: Likewise.
16265 * config/rs6000/rs6000.c: Likewise.
16266 * dbxout.c: Likewise.
16267 * df-scan.c: Likewise.
16268 * dominance.c: Likewise.
16270 * dwarf2out.c: Likewise.
16271 * except.c: Likewise.
16272 * expr.c: Likewise.
16273 * function.c: Likewise.
16274 * gcse.c: Likewise.
16275 * genattr.c: Likewise.
16276 * ggc-common.c: Likewise.
16277 * gimplify.c: Likewise.
16278 * graphite-blocking.c: Likewise.
16279 * graphite-clast-to-gimple.c: Likewise.
16280 * graphite-dependences.c: Likewise.
16281 * graphite-interchange.c: Likewise.
16282 * graphite-poly.c: Likewise.
16283 * graphite-scop-detection.c: Likewise.
16284 * graphite-sese-to-poly.c: Likewise.
16285 * graphite.c: Likewise.
16286 * haifa-sched.c: Likewise.
16287 * ifcvt.c: Likewise.
16288 * implicit-zee.c: Likewise.
16289 * ipa-prop.c: Likewise.
16290 * ipa-struct-reorg.c: Likewise.
16292 * ira-build.c: Likewise.
16293 * ira-color.c: Likewise.
16294 * ira-emit.c: Likewise.
16295 * lambda-code.c: Likewise.
16296 * loop-invariant.c: Likewise.
16297 * loop-unroll.c: Likewise.
16298 * lower-subreg.c: Likewise.
16299 * lto-cgraph.c: Likewise.
16300 * lto-opts.c: Likewise.
16301 * lto-streamer-in.c: Likewise.
16302 * lto-streamer-out.c: Likewise.
16303 * lto-streamer.c: Likewise.
16304 * lto-symtab.c: Likewise.
16305 * matrix-reorg.c: Likewise.
16306 * opts.c: Likewise.
16307 * predict.c: Likewise.
16308 * print-tree.c: Likewise.
16309 * sdbout.c: Likewise.
16310 * sel-sched-dump.c: Likewise.
16311 * sel-sched-ir.c: Likewise.
16312 * sel-sched.c: Likewise.
16313 * sese.c: Likewise.
16314 * stor-layout.c: Likewise.
16315 * tree-cfg.c: Likewise.
16316 * tree-cfgcleanup.c: Likewise.
16317 * tree-chrec.c: Likewise.
16318 * tree-data-ref.c: Likewise.
16319 * tree-emutls.c: Likewise.
16320 * tree-inline.c: Likewise.
16321 * tree-into-ssa.c: Likewise.
16322 * tree-loop-distribution.c: Likewise.
16323 * tree-loop-linear.c: Likewise.
16324 * tree-mudflap.c: Likewise.
16325 * tree-outof-ssa.c: Likewise.
16326 * tree-parloops.c: Likewise.
16327 * tree-predcom.c: Likewise.
16328 * tree-pretty-print.c: Likewise.
16329 * tree-scalar-evolution.c: Likewise.
16330 * tree-ssa-live.c: Likewise.
16331 * tree-ssa-loop-im.c: Likewise.
16332 * tree-ssa-loop-ivcanon.c: Likewise.
16333 * tree-ssa-loop-ivopts.c: Likewise.
16334 * tree-ssa-loop-manip.c: Likewise.
16335 * tree-ssa-loop-niter.c: Likewise.
16336 * tree-ssa-loop-prefetch.c: Likewise.
16337 * tree-ssa-phiprop.c: Likewise.
16338 * tree-ssa-pre.c: Likewise.
16339 * tree-ssa-reassoc.c: Likewise.
16340 * tree-ssa-sccvn.c: Likewise.
16341 * tree-ssa-structalias.c: Likewise.
16342 * tree-ssa.c: Likewise.
16343 * tree-vect-data-refs.c: Likewise.
16344 * tree-vect-loop-manip.c: Likewise.
16345 * tree-vect-loop.c: Likewise.
16346 * tree-vect-patterns.c: Likewise.
16347 * tree-vect-slp.c: Likewise.
16348 * tree-vect-stmts.c: Likewise.
16349 * tree-vrp.c: Likewise.
16350 * tree.c: Likewise.
16351 * value-prof.c: Likewise.
16352 * var-tracking.c: Likewise.
16353 * varasm.c: Likewise.
16354 * vmsdbgout.c: Likewise.
16356 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
16357 Richard Guenther <richard.guenther@gmail.com>
16359 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
16360 copy the src value and return a copy.
16361 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
16362 (C++ Volatiles): Adjust to describe C++ semantics only.
16364 2010-08-20 Joseph Myers <joseph@codesourcery.com>
16366 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
16367 be zero or nonzero.
16368 * doc/tm.texi: Regenerate.
16369 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
16370 * df-scan.c (df_get_exit_block_use_set), reginfo.c
16371 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
16372 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
16373 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
16376 2010-08-20 Olivier Hainque <hainque@adacore.com>
16378 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
16379 an extra nop past a sibling call at the very end.
16381 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
16384 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
16387 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
16389 * target.def (function_arg, function_incoming_arg): Remove const
16390 qualifier on CUMULATIVE_ARGS parameter.
16391 * targhooks.h (default_function_arg, default_function_incoming_arg):
16393 * targhooks.c (default_function_arg, default_function_incoming_arg):
16395 * config/i386/i386.c (ix86_function_arg): Likewise.
16397 2010-08-19 Jakub Jelinek <jakub@redhat.com>
16400 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
16401 SIGN_EXTENDs or ZERO_EXTENDs.
16403 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
16406 * combine.c (combine_validate_cost): New arg I0. All callers changed.
16407 Take its cost into account if nonnull.
16408 (insn_a_feeds_b): New static function.
16409 (combine_instructions): Look for four-insn combinations.
16410 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
16411 them into account when computing all_adjacent and looking for other
16413 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
16414 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
16415 (try_combine): New arg I0. Handle four-insn combinations.
16416 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
16419 2010-08-19 Jason Merrill <jason@redhat.com>
16422 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
16424 (gimplify_modify_expr_rhs): Adjust.
16426 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
16428 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
16430 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
16431 * dominance.c (iterate_fix_dominators): Likewise.
16432 * dse.c (set_usage_bits): Likewise.
16433 (set_position_unneeded, record_store): Likewise.
16434 * gimple-fold.c (get_maxval_strlen): Likewise.
16435 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
16436 * ipa-inline.c (update_caller_keys): Likewise.
16437 * ipa-split.c (verify_non_ssa_vars): Likewise.
16438 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
16439 (close_type_exposed_parameter, close_type_full_escape): Likewise.
16440 (close_addressof_down): Likewise.
16441 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
16442 (setup_allocno_left_conflicts_size): Likewise.
16443 (ira_reassign_conflict_allocnos): Likewise.
16444 (ira_reassign_pseudos): Likewise.
16445 * ira-emit.c (change_loop): Likewise.
16446 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
16447 * lto-streamer-out.c (write_symbol): Likewise.
16448 * predict.c (expr_expected_value_1): Likewise.
16449 * regstat.c (regstat_bb_compute_ri): Likewise.
16450 * sel-sched.c (create_block_for_bookkeeping): Likewise.
16451 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
16452 * stmt.c (expand_case): Likewise.
16453 * tree-eh.c (emit_eh_dispatch): Likewise.
16454 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
16455 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
16457 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
16458 (rdg_build_components): Likewise.
16459 * tree-object-size.c (collect_object_sizes_for): Likewise.
16460 * tree-sra.c (convert_callers): Likewise.
16461 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
16462 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
16463 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
16465 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
16467 * config/i386/i386.md (*lea_1): Use P mode iterator.
16468 (lea add splitter): Also handle DImode operands.
16469 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
16470 predicate. Do not use ix86_lea_for_add_ok.
16471 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
16472 (lea ashift splitter): Also handle DImode operands.
16473 (DImode lea ashift splitter): Remove splitter.
16475 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
16477 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
16478 ix86_binary_operator_ok.
16480 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
16482 PR rtl-optimization/44691
16483 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
16486 2010-08-19 Ian Bolton <ian.bolton@arm.com>
16489 * config/arm/arm.c (arm_output_epilogue): Ensure that return
16490 value of size 1-3 is handled correctly.
16492 2010-08-19 Ian Bolton <ian.bolton@arm.com>
16494 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
16495 type for the conditional has wide enough range.
16497 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
16500 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
16501 ix86_binary_operator_ok.
16503 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
16505 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
16506 <default>: Swap operands 1 and 2 for alternative 2 to use existing
16507 code to output insn mnemonic. Fix comment.
16508 (*addsi_1_zext): Add r-r-0 alternative 1.
16509 <TYPE_LEA>: Split insn to lea.
16510 <default>: Handle alternative 1.
16511 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
16512 multi-level if_then_else RTX to set "type" attribute.
16513 <default>: Handle alternative 2.
16514 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
16515 Use cond RTX instead of multi-level if_then_else RTX to set
16517 <default>: Handle alternatives 2 and 4.
16518 (lea splitters): Update calls to ix86_lea_for_add_ok.
16520 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
16522 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
16524 2010-08-18 Richard Guenther <rguenther@suse.de>
16526 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
16527 use operand helpers.
16529 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
16531 PR middle-end/45292
16532 * optabs.c (expand_bool_compare_and_swap): Expand pending
16533 pops before trying the optab.
16535 2010-08-18 Yao Qi <yao@codesourcery.com>
16538 * config/arm/arm.c (output_move_double): Fix typo generating
16539 instructions ('ldr'->'str').
16541 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16543 PR rtl-optimization/42575
16544 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
16547 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
16549 * config/arm/arm-protos.h (arm_expand_sync): New.
16550 (arm_output_memory_barrier, arm_output_sync_insn): New.
16551 (arm_sync_loop_insns): New.
16552 * config/arm/arm.c (FL_ARCH7): New.
16553 (FL_FOR_ARCH7): Include FL_ARCH7.
16555 (arm_print_operand): Support %C markup.
16556 (arm_legitimize_sync_memory): New.
16557 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
16558 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
16559 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
16560 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
16561 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
16562 (arm_process_output_sync_insn, arm_output_sync_insn): New.
16563 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
16564 * config/arm/arm.h (struct arm_sync_generator): New.
16565 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
16566 (TARGET_HAVE_MEMORY_BARRIER): New.
16567 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
16568 * config/arm/arm.md: Include sync.md.
16569 (UNSPEC_MEMORY_BARRIER): New.
16570 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
16571 (VUNSPEC_SYNC_OP):New.
16572 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
16573 (sync_result, sync_memory, sync_required_value): New attributes.
16574 (sync_new_value, sync_t1, sync_t2): Likewise.
16575 (sync_release_barrier, sync_op): Likewise.
16576 (length): Add logic to length attribute defintion to call
16577 arm_sync_loop_insns when appropriate.
16578 * config/arm/sync.md: New file.
16580 2010-08-17 Jakub Jelinek <jakub@redhat.com>
16582 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
16583 ENABLE_TREE_CHECKING.
16584 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
16587 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
16589 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
16590 or optimizing for size, always avoid lea if possible.
16592 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
16594 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
16596 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
16597 Dunmmy function with NULL return unless the target is
16598 OSX >= 10.6 (Darwin10).
16600 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
16602 * gcc.c (spec_function): Add remove-outfile.
16603 (remove_outfile_spec_function): New function.
16604 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
16605 * invoke.texi (replace-outfile): Document.
16607 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
16610 * reginfo.c (globalize_reg): Reject stack registers.
16612 2010-08-17 Richard Guenther <rguenther@suse.de>
16614 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
16615 list of conditional equivalences.
16616 (free_all_edge_infos): Adjust.
16617 (record_equivalences_from_incoming_edge): Likewise.
16618 (record_cond): Likewise.
16619 (build_and_record_new_cond): Likewise.
16620 (record_conditions): Likewise.
16621 (dom_opt_leave_block): Likewise.
16623 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
16625 * doc/invoke.texi (ms-extension): Add documentation.
16627 2010-08-17 Richard Guenther <rguenther@suse.de>
16629 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
16631 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
16634 * c-decl.c (diagnose_uninitialized_cst_member): New function.
16635 (finish_decl): Use it to issue a -Wc++-compat warning about
16636 uninitialized const field in struct or union.
16638 (finish_struct): Use strip_array_types.
16640 2010-08-17 Jakub Jelinek <jakub@redhat.com>
16642 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
16644 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
16645 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
16646 call block_nreverse here.
16647 (blocks_nreverse): Rename decl temporary to block.
16649 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
16651 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
16652 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
16653 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
16654 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
16655 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
16656 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
16657 thumb2_iorsi3): Delete.
16658 (orsi_notsi_si): No longer a named pattern.
16659 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
16660 * config/arm/predicates.md (shift_amount_operand): New.
16661 (mult_operator): New.
16662 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
16663 attr enabled): New.
16664 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
16666 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
16667 (not_shiftsi_compare0): Likewise, renamed from
16668 arm_notsi_shiftsi_compare0.
16669 (not_shiftsi_compare0_scratch): Likweise, renamed from
16670 arm_notsi_shiftsi_compare0_scratch.
16671 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
16672 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
16673 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
16674 so that the register alternative is disabled when the shift_operator
16675 is MULT. Use "M" as the constraint for constants.
16676 (arith_shiftsi splitter): Enable for TARGET_32BIT.
16677 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
16678 constraint for constants.
16679 (arith_shiftsi_compare0_scratch): Likewise.
16680 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
16681 Handle Thumb2 alternative.
16683 2010-08-16 Joseph Myers <joseph@codesourcery.com>
16685 * doc/options.texi (NoDriverArg): Document.
16686 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
16688 * opt-functions.awk (switch_flags): Handle NoDriverArg.
16689 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
16690 marking for CL_NO_DRIVER_ARG options when in the driver.
16691 * opts.h (CL_NO_DRIVER_ARG): Define.
16692 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
16693 CL_COMMON): Update values.
16695 2010-08-16 Joseph Myers <joseph@codesourcery.com>
16697 * common.opt: Add driver options.
16698 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
16699 * doc/options.texi (Driver, RejectDriver): Document.
16700 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
16701 print_prog_name, print_multi_directory, print_sysroot,
16702 print_multi_os_directory, print_multi_lib,
16703 print_sysroot_headers_suffix, report_times, combine_flag,
16704 use_pipes, wrapper_string): Remove.
16705 (save_switch, driver_unknown_option_callback,
16706 driver_wrong_lang_callback, driver_post_handling_callback,
16707 driver_handle_option): New.
16708 (spec_lang, last_language_n_infiles): Make file-scope static
16709 instead of local to process_command.
16710 (process_command): Use decode_cmdline_options_to_array and
16711 read_cmdline_option for option processing. Compute have_c in
16712 prescan of decoded options.
16713 * opt-functions.awk (switch_flags): Handle Driver and
16715 (var_type, var_type_struct): Handle Separate options as generating
16716 const char * variables.
16717 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
16718 CL_TARGET to be passed by caller if required.
16719 (decode_cmdline_options_to_array): Update comment.
16720 * opts.c (complain_wrong_lang): Handle options only valid for the
16722 (decode_options): Update call to decode_cmdline_options_to_array.
16723 (print_filtered_help): Ignore driver-only options.
16724 (print_specific_help): Ignore CL_DRIVER.
16725 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
16726 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
16727 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
16730 2010-08-16 Richard Guenther <rguenther@suse.de>
16732 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16733 TARGET_MEM_REF a bit.
16734 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
16735 (create_mem_ref_raw): Always create TMR_OFFSET, store the
16736 alias pointer type via it.
16737 (copy_mem_ref_info): Adjust.
16738 (maybe_fold_tmr): Likewise.
16739 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
16740 (reference_alias_ptr_type): Likewise.
16741 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
16742 adjust documentation of TMR_OFFSET operand.
16743 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
16744 use the alias pointer type.
16745 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
16746 initialize mem attrs but the TMR itself.
16747 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
16748 similar to MEM_REF.
16749 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
16750 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
16751 (unshare_and_remove_ssa_names): Likewise.
16752 (copy_ref_info): Adjust.
16753 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
16754 TARGET_MEM_REF case.
16755 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
16757 * tree.h (TMR_ORIGINAL): Remove.
16758 * gimple.c (get_base_address): For TARGET_MEM_REF with a
16759 symbol return that.
16760 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
16762 (get_addr_base_and_unit_offset): Likewise.
16763 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
16765 (indirect_ref_may_alias_decl_p): Likewise.
16766 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
16768 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
16770 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
16771 with GCC version 4.6, the default setting (when not optimizing
16772 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
16773 been changed to -fomit-frame-pointer.
16775 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
16777 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
16778 Darwin10. Do not link libgcc.a for Darwin >= 9.
16780 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
16782 * doc/invoke.texi (Warning Options): Fix terminology and markup
16783 in the description of how unknown warning options are handled.
16785 2010-08-15 Ira Rosen <irar@il.ibm.com>
16787 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
16789 (vect_supportable_dr_alignment): Check alignment for basic blocks.
16790 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
16792 (vect_bb_vectorization_profitable_p): New function.
16793 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
16794 check if it's worthwhile to vectorize the basic block.
16796 2010-08-14 Anatoly Sokolov <aesok@post.ru>
16798 * reload.h (register_move_cost, memory_move_secondary_cost,
16799 secondary_reload_class): Adjust prototype.
16800 * rtl.h (reg_class_subset_p): Adjust prototype.
16801 * reload.c (secondary_reload_class): Change arguments type from
16802 enum reg_class to reg_class_t. Change result type to reg_class_t.
16803 * reginfo.c (register_move_cost, reg_class_subset_p): Change
16804 arguments type from enum reg_class to reg_class_t.
16805 (memory_move_secondary_cost): Change arguments type from
16806 enum reg_class to reg_class_t. Change type of saved_flags to
16809 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16811 (mips_cost): Remove.
16812 (struct mips_rtx_cost_data): Moved to mips.c.
16813 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
16814 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
16815 (mips_cost): Make static.
16816 (mips_canonicalize_move_class): Change argument type to reg_class_t.
16817 Change result type to reg_class_t.
16818 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
16819 type from enum reg_class to reg_class_t.
16820 (mips_register_move_cost): Make static. Change arguments
16821 type from enum reg_class to reg_class_t.
16822 (mips_memory_move_cost): New function.
16823 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16825 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
16827 PR rtl-optimization/43358
16828 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
16829 of a single hard register, using simplify_subreg_regno to decide
16830 what that register should be.
16832 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
16834 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
16835 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
16836 (loongson_pmull<V_suffix>): Rename to...
16837 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
16839 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
16841 * configure.ac: Enable -fomit-frame-pointer on darwin
16842 which support dwarf2.
16843 * config/i386/i386.c (override_options): Same.
16845 2010-08-13 Jie Zhang <jie@codesourcery.com>
16847 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
16849 2010-08-12 Joseph Myers <joseph@codesourcery.com>
16851 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
16854 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
16856 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
16857 up dot_prod pattern searching if a stmt is outside the loop.
16859 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
16860 Uros Bizjak <ubizjak@gmail.com>
16862 * config.gcc: Handle --enable-frame-pointer.
16864 * configure.ac: Add --enable-frame-pointer.
16865 * configure: Regenerated.
16867 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
16868 (override_options): If not configured with --enable-frame-pointer,
16869 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
16870 optimizing for size), -fasynchronous-unwind-tables and
16871 -maccumulate-outgoing-args by default.
16873 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16875 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
16877 PR middle-end/45262
16878 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
16879 -a overflows. Normalize the range.
16881 2010-08-12 Richard Guenther <rguenther@suse.de>
16883 PR tree-optimization/45232
16884 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
16885 for types with undefined overflow.
16886 (reassociate_bb): Allow re-associating of bit and min/max
16887 operations for types with undefined overflow.
16888 * tree-ssa-forwprop.c (associate_plusminus): New function.
16889 (tree_ssa_forward_propagate_single_use_vars): Call it.
16891 2010-08-12 Richard Guenther <rguenther@suse.de>
16893 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
16894 * tree-ssa-alias.c (get_ptr_info): Move ...
16895 * tree-ssanames.c (get_ptr_info): ... here. Initialize
16896 align and misalign fields conservatively.
16897 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
16898 derive alignment information.
16899 (evaluate_stmt): Derive alignment information from memory
16900 allocation functions.
16901 * tree.h (get_pointer_alignment): Make unsigned.
16902 * builtins.c (get_object_alignment): Use alignment information we
16903 have computed for pointers.
16904 (get_pointer_alignment): Likewise. Make conservative, return
16905 and unsigned value.
16906 (expand_builtin_strlen): Adjust.
16907 (expand_builtin_memcmp): Likewise.
16908 (expand_builtin_strcmp): Likewise.
16909 (expand_builtin_strncmp): Likewise.
16910 (get_builtin_sync_mem): Use at least mode alignment.
16911 (fold_builtin_memset): Adjust.
16912 (fold_builtin_memory_op): Likewise.
16913 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
16914 information also dump pointer alignment knowledge.
16915 (dump_gimple_stmt): Likewise.
16917 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
16919 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
16920 (EMPTY_FIELD_BOUNDARY): Remove.
16921 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
16923 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16926 * caller-save.c (save_call_clobbered_regs): Only swap notes with
16927 DEBUG_INSNs if n_regs_saved.
16929 2010-08-12 Wei Guozhi <carrot@google.com>
16932 * config/arm/arm.md (andsi3): Change to zero extension if possible.
16933 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
16935 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
16937 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
16939 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
16941 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16943 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
16944 the case removed in the previous patch, when the only phi argument
16945 is defined in the same loop as the phi node itself. Handle it
16946 separately from the invariant case by both propagating it outside
16947 the region and replacing the phi node with an assign.
16949 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16951 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
16952 constant phi nodes with one argument are is_gimple_min_invariant
16953 and SSA_NAME_IS_DEFAULT_DEF.
16955 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16957 * graphite-cloog-util.c (oppose_constraint):
16958 Extend loop counter's value range (CLOOG_ORG).
16959 (cloog_matrix_to_ppl_constraint): Same.
16960 (new_Constraint_System_from_Cloog_matrix): Same.
16961 * graphite-cloog-compat.h (matrix_num_type): New.
16963 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16965 * graphite.c (graphite_initialize): Do not initialize
16966 CLooG and initialize the Parma Polyhedra Library
16967 manually when using CLOOG_ORG.
16968 (graphite_finalize): Do not finalize CLooG and finalize
16969 the Parma Polyhedra Library manually when using CLOOG_ORG.
16970 * graphite-cloog-compat.h (cloog_initialize): Hide function
16971 when using CLOOG_ORG.
16972 (cloog_finalize): Same.
16974 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16976 * graphite-clast-to-gimple.c (free_scattering): Change
16977 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
16979 (build_cloog_prog): Same.
16980 * graphite-cloog-compat.h (cloog_domain): Removed.
16981 (cloog_scattering): New.
16982 (cloog_set_domain): Removed.
16983 (cloog_set_scattering): New.
16984 (cloog_next_domain): Removed.
16985 (cloog_next_scattering): New.
16986 (cloog_set_next_domain): Removed.
16987 (cloog_set_next_scattering): New.
16988 (CloogScatteringList): New.
16989 (CloogScattering): New.
16990 (cloog_scattering_free): New.
16991 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
16992 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
16995 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16997 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
16999 (set_cloog_options): Same.
17000 (print_clast_stmt): Same.
17001 (scop_to_clast): Same.
17002 (print_generated_program): Same.
17004 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
17005 (scop_to_clast): Extend with CloogState.
17006 * graphite-cloog-util.c: Include graphite-cloog-compat.h
17007 (new_Cloog_Domain_from_ppl_Polyhedron):
17008 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
17009 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
17010 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17011 * graphite-cloog-util.h (build_cloog_prog): Same.
17012 * graphite-cloog-copat.h (build_cloog_prog): New.
17014 (cloog_state_malloc): New.
17015 (cloog_state_free): New.
17016 (cloog_loop_malloc): New.
17017 (cloog_options_malloc): New.
17018 (cloog_statement_alloc): New.
17019 (cloog_domain_from_cloog_matrix): New.
17020 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
17021 (new_Cloog_Domain_from_ppl_Polyhedron): New.
17023 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17025 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
17026 type of NAME now depends on used CLooG version.
17027 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
17028 (gcc_type_for_clast_expr): Same.
17029 (print_clast_stmt): Replace pprint with clast_pprint.
17030 * graphite-cloog-compat.h: Provide compatibility macros for
17032 (clast_name_p): New.
17033 (clast_expr_term): New.
17034 (clast_expr_red): New.
17035 (clast_expr_bin): New.
17036 (clast_pprint): New.
17038 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17040 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
17041 compatible to newer CLooG releases (CLOOG_ORG).
17042 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
17043 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
17044 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
17045 (build_cloog_prog) : New.
17046 (cloog_program_extract_scalars): New.
17047 (cloog_program_scatter): New.
17049 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17051 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
17052 conditionally (CLOOG_ORG).
17053 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
17054 (cloog_statement_usr): New.
17055 (cloog_domain): Same.
17056 (cloog_set_domain): Same.
17057 (cloog_next_domain): Same.
17058 (cloog_set_next_domain): Same.
17059 (cloog_program_nb_scattdims): Same.
17060 (cloog_program_set_nb_scattdims): Same.
17061 (cloog_program_names): Same.
17062 (cloog_program_set_names): Same.
17063 (cloog_program_set_context): Same.
17064 (cloog_program_set_loop): Same.
17065 (cloog_program_blocklist): Same.
17066 (cloog_program_set_blocklist): Same.
17067 (cloog_program_scaldims): Same.
17068 (cloog_program_set_scaldims): Same.
17069 (cloog_names_nb_parameters): Same.
17070 (cloog_names_set_nb_parameters): Same.
17071 (cloog_names_parameters): Same.
17072 (cloog_names_set_parameters): Same.
17073 (cloog_names_set_nb_iterators): Same.
17074 (cloog_names_set_iterators): Same.
17075 (cloog_names_set_nb_scattering): Same.
17076 (cloog_names_set_scattering): Same.
17077 (cloog_statement_set_usr): Same.
17078 (cloog_loop_set_next): Same.
17079 (cloog_loop_set_domain): Same.
17080 (cloog_loop_set_block): Same.
17081 (cloog_block_list_next): Same.
17082 (cloog_block_list_set_next):
17083 (cloog_block_list_set_block): Same.
17085 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17087 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
17089 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
17090 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
17091 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
17092 when something has been changed.
17093 (rewrite_commutative_reductions_out_of_ssa): Same.
17095 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17097 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
17098 handle the case when def is in the sese region.
17099 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
17100 for invariant expressions.
17101 (rewrite_cross_bb_phi_deps): Removed.
17102 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
17103 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
17104 rewrite_cross_bb_phi_deps.
17106 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17108 * graphite-sese-to-poly.c
17109 (rewrite_commutative_reductions_out_of_ssa_loop): Call
17110 scev_analyzable_p only on is_gimple_reg
17112 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17114 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
17115 (rewrite_close_phi_out_of_ssa): Propagate constant values or
17116 parametric expressions outside the scop region.
17117 (rewrite_cross_bb_scalar_deps): Same.
17118 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
17120 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17122 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
17123 SSA_NAME_DEF_STMT only on SSA_NAMEs.
17125 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17127 * tree-scalar-evolution.c (instantiate_scev_name): Do not
17128 instantiate default definitions.
17130 2010-08-11 Vladimir Kargov <kargov@gmail.com>
17131 Sebastian Pop <sebastian.pop@amd.com>
17133 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
17134 (loop_exits_from_bb_p): New.
17135 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
17136 (loop_exits_from_bb_p): Declared.
17137 * graphite-scop-detection.c (scopdet_basic_block_info): Call
17138 loop_exits_to_bb_p.
17140 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17142 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
17143 extra parameter for the region. Call scev_analyzable_p.
17144 (rewrite_reductions_out_of_ssa): Update call to
17145 rewrite_close_phi_out_of_ssa.
17146 (rewrite_cross_bb_phi_deps): Same.
17147 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
17148 parameter for the region. Call scev_analyzable_p.
17149 (rewrite_commutative_reductions_out_of_ssa): Update call to
17150 rewrite_commutative_reductions_out_of_ssa_loop.
17152 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17154 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
17156 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17158 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
17159 SSA scalar phi nodes that can be scev_analyzable_p.
17161 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17163 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
17164 handle SSA_NAME_IS_DEFAULT_DEF.
17166 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17168 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
17170 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17172 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
17173 case non close-phi nodes with one argument.
17175 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17177 * sese.h (scev_analyzable_p): Scevs could be expressions without
17178 chrecs and still be scev_analyzable_p.
17180 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17182 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17184 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17186 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
17187 * cfgloop.h (struct loop): Remove single_iv field.
17188 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
17189 (scop_canonicalize_loops): Removed.
17190 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
17191 over all the loop phi nodes in loop->header.
17192 (build_poly_scop): Remove use of scop_canonicalize_loops.
17194 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17196 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
17197 handle GIMPLE_CALL.
17199 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17201 * tree-chrec.c (chrec_apply): Should only apply to the specified
17202 variable. Also handle multivariate chains of recurrences that
17203 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
17205 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17207 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
17208 (debug_clast_name_indexes_1): Removed.
17209 (debug_clast_name_indexes): Removed.
17210 (pbb_to_depth_to_oldiv): Removed.
17211 (build_iv_mapping): Replace the use of rename_map with iv_map.
17212 (translate_clast_user): Remove uses of rename_map. Allocate and
17214 (translate_clast_for_loop): Remove uses of rename_map.
17215 (translate_clast_for): Same.
17216 (translate_clast_guard): Same.
17217 (translate_clast): Same.
17219 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
17220 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
17221 * sese.c (set_rename): Now static.
17222 (rename_variables_in_stmt): Removed.
17223 (rename_uses): New.
17224 (is_parameter): Removed.
17226 (expand_scalar_variables_call): Removed.
17227 (expand_scalar_variables_ssa_name): Removed.
17228 (expand_scalar_variables_expr): Removed.
17229 (expand_scalar_variables_stmt): Removed.
17230 (expand_scalar_variables): Removed.
17231 (rename_variables): Removed.
17232 (remove_condition): Removed.
17233 (get_true_edge_from_guard_bb): Removed.
17234 (get_false_edge_from_guard_bb): Removed.
17235 (struct igp): Removed.
17236 (default_before_guard): Removed.
17237 (convert_for_phi_arg): Removed.
17238 (add_guard_exit_phis): Removed.
17239 (insert_guard_phis): Removed.
17240 (graphite_copy_stmts_from_block): Now also uses iv_map and a
17241 region. Do not copy conditions. Do not copy induction variables.
17243 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
17244 the translated statement. Use the iv_map for the induction
17246 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
17247 (set_rename): Removed declaration.
17248 (scev_analyzable_p): ...here.
17249 * tree-chrec.c (chrec_apply_map): New.
17250 * tree-chrec.h (chrec_apply_map): Declared.
17252 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17254 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
17255 insert_loop_close_phis.
17256 * sese.c (name_defined_in_loop_p): Removed.
17257 (expr_defined_in_loop_p): Removed.
17258 (alive_after_loop): Removed.
17259 (close_phi_not_yet_inserted_p): Removed.
17260 (struct alep): Removed.
17261 (add_loop_exit_phis): Removed.
17262 (insert_loop_close_phis): Removed.
17264 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17266 * graphite-cloog-util.c
17267 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
17269 (psct_scattering_dim_for_loop_depth): Same.
17271 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17273 * graphite-cloog-util.h: Added cloog.h.
17274 * graphite-blocking.c: Removed cloog.h.
17275 * graphite-dependences.c: Same.
17276 * graphite-interchange.c: Same.
17277 * graphite-poly.c: Same.
17278 * graphite-ppl.c: Same.
17279 * graphite-scop-detection.c: Same.
17280 * graphite-sese-to-poly.c:
17282 Removed graphite-clast-to-gimple.h.
17283 (check_poly_representation): Removed (unused).
17284 * graphite-sese-to-poly.h
17285 (check_poly_representation): Removed (unused).
17287 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17289 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
17290 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
17291 (graphite-cloog-util.o): New.
17292 (graphite-ppl.o): Added graphite-cloog-util.h.
17293 * graphite-clast-to-gimple.c:
17294 Added graphite-cloog-util.h to include statements.
17295 * graphite-cloog-util.c: New.
17296 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
17297 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17298 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17299 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17300 (insert_constraint_into_matrix): Same.
17301 (ppl_Constrain_System_number_of_constraints): Same.
17302 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
17303 (oppose_constraint): Same.
17304 (cloog_matrix_to_ppl_constraint): Same.
17305 (new_Constraint_System_from_Cloog_Matrix): Same.
17306 * graphite-cloog-util.h: New.
17307 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
17308 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17309 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17310 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17311 (insert_constraint_into_matrix): Same.
17313 Added graphite-cloog-util.h to include statements.
17314 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
17315 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17316 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17317 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17318 (insert_constraint_into_matrix): Same.
17319 (ppl_Constrain_System_number_of_constraints): Same.
17320 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
17321 (oppose_constraint): Same.
17322 (cloog_matrix_to_ppl_constraint): Same.
17323 (new_Constraint_System_from_Cloog_Matrix): Same.
17325 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
17326 graphite-cloog-util.h.
17327 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17328 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17329 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17330 (insert_constraint_into_matrix): Same.
17332 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17334 * graphite-clast-to-gimple.c
17335 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
17336 (precision_for_interval): Same.
17337 (gcc_type_for_interval): Same.
17338 (compute_type_for_level): Same.
17339 * graphite-interchange.c
17340 (lst_interchange_profitable_p): Same.
17342 (psct_scattering_dim_for_loop_depth): Same.
17344 (ppl_max_for_le_pointset): Same.
17345 (ppl_min_for_le_pointset): Same.
17347 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17349 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
17350 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
17352 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17354 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
17355 rewrite_close_phi_out_of_ssa.
17357 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17359 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
17361 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17363 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
17365 * sese.c (debug_rename_map): Same.
17366 (get_rename): Same.
17367 (set_rename): Same.
17368 (rename_variables_in_stmt): Same.
17369 (expand_scalar_variables_call): Same.
17370 (expand_scalar_variables_ssa_name): Same.
17371 (expand_scalar_variables_expr): Same.
17372 (expand_scalar_variables_stmt): Same.
17373 (expand_scalar_variables): Same.
17374 (rename_variables): Same.
17375 (graphite_copy_stmts_from_block): Same.
17376 (copy_bb_and_scalar_dependences): Same.
17378 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17380 * graphite-clast-to-gimple.c (copy_renames): Removed.
17381 (translate_clast_for): Do not call copy_renames.
17382 (translate_clast_guard): Same.
17384 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17386 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
17387 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
17388 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
17389 before rewrite_cross_bb_scalar_deps.
17391 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17393 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
17394 Early return in when flag_associative_math is not set.
17396 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17398 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
17399 of SSA copies on edges except for loop->latch.
17401 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17403 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
17404 Split out of rewrite_reductions_out_of_ssa.
17405 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
17407 * graphite.c (graphite_transform_loops): Call it.
17409 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17411 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
17413 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
17415 * dbgcnt.def (graphite_scop): New counter.
17416 * graphite.c: Include dbgcnt.h.
17417 (graphite_transform_loops): Use new counter to limit transformations.
17418 * Makefile.in (graphite.o): Depend on DBGCNT_H.
17420 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17422 * passes.c (init_optimization_passes): Add pass_graphite.
17423 Schedule a pass_copy_prop before pass_graphite_transforms.
17424 * timevar.def (TV_GRAPHITE): Declared.
17425 * tree-pass.h (pass_graphite): Declared.
17426 * tree-ssa-loop.c (pass_graphite): New.
17428 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17430 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
17431 Remove calls to rename_nb_iterations and rename_sese_parameters.
17432 * graphite-clast-to-gimple.h (gloog): Update declaration.
17433 * graphite.c (graphite_transform_loops): Update call to gloog.
17434 * sese.c (rename_variables_in_expr): Removed.
17435 (rename_nb_iterations): Removed.
17436 (rename_sese_parameters): Removed.
17437 * sese.h (rename_nb_iterations): Removed.
17438 (rename_sese_parameters): Removed.
17440 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17442 * graphite-clast-to-gimple.c (gloog): Remove call to
17443 sese_adjust_liveout_phis.
17444 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
17445 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
17446 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
17447 rewrite_phi_out_of_ssa.
17448 * sese.c (get_vdef_before_sese): Removed.
17449 (sese_adjust_vphi): Removed.
17450 (sese_adjust_liveout_phis): Removed.
17451 * sese.h (sese_adjust_liveout_phis): Removed.
17453 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17455 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
17456 argument for the place after which to insert the out of SSA copy.
17457 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
17458 (rewrite_phi_out_of_ssa): Same.
17459 (rewrite_cross_bb_scalar_deps): Same.
17460 (insert_copyout): Removed.
17461 (insert_copyin): Removed.
17462 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
17463 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
17466 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17468 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
17469 (rewrite_reductions_out_of_ssa): Same.
17470 (rewrite_commutative_reductions_out_of_ssa): Same.
17471 (build_poly_scop): Do not call these functions.
17472 * graphite-sese-to-poly.h (build_poly_scop): Declared.
17473 (rewrite_reductions_out_of_ssa): Declared.
17474 (rewrite_commutative_reductions_out_of_ssa): Declared.
17475 * graphite.c (graphite_transform_loops): Call on every scop
17476 rewrite_commutative_reductions_out_of_ssa before calling
17477 rewrite_reductions_out_of_ssa and build_scop_bbs.
17479 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17481 * graphite-dependences.c (dot_deps): Make system call to dotty run
17483 (dot_deps_stmt): Same.
17484 * graphite-poly.c (dot_lst): Same.
17486 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17488 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
17489 phi_arg_in_outermost_loop.
17490 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
17491 (remove_invariant_phi): Same.
17493 2010-08-11 Anatoly Sokolov <aesok@post.ru>
17495 * target.def (output_addr_const_extra): New hook.
17496 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
17497 * doc/tm.texi: Regenerate.
17498 * targhooks.c (default_asm_output_addr_const_extra): New function.
17499 * targhooks.h (default_asm_output_addr_const_extra): Declare.
17500 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
17503 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17504 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
17505 * config/i386/i386.h (output_addr_const_extra): Rename to...
17506 (i386_asm_output_addr_const_extra): ...this. Make static.
17507 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17509 2010-08-11 Richard Henderson <rth@redhat.com>
17511 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
17513 2010-08-11 Nick Clifton <nickc@redhat.com>
17515 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
17516 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
17517 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17518 stormy16-lib2-cmpsi.c.
17520 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
17523 2010-08-11 Joseph Myers <joseph@codesourcery.com>
17525 * opts.h (struct cl_option_handler_func): Make handler take
17526 cl_decoded_option structure as parameter, not individual elements.
17527 (struct cl_option_handlers): Make callbacks take cl_decoded_option
17528 structure as parameter, not individual elements.
17529 (handle_option): Take cl_decoded_option structure as parameter,
17530 not individual elements.
17531 (handle_generated_option): Declare.
17532 * opts-common.c (handle_option): Take cl_decoded_option structure
17533 as parameter, not individual elements. Update calls to callback
17534 and handler functions.
17535 (handle_generated_option): New.
17536 (read_cmdline_option): Update calls to callback functions and
17538 * opts.c (common_handle_option, complain_wrong_lang,
17539 unknown_option_callback, post_handling_callback,
17540 lang_handle_option, target_handle_option): Take cl_decoded_option
17541 structure as parameter, not individual elements.
17542 (lang_handle_option, target_handle_option, common_handle_option):
17543 Assert option has at most one argument.
17544 (enable_warning_as_error): Call handle_generated_option instead of
17545 handle_option. Do not pass -Werror argument as argument of
17548 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17550 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17551 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17552 (SUBWORD_BOOL_CAS): Likewise.
17553 (SUBWORD_SYNC_OP): Likewise.
17554 (SUBWORD_TEST_AND_SET): Likewise.
17555 (FETCH_AND_OP_WORD): Parenthesise INF_OP
17556 (SUBWORD_SYNC_OP): Likewise.
17557 (OP_AND_FETCH_WORD): Likewise.
17559 2010-08-10 Xinliang David Li <davidxl@google.com>
17561 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
17562 compute max/min offset in address.
17564 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
17566 * ira-live.c: Include sbitmap.h.
17567 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
17568 Compress live ranges even more.
17570 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17572 * coverage.c (ctr_labels): Delete.
17574 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
17577 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
17578 test here from arm_gen_load_multiple_1.
17579 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
17580 multiple_operation_profitable_p.
17582 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17584 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
17585 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
17587 2010-08-10 Richard Henderson <rth@redhat.com>
17589 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
17590 after saving registers. Assert that SSE registers are only saved
17591 with a sufficiently aligned frame.
17592 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
17593 remove stack_realign_fp handling.
17594 (ix86_expand_prologue): Save int registers before stack_realign_fp,
17595 and do not mark the stack alignment as frame related.
17596 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
17598 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
17599 saves when re-aligning the stack.
17601 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17603 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
17604 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
17605 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
17607 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17609 * dwarf2out.c (struct die_struct): Move die_tag to the end.
17611 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
17613 * config/arm/iterators.md: New file.
17614 * config/arm/arm.md: Include iterators.md.
17615 (QHSI): Move to new file.
17616 (LTUGEU, cnb, optab, ior_xor): Likewise.
17617 * config/arm/iwmmxt.md (VMMX): Move to new file.
17618 (VSHFT, MMX_char): Likewise.
17619 * config/arm/neon.md (VD): Move to new file.
17620 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
17621 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
17622 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
17623 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
17624 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
17625 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
17626 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
17627 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
17628 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
17629 (Is_d_reg, V_mode_nunits): Likewise.
17630 * config/arm/vec-common.md (VALL): Move to new file.
17631 (VALLW, VINT, VINTW): Likewise.
17633 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
17635 PR middle-end/45182
17636 * combine.c (make_compound_operation): Don't try to convert
17637 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
17639 2010-08-10 Richard Guenther <rguenther@suse.de>
17641 * tree.h (get_object_alignment): Adjust prototype.
17642 * builtins.c (get_object_alignment): Return unsigned int,
17643 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
17644 and TARGET_MEM_REF properly.
17645 (get_pointer_alignment): Adjust.
17646 * emit-rtl.c (get_mem_align_offset): Adjust comment.
17647 (set_mem_attributes_minus_bitpos): Adjust.
17648 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
17650 2010-08-10 Richard Guenther <rguenther@suse.de>
17652 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
17653 (copy_prop_visit_assignment): Simplify.
17654 (copy_prop_visit_stmt): Also visit assignments from
17656 (copy_prop_visit_phi_node): Use operand_equal_p.
17658 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17660 * ipa-split.c (find_split_points): Free stack.
17662 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17664 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
17665 * tree.c (tree_node_kind): Delete corresponding entries.
17667 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
17669 * alias.c (may_alias_p): Remove unused ret.
17671 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
17673 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
17674 alias_sets_conflict_p.
17675 (walk_mems_1): Moved from alias.c.
17676 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
17678 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
17679 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
17680 * alias.c (walk_mems_2): Moved to ddg.c.
17681 (walk_mems_1): Ditto.
17682 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
17684 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
17686 *(may_alias_p): New function to check whether two memory expression
17687 may alias or not. Currently used in buidling inter-iteration memory
17689 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
17690 (insn_alias_sets_conflict_p): Removed
17691 *rtl.h (may_alias_p): New function prototype.
17693 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17695 * tree.c (nreverse): Assert that we don't have a BLOCK.
17697 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17699 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
17700 * config/arm/arm.c (arm_get_pcs_model): Likewise.
17701 * config/avr/avr.c (init_cumulative_args): Likewise.
17702 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17703 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
17704 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
17705 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
17706 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
17707 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17708 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
17709 * dwarf2out.c (gen_subprogram_die): Likewise.
17710 * function.c (allocate_struct_function): Likewise.
17711 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
17712 (deserves_ellipsis): Delete.
17714 2010-08-09 Richard Guenther <rguenther@suse.de>
17716 * tree-ssa-copy.c (cached_last_copy_of): Remove.
17717 (valueize_val): New function.
17718 (get_last_copy_of): Remove.
17719 (set_copy_of_val): Simplify.
17720 (dump_copy_of): Likewise.
17721 (copy_prop_visit_cond_stmt): Use valueize_val.
17722 (copy_prop_visit_phi_node): Properly handle unvisited names.
17723 Drop code managing copy-of chains.
17724 (init_copy_prop): Adjust.
17725 (fini_copy_prop): Likewise.
17726 (execute_copy_prop): Remove obsolete comment.
17728 2010-08-09 Richard Guenther <rguenther@suse.de>
17730 PR middle-end/44632
17731 * function.c (gimplify_parameters): Do not clear addressable
17732 bit of the original parameter.
17734 2010-08-09 Richard Guenther <rguenther@suse.de>
17736 PR middle-end/45212
17737 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
17738 alignment from MEM_REF offset only if we took it from the
17741 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
17743 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
17745 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17747 * c-tree.h (build_arg_info): Declare.
17748 * c-decl.c (build_arg_info): Define.
17749 (get_parm_info): Call it. Delete initialization code.
17750 * c-parser.c (c_parser_parms_declarator): Likewise.
17751 (c_parser_parms_list_declaractor): Likewise.
17753 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17755 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
17756 (struct c_arg_info): Change type of tags field.
17757 * c-decl.c (grokdeclarator): Update for changed type of tags field.
17758 (get_parm_info): Likewise.
17759 (store_parm_decls_newstyle): Likewise.
17761 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17763 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
17764 (branch_island_list): Delete.
17765 (branch_islands): Declare.
17766 (add_compiler_branch_island): Adjust for branch_islands instead of
17767 branch_island_list.
17768 (macho_branch_islands): Likewise.
17769 (no_previous_def): Likewise.
17770 (get_prev_label): Likewise.
17772 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17775 * gthr-posix.h (__gthread_start): Delete.
17776 (__gthread_active_init): Use pthread_default_stacksize_np instead of
17777 pthread_create to determine if hpux pthreads are active.
17778 * gthr-posix95.h (__gthread_start): Delete.
17779 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
17781 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
17783 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
17784 _WIN64 not expanded.
17786 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
17787 H.J. Lu <hongjiu.lu@intel.com>
17790 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
17791 to output 32bit SFmode immediate as 8 byte sign extended value.
17793 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
17795 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17796 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17797 (SUBWORD_BOOL_CAS): Likewise.
17798 (SUBWORD_SYNC_OP): Likewise.
17799 (SUBWORD_TEST_AND_SET): Likewise.
17800 (FETCH_AND_OP_WORD): Parenthesise INF_OP
17801 (SUBWORD_SYNC_OP): Likewise.
17802 (OP_AND_FETCH_WORD): Likewise.
17804 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17806 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
17807 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
17808 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
17809 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
17811 (cortex_a9_sched_adjust_cost): New function.
17812 (xscale_sched_adjust_cost): New function.
17813 * config/arm/arm-protos.h (struct tune_params): New field
17815 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
17817 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
17820 * config/sparc/sparc.c (function_arg_advance): Always take into account
17821 the padding, if any.
17823 2010-08-06 Richard Guenther <rguenther@suse.de>
17825 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
17826 (dump_lattice_value): Dump it.
17827 (get_default_value): Adjust.
17828 (get_constant_value): Likewise.
17829 (set_value_varying): Likewise.
17830 (set_lattice_value): Make sure to not go up the lattice
17831 with bitwise constant values.
17832 (get_value_for_expr): Handle ADDR_EXPRs.
17833 (value_to_double_int): New function.
17834 (get_value_from_alignment): Likewise.
17835 (do_dbg_cnt): Adjust.
17836 (ccp_lattice_meet): Handle partially constant values.
17837 (bit_value_unop_1): New function.
17838 (bit_value_binop_1): Likewise.
17839 (bit_value_unop): Likewise.
17840 (bit_value_binop): Likewise.
17841 (evaluate_stmt): Track partially constant values if
17842 flag_tree_bit_ccp is set.
17843 (ccp_fold_stmt): Dump if we folded a predicate.
17844 (ccp_visit_stmt): Adjust.
17845 * common.opt (ftree-bit-ccp): New flag.
17846 * doc/invoke.texi (ftree-bit-ccp): Document.
17847 * opts.c (decode_options): Enable bit-CCP at -O1.
17849 2010-08-06 Alan Modra <amodra@gmail.com>
17851 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
17852 and -mrelocatable-lib description.
17854 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
17856 From Martin Thuresson <martint@google.com>
17857 * postreload.c (reload_cse_simplify_operands): Use
17858 SET_REGNO_RAW instead of SET_REGNO.
17859 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
17861 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
17862 instead of SET_REGNO.
17863 * rtl.h (SET_REGNO_RAW): New macro.
17865 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
17867 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
17868 computations. Fix formatting issues.
17869 (num_sign_bit_copies1): Likewise.
17870 (canonicalize_condition): Likewise.
17872 2010-08-05 Richard Henderson <rth@redhat.com>
17874 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
17875 (floor_log2): Use clz_hwi.
17876 (exact_log2): Use ctz_hwi.
17877 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
17878 * builtins.c (fold_builtin_bitop): Use them.
17879 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17880 * combine.c (get_pos_from_mask): Use ctz_hwi.
17881 * double-int.c (double_int_ctz): Likewise.
17882 * explow.c (force_reg): Likewise.
17883 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
17885 2010-08-05 Richard Henderson <rth@redhat.com>
17888 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
17889 the alignment constant is properly sign-extended.
17891 2010-08-05 Richard Guenther <rguenther@suse.de>
17893 * expr.c (store_expr): Use emit_block_move only if both
17894 source and target are MEMs. Use store_bit_field if only
17895 the target is a MEM.
17897 2010-08-05 Richard Henderson <rth@redhat.com>
17900 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
17901 (INCOMING_RETURN_ADDR_RTX): Likewise.
17902 (dwarf2out_do_frame): Remove conditional compilation.
17903 (dwarf2out_frame_init): Likewise.
17905 2010-08-05 Nicolas Setton <setton@adacore.com>
17907 * gcov.c (flag_display_progress): New static variable.
17908 (main): Display progress info on standard output if requested.
17909 (options): Add -d/--display-progress.
17910 (print_usage): Print them.
17911 (process_args): Handle them.
17912 * doc/gcov.texi: Document them.
17914 2010-08-05 Martin Jambor <mjambor@suse.cz>
17916 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
17917 (ipcp_insert_stage): Redirect only edges not flagged with
17918 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
17919 discovered constants.
17921 2010-08-05 Martin Jambor <mjambor@suse.cz>
17923 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
17924 (struct ipa_param_descriptor): New fields types and
17925 cannot_devirtualize.
17926 (ipa_param_cannot_devirtualize_p): New function.
17927 (ipa_param_types_vec_empty): Likewise.
17928 (ipa_make_edge_direct_to_target): Declare.
17929 * ipa-cp.c: Fixed first stage driver name in initial comment,
17930 described devirtualization there too.
17931 (ipcp_analyze_node): Call ipa_analyze_params_uses.
17932 (ipcp_print_all_lattices): Print devirtualization info.
17933 (ipa_set_param_cannot_devirtualize): New function.
17934 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
17936 (ipcp_init_stage): Merged into...
17937 (ipcp_generate_summary): ...its caller.
17938 (ipcp_change_tops_to_bottom): Also process type lists.
17939 (ipcp_add_param_type): New function.
17940 (ipcp_copy_types): Likewise.
17941 (ipcp_propagate_types): Likewise.
17942 (ipcp_propagate_stage): Also propagate types.
17943 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
17944 Also return true if propagated types require it.
17945 (ipcp_update_callgraph): Dump redirection info.
17946 (ipcp_process_devirtualization_opportunities): New function.
17947 (ipcp_const_param_count): Include known type information.
17948 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
17949 on new node. Fixed formatting.
17950 * ipa-prop.c (make_edge_direct_to_target): Renamed to
17951 ipa_make_edge_direct_to_target and changed all callers. Made
17952 externally visible.
17953 (ipa_node_duplication_hook): Duplicate types vector.
17954 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
17955 redirect outgoing calls for which we can't get a decl from the
17956 statement. Check that we can get a decl from the call statement.
17957 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
17958 ipa_analyze_params_uses only when ipa-cp is disabled.
17959 * tree-inline.c (get_indirect_callee_fndecl): Removed.
17960 (expand_call_inline): Do not call get_indirect_callee_fndecl.
17961 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
17962 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
17964 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
17966 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
17967 temporary. Emit move from temporary to accum, so REG_EQUAL note will
17968 be attached to this insn in correct mode.
17970 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
17972 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
17973 using REGNO of base_reg directly.
17975 2010-08-05 Jie Zhang <jie@codesourcery.com>
17977 PR tree-optimization/45144
17978 * tree-sra.c (type_consists_of_records_p): Return false
17979 if the record contains bit-field.
17981 2010-08-04 Richard Henderson <rth@redhat.com>
17983 * config/i386/i386.c (struct ix86_frame): Remove padding and
17984 to_allocate members.
17985 (ix86_compute_frame_layout): Don't store them.
17986 (ix86_can_use_return_insn_p): Use a more direct and more obviously
17987 correct condition for the position of the stack pointer.
17988 (ix86_expand_prologue): Compute remaining stack allocation based
17989 on the ultimate stack pointer offset.
17990 (ix86_expand_epilogue): Use more obvious expressions testing for
17991 the stack pointer already pointing to the saved registers.
17993 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
17994 duplication deconstructing the frame pointer. Simplify
17995 deallocation of the local stack frame.
17997 * reg-notes.def (CFA_EXPRESSION): New.
17998 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17999 (dwarf2out_frame_debug_cfa_expression): New.
18000 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
18002 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
18003 * config/i386/i386.c (ix86_expand_prologue): Set it.
18004 (ix86_expand_epilogue): Clear it.
18005 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
18006 context, add REG_CFA_EXPRESSION notes.
18008 * config/i386/i386.h (struct machine_frame_state): Rename from
18009 machine_cfa_state. Add members tracking SP and FP regardless
18010 of the current CFA register.
18011 (ix86_cfa_state): Remove.
18012 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
18013 and sse_reg_save_offset members.
18014 (ix86_compute_frame_layout): Set them.
18015 (gen_push): Increment sp_offset too.
18016 (choose_baseaddr_len, choose_baseaddr): New.
18017 (ix86_emit_save_reg_using_mov): New.
18018 (ix86_emit_save_regs_using_mov): Use it.
18019 (ix86_emit_save_sse_regs_using_mov): Likewise.
18020 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
18021 compare vs the saved red_zone_offset.
18022 (pro_epilogue_adjust_stack): Adjust sp_offset.
18023 (ix86_adjust_stack_and_probe): Likewise.
18024 (ix86_expand_prologue): Set up, use, and validate the new
18025 frame_state_info members. Use gen_frame_mem.
18026 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
18027 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
18028 new frame_state_info members.
18029 (ix86_emit_leave): Likewise.
18030 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
18031 out-of-range stack pointer offsets here.
18032 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18033 (ix86_expand_epilogue): Use and validate the new frame_state_info
18034 members. Break up and simplify the logic selecting the
18035 restore_regs_via_mov code path. Ensure that there will be no
18036 out-of-range stack pointer offsets.
18038 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
18040 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
18041 argument name to reflect the expected tree; fix indentation.
18042 (ix86_asm_output_function_label): Output the entire 32-bit
18043 ms_hook here as bytes ...
18044 (ix86_expand_prologue): ... not here as insns. Attach the
18045 unwind info for the ms_hook to a blockage insn.
18046 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
18047 (ix86_ms_bitfield_layout_p): Fix indentation.
18048 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
18050 * config/i386/i386.c (ix86_using_red_zone): New.
18051 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
18052 ix86_expand_prologue, ix86_force_to_memory): Use it.
18054 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
18055 saving the int registers.
18057 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
18058 and DWARF2_UNWIND_INFO conditional compilation.
18060 2010-08-04 Richard Henderson <rth@redhat.com>
18063 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
18064 an is_naming_typedef_decl.
18066 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
18068 PR rtl-optimization/45162
18069 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
18070 * dce.c (word_dce_process_block): Likewise.
18072 2010-08-04 Steve Ellcey <sje@cup.hp.com>
18075 * config/ia64/constraints.md (Z): New.
18076 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
18077 (xfreg_or_signed_fp01_operand): New.
18078 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
18079 with fr_reg_or_signed_fp01_operand and constraint G with Z.
18084 (adddf3_trunc): Ditto.
18086 (*subdf3_trunc): Ditto.
18088 (*madddf4_trunc): Ditto.
18090 (*msubdf4_trunc): Ditto.
18091 (addxf3): Replace xfreg_or_fp01_operand with
18092 xfreg_or_signed_fp01_operand and constraint G with Z.
18093 (*addxf3_truncsf): Ditto.
18094 (*addxf3_truncdf): Ditto.
18096 (*subxf3_truncsf): Ditto.
18097 (*subxf3_truncdf): Ditto.
18099 (*maddxf4_truncsf): Ditto.
18100 (*maddxf4_truncdf): Ditto.
18102 (*msubxf4_truncsf): Ditto.
18103 (*msubxf4_truncdf): Ditto.
18105 2010-08-04 Richard Guenther <rguenther@suse.de>
18107 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
18108 if either alias-set is zero.
18110 2010-08-04 Richard Guenther <rguenther@suse.de>
18112 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
18113 * tree-ssa-ccp.c: ... here.
18114 * tree-ssa-copy.c: ... and here.
18115 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
18116 value_range_t): Move ...
18117 * tree-vrp.c: ... here.
18118 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
18119 (substitute_and_fold): Adjust prototype.
18120 * tree-ssa-propagate.c (replace_uses_in): Adjust.
18121 (replace_phi_args_in): Likewise.
18122 (substitute_and_fold): Take callback to query lattice instead
18123 of pointer to lattice. Replace SSA name defs with lattice
18125 * tree-ssa-ccp.c (ccp_finalize): Adjust.
18126 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
18127 (get_value): New function.
18128 (fini_copy_prop): Adjust.
18129 * tree-vrp.c (vrp_finalize): Adjust.
18131 2010-08-04 Richard Guenther <rguenther@suse.de>
18133 PR middle-end/45176
18134 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
18135 points-to set for original MEM_REF.
18137 2010-08-04 Richard Guenther <rguenther@suse.de>
18139 * tree-ssa-ccp.c (get_constant_value): New function.
18140 (get_rhs_assign_op_for_ccp): Remove.
18141 (valueize_op): New function.
18142 (ccp_fold): Use get_constant_value and valueize_op.
18143 (fold_const_aggregate_ref): Likewise.
18144 (ccp_fold_stmt): Likewise.
18145 (visit_assignment): Simplify.
18147 2010-08-04 Richard Guenther <rguenther@suse.de>
18149 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
18150 * double-int.h (double_int_ctz): Declare.
18151 * double-int.c (double_int_ctz): New function.
18153 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
18155 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
18157 picochip_expand_movmemhi : Expand movmem pattern.
18158 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
18160 * config/picochip/picochip.md (movmemhi) : New pattern.
18162 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
18164 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
18166 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
18168 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
18169 NEG as operand of a MULT by merging it with the other operand.
18170 * combine.c (make_compound_operation): Use trunc_int_for_mode when
18171 generating a MULT with constant. Canonicalize PLUS and MINUS involving
18173 * config/arm/constraints.md (M): Examine only 32 bits of a
18175 * config/arm/predicates.md (power_of_two_operand): Likewise.
18177 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18179 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
18182 2010-08-03 Jan Hubicka <jh@suse.cz>
18184 * ipa-split.c (struct split_point): Add split_part_set_retval.
18185 (find_retval): Forward declare.
18186 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
18187 (consider_split): Compute current->split_part_set_retval.
18188 (visit_bb): Do not look into return value.
18189 (split_function): Handle !split_part_set_retval
18191 2010-08-03 Martin Jambor <mjambor@suse.cz>
18193 * tree-sra.c (completely_scalarize_record): New parameter REF, create
18194 its own access->expr intead of using build_ref_for_offset.
18196 2010-08-03 Joseph Myers <joseph@codesourcery.com>
18198 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
18199 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
18200 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
18201 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
18202 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
18203 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
18204 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
18205 DEFAULT_SWITCH_TAKES_ARG.
18206 * config/rx/rx.opt (-patch=): Remove option.
18207 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
18208 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
18209 * doc/invoke.texi (RX Options): Remove -patch=.
18210 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
18211 (option_map): Remove --profile-blocks, --quiet and --silent.
18213 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
18215 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
18216 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
18217 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
18218 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
18219 Update calls to ix86_expand_compare and ix86_expand_branch.
18220 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
18221 ix86_expand_compare.
18222 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
18223 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
18225 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
18226 and ix86_compare_op1. Update calls to ix86_expand_compare.
18227 (ix86_expand_int_movcc): Ditto.
18228 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
18229 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
18230 (ix86_expand_setcc): Ditto.
18231 (ix86_expand_compare): Remove prototype.
18232 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
18233 ix86_compare_op0 and ix86_compare_op1. Update calls
18234 to ix86_expand_branch to directly pass operands[1] and operands[2].
18235 (cbranchxf4): Ditto.
18236 (cbranch<MODEF:mode>4): Ditto.
18237 (cbranchcc4): Ditto.
18238 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
18239 Update calls to ix86_expand_setcc to directly pass operands[2] and
18241 (cstorexf4): Ditto.
18242 (cstore<MODEF:mode>4): Ditto.
18243 (cstorecc4): Ditto.
18245 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
18248 * caller-save.c (save_call_clobbered_regs): Remove regs from
18249 hard_regs_saved when they are set.
18251 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
18254 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18257 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
18259 * common.opt (ftree-loop-distribute-patterns): New.
18260 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
18261 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
18263 * tree-data-ref.c (stores_zero_from_loop): New.
18264 * tree-data-ref.h (stores_zero_from_loop): Declared.
18265 * tree-loop-distribution.c (tree_loop_distribution): Call
18266 stores_zero_from_loop.
18267 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
18269 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
18271 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
18274 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
18275 * config/arm/arm.c (thumb1_code): New variable.
18276 (arm_override_options): Set it.
18277 (thumb1_final_prescan_insn): Keep track of condition code status.
18278 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
18279 jumps that depend on them.
18280 * config/arm/arm.h (thumb1_code): Declare variable.
18281 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
18282 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
18284 (CC_STATUS_INIT): New macro.
18285 * config/arm/constraints.md (Pd): New constraint.
18286 * config/arm/predicates.md (noov_comparison_operator): New predicate.
18287 * config/arm/arm.md (is_thumb1): New define_attr.
18288 (conds): Set default to "clob" when generating Thumb1 code.
18289 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
18290 code are set. Use two-operand assembly syntax.
18291 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
18293 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
18294 codes are set. Use two-operand assembly syntax.
18295 (zero_extendhisi splitter): Remove constraints.
18296 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
18297 thumb1_movsf_insn): Set conds attribute as appropriate.
18298 (cbranchsi4_insn): Use condition code status from struct
18299 machine_function to determine whether the comparison can be eliminated.
18300 Discourage the alternative using high registers.
18301 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
18302 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
18303 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
18304 subsi3_cbranch): Delete.
18305 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
18306 one subtract and one cbranch insn.
18308 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
18309 thumb2_movdf_soft_insn): Delete patterns.
18310 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
18311 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
18312 (pool_range, neg_pool_range): Use them to define defaults.
18313 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
18314 and allow for TARGET_32BIT.
18317 * config/arm/arm.h (arm_regs_in_sequence): Declare.
18318 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
18319 load_multiple_sequence, store_multiple_sequence): Delete
18321 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
18323 * config/arm/ldmstm.md: New file.
18324 * config/arm/arm.c (arm_regs_in_sequence): New array.
18325 (load_multiple_sequence): Now static. New args SAVED_ORDER,
18326 CHECK_REGS. All callers changed.
18327 If SAVED_ORDER is nonnull, copy the computed order into it.
18328 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
18329 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
18330 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
18331 If SAVED_ORDER is nonnull, copy the computed order into it.
18332 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
18333 like REGS. Handle Thumb mode.
18334 (arm_gen_load_multiple_1): New function, broken out of
18335 arm_gen_load_multiple.
18336 (arm_gen_store_multiple_1): New function, broken out of
18337 arm_gen_store_multiple.
18338 (arm_gen_multiple_op): New function, with code from
18339 arm_gen_load_multiple and arm_gen_store_multiple moved here.
18340 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
18341 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
18343 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
18344 * config/arm/predicates.md (commutative_binary_operator): New.
18345 (load_multiple_operation, store_multiple_operation): Handle more
18346 variants of these patterns with different starting offsets. Handle
18348 * config/arm/arm.md: Include "ldmstm.md".
18349 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
18350 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
18351 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
18352 peepholes): Delete.
18353 * config/arm/ldmstm.md: New file.
18354 * config/arm/arm-ldmstm.ml: New file.
18356 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
18357 if statement which adds extra costs to frame-related expressions.
18359 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18361 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
18363 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
18366 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
18368 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
18369 split V4SI operands.
18371 2010-08-01 Anatoly Sokolov <aesok@post.ru>
18373 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18374 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
18375 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
18376 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
18378 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
18380 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
18383 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
18385 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
18386 used in the call to optab_for_tree_code. Fix the second
18387 is_widening_mult_p call. Check that both unwidened operands
18388 have the same sign.
18390 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
18392 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
18394 2010-07-31 Anatoly Sokolov <aesok@post.ru>
18396 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18398 2010-07-30 DJ Delorie <dj@redhat.com>
18400 * config/rx/predicates.md (rx_constshift_operand): New.
18401 * config/rx/rx.md (zs_cond): New.
18402 (cbranchsi4): Remove mode.
18403 (*cbranchsi4_<code>): Likewise.
18404 (*tstbranchsi4_<code>): New.
18405 (*tstbranchsi4r_<code>): New.
18406 (*tstbranchsi4m_eq): New.
18407 (*tstbranchsi4m_ne): New.
18408 (cbranchsf4): Remove mode.
18409 (*cbranchsf4_<code>): Likewise.
18411 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
18413 * rtlanal.c (simplify_subreg_regno): Don't treat
18414 HARD_FRAME_POINTER_REGNUM specially.
18416 2010-07-30 Joseph Myers <joseph@codesourcery.com>
18418 * common.opt (-G): Don't define option here.
18419 * config/g.opt: New.
18420 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
18421 rs6000/powerpc and score targets.
18422 * opts.c (common_handle_option): Don't handle -G here.
18423 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
18424 * config/frv/frv.c (frv_handle_option): Handle -G.
18425 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
18426 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
18427 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
18428 * config/mips/mips.c (mips_handle_option): Handle -G.
18429 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
18430 * config/score/score.c (score_handle_option): Handle -G.
18432 2010-07-30 Anatoly Sokolov <aesok@post.ru>
18434 * config/mmix/mmix.c: Include basic-block.h.
18436 2010-07-30 Jakub Jelinek <jakub@redhat.com>
18439 PR rtl-optimization/45137
18440 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
18442 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
18444 * combine.c (next_nonnote_nondebug_insn): Removed.
18445 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
18446 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
18447 * sched-deps.c (sched_analyze_insn): Likewise.
18448 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
18449 * rtlanal.c (canonicalize_condition): Likewise.
18450 * postreload.c (reload_combine_recognize_pattern): Likewise.
18451 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
18453 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
18455 * config/i386/i386.md (int_cond): Remove code iterator.
18457 (cbranch<mode>4): Use ordered_comparison_operator predicate
18459 (cstore<mode>4): Ditto for operator1.
18460 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
18461 (add<mode>cc): ditto.
18463 2010-07-30 Richard Guenther <rguenther@suse.de>
18465 PR middle-end/45141
18466 * expr.c (expand_expr_real_1): Check for not handled base address.
18468 2010-07-30 Richard Guenther <rguenther@suse.de>
18470 * ipa-prop.c (ipa_modify_formal_parameters): Use
18471 build_distinct_type_copy.
18473 2010-07-30 Anthony Green <green@moxielogic.com>
18475 * config/moxie/rtems.h: New file.
18476 * config.gcc: Add moxie-rtems support.
18478 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
18480 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
18481 df flags as in run_fast_df_dce.
18483 2010-07-29 Jakub Jelinek <jakub@redhat.com>
18486 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18488 * rtl.def (NOTE): Swap operands 4 and 5.
18489 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
18490 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
18491 Adjust accordingly.
18492 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
18494 2010-07-29 Jakub Jelinek <jakub@redhat.com>
18497 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
18498 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
18499 (gen_subprogram_die): Likewise. Remove it when removing declaration's
18501 (gen_decl_die): Change return type to dw_die_ref, return what
18502 gen_formal_parameter_die returned.
18504 2010-07-29 Martin Jambor <mjambor@suse.cz>
18506 * dbgcnt.def (eipa_sra): New counter.
18507 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
18509 2010-07-29 Xinliang David Li <davidxl@google.com>
18512 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
18513 in revision 162652.
18515 2010-07-29 Richard Guenther <rguenther@suse.de>
18517 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
18518 (TV_TREE_STORE_CCP): Likewise.
18519 (TV_TREE_REDPHI): Likewise.
18521 2010-07-29 Richard Guenther <rguenther@suse.de>
18523 * double-int.h (double_int_and_not): New function.
18524 * combine.c (try_combine): Use it.
18525 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
18527 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
18529 PR rtl-optimization/42575
18530 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
18531 Argument AU removed. All callers changed. Ignore artificial refs.
18532 Use return value of df_word_lr_simulate_defs to decide whether an insn
18534 (fast_dce): Rename arg to WORD_LEVEL.
18535 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
18537 (pass_fast_rtl_byte_dce): Delete.
18538 * dce.h (run_word_dce): Declare.
18539 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
18540 All callers changed. Simplify code to only deal with two-word regs.
18541 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
18542 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
18543 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
18544 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
18545 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
18546 (df_word_lr_mark_ref): Declare.
18547 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
18548 df_word_lr_simulate_uses): Declare or rename from byte variants.
18549 (df_byte_lr_simulate_artificial_refs_at_top,
18550 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
18551 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
18553 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
18554 (enum df_mm): Delete.
18555 * df-byte-scan.c: Delete file.
18556 * df-problems.c (df_word_lr_problem_data): Renamed from
18557 df_byte_lr_problem_data, all members deleted except for
18558 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
18559 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
18560 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
18561 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
18562 df_byte_lr_confluence_0): Delete functions.
18563 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
18565 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
18566 Don't initialize members that were deleted, don't try to discover data
18567 about registers. Ignore hard regs.
18568 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
18569 (df_word_lr_mark_ref): New function.
18570 (df_word_lr_bb_local_compute): Renamed from
18571 df_byte_bb_lr_local_compute; all callers changed. Use
18572 df_word_lr_mark_ref. Assert that artificial refs don't include
18573 pseudos. Ignore hard registers.
18574 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
18575 Assert that exit block uses don't contain pseudos.
18576 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
18577 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
18578 callers changed. Ignore hard regs.
18579 (df_word_lr_transfer_function): Renamed from
18580 df_byte_lr_transfer_function; all callers changed.
18581 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
18582 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
18584 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
18586 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
18587 confluence operator 0 set to NULL.
18588 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
18590 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
18591 Return bool, true if bitmap changed or insn otherwise necessary.
18592 All callers changed. Simplify using df_word_lr_mark_ref.
18593 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
18594 all callers changed. Simplify using df_word_lr_mark_ref.
18595 * lower-subreg.c: Include "dce.h"
18596 (decompose_multiword_subregs): Call run_word_dce if df available.
18597 * Makefile.in (lower-subreg.o): Adjust dependencies.
18598 (df-byte-scan.o): Delete.
18599 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
18601 2010-07-29 Richard Guenther <rguenther@suse.de>
18603 * tree.c (build_vector): Assert that the vector constant
18604 has enough elements.
18605 (build_vector_from_ctor): Pad with trailing zeros.
18607 2010-07-29 Richard Guenther <rguenther@suse.de>
18609 PR tree-optimization/45120
18610 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18611 Handle offset in DEREFs properly.
18612 (get_constraint_for_1): Handle MEM_REF offset properly.
18614 2010-07-29 Richard Guenther <rguenther@suse.de>
18616 PR middle-end/45034
18617 * convert.c (convert_to_integer): Always use an unsigned
18618 type for narrowed negate and bitwise not.
18620 2010-07-29 Ira Rosen <irar@il.ibm.com>
18622 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
18623 to outer loop when creating reduction epilogue for double reduction,
18624 and switch back to the inner loop when updating the phi nodes.
18625 Update uses of outer loop exit phi nodes in double reduction (instead
18626 of uses of reduction).
18628 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
18630 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
18631 popcount on power7 and parity on power6 systems.
18632 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
18633 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
18636 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
18637 (UNSPEC_PARITY): Ditto.
18638 (SFDF): New iterator for SF/DF.
18639 (rreg2): New mode attribute for floating register constraint.
18640 (TARGET_FLOAT): New mode attribute for whether single/double float
18642 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
18644 (parity<mode>2_cmpb): New insn for parity on power6 and newer
18646 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
18647 pattern. Add support for fcpsgn instruction added in power6.
18648 (copysignsf3): Delete.
18649 (copysigndf3): Delete.
18650 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
18651 instead of if_then_else in RTL to avoid problems with -0.
18653 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
18654 of if_then_else to mirror scalar code.
18655 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
18658 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
18659 instead of if_then_else.
18661 2010-07-28 Xinliang David Li <davidxl@google.com>
18663 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
18664 (dump_cand): Dump var_before/after.
18665 (htab_inv_expr_eq): New function.
18666 (htab_inv_expr_hash): New function.
18667 (tree_ssa_iv_optimize_init): Support pseudo invariants.
18668 (add_candidate_1): consider base type precision.
18669 (set_use_iv_cost): New parameter.
18670 (adjust_setup_cost): Use profile information.
18671 (get_address_cost): Do not hard code width in computing address
18673 (compare_aff_trees): New function.
18674 (get_loop_invariant_expr_id): New function.
18675 (get_computation_cost_at): New parameter and use profile information.
18676 (get_computation_cost): New parameter.
18677 (determine_use_iv_cost_generic): Pass new parameter.
18678 (determine_use_iv_cost_address): Ditto.
18679 (determine_use_iv_cost_condition): Ditto.
18680 (autoinc_possible_for_pair): Ditto.
18681 (determine_use_iv_costs): More dumps.
18682 (iv_ca_get_num_inv_exprs): New function.
18683 (iv_ca_recount_cost): Consider loop invariants in register pressure
18685 (iv_ca_add_use): New parameter.
18686 (iv_ca_dump): Better dumping.
18687 (iv_ca_extend): New parameter.
18688 (try_add_cand_for): Attempt to get better partial solution.
18689 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
18690 (create_new-ivs): More dumps.
18691 (rewrite_use_compare): Ditto.
18692 (free_loop_data): More cleanup.
18693 (treee_ssa_iv_optimize_finalize): Ditto.
18695 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
18697 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
18698 * config/i386/i386.c (ix86_profile_before_prologue): New.
18699 (override_options): Add special handling for -mfentry.
18700 (ix86_function_regparm): Likewise.
18701 (ix86_function_sseregparm): Likewise.
18702 (ix86_frame_pointer_required): Likewise.
18703 (ix86_expand_prologue): Check for ms_hook_prologue.
18704 (x86_function_profiler): Adjust mcount output.
18705 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
18706 * config/i386/i386.opt (mfentry): New.
18707 * doc/invoke.texi (mfentry): Add documentation.
18708 * doc/tm.texi: Regenerated..
18709 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
18710 * final.c (final_start_function): Replace macro
18711 PROFILE_BEFORE_PROLOGUE by target hook.
18712 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18713 * target.def (profile_before_prologue): New hook.
18714 * targhooks.c (default_profile_before_prologue): New.
18715 * targhooks.h (default_profile_before_prologue): New.
18717 2010-07-28 Jakub Jelinek <jakub@redhat.com>
18720 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
18723 * dwarf2out.c (dwarf2out_var_location): Always consider
18724 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
18726 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18728 PR rtl-optimization/45107
18729 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
18731 2010-07-28 Richard Guenther <rguenther@suse.de>
18733 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
18734 (set_lattice_value): Do not query an old default value.
18735 (get_value_for_expr): New function. Properly canonicalize
18737 (ccp_visit_phi_node): Use it.
18739 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
18741 * config/arm/arm.c (arm_pcs_default): Remove static.
18742 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
18743 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
18744 (arm_pcs_default): Declare.
18746 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
18748 * config/rs6000/rs6000.c (rs6000_override_options):
18749 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
18750 ... to darwin_rs6000_override_options.
18751 (rs6000_return_in_memory): Update preceding comment for darwin
18752 64 bit ABI. Use TARGET_MACHO inline.
18753 (rs6000_darwin64_struct_check_p): New.
18754 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
18755 (function_arg): Likewise.
18756 (rs6000_arg_partial_bytes): Likewise.
18757 (rs6000_function_value): Likewise.
18759 2010-07-28 Andi Kleen <ak@linux.intel.com>
18761 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
18763 2010-07-28 Richard Guenther <rguenther@suse.de>
18765 PR middle-end/44903
18766 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
18767 targets try harder to not generate unaligned accesses.
18769 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18771 PR rtl-optimization/45101
18772 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
18775 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18777 PR tree-optimization/44885
18778 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
18779 with non-aliased component.
18781 2010-07-28 Joseph Myers <joseph@codesourcery.com>
18783 * config/darwin-driver.c (SWITCH_TAKES_ARG,
18784 WORD_SWITCH_TAKES_ARG): Remove.
18785 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
18786 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
18787 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
18788 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
18789 definitions from gcc.c.
18790 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
18792 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
18793 Move to defaults.h.
18794 * opts-common.c: Include tm.h.
18795 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
18796 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
18797 Handle more than one argument. Set canonical_option_num_elements.
18798 (decode_cmdline_options_to_array): Set
18799 canonical_option_num_elements and trailing elements of
18801 * opts.h (struct cl_decoded_option): Allow four elements in
18802 canonical_option. Add field canonical_option_num_elements.
18803 * Makefile.in (opts-common.o): Update dependencies.
18805 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18807 PR middle-end/44790
18808 PR middle-end/44993
18809 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
18810 sure the base has address_mode before adding the offset.
18812 2010-07-27 Xinliang David Li <davidxl@google.com>
18814 * tree-flow.h (create_mem_ref): Add one new parameter.
18815 * tree-ssa-address.c (create_mem_ref): New parameter.
18816 (addr_to_parts): Ditto.
18817 (move_variant_to_index): New function.
18818 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
18820 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18822 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
18824 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
18825 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
18826 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
18827 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
18828 CODE_LABELs and NOTEs.
18829 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
18830 * combine.c (try_combine): Likewise.
18831 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18832 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
18834 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18836 * coretypes.h (struct cl_option_handlers): Declare.
18837 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
18838 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
18839 * langhooks-def.h (lhd_handle_option): Declare.
18840 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
18841 * langhooks.c (lhd_handle_option): New.
18842 * langhooks.h (struct lang_hooks): Update prototype and return
18843 value type of handle_option hook.
18844 * optc-gen.awk: Generate target_flags_explicit definition for the
18846 * opts-common.c: Include diagnostic.h.
18847 (handle_option): Move from opts.c. Update prototype and return
18848 value type. Use handlers structure.
18849 (read_cmdline_option): Move from opts.c. Update prototype. Use
18850 handlers structure.
18851 (set_option): Move from opts.c.
18852 * opts.c (common_handle_option): Update prototype and return value
18853 type. Update calls to handle_option and enable_warning_as_error.
18854 (unknown_option_callback, post_handling_callback,
18855 lang_handle_option, target_handle_option): New.
18856 (handle_option, read_cmdline_option): Move to opts-common.c.
18857 (read_cmdline_options): Update prototype. Update call to
18858 read_cmdline_option.
18859 (decode_options): Initialize and use handlers structure.
18860 (set_option): Move to opts-common.c.
18861 (enable_warning_as_error): Update prototype. Update call to
18863 * opts.h (struct cl_option_handler_func, struct
18864 cl_option_handlers): New.
18865 (handle_option, enable_warning_as_error): Update prototypes.
18866 (read_cmdline_option): Declare.
18867 * Makefile.in (opts-common.o): Update dependencies.
18869 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18871 * config/arm/arm.c (params.h): Include.
18872 (arm_override_options): Tune gcse-unrestricted-cost.
18873 * config/arm/t-arm (arm.o): Define dependencies.
18875 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18878 PR middle-end/42574
18879 * basic-block.h (get_dominated_to_depth): Declare.
18880 * dominance.c (get_dominated_to_depth): New function, use
18881 get_all_dominated_blocks as a base.
18882 (get_all_dominated_blocks): Use get_dominated_to_depth.
18884 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
18885 (hoist_exprs): Remove.
18886 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
18887 (compute_code_hoist_vbeinout): Add debug print outs.
18888 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
18890 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
18891 quadratic behavior.
18892 * params.h (MAX_HOIST_DEPTH): New macro.
18893 * doc/invoke.texi (max-hoist-depth): Document.
18895 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18897 PR rtl-optimization/40956
18898 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
18901 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18904 PR middle-end/42574
18905 * config/arm/arm.c (legitimize_pic_address): Use
18906 gen_calculate_pic_address pattern to emit calculation of PIC address.
18907 (will_be_in_index_register): New function.
18908 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
18909 (thumb1_legitimate_address_p): Use it provided !strict_p.
18910 * config/arm/arm.md (calculate_pic_address): New expand and split.
18912 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18915 PR middle-end/42574
18916 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
18917 * config/arm/arm.md (define_split "J", define_split "K"): Make
18918 IRA/reload friendly.
18920 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18922 * gcse.c (insert_insn_end_basic_block): Update signature, remove
18924 (pre_edge_insert, hoist_code): Update.
18926 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18929 PR middle-end/42574
18930 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
18932 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18934 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
18936 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18938 PR rtl-optimization/40956
18940 PR middle-end/42574
18941 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
18943 (hoist_code): Count occurences in current block too.
18945 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18947 * gcse.c (struct expr:max_distance): New field.
18948 (doing_code_hoisting_p): New static variable.
18949 (want_to_gcse_p): Change signature. Allow constrained hoisting of
18950 simple expressions, don't change behavior for PRE. Set max_distance.
18951 (insert_expr_in_table): Set new max_distance field.
18952 (hash_scan_set): Update.
18953 (hoist_expr_reaches_here_p): Stop search after max_distance
18955 (find_occr_in_bb): New static function. Use it in ...
18956 (hoist_code): Calculate sizes of basic block before any changes are
18957 done. Pass max_distance to hoist_expr_reaches_here_p.
18958 (one_code_hoisting_pass): Set doing_code_hoisting_p.
18960 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
18961 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
18962 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
18964 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
18967 2010-07-27 Jeff Law <law@redhat.com>
18968 Maxim Kuvyrkov <maxim@codesourcery.com>
18970 * gcse.c (compute_transpout, transpout): Remove, move logic
18971 to prune_expressions.
18972 (compute_pre_data): Move pruning of trapping expressions ...
18973 (prune_expressions): ... here. New static function.
18974 (compute_code_hoist_data): Use it.
18975 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
18977 2010-07-27 Xinliang David Li <davidxl@google.com>
18979 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
18980 (rewrite_use_address): Adjust iv update position when needed.
18982 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18984 * dbgcnt.def (hoist_insn): New debug counter.
18985 * gcse.c (hoist_code): Use it.
18987 2010-07-27 Xinliang David Li <davidxl@google.com>
18989 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
18990 (niter_for_single_dom_exit): Passes additional parameter.
18991 (iv_period): Fix comments.
18992 (may_eliminate_iv): Handles multiple exit loops properly.
18993 (free_tree_niter_desc): New function.
18994 (free_loop_data): Frees up loop iteration descriptors.
18996 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18999 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
19000 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
19001 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
19002 (expand_one_var): Don't consider DECL_ALIGN for variables for
19003 which expand_one_stack_var_at has been already called.
19006 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
19007 constraints on IA-64.
19009 2010-07-27 Jie Zhang <jie@codesourcery.com>
19013 2010-07-23 Jie Zhang <jie@codesourcery.com>
19015 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
19016 false if ! tree_versionable_function_p.
19018 2010-07-27 Jakub Jelinek <jakub@redhat.com>
19020 * dwarf2out.c (add_data_member_location_attribute): Use
19021 add_AT_unsigned instead of add_AT_int if offset is non-negative.
19023 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
19025 * postreload.c (try_replace_in_use): New static function.
19026 (reload_combine_recognize_const_pattern): Use it here. Allow
19027 substituting into a final add insn, and substituting into a memory
19028 reference in an insn that sets the reg.
19030 2010-07-27 Joseph Myers <joseph@codesourcery.com>
19032 * common.opt (o): Add MissingArgError.
19033 * doc/options.texi (MissingArgError): Document.
19034 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
19035 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
19036 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
19037 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
19038 * langhooks.h (struct lang_hooks): Remove missing_argument.
19039 * optc-gen.awk: Handle MissingArgError and output new structure
19040 field initializers.
19041 * opts.c (read_cmdline_option): Use missing_argument_error field
19042 instead of missing_argument langhook.
19043 * opts.h (struct cl_option): Add missing_argument_error field.
19044 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
19046 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
19049 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
19050 Darwin64 ABI, for zero-sized objects.
19052 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
19057 Merge from Apple local 4.2.1.
19058 2005-05-11 Stan Shebs <shebs@apple.com>
19059 Fix 64-bit varargs for Darwin (Radar 4028089).
19060 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
19061 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
19062 Add argument, add case for 8-byte register half-filled with a float.
19063 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
19064 single-precision floats specially.
19066 2010-07-27 Ira Rosen <irar@il.ibm.com>
19068 PR tree-optimization/44152
19069 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
19070 complex numbers for further check.
19071 (vect_supported_load_permutation_p): Check nodes with
19074 2010-07-27 Joseph Myers <joseph@codesourcery.com>
19076 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
19077 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
19078 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
19079 (LANG_HOOKS_INITIALIZER): Add new hooks.
19080 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
19081 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
19082 and complain_wrong_lang_p. Update init_options prototype.
19083 * c-objc-common.c (c_initialize_diagnostics): First call
19084 c_common_initialize_diagnostics.
19085 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
19086 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
19087 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
19088 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
19089 (hook_uint_void_0): New.
19090 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
19091 (hook_uint_void_0): New.
19092 * opts-common.c (decode_cmdline_option,
19093 decode_cmdline_options_to_array): Also fill in canonical_option field.
19094 * opts.c (complain_wrong_lang): Use langhook to determine whether
19095 to complain instead of special-casing LTO.
19096 (decode_options): Separate lang_mask determination with
19097 option_lang_mask hook from call of init_options hook.
19098 * opts.h (struct cl_decoded_option): Add canonical_option.
19100 2010-07-27 Jakub Jelinek <jakub@redhat.com>
19102 PR tree-optimization/45083
19103 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
19105 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
19107 * postreload.c (reload_combine_recognize_const_pattern): Move test
19108 for limiting the insn movement to the right scope.
19110 PR rtl-optimization/45051
19111 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
19112 than reg_mentioned_p.
19114 2010-07-26 Richard Henderson <rth@redhat.com>
19117 * tree-emutls.c: New file.
19118 * Makefile.in (OBJS-common): Add it.
19119 * tree-pass.h (pass_ipa_lower_emutls): Declare.
19120 * passes.c (init_optimization_passes): Add it.
19122 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
19123 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
19124 * expr.c (emutls_var_address): Delete.
19125 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
19126 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
19127 (emutls_finish): Delete.
19128 * toplev.c (compile_file): Don't call it.
19129 * tree.h (emutls_decl): Delete.
19130 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
19131 (emutls_finish, emutls_finalize_control_var): Delete.
19132 (emutls_object_type): Move to tree-emutls.c.
19133 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
19134 default_emutls_var_fields, get_emutls_object_type,
19135 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
19136 default_emutls_var_init): Likewise.
19137 (get_variable_section): Don't special case emutls.
19138 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
19139 default_elf_select_section, default_unique_section,
19140 default_encode_section_info): Likewise.
19141 * varpool.c (decide_is_variable_needed): Likewise.
19142 * gimple-iterator.c (update_call_edge_frequencies): New
19143 (gsi_insert_on_edge_immediate): Use it.
19144 (gsi_insert_seq_on_edge_immediate): Likewise.
19145 (gsi_commit_one_edge_insert): Likewise.
19147 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
19148 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
19149 (x86_64_elf_unique_section): Likewise.
19151 2010-07-26 Jan Hubicka <jh@suse.cz>
19153 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
19156 2010-07-26 Anatoly Sokolov <aesok@post.ru>
19158 * target.def (output_source_filename): New hook.
19159 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
19160 * doc/tm.texi: Regenerate.
19161 * toplev.c (output_file_directive) Remove function.
19162 * toplev.h (output_file_directive) Remove.
19163 * output.h (default_asm_output_source_filename,
19164 output_file_directive): Declare.
19165 * varasm.h (default_asm_output_source_filename,
19166 output_file_directive): New functions.
19168 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
19169 * config/mips/mips-protos.h (mips_output_filename): Remove.
19170 * config/mips/mips.c (mips_output_filename): Make Static.
19171 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
19173 2010-07-26 Richard Guenther <rguenther@suse.de>
19175 PR tree-optimization/43784
19176 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
19177 if the destination is used by the call.
19179 2010-07-26 Richard Guenther <rguenther@suse.de>
19181 PR middle-end/45073
19182 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
19183 SSA updating on being in SSA form.
19185 2010-07-26 Richard Guenther <rguenther@suse.de>
19187 PR middle-end/45056
19188 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
19190 2010-07-26 Richard Guenther <rguenther@suse.de>
19192 PR tree-optimization/45071
19193 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
19196 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
19198 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
19199 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
19200 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
19201 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
19202 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
19203 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
19204 save_r31, return_r31, save_interrupt, return_interrupt,
19205 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
19206 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
19207 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
19208 new ABI requirements.
19209 (save_r6_r9, L_callt_save_r6_r9): Remove.
19210 * config/v850/predicates.md (even_reg_operand, disp23_operand,
19211 const_float_1_operand const_float_0_operand): New Predicates.
19212 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
19213 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
19214 * config/v850/t-v850: Update multilibs for new target variants.
19215 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
19216 * config/v850/t-v850e: Likewise.
19217 * config/v850/v850.c (v850_issue_rate): New.
19218 (v850_strict_argument_naming): New.
19219 (function_arg): Modify to generate a different ABI.
19220 (print_operand): Update case 'z' to support float modes.
19221 (output_move_single): Modify to generate appropriate and better
19223 (v850_float_z_comparison_operator, v850_select_cc_mode,
19224 v850_float_nz_comparison_operator, v850_gen_float_compare,
19225 v850_gen_compare): New functions to support comparison of float values.
19226 (ep_memory_offset): Add support for V850E2 targets.
19227 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
19228 (INTERRUPT_REGPARM_NUM): Remove.
19229 (compute_register_save_size): Add extra case to save/restore long call.
19230 (use_prolog_function): New function to support prologue.
19231 (expand_prologue): Add support for V850E2 targets and modified
19232 as per the current ABI requirements.
19233 (expand_epilogue): Likewise.
19234 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
19235 (construct_save_jarl): Likewise.
19236 (construct_dispose_instruction): Update as per the current ABI
19238 (construct_prepare_instruction): Likewise.
19239 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
19240 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
19241 (CPP_SPEC): Updated to support v850e2 targets.
19242 (STRICT_ALIGNMENT): Modified.
19243 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
19244 (FIXED_REGISTERS): Likewise.
19245 (CALL_USED_REGISTERS): Likewise.
19246 (CONDITIONAL_REGISTER_USAGE): Updated.
19247 (HARD_REGNO_MODE_OK): Updated.
19248 (reg_class): Updated to add even registers.
19249 (REG_CLASS_NAMES): Likewise.
19250 (REG_CLASS_CONTENTS): Likewise.
19251 (REGNO_REG_CLASS): Updated for CC registers.
19252 (REG_CLASS_FROM_LETTER): Added support for even registers.
19253 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
19254 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
19255 ARG_POINTER_REGNUM): Updated.
19256 (FUNCTION_ARG_ADVANCE): Define.
19257 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
19258 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
19259 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
19260 (GO_IF_LEGITIMATE_ADDRESS): Updated.
19261 (SELECT_CC_MODE): Define.
19262 (REGISTER_NAMES): Updated to add psw and fcc registers.
19263 (ADDITIONAL_REGISTER_NAMES): Updated.
19264 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
19265 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
19266 * config/v850/v850.md (define_constants): Define new constants.
19267 (type): Update store,bit1,macc,div,fpu and single attributes.
19268 (cpu): New attribute.
19269 (cc): Add set_z attribute.
19270 (unsign23byte_load, sign23byte_load, unsign23hword_load,
19271 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
19272 23word_store): New instructions for 23-bit displacement load and store.
19273 (movqi_internal, movhi_internal): Update the attributes.
19274 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
19275 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
19277 (v850_tst1): Modified using CC_REGNUM.
19279 (cmpsi): Modified as define_expand from define_insn.
19280 (cmpsi_insn, cmpsf, cmpdf): New instructions.
19281 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
19282 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
19283 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
19284 one_cmplsi2): Clobber the CC_REGNUM register.
19285 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
19286 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
19287 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
19288 (setf_insn, set_z_insn, set_nz_insn): New instructions for
19290 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
19291 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
19293 (sasf_1, sasf_2): Remove.
19294 (sasf): New instruction.
19295 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
19296 targets. CC_REGNUM register is clobbered and attributes are
19298 (branch_z_normal, branch_z_invert, branch_nz_normal,
19299 branch_nz_invert): New branch related instructions.
19300 (jump): Updated the attributes.
19301 (switch): Update to support new targets. CC_REGNUM register is
19302 clobbered and attributes are updated.
19303 (call_internal_short, call_internal_long, call_value_internal_short,
19304 call_value_internal_long): Updated the attributes.
19305 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
19306 clobbered and attributes are updated.
19307 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
19308 Update to support new targets. CC_REGNUM register is clobbered.
19309 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
19311 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
19313 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
19314 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
19315 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
19316 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
19317 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
19318 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
19319 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
19320 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
19321 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
19322 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
19323 point instructions defined for V850e2v3 target.
19324 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
19325 Add support for V850E2 targets and CC_REGNUM register is clobbered.
19326 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
19327 support for new targets.
19328 * config/v850/v850-modes.def: New file.
19329 * config/v850/v850.opt(mstrict-align): Remove.
19330 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
19331 mv850e2v3): New command line options for V850.
19332 * config.gcc: Update the newly added files.
19333 * doc/invoke.texi: Update the newly added command line options for
19336 2010-07-26 Richard Guenther <rguenther@suse.de>
19338 PR tree-optimization/45052
19339 * ipa-pure-const.c (check_stmt): Check volatileness.
19341 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
19344 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
19345 * config/sparc/sparc.c: Include reload.h.
19346 (legitimize_tls_address): Rename into...
19347 (sparc_legitimize_tls_address): ...this.
19348 (legitimize_pic_address): Rename into...
19349 (sparc_legitimize_pic_address): ...this.
19350 (sparc_expand_move): Adjust to above renaming.
19351 (sparc_tls_referenced_p): Likewise.
19352 (sparc_legitimize_tls_address): Likewise.
19353 (sparc_legitimize_pic_address): Likewise.
19354 (sparc_legitimize_address): Likewise.
19355 (sparc_output_mi_thunk): Likewise.
19356 (sparc_legitimize_reload_address): New global function. Recognize
19357 (lo_sum (high ...) ...) patterns generated by earlier passes.
19358 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
19360 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
19363 * config/sparc/predicates.md (memory_reg_operand): Delete.
19364 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
19365 (*sync_compare_and_swap): Encode the address form in the pattern.
19366 (*sync_compare_and_swapdi_v8plus): Likewise.
19368 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
19370 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
19371 Streamline paragraph on compatibility with the system compiler.
19373 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
19375 PR middle-end/45035
19376 * alias.c (true_dependence_1): Fix thinko in merge of old
19377 true_dependence and canon_true_dependence.
19379 2010-07-23 Jan Hubicka <jh@suse.cz>
19381 * lto-streamer-out.c (write_symbol): Fix visibilities of external
19384 2010-07-23 Le-Chun Wu <lcwu@google.com>
19386 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
19387 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
19388 and an unnecessary assignment.
19389 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
19390 self-assign warning.
19391 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
19392 unnecessary self-init.
19394 2010-07-23 Richard Guenther <rguenther@suse.de>
19397 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
19398 for -flto and -fwhopr.
19400 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
19403 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
19404 (stmp-int-hdrs): Prefix/postfix headers by include_next.
19405 * config.gcc (user_headers_inc_next_pre): New.
19406 (user_headers_inc_next_post): Likewise.
19407 (*-w64-mingw*): Use for float.h post-fixing, and for
19408 stddef.h/stdarg.h pre-fixing by include_next.
19409 * configure.ac (user_headers_inc_next_post): New.
19410 (user_headers_inc_next_pre): New.
19411 * configure: Regenerated.
19413 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19415 * configure.ac: Don't disable TLS on Solaris 8/9 by default
19416 Set tga_func for Solaris 2/x86 resp. SPARC.
19417 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
19418 (LIB_THREAD_LDFLAGS_SPEC): Define.
19419 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
19420 * configure: Regenerate.
19421 * config.in: Regenerate.
19422 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
19423 -pthread, -threads, LIB_TLS_SPEC with -pthread.
19424 * doc/install.texi (Specific, *-*-solaris2*): Document use of
19425 alternate thread libraries on Solaris 8.
19426 Document TLS patch requirements.
19427 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
19431 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
19434 2010-07-23 Jakub Jelinek <jakub@redhat.com>
19436 * tree.h (struct tree_base): Add nameless_flag bitfield.
19437 (TYPE_NAMELESS, DECL_NAMELESS): Define.
19438 * omp-low.c (create_omp_child_function, scan_omp_parallel,
19439 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
19440 DECL_ARTIFICIAL where needed.
19441 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
19442 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
19443 has DECL_NAMELESS set.
19445 2010-07-23 Martin Jambor <mjambor@suse.cz>
19447 PR tree-optimization/44915
19448 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
19449 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
19450 (analyze_function): Likewise.
19452 2010-07-23 Martin Jambor <mjambor@suse.cz>
19454 PR tree-optimization/44914
19455 * tree-sra.c (sra_modify_function_body): Return true if CFG was
19456 changed, add purging dead eh edges.
19457 (ipa_sra_modify_function_body): Return true if CFG was changed,
19458 simplify purging dead eh edges.
19459 (modify_function): Return true if CFG was changed.
19460 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
19462 (ipa_early_sra): Likewise.
19464 2010-07-23 Jie Zhang <jie@codesourcery.com>
19467 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
19469 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
19470 false if ! tree_versionable_function_p.
19472 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
19474 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
19475 * ipa-pure-const.c (special_builtlin_state): Remove
19476 BUILT_IN_ARGS_INFO case.
19477 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19478 * builtins.c (expand_builtin): Likewise.
19479 (expand_builtin_args_info): Remove.
19480 * doc/tm.texi (__builtin_args_info): Remove.
19481 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
19482 * doc/tm.text.in: Likewise.
19484 2010-07-23 Richard Guenther <rguenther@suse.de>
19486 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
19487 (lto_symtab_merge_decls_2): Likewise.
19488 * tree-ssa.c (useless_type_conversion_p): Likewise.
19489 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19490 * gimple.c (gtc_visited2, gtc_ob2): Remove.
19491 (struct type_pair_d): Make same_p an array indexed by mode.
19493 (lookup_type_pair): Update initialization.
19494 (struct sccs): Adjust same_p type.
19495 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
19497 (print_gimple_types_stats): Likewise.
19498 * gimple.h (enum gtc_mode): New.
19499 (gimple_types_compatible_p): Adjust prototype.
19501 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
19503 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
19504 again after processing insn.
19506 2010-07-23 Jie Zhang <jie@codesourcery.com>
19508 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
19509 proper words when !tree_versionable_function_p.
19511 2010-07-23 Richard Guenther <rguenther@suse.de>
19513 PR tree-optimization/45037
19514 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
19516 2010-07-23 Jie Zhang <jie@codesourcery.com>
19518 * doc/extend.texi: Remove IP2K from the description of naked attribute.
19521 2010-07-10 Andi Kleen <ak@linux.intel.com>
19524 * lto-opts.c (lto_write_options): Add NULL file_data argument to
19525 lto_get_section_name.
19526 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
19527 * lto-streamer-out.c (produce_asm): Likewise.
19528 (copy_function): Likewise.
19529 (produce_symtab): Likewise.
19530 (produce_asm_for_decls): Likewise.
19531 * lto-streamer.c (lto_get_section_name): Add file_data argument.
19532 Rewrite to add random postfix to LTO sections.
19533 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
19534 (lto_get_section_name): Add file_data argument to prototype.
19536 2010-07-10 Andi Kleen <ak@linux.intel.com>
19538 * lto-section-in.c (lto_section_name): Synchronize names
19539 with lto_get_section_name.
19541 2010-07-10 Andi Kleen <ak@linux.intel.com>
19543 * lto-opts.c (lto_read_file_options): Check for missing section.
19545 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19547 * ira.c (check_allocation): Correctly handle the case where an allocno
19548 with two objects was allocated to a single reg.
19550 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
19552 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
19553 (is_widening_mult_p): Likewise.
19554 (convert_to_widen): Use them.
19555 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
19556 well as integer ones.
19558 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
19560 * alias.c (true_dependence_1): New function, merged version of
19561 true_dependence and canon_true_dependence.
19562 (true_dependence): Simplify.
19563 (canon_true_dependence): Simplify.
19565 2010-07-22 Richard Henderson <rth@redhat.com>
19568 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
19569 of V4SFmode for the SSE saves; increase stack alignment if needed.
19570 (ix86_gimplify_va_arg): Don't increase stack alignment here.
19572 2010-07-22 Jakub Jelinek <jakub@redhat.com>
19575 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
19576 call cprop_find_used_regs again via note_uses.
19578 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
19580 * alias.c (get_alias_set): Fix formatting issues.
19582 2010-07-22 Steve Ellcey <sje@cup.hp.com>
19584 PR middle-end/44878
19585 * stmt.c (expand_value_return): Call promote_function_mode with
19586 a for_return argument of 2 when returning by reference.
19588 2010-07-22 Dodji Seketeli <dodji@redhat.com>
19591 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
19592 unit DIE if we can find the scope DIE.
19594 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19596 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
19597 changed. Initialize OBJECT_SUBWORD.
19598 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
19599 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
19600 all callers changed.
19601 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
19602 (finish_allocno): Likewise.
19603 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
19604 (remove_low_level_allocnos): Likewise.
19605 (update_bad_spill_attribute): Likewise.
19606 (setup_min_max_allocno_live_range_point): Likewise.
19607 (sort_conflict_id_map): Likewise.
19608 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
19609 (ior_hard_reg_conflicts): New function.
19610 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
19611 (compress_conflict_vecs): Iterate over objects, not allocnos.
19612 (ira_add_live_range_to_object): New function.
19613 (object_range_compare_func): Renamed from allocno_range_compare_func.
19614 All callers changed.
19615 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
19616 subobjects, widen the min/max range of the lowest-order object to
19617 potentially include all other such low-order objects.
19618 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
19619 (check_allocation): Likewise. Use more fine-grained tests for register
19621 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
19622 allocno subobjects.
19623 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
19624 choices about which bits to set in each set. Don't use
19625 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
19626 using the multiple sets we computed.
19627 (push_allocno_to_stack): Iterate over allocno subobjects.
19628 (all_conflicting_hard_regs_coalesced): New static function.
19629 (setup_allocno_available_regs_num): Use it.
19630 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
19632 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
19633 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
19634 by ALLOCNO_NUM_OBJECTS.
19635 (calculate_spill_cost): Likewise.
19636 (color_pass): Express if statement in a more normal way.
19637 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
19638 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
19639 (setup_slot_coalesced_allocno_live_ranges): Likewise.
19640 (allocno_reload_assign): Likewise.
19641 (ira_reassign_pseudos): Likewise.
19642 (fast_allocation): Likewise.
19643 * ira-conflicts.c (build_conflict_bit_table): Likewise.
19644 (print_allocno_conflicts): Likewise.
19645 (ira_build_conflicts): Likewise.
19646 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
19647 callers changed. Test subword 0 of each allocno for conflicts.
19648 (build_object_conflicts): Renamed from build_allocno_conflicts. All
19649 callers changed. Iterate over allocno subobjects.
19650 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
19651 * ira-int.h (struct ira_allocno): New member: num_objects.
19652 Rename object to objects and change it into an array.
19653 (ALLOCNO_OBJECT): Add new argument N.
19654 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
19655 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
19656 (ior_hard_reg_conflicts): Declare.
19657 (ira_add_live_range_to_object): Declare.
19658 (ira_allocno_object_iterator): New.
19659 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
19660 (FOR_EACH_ALLOCNO_OBJECT): New macro.
19661 * ira-lives.c (objects_live): Renamed from allocnos_live; all
19663 (allocnos_processed): New sparseset.
19664 (make_object_born): Renamed from make_allocno_born; take an
19665 ira_object_t argument. All callers changed.
19666 (make_object_dead): Renamed from make_allocno_dead; take an
19667 ira_object_t argument. All callers changed.
19668 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
19669 All callers changed.
19670 (mark_pseudo_regno_live): Iterate over allocno subobjects.
19671 (mark_pseudo_regno_dead): Likewise.
19672 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
19674 (mark_ref_live): Detect subword accesses and call
19675 mark_pseudo_regno_subword_live as appropriate.
19676 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
19677 (process_bb_nodes_live): Deal with object-related updates first; set
19678 and test bits in allocnos_processed to avoid computing allocno
19679 statistics more than once.
19680 (create_start_finish_chains): Iterate over objects, not allocnos.
19681 (print_object_live_ranges): New function.
19682 (print_allocno_live_ranges): Use it.
19683 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
19686 2010-07-22 Richard Guenther <rguenther@suse.de>
19689 * gimple.c (gtc_next_dfs_num): New global.
19690 (struct sccs): Make value a union, add integer same_p member.
19691 (gtc_visit): New function.
19692 (gimple_types_compatible_p_1): New function, split out from ...
19693 (gimple_types_compatible_p): ... here. Start a DFS walk here.
19694 (iterative_hash_gimple_type): Adjust for sccs change.
19696 2010-07-22 Martin Jambor <mjambor@suse.cz>
19698 PR tree-optimization/44891
19699 * tree-sra.c: Include gimple-pretty-print.h.
19700 (replace_uses_with_default_def_ssa_name): Renamed to
19701 get_repl_default_def_ssa_name, return the new SSA name instead of
19702 replacing the old one.
19703 (sra_modify_assign): Dump a message when removing a load, if the LHS
19704 is an SSA_NAME, do not do any propagation, just set the RHS to a
19705 default definition SSA NAME, type convert if necessary.
19706 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
19708 2010-07-22 Richard Guenther <rguenther@suse.de>
19710 PR tree-optimization/45017
19711 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
19712 TYPE_PRECISION of integral types in addition to size.
19714 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
19716 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
19717 when no C library is specified.
19719 2010-07-22 Martin Jambor <mjambor@suse.cz>
19721 * ipa-prop.h (struct ipa_node_params): Updated comment.
19722 (struct ipa_edge_args): Likewise.
19723 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
19725 2010-07-22 Martin Jambor <mjambor@suse.cz>
19727 * cgraphunit.c (verify_edge_count_and_frequency): New function.
19728 (verify_cgraph_node): Verify frequencies of indirect edges.
19729 * tree-inline.c (tree_function_versioning): Update frequencies of
19732 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19735 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
19736 Set *arm_rev to be predicable.
19738 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
19740 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
19741 (LINK_COMMAND_SPEC_A): New.
19743 (DSYMUTIL_SPEC): New.
19744 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
19745 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
19747 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
19749 * calls.c (load_register_parameters): Move check for zero
19750 sized items so that only the call to
19751 mem_overlaps_already_clobbered_arg_p () is protected.
19753 2010-07-22 Jan Hubicka <jh@suse.cz>
19755 * ipa-pure-const.c (varying_state): Break out from ...
19756 (get_function_state): ... here; always return varying_state
19757 when state would be NULL otherwise.
19758 (remove_node_data): Do not free varying state.
19760 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19763 PR middle-end/45009
19764 * postreload.c: Include "target.h".
19765 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
19767 (fixup_debug_insns): Don't copy the rtx.
19768 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
19769 Don't copy when replacing. Call fixup_debug_insns in the case where
19770 we merged one add with another.
19771 (reload_combine_recognize_pattern): Fail if there aren't any uses.
19772 Try harder to determine whether we're picking a valid index register.
19773 Don't set store_ruid for an insn we're going to scan in the
19775 (reload_combine): Remove unused code.
19776 (reload_combine_note_use): When updating use information for
19777 an old insn, ignore a use that occurs after store_ruid.
19778 * Makefile.in (postreload.o): Update dependencies.
19780 * function.c (record_hard_reg_sets): Restrict the previous change
19781 to cases where the incoming nominal mode is the same as the
19782 incoming promoted mode and everything happens in MODE_INT.
19784 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19787 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
19788 ASM_OPERANDS_OUTPUT_IDX.
19789 (adjust_insn): For inline asm with multiple sets ensure first
19790 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
19793 2010-07-21 Richard Henderson <rth@redhat.com>
19795 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
19796 comparison for avoiding xmm register saves. Emit the xmm register
19798 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
19799 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
19800 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
19801 Remove patterns and the associated splitters.
19803 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
19805 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
19806 and imagine parts of a complex, so that they can have the same
19807 base and fall into the same group.
19809 2010-07-21 Richard Guenther <rguenther@suse.de>
19812 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
19813 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
19814 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
19816 2010-07-21 Martin Jambor <mjambor@suse.cz>
19818 PR tree-optimization/44900
19819 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
19820 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
19822 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
19824 PR middle-end/44738
19825 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
19827 2010-07-21 Richard Guenther <rguenther@suse.de>
19829 PR middle-end/45013
19830 * tree-ssa.c (useless_type_conversion_p): Dispatch to
19831 gimple_types_compatible_p only when in lto.
19832 * gimple.c (gimple_types_compatible_p): Use canonical types
19833 to speed up comparison.
19835 2010-07-21 Richard Guenther <rguenther@suse.de>
19837 * tree-flow.h (referenced_var): Move define ...
19838 * tree-flow-inline.h (referenced_var): ... here as an inline
19839 function. Assert here ...
19840 * tree-dfa.c (referenced_var_lookup): ... instead of here.
19841 * tree-ssa.c (maybe_optimize_var): Check if the variable
19842 is in referenced vars.
19843 (execute_update_addresses_taken): Remove old broken check.
19844 * gimple-pretty-print.c (pp_points_to_solution): Use
19845 referenced_var_lookup.
19846 * tree-into-ssa.c (dump_decl_set): Likewise.
19848 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19851 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
19852 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
19855 2010-07-20 Richard Henderson <rth@redhat.com>
19857 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
19859 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19861 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
19862 computing the sum of the stack pointer and a large constant.
19863 * config/arm/constraints.md (M): Remove superfluous parentheses.
19864 (Pc): New constraint.
19866 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19869 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
19870 operand's type if exp is tcc_unary class tree.
19872 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19874 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
19875 Reverse sense of if_then_else condition.
19877 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19879 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
19880 * config/rs6000/rs6000.c (rs6000_override_options): Set
19881 rs6000_block_move_inline_limit appropriately.
19882 (expand_block_move): Use rs6000_block_move_inline_limit.
19883 * doc/invoke.texi (mblock-move-inline-limit): Document.
19885 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19887 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
19888 FROM and TO. All callers changed. Don't look for tracked uses,
19889 just scan the RTL for DEBUG_INSNs and substitute.
19890 (reload_combine_recognize_pattern): Call fixup_debug_insns.
19891 (reload_combine): Ignore DEBUG_INSNs.
19893 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19895 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
19899 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
19900 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
19901 instead of the result's type.
19903 2010-07-20 Richard Guenther <rguenther@suse.de>
19905 PR tree-optimization/44977
19906 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
19909 2010-07-20 Richard Guenther <rguenther@suse.de>
19911 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
19912 (lto_symtab_merge_decls_2): Likewise.
19913 * gimple.h (gimple_types_compatible_p): Declare.
19914 * gimple.c (gimple_queue_type_fixup): Remove.
19915 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
19916 (gimple_compatible_complete_and_incomplete_type_p): New function.
19917 (gimple_types_compatible_p): Adjust.
19918 (gimple_register_type): Remove type fixup code.
19919 (print_gimple_types_stats): Adjust.
19920 (free_gimple_type_tables): Likewise.
19921 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
19922 * tree-ssa.c (useless_type_conversion_p): Likewise.
19924 2010-07-20 Richard Guenther <rguenther@suse.de>
19926 PR middle-end/44971
19927 PR middle-end/44988
19928 * tree-ssa.c (maybe_optimize_var): New function split out from ...
19929 (execute_update_addresses_taken): ... here.
19930 (non_rewritable_mem_ref_base): Likewise.
19931 (execute_update_addresses_taken): Do not iterate over all referenced
19932 vars but just all local decls and parms.
19933 Properly check call and asm arguments and rewrite call arguments.
19935 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
19937 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
19939 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
19941 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
19943 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
19945 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
19947 * gengtype.c (start_root_entry): New function, split out from
19948 write_root. Check whether V is null and raise an error if so.
19949 (write_field_root): Check for V being null. Don't raise an error here;
19950 set V to null instead.
19951 (write_root): Update comment above function. Use start_root_entry.
19953 2010-07-19 Xinliang David Li <davidxl@google.com>
19956 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
19958 (find_uninit_use): Add dump.
19959 (is_use_properly_guarded): Ditto.
19960 (warn_uninitialized_phi): Ditto.
19961 (execute_late_warn_uninitialized): Ditto.
19963 2010-07-19 Richard Guenther <rguenther@suse.de>
19965 PR middle-end/44941
19966 * expr.c (emit_block_move_hints): Move zero size check first.
19967 Move asserts to more useful places.
19968 * calls.c (load_register_parameters): Check for zero size.
19970 2010-07-19 Richard Henderson <rth@redhat.com>
19972 * tree-optimize.c (execute_all_early_local_passes): New. Change
19973 cgraph_state here ...
19974 (execute_early_local_optimizations): ... not here. Remove.
19975 (pass_early_local_passes, pass_all_early_optimizations): Update.
19977 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
19979 * postreload.c (reload_combine_closest_single_use): Ignore the
19980 number of uses for DEBUG_INSNs.
19981 (fixup_debug_insns): New static function.
19982 (reload_combine_recognize_const_pattern): Use it. Don't let the
19983 main loop be affected by DEBUG_INSNs.
19984 Really disallow moving adds past a jump insn.
19985 (reload_combine_recognize_pattern): Don't update use_ruid here.
19986 (reload_combine_note_use): Do it here.
19987 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
19989 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
19991 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
19993 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
19995 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
19997 * config/i386/darwin.h: Define darwin_emit_branch_islands.
19998 (TARGET_MACHO_BRANCH_ISLANDS): New.
19999 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
20000 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
20002 * config/i386/i386.c (output_pic_addr_const): Do not emit
20003 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
20004 (x86_output_mi_thunk): Adjust symbol creation.
20005 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
20006 Remove out of date comment.
20007 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
20008 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
20009 (DARWIN_GENERATE_ISLANDS): Ditto.
20010 (output_call): Do not emit branch islands unless
20011 darwin_emit_branch_islands is set.
20012 * config/darwin.c: Declare darwin_emit_branch_islands.
20013 (machopic_indirect_data_reference): Do not emit unless
20014 darwin_emit_branch_islands is set.
20015 (darwin_override_options): Set darwin_emit_branch_islands
20016 where it is needed.
20017 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
20019 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20021 * doc/sourcebuild.texi (Effective-Target Keywords): Document
20022 sse_runtime, sse2_runtime.
20024 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
20026 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
20027 low half of a single-register SCmode return value before ORing
20028 it with the high half.
20029 * config/mips/mips16.S (MERGE_GPRf): Likewise.
20031 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20034 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
20037 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
20040 * postreload.c (reload_cse_move2add): Return bool, true if anything.
20041 changed. All callers changed.
20042 (move2add_use_add2_insn): Likewise.
20043 (move2add_use_add3_insn): Likewise.
20044 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
20046 (RELOAD_COMBINE_MAX_USES): Bump to 16.
20047 (last_jump_ruid): New static variable.
20048 (struct reg_use): New members CONTAINING_MEM and RUID.
20049 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
20050 (reload_combine_split_one_ruid, reload_combine_split_ruids,
20051 reload_combine_purge_insn_uses, reload_combine_closest_single_use
20052 reload_combine_purge_reg_uses_after_ruid,
20053 reload_combine_recognize_const_pattern): New static functions.
20054 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
20055 is true for our reg and that we have available index regs.
20056 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
20057 callers changed. Use them to initialize fields in struct reg_use.
20058 (reload_combine): Initialize last_jump_ruid. Be careful when to
20059 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
20060 Call reload_combine_recognize_const_pattern.
20061 (reload_combine_note_store): Update REAL_STORE_RUID field.
20063 2010-07-16 Jason Merrill <jason@redhat.com>
20065 * Makefile.in (opts-common.o): Depend on options.h.
20067 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
20069 * tree.c (build_common_builtin_nodes): Use build_function_type_list
20070 instead of build_function_type.
20071 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
20072 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20074 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
20076 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
20078 (rs6000_emit_int_cmove): Use function pointers for insn generation.
20079 Don't force values into registers unnecessarily.
20080 (output_isel): Assert that we're not given conditions we can't handle.
20081 Delete corresponding code.
20082 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
20083 scc_comparison_operator constraint. Permit 0 for the consequent
20084 operand. Permit any GPR for the alternative operand.
20085 (isel_unsigned_<mode>): Likewise.
20087 2010-07-16 Jakub Jelinek <jakub@redhat.com>
20090 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
20091 argument to const_tree.
20092 * config/i386/i386.c (function_arg_advance): If padding needs to be
20093 inserted before argument, increment cum->words by number of padding
20095 (contains_aligned_value_p): Change argument to const_tree.
20096 (ix86_function_arg_boundary): Change second argument to const_tree.
20098 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
20101 * function.c (record_hard_reg_sets): New static function.
20102 (assign_parm_setup_reg): If an optab for extending exists and the
20103 generated code clobbbers no hard regs, emit the insn directly and
20104 create a REG_EQUIV note.
20106 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
20108 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
20110 * c-typeck.c (push_init_level): Likewise.
20111 (process_init_element): Likewise.
20113 2010-07-15 Anatoly Sokolov <aesok@post.ru>
20115 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
20116 (integer_three_node): Add.
20117 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
20118 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
20119 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
20120 of call build_int_cst.
20121 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
20122 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
20123 (find_interesting_uses_address): Ditto.
20124 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
20125 * tree-eh.c (lower_eh_constructs_2): Ditto.
20126 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
20127 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
20128 * expmed.c (expand_divmod): Ditto.
20129 * tree-mudflap.c (mx_register_decls): Ditto.
20130 * varasm.c (array_size_for_constructor): Ditto.
20131 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
20132 * c-parser.c (c_parser_postfix_expression): Ditto.
20134 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
20136 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
20137 New static variables.
20138 (reload_combine_recognize_pattern): New static function, broken out
20140 (reload_combine): Use it. Only initialize first_index_reg and
20141 last_index_reg once.
20143 2010-07-15 Richard Henderson <rth@redhat.com>
20145 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
20148 2010-07-15 Jan Hubicka <jh@suse.cz>
20150 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
20151 comdats for broken gold.
20152 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
20154 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
20156 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
20158 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
20160 * tree.h (DECL_CHAIN): Define.
20161 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
20162 * c-decl.c: Likewise.
20163 * c-parser.c: Likewise.
20164 * c-typeck.c: Likewise.
20165 * cfgexpand.c: Likewise.
20166 * cgraph.c: Likewise.
20167 * cgraphunit.c: Likewise.
20168 * combine.c: Likewise.
20169 * config/alpha/alpha.c: Likewise.
20170 * config/arm/arm.c: Likewise.
20171 * config/frv/frv.c: Likewise.
20172 * config/i386/i386.c: Likewise.
20173 * config/i386/winnt-cxx.c: Likewise.
20174 * config/ia64/ia64.c: Likewise.
20175 * config/iq2000/iq2000.c: Likewise.
20176 * config/mep/mep.c: Likewise.
20177 * config/mips/mips.c: Likewise.
20178 * config/pa/som.h: Likewise.
20179 * config/rs6000/rs6000.c: Likewise.
20180 * config/s390/s390.c: Likewise.
20181 * config/sh/sh.c: Likewise.
20182 * config/sh/symbian-cxx.c: Likewise.
20183 * config/sparc/sparc.c: Likewise.
20184 * config/spu/spu.c: Likewise.
20185 * config/stormy16/stormy16.c: Likewise.
20186 * config/vxworks.c: Likewise.
20187 * config/xtensa/xtensa.c: Likewise.
20188 * coverage.c: Likewise.
20189 * dbxout.c: Likewise.
20190 * dwarf2out.c: Likewise.
20191 * emit-rtl.c: Likewise.
20192 * expr.c: Likewise.
20193 * function.c: Likewise.
20194 * gimple-low.c: Likewise.
20195 * gimple-pretty-print.c: Likewise.
20196 * gimplify.c: Likewise.
20197 * integrate.c: Likewise.
20198 * ipa-inline.c: Likewise.
20199 * ipa-prop.c: Likewise.
20200 * ipa-split.c: Likewise.
20201 * ipa-struct-reorg.c: Likewise.
20202 * ipa-type-escape.c: Likewise.
20203 * langhooks.c: Likewise.
20204 * lto-cgraph.c: Likewise.
20205 * omp-low.c: Likewise.
20206 * stor-layout.c: Likewise.
20207 * tree-cfg.c: Likewise.
20208 * tree-complex.c: Likewise.
20209 * tree-dfa.c: Likewise.
20210 * tree-dump.c: Likewise.
20211 * tree-inline.c: Likewise.
20212 * tree-mudflap.c: Likewise.
20213 * tree-nested.c: Likewise.
20214 * tree-object-size.c: Likewise.
20215 * tree-pretty-print.c: Likewise.
20216 * tree-sra.c: Likewise.
20217 * tree-ssa-live.c: Likewise.
20218 * tree-ssa-loop-niter.c: Likewise.
20219 * tree-ssa-math-opts.c: Likewise.
20220 * tree-ssa-reassoc.c: Likewise.
20221 * tree-ssa-sccvn.c: Likewise.
20222 * tree-ssa-structalias.c: Likewise.
20223 * tree-tailcall.c: Likewise.
20224 * tree-vrp.c: Likewise.
20225 * tree.c: Likewise.
20226 * var-tracking.c: Likewise.
20227 * varasm.c: Likewise.
20229 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20232 * config/spu/spu.c (spu_expand_builtin_1): Allow references
20233 (as well as pointers) as argument to mask_for_load builtins.
20235 2010-07-15 Richard Guenther <rguenther@suse.de>
20237 PR tree-optimization/44946
20238 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
20239 with accessing only padding properly.
20241 2010-07-15 Jan Hubicka <jh@suse.cz>
20243 * ipa.c (function_and_variable_visibility): Variables marked as used
20244 should not be localized.
20246 2010-07-15 Jan Hubicka <jh@suse.cz>
20248 * cgraph.c: Include lto-streamer.h
20249 (change_decl_assembler_name): Work when assembler name hash is at place.
20250 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
20251 be sure to rename it to avoid name clash.
20252 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
20253 Localize hidden symbols only when locally defined.
20255 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
20257 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
20259 2010-07-15 Magnus Granberg <zorry@gentoo.org>
20260 Kevin F. Quinn <kevquinn@gentoo.org>
20262 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
20263 * common.opt: Add -Wtrampolines.
20264 * doc/invoke.texi: Add -Wtrampolines.
20266 2010-07-15 Jie Zhang <jie@codesourcery.com>
20268 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
20269 cortex_a8_issue_ls.
20271 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
20273 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
20274 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
20276 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20278 * config/spu/spu.c (reg_names): Remove prototype.
20279 (call_used_regs): Likewise.
20281 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
20283 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
20284 "unused" with attribute "used".
20285 (__JCR_END__): Likewise.
20286 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
20288 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
20290 2010-07-14 Richard Guenther <rguenther@suse.de>
20292 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
20293 (maybe_fixup_decls): Likewise.
20294 (input_gimple_stmt): Do not fixup anything.
20295 * lto-streamer-out.c (output_gimple_stmt): Make sure all
20296 non-automatic variable uses are wrapped inside a MEM_REF.
20298 2010-07-14 Richard Henderson <rth@redhat.com>
20300 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
20302 * varasm.c (assemble_variable): Remove early exit for functions;
20303 assert that we're given a variable.
20305 2010-07-14 Jie Zhang <jie@codesourcery.com>
20307 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
20308 cortex_a8_default when neon_type is not none.
20310 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
20312 * lower-subreg.c (subreg_context): New static bitmap.
20313 (decompose_multiword_subregs): Allocate and free it.
20314 (find_decomposable_subregs): Set a bit in it for a register that
20315 occurs in a subreg that changes mode but not size.
20316 (can_decompose_p): Test it instead of non_decomposable_context.
20318 2010-07-14 Richard Guenther <rguenther@suse.de>
20320 PR tree-optimization/44824
20321 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
20322 is_gimple_mem_ref_addr.
20323 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
20324 non-decl_address_invariant_p addresses.
20326 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
20328 * reload.c (find_reloads): Revert code to penalize small register
20329 classes that was brought in with the IRA merge.
20331 2010-07-14 Richard Guenther <rguenther@suse.de>
20333 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
20334 as base of ARRAY_REFs.
20336 2010-07-14 Richard Guenther <rguenther@suse.de>
20338 PR middle-end/44930
20339 * tree-pretty-print.c (do_niy): Do not print a newline.
20341 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
20343 * ira-int.h (struct ira_object): New.
20344 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
20345 (struct ira_allocno): Remove members min, max,
20346 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
20347 conflict_allocnos_num and conflict_vec_p. Add new member object.
20348 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
20349 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
20350 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
20351 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
20352 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
20353 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
20354 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
20355 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
20356 an ira_object_t rather than ira_allocno_t. All uses changed.
20357 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
20358 contains a vector of ira_object_t; all uses changed.
20359 (ira_objects_num): Declare variable.
20360 (ira_create_allocno_object): Declare function.
20361 (ira_conflict_vector_profitable_p): Adjust prototype.
20362 (ira_allocate_conflict_vec): Renamed from
20363 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
20364 (ira_allocate_object_conflicts): Renamed from
20365 ira_allocate_allocno_conflicts; first arg now ira_object_t.
20366 (struct ira_object_iterator): New.
20367 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
20368 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
20369 to conflict_vec_p. All uses changed.
20370 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
20371 Changed to take into account that conflicts are now tracked for
20373 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
20374 Args changed to accept ira_object_t. All uses changed.
20375 (allocnos_conflict_p): New static function.
20376 (collected_conflict_objects): Renamed from collected_allocno_objects;
20377 now a vector of ira_object_t. All uses changed.
20378 (build_conflict_bit_table): Changed to take into account that
20379 conflicts are now tracked for objects.
20380 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
20381 (print_allocno_conflicts, ira_build_conflicts): Likewise.
20382 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
20383 setup_allocno_left_conflicts_size, allocno_reload_assign,
20384 fast_allocation): Likewise.
20385 * ira-lives.c (make_hard_regno_born, make_allocno_born)
20386 process_single_reg_class_operands, process_bb_node_lives): Likewise.
20387 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
20389 * ira-build.c (ira_objects_num): New variable.
20390 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
20391 contains a vector of ira_object_t; all uses changed.
20392 (ira_object_id_map_vec): Corresponding change.
20393 (object_pool): New static variable.
20394 (initiate_allocnos): Initialize it.
20395 (finish_allocnos): Free it.
20396 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
20398 (ira_create_allocno): Don't set members that were removed.
20399 (ira_set_allocno_cover_class): Don't change conflict hard regs.
20400 (merge_hard_reg_conflicts): Changed to take into account that
20401 conflicts are now tracked for objects.
20402 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
20403 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
20404 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
20405 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
20406 setup_min_max_conflict_allocno_ids, ): Likewise.
20407 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
20408 to ira_object_t; all callers changed.
20409 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
20410 to ira_object_t, all callers changed.
20411 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
20412 to ira_object_t, all callers changed.
20413 (conflict_check, curr_conflict_check_tick): Renamed from
20414 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
20416 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
20417 arg changed to ira_object_t, all callers changed.
20418 (create_cap_allocno): Call ira_create_allocno_object.
20419 (finish_allocno): Free the corresponding object.
20420 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
20421 callers changed. Adjusted for dealing with objects.
20422 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
20423 dealing with objects.
20424 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
20426 * ira-int.h (struct live_range): Rename allocno member to object
20427 and change type to ira_object_t.
20428 (struct ira_object): New member live_ranges.
20429 (struct ira_allocno): Remove member live_ranges.
20430 (ALLOCNO_LIVE_RANGES): Remove.
20431 (OBJECT_LIVE_RANGES): New macro.
20432 (ira_create_live_range, ira_copy_live_range_list,
20433 ira_merge_live_range_list, ira_live_ranges_intersect_p,
20434 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
20435 * ira-build.c (ira_create_object): Initialize live ranges here.
20436 (ira_create_allocno): Not here.
20437 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
20438 changed to ira_object_t, all callers changed.
20439 (copy_live_range): Rename from copy_allocno_live_range, all callers
20441 (ira_copy_live_range_list): Rename from
20442 ira_copy_allocno_live_range_list, all callers changed.
20443 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
20444 all callers changed.
20445 (ira_live_ranges_intersect_p): Rename from
20446 ira_allocno_live_ranges_intersect_p, all callers changed.
20447 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
20449 (ira_finish_live_range_list): Rename from
20450 ira_finish_allocno_live_range_list, all callers changed.
20451 (change_object_in_range_list): Rename from change_allocno_in_range_list,
20452 last arg changed to ira_object_t, all callers changed.
20453 (finish_allocno): Changed to expect live ranges in the allocno's object.
20454 (move_allocno_live_ranges, copy_allocno_live_ranges,
20455 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
20456 ira_flattening, ira_build): Likewise.
20457 * ira-color.c (allocnos_have_intersected_live_ranges_p,
20458 slot_coalesced_allocno_live_ranges_intersect,
20459 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
20460 * ira-conflicts.c (build_conflict_bit_table): Likewise.
20461 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
20462 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
20463 make_allocno_dead, create_start_finish_chains,
20464 remove_some_program_points_and_update_live_ranges,
20465 ira_debug_live_range_list): Likewise.
20467 * ira-int.h (ira_object_conflict_iterator): Rename from
20468 ira_allocno_conflict_iterator.
20469 (ira_object_conflict_iter_init): Rename from
20470 ira_allocno_conflict_iter_init, second arg changed to
20471 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
20472 FOR_EACH_ALLOCNO_CONFLICT.
20473 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
20474 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
20475 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
20476 * ira-conflicts.c (print_allocno_conflicts): Likewise.
20478 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
20481 * tree-dump.c (dump_options): Add enumerate_locals entry.
20482 Add TDF_NOID exclusion to all entry.
20483 * tree-dump.h (dump_enumerated_decls): Declare.
20484 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
20485 Don't display type uid.
20486 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
20487 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
20488 * tree-ssa-live.c: Include gimple.h.
20489 (numbered_tree_d): New struct.
20490 (numbered_tree): New typedef.
20491 (DEF_VEC_O (numbered_tree): New.
20492 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
20493 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
20494 (dump_enumerated_decls): Likewise.
20495 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
20496 debug info and flag_dump_final_insns, call dump_enumerated_decls.
20497 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
20498 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
20500 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
20502 * expmed.h (MAX_BITS_PER_WORD): Move to...
20503 * defaults.h (MAX_BITS_PER_WORD): ...here.
20505 2010-07-13 DJ Delorie <dj@redhat.com>
20507 * config/h8300/h8300.c (h8300_init_once): Default to
20508 -fstrict_volatile_bitfields.
20510 * config/sh/sh.c (sh_override_options): Default to
20511 -fstrict_volatile_bitfields.
20513 * config/rx/rx.c (rx_option_override): New.
20515 * config/m32c/m32c.c (m32c_override_options): Default to
20516 -fstrict_volatile_bitfields.
20518 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
20520 * tree.h (build_function_call_expr): Delete.
20521 (build_call_expr_loc_array): New function.
20522 (build_call_expr_loc_vec): New function.
20523 * tree-flow.h (struct omp_region): Change type of ws_args field
20525 * builtins.c (build_function_call_expr): Delete.
20526 (build_call_expr_loc_array): New function.
20527 (build_call_expr_loc): Call it. Use XALLOCAVEC.
20528 (build_call_expr): Likewise.
20529 (build_call_expr_loc_vec): New function.
20530 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
20531 build_function_call_expr.
20532 * expr.c (emutls_var_address): Likewise.
20533 * varasm.c (emutls_common_1): Likewise.
20534 * omp-low.c (expand_omp_atomic_mutex): Likewise.
20535 (expand_omp_taskreg): Adjust for new type of region->ws_args.
20536 (get_ws_args_for): Return a VEC instead of a tree.
20537 (expand_parallel_call): Call build_call_expr_loc_vec instead of
20538 build_function_call_expr.
20539 * stor-layout.c (self_referential_size): Likewise.
20541 2010-07-13 Jakub Jelinek <jakub@redhat.com>
20544 * recog.c (constrain_operands): Allow side-effects in memory
20545 operands if either < or > constraint is used, rather than if
20546 both < and > is used.
20548 2010-07-13 Richard Guenther <rguenther@suse.de>
20550 PR middle-end/44911
20551 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
20552 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
20555 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
20558 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
20559 to variable emited.
20560 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
20561 * config/sh/sh.md (symGOT_load): Likewise.
20562 (symDTPOFF2reg): Likewise.
20563 (symTPOFF2reg): Likewise.
20565 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20567 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
20568 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
20570 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20572 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
20574 Find ucontext_t * on Solaris 11.
20575 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
20576 Handle new Solaris 11 __sighndlr patterns.
20578 2010-07-13 Jakub Jelinek <jakub@redhat.com>
20581 * vec.h (VEC_block_remove): Fix comment.
20582 * tree-ssa-live.c (remove_unused_locals): Don't use
20583 VEC_unordered_remove on local_decls, instead replace a single
20584 vector element in each iteration if at least one element had
20585 to be removed and VEC_truncate at the end.
20586 * omp-low.c (expand_omp_taskreg): Likewise.
20588 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
20590 * c-decl.c (finish_function): Fix typo in comment.
20592 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
20595 * postreload.c (move2add_use_add3_insn): Silence gcc warning
20598 2010-07-12 Jakub Jelinek <jakub@redhat.com>
20600 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
20601 (simplify_stmt_using_ranges): Use it.
20603 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20605 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
20606 member. Do not mark as GTY(()).
20607 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
20608 (spu_builtin_decls): New static variable.
20609 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
20610 (spu_init_builtins): Likewise.
20611 (spu_builtin_mul_widen_even): Likewise.
20612 (spu_builtin_mul_widen_odd): Likewise.
20613 (spu_builtin_mask_for_load): Likewise.
20614 (spu_builtin_vec_perm): Likewise.
20615 * config/spu/spu-c.c: Include "target.h".
20616 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
20617 of using spu_builtins[].fndecl.
20619 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20621 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
20622 imply -minterlink-mips16.
20624 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20626 * config/mips/mips.h (mips16_globals): Declare.
20627 (SWITCHABLE_TARGET): Define.
20628 * config/mips/mips.c: Include target-globals.h.
20629 (mips16_globals): New variable.
20630 (mips_set_mips16_mode): Use save_target_globals and
20631 restore_target_globals instead of target_reinit.
20633 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20635 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
20636 to say that the function can be called more than once.
20637 * target-globals.c (save_target_globals): Call init_reg_sets.
20639 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20641 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
20642 * bb-reorder.h: New file.
20643 * bb-reorder.c (default_target_bb_reorder): New variable.
20644 (this_target_bb_reorder): New conditional variable.
20645 (uncond_jump_length): Redefine as a macro.
20646 * target-globals.h (this_target_bb_reorder): Declare.
20647 (target_globals): Add a bb_reorder field.
20648 (restore_target_globals): Copy the bb_reorder field to
20649 this_target_bb-reorder.
20650 * target-globals.c: Include bb-reorder.h.
20651 (default_target_globals): Initialize the bb_reorder field.
20652 (save_target_globals): Likewise.
20654 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20656 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
20657 * gcse.h: New file.
20658 * gcse.c: Include gcse.h.
20659 (default_target_gcse): New variable.
20660 (this_target_gcse): New conditional variable.
20661 (can_copy): Redefine as a macro.
20662 (can_copy_init_p): New macro.
20663 (can_copy_p): Remove can_copy_init_p.
20664 * target-globals.h (this_target_gcse): Declare.
20665 (target_globals): Add a gcse field.
20666 (restore_target_globals): Copy the gcse field to this_target_gcse.
20667 * target-globals.c: Include gcse.h.
20668 (default_target_globals): Initialize the gcse field.
20669 (save_target_globals): Likewise.
20671 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20673 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
20674 and x_ira_prohibited_mode_move_regs_initialized_p.
20675 (ira_prohibited_mode_move_regs): Redefine as a macro.
20676 * ira.c (ira_prohibited_mode_move_regs): Delete.
20677 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
20679 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20681 * reload.h (target_reload): Add x_cached_reg_save_code and
20682 x_cached_reg_restore_code.
20683 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
20684 Redefine as macros.
20686 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20688 * Makefile.in (target-globals.o): Depend on builtins.h.
20689 * builtins.h: New file.
20690 * builtins.c: Include builtins.h.
20691 (default_target_builtins): New variable.
20692 (this_target_builtins): New conditional variable.
20693 (apply_args_mode, apply_result_mode): Redefine as macros.
20694 * target-globals.h (this_target_builtins): Declare.
20695 (target_globals): Add a builtins field.
20696 (restore_target_globals): Copy the builtins field to
20697 this_target_builtins.
20698 * target-globals.c: Include builtins.h.
20699 (default_target_globals): Initialize the builtins field.
20700 (save_target_globals): Likewise.
20702 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20704 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
20705 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
20707 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
20708 (alg_hash, alg_hash_used_p): New macros.
20709 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
20710 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
20711 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
20713 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20715 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
20716 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
20717 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
20718 (this_op_costs, costs_classes): Redefine as macros.
20719 (record_reg_classes): Don't take op_costs as a parameter.
20720 (record_operand_costs): Likewise. Update calls to record_reg_classes.
20721 (scan_one_insn): Update call to record_operand_costs.
20723 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20725 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
20726 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
20727 (target_ira_int): New structure.
20728 (default_target_ira_int): Declare.
20729 (this_target_ira_int): Declare as a variable or define as a macro.
20730 (ira_reg_mode_hard_regset, ira_register_move_cost)
20731 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
20732 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
20733 (prohibited_class_mode_regs, ira_important_classes_num)
20734 (ira_important_classes, ira_reg_class_intersect)
20735 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
20736 (ira_reg_class_union): Redefine as macros.
20737 * ira.h (target_ira): New structure.
20738 (default_target_ira): Declare.
20739 (this_target_ira): Declare as a variable or define as a macro.
20740 (ira_available_class_regs, ira_hard_regno_cover_class)
20741 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
20742 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
20743 (ira_class_hard_regs_num): Redefine as macros.
20744 * ira.c (default_target_ira, default_target_ira_int): New variables.
20745 (this_target_ira, this_target_ira_int): New conditional variables.
20746 (ira_reg_mode_hard_regset, ira_memory_move_cost)
20747 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
20748 (ira_class_subset_p): Delete.
20749 (no_unit_alloc_regs): Redefine as a macro.
20750 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
20751 (ira_class_hard_regs_num, ira_class_hard_reg_index)
20752 (ira_available_class_regs): Delete.
20753 (alloc_reg_class_subclasses): Redefine as a macro.
20754 (ira_reg_class_cover_size, ira_reg_class_cover)
20755 (ira_important_classes_num, ira_important_classes)
20756 (ira_important_class_nums, ira_class_translate): Delete.
20757 (cover_class_order): Document the variable's lifetime.
20758 (reorder_important_classes): Don't set ira_important_class_nums.
20759 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
20760 (ira_reg_class_super_classes, ira_reg_class_union)
20761 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
20763 (setup_reg_class_nregs): Don't set ira_max_regs.
20764 (prohibited_class_mode_regs): Delete.
20765 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
20766 (target_globals): Add ira and ira_int fields.
20767 (restore_target_globals): Copy the ira field to this_target_ira
20768 and the ira_int field to this_target_ira_int.
20769 * target-globals.c: Include ira-int.h.
20770 (default_target_globals): Initialize the ira and ira_int fields.
20771 (save_target_globals): Likewise.
20773 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20775 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
20776 * cfgloop.h (target_cfgloop): New structure.
20777 (default_target_cfgloop): Declare.
20778 (this_target_cfgloop): Declare as a variable or define as a macro.
20779 (target_avail_regs, target_clobbered_regs, target_res_regs)
20780 (target_reg_cost, target_spill_cost): Redefine as macros.
20781 * cfgloopanal.c (default_target_cfgloop): New variable.
20782 (this_target_cfgloop): New conditional variable.
20783 (target_avail_regs, target_clobbered_regs, target_res_regs)
20784 (target_reg_cost, target_spill_cost): Delete.
20785 * target-globals.h (this_target_cfgloop): Declare.
20786 (target_globals): Add a cfgloop field.
20787 (restore_target_globals): Copy the cfgloop field to
20788 this_target_cfgloop.
20789 * target-globals.c: Include cfgloop.h.
20790 (default_target_globals): Initialize the cfgloop field.
20791 (save_target_globals): Likewise.
20793 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20795 * regs.h (target_regs): Add x_direct_load, x_direct_store and
20796 x_float_extend_from_mem.
20797 (direct_load, direct_store, float_extend_from_mem): New macros.
20798 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
20800 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20802 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
20803 (target-globals.o): Depend on $(LIBFUNCS_H).
20804 * libfuncs.h: Include hashtab.h.
20805 (libfunc_entry): Moved from optabs.c.
20806 (target_libfuncs): New structure.
20807 (default_target_libfuncs): Declare.
20808 (this_target_libfuncs): Declare as a variable or define as a macro.
20809 (libfunc_table): Redefine as a macro.
20810 * optabs.c (default_target_libfuncs): New variable.
20811 (this_target_libfuncs): New conditional variable.
20812 (libfunc_table): Delete.
20813 (libfunc_entry): Moved to optabs.h.
20814 (libfunc_hash): Redefine as a macro.
20815 (hash_libfunc, eq_libfunc): Fix comments.
20816 (init_optabs): Use libfunc_hash to detect cases where the function
20817 has already been called. Clear the hash table instead of
20819 * target-globals.h (this_target_libfuncs): Declare.
20820 (target_globals): Add a libfuncs field.
20821 (restore_target_globals): Copy the libfuncs field to
20822 this_target_libfuncs.
20823 * target-globals.c: Include libfuncs.h.
20824 (default_target_globals): Initialize the libfuncs field.
20825 (save_target_globals): Likewise.
20827 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20829 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
20830 in all dependency lists.
20832 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20834 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
20835 * optabs.h (target_optabs): New structure.
20836 (default_target_optabs): Declare.
20837 (this_target_optabs): Declare as a variable or define as a macro.
20838 (optab_table, convert_optab_table, direct_optab_table): Redefine
20840 * optabs.c (default_target_optabs): New variable.
20841 (this_target_optabs): New conditional variable.
20842 (optab_table, convert_optab_table, direct_optab_table): Delete.
20843 * target-globals.h (this_target_optabs): Declare.
20844 (target_globals): Add a optabs field.
20845 (restore_target_globals): Copy the optabs field to
20846 this_target_optabs.
20847 * target-globals.c: Include expr.h and optabs.h.
20848 (default_target_globals): Initialize the optabs field.
20849 (save_target_globals): Likewise.
20851 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20853 * flags.h (target_flagstate): Add x_flag_excess_precision.
20854 (flag_excess_precision): Redefine as a macro.
20855 * toplev.c (flag_excess_precision): Delete.
20857 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20859 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
20860 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
20861 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
20862 (no_caller_save_reg_set): Redefine as a macro.
20863 * reload.h (target_reload): Add x_caller_save_initialized_p and
20865 (caller_save_initialized_p): Redefine as a macro.
20866 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
20867 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
20868 (regno_save_mode): Redefine as a macro.
20870 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20872 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
20873 * expmed.h: New file.
20874 * expmed.c (default_target_costs): New variable.
20875 (this_target_costs): New conditional variable.
20876 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
20877 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
20878 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
20879 * target-globals.h (this_target_expmed): Declare.
20880 (target_globals): Add a expmed field.
20881 (restore_target_globals): Copy the expmed field to
20882 this_target_expmed.
20883 * target-globals.c: Include expmed.h.
20884 (default_target_globals): Initialize the expmed field.
20885 (save_target_globals): Likewise.
20887 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20889 * Makefile.in (target-globals.o): Depend on reload.h.
20890 * reload.h (target_reload): New structure.
20891 (default_target_reload): Declare.
20892 (this_target_reload): Declare as a variable or define as a macro.
20893 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
20894 * reload1.c (default_target_reload): New variable
20895 (this_target_reload): New conditional variable.
20896 (indirect_symref_ok, double_reg_address_ok): Delete.
20897 (spill_indirect_levels): Redefine as a macro.
20898 * target-globals.h (this_target_reload): Declare.
20899 (target_globals): Add a reload field.
20900 (restore_target_globals): Copy the reload field to
20901 this_target_reload.
20902 * target-globals.c: Include hard-reg-set.h.
20903 (default_target_globals): Initialize the reload field.
20904 (save_target_globals): Likewise.
20906 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20908 * rtl.h (target_rtl): Add x_static_reg_base_value.
20909 * alias.c (static_reg_base_value): Redefine as a macro.
20911 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20913 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
20914 (GTFILES): Remove reginfo.c.
20915 * rtl.h (target_rtl): Add x_top_of_stack.
20916 (top_of_stack): New macro.
20917 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
20918 (top_of_stack): Delete.
20920 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20922 * regs.h (target_regs): Add x_hard_regs_of_mode,
20923 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
20924 x_may_move_out_cost and x_last_mode_for_init_move_cost.
20925 (have_regs_of_mode, contains_reg_of_mode, move_cost)
20926 (may_move_in_cost, may_move_out_cost): Redefine as macros.
20927 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
20928 (may_move_in_cost, may_move_out_cost): Delete.
20929 (last_mode_for_init_move_cost): Redefine as a macro.
20931 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20933 * hard-reg-set.h (target_hard_regs): New structure.
20934 (default_target_hard_regs): Declare.
20935 (this_target_hard_regs): Declare as a variable or define as a macro.
20936 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
20937 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
20938 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
20939 (reg_class_size, reg_class_subclasses, reg_class_subunion)
20940 (reg_class_superunion, reg_names): Redefine as macros.
20941 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
20942 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
20943 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
20944 (reg_class_contents, reg_class_size, reg_class_subclasses)
20945 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
20946 (default_target_hard_regs): New variable
20947 (this_target_hard_regs, initial_call_really_used_regs)
20948 (initial_reg_alloc_order): New conditional variables.
20949 (initial_reg_names): New variable.
20950 (init_reg_sets): Assert that initial_call_really_used_regs,
20951 initial_reg_alloc_order and initial_reg_names
20952 are all the same size as their variable counterparts. Use them to
20953 initialize those counterparts.
20954 * target-globals.h (this_target_hard_regs): Declare.
20955 (target_globals): Add a hard_regs field.
20956 (restore_target_globals): Copy the hard_regs field to
20957 this_target_hard_regs.
20958 * target-globals.c: Include hard-reg-set.h.
20959 (default_target_globals): Initialize the hard_regs field.
20960 (save_target_globals): Likewise.
20962 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20964 * Makefile.in (target-globals.o): Depend on $(RTL_H).
20965 * rtl.h (target_rtl): New structure.
20966 (default_target_rtl): Declare.
20967 (this_target_rtl): Declare as a variable or define as a macro.
20968 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
20969 Redefine as macros.
20970 * emit-rtl.c (default_target_rtl): New variable.
20971 (this_target_rtl): New conditional variable.
20972 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
20973 (return_address_pointer_rtx): Delete.
20974 (initial_regno_reg_rtx): New macro.
20975 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
20976 (init_emit_regs): Likewise.
20977 * target-globals.h (this_target_rtl): Declare.
20978 (target_globals): Add a rtl field.
20979 (restore_target_globals): Copy the rtl field to this_target_rtl.
20980 * target-globals.c: Include rtl.h.
20981 (default_target_globals): Initialize the rtl field.
20982 (save_target_globals): Likewise.
20984 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20986 * Makefile.in (target-globals.o): Depend on $(REGS_H).
20987 * regs.h (target_reg_modes): New structure.
20988 (default_target_reg_modes): Declare.
20989 (this_target_reg_modes): Declare as a variable or define as a macro.
20990 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
20991 * reginfo.c (default_target_reg_modes): New variable.
20992 (this_target_reg_modes): New conditional variable.
20993 (hard_regno_nregs, reg_raw_mode): Delete.
20994 * target-globals.h (this_target_regs): Declare.
20995 (target_globals): Add a regs field.
20996 (restore_target_globals): Copy the regs field to this_target_regs.
20997 * target-globals.c: Include regs.h.
20998 (default_target_globals): Initialize the regs field.
20999 (save_target_globals): Likewise.
21001 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
21003 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
21004 * doc/tm.texi: Regenerate.
21005 * Makefile.in (OBJS-common): Add target-globals.o.
21006 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
21007 and target-globals.h.
21008 (target-globals.o): New rule.
21009 (GTFILES): Include $(srcdir)/target-globals.h.
21010 * defaults.h (SWITCHABLE_TARGET): Define.
21011 * gengtype.c (open_base_files): Add target-globals.h to the
21013 * target-globals.h: New file.
21014 * target-globals.c: Likewise.
21016 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
21017 * flags.h (target_flag_state): New structure.
21018 (default_target_flag_state): Declare.
21019 (this_target_flag_state): Declare as a variable or define as a macro.
21020 (align_loops_log): Redefine as a macro.
21021 (align_loops_max_skip, align_jumps_log): Likewise.
21022 (align_jumps_max_skip, align_labels_log): Likewise.
21023 (align_labels_max_skip, align_functions_log): Likewise.
21024 * toplev.c (default_target_flag_state): New variable.
21025 (this_target_flag_state): New conditional variable.
21026 (align_loops_log): Delete.
21027 (align_loops_max_skip, align_jumps_log): Likewise.
21028 (align_jumps_max_skip, align_labels_log): Likewise.
21029 (align_labels_max_skip, align_functions_log): Likewise.
21030 * target-globals.h (this_target_flag_state): Declare.
21031 (target_globals): Add a flag_state field.
21032 (restore_target_globals): Copy the flag_state field to
21033 this_target_flag_state.
21034 * target-globals.c: Include flags.h.
21035 (default_target_globals): Initialize the flag_state field.
21036 (save_target_globals): Likewise.
21038 2010-07-12 Jie Zhang <jie@codesourcery.com>
21040 * postreload.c (reg_symbol_ref[]): New.
21041 (move2add_use_add2_insn): New.
21042 (move2add_use_add3_insn): New.
21043 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
21044 (move2add_note_store): Likewise.
21046 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
21048 PR rtl-optimization/44752
21049 * genautomata.c (main): Don't emit an empty file even if there
21052 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21054 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
21055 ix86_solaris_return_in_memory.
21056 * config/i386-protos.h: Reflect this.
21057 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
21058 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
21060 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
21062 2010-07-12 Jie Zhang <jie@codesourcery.com>
21064 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
21065 align the stack when it's going to be saved.
21067 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21070 * config/host-solaris.c (mmap_fixed): New function.
21071 (sol_gt_pch_get_address): Use it.
21072 (sol_gt_pch_use_address): Likewise.
21074 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21076 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21077 pentiumpro on Solaris 8 and 9/x86.
21078 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
21079 Document SSE/SSE2 support.
21080 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
21082 2010-07-12 Andi Kleen <ak@linux.intel.com>
21084 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
21085 instead of gcc_assert to print better error message for multiple
21088 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
21090 * config/i386/i386.c (ix86_asm_output_function_label): Change format
21091 string placeholder from 0x%x to %#x.
21092 (ix86_code_end): Use putc to output '\n'.
21093 (ix86_print_operand) <case ';'>: Use putc to output ';'.
21095 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
21097 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
21098 in directive -export.
21100 2010-07-10 Anatoly Sokolov <aesok@post.ru>
21102 * reginfo.h (reg_classes_intersect_p): Change arguments type to
21104 * rtl.h (reg_classes_intersect_p): Adjust prototype.
21106 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21108 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
21109 rs6000_memory_move_cost): Remove
21110 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
21111 TARGET_MEMORY_MOVE_COST): Define.
21112 (rs6000_register_move_cost): Make static. Change arguments type from
21113 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
21114 (rs6000_memory_move_cost): Make static. Change arguments type from
21115 'enum reg_class' to reg_class_t.
21117 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
21119 PR middle-end/42505
21120 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
21121 lookup code into....
21122 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
21124 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
21125 * cfgloopanal.c (target_clobbered_regs): Define.
21126 (init_set_costs): Initialize target_clobbered_regs.
21127 (estimate_reg_pressure_cost): Add call_p argument. When true,
21128 adjust the number of available registers to exclude the
21129 call-clobbered registers.
21130 * cfgloop.h (target_clobbered_regs): Declare.
21131 (estimate_reg_pressure_cost): Adjust declaration.
21132 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
21133 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
21134 (determine_set_costs): Dump target_clobbered_regs.
21135 (loop_body_includes_call): New function.
21136 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
21137 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
21138 call_p flag through.
21139 (best_gain_for_invariant): Likewise.
21140 (find_invariants_to_move): Likewise.
21141 (move_single_loop_invariants): Likewise, using already-computed
21144 2010-07-10 Richard Guenther <rguenther@suse.de>
21145 Joern Rennecke <joern.rennecke@embecosm.com>
21148 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
21149 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
21150 unless they have DECL_IGNORED_P set.
21152 2010-07-10 Richard Guenther <rguenther@suse.de>
21155 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
21157 (gimple_types_compatible_p): Similar to pointed-to
21158 types allow and merge a mix of complete and incomplete aggregate.
21159 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
21160 (iterative_hash_gimple_type): Adjust for that.
21162 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
21164 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
21166 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
21169 * config/darwin.c (output_objc_section_asm_op): Save and restore
21170 section when outputting ObjC section list.
21172 2010-07-09 Jan Hubicka <jh@suse.cz>
21174 * lto-streamer-out.c (produce_symtab): Do not write alias
21175 cgraph/varpool nodes.
21177 2010-07-09 Jan Hubicka <jh@suse.cz>
21179 * tree-inline.c (declare_return_variable): Fix ICE while
21180 inlining DECL_BY_VALUE function not in SSA form
21182 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
21184 PR tree-optimization/44576
21185 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
21186 New. Pull out from is_loop_prefetching_profitable to implement
21187 the trip count to ahead ratio heuristic.
21188 (mem_ref_count_reasonable_p): New. Pull out from
21189 is_loop_prefetching_profitable to implement the instruction to
21190 memory reference ratio heuristic. Also consider not reasonable if
21191 the memory reference count is above a threshold (to avoid
21192 explosive compilation time.
21193 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
21194 is_loop_prefetching_profitable to implement the instruction to
21195 prefetch ratio heuristic.
21196 (is_loop_prefetching_profitable): Removed.
21197 (loop_prefetch_arrays): Distribute the cost analysis across the
21198 function to allow early exit of the prefetch analysis.
21199 is_loop_prefetching_profitable is splitted into three functions,
21200 with each one called as early as possible.
21201 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
21202 number of memory references in a loop is considered too many.
21204 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
21206 * reload.c (find_reloads): Don't clear badop if we have a winreg
21207 alternative, but not win, and the class only has fixed regs.
21208 * hard-reg-set.h (class_only_fixed_regs): Declare.
21209 * reginfo.c (class_only_fixed_regs): New array.
21210 (init_reg_sets_1): Initialize it.
21211 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
21212 discourage alternatives using the stack pointer.
21214 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
21216 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
21218 * config/arm/arm.md (cbranchqi4): Fix array size.
21219 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
21220 calculating length.
21222 2010-07-09 Richard Guenther <rguenther@suse.de>
21224 * gimple.c (struct type_fixup_s): New struct and VEC type.
21225 (gimple_register_type_fixups): New static global.
21226 (gimple_queue_type_fixup): New function.
21227 (gimple_types_compatible_p): Queue type fixups instead of
21228 applying them here.
21229 (gimple_register_type): Apply queued fixups for the
21230 canonical type. Empty the type fixup queue.
21232 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
21234 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
21235 * configure: Regenerate.
21236 * config.in: Ditto.
21238 2010-07-09 Jakub Jelinek <jakub@redhat.com>
21239 Denys Vlasenko <dvlasenk@redhat.com>
21240 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21242 PR tree-optimization/28632
21243 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
21244 (extract_range_from_binary_expr): Further optimize
21245 BIT_AND_EXPR and BIT_IOR_EXPR.
21247 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
21249 * tree-if-conv.c (fold_or_predicates): New.
21250 (add_to_predicate_list): Call it.
21252 2010-07-09 Richard Guenther <rguenther@suse.de>
21254 PR middle-end/44890
21255 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
21256 if base is a pointer.
21257 * tree-cfg.c (verify_expr): Update MEM_REF checking.
21259 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21262 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
21263 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
21264 builtin mask for load/store builtins.
21266 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
21268 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
21270 * configure: Regenerate.
21271 * config/i386/i386.c (ix86_print_operand) <case ';'>:
21272 Remove TARGET_MACHO.
21274 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
21276 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
21278 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
21280 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
21282 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
21284 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
21286 * config/picochip/picochip.md (commsTestPort): Emit more
21287 efficient sequence for tstport instruction.
21289 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
21291 * config/i386/i386.c (ix86_veclib_handler): Make static.
21293 2010-07-09 Richard Guenther <rguenther@suse.de>
21295 PR tree-optimization/44852
21296 * tree-ssa-alias.c: Include toplev.h for exact_log2.
21297 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
21299 (indirect_refs_may_alias_p): Likewise.
21300 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
21302 2010-07-09 Richard Guenther <rguenther@suse.de>
21304 PR tree-optimization/44882
21305 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
21307 (vectorizable_load): Likewise.
21309 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
21312 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
21313 All callers changed.
21314 Handle the case when we're called for the epilogue.
21315 (thumb_unexpanded_epilogue): Use it.
21316 (thumb1_expand_epilogue): Likewise.
21318 2010-07-09 Jakub Jelinek <jakub@redhat.com>
21320 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
21321 both ranges are range_int_cst_p with non-negative minimum,
21322 try harder to derive smaller range.
21324 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
21326 * genrecog.c: Include diagnostic-core.h before toplev.h.
21327 * genoutput.c: Likewise.
21328 * genextract.c: Likewise.
21329 * genautomata.c: Likewise.
21330 * genemit.c: Likewise.
21331 * genpeep.c: Likewise.
21332 * genattrtab.c: Likewise.
21333 * genconditions.c: Likewise.
21334 * genpreds.c: Likewise.
21336 2010-07-08 Andi Kleen <ak@linux.intel.com>
21338 * lto-section-in.c (lto_section_name): Add missing comma.
21340 2010-07-08 Anatoly Sokolov <aesok@post.ru>
21342 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
21343 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
21344 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
21345 (ia64_override_options): Rename to...
21346 (ia64_option_override): ... this one. Make static.
21348 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21350 PR middle-end/44843
21351 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
21352 pointed-to type of the offset in a MEM_REF to compute the alignment.
21354 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
21356 * final.c (final_scan_insn): Replace
21357 TARGET_UNWIND_INFO macro check by unwind_emit
21359 * targhooks.c (default_unwind_emit): Removed.
21360 * targhooks.h (default_unwind_emit): Likewise.
21361 * target.def (unwind_emit): Set default value to NULL.
21363 * config/i386/i386-protos.h (ix86_asm_output_function_label):
21365 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
21366 for NULL fntype argument and allow 64-bit targets.
21367 (ix86_asm_output_function_label): New function.
21368 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
21369 (ix86_handle_fndecl_attribute): Likewise.
21370 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
21371 * doc/doc/tm.texi: Regenerated.
21372 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
21373 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
21374 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
21375 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
21376 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
21377 * config/elfos.h: Likewise.
21378 * config/i386/cygming.h: Likewise.
21379 * config/netbsd-aout.h: Likewise.
21380 * config/openbsd.h: Likewise.
21381 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
21382 by ix86_asm_output_function_label function call.
21383 * varasm.c (assemble_start_function): Use
21384 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
21386 2010-07-08 Jan Hubicka <jh@suse.cz>
21388 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
21390 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
21392 * ipa-cp.c (ipcp_estimate_growth): Use it.
21393 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
21396 2010-07-08 Jan Hubicka <jh@suse.cz>
21398 * tree-inline.c (declare_return_variable): Allocate annotation for new
21401 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
21403 PR tree-optimization/44710
21404 * tree-if-conv.c (parse_predicate): New.
21405 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
21406 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
21408 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
21410 * common.opt (ftree-loop-if-convert): New flag.
21411 * doc/invoke.texi (ftree-loop-if-convert): Documented.
21412 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
21413 when flag_tree_loop_if_convert is set.
21415 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
21417 * config/i386/i386.c: Use short syntax for function calls
21418 through function pointers.
21419 * config/i386/i386.md: Ditto.
21421 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21423 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
21425 2010-07-08 Richard Guenther <rguenther@suse.de>
21427 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
21428 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
21430 2010-07-08 Jakub Jelinek <jakub@redhat.com>
21432 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
21433 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
21434 (loc_list_from_tree): Likewise.
21435 (output_loc_operands): Handle outputting DW_OP_const[48]u
21436 with loc->dtprel set.
21437 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
21439 2010-07-08 Jan Hubicka <jh@suse.cz>
21441 * ipa.c: Include pointer-set.h
21442 (cgraph_externally_visible_p): New attribute ALIASED;
21443 when in LTO, hidden symbols are local unless they are aliased.
21444 (function_and_variable_visibility): Compute aliased nodes;
21445 handle LTO and hidden symbol on functions and vars.
21446 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
21447 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
21449 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21451 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21452 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21453 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21454 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21455 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21456 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
21457 (ix86_gen_probe_stack_range): Likewise.
21458 (override_options): Set them.
21459 (ix86_target_stack_probe): New function.
21460 (ix86_compute_frame_layout): Force use of push instructions to
21461 save registers if stack checking with probes is enabled.
21462 (get_scratch_register_on_entry): New function.
21463 (release_scratch_register_on_entry): Likewise.
21464 (ix86_adjust_stack_and_probe): Likewise.
21465 (output_adjust_stack_and_probe): Likewise.
21466 (ix86_emit_probe_stack_range): Likewise.
21467 (output_probe_stack_range): Likewise.
21468 (ix86_expand_prologue): Emit stack checking code if static built-in
21469 stack checking is enabled.
21470 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
21471 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
21472 (output_adjust_stack_and_probe): Likewise.
21473 (output_probe_stack_range): Likewise.
21474 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21475 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
21476 TARGET_STACK_PROBE.
21477 (allocate_stack_worker_64): Likewise.
21478 (allocate_stack): Likewise.
21479 (adjust_stack_and_probe): New insn.
21480 (probe_stack_range): Likewise.
21482 2010-07-08 Richard Guenther <rguenther@suse.de>
21484 PR tree-optimization/44831
21485 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
21486 a MEM_REF preserving TBAA info of the original dereference.
21487 Dereference the original pointer if the address is not invariant.
21488 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
21489 at least one invariant address that we are going to dereference.
21491 2010-07-08 Richard Guenther <rguenther@suse.de>
21493 PR tree-optimization/44861
21494 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
21495 information when building MEM_REFs.
21496 (vectorizable_load): Likewise.
21497 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
21499 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21501 * config/sol2-c.c: Do not include diagnostic-core.h.
21503 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21506 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
21507 with respect to current_function_decl. Pass decl of the function.
21508 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
21509 * ipa-inline.c (compute_inline_parameters): Pass decl to
21510 estimated_stack_frame_size.
21512 2010-07-08 Richard Guenther <rguenther@suse.de>
21514 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21516 (valueize_refs): Call it.
21518 2010-07-08 Richard Guenther <rguenther@suse.de>
21520 PR rtl-optimization/44838
21521 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
21522 SSA form do not use pointer equivalence.
21524 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21526 * dwarf2out.c (AT_linkage_name): Delete.
21527 (add_linkage_attr): New function.
21528 (add_linkage_name): Call it to emit the linkage attribute.
21529 (dwarf2out_finish): Likewise.
21530 (move_linkage_attr): Explicitly accept both attribute variants.
21532 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
21534 * toplev.h: Do not include diagnostic-core.h.
21535 Include diagnostic-core.h in every file that includes toplev.h.
21536 * c-tree.h: Do not include toplev.h.
21537 * pretty-print.h: Update comment.
21538 * Makefile.in: Update dependencies.
21539 * alias.c: Include diagnostic-core.h in every file that includes
21541 * attribs.c: Likewise.
21542 * auto-inc-dec.c: Likewise.
21543 * bb-reorder.c: Likewise.
21544 * bt-load.c: Likewise.
21545 * caller-save.c: Likewise.
21546 * calls.c: Likewise.
21548 * cfganal.c: Likewise.
21549 * cfgbuild.c: Likewise.
21550 * cfgcleanup.c: Likewise.
21551 * cfghooks.c: Likewise.
21552 * cfgloop.c: Likewise.
21553 * combine.c: Likewise.
21554 * config/alpha/alpha.c: Likewise.
21555 * config/arc/arc.c: Likewise.
21556 * config/arm/arm.c: Likewise.
21557 * config/arm/pe.c: Likewise.
21558 * config/avr/avr.c: Likewise.
21559 * config/bfin/bfin.c: Likewise.
21560 * config/cris/cris.c: Likewise.
21561 * config/crx/crx.c: Likewise.
21562 * config/darwin-c.c: Likewise.
21563 * config/darwin.c: Likewise.
21564 * config/fr30/fr30.c: Likewise.
21565 * config/frv/frv.c: Likewise.
21566 * config/h8300/h8300.c: Likewise.
21567 * config/host-darwin.c: Likewise.
21568 * config/i386/i386.c: Likewise.
21569 * config/i386/netware.c: Likewise.
21570 * config/i386/nwld.c: Likewise.
21571 * config/i386/winnt-cxx.c: Likewise.
21572 * config/i386/winnt-stubs.c: Likewise.
21573 * config/i386/winnt.c: Likewise.
21574 * config/ia64/ia64-c.c: Likewise.
21575 * config/ia64/ia64.c: Likewise.
21576 * config/iq2000/iq2000.c: Likewise.
21577 * config/lm32/lm32.c: Likewise.
21578 * config/m32c/m32c-pragma.c: Likewise.
21579 * config/m32c/m32c.c: Likewise.
21580 * config/m32r/m32r.c: Likewise.
21581 * config/m68hc11/m68hc11.c: Likewise.
21582 * config/m68k/m68k.c: Likewise.
21583 * config/mcore/mcore.c: Likewise.
21584 * config/mep/mep-pragma.c: Likewise.
21585 * config/mep/mep.c: Likewise.
21586 * config/mmix/mmix.c: Likewise.
21587 * config/mn10300/mn10300.c: Likewise.
21588 * config/moxie/moxie.c: Likewise.
21589 * config/pa/pa.c: Likewise.
21590 * config/pdp11/pdp11.c: Likewise.
21591 * config/picochip/picochip.c: Likewise.
21592 * config/rs6000/rs6000-c.c: Likewise.
21593 * config/rs6000/rs6000.c: Likewise.
21594 * config/rx/rx.c: Likewise.
21595 * config/s390/s390.c: Likewise.
21596 * config/score/score.c: Likewise.
21597 * config/score/score3.c: Likewise.
21598 * config/score/score7.c: Likewise.
21599 * config/sh/sh.c: Likewise.
21600 * config/sh/symbian-base.c: Likewise.
21601 * config/sh/symbian-c.c: Likewise.
21602 * config/sh/symbian-cxx.c: Likewise.
21603 * config/sol2-c.c: Likewise.
21604 * config/sol2.c: Likewise.
21605 * config/sparc/sparc.c: Likewise.
21606 * config/spu/spu.c: Likewise.
21607 * config/stormy16/stormy16.c: Likewise.
21608 * config/v850/v850-c.c: Likewise.
21609 * config/v850/v850.c: Likewise.
21610 * config/vax/vax.c: Likewise.
21611 * config/vxworks.c: Likewise.
21612 * config/xtensa/xtensa.c: Likewise.
21613 * convert.c: Likewise.
21615 * cselib.c: Likewise.
21616 * dbgcnt.c: Likewise.
21617 * dbxout.c: Likewise.
21619 * dominance.c: Likewise.
21620 * emit-rtl.c: Likewise.
21621 * explow.c: Likewise.
21622 * expmed.c: Likewise.
21623 * fixed-value.c: Likewise.
21624 * fold-const.c: Likewise.
21625 * fwprop.c: Likewise.
21626 * gcse.c: Likewise.
21627 * ggc-common.c: Likewise.
21628 * ggc-page.c: Likewise.
21629 * ggc-zone.c: Likewise.
21630 * gimple-low.c: Likewise.
21631 * gimplify.c: Likewise.
21632 * graph.c: Likewise.
21633 * haifa-sched.c: Likewise.
21634 * ifcvt.c: Likewise.
21635 * implicit-zee.c: Likewise.
21636 * integrate.c: Likewise.
21637 * ira-build.c: Likewise.
21638 * ira-color.c: Likewise.
21639 * ira-conflicts.c: Likewise.
21640 * ira-costs.c: Likewise.
21641 * ira-lives.c: Likewise.
21643 * lists.c: Likewise.
21644 * loop-doloop.c: Likewise.
21645 * loop-iv.c: Likewise.
21646 * lto-opts.c: Likewise.
21647 * lto-symtab.c: Likewise.
21648 * main.c: Likewise.
21649 * modulo-sched.c: Likewise.
21650 * optabs.c: Likewise.
21651 * params.c: Likewise.
21652 * plugin.c: Likewise.
21653 * postreload-gcse.c: Likewise.
21654 * postreload.c: Likewise.
21655 * predict.c: Likewise.
21656 * profile.c: Likewise.
21657 * real.c: Likewise.
21658 * regcprop.c: Likewise.
21659 * reginfo.c: Likewise.
21660 * regmove.c: Likewise.
21661 * reorg.c: Likewise.
21662 * resource.c: Likewise.
21664 * rtlanal.c: Likewise.
21665 * sched-deps.c: Likewise.
21666 * sched-ebb.c: Likewise.
21667 * sched-rgn.c: Likewise.
21668 * sdbout.c: Likewise.
21669 * sel-sched-dump.c: Likewise.
21670 * sel-sched-ir.c: Likewise.
21671 * simplify-rtx.c: Likewise.
21672 * stmt.c: Likewise.
21673 * stor-layout.c: Likewise.
21674 * store-motion.c: Likewise.
21675 * targhooks.c: Likewise.
21676 * tree-cfg.c: Likewise.
21677 * tree-cfgcleanup.c: Likewise.
21678 * tree-dump.c: Likewise.
21679 * tree-eh.c: Likewise.
21680 * tree-inline.c: Likewise.
21681 * tree-nomudflap.c: Likewise.
21682 * tree-object-size.c: Likewise.
21683 * tree-optimize.c: Likewise.
21684 * tree-outof-ssa.c: Likewise.
21685 * tree-phinodes.c: Likewise.
21686 * tree-profile.c: Likewise.
21687 * tree-ssa-ccp.c: Likewise.
21688 * tree-ssa-coalesce.c: Likewise.
21689 * tree-ssa-live.c: Likewise.
21690 * tree-ssa-loop-niter.c: Likewise.
21691 * tree-ssa-loop-prefetch.c: Likewise.
21692 * tree-ssa-loop.c: Likewise.
21693 * tree-ssa-structalias.c: Likewise.
21694 * tree-ssa-uninit.c: Likewise.
21695 * tree-ssa.c: Likewise.
21696 * tree-vect-data-refs.c: Likewise.
21697 * tree-vect-loop-manip.c: Likewise.
21698 * tree-vect-loop.c: Likewise.
21699 * tree-vect-patterns.c: Likewise.
21700 * tree-vect-stmts.c: Likewise.
21701 * tree-vrp.c: Likewise.
21702 * varasm.c: Likewise.
21705 * xcoffout.c: Likewise.
21707 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
21709 * gengtype.c (write_field_root): New function.
21710 (write_root): Use it.
21712 2010-07-07 Wei Guozhi <carrot@google.com>
21714 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21715 of lowest bits to lshift/compare): Add a missing line.
21717 2010-07-07 Wei Guozhi <carrot@google.com>
21719 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21720 of lowest bits to lshift/compare): New.
21722 2010-07-07 Tom Tromey <tromey@redhat.com>
21724 * doc/tm.texi: Update.
21725 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
21727 * target.def (want_debug_pub_sections): New hook.
21728 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
21729 * dwarf2out.c (add_pubname_string): Check
21730 targetm.want_debug_pub_sections.
21731 (add_pubname): Likewise.
21732 (add_pubtype): Likewise.
21734 2010-07-07 Jie Zhang <jie@codesourcery.com>
21736 * genautomata.c (output_automata_list_min_issue_delay_code):
21737 Correctly decompress min_issue_delay.
21739 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21741 PR rtl-optimization/44404
21742 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
21743 possible, use reg_overlap_mentioned_p instead.
21745 2010-07-07 Duncan Sands <baldrick@free.fr>
21747 PR middle-end/41355
21748 * tree.c (build_function_type_skip_args): Copy the original type using
21749 build_distinct_type_copy rather than copy_node.
21751 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21754 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
21756 (ix86_expand_prologue): Likewise.
21757 (ix86_handle_fndecl_attribute): Likewise.
21758 (ix86_asm_declare_function_name): Likewise.
21759 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21760 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21761 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
21762 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
21763 * doc/extend.texi: Likewise.
21765 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21768 * config/i386/i386.md (rdrand<mode>): Changed to expand to
21769 retry if the carry flag isn't valid.
21770 (rdrand<mode>_1): New.
21772 2010-07-07 Richard Guenther <rguenther@suse.de>
21774 PR middle-end/44790
21775 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
21776 for expanding the constant offset for MEM_REFs.
21778 2010-07-07 Richard Guenther <rguenther@suse.de>
21780 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
21781 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
21782 * gimple.h (is_gimple_operand): Remove.
21783 * gimple.c (is_gimple_operand): Likewise.
21784 (walk_gimple_op): Fix wi->val_only setting for calls.
21785 * tree-cfg.c (verify_gimple_call): Fix argument validation.
21786 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
21787 invalid gimple calls.
21789 2010-07-06 Jan Hubicka <jh@suse.cz>
21791 * lto-cgraph.c (output_cgraph): Add missing declaration.
21793 2010-07-06 Jan Hubicka <jh@suse.cz>
21795 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
21798 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
21800 * doc/gimple.texi (GIMPLE_DEBUG): Document.
21801 * doc/rtl.texi (Debug Information): New node.
21802 (NOTE_INSN_VAR_LOCATION): Document.
21803 (debug_insn): Likewise.
21804 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
21806 2010-07-07 Jan Hubicka <jh@suse.cz>
21808 With parts by Richard Guenther.
21810 PR middle-end/44813
21811 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
21812 for functions passed by reference.
21813 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
21814 in memory when passed by reference.
21815 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
21817 * ipa-split.c (split_function): Cleanup way return value is passed;
21818 handle SSA DECL_BY_REFERENCE retvals.
21819 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
21820 DECL_BY_REFERENCE is set.
21821 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
21822 find_what_p_points_to): Handle RESULT_DECL.
21823 * tree-inline.c (declare_return_variable): Get new entry_block argument;
21824 when passing by reference ensure that RESULT_DECL is gimple_val.
21825 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
21826 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
21828 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21830 PR rtl-optimization/44787
21831 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
21832 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
21834 2010-07-06 Jan Hubicka <jh@suse.cz>
21836 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
21837 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
21838 with body can prevail.
21839 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
21840 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
21841 * cgraph.c (cgraph_get_node_or_alias): New function.
21842 * cgraph.h (cgraph_get_node_or_alias): Declare.
21844 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
21846 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
21848 (ix86_expand_prologue): Likewise.
21849 (ix86_handle_fndecl_attribute): Likewise.
21850 (ix86_asm_declare_function_name): New function for
21851 ASM_DECLARE_FUNCTION_NAME.
21852 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
21853 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
21854 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
21855 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
21856 * doc/extend.texi: Adjust documentation about ms_hook_prologue
21859 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21861 * config/i386/i386.md (immediate_operand): New mode attribute.
21863 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
21864 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
21865 using P mode iterator.
21866 (pro_epilogue_adjust_stack_di_2): Rename from
21867 pro_epilogue_adjust_stack_rex64_2.
21869 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
21871 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21873 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
21874 through gen_mov_insv_1 function pointer.
21875 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
21876 gen_truncxf<mode>2 through gen_truncxf function pointer.
21877 (remainder<mode>3): Ditto.
21878 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
21879 (allocate_stack): Call gen_allocate_stack_worker_64 or
21880 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
21882 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
21885 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21887 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
21888 operand constraint instead of <r><i>m.
21890 2010-07-06 Richard Guenther <rguenther@suse.de>
21892 PR middle-end/44828
21893 * convert.c (convert_to_integer): Watch out for overflowing
21896 2010-07-05 Jan Hubicka <jh@suse.cz>
21898 * lto-streamer.c (write_symbol_vec): Rename to ...
21899 (write_symbol) ... this one; write only symbol given and when
21900 present in cache. Sanity check that what is defined is present
21901 in cgraph/varpool with body/finalized decl.
21902 (write_symbols_of_kind): Remove.
21903 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
21904 pairs to produce symtab.
21905 (produce_asm_for_decls): Update call of produce_symtab; don't do so
21906 when doing WPA streaming.
21908 2010-07-05 Jan Hubicka <jh@suse.cz>
21910 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
21911 function is still available to fold into.
21913 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21915 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
21916 * function.h (struct_function): Change type of local_decls field
21918 (add_local_decl): New function.
21919 (FOR_EACH_LOCAL_DECL): New macro.
21920 * cfgexpand.c (init_vars_expansion): Adjust for new type of
21922 (estimated_stack_frame_size): Likewise.
21923 (expand_used_vars): Likewise.
21924 * cgraphbuild.c (build_cgraph_edges): Likewise.
21925 * function.c (instantiate_decls_1): Likewise.
21926 * ipa-struct-reorg.c (build_data_structure): Likewise.
21927 * ipa-type-escape.c (analyze_function): Likewise.
21928 * lto-streamer-in.c (input_function): Likewise.
21929 * lto-streamer-out.c (output_function): Likewise.
21930 * tree-ssa-live.c (remove_unused_locals): Likewise.
21931 * tree.c (free_lang_data_in_decl): Likewise.
21932 (find_decls_types_in_node): Likewise.
21933 * omp-low.c (remove_exit_barrier): Likewise.
21934 (expand_omp_taskreg): Likewise.
21935 (list2chain): Rename to...
21936 (vec2chain): ...this. Adjust.
21937 * cgraphunit.c (assemble_thunk): Call add_local_decl.
21938 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
21939 * gimple-low.c (record_vars_into): Likewise.
21940 * tree-inline.c (remap_decls): Likewise.
21941 (declare_return_variable): Likewise.
21942 (declare_inline_vars): Likewise.
21943 (copy_forbidden): Adjust for new type of cfun->local_decls.
21944 (add_local_variables): New function.
21945 (expand_call_inline): Call it.
21946 (tree_function_versioning): Likewise.
21948 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
21950 AVX Programming Reference (June, 2010)
21951 * config/i386/cpuid.h (bit_F16C): New.
21952 (bit_RDRND): Likewise.
21953 (bit_FSGSBASE): Likewise.
21955 * config/i386/i386-builtin-types.def: Add
21956 "DEF_FUNCTION_TYPE (UINT16)", function types for
21957 float16 <-> float conversions and
21958 "DEF_FUNCTION_TYPE (VOID, UINT64)".
21960 * config/i386/i386-c.c (ix86_target_macros_internal): Support
21961 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
21962 OPTION_MASK_ISA_F16C.
21964 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
21965 (OPTION_MASK_ISA_RDRND_SET): Likewise.
21966 (OPTION_MASK_ISA_F16C_SET): Likewise.
21967 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
21968 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
21969 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
21970 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
21971 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
21972 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
21973 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
21974 (override_options): Handle them.
21975 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
21976 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
21977 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
21978 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
21979 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
21980 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
21981 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
21982 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
21983 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
21984 (bdesc_args): Likewise.
21985 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
21986 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
21987 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
21988 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
21989 Handle non-memory store.
21991 * config/i386/i386.h (TARGET_FSGSBASE): New.
21992 (TARGET_RDRND): Likewise.
21993 (TARGET_F12C): Likewise.
21995 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
21996 (UNSPEC_VCVTPS2PH): Likewise.
21997 (UNSPECV_RDFSBASE): Likewise.
21998 (UNSPECV_RDGSBASE): Likewise.
21999 (UNSPECV_WRFSBASE): Likewise.
22000 (UNSPECV_WRGSBASE): Likewise.
22001 (UNSPECV_RDRAND): Likewise.
22002 (rdfsbase<mode>): Likewise.
22003 (rdgsbase<mode>): Likewise.
22004 (wrfsbase<mode>): Likewise.
22005 (wrgsbase<mode>): Likewise.
22006 (rdrand<mode>): Likewise.
22008 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
22010 * config/i386/immintrin.h (_rdrand_u16): New.
22011 (_rdrand_u32): Likewise.
22012 (_readfsbase_u32): Likewise.
22013 (_readfsbase_u64): Likewise.
22014 (_readgsbase_u32): Likewise.
22015 (_readgsbase_u64): Likewise.
22016 (_writefsbase_u32): Likewise.
22017 (_writefsbase_u64): Likewise.
22018 (_writegsbase_u32): Likewise.
22019 (_writegsbase_u64): Likewise.
22020 (_rdrand_u64): Likewise.
22021 (_cvtsh_ss): Likewise.
22022 (_mm_cvtph_ps): Likewise.
22023 (_mm256_cvtph_ps): Likewise.
22024 (_cvtss_sh): Likewise.
22025 (_mm_cvtps_ph): Likewise.
22026 (_mm256_cvtps_ph): Likewise.
22028 * config/i386/sse.md (vcvtph2ps): New.
22029 (*vcvtph2ps_load): Likewise.
22030 (vcvtph2ps256): Likewise.
22031 (vcvtps2ph): Likewise.
22032 (*vcvtps2ph): Likewise.
22033 (*vcvtps2ph_store): Likewise.
22034 (vcvtps2ph256): Likewise.
22036 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
22038 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
22040 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
22043 * genenums.c (main): Output include of insn-constants.h
22044 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
22046 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
22048 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
22049 (override_options): Initialize it.
22050 (ix86_expand_prologue): Use it.
22052 2010-07-05 Jakub Jelinek <jakub@redhat.com>
22054 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
22056 2010-07-05 Anatoly Sokolov <aesok@post.ru>
22058 * double-int.h (fit_double_type): Remove declaration.
22059 * double-int.c (fit_double_type): Remove function.
22060 * tree.h (int_fits_type_p): Adjust prototype.
22061 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
22062 instead of fit_double_type.
22063 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
22064 instead of fit_double_type and build_int_cst_wide.
22065 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
22066 instead of fit_double_type and build_int_cst_wide.
22067 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
22068 of fit_double_type.
22070 2010-07-05 Jan Hubicka <jh@suse.cz>
22072 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
22073 in_other_partition.
22074 * lto-cgraph.c (referenced_from_other_partition_p,
22075 reachable_from_other_partition_p): Use in_other_partition flags.
22076 (output_node, output_varpool_node): COMDAT nodes always have private
22077 copies and thus are never used from other partition.
22079 2010-07-05 Anatoly Sokolov <aesok@post.ru>
22081 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
22082 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
22083 * config/ia64/ia64.c Include reload.h.
22084 (ia64_memory_move_cost): New function.
22085 (TARGET_MEMORY_MOVE_COST): Define.
22086 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
22089 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
22091 PR middle-end/42505
22092 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
22093 comments about cost model.
22094 (try_add_cand_for): Add second strategy for choosing initial set
22095 based on original IVs, controlled by ORIGINALP argument.
22096 (get_initial_solution): Add ORIGINALP argument.
22097 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
22098 (find_optimal_iv_set): Try two different strategies for choosing
22099 the IV set, and return the one with lower cost.
22101 2010-07-05 Richard Guenther <rguenther@suse.de>
22103 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
22105 2010-07-05 Richard Guenther <rguenther@suse.de>
22107 * tree.c (reference_alias_ptr_type): New function.
22108 * tree.h (reference_alias_ptr_type): Declare.
22109 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
22110 allow non-TARGET_MEM_REF new refs.
22111 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
22112 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
22113 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
22114 (create_mem_ref): Get alias pointer type. Adjust calls to
22115 create_mem_ref_raw.
22116 (maybe_fold_tmr): Likewise.
22117 * tree-flow.h (create_mem_ref): Adjust prototype.
22119 2010-07-05 Jakub Jelinek <jakub@redhat.com>
22122 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
22123 *from_p is VAR_DECL.
22125 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
22127 * tree.h (build_call_list): Remove.
22128 * tree.c (build_call_list): Remove.
22130 2010-07-05 Richard Guenther <rguenther@suse.de>
22132 * double-int.h (double_int_sub): Declare.
22133 * double-int.c (double_int_sub): New function.
22134 * dwarf2out.c (field_byte_offset): Use it.
22135 * fixed-value.c (do_fixed_add): Likewise.
22136 (do_fixed_multiply): Likewise.
22137 (do_fixed_divide): Likewise.
22138 * tree-predcom.c (add_ref_to_chain): Likewise.
22139 (determine_roots_comp): Likewise.
22140 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22142 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
22144 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
22147 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
22149 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
22150 * arm-modes.def (CC_NOTB): Don't define.
22151 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
22152 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
22153 (LTUGEU): New code_iterator.
22154 (cnb, optab): New corresponding code_attrs.
22155 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
22156 to canonical form. Operands 1 and 2 are commutative. Parametrize
22158 (addsi3_carryin_shift_<optab>): Likewise.
22159 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
22160 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
22161 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
22162 (subsi3_compare): Renamed from subsi3_compare0_c.
22163 Change CC_NOTB to CC.
22164 (arm_subsi3_insn): Allow constants for operand 0.
22165 (compare_scc peephole for eq case): New.
22166 (compare_scc splitters): Change CC_NOTB to CC.
22168 2010-07-05 Richard Guenther <rguenther@suse.de>
22170 * tree-ssa-loop-im.c (for_each_index): Do not handle
22171 ALIGN_INDIRECT_REF.
22172 (gen_lsm_tmp_name): Likewise.
22173 * tree-dump.c (dequeue_and_dump): Likewise.
22174 * tree-pretty-print.c (dump_generic_node): Likewise.
22175 (op_code_prio): Likewise.
22176 (op_symbol_code): Likewise.
22177 * tree.c (staticp): Likewise.
22178 (build1_stat): Likewise.
22179 * tree.h (INDIRECT_REF_P): Likewise.
22180 * fold-const.c (maybe_lvalue_p): Likewise.
22181 (operand_equal_p): Likewise.
22182 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22183 (ao_ref_init_from_vn_reference): Likewise.
22184 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
22185 (find_interesting_uses_address): Likewise.
22186 * dwarf2out.c (loc_list_from_tree): Likewise.
22187 * gimplify.c (gimplify_expr): Likewise.
22188 * tree-eh.c (tree_could_trap_p): Likewise.
22189 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22190 * cfgexpand.c (expand_debug_expr): Likewise.
22191 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22192 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
22193 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
22194 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
22195 * tree-ssa-operands.c (get_expr_operands): Likewise.
22196 * expr.c (safe_from_p): Likewise.
22197 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
22198 * tree-vect-data-refs.c (vect_setup_realignment): Build
22199 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
22200 * tree-vect-stmts.c (vectorizable_load): Likewise.
22201 * tree.def (ALIGN_INDIRECT_REF): Remove.
22203 2010-07-05 Richard Guenther <rguenther@suse.de>
22205 PR tree-optimization/44784
22206 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
22207 for inserted stmts.
22208 (find_or_generate_expression): Fix SCCVN insertion check.
22210 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
22212 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
22213 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22214 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
22217 2010-07-05 Ira Rosen <irar@il.ibm.com>
22219 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
22220 statements that are not vectorized.
22221 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
22224 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
22227 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
22229 2010-07-05 Richard Guenther <rguenther@suse.de>
22231 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
22232 RESULT_DECLs properly.
22234 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
22236 PR rtl-optimization/44695
22237 * config/i386/i386.md (extract_code): Removed.
22238 (<u>divmodqi4): Likewise.
22240 (udivmodqi4): Likewise.
22241 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
22242 (udivmodhiqi3): Likewise.
22244 2010-07-04 Jan Hubicka <jh@suse.cz>
22246 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
22248 2010-07-04 Jan Hubicka <jh@suse.cz>
22250 * cgraphunit.c (init_cgraph): Only initialize dump file if it
22251 is not already initialized.
22253 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
22255 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
22256 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
22257 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
22258 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
22259 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
22260 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
22261 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
22262 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
22263 (sync_new_nand_optab): Redefine as macros.
22264 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
22266 (direct_optab_index): New enum.
22267 (direct_optab_d): New structure.
22268 (direct_optab): New typedef.
22269 (direct_optab_table): Declare.
22270 (direct_optab_handler, set_direct_optab_handler): New functions.
22271 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
22272 (sync_lock_release_optab): New macros.
22273 * optabs.c (direct_optab_table): New variable.
22274 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
22275 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
22276 cmpstr_optab and cmpstrn_optab.
22277 (emit_conditional_move): Likewise for movcc_optab.
22278 (can_conditionally_move_p): Likewise for movcc_gen_code.
22279 (init_insn_codes): Clear direct_optab_table.
22280 (init_optabs): Don't initialize the new "direct optabs" here.
22281 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
22283 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
22284 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
22285 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
22286 (expand_sync_operation): Likewise other sync_*_optabs.
22287 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
22288 to sync_compare_and_swap_optab.
22289 (expand_sync_lock_test_and_set): Use direct_optab_handler for
22290 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
22291 to the names of both.
22292 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
22293 cmpstr_optab and cmpstrn_optab.
22294 (expand_builtin_lock_release): Likewise sync_lock_release.
22295 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
22296 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
22297 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
22298 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
22299 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
22300 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
22301 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
22302 (sync_lock_test_and_set, sync_lock_release): Delete.
22303 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
22304 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
22305 * genopinit.c (optabs): Use set_direct_optab_handler for the new
22307 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
22308 the "optab" local variable. Use direct_optab_handler for optab and
22309 sync_compare_and_swap_optab.
22310 * reload1.c (reload_in_optab, reload_out_optab): Delete.
22311 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
22312 reload_in_optab and reload_out_optab.
22313 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22314 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
22315 * config/pa/pa.c (pa_secondary_reload): Likewise.
22316 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
22317 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
22318 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
22319 (VMSupportsCS8_builtin): Likewise.
22321 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
22323 * optabs.h (optab_handlers): Change type of insn_code to int.
22324 (optab_handler, set_optab_handler, convert_optab_handler)
22325 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
22327 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
22328 (init_insn_codes): Zero both the above arrays.
22329 (init_optabs): Never call init_insn_codes first time around.
22331 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
22333 * optabs.h (optab_handler, convert_optab_handler): Turn into
22334 inline functions that return an insn code.
22335 (set_optab_handler, set_convert_optab_handler): New functions.
22336 * builtins.c: Replace optab_handler(X)->insn_code with
22337 optab_handler or set_optab_handler thoughout. Likewise
22338 convert_optab_handler(X)->insn_code with convert_optab_handler
22339 and set_convert_optab_handler.
22340 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
22341 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
22342 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
22343 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
22344 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
22345 config/spu/spu.c: Likewise.
22347 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
22350 * config.gcc (sh*-*-*): Use regular expressions instead of
22351 the 'i' modifier for sed substitutions.
22353 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
22355 * gimple.c (gimple_body): Comments added.
22357 2010-07-04 Richard Guenther <rguenther@suse.de>
22359 PR middle-end/44809
22360 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
22361 of an INDIRECT_REF.
22363 2010-07-04 Richard Guenther <rguenther@suse.de>
22365 PR tree-optimization/44479
22366 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
22367 extra SSA name copy statements which preserves points-to
22369 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22370 Copy points-to information for all pointers. Properly handle
22372 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
22374 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
22377 2010-07-04 Richard Guenther <rguenther@suse.de>
22379 PR middle-end/44785
22380 * tree-inline.c (initialize_inlined_parameters): Do not
22381 re-use pointer-map slot over remap_type call.
22383 2010-07-04 Richard Guenther <rguenther@suse.de>
22385 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
22387 2010-07-04 Richard Guenther <rguenther@suse.de>
22389 PR tree-optimization/44656
22390 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
22391 again after value-replacing in the defintions lhs.
22393 2010-07-04 Ira Rosen <irar@il.ibm.com>
22394 Revital Eres <eres@il.ibm.com>
22396 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
22397 Document new arguments.
22398 * doc/tm.texi: Regenerate.
22399 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
22400 Handle unaligned store.
22401 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
22402 * target.def (builtin_vectorization_cost): Add new arguments.
22403 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
22404 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
22405 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
22406 (vect_vfa_segment_size): Fix indentation.
22407 * tree-vectorizer.h (struct _vect_peel_info): New.
22408 (struct _vect_peel_extended_info): New.
22409 (struct _loop_vec_info): Add new field for peeling hash table and a
22410 macro for its access.
22411 (VECT_MAX_COST): Define.
22412 (vect_get_load_cost): Declare.
22413 (vect_get_store_cost, vect_get_known_peeling_cost,
22414 vect_get_single_scalar_iteraion_cost): Likewise.
22415 (vect_supportable_dr_alignment): Add new argument.
22416 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
22418 (destroy_loop_vec_info): Free peeling hash table.
22419 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
22420 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
22421 vect_analyze_slp. Fix indentation.
22422 (vect_get_single_scalar_iteraion_cost): New function.
22423 (vect_get_known_peeling_cost): Likewise.
22424 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
22425 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
22426 statement. Move outside cost calculation inside unknown peeling case.
22427 Call vect_get_known_peeling_cost for known amount of peeling.
22428 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
22429 reference to the print message of forced alignment.
22430 (vect_verify_datarefs_alignment): Update call to
22431 vect_supportable_dr_alignment.
22432 (vect_get_data_access_cost): New function.
22433 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
22434 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
22435 vect_peeling_hash_choose_best_peeling): Likewise.
22436 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
22437 to store all the accesses in the loop and find best possible access to
22438 align using peeling for known alignment case. For unknown alignment
22439 check if stores are preferred or if peeling is worthy.
22440 (vect_find_same_alignment_drs): Analyze pairs of loads too.
22441 (vect_supportable_dr_alignment): Add new argument and check aligned
22442 accesses according to it.
22443 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
22444 (cost_for_stmt): Call vect_get_stmt_cost.
22445 (vect_model_simple_cost): Likewise.
22446 (vect_model_store_cost): Call vect_get_stmt_cost. Call
22447 vect_get_store_cost to calculate the cost of the statement.
22448 (vect_get_store_cost): New function.
22449 (vect_model_load_cost): Call vect_get_stmt_cost. Call
22450 vect_get_load_cost to calculate the cost of the statement.
22451 (vect_get_load_cost): New function.
22452 (vectorizable_store): Update call to vect_supportable_dr_alignment.
22453 (vectorizable_load): Likewise.
22454 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
22455 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
22456 arguments. Handle unaligned store.
22457 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
22458 (rs6000_builtin_support_vector_misalignment): Return true for word and
22459 double word alignments for VSX.
22460 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
22461 vect_supportable_dr_alignment and builtin_vectorization_cost.
22463 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22466 * config/pa/predicates.md (prefetch_cc_operand): Remove.
22467 (prefetch_nocc_operand): Likewise.
22468 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
22469 (prefetch_20): New insn.
22470 (prefetch_cc): Remove.
22471 (prefetch_nocc): Likewise.
22473 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
22475 * expr.c (vector_mode_valid_p): Move to c-common.c.
22476 * expr.h (vector_mode_valid_p): Do not declare here.
22477 * system.h: Poison GCC_EXPR_H in front-ends.
22478 * Makefile.in: Update dependencies.
22480 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22483 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
22485 2010-07-03 Jan Hubicka <jh@suse.cz>
22487 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
22488 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
22489 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
22490 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
22493 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
22495 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
22496 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
22497 TV_IPA_LTO_DECL_OUT): New.
22498 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
22500 2010-07-03 Jan Hubicka <jh@suse.cz>
22502 * ipa-inline.c (update_edge_key): Break out from ...
22503 update_callers_keys): ... here;
22504 (update_callee_keys): Update only the edges from caller to callee.
22505 (update_all_calle_keys): Do what update_calle_keys did.
22506 (decide_inlining_of_small_functions): Avoid recomputing of all
22507 callees when badness increase.
22509 2010-07-03 Jie Zhang <jie@codesourcery.com>
22511 * config/arm/arm.c (arm_attr_length_move_neon): New.
22512 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
22513 * config/arm/neon.md (define_mode_attr V_slen): Remove.
22514 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
22515 to compute length attribute.
22517 2010-07-03 Jie Zhang <jie@codesourcery.com>
22519 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
22520 as predicate for operand 1 and remove its constraint.
22521 * config/arm/predicates.md (vfp_register_operand): New.
22522 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
22523 (*push_fp_multi): Likewise.
22525 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
22527 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
22529 2010-07-03 Jan Hubicka <jh@suse.cz>
22531 * config/i386/i386.c (override_options): Revert accidental commit.
22533 2010-07-02 Le-Chun Wu <lcwu@google.com>
22536 * doc/invoke.texi: Update documentation of -Wshadow.
22538 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
22539 Julian Brown <julian@codesourcery.com>
22540 Sandra Loosemore <sandra@codesourcery.com>
22542 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
22543 comparisons. Adjust to take both operands.
22544 (arm_select_cc_mode): Handle DImode comparisons.
22545 (arm_gen_compare_reg): Generate a scratch register for DImode
22546 comparisons which require one. Use xor for Thumb equality checks.
22547 (arm_const_double_by_immediates): New.
22548 (arm_print_operand): Allow 'Q' and 'R' for constants.
22549 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
22550 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
22551 arm_canonicalize_comparison.
22552 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
22553 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
22555 (arm_const_double_by_immediates): Declare.
22556 * config/arm/constraints.md (Di): New constraint.
22557 * config/arm/predicates.md (arm_immediate_di_operand)
22558 (arm_di_operand, cmpdi_operand): New.
22559 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
22560 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
22561 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
22562 (cstoredi4): Handle non-Cirrus also.
22564 2010-07-02 Julian Brown <julian@codesourcery.com>
22565 Sandra Loosemore <sandra@codesourcery.com>
22568 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
22569 (smax<mode>3): Disable for NEON float modes when
22570 flag_unsafe_math_optimizations is false.
22571 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
22573 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
22574 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
22575 for NEON float modes when flag_unsafe_math_optimizations is false.
22576 (quad_halves_<code>v4sf): Only enable if
22577 flag_unsafe_math_optimizations is true.
22578 * doc/invoke.texi (ARM Options): Add note about floating point
22579 vectorization requiring -funsafe-math-optimizations.
22581 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22582 Julian Brown <julian@codesourcery.com>
22584 * config/arm/neon.md (UNSPEC_VABA): Delete.
22585 (UNSPEC_VABAL): Delete.
22586 (UNSPEC_VABS): Delete.
22587 (UNSPEC_VMUL_N): Delete.
22588 (adddi3_neon): New.
22589 (subdi3_neon): New.
22590 (mul<mode>3add<mode>_neon): Make the pattern named.
22591 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
22592 (neon_vadd<mode>): Replace with define_expand, and move the remaining
22594 (neon_vadd<mode>_unspec): ...to this.
22595 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
22596 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
22597 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
22598 (neon_vaba<mode>): Rewrite in terms of vabd.
22599 (neon_vabal<mode>): Rewrite in terms of vabdl.
22600 (neon_vabs<mode>): Rewrite without unspec.
22601 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
22602 (*arm_subdi3): Likewise.
22603 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
22604 No_op attribute to disable assembly output checks.
22605 * config/arm/arm_neon.h: Regenerated.
22606 * doc/arm-neon-intrinsics.texi: Regenerated.
22608 2010-07-02 Jan Hubicka <jh@suse.cz>
22610 * ipa-split.c (split_function): For aggregate values, set the return
22611 slot optimization bit. When passing DECL_BY_REFERENCE, produce
22612 *<retval> = fncall.part ().
22613 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
22615 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22617 * config/arm/neon.md (UNSPEC_VAND): Delete.
22618 (UNSPEC_VBIC): Delete.
22619 (UNSPEC_VCLZ): Delete.
22620 (UNSPEC_VCNT): Delete.
22621 (UNSPEC_VEOR): Delete.
22622 (UNSPEC_VORN): Delete.
22623 (UNSPEC_VORR): Delete.
22624 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
22625 core registers too.
22626 (anddi3_neon): Likewise.
22627 (orndi3_neon): Likewise.
22628 (bicdi3_neon): Likewise.
22629 (xordi3_neon): Likewise.
22630 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
22631 rid of unspec and handle unused operand.
22632 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
22633 * config/arm/predicates.md (imm_for_neon_logic_operand):
22634 Require TARGET_NEON.
22635 (imm_for_neon_inv_logic_operand): Likewise.
22636 * config/arm/arm.md (define_split for logical_binary_operator):
22637 Disable for NEON registers.
22638 (anddi3): Add new define_expand, and rename the insn. Disable
22639 this insn for NEON, where anddi3_neon now applies.
22640 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
22641 (iordi3): As for anddi3.
22642 (xordi3): Likewise.
22643 * config/arm/neon.ml (Vand): Split DImode variants and mark them
22644 as No_op to disable testing for exact instruction match.
22649 * config/arm/arm_neon.h: Regenerated.
22650 * doc/arm-neon-intrinsics.texi: Regenerated.
22652 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
22654 * expr.h (emit_stack_probe): Declare.
22655 * explow.c (emit_stack_probe): Make global.
22656 (anti_adjust_stack_and_probe): Fix comments.
22657 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
22658 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22659 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22660 * config/sparc/sparc.c: Include except.h.
22661 (sparc_emit_probe_stack_range): New function.
22662 (output_probe_stack_range): Likewise.
22663 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
22664 built-in stack checking is enabled.
22665 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
22666 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
22667 (probe_stack_range): New insn.
22669 2010-07-02 Richard Guenther <rguenther@suse.de>
22672 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
22673 for argument alignment.
22675 2010-07-02 Jan Hubicka <jh@suse.cz>
22677 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
22678 walk backwards from entry_bb to check only those basic block of header
22679 that might lead to execution of split part.
22680 (consider_split) ... here.
22681 (find_return_bb): Allow assignment in return BB.
22682 (find_retval): New.
22683 (split_function): Fix name of cloned function; take care of updating
22684 return value in return_bb containing move.
22686 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
22689 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
22690 used variable insn.
22692 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
22694 * implicit-zee.c (combine_reaching_defs): Fix long lines.
22695 (is_set_with_extension_DI): Delete.
22696 (struct zero_extend_info): New structure.
22697 (add_removable_zero_extend): New function.
22698 (find_removable_zero_extends): Use note_stores to find SETs.
22699 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
22701 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
22703 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
22704 is_miss_rate_acceptable. Pull total_positions computation
22705 out of the loops. Early return if miss_positions exceeds
22706 the acceptable threshold.
22707 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
22708 is_miss_rate_acceptable after renaming of compute_miss_rate.
22710 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
22712 PR middle-end/44576
22713 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
22714 of 1000) for miss rate if the address diference is greater than or
22715 equal to the cache line size (the two reference will never hit the
22718 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
22721 * config/arm/arm-modes.def (CC_NOTB): New mode.
22722 * config/arm/arm.c (get_arm_condition_code): Handle it.
22723 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
22724 * config/arm/arm.md (subsi3_compare0_c): New pattern.
22725 (compare_scc): Now a define_and_split. Add a number of extra
22726 splitters before it.
22729 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
22731 (arm_rtx_costs_1): Likewise.
22732 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
22733 * config/arm/arm.md (is_arch6): New attribute.
22734 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
22735 extendqisi2): Tighten the code somewhat, avoiding invalid
22736 RTL to occur in the expander patterns.
22737 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
22738 (thumb1_zero_extendhisi2_v6): Delete.
22739 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
22740 (thumb1_extendhisi2_v6): Delete.
22741 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
22742 (thumb1_extendqisi2_v6): Delete.
22743 (zero_extendhisi2 for register input splitter): New.
22744 (zero_extendqisi2 for register input splitter): New.
22745 (thumb1_extendhisi2 for register input splitter): New.
22746 (extendhisi2 for register input splitter): New.
22747 (extendqisi2 for register input splitter): New.
22748 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
22749 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
22750 and add support for a register alternative requiring a split.
22751 (thumb1_zero_extendqisi2): Likewise.
22752 (arm_zero_extendqisi2): Likewise.
22753 (arm_extendhisi2): Likewise.
22754 (arm_extendqisi2): Likewise.
22756 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22758 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
22759 instead of an unspec.
22760 (neon_expand_vector_init): Likewise.
22761 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
22762 (UNSPEC_VDUP_LANE): Delete.
22763 (UNSPEC VDUP_N): Delete.
22764 (UNSPEC_VGET_HIGH): Delete.
22765 (UNSPEC_VGET_LANE): Delete.
22766 (UNSPEC_VGET_LOW): Delete.
22767 (UNSPEC_VMVN): Delete.
22768 (UNSPEC_VSET_LANE): Delete.
22769 (V_double_vector_mode): New.
22770 (vec_set<mode>_internal): Make code emitted match that for the
22771 corresponding intrinsics.
22772 (vec_setv2di_internal): Likewise.
22773 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
22774 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
22775 (neon_vset_lane<mode>): Combine double and quad patterns and
22776 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
22777 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
22778 (neon_vdup_n<mode>): Rewrite RTL without unspec.
22779 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
22780 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
22781 with neon_vdup_lanev2di, adjusting the pattern from the latter
22782 to be predicable for consistency.
22783 (neon_vdup_lane<mode>_internal): New.
22784 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
22785 to avoid using an unspec.
22786 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
22787 (neon_vdup_lanev2di): Turn into a define_expand.
22788 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
22789 (neon_vget_high<mode>): Replace with....
22790 (neon_vget_highv16qi): New pattern using canonical RTL.
22791 (neon_vget_highv8hi): Likewise.
22792 (neon_vget_highv4si): Likewise.
22793 (neon_vget_highv4sf): Likewise.
22794 (neon_vget_highv2di): Likewise.
22795 (neon_vget_low<mode>): Replace with....
22796 (neon_vget_lowv16qi): New pattern using canonical RTL.
22797 (neon_vget_lowv8hi): Likewise.
22798 (neon_vget_lowv4si): Likewise.
22799 (neon_vget_lowv4sf): Likewise.
22800 (neon_vget_lowv2di): Likewise.
22802 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
22803 test for this emitting vmov.
22804 (Vset_lane): Likewise.
22805 (Vdup_n): Likewise.
22806 (Vmov_n): Likewise.
22808 * doc/arm-neon-intrinsics.texi: Regenerated.
22810 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22812 * config/arm/neon.md (vec_extractv2di): Correct error in register
22813 numbering to reconcile with neon_vget_lanev2di.
22815 2010-07-02 Richard Guenther <rguenther@suse.de>
22817 * tree-ssa-structalias.c (pt_solution_set_var): New function.
22818 * tree-ssa-alias.h (pt_solution_set_var): Declare.
22819 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
22820 points-to information.
22822 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
22824 * config/s390/s390.c (override_options): Adopt prefetching
22825 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
22827 2010-07-02 Jan Hubicka <jh@suse.cz>
22829 * df-problems.c (df_kill_notes): Do not collect dead notes.
22830 (df_set_note): Just call add_reg_note.
22831 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
22832 df_create_unused_note): Do not deal with lists of old notes.
22833 (df_note_bb_compute): Likewise.
22835 2010-07-02 Richard Guenther <rguenther@suse.de>
22837 * tree-ssa-structalias.c (find_func_aliases): Handle
22838 pointer alignment via BIT_AND_EXPR.
22839 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
22841 2010-07-02 Richard Guenther <rguenther@suse.de>
22843 * tree-data-ref.c (initialize_data_dependence_relation): Handle
22844 mismatching number of dimensions properly.
22846 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22849 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
22850 (lo_sum (high ...) ...) patterns generated by earlier passes.
22852 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22854 * doc/install.texi (Prerequisites): Document Perl requirement on
22856 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
22858 2010-07-02 Richard Guenther <rguenther@suse.de>
22860 PR middle-end/44777
22861 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
22863 2010-07-02 Jan Hubicka <jh@suse.cz>
22865 PR middle-end/44706
22866 * predict.c (predict_paths_for_bb): Handle case when control dependence
22867 BB has only abnormal edges.
22869 2010-07-02 Richard Guenther <rguenther@suse.de>
22871 PR tree-optimization/44748
22872 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
22873 the embedded conversion in MEM_REFs.
22875 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
22877 * reload.c: Include toplev.h.
22878 * recog.c: Likewise.
22879 * Makefile.in: Adjust dependencies.
22881 2010-07-01 Jakub Jelinek <jakub@redhat.com>
22884 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
22885 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
22887 2010-07-01 Richard Guenther <rguenther@suse.de>
22889 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
22892 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
22895 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
22896 Fix argument types.
22898 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
22901 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22902 Make sure operand 0 dies.
22904 2010-07-01 Richard Guenther <rguenther@suse.de>
22906 PR middle-end/42834
22907 PR middle-end/44468
22908 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
22909 * doc/generic.texi (References to storage): Document MEM_REF.
22910 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
22911 (print_call_name): Likewise.
22912 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
22913 (build_simple_mem_ref_loc): New function.
22914 (mem_ref_offset): Likewise.
22915 * tree.h (build_simple_mem_ref_loc): Declare.
22916 (build_simple_mem_ref): Define.
22917 (mem_ref_offset): Declare.
22918 * fold-const.c: Include tree-flow.h.
22919 (operand_equal_p): Handle MEM_REF.
22920 (build_fold_addr_expr_with_type_loc): Likewise.
22921 (fold_comparison): Likewise.
22922 (fold_unary_loc): Fold
22923 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
22924 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
22925 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
22926 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
22927 (ptr_deref_may_alias_ref_p_1): Likewise.
22928 (ao_ref_base_alias_set): Properly differentiate base object for
22930 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
22931 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
22932 (indirect_refs_may_alias_p): Likewise.
22933 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
22935 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
22936 (call_may_clobber_ref_p_1): Likewise.
22937 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
22938 * expr.c (expand_assignment): Handle MEM_REF.
22939 (store_expr): Handle MEM_REFs from STRING_CSTs.
22940 (store_field): If expanding a MEM_REF of a non-addressable
22941 decl use bitfield operations.
22942 (get_inner_reference): Handle MEM_REF.
22943 (expand_expr_addr_expr_1): Likewise.
22944 (expand_expr_real_1): Likewise.
22945 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
22946 * alias.c (ao_ref_from_mem): Handle MEM_REF.
22947 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
22948 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
22949 (dr_analyze_indices): Likewise.
22950 (dr_analyze_alias): Likewise.
22951 (object_address_invariant_in_loop_p): Likewise.
22952 * gimplify.c (mark_addressable): Handle MEM_REF.
22953 (gimplify_cond_expr): Build MEM_REFs.
22954 (gimplify_modify_expr_to_memcpy): Likewise.
22955 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
22956 (gimple_fold_indirect_ref): Adjust.
22957 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
22958 * tree.def (MEM_REF): New tree code.
22959 * tree-dfa.c: Include toplev.h.
22960 (get_ref_base_and_extent): Handle MEM_REF.
22961 (get_addr_base_and_unit_offset): New function.
22962 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
22963 * gimple-fold.c (may_propagate_address_into_dereference): Handle
22965 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
22966 accesses if the array has just one dimension. Remove always true
22967 parameter. Do not require type compatibility here.
22968 (maybe_fold_offset_to_component_ref): Remove.
22969 (maybe_fold_stmt_indirect): Remove.
22970 (maybe_fold_reference): Remove INDIRECT_REF handling.
22971 Fold back to non-MEM_REF.
22972 (maybe_fold_offset_to_address): Simplify. Deal with type
22974 (maybe_fold_reference): Likewise.
22975 (maybe_fold_stmt_addition): Likewise. Also handle
22976 &ARRAY + I in addition to &ARRAY[0] + I.
22977 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
22978 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
22979 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
22980 * tree-ssa.c (useless_type_conversion_p): Make most pointer
22981 conversions useless.
22982 (warn_uninitialized_var): Handle MEM_REF.
22983 (maybe_rewrite_mem_ref_base): New function.
22984 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
22986 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
22987 INDIRECT_REF handling.
22988 (copy_tree_body_r): Handle MEM_REF.
22989 * gimple.c (is_gimple_addressable): Adjust.
22990 (is_gimple_address): Likewise.
22991 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
22992 invariant base are invariant.
22993 (is_gimple_min_lval): Adjust.
22994 (is_gimple_mem_ref_addr): New function.
22995 (get_base_address): Handle MEM_REF.
22996 (count_ptr_derefs): Likewise.
22997 (get_base_loadstore): Likewise.
22998 * gimple.h (is_gimple_mem_ref_addr): Declare.
22999 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
23000 * tree-cfg.c (verify_address): New function, split out from ...
23001 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
23002 the address operand of MEM_REFs. Verify MEM_REFs. Reject
23004 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
23005 INDIRECT_REF. Allow conversions.
23006 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
23007 a register does not change its size.
23008 (verify_types_in_gimple_reference): Verify MEM_REF.
23009 (verify_gimple_assign_single): Disallow INDIRECT_REF.
23011 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
23013 (mark_address_taken): Handle MEM_REF.
23014 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
23015 (get_asm_expr_operands): Pass opf_not_non_addressable.
23016 (get_expr_operands): Handle opf_[not_]non_addressable.
23017 Handle MEM_REF. Remove INDIRECT_REF handling.
23018 * tree-vrp.c (check_array_ref): Handle MEM_REF.
23019 (search_for_addr_array): Likewise.
23020 (check_array_bounds): Likewise.
23021 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
23022 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
23023 (ref_always_accessed_p): Likewise.
23024 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
23025 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
23027 * cgraphbuild.c (mark_load): Properly check for NULL result
23028 from get_base_address.
23029 (mark_store): Likewise.
23030 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
23031 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
23032 handling for MEM_REF.
23033 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
23034 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
23035 * builtins.c (stabilize_va_list_loc): Use the function ABI
23036 valist type if we couldn't canonicalize the argument type.
23037 Always dereference with the canonical va-list type.
23038 (maybe_emit_free_warning): Handle MEM_REF.
23039 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
23041 * builtins.c (fold_builtin_memory_op): Use ref-all types
23042 for all memcpy foldings.
23043 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
23044 (build_outer_var_ref): Likewise.
23045 (scan_omp_1_op): Likewise.
23046 (lower_rec_input_clauses): Likewise.
23047 (lower_lastprivate_clauses): Likewise.
23048 (lower_reduction_clauses): Likewise.
23049 (lower_copyprivate_clauses): Likewise.
23050 (expand_omp_atomic_pipeline): Likewise.
23051 (expand_omp_atomic_mutex): Likewise.
23052 (create_task_copyfn): Likewise.
23053 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
23054 Remove old union trick. Initialize constant offsets.
23055 (ao_ref_init_from_vn_reference): Likewise. Do not handle
23056 INDIRECT_REF. Init base_alias_set properly.
23057 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
23058 (vn_reference_fold_indirect): Adjust for MEM_REFs.
23059 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
23061 (may_insert): Remove.
23062 (visit_reference_op_load): Do not test may_insert.
23063 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
23064 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
23065 a field to store the constant offset this op applies.
23066 (run_scc_vn): Adjust prototype.
23067 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
23068 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
23069 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
23070 bother about volatile qualifiers on pointers.
23071 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
23072 * tree-ssa-loop-ivopts.c
23073 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
23074 (strip_offset_1): Likewise.
23075 (find_interesting_uses_address): Replace INDIRECT_REF handling with
23077 (get_computation_cost_at): Likewise.
23078 * ipa-pure-const.c (check_op): Handle MEM_REF.
23079 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
23080 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
23082 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
23083 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
23084 (eliminate_local_variables_1): Likewise.
23085 (create_call_for_reduction_1): Likewise.
23086 (create_loads_for_reductions): Likewise.
23087 (create_loads_and_stores_for_name): Likewise.
23088 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
23089 (ssa_accessed_in_tree): Handle MEM_REF.
23090 (ssa_accessed_in_assign_rhs): Likewise.
23091 (update_type_size): Likewise.
23092 (analyze_accesses_for_call_stmt): Likewise.
23093 (analyze_accesses_for_assign_stmt): Likewise.
23094 (transform_access_sites): Likewise.
23095 (transform_allocation_sites): Likewise.
23096 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
23097 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23098 not handle INDIRECT_REF.
23099 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
23100 (cond_store_replacement): Likewise.
23101 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
23102 MEM_REF, no not handle INDIRECT_REFs.
23103 (insert_into_preds_of_block): Properly initialize avail.
23104 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
23105 for ARRAY_REFs. Properly handle reference lookups that
23106 require a bit re-interpretation.
23107 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
23108 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
23109 (build_ref_for_offset_1): Remove.
23110 (build_ref_for_offset): Build MEM_REFs.
23111 (gate_intra_sra): Disable for now.
23112 (sra_ipa_modify_expr): Handle MEM_REF.
23113 (ipa_early_sra_gate): Disable for now.
23114 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
23116 (disqualify_base_of_expr): Likewise.
23117 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
23119 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
23120 Use mem_ref_offset. Remove bogus folding.
23121 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
23122 (make_fancy_name_1): Add support for MEM_REF.
23123 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
23124 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
23125 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
23126 (compute_complex_ancestor_jump_func): Likewise.
23127 (ipa_analyze_virtual_call_uses): Likewise.
23128 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
23129 INDIRECT_REF folding with more generalized MEM_REF folding.
23130 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
23131 (forward_propagate_addr_into_variable_array_index): Also handle
23132 &ARRAY + I in addition to &ARRAY[0] + I.
23133 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
23134 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
23135 creates assignments with overlap.
23136 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
23137 (get_frame_field): Likewise.
23138 (get_nonlocal_debug_decl): Likewise.
23139 (convert_nonlocal_reference_op): Likewise.
23140 (struct nesting_info): Add mem_refs pointer-set.
23141 (create_nesting_tree): Allocate it.
23142 (convert_local_reference_op): Insert to be folded mem-refs.
23143 (fold_mem_refs): New function.
23144 (finalize_nesting_tree_1): Perform defered folding of mem-refs
23145 (free_nesting_tree): Free the pointer-set.
23146 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
23147 (vectorizable_load): Likewise.
23148 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
23149 (propagate_with_phi): Likewise.
23150 * tree-object-size.c (addr_object_size): Handle MEM_REFs
23151 instead of INDIRECT_REFs.
23152 (compute_object_offset): Handle MEM_REF.
23153 (plus_stmt_object_size): Handle MEM_REF.
23154 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
23156 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
23157 (symbol_marked_for_renaming): Likewise.
23158 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
23159 (fold-const.o): Add $(TREE_FLOW_H).
23160 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
23161 (find_func_clobbers): Likewise.
23162 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
23163 (decompose_access): Likewise.
23164 (replace_field_acc): Likewise.
23165 (replace_field_access_stmt): Likewise.
23166 (insert_new_var_in_stmt): Likewise.
23167 (get_stmt_accesses): Likewise.
23168 (reorg_structs_drive): Disable.
23169 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
23170 (ix86_canonical_va_list_type): Likewise.
23172 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
23175 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
23176 * target.def (struct gcc_target): Replace enum reg_class with
23177 reg_class_t in hook argument / return types.
23178 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
23179 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
23180 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
23181 * targhooks.h (default_branch_target_register_class): Likewise.
23182 (default_ira_cover_classes, default_secondary_reload): Likewise.
23183 (default_memory_move_cost, default_register_move_cost): Likewise.
23184 * targhooks.c (default_branch_target_register_class): Likewise.
23185 (default_ira_cover_classes, default_secondary_reload): Likewise.
23186 (default_memory_move_cost, default_register_move_cost): Likewise.
23187 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
23188 * bt-load.c (branch_target_load_optimize): Likewise.
23189 * ira.c (setup_cover_and_important_classes): Likewise.
23190 * ira-costs.c (copy_cost): Likewise.
23191 * reload1.c (emit_input_reload_insns): Likewise.
23192 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
23193 * config/frv/frv.c (frv_secondary_reload): Likewise.
23194 * config/s390/s390.c (s390_secondary_reload): Likewise.
23195 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
23196 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
23197 (ix86_register_move_cost): Likewise.
23198 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
23199 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
23200 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
23201 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
23202 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
23203 (rs6000_ira_cover_classes): Likewise.
23204 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
23205 * config/picochip/picochip-protos.h (picochip_secondary_reload):
23207 * config/pa/pa.c (pa_secondary_reload): Likewise.
23208 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
23209 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
23210 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
23211 * doc/tm.texi: Regenerate.
23213 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
23215 PR bootstrrap/44726
23216 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
23218 (build_alias_set_optimal_p): Likewise.
23219 (build_base_obj_set_for_drs): Likewise.
23221 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
23223 * target.def: Remove comment about licensing problems of function
23226 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
23227 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
23228 * doc/tm.texi: Regenerate.
23230 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
23231 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
23233 * target.def (enum_va_list_p): Use DEFHOOK.
23234 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
23235 Rename ptype to ptree.
23236 * doc/tm.texi: Regenerate.
23238 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
23239 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
23240 * doc/tm.texi: Regenerate.
23242 * target.def (memory_move_cost): Use DEFHOOK.
23243 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
23244 Rename regclass AKA class to rclass.
23245 * doc/tm.texi: Regenerate.
23247 * target.def (pragma_parse): Use DEFHOOK.
23248 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
23249 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
23250 * doc/tm.texi: Regenerate.
23252 * target.def (pass_by_reference): Use DEFHOOK.
23253 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
23254 * doc/tm.texi: Regenerate.
23256 * target.def (resolve_overloaded_builtin): Rename params to arglist.
23258 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
23259 * doc/tm.texi: Regenerate.
23261 * target.def (return_pops_args): Use DEFHOOK.
23262 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
23263 Rename stack-size to size.
23264 * doc/tm.texi: Regenerate.
23266 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
23267 last-sched_cycle to last_clock, cur_cycle to clock.
23268 * doc/tm.texi.in: Use @hook.
23269 * doc/tm.texi: Regenerate.
23271 * target.def (print_operand, print_operand_address): Update comment.
23272 (print_operand_punct_valid_p): Likewise.
23274 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
23276 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
23278 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
23279 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
23280 * rtl-error.h: New.
23281 * regrename.c: Do not include toplev.h. Include rtl-error.h.
23282 * rtl-error.c: Likewise.
23283 * reload.c: Likewise.
23284 * recog.c: Likewise.
23285 * sel-sched.c: Likewise.
23286 * function.c: Likewise.
23287 * reg-stack.c: Likewise.
23288 * cfgrtl.c: Likewise.
23289 * reload1.c: Likewise.
23290 * final.c: Include rtl-error.
23291 * Makefile.in: Adjust dependencies.
23293 2010-06-30 Jan Hubicka <jh@suse.cz>
23295 PR middle-end/PR44706
23296 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
23297 to return the value.
23299 2010-06-30 Michael Matz <matz@suse.de>
23302 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
23303 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
23304 a gimple reg, attach the original VDEF to the last store in the
23307 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
23310 * config/darwin.c (darwin_override_options): Use renamed
23311 targetm.asm_out.emit_unwind_label.
23313 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
23315 PR tree-optimization/39799
23316 * tree-inline.c (remap_ssa_name): Initialize variable only if
23317 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
23319 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
23321 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
23323 2010-06-30 Richard Guenther <rguenther@suse.de>
23326 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
23327 against oscillation with reverse peephole2.
23329 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
23332 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23335 2010-06-30 Nick Clifton <nickc@redhat.com>
23337 * config/rx/rx-modes.def: New file.
23338 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
23339 (CC_REGNUM): Define.
23340 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
23342 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
23343 (SELECT_CC_MODE): Define.
23344 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
23345 (reg:CC CC_REG) instead of (cc0).
23346 (attr "cc"): Delete.
23347 (cbranchsi4): Do not split compare and branch here. Instead move
23349 (cbranchsi4_<code>): ... here. New patterns.
23350 (cmpsi): Call rx-compare_redundant to find out if it is necessary
23351 to emit the compare instruction.
23352 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
23354 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
23355 FIRST_PSEUDO_REGNUM.
23356 (rx_expand_prologue, rx_expand_epilogue): Likewise.
23357 (rx_notice_update_cc): Delete.
23358 (rx_cc_modes_compatible): New function.
23359 (flags_needed_for_conditional): New function.
23360 (flags_from_mode): New function.
23361 (rx_compare_redundant): New function - scans backwards through
23362 insn list to find out if condition flags are already set correctly.
23363 (TARGET_CC_MODES_COMPATIBLE): Define.
23364 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
23366 * config/rx/rx.h (BRANCH_COST): Define.
23367 (REGISTER_MOVE_COST): Define.
23368 * config/rx/predicates (rx_source_operand): Allow all constant types.
23369 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
23370 (tstsi4): New pattern.
23371 * config/rx/rx.c (rx_memory_move_cost): Define.
23372 (TARGET_MEMORY_MOVE_COST): Define.
23374 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
23376 * tree.h (block_may_fallthru): Declare here.
23377 * tree-flow.h (block_may_fallthru): Do not declare here.
23378 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
23380 * Makefile.in (c-typeck.o): Update dependencies.
23382 2010-06-30 Jakub Jelinek <jakub@redhat.com>
23385 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
23386 * cselib.c (cfa_base_preserved_regno): New static variable.
23387 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
23388 of REGNO (cfa_base_preserved_val->locs->loc).
23389 (cselib_preserve_cfa_base_value): Add regno argument, set
23390 cfa_base_preserved_regno to it.
23391 (cselib_invalidate_regno): Allow removal of registers other than
23392 cfa_base_preserved_regno from cfa_base_preserved_val.
23393 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
23394 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
23395 of MEM addresses, if not on LHS.
23396 (reverse_op): Don't add reverse ops for cfa_base_rtx.
23397 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
23399 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
23401 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
23403 (peep2_buf_position): New static function.
23404 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
23405 peephole2_optimize): Use it.
23406 (peep2_attempt, peep2_update_life): New static functions, broken out
23407 of peephole2_optimize.
23408 (peep2_fill_buffer): New static function.
23409 (peephole2_optimize): Change the main loop to try to fill the buffer
23410 with the maximum number of insns before matching them against
23411 peepholes. Use a forward scan. Remove special case for targets with
23412 conditional execution.
23413 * genrecog.c (change_state): Delete dead code.
23414 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23415 Rewrite so as not to expect the second insn to have had a peephole
23418 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23420 * genhooks.c (emit_findices): Cast field precision to int.
23421 (emit_documentation): Likewise.
23423 2010-06-29 Jakub Jelinek <jakub@redhat.com>
23425 PR tree-optimization/43801
23426 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
23427 if old_decl was DECL_ONE_ONLY.
23430 * dwarf2out.c (add_accessibility_attribute): New function.
23431 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
23432 instead of adding DW_AT_accessibility manually.
23433 (gen_enumeration_type_die, gen_struct_or_union_type_die,
23434 gen_typedef_die): Use it.
23436 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23438 * vmsdbgout.c (full_name): Just output the file name if not native.
23440 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23442 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
23443 (funcnam_table): New static table.
23444 (funcnum_table): New static table.
23445 (write_rtnbeg): Write value saved in funcnum_table.
23446 (write_rtnend): Write value saved in funcnum_table.
23447 (vmsdbgout_begin_function): Save current function info in
23448 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
23449 (vmsdbgout_finish): Iterate over funcnum_table.
23451 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23453 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
23454 (vmsdbgout_type_decl): Declare
23455 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
23456 (FUNC_EPILOGUE_LABEL): New macro
23457 (vmsdbgout_begin_epilogue): New function.
23458 (vmsdbgout_type_decl): New function.
23460 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23462 * vmsdbg.h: Update copyright.
23464 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23466 * vmsdbg.h (DST_K_TBG): New DST constant.
23467 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
23468 (write_modbeg): Cast module_language to avoid warning.
23469 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
23471 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
23474 * target.def, doc/tm.texi.in, genhooks.c: New files.
23475 * target.h: Instead of defining individual hook members,
23476 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
23477 include target.def.
23478 * target-def.h: Instead of defining individual hook initializers,
23479 include target-hooks-def.h.
23480 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
23481 targetm.live_on_entry -> targetm.extra_live_on_entry
23482 targetm.sched.md_finish ->targetm.sched.finish
23483 targetm.sched.md_init -> targetm.sched.init
23484 targetm.sched.md_init_global -> targetm.sched.init_global
23485 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
23486 targetm.asm_out.except_table_label ->
23487 targetm.asm_out.emit_except_table_label
23488 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
23489 targetm.target_help -> targetm.help
23490 targetm.vectorize.builtin_support_vector_misalignment ->
23491 targetm.vectorize.support_vector_misalignment
23492 targetm.file_start_app_off -> targetm.asm_file_start_app_off
23493 targetm.file_start_file_directive ->
23494 targetm.asm_file_start_file_directive
23495 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
23496 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
23497 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
23498 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
23499 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
23500 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
23501 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
23502 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
23503 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
23504 * Makefile.in (TARGET_H): Depend on target.def.
23505 (TARGET_DEF_H): Depend on target-hooks-def.h.
23506 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
23507 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
23508 * doc/tm.texi: Regenerate.
23510 * Makefile.in (s-tm-texi): Remove stray tab / rule.
23512 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
23513 (targetm.sched.init): Likewise.
23515 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23518 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
23519 (function_arg_advance_32): Const-ify TYPE parameter.
23520 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
23521 (ix86_function_arg_advance): Change type of NAMED to bool.
23522 (function_arg_32): Const-ify CUM and TYPE parameters.
23523 (function_arg_64): Likewise. Change type of NAMED to bool.
23524 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
23526 (ix86_function_arg): Change type of NAMED to bool.
23527 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
23528 last argument as a bool.
23530 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
23532 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
23533 (OVERRIDE_OPTIONS): Add note of obsolescence.
23534 Replace references with references to TARGET_OPTION_OVERRIDE.
23535 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
23537 * targhooks.c (default_target_option_override): New function.
23538 * targhooks.h (default_target_option_override): Declare.
23539 * target.h (struct gcc_target): Add override member to
23540 target_option member.
23541 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
23542 targetm.target_option.override call.
23543 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
23544 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
23546 2010-06-29 Jan Hubicka <jh@suse.cz>
23548 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
23550 2010-06-29 Jan Hubicka <jh@suse.cz>
23552 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
23554 (rebuild_frequencies): New function.
23555 * predict.h (rebuild_frequencies): Declare.
23556 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
23557 entry block and edge reaching new_entry.
23558 (tree_function_versioning): When doing partial cloning, rebuild
23559 frequencies when done.
23560 * passes.c (execute_function_todo): Use rebild_frequencies.
23562 2010-06-29 Richard Guenther <rguenther@suse.de>
23564 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
23565 * tree-flow.h (enum noalias_state): Remove.
23566 (struct var_ann_d): Remove noalias_state member.
23568 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
23571 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
23572 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
23573 (maddhidi4): Likewise.
23575 Revert parts of the change for PR25130.
23576 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
23579 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23581 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
23582 targetm.calls.function_incoming_arg, and
23583 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
23584 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
23585 * target.h (struct gcc_target): Add function_arg_advance,
23586 function_arg, and function_incoming_arg fields.
23587 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
23588 (TARGET_FUNCTION_INCOMING_ARG): Define.
23589 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
23590 and TARGET_FUNCTION_INCOMING_ARG.
23591 * targhooks.h (default_function_arg_advance): Declare.
23592 (default_function_arg, default_function_incoming_arg): Declare.
23593 * targhooks.c (default_function_arg_advance): New function.
23594 (default_function_arg, default_function_incoming_arg): New function.
23595 * config/i386/i386.c (function_arg_advance): Rename to...
23596 (ix86_function_arg_advance): ...this. Make static.
23597 (function_arg): Rename to...
23598 (ix86_function_arg): ...this. Make static.
23599 (TARGET_FUNCTION_ARG_ADVANCE): Define.
23600 (TARGET_FUNCTION_ARG): Define.
23601 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
23602 (FUNCTION_ARG): Delete.
23603 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
23604 (function_arg): Delete prototype.
23606 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23608 * reginfo.c (init_reg_sets_1): Adjust comments.
23609 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
23610 * calls.c (prepare_call_address): Likewise.
23611 (emit_call_1): Use targetm.calls.return_pops_args.
23612 (expand_call): Likewise.
23613 * function.c (assign_parms): Likewise.
23614 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
23615 * target.h (struct gcc_target) [struct calls]: Add
23616 return_pops_args field.
23617 * targhooks.h (default_return_pops_args): Declare.
23618 * targhooks.c (default_return_pops_args): Define.
23619 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
23620 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
23621 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
23622 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
23624 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
23625 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
23626 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
23627 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
23628 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
23629 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
23630 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
23631 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
23632 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
23633 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
23634 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
23635 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
23636 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
23637 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
23638 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
23639 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
23640 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
23641 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
23642 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
23643 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
23644 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
23645 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
23646 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
23647 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
23648 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
23649 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
23650 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
23651 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
23652 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
23653 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
23654 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
23655 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
23656 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
23657 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
23658 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
23659 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
23660 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
23661 * config/i386/i386.c (ix86_return_pops_args): Make static.
23662 Constify arguments.
23663 (TARGET_RETURN_POPS_ARGS): Define.
23664 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
23665 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
23666 (TARGET_RETURN_POPS_ARGS): Define.
23667 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
23668 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
23669 (TARGET_RETURN_POPS_ARGS): Define.
23671 2010-06-29 Richard Guenther <rguenther@suse.de>
23673 PR middle-end/44667
23674 * tree-inline.c (initialize_inlined_parameters): Make sure
23675 to remap the inlined parameter variable substitutions types.
23677 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
23679 PR rtl-optimization/44659
23680 * combine.c (make_compound_operation) <SUBREG>: Do not return the
23681 result of force_to_mode if it partially re-expanded the compound.
23683 2010-06-28 Jan Hubicka <jh@suse.cz>
23685 PR middle-end/44671
23686 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
23689 2010-06-28 Anatoly Sokolov <aesok@post.ru>
23691 * double-int.h (force_fit_type_double): Remove declaration.
23692 * double-int.c (force_fit_type_double): Move to tree.c.
23693 * tree.h (force_fit_type_double): Declare.
23694 * tree.h (force_fit_type_double): Moved from double-int.c. Use
23695 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
23696 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
23697 * convert.c (convert_to_pointer): Adjust call to
23698 force_fit_type_double.
23699 * tree-vrp.c (extract_range_from_assert,
23700 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
23701 * fold-const.c: Update comment.
23702 (int_const_binop, fold_convert_const_int_from_int,
23703 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
23704 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
23705 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
23706 round_up_loc): Adjust call to force_fit_type_double.
23708 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23710 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
23712 2010-06-28 Martin Jambor <mjambor@suse.cz>
23714 * tree-sra.c (convert_callers): New parameter, change fndecls of
23716 (modify_function): Pass the old decl to convert_callers.
23718 2010-06-28 Martin Jambor <mjambor@suse.cz>
23720 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
23721 ipa_check_create_node_params and ipa_initialize_node_params with
23722 checking asserts they are not necessary.
23724 2010-06-28 Jan Hubicka <jh@suse.cz>
23726 PR tree-optimization/44687
23727 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
23729 2010-06-28 Martin Jambor <mjambor@suse.cz>
23732 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
23733 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
23734 instead of BINFO_BASE_BINFO.
23736 2010-06-28 Michael Matz <matz@suse.de>
23738 PR middle-end/44592
23739 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
23740 proper VDEF chain for intermediate stores in the sequence.
23742 2010-06-28 Jan Hubicka <jh@suse.cz>
23744 PR tree-optimization/44357
23745 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
23746 uninlinable functions.
23748 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23750 * config.gcc (powerpc*-*-*): Handle titan.
23751 * config/rs6000/rs6000.c (titan_cost): New costs.
23752 (rs6000_override_options): Add "titan" to processor_target_table.
23753 Add Titan to branch alignment logic.
23754 Correctly set rs6000_cost for titan.
23755 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
23756 * config/rs6000/titan.md: New file.
23757 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
23759 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23761 * tree-browser.c (TB_history_stack): Convert to a VEC.
23762 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
23763 (TB_history_prev): Likewise.
23765 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23767 * vec.h (vec_heap_free): Add parentheses around free.
23769 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
23771 * system.h: Poison GCC_EXCEPT_H for front-end files.
23773 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
23775 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
23776 Define to NULL by default.
23777 * except.h: Define GCC_EXCEPT_H.
23778 (doing_eh): Remove prototype.
23779 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
23780 (lang_protect_cleanup_actions): Remove.
23781 * except.c (lang_protect_cleanup_actions): Remove.
23782 (doing_eh): Remove.
23783 (gen_eh_region): Don't check doing_eh here.
23784 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
23785 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
23786 instead of lang_protect_cleanup_actions.
23787 * omp-low.c (maybe_catch_exception): Likewise.
23788 * Makefile.in: Update dependencies.
23790 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
23792 * cgraph.h (struct varpool_node): new used_from_object_file flag.
23793 (struct cgraph_local_info): new used_from_object_file flag.
23794 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
23795 (cgraph_clone_node): initialize used_from_object_file.
23796 (cgraph_create_virtual_clone): initialize used_from_object_file.
23797 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
23798 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
23799 when compiling with -fwhole-program.
23800 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
23802 * ipa.c (function_and_variable_visibility): Set externally_visible
23803 flag of varpool_node if used_from_object_file flag is set.
23804 (cgraph_externally_visible_p): check used_from_object_file flag.
23805 * doc/invoke.texi (-fwhole-program option): Change description of
23806 externally_visible attribute accordingly.
23807 * doc/extend.texi (externally_visible): Ditto.
23809 2010-06-27 Jan Hubicka <jh@suse.cz>
23811 * params.def (max-inline-insns-auto): Default to 40.
23812 * doc/invoke.texi (max-inline-insns-auto): Document the change.
23814 2010-06-27 Jan Hubicka <jh@suse.cz>
23816 PR middle-end/44671
23817 PR middle-end/44686
23818 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
23820 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
23821 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
23823 2010-06-27 Anatoly Sokolov <aesok@post.ru>
23825 * target.h (struct gcc_target): Add register_move_cost field.
23826 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
23827 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
23828 * targhooks.c (default_register_move_cost): New function.
23829 * targhooks.h (default_register_move_cost): Declare function.
23830 * defaults.h (REGISTER_MOVE_COST): Delete.
23831 * ira-int.h (ira_register_move_cost): Update comment.
23832 * ira.c (ira_register_move_cost): Update comment.
23833 * reload.h (register_move_cost): Declare.
23834 * reginfo.c (register_move_cost): New function.
23835 (move_cost): Update comment.
23836 (init_move_cost, memory_move_secondary_cost): Replace
23837 REGISTER_MOVE_COST with register_move_cost.
23838 * postreload.c (reload_cse_simplify_set): (Ditto.).
23839 * reload.c (find_valid_class, find_reloads): (Ditto.).
23840 * reload1.c (choose_reload_regs): (Ditto.).
23841 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
23842 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
23843 * doc/md.texi (can_create_pseudo_p): Update documentation.
23845 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23846 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23847 * config/i386/i386.h (ix86_memory_move_cost): Make static.
23848 (TARGET_MEMORY_MOVE_COST): Define.
23850 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
23851 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
23852 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
23853 (TARGET_MEMORY_MOVE_COST): Define.
23855 2010-06-27 Richard Guenther <rguenther@suse.de>
23857 PR tree-optimization/44683
23858 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
23859 false edge from the inverted condition.
23861 2010-06-27 Richard Guenther <rguenther@suse.de>
23863 PR middle-end/44684
23864 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
23865 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
23866 for register LHS. Or non-store assignments.
23868 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
23870 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
23871 (sparc_emit_set_const64): Likewise. Remove disabled code.
23872 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
23873 (sparc_emit_set_const64): Likewise.
23875 2010-06-26 Catherine Moore <clm@codesourcery.com>
23877 * config/mips/mips.md (alu_type): New attribute.
23878 (type): Infer type from alu_type.
23879 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
23880 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
23881 *subsi3_extended, negsi2, negdi2, *low<mode>,
23882 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
23883 xor<mode>3, *nor<mode>3,
23884 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
23885 *zero_extendhi_truncqi): Set alu_type instead of type.
23887 2010-06-26 Douglas B Rupp <rupp@gnat.com>
23889 * config/alpha/alpha.c (alpha_need_linkage): Adjust
23890 splay_tree_new_ggc call.
23891 (alpha_use_linkage): Likewise.
23893 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23895 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
23896 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
23897 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
23898 (static_specs): Remove switches_need_spaces.
23899 (process_command, do_self_spec): Hardcode handling "-o" instead of
23900 checking switches_need_spaces.
23901 * system.h (SWITCHES_NEED_SPACES): Poison.
23903 2010-06-26 Richard Guenther <rguenther@suse.de>
23905 PR tree-optimization/44393
23906 * tree-loop-distribution.c (generate_loops_for_partition): Fix
23907 stmt removal and VOP renaming.
23908 (generate_memset_zero): Remove redundant stmt updating.
23909 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
23910 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
23912 2010-06-26 Jan Hubicka <jh@suse.cz>
23914 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
23915 edges comming from header are equivalent.
23916 (visit_bb): Handle PHIs correctly.
23917 * tree-inline.c (copy_phis_for_bb): Be able to copy
23918 PHI from entry edge.
23919 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
23921 2010-06-26 Richard Guenther <rguenther@suse.de>
23923 PR middle-end/44674
23924 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
23925 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
23927 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23929 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
23930 add_infile, alloc_switch): New.
23931 (process_command): Remove variable lang_n_infiles. Process
23932 options in a single pass. Use new functions for allocating
23933 infiles and switches arrays. Properly skip operands of
23934 -Xpreprocessor and -Xassembler.
23936 2010-06-26 Jan Hubicka <jh@suse.cz>
23938 PR middle-end/44671
23939 * cgraphunit.c (cgraph_function_versioning): Remove wrong
23940 cgraph_make_decl_local call; fix typo copying RTL data.
23942 2010-06-25 DJ Delorie <dj@redhat.com>
23944 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
23945 (m32c_output_aligned_common): Likewise.
23946 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23947 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23948 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
23949 (m32c_register_pragmas): Register it.
23950 * config/m32c/m32c.c (m32c_get_pragma_address): New.
23951 (m32c_insert_attributes): Set #pragma address decls volatile.
23952 (pragma_entry_eq): New.
23953 (pragma_entry_hash): New.
23954 (m32c_note_pragma_address): New.
23955 (m32c_get_pragma_address): New.
23956 (m32c_output_aligned_common): New.
23957 * doc/extend.texi: Document the new pragma.
23959 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
23961 * config/m32c/predicates.md (m32c_any_operand): Check the code
23962 instead of memory_operand so as to allow matching volatile MEMs.
23963 (m32c_nonimmediate_operand): Likewise.
23964 (mra_operand): Allow volatiles.
23966 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
23969 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
23970 address if the offset is unknown.
23972 2010-06-25 Douglas B Rupp <rupp@gnat.com>
23974 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
23975 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
23976 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
23977 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
23978 to ia64_start_function. Invoke it.
23979 * config/ia64/ia64.c (ia64_start_function): Call new function
23980 dwarf2out_vms_debug_main_pointer.
23982 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23984 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
23985 statements computing the true predicate.
23987 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23989 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
23990 to boolean_true_node.
23991 (reset_bb_predicate): New.
23992 (predicate_bbs): Call reset_bb_predicate.
23994 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23996 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
23997 (tree_if_conversion): Returns true when something has been changed.
23998 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
24001 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
24003 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
24004 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
24005 * tree-if-conv.c: Include dbgcnt.h.
24006 (tree_if_conversion): Use if_conversion_tree to count the number of
24007 if-convertible loops.
24009 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
24011 * common.opt (fprefetch-loop-arrays): Re-define
24012 -fprefetch-loop-arrays as a tri-state option with the initial
24014 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
24015 pass only when flag_prefetch_loop_arrays > 0.
24016 * toplev.c (process_options): Note that, with tri-states,
24017 flag_prefetch_loop_arrays>0 means prefetching is enabled.
24018 * config/i386/i386.c (override_options): Enable prefetching at -O3
24019 for a set of CPUs that sw prefetching is helpful.
24020 (software_prefetching_beneficial_p): New. Return TRUE if software
24021 prefetching is beneficial for the given CPU.
24023 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
24025 PR rtl-optimization/44326
24026 * implicit-zee.c (find_removable_zero_extends): Replace
24027 INSN_P with NONDEBUG_INSN_P.
24029 2010-06-25 Martin Jambor <mjambor@suse.cz>
24031 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
24032 (struct ipa_node_params): Removed the modification_analysis_done flag.
24033 (ipa_is_param_modified): Removed.
24034 (ipa_analyze_node): Declare.
24035 (ipa_compute_jump_functions): Remove declaration.
24036 (ipa_count_arguments): Likewise.
24037 (ipa_detect_param_modifications): Likewise.
24038 (ipa_analyze_params_uses): Likewise.
24039 * ipa-prop.c (struct param_analysis_info): New type.
24040 (visit_store_addr_for_mod_analysis): Removed.
24041 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
24042 moved down in the file.
24043 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
24044 (ipa_count_arguments): Made static.
24045 (mark_modified): New function.
24046 (is_parm_modified_before_call): New function.
24047 (compute_pass_through_member_ptrs): New parameter parms_info, call
24048 is_parm_modified_before_call instead of ipa_is_param_modified.
24049 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
24050 it to compute_pass_through_member_ptrs.
24051 (ipa_compute_jump_functions): New parameter parms_info, pass it to
24052 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
24053 on the callee if it is analyzed. Made static.
24054 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
24055 is_parm_modified_before_call instead of ipa_is_param_modified.
24056 (ipa_analyze_call_uses): New parameter parms_info, pass it to
24057 ipa_analyze_indirect_call_uses.
24058 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
24059 ipa_analyze_call_uses.
24060 (ipa_analyze_params_uses): New parameter parms_info, pass it to
24061 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
24062 (ipa_analyze_node): New function.
24063 (ipa_print_node_params): Do not dump the modified flag.
24064 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
24065 it. Do not stream the modified parameter flag.
24066 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
24067 it. Do not stream the modified parameter flag.
24068 * ipa-cp.c (ipcp_analyze_node): Removed.
24069 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
24070 with only a call to ipa_analyze_node.
24071 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
24072 node with only a call to ipa_analyze_node.
24074 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24076 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
24078 2010-06-25 Jan Hubicka <jh@suse.cz>
24080 * tree-pass.h (pass_split_functions): Declare.
24081 * opts.c (decode_options): Enable function splitting at -O2
24082 * timevar.def (TV_IPA_FNSPLIT): New macro.
24083 * ipa-split.c: New file.
24084 * common.opt (-fpartial-inlining): New flag.
24085 * Makefile.in (ipa-split.o): New object file.
24086 * passes.c (init_optimization_passes): Add ipa-split.
24087 * params.def (partial-inlining-entry-probability): New parameters.
24088 * doc/invoke.texi (-fpartial-inlining): New.
24090 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24093 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
24094 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
24095 (gimplify_expr): Likewise.
24097 2010-06-25 Martin Jambor <mjambor@suse.cz>
24099 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
24100 statements instead of bailing out on them.
24101 (ipa_analyze_indirect_call_uses): Do not require that loads from the
24102 parameter are in the same BB as the condition. Update comments.
24104 2010-06-25 Jakub Jelinek <jakub@redhat.com>
24106 PR middle-end/43866
24107 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
24108 true or always false, return NULL_TREE.
24109 (tree_unswitch_single_loop): Optimize conditions even when reaching
24110 max-unswitch-level parameter. If num > 0, optimize first all conditions
24111 using entry checks, then do still reachable block discovery and consider
24112 only conditions in still reachable basic blocks in the loop.
24114 PR tree-optimization/44539
24115 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
24116 the call doesn't have LHS, but has VDEF.
24118 2010-06-25 Joseph Myers <joseph@codesourcery.com>
24120 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
24121 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
24122 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
24123 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
24124 * system.h (MODIFY_TARGET_NAME): Poison.
24126 2010-06-25 Alan Modra <amodra@gmail.com>
24128 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
24129 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
24130 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24131 CMODEL_LARGE as default.
24132 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
24133 (offsettable_ok_by_alignment): Delete.
24134 (rs6000_emit_move): Remove mcmodel=medium optimization.
24136 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
24138 With large parts from Jim Wilson:
24140 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
24141 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
24142 * optabs.c (optab_for_tree_code): Likewise.
24143 (expand_widen_pattern_expr): Likewise.
24144 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
24145 out of execute_optimize_widening_mul.
24146 (convert_plusminus_to_widen): New function.
24147 (execute_optimize_widening_mul): Use the two new functions.
24148 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
24149 Remove code to generate widening multiply-accumulate. Add support
24150 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
24151 * gimple-pretty-print.c (dump_ternary_rhs): New function.
24152 (dump_gimple_assign): Call it when appropriate.
24153 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
24154 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
24155 (expand_gimple_stmt_1): Likewise.
24156 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
24157 WIDEN_MULT_MINUS_EXPR.
24158 * tree-ssa-operands.c (get_expr_operands): Likewise.
24159 * tree-inline.c (estimate_operator_cost): Likewise.
24160 * gimple.c (extract_ops_from_tree_1): Renamed from
24161 extract_ops_from_tree. Add new arg for a third operand; fill it.
24162 (gimple_build_assign_stat): Support operations with three operands.
24163 (gimple_build_assign_with_ops_stat): Likewise.
24164 (gimple_assign_set_rhs_from_tree): Likewise.
24165 (gimple_assign_set_rhs_with_ops_1): Renamed from
24166 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
24167 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
24168 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
24169 WIDEN_MULT_MINUS_EXPR.
24170 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
24171 (extract_ops_from_tree_1): Adjust declaration.
24172 (gimple_assign_set_rhs_with_ops_1): Likewise.
24173 (gimple_build_assign_with_ops): Pass NULL for last operand.
24174 (gimple_build_assign_with_ops3): New macro.
24175 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
24176 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
24178 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
24179 (verify_gimple_assign): Call it.
24180 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
24181 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
24182 functions for dealing with three-operand statements.
24183 * tree.c (commutative_ternary_tree_code): New function.
24184 * tree.h (commutative_ternary_tree_code): Declare it.
24185 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
24186 ternary statements.
24187 (gimple_assign_nonzero_warnv_p): Likewise.
24188 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
24189 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
24190 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
24191 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
24192 (struct hashtable_expr): New member ternary in the union.
24193 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
24194 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
24195 (iterative_hash_hashable_expr): Likewise.
24196 (print_expr_hash_elt): Handle EXPR_TERNARY.
24197 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
24198 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
24199 statements. Handle GIMPLE_TERNARY_RHS.
24201 2010-06-25 Jan Hubicka <jh@suse.cz>
24203 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
24205 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
24208 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
24209 parameters are not good.
24210 (c_parser_parameter_declaration): Error unknown type name if the type
24211 name can't start declaration specifiers.
24213 2010-06-25 Joseph Myers <joseph@codesourcery.com>
24215 * gcc.c (translate_options): Don't mention +e in comment.
24216 (process_command): Don't handle +e specially.
24218 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
24220 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
24222 * ira-build.c (merge_hard_reg_conflicts): New function.
24223 (create_cap_allocno, copy_info_to_removed_store_destinations,
24224 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
24225 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
24226 (remove_unnecessary_allocnos, remove_low_level_allocnos)
24227 copy_nifo_to_removed_store_destination): Use them.
24228 * ira-lives.c (make_hard_regno_born): New function, split out of
24230 (make_allocno_born): Likewise.
24231 (make_hard_regno_dead): New function, split out of make_regno_dead.
24232 (make_allocno_dead): Likewise.
24233 (inc_register_pressure): New function, split out of set_allocno_live.
24234 (dec_register_pressure): New function, split out of clear_allocno_live.
24235 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
24236 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
24237 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
24238 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
24239 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
24240 mark_pseudo_regno_live.
24241 (process_bb_node_lives): Use mark_pseudo_regno_live,
24242 make_hard_regno_born and make_allocno_dead.
24243 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
24244 set_allocno_live, clear_allocno_live): Delete functions.
24246 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
24247 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
24249 (ira_flattening): Use ira_parent_allocno.
24250 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
24251 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
24253 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
24256 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
24257 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
24258 minmax_set_iter_cond, minmax_set_iter_next,
24259 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
24260 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
24261 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
24262 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
24265 * ira-int.h (struct live_range, live_range_t): Renamed from struct
24266 ira_allocno_live_range and allocno_live_range_t; all uses changed.
24267 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
24270 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
24272 * thumb2.md (thumb2_tlobits_cbranch): Delete.
24273 (peephole2 to convert zero_extract/compare of single bit to
24274 lshift/compare): New.
24276 2010-06-24 Anatoly Sokolov <aesok@post.ru>
24278 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
24279 recursive call and call to 'int_const_binop'.
24280 (build_range_check, fold_cond_expr_with_comparison, unextend,
24281 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
24282 multiple_of_p): Adjust call to const_binop.
24284 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
24286 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
24287 determine size of XFmode operand.
24288 (XFmode extended DFmode push splitter): Ditto.
24289 (XFmode extended SFmode push splitter): Ditto.
24291 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
24294 * config/i386/i386.md (extract_code): New.
24295 (<u>divmodqi4): Likewise.
24296 (divmodhiqi3): Likewise.
24297 (udivmodhiqi3): Likewise.
24298 (<u>divqi3): Remvoved.
24300 2010-06-24 Jakub Jelinek <jakub@redhat.com>
24302 PR middle-end/44492
24303 * recog.h (struct recog_data): Add is_asm field.
24304 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
24305 present in constraints of inline-asm operand and memory operand
24306 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
24307 (extract_insn): Initialize recog_data.is_asm.
24308 * doc/md.texi (Constraints): Document operand side-effect rules.
24310 2010-06-24 Andi Kleen <ak@linux.intel.com>
24312 * c-parser.c (c_parser_conditional_expression): Call
24313 warn_for_omitted_condop.
24314 * doc/invoke.texi: Document omitted condop warning.
24316 2010-06-24 Nick Clifton<nickc@redhat.com>
24318 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
24319 insn in the sequence is a jump insn before setting its label.
24321 2010-06-24 Alan Modra <amodra@gmail.com>
24323 * collect2.c (main): Match exactly --version and --help.
24325 2010-06-24 DJ Delorie <dj@redhat.com>
24327 * config/m32c/m32c-pragma.c: Don't include rtl.h.
24329 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
24331 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
24332 using X87MODEF mode iterator.
24333 (pushsf splitter): Macroize splitter using P mode iterator.
24334 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
24337 (*movxf_internal): Rename from *movxf_integer.
24338 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
24339 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
24340 (*movdf_internal): Rename from *movdf_integer.
24341 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
24342 (*movsf_internal): Rename from *movdf_1.
24344 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
24346 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
24347 (const_gimple_seq_node): Removed typedefs.
24349 * gimple.h (gimple_seq_node_d, gimple_seq_node)
24350 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
24352 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
24354 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
24355 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
24356 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
24357 and CODE_FOR_vec_extract_lo_v4df.
24359 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
24360 Changed to define_insn_and_split.
24361 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
24362 (vec_extract_lo_v16hi): Likewise.
24363 (vec_extract_lo_v32qi): Likewise.
24364 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
24365 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
24367 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
24370 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
24371 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
24372 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
24373 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
24374 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
24377 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
24380 * df-core.c (struct df): Rename to df_d.
24381 * df.h (struct df): Likewise.
24382 * dse.h (struct df): Remove forward declaration.
24383 * recog.h (struct insn_data): Rename to:
24384 (struct_insn_data_d). Adjusted all users.
24386 2010-06-23 Arnaud Charlet <charlet@adacore.com
24389 * doc/install.texi: Update requirements to build GNAT.
24391 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
24393 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
24395 (m68k_sched_attr_opx_type): Remove unreachable return.
24396 (m68k_sched_attr_opy_type): Likewise.
24397 (m68k_sched_attr_size): Likewise.
24398 (sched_get_opxy_mem_type): Likewise.
24399 (m68k_sched_attr_op_mem): Likewise.
24401 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
24403 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
24404 new statement and adjust VDEF only if necessary. Remove superfluous
24405 call to maybe_clean_or_replace_eh_stmt.
24406 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
24408 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
24409 * tree-inline.c (copy_bb): ...and not there.
24411 2010-06-22 Cary Coutant <ccoutant@google.com>
24413 * dwarf2out.c (is_nested_in_subprogram): New function.
24414 (should_move_die_to_comdat): Use it.
24415 (copy_ancestor_tree): Don't mark DIEs here.
24416 (copy_decls_walk): Start walk from root of newly-added tree;
24417 mark DIEs here instead.
24419 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
24421 * config/i386/i386.md (unit): Also check sseishft1.
24423 2010-06-22 Jan Hubicka <jh@suse.cz>
24425 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
24428 2010-06-22 Jan Hubicka <jh@suse.cz>
24430 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
24431 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
24432 Return true if something changed.
24433 * df.h (df_confluence_function_n): Return bool.
24434 * df-core.c (df_worklist_propagate_forward,
24435 df_worklist_propagate_backward): Track changes and ages.
24436 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
24438 * dse.c (dse_confluence_n): Return always true.
24440 2010-06-22 Jan Hubicka <jh@suse.cz>
24442 * bitmap.c (bitmap_clear_bit): Micro optimize.
24444 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
24446 * config/i386/i386.md (SWI1248x): New mode iterator.
24451 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
24452 SWI1248x mode iterator.
24453 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
24454 using SWI124 mode iterator.
24455 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
24457 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
24458 *pushdi2_prologue_rex64 using P mode iterator.
24459 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
24460 using SWI48 mode iterator.
24461 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
24462 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
24463 using SWI1248x mode iterator.
24464 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
24465 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
24466 SWI48 mode iterator.
24467 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
24469 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
24470 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
24471 SWI12 mode iterator.
24472 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
24473 SWI12 mode iterator.
24474 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
24475 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
24476 SWI24 mode iterator.
24477 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
24478 SWI48 mode iterator.
24479 (mov<mode>_insn_1): New expander.
24480 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
24481 using SWI48x mode iterator.
24483 (*movoi_internal_avx): Rename from *movoi_internal.
24484 (*movti_internal_rex64): Rename from *movti_rex64.
24485 (*movti_internal_sse): Rename from *movti_sse.
24486 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
24487 (*movdi_internal): Rename from *movdi_2.
24488 (*movsi_internal): Rename from *movsi_1.
24489 (*movhi_internal): Rename from *movhi_1.
24490 (*movqi_internal): Rename from *movqi_1.
24492 (insv): Update the call to gen_movsi_insv_1 for rename.
24493 * config/i386/i386.c (promote_duplicated_reg): Ditto.
24495 2010-06-22 Jan Hubicka <jh@suse.cz>
24497 * passes.c (execute_function_todo): Move call of statistics_fini_pass
24499 (execute_todo) ... this one.
24501 2010-06-22 Alan Modra <amodra@gmail.com>
24504 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24505 * caller-save.c (insert_restore, insert_save): Use non-validate
24506 form of adjust_address.
24508 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24511 * config/pa/pa.c (override_options): Disable
24512 -freorder-blocks-and-partition.
24514 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
24517 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
24519 * config/i386/i386.md (type): Add sseishft1
24521 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
24522 (ppro_insn_load): Likewise.
24523 (ppro_insn_store): Likewise.
24524 (ppro_insn_both): Likewise.
24526 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
24527 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
24529 (*vec_extractv2di_1_avx): Likewise.
24530 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
24531 type. Remove atom_unit.
24532 (*vec_extractv2di_1_sse2): Likewise.
24534 2010-06-21 DJ Delorie <dj@redhat.com>
24536 * diagnostic.h (diagnostic_classification_change_t): New.
24537 (diagnostic_context): Add history and push/pop list.
24538 (diagnostic_push_diagnostics): Declare.
24539 (diagnostic_pop_diagnostics): Declare.
24540 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
24541 from pragmas in a history chain instead of the global table.
24542 (diagnostic_push_diagnostics): New.
24543 (diagnostic_pop_diagnostics): New.
24544 (diagnostic_report_diagnostic): Scan history chain to find state
24545 of diagnostics as of the diagnostic location.
24546 * opts.c (set_option): Pass UNKNOWN_LOCATION to
24547 diagnostic_classify_diagnostic.
24548 (enable_warning_as_error): Likewise.
24549 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
24550 use in the history chain.
24551 * doc/extend.texi: Document pragma GCC diagnostic changes.
24553 2010-06-21 Jakub Jelinek <jakub@redhat.com>
24555 * dwarf2out.c (add_linkage_name): New function. Don't add
24556 anything to DW_TAG_member DIEs.
24557 (add_name_and_src_coords_attributes): Use it.
24558 (gen_variable_die): Call it for C++ static data members if
24559 specification is DW_TAG_member.
24561 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
24562 C++ char16_t and char32_t.
24564 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
24565 * genattrtab.c: Include vecprim.h.
24566 (cached_attrs, cached_attr_count, attrs_seen_once,
24567 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
24568 attrs_cached_after): New variables.
24569 (find_attrs_to_cache): New function.
24570 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
24571 (write_test_expr): Add attrs_cached argument, return it too,
24572 attempt to cache non-const attributes used more than once in
24573 a single case handling.
24574 (write_attr_get): Use find_attrs_to_cache, for caching candidates
24575 emit cached_* variables. Adjust write_attr_set callers.
24576 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
24577 to find attributes that should be cached in this block. Adjust
24578 write_test_expr callers.
24579 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
24581 (make_automaton_attrs): Adjust write_test_expr caller.
24583 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
24584 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
24585 (make_automaton_attrs): If find_tune_attr returns non-NULL,
24586 write separate internal_dfa_insn_code_* and insn_default_latency_*
24587 functions for each attribute's value and emit init_sched_attrs
24588 function and function pointers.
24589 * genattr.c (const_attrs, reservations): New variables.
24590 (gen_attr): Add const attributes to const_attrs vector.
24591 (check_tune_attr, find_tune_attr): New functions.
24592 (main): Add reservations to reservations vector. If find_tune_attr
24593 returns true, add prototype for init_sched_attrs and make
24594 internal_dfa_insn_code and insn_default_latency function pointers,
24595 otherwise define init_sched_attrs as dummy macro.
24596 * cfgexpand.c: Include insn-attr.h.
24597 (gimple_expand_cfg): Call init_sched_attrs.
24599 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
24602 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
24603 va_arg from a set of register save slots into a temporary,
24604 if the container is bigger than type size, do the copying
24605 using smaller mode or using memcpy.
24608 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
24610 (sel_print_to_dot): Remove macro.
24611 (sel_print): Likewise. New prototype.
24612 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
24613 (sel_print): New function.
24615 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24617 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
24618 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
24620 2010-06-21 Nick Clifton <nickc@redhat.com>
24622 * config/rx/rx.h (PTRDIFF_TYPE): Define.
24623 (SMALL_REGISTER_CLASS): Define (to zero).
24624 (PRINT_OPERAND): Delete.
24625 (PRINT_OPERAND_ADDRESS): Delete.
24626 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
24627 (rx_print_operand_address): Delete prototype.
24628 * config/rx/rx.c (rx_print_operand): Make static.
24629 Allow %H and %L to handle CONST_DOUBLEs.
24630 (rx_print_operand_address): Make static.
24631 (rx_gen_move_template): Rename local variable 'template' to
24633 (rx_function_arg): Do not pass unknown sized objects in registers.
24634 (TARGET_PRINT_OPERAND): Define.
24635 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24637 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
24639 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
24641 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
24643 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
24644 stack-alignment for simple leaf-functions.
24646 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
24648 * doc/install.texi: Document bootstrap-lto.
24650 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
24653 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
24654 (input_function): Drop them here, if VTA is disabled.
24656 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
24659 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
24661 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
24662 ix86_swapped_fp_comparsion_operator instead of
24663 ix86_fp_comparison_operator.
24665 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
24666 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
24667 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
24668 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
24669 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
24670 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
24672 2010-06-20 Joseph Myers <joseph@codesourcery.com>
24675 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
24676 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
24677 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
24678 (decode_cmdline_option): Update for this return value. Set
24679 orig_option_with_args_text field. Set arg field for unknown
24680 options. Make static.
24681 (decode_cmdline_options_to_array): New.
24682 (prune_options): Update handling of find_opt return value.
24683 * opts.c (read_cmdline_option): Take decoded option. Return void.
24684 (read_cmdline_options): Take decoded options.
24685 (decode_options): Add parameters for decoded options. Use
24686 decode_cmdline_options_to_array. Use decoded options for -O
24687 scan. Use integral_argument for -O parameters. Update call to
24688 read_cmdline_options.
24689 (enable_warning_as_error): Update handling of find_opt return value.
24690 * opts.h: Update comment on unknown options.
24691 (struct cl_decoded_option): Update comments on opt_index and arg.
24692 Add orig_option_with_args_text.
24693 (decode_cmdline_option): Remove.
24694 (decode_cmdline_options_to_array): Declare.
24695 (decode_options): Update prototype.
24696 * toplev.c (save_argv): Remove.
24697 (save_decoded_options, save_decoded_options_count): New.
24698 (read_integral_parameter): Remove.
24699 (print_switch_values): Use decoded options.
24700 (toplev_main): Don't set save_argv. Update call to decode_options.
24701 * toplev.h (read_integral_parameter): Remove.
24702 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
24704 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
24707 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
24709 * constraints.md (Pw, Px): New constraints.
24710 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
24712 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
24714 * config/i386/sse.md (fma4modesuffixf4): Removed.
24715 (ssemodesuffixf2s): Likewise.
24716 (ssemodesuffixf4): Likewise.
24717 (ssemodesuffixf2c): Likewise.
24718 (ssescalarmodesuffix2s): Likewise.
24719 (avxmodesuffixf2c): Likewise.
24720 (ssemodesuffix): New.
24721 (ssescalarmodesuffix): Likewise.
24722 Update patterns with ssemodesuffix and ssescalarmodesuffix.
24724 2010-06-19 Philip Herron <herron.philip@googlemail.com>
24726 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
24728 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
24730 * stor-layout.c (debug_rli): Remove unused local variables.
24732 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
24734 PR rtl-optimization/40900
24735 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
24736 original expression for later reuse.
24737 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
24738 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
24740 2010-06-18 Anatoly Sokolov <aesok@post.ru>
24742 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
24743 double_int_fits_in_uhwi_p): Implement as static inline.
24744 (double_int_xor): New inline function.
24745 (double_int_lrotate, double_int_rrotate, double_int_max,
24746 double_int_umax, double_int_smax, double_int_min, double_int_umin,
24747 double_int_smin): Declare.
24748 (lrotate_double, rrotate_double): Remove declaration.
24749 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
24750 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
24751 (double_int_lrotate, double_int_rrotate, double_int_max,
24752 double_int_umax, double_int_smax, double_int_min, double_int_umin,
24753 double_int_smin): New function.
24754 * fold-const.c (int_const_binop): Clean up, use double_int_*
24756 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
24757 double_int_* and immed_double_int_const functions.
24759 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24761 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
24762 * function.c (types_used_by_cur_var_decl): Likewise.
24763 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
24765 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24767 * tree.h (record_layout_info): Change type of pending_statics field
24769 * stor-layout.c (start_record_layout): Store NULL into
24771 (debug_rli): Call debug_vec_tree instead of debug_tree.
24772 (place_field): Likewise.
24773 (finish_record_layout): Likewise.
24775 2010-06-18 Alan Modra <amodra@gmail.com>
24777 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
24779 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24782 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
24783 for SET source operand from SET destination operand.
24785 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
24787 PR rtl-optimization/39871
24788 * reload1.c (init_eliminable_invariants): For flag_pic, disable
24789 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
24790 (function_invariant_p): Rule out a plus of frame or arg pointer with
24792 * ira.c (find_reg_equiv_invariant_const): Likewise.
24794 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
24796 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
24797 print_operand_address and puts to output the operand for CONST.
24799 2010-06-17 Jakub Jelinek <jakub@redhat.com>
24802 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
24805 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24807 * v850-protos.h (print_operand): Delete.
24808 (print_operand_address): Delete.
24809 * v850.h (PRINT_OPERAND): Delete.
24810 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24811 (PRINT_OPERAND_ADDRESS): Delete.
24812 * v850.c (print_operand_address): Rename to...
24813 (v850_print_operand_address): ...this. Make static. Call
24814 v850_print_operand.
24815 (print_operand): Rename to...
24816 (v850_print_operand): ...this. Make static. Call
24817 v850_print_operand_address.
24818 (v850_print_operand_punct_valid_p): New function.
24819 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24820 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24822 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24824 * config/sh/sh-protos.h (print_operand): Delete.
24825 (print_operand_address): Delete.
24826 * config/sh/sh.h (PRINT_OPERAND): Delete.
24827 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24828 (PRINT_OPERAND_ADDRESS): Delete.
24829 * config/sh/sh.c (sh_print_operand_address): Make static.
24830 (sh_print_operand): Make static. Call sh_print_operand_address
24831 and sh_print_operand.
24832 (sh_print_operand_punct_valid_p): New function.
24833 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24834 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24836 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24838 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
24839 (mcore_print_operand_address): Delete.
24840 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
24841 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24842 (PRINT_OPERAND_ADDRESS): Delete.
24843 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
24844 (mcore_print_operand): Make static.
24845 (mcore_print_operand_punct_valid_p): New function.
24846 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
24847 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24849 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24851 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
24852 (print_operand_address): Delete.
24853 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
24854 (PRINT_OPERAND_ADDRESS): Delete.
24855 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
24857 (m68hc11_print_operand): Make static.
24858 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24860 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24862 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
24863 (m32r_print_operand_address): Delete.
24864 * config/m32r/m32r.h (m32r_punct_chars): Delete.
24865 (PRINT_OPERAND): Delete.
24866 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24867 (PRINT_OPERAND_ADDRESS): Delete.
24868 * config/m32r/m32r.c (m32r_punct_chars): Make static.
24869 (m32r_print_operand_address): Make static.
24870 (m32r_print_operand): Make static.
24871 (m32r_print_operand_punct_valid_p): New function.
24872 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24873 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24875 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24877 * config/iq2000/iq2000-protos.h (print_operand): Delete.
24878 (print_operand_address): Delete.
24879 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
24880 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24881 (PRINT_OPERAND_ADDRESS): Delete.
24882 (iq2000_print_operand_punct): Delete.
24883 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
24884 (iq2000_print_operand_address): Make static.
24885 (iq2000_print_operand): Make static.
24886 (iq2000_print_operand_punct_valid_p): New function.
24887 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24888 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24890 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24892 * config/frv/frv-protos.h (frv_print_operand): Delete.
24893 (frv_print_operand_address): Delete.
24894 * config/frv/frv.h (PRINT_OPERAND): Delete.
24895 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24896 (PRINT_OPERAND_ADDRESS): Delete.
24897 * config/frv/frv.c (frv_print_operand_address): Make static.
24898 (frv_print_operand): Make static.
24899 (frv_print_operand_punct_valid_p): New function.
24900 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24901 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24903 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24905 * tree.h (vec_member): Declare.
24906 * tree.c (vec_member): Define.
24908 2010-06-17 Richard Guenther <rguenther@suse.de>
24910 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
24911 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
24913 2010-06-17 Richard Guenther <rguenther@suse.de>
24915 * tree-inline.c (declare_return_variable): Remove bogus code.
24917 2010-06-17 Richard Guenther <rguenther@suse.de>
24919 * gimplify.c (gimplify_bind_expr): Always promote complex
24920 and vector variables to registers if possible.
24922 2010-06-17 Richard Guenther <rguenther@suse.de>
24924 * expr.c (get_inner_reference): Use double_int for bit_offset
24927 2010-06-16 DJ Delorie <dj@redhat.com>
24929 * common.opt (-fstrict-volatile-bitfields): new.
24930 * doc/invoke.texi: Document it.
24931 * fold-const.c (optimize_bit_field_compare): For volatile
24932 bitfields, use the field's type to determine the mode, not the
24934 * expr.c (expand_assignment): Likewise.
24935 (get_inner_reference): Likewise.
24936 (expand_expr_real_1): Likewise.
24937 * expmed.c (store_fixed_bit_field): Likewise.
24938 (extract_bit_field_1): Likewise.
24939 (extract_fixed_bit_field): Likewise.
24941 2010-06-16 Richard Guenther <rguenther@suse.de>
24943 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
24945 2010-06-16 Douglas B Rupp <rupp@gnat.com>
24947 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
24948 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
24949 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
24950 * debug.c: Likewise.
24951 * sdbout.c: Likewise.
24952 * vmsdbgout.c: Likewise.
24953 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
24954 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
24955 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
24956 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
24957 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
24958 * dwarf2out.c (dw_fde_struct): New fields
24959 dw_fde_vms_{end,begin}_prologue.
24960 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
24961 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
24962 (dwarf2out_vms_end_prologue): New function.
24963 (dwarf2out_vms_begin_epilogue): New function.
24964 (dw_val_struct): New value dw_val_class_vms_delta.
24965 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
24966 begin_epilogue for VMS.
24967 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
24968 new static functions.
24969 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
24970 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
24972 (print_die): New case dw_val_class_vms_delta.
24973 (attr_checksum): Likewise.
24974 (same_dw_val_p: Likewise.
24975 (size_of_die): Likewise.
24976 (value_format): Likewise.
24977 (output_die): Likewise.
24978 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
24979 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
24980 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
24981 dwarf2out_cfi_begin_epilogue
24982 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
24984 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
24986 * config/cris/cris-protos.h (cris_print_operand): Delete.
24987 (cris_print_operand_address): Delete.
24988 * config/cris/cris.h (PRINT_OPERAND): Delete.
24989 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24990 (PRINT_OPERAND_ADDRESS): Delete.
24991 * config/cris/cris.c (cris_print_operand_address): Make static.
24992 (cris_print_operand): Make static.
24993 (cris_print_operand_punct_valid_p): New function.
24994 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24995 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24997 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
24999 * config/arm/arm-protos.h (arm_print_operand): Delete.
25000 (arm_print_operand_address): Delete.
25001 * config/arm/arm.h (PRINT_OPERAND): Delete.
25002 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25003 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
25004 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
25005 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
25006 (arm_print_operand): Make static.
25007 (arm_print_operand_punct_valid_p): New function.
25008 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25009 (TARGET_PRINT_OPERAND_ADDRESS): Define.
25011 2010-06-16 Nick Clifton <nickc@redhat.com>
25013 * config/rx/constraints.md (NEGint4): New constraint.
25014 * config/rx/rx.md (attr cc): Add set_zsc.
25015 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
25018 (call_internal): Clobber the cc0 register.
25019 (call_value_internal): Likewise.
25020 (cstoresi4): Likewise.
25021 (movsieq): Likewise.
25022 (movsine): Likewise.
25023 (addsi3): Add alternative to handle small negative constants.
25024 (sunsi3): Likewise.
25025 (addsi3): Do not set the O bit in the cc0 register.
25026 (adddi3): Likewise.
25027 (subsi3): Likewise.
25028 (subdi3): Likewise.
25029 (andsi3): Reorder alternatives to prefer shorter forms.
25030 (mulsi3): Likewise.
25031 (iorsi3): Likewise.
25032 (negsi2): Note that the cc0 flags are set.
25033 (rotlsi3): Note that only the Z and S bits are set in cc0.
25034 (lshrsi3): Likewise.
25035 (ashlsi3): Likewise.
25036 (subsf3): Use %Q for the MEM operand.
25037 (fix_truncsfsi2): Likewise.
25038 (floatsisf2): Likewise.
25039 (bitset): Remove early clobber from destination.
25040 (bitset_in_memory): Likewise.
25041 (lrintsf2): Clobber the cc0 register.
25042 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
25043 (rx_print_operand): Handle %N.
25045 2010-06-16 Jan Hubicka <jh@suse.cz>
25047 * df-core.c (df_compact_blocks): Free problem_temps vector.
25049 2010-06-16 Martin Jambor <mjambor@suse.cz>
25051 PR tree-optimization/43905
25052 * tree-sra.c: Include tree-inline.h.
25053 (create_abstract_origin): Removed.
25054 (modify_function): Version the call graph node instead of creating
25055 abstract origins and dealing with same_body aliases.
25056 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
25057 function is versionable.
25058 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
25060 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
25062 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
25063 (CHOOSE_DYNAMIC_LINKER): Update.
25065 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
25067 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
25068 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
25069 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
25070 *prefetch_3dnow_rex.
25072 2010-06-15 Anatoly Sokolov <aesok@post.ru>
25074 * target.h (struct asm_out):Add declare_constant_name field.
25075 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
25076 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
25077 * output.h (default_asm_declare_constant_name): Declare.
25078 (assemble_label): Update prototype.
25079 * varasm.c (assemble_constant_contents): Use
25080 targetm.asm_out.declare_constant_name target hook.
25081 (assemble_label): Add 'file' argument.
25082 (default_asm_declare_constant_name): New function.
25083 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
25084 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
25085 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
25087 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
25088 * config/darwin.c (darwin_asm_declare_constant_name): New function.
25089 (machopic_output_indirection): Update assemble_label argument list.
25090 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
25091 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
25093 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
25095 PR middle-end/44391
25096 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
25097 size_one_node for pointer types. Do not call gmp_cst_to_tree.
25099 2010-06-15 Richard Guenther <rguenther@suse.de>
25101 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
25103 2010-06-15 Paul Brook <paul@codesourcery.com>
25105 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
25108 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
25110 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
25111 don't get a vector type for output.
25113 2010-06-15 Jakub Jelinek <jakub@redhat.com>
25116 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
25117 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
25118 (LANG_HOOKS_DECLS): Add it.
25119 * gimplify.c (omp_notice_variable): Call
25120 lang_hooks.decls.omp_report_decl.
25122 2010-06-15 Martin Jambor <mjambor@suse.cz>
25125 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
25126 on the newly dead SSA name.
25128 2010-06-15 Alan Modra <amodra@gmail.com>
25130 * doc/invoke.texi: Add mcmodel to powerpc options.
25131 * configure.ac: Add HAVE_LD_LARGE_TOC test.
25132 * configure: Regenerate.
25133 * config.in: Regenerate.
25134 * config/rs6000/linux64.opt (mcmodel): New.
25135 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
25136 (TARGET_CMODEL, SET_CMODEL): Define.
25137 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
25138 select CMODEL_MEDIUM default.
25139 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
25140 (TARGET_CMODEL): Define default.
25141 * config/rs6000/rs6000.c (cmodel): New variable.
25142 (rs6000_explicit_options): Add cmodel field.
25143 (rs6000_handle_option): Handle -mcmodel.
25144 (create_TOC_reference): Add largetoc_reg param. Generate high,
25145 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
25146 (rs6000_delegitimize_address): Recognise new toc reference rtl
25147 and minimal-toc rtl.
25148 (rs6000_legitimize_reload_address): Handle new toc references.
25149 (print_operand_address): Handle legitimate_constant_pool_address_p
25150 match before lo_sum.
25151 (rs6000_eliminate_indexed_memrefs): Tidy.
25152 (rs6000_emit_move): Tweak threshold for inlining constants.
25153 Keep rs6000_emit_allocate_stack large stack frame offsets
25154 loaded into r0 inline.
25155 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
25156 (tocrel_base, tocrel_offset): New variables.
25157 (toc_relative_expr_p): Set them here.
25158 (print_operand_address): Skip over any offset on constant pool address.
25159 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
25160 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
25161 (offsettable_ok_by_alignment): New function.
25162 (rs6000_emit_move): Address suitably aligned local symbol_refs
25163 relative to the toc pointer for -mcmodel=medium.
25164 (legitimate_constant_pool_address_p): Make param const_rtx. Add
25165 strict param. Allow lo_sum version of addressing. Verify reg
25166 used for -mminimal-toc and -mcmodel != small. Update all callers.
25167 * config/rs6000/constraints.md: Update for above change.
25168 * config/rs6000/predicates.md: Likewise.
25169 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
25171 (tls_gd): Split for -mcmodel=medium/large.
25172 (tls_gd_high, tls_gd_low): New.
25173 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
25174 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
25175 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
25176 (largetoc_high, largetoc_low): New.
25177 (cmptf_internal2): Add clobber.
25178 * config/rs6000/rs6000-protos.h: Update.
25180 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
25182 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
25183 true if no prefetch is going to be generated for a given group.
25184 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
25185 estimate the prefetch_count.
25186 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
25187 prefetch count by considering the unroll_factor and prefetch_mod
25188 for is_loop_prefetching_profitable.
25190 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
25192 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
25193 anything if the argument is not a MEM.
25195 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
25200 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
25202 (canonicalize_loop_ivs): Likewise.
25204 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
25207 * haifa-sched.c (setup_insn_reg_pressure_info,
25208 update_register_pressure): Reject debug insns.
25209 (ready_sort): Don't setup reg pressure for debug insns.
25210 (schedule_insn): Don't update reg pressure for debug insns.
25212 2010-06-14 Richard Guenther <rguenther@suse.de>
25214 * lto-streamer.c (cached_bp): Remove.
25215 (bitpack_delete): Likewise.
25216 (bitpack_create): Likewise.
25217 (bp_get_next_word): Likewise.
25218 (bp_pack_value, bp_unpack_value): Move ...
25219 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
25221 (struct bitpack_d): Likewise.
25222 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
25223 New inline functions.
25224 * lto-streamer-out.c (lto_output_bitpack): Remove.
25225 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
25226 (pack_value_fields): Adjust.
25227 (lto_write_tree): Likewise.
25228 (output_gimple_stmt): Likewise.
25229 (output_function): Likewise.
25230 * lto-streamer-in.c (input_gimple_stmt): Adjust.
25231 (input_function): Likewise.
25232 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
25233 (lto_input_bitpack): Remove.
25234 (lto_materialize_tree): Adjust.
25235 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
25236 * lto-cgraph.c (lto_output_edge): Adjust.
25237 (lto_output_node): Likewise.
25238 (lto_output_varpool_node): Likewise.
25239 (lto_output_ref): Likewise.
25240 (input_node): Likewise.
25241 (input_varpool_node): Likewise.
25242 (input_ref): Likewise.
25243 (input_edge): Likewise.
25244 (output_node_opt_summary): Likewise.
25245 (input_node_opt_summary): Likewise.
25246 * ipa-pure-const.c (pure_const_write_summary): Likewise.
25247 (pure_const_read_summary): Likewise.
25248 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
25249 (ipa_read_indirect_edge_info): Likewise.
25250 (ipa_write_node_info): Likewise.
25251 (ipa_read_node_info): Likewise.
25253 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
25256 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
25257 (vec_extract_lo_v16hi): Likewise.
25258 (vec_extract_lo_v32qi): Likewise.
25260 2010-06-14 Jakub Jelinek <jakub@redhat.com>
25263 * tree.h (build_call_expr): Don't define as vararg macro, instead
25265 * builtins.c (build_call_nofold): Remove.
25266 (expand_builtin_int_roundingfn, expand_builtin_pow,
25267 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
25268 expand_builtin_memset_args, expand_builtin_strcmp,
25269 expand_builtin_strncmp, expand_builtin_memory_chk): Use
25270 build_call_nofold_loc instead of build_call_nofold.
25271 (build_call_expr): New function.
25273 PR tree-optimization/44508
25274 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
25275 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
25276 don't eliminate trivially dead stmts.
25277 * tree-vrp.c (vrp_finalize): Pass false as last argument
25278 to substitute_and_fold.
25279 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
25280 to substitute_and_fold.
25281 * tree-ssa-ccp.c (ccp_finalize): Likewise.
25284 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
25286 2010-06-14 Ira Rosen <irar@il.ibm.com>
25288 PR tree-optimization/44507
25289 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
25290 to build initial vector for BIT_AND_EXPR.
25291 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
25293 2010-06-14 Jakub Jelinek <jakub@redhat.com>
25295 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
25296 adjust z10prop set_attr.
25298 2010-06-13 Jan Hubicka <jh@suse.cz>
25300 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
25301 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
25302 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
25303 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
25304 datastructure checks into checking asserts.
25305 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
25306 * tree-ssa-sccvn.c (VN_INFO): Likewise.
25307 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
25308 df_ref_create_structure): Likewise.
25309 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
25310 pool_free): Use gcc_checking_assert.
25311 * alias.c (get_alias_set): Likewise.
25312 * var-tracking.c (variable_htab_free, shared_hash_copy,
25313 canonicalize_values_mark, variable_merge_over_cur): Likewise.
25314 * lto-streamer.c (bp_unpack_value): Likewise.
25316 2010-06-13 Richard Guenther <rguenther@suse.de>
25318 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
25319 Do not stream but initialize TYPE_CANONICAL to NULL.
25320 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
25321 * gimple.c (gimple_types_compatible_p): Disregard
25322 TYPE_STRUCTURAL_EQUALITY_P.
25323 (gimple_register_type): Use TYPE_CANONICAL as cache.
25324 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
25325 before registering common types.
25326 * config/i386/i386.c (ix86_function_arg_boundary): Do not
25327 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
25328 * tree.h (TYPE_CANONICAL): Clarify documentation.
25330 2010-06-13 Anatoly Sokolov <aesok@post.ru>
25332 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25333 LIBCALL_VALUE): Remove macros.
25334 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
25335 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25336 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25337 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
25338 (ia64_function_value): Make static. Handle receiving the function
25339 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
25341 2010-06-12 Jan Hubicka <jh@suse.cz>
25343 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
25346 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
25348 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
25350 2010-06-12 Jan Hubicka <jh@suse.cz>
25352 * df-core.c (df_clear_bb_info): New function.
25353 (df_set_blocks): bb_info is always allocated.
25354 (df_get_bb_info): Use block_info_elt_size.
25355 (df_set_bb_info): Likewise.
25356 (df_compact_blocks): Update for new block_info.
25357 (grow_bb_info): New function.
25358 * df-problems.c (df_grow_bb_info): Move to df-core.c
25359 (df_rd_set_bb_info): Remove.
25360 (df_rd_free_bb_info): Do not free block pool.
25361 (df_rd_alloc): Do not create pool, use check for
25362 obstack presence instead of NULL pointer for new blocks.
25363 (df_rd_free): DO not free alloc pool; clear block_info.
25364 (problem_RD): Add size of block info structure.
25365 (df_lr_set_bb_info): Remove.
25366 (df_lr_free_bb_info): Do not free block pool.
25367 (df_lr_alloc): Do not create pool, use check for
25368 obstack presence instead of NULL pointer for new blocks.
25369 (df_lr_free): DO not free alloc pool; clear block_info.
25370 (problem_LR): Add size of block info structure.
25371 (df_live_set_bb_info): Remove.
25372 (df_live_free_bb_info): Do not free block pool.
25373 (df_live_alloc): Do not create pool, use check for
25374 obstack presence instead of NULL pointer for new blocks.
25375 (df_live_free): DO not free alloc pool; clear block_info.
25376 (problem_LIVE): Add size of block info structure.
25377 (problem_CHAIN): Add size of block info structure.
25378 (df_byte_lr_set_bb_info): Remove.
25379 (df_byte_lr_free_bb_info): Do not free block pool.
25380 (df_byte_lr_alloc): Do not create pool, use check for
25381 obstack presence instead of NULL pointer for new blocks.
25382 (df_byte_lr_free): DO not free alloc pool; clear block_info.
25383 (problem_BYTE_LR): Add size of block info structure.
25384 (problem_NOTE): Add size of block info structure.
25385 (df_byte_MD_set_bb_info): Remove.
25386 (df_byte_MD_free_bb_info): Do not free block pool.
25387 (df_byte_MD_alloc): Do not create pool, use check for
25388 obstack presence instead of NULL pointer for new blocks.
25389 (df_byte_MD_free): DO not free alloc pool; clear block_info.
25390 (problem_BD): Add size of block info structure.
25391 * df-scan.c (df_scan_free_internal): Free block pool.
25392 (df_scan_set_bb_info): Remove.
25393 (df_scan_free_bb_info): Check for artificial_defs instead
25394 of bb_info being non-NULL.
25395 (df_scan_alloc): DO not create df_scan_block pool.
25396 (problem_SCAN): Set size of block info.
25397 (df_bb_refs_record): Do not allocate bb_info.
25398 * df.h (df_problem): Add block_info_elt_size.
25399 (struct dataflow): Change block_info to void *.
25400 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
25401 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
25402 in-line structures.
25404 2010-06-12 Jan Hubicka <jh@suse.cz>
25406 PR tree-optimize/44485
25407 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
25408 containing use of return value of noreturn function.
25410 2010-06-12 Anatoly Sokolov <aesok@post.ru>
25412 * targhooks.c (default_function_value): Don't use
25413 FUNCTION_OUTGOING_VALUE.
25414 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
25415 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
25417 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
25419 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
25420 Add crtfastmath.o to extra_parts.
25421 * config/mips/crtfastmath.c: New.
25422 * config/mips/linux.h (ENDFILE_SPEC): New.
25424 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
25426 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
25427 old_type in parameter.
25428 (gcc_type_for_value): Update call to gcc_type_for_interval.
25429 (compute_type_for_level_1): Renamed compute_type_for_level.
25430 Update call to gcc_type_for_interval.
25432 2010-06-11 Joseph Myers <joseph@codesourcery.com>
25434 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
25435 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
25437 2010-06-11 Joseph Myers <joseph@codesourcery.com>
25439 * opts-common.c: Include options.h.
25440 (integral_argument): Move from opts.c.
25441 (decode_cmdline_option): New. Based on read_cmdline_option.
25442 * opts.c (integral_argument): Move to opts-common.c.
25443 (read_cmdline_option): Move most contents to
25444 decode_cmdline_option. Use %qs in diagnostics.
25445 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
25446 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
25447 decode_cmdline_option): New.
25449 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
25452 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
25453 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
25454 (partiysi2_cmp): Ditto.
25455 (*partiyhi2_cmp): Ditto.
25456 (*parityqi2_cmp): Remove.
25458 2010-06-11 Jan Hubicka <jh@suse.cz>
25460 * bitmap.h (bmp_iter_next_bit): New.
25461 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
25463 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
25464 Eric Botcazou <ebotcazou@adacore.com>
25466 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
25469 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
25471 * config/i386/i386.md (unspec): New define_c_enum.
25474 2010-06-10 Jakub Jelinek <jakub@redhat.com>
25476 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
25478 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
25480 PR middle-end/44483
25481 * tree-if-conv.c (bb_predicate_s): New struct.
25482 (bb_predicate_p): New.
25483 (bb_has_predicate): New.
25484 (bb_predicate): New.
25485 (set_bb_predicate): New.
25486 (bb_predicate_gimplified_stmts): New.
25487 (set_bb_predicate_gimplified_stmts): New.
25488 (add_bb_predicate_gimplified_stmts): New.
25489 (init_bb_predicate): New.
25490 (free_bb_predicate): New.
25491 (is_predicated): Use bb_predicate.
25492 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
25493 (predicate_bbs): Same. Gimplify the condition of the basic blocks
25494 before processing their successors.
25495 (clean_predicate_lists): Removed.
25496 (find_phi_replacement_condition): Use bb_predicate.
25497 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
25499 (insert_gimplified_predicates): New.
25500 (combine_blocks): Call insert_gimplified_predicates.
25501 (tree_if_conversion): Call free_bb_predicate instead of
25502 clean_predicate_lists.
25504 2010-10-11 Paul Brook <paul@codesourcery.com>
25506 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
25507 * config/arm/arm.c (all_architectures): Change v7e-m default to
25509 * config/arm/arm-cores.def: Add cortex-m4.
25510 * config/arm/arm-tune.md: Regenerate.
25512 2010-06-11 Jan Hubicka <jh@suse.cz>
25514 * ipa-pure-const.c (special_builtlin_state): New function.
25515 (check_call): Use it instead of special casign BUILT_IN_RETURN.
25516 (propagate_pure_const): Use it.
25518 2010-06-11 Jan Hubicka <jh@suse.cz>
25520 * df-problems.c (df_live_scratch): Convert to bitmap_head.
25521 (df_live_alloc): Initialize df_live_scratch when initializing
25523 (df_live_transfer_function): Update uses of df_live_scratch.
25524 (df_live_free): Free problem_data; clear df_live_scratch before
25525 releasing the obstack.
25526 (df_md_free): Free problem data.
25528 2010-06-11 Jan Hubicka <jh@suse.cz>
25530 * doc/invoke.texi (Wsuggest-attribute): Document.
25531 (Wmissing-noreturn): Remove.
25532 * ipa-pure-const.c (warn_function_noreturn): New function.
25533 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
25534 warn_missing_noreturn.
25535 * common.opt (Wsuggest-attribute=noreturn): New.
25536 * tree-flow.h (warn_function_noreturn): Declare.
25537 * tree-cfg.c (execute_warn_function_noreturn): Use
25538 warn_function_noreturn.
25539 (gate_warn_function_noreturn): New.
25540 (pass_warn_function_noreturn): Update.
25542 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
25544 * c-typeck.c (handle_warn_cast_qual): Add loc
25545 parameter. Improve warning message.
25546 (build_c_cast): Pass location to handle_warn_cast_qual.
25548 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
25550 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
25551 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
25553 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
25555 2010-06-10 Dodji Seketeli <dodji@redhat.com>
25557 Fix bootstap on mips
25558 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
25559 be naming typedefs.
25561 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
25563 * system.h (helper_const_non_const_cast): New inline for
25564 gcc version <= 4.0.
25565 (CONST_CAST2): For gcc version <= 4.0 use
25566 new helper to do const/non-const casting.
25568 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25570 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
25571 * Makefile.in (OBJS-common): Include insn-enums.o.
25572 (insn-enums.o): New rule.
25573 (simple_generated_c): Add insn-enums.c.
25574 (build/genenums.o): New rule.
25575 (genprogmd): Add "enums".
25576 * genconstants.c (print_enum_type): Declare a C string array
25578 * genenums.c: New file.
25579 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
25580 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
25581 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
25583 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25585 * doc/md.texi (define_enum_attr): Document.
25586 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
25587 * read-md.h (lookup_enum_type): Declare.
25588 * read-md.c (lookup_enum_type): New function.
25589 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
25590 * genattrtab.c (attr_desc): Add an enum_name field.
25591 (evaluate_eq_attr): Take the associated attribute as argument.
25592 Get the enum prefix from the enum_name field, if defined.
25593 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
25594 (simplify_test_exp): Pass attr to evaluate_eq_attr.
25595 (add_attr_value): New function, split out from...
25596 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
25597 (write_test_expr): Pass attr to evaluate_eq_attr.
25598 (write_attr_get): Use the enum_name as the enum tag, if defined.
25599 (write_attr_valueq): Use the enum_name as a prefix, if defined.
25600 (find_attr): Initialize enum_name.
25601 (main): Handle DEFINE_ENUM_ATTR.
25602 * gensupport.c (process_rtx): Likewise.
25603 * config/mips/mips.h (mips_tune_attr): Delete.
25604 * config/mips/mips.md (cpu): Use define_attr_enum.
25606 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25608 * doc/md.texi (define_c_enum, define_enum): Document.
25609 * read-md.h (md_constant): Add a parent_enum field.
25610 (enum_value, enum_type): New structures.
25611 (upcase_string, traverse_enum_types): Declare.
25612 * read-md.c (enum_types): New variable.
25613 (upcase_string, add_constant): New functions.
25614 (handle_constants): Don't create the hash table here.
25616 (traverse_md_constants): Don't check for a null md_constants.
25617 (decimal_string, handle_enum, traverse_enum_types): New functions.
25618 (read_md_files): Initialize md_constants and md_enums.
25619 * genconstants.c (print_md_constant): Ignore info argument.
25620 Only print constants that belong to no enum.
25621 (print_enum_type): New function.
25622 (main): Don't pass stdout to print_md_constant. Call print_enum_type
25623 for each defined enum type.
25624 * config/mips/mips.md (processor): New define_enum.
25625 (unspec): New define_c_enum.
25626 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
25627 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
25628 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
25629 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
25630 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
25631 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
25632 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
25633 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
25634 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
25635 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
25636 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
25637 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
25638 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
25639 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
25640 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
25641 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
25642 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
25643 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
25644 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
25645 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
25646 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
25647 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
25648 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25649 (UNSPEC_RDDSP): Move to mips-dsp.md.
25650 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
25651 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
25652 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
25653 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
25654 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
25655 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
25656 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
25657 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
25658 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
25659 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
25660 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
25661 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
25662 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
25663 Moved to mips-dspr2.md.
25664 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
25665 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
25666 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
25667 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
25668 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
25669 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
25670 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
25671 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
25672 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
25673 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
25674 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
25675 UNSPEC_LOONGSON_PSADBH)
25676 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
25677 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
25678 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
25679 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
25680 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
25681 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
25682 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
25683 (cpu): Update comment.
25684 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
25685 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
25686 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
25687 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
25688 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
25689 UNSPEC_LOONGSON_PCMPEQ)
25690 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
25691 UNSPEC_LOONGSON_PINSR_0)
25692 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
25693 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
25694 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
25695 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
25696 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
25697 UNSPEC_LOONGSON_PSADBH)
25698 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
25699 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
25700 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
25701 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
25702 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
25703 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
25704 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
25705 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
25706 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
25707 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
25708 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
25709 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
25710 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
25711 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
25712 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
25713 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
25714 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
25715 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
25716 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
25717 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
25718 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
25719 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
25720 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
25721 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
25722 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
25723 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
25724 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25725 (UNSPEC_RDDSP): Moved from mips.md.
25726 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
25727 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
25728 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
25729 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
25730 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
25731 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
25732 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
25733 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
25734 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
25735 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
25736 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
25737 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
25738 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
25739 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
25740 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
25741 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
25742 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
25743 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
25744 (UNSPEC_SCC): Moved from mips.md.
25745 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
25746 "processor_type" to "processor".
25747 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
25748 * config/mips/mips.h (processor_type): Delete.
25749 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
25750 "processor_type" to "processor".
25752 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25754 * configure.ac (tm_include_list): Add insn-constants.h.
25755 * configure: Regenerate.
25756 * Makefile.in (GTM_H): Move insn-constants.h here from...
25758 * mkconfig.sh: Remove special handling for insn-constants.h.
25760 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25762 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
25763 (BUILD_MD): ...this new variable.
25764 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
25765 that include the old contents of simple_generated_h and
25766 simple_generated_c.
25767 (simple_generated_h, simple_generated_c): Include them. Add
25769 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
25770 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
25771 Remove these dependencies from the main rule and include
25772 insn-conditions.md in the command line only if it appears
25773 in the dependency list.
25774 (insn-constants.h, s-constants): Delete.
25775 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
25777 (build/genmddeps.o): Likewise.
25778 (genprogrtl): New variable that contains everything from genprogmd
25779 except mddeps and constants.
25780 (genprogmd): Redefine in terms of genprogrtl. Make these programs
25781 depend on $(BUILD_MD)
25782 (genprog): New variable. Make these programs depend on
25784 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
25785 (main): Use read_md_files instead of init_rtx_reader_args.
25786 * genconstants.c: As for genmddeps.c.
25787 * read-md.h (read_skip_construct): Declare.
25788 * read-md.c (read_skip_construct): New function.
25789 (handle_file): Allow a null handle_directive, skipping the
25791 (parse_include): Update the comment accordingly.
25793 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25795 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
25796 * genmddeps.c: Include read-md.h.
25797 (main): Call init_rtx_reader_args instead of init_md_reader_args.
25798 * genattr.c (main): Likewise.
25799 * genattrtab.c (main): Likewise.
25800 * genautomata.c (main): Likewise.
25801 * gencodes.c (main): Likewise.
25802 * genconditions.c (main): Likewise.
25803 * genconfig.c (main): Likewise.
25804 * genconstants.c (main): Likewise.
25805 * genemit.c (main): Likewise.
25806 * genextract.c (main): Likewise.
25807 * genflags.c (main): Likewise.
25808 * genopinit.c (main): Likewise.
25809 * genoutput.c (main): Likewise.
25810 * genpeep.c (main): Likewise.
25811 * genrecog.c (main): Likewise.
25812 * genpreds.c (main): Likewise.
25813 * gensupport.h (in_fname): Move to read-md.h.
25814 (init_md_reader_args_cb): Rename to...
25815 (init_rtx_reader_args_cb): ...this and return a bool.
25816 (init_md_reader_args): Rename to...
25817 (init_rtx_reader_args): ...this and return a bool.
25818 (include_callback): Move to read-md.h.
25819 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
25820 (file_name_list, first_dir_md_include): Move to read-md.c
25821 (first_bracket_include): Delete unused variable.
25822 (last_dir_md_include): Move to read-md.c.
25823 (process_include): Delete, moving code to read-md.c:handle_include.
25824 (process_rtx): Don't handle INCLUDE.
25825 (save_string): Delete.
25826 (rtx_handle_directive): New function.
25827 (init_md_reader_args_cb): Rename to...
25828 (init_rtx_reader_args_cb): ...this and return a boolean success value.
25830 (init_md_reader_args): Rename to...
25831 (init_rtx_reader_args): ...this and return a boolean success value.
25832 * rtl.def (INCLUDE): Delete.
25833 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
25835 * read-rtl.c (read_conditions): Don't gobble ')' here.
25836 (read_mapping): Likewise.
25837 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
25838 Handle top-level non-rtx constructs here rather than in read_rtx_1.
25839 Store the whole queue in *X. Remove call to init_md_reader.
25840 (read_rtx_1): Rename to...
25841 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
25842 Don't handle top-level non-rtx constructs here. Don't handle (nil)
25844 (read_nested_rtx): New function. Handle (nil) here rather than
25846 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
25848 * read-md.h (directive_handler_t): New type.
25849 (in_fname, include_callback): Moved from read-md.h.
25850 (read_constants, init_md_reader): Delete.
25851 (read_md_files): Declare.
25852 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
25853 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
25855 (read_constants): Rename to...
25856 (handle_constants): ...this. Don't gobble ')' here.
25857 (handle_include, handle_file, handle_toplevel_file)
25858 (parse_include): New functions, mostly taken from gensupport.c.
25859 (init_md_reader): Subsume into...
25860 (read_md_files): ...this new function.
25862 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25864 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
25865 (unread_char): Decrement read_md_lineno after putting back '\n'.
25866 * read-md.c (fatal_with_file_and_line): Push back any characters
25867 that we decide not to add to the context.
25868 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
25869 fatal_expected_char in cases where '/' ends a line (for example).
25870 (read_name): Don't increment read_md_lineno here.
25871 (read_escape): Likewise.
25872 (read_quoted_string): Likewise.
25873 (read_braced_string): Likewise.
25875 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25877 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
25878 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
25879 * genconstants.c: Include read-md.h.
25880 * read-rtl.c (md_constants): Move to read-md.c.
25881 (md_name): Move to read-md.h.
25882 (initialize_iterators): Use leading_string_hash instead of def_hash
25883 and leading_string_eq_p instead of def_name_eq_p.
25884 (read_name): Move to read-md.c.
25885 (def_hash, def_name_eq_p): Delete.
25886 (read_constants, traverse_md_constants): Move to read-md.c.
25887 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
25888 * read-md.h: Include hashtab.h.
25889 (md_name): Moved from read-rtl.c.
25890 (md_constant): Moved from read-md.h.
25891 (leading_string_hash, leading_string_eq_p, read_name)
25892 (read_constants, traverse_md_constants): Declare.
25893 * read-md.c (md_constants): Moved from read-rtl.c.
25894 (leading_string_hash, leading_string_eq_p): New functions.
25895 (read_name, read_constants, traverse_md_constants): Moved from
25898 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25900 * read-rtl.c (md_name): New structure.
25901 (read_name): Take an md_name instead of a buffer pointer.
25902 Use the "string" field instead of strcpy when expanding constants.
25903 (read_constants): Remove the tmp_char argument. Update the calls
25904 to read_name, using two local name buffers instead of the tmp_char
25905 argument. Merge the constant-creation code.
25906 (read_conditions): Remove the tmp_char argument. Update the calls
25907 to read_name, using a local name buffer instead of the tmp_char
25909 (read_mapping): Replace tmp_char variable with a local name buffer.
25910 Update the calls to read_name.
25911 (read_rtx_1): Likewise. Update the calls to read_constants and
25914 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25916 * Makefile.in (build/read-md.o): Depend on errors.h.
25917 * read-md.h (error_with_line): Declare.
25918 * read-md.c: Include errors.h.
25919 (message_with_line_1): New function, extracted from...
25920 (message_with_line): ...here.
25921 (error_with_line): New function.
25922 * genattrtab.c: If a call to message_with_line is followed by
25923 "have_error = 1;", replace both statements with a call to
25925 * genoutput.c: Likewise.
25926 * genpreds.c: Likewise.
25927 * genrecog.c: If a call to message_with_line is followed by
25928 "error_count++;", replace both statements with a call to
25930 (errorcount): Delete.
25931 (main): Don't check it.
25932 * gensupport.c: If a call to message_with_line is followed by
25933 "errors = 1;", replace both statements with a call to error_with_line.
25935 (process_define_cond_exec): Check have_error instead of errors.
25936 (init_md_reader_args_cb): Likewise. Don't set errors.
25938 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25940 * read-md.h (read_md_file): Declare.
25941 (read_char, unread_char): New functions.
25942 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25943 (read_quoted_string, read_string): Remove FILE * argument.
25944 * read-md.c (read_md_file): New variable.
25945 (read_md_filename, read_md_lineno): Update comments and remove
25946 unnecessary initialization.
25947 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25948 (read_escape, read_quoted_string, read_braced_string, read_string):
25949 Remove FILE * argument. Update calls accordingly, using read_char
25950 and unread_char instead of getc and ungetc.
25951 * rtl.h (read_rtx): Remove FILE * argument.
25952 * read-rtl.c (iterator_group): Remove FILE * argument from
25954 (iterator_traverse_data): Remove "infile" field.
25955 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
25956 (add_mapping, read_name, read_constants, read_conditions)
25957 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
25958 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
25959 Remove file arguments from all calls, using read_char and unread_char
25960 instead of getc and ungetc.
25961 * gensupport.c (process_include): Preserve read_md_file around
25962 the include. Set read_md_file to the handle of the included file.
25963 Update call to read_rtx.
25964 (init_md_reader_args_cb): Set read_md_file to the handle of the file
25965 and remove local FILE *. Update calls to read_rtx.
25967 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25969 * read-md.h (read_rtx_lineno): Rename to...
25970 (read_md_lineno): ...this.
25971 (read_rtx_filename): Rename to...
25972 (read_md_filename): ...this.
25973 (copy_rtx_ptr_loc): Rename to...
25974 (copy_md_ptr_loc): ...this.
25975 (print_rtx_ptr_loc): Rename to...
25976 (print_md_ptr_loc): ...this.
25977 * read-md.c: Likewise. Update references after renaming.
25978 (string_obstack): Replace RTL with MD in comment.
25979 (set_rtx_ptr_loc): Rename to...
25980 (set_md_ptr_loc): ...this.
25981 (get_rtx_ptr_loc): Rename to...
25982 (get_md_ptr_loc): ...this.
25983 * genconditions.c: Update references after renaming.
25984 * genemit.c: Likewise.
25985 * genoutput.c: Likewise.
25986 * genpreds.c: Likewise.
25987 * gensupport.c: Likewise.
25988 * read-rtl.c: Likewise.
25990 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25992 * Makefile.in (READ_MD_H): New variable.
25993 (BUILD_RTL): Add build/read-md.o.
25994 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
25995 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
25996 (build/genattrtab.o, build/genconditions.o build/genemit.o)
25997 (build/genextract.o, build/genflags.o, build/genoutput.o)
25998 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
25999 (build/read-md.o): New rule.
26000 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
26001 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
26002 * coretypes.h: ...here.
26003 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
26004 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
26005 * genattr.c: Include read-md.h.
26006 * genattrtab.c: Likewise.
26007 * genconditions.c: Likewise.
26008 * genemit.c: Likewise.
26009 * genextract.c: Likewise.
26010 * genflags.c: Likewise.
26011 * genoutput.c: Likewise.
26012 * genpreds.c: Likewise.
26013 * genrecog.c: Likewise.
26014 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
26015 (join_c_conditions, print_c_condition, read_rtx_filename)
26016 (read_rtx_lineno): Move to read-md.h.
26017 * read-rtl.c: Include read-md.h.
26018 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
26019 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
26020 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
26021 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
26022 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
26023 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
26024 (read_braced_string, read_string): Move to read-md.c.
26025 (read_rtx): Move some initialization to init_md_reader and call
26026 init_md_reader here.
26027 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
26029 * gensupport.c: Include read-md.h.
26030 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
26031 * read-md.h, read-md.c: New files.
26033 2010-06-10 Anatoly Sokolov <aesok@post.ru>
26035 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26036 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26037 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
26038 * config/moxie/moxie.c (moxie_function_value): Make static.
26039 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
26040 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26042 2010-06-10 Martin Jambor <mjambor@suse.cz>
26044 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
26045 * dbgcnt.def (tree_sra): New counter.
26046 * tree-sra.c: Include dbgcnt.h.
26047 (gate_intra_sra): Check tree_sra debug counter.
26049 2010-06-10 Martin Jambor <mjambor@suse.cz>
26051 PR tree-optimization/44258
26052 * tree-sra.c (build_access_subtree): Return false iff there is a
26054 (build_access_trees): Likewise.
26055 (analyze_all_variable_accesses): Disqualify candidates if
26056 build_access_trees returns true for them.
26058 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
26061 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
26062 tail-recurse into canonical node. Fast-forward over
26063 non-canonical VALUEs.
26065 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
26068 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
26069 (*addsi_1_zext) <TYPE_LEA>: Likewise.
26070 (add lea splitter): Likewise.
26071 (add_zext lea splitter): Likewise.
26073 2010-06-10 Joseph Myers <joseph@codesourcery.com>
26075 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
26077 2010-06-10 Jan Hubicka <jh@suse.cz>
26079 * df-problems.c (df_live_problem_data): Add live_bitmaps.
26080 (df_live_alloc): Initialize problem data and live_osbtacks.
26081 (df_live_finalize): Remove obstack, problem data; do not
26083 (df_live_top_dump, df_live_bottom_dump): Do not dump old
26084 data when not allocated.
26085 (df_live_verify_solution_start): Do not allocate problem data.
26086 (df_live_verify_solution_end): Check if out is allocated.
26087 (struct df_md_problem_data): New structure.
26088 (df_md_alloc): Allocate problem data.
26089 (df_md_free): Free problem data; do not clear bitmaps.
26091 2010-06-10 Jan Beulich <jbeulich@novell.com>
26094 * configure.ac: Replace $() with ${} when intending to expand
26095 variables rather than invoking commands.
26096 * configure: Re-generate.
26098 2010-06-10 Jan Hubicka <jh@suse.cz>
26100 PR rtl-optimization/44460
26101 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
26102 TYPE_NEEDS_CONSTRUCTING sanity check.
26104 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
26106 * doc/include/fdl.texi: Move to GFDL version 1.3.
26108 * doc/cpp.texi: Move to GFDL version 1.3.
26109 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
26110 * doc/gccint.texi: Move to GFDL version 1.3.
26111 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
26112 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
26113 * doc/invoke.texi: Move to GFDL version 1.3.
26115 2010-06-09 Jan Hubicka <jh@suse.cz>
26117 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
26119 (propagate) ... here; swap the order.
26121 2010-06-09 Jan Hubicka <jh@suse.cz>
26123 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
26124 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
26125 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
26126 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
26128 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
26130 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
26131 Do not the gather memory reference in the outer loop if the step
26134 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
26136 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
26137 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
26138 8 to 4. Minor change of the related comments.
26140 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
26142 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
26143 the scev analysis when the variable is not used outside the loop
26144 in a close phi node: call compute_overall_effect_of_inner_loop.
26146 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
26148 * graphite-sese-to-poly.c (single_pred_cond): Renamed
26149 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
26150 (build_sese_conditions_before): Renamed call to single_pred_cond.
26151 (build_sese_conditions_after): Same.
26153 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
26155 * graphite-poly.h: Fix comments and indentation.
26156 * graphite-sese-to-poly.c: Same.
26157 (build_sese_conditions_before): Compute stmt and gbb only when needed.
26158 * tree-chrec.c: Fix comments and indentation.
26159 (tree-ssa-loop-niter.c): Same.
26161 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
26163 PR rtl-optimization/42461
26164 * dce.c (deletable_insn_p): Return true for const or pure calls again.
26165 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
26167 2010-06-09 Jan Hubicka <jh@suse.cz>
26169 * bitmap.c (bitmap_and): Walk array forward.
26170 (bitmap_and_compl_into): Likewise.
26171 (bitmap_xor): Likewise.
26172 (bitmap_xor_into): Likewise.
26173 (bitmap_equal_p): Likewise.
26174 (bitmap_intersect_p): Likewise.
26175 (bitmap_intersect_compl_p): Likewise.
26176 (bitmap_ior_and_into): Likewise.
26177 (bitmap_elt_copy): Likewise.
26178 (bitmap_and_compl): Likewise.
26179 (bitmap_elt_ior): Likewise.
26181 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
26183 * opts-common.c (prune_options): Ensure replacement argv array
26184 is correctly terminated by a NULL entry.
26186 2010-06-09 Jan Hubicka <jh@suse.cz>
26188 * cgraph.h (varpool_first_static_initializer,
26189 varpool_next_static_initializer): Make checking only when
26191 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
26192 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
26193 gcc_assert to gcc_checking_assert.
26194 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
26195 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
26196 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
26197 op_iter_init_phiuse, op_iter_init_phidef,
26198 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
26199 gcc_checking_assert.
26200 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
26201 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
26202 partition_is_global, live_on_entry, live_on_exit,
26203 live_merge_and_clear): Likewise.
26204 * system.h (gcc_checking_assert): New macro.
26205 * gimple.h (set_bb_seq): Use gcc_checking_assert.
26207 2010-06-09 Jason Merrill <jason@redhat.com>
26209 * Makefile.in (TAGS): Collect tags info from c-family.
26211 2010-06-09 Jan Hubicka <jh@suse.cz>
26213 * gimple.h (gcc_gimple_checking_assert): New macro.
26214 (gimple_set_def_ops, gimple_set_use_ops,
26215 gimple_set_vuse, gimple_set_vdef,
26216 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
26217 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
26218 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
26219 gimple_asm_output_op, gimple_asm_output_op_ptr,
26220 gimple_asm_set_output_op, gimple_asm_clobber_op,
26221 gimple_asm_set_clobber_op, gimple_asm_label_op,
26222 gimple_asm_set_label_op, gimple_try_set_kind,
26223 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
26224 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
26225 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
26226 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
26227 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
26228 gimple_omp_for_set_initial, gimple_omp_for_final,
26229 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
26230 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
26231 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
26232 conditional with ENABLE_GIMPLE_CHECKING.
26233 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
26235 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
26237 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
26238 (get_computation_cost_at): Use it.
26239 (determine_use_iv_cost_condition): Likewise.
26240 (determine_iv_cost): Likewise.
26242 2010-06-09 Richard Guenther <rguenther@suse.de>
26244 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
26247 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
26249 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
26251 2010-06-09 Martin Jambor <mjambor@suse.cz>
26253 PR tree-optimization/44423
26254 * tree-sra.c (dump_access): Dump also grp_assignment_read.
26255 (analyze_access_subtree): Pass negative allow_replacements to children
26256 if the current type is scalar.
26258 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
26261 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
26262 * doc/plugins.texi (Plugin license check): Update information
26263 on type of plugin_is_GPL_compatible.
26264 * Makefile.in (PLUGINCC): Define as $(COMPILER).
26265 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
26267 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
26269 * config/arm/arm.c (thumb2_reorg): New function.
26270 (arm_reorg): Call it.
26271 * config/arm/thumb2.md (define_peephole2 for flag clobbering
26272 arithmetic operations): Delete.
26274 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
26277 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
26280 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
26283 * gcc-plugin.h: Encapsulate all declarations in extern "C".
26285 2010-06-08 Jan Hubicka <jh@suse.cz>
26287 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
26288 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
26290 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
26292 PR tree-optimization/39874
26293 PR middle-end/28685
26294 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
26296 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
26297 same_bool_result_p): New.
26298 (and_var_with_comparison, and_var_with_comparison_1,
26299 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
26300 (or_var_with_comparison, or_var_with_comparison_1,
26301 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
26302 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
26303 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
26304 of combine_comparisons.
26305 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
26307 2010-06-08 Anatoly Sokolov <aesok@post.ru>
26309 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26310 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26311 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
26312 pdp11_function_value_regno_p): New functions.
26313 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26314 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26316 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
26318 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
26319 Thumb-2 in the MINUS case.
26321 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26323 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
26325 * doc/gty.texi (GTY Options): Document typed GC allocation and
26326 variable_size GTY option.
26328 * ggc-internal.h: New.
26330 * ggc.h: Update copyright year.
26331 (digit_string): Move to stringpool.c.
26332 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
26333 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
26334 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
26335 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
26336 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
26337 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
26338 (ggc_force_collect, ggc_get_size, ggc_statistics)
26339 (ggc_print_common_statistics): Move to ggc-internal.h.
26340 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
26341 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
26342 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
26343 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
26344 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
26345 (ggc_alloc_zone_pass_stat): Remove.
26346 (ggc_internal_alloc_stat, ggc_internal_alloc)
26347 (ggc_internal_cleared_alloc_stat): New.
26348 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
26349 (ggc_internal_vec_alloc_stat)
26350 (ggc_internal_cleared_vec_alloc_stat)
26351 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
26352 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
26353 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
26354 (ggc_cleared_alloc_ptr_array_two_args): New.
26355 (htab_create_ggc, splay_tree_new_ggc): Redefine.
26356 (ggc_splay_alloc): Change the type of the first argument to
26357 enum gt_types_enum.
26358 (ggc_alloc_string): Make macro.
26359 (ggc_alloc_string_stat): New.
26360 (ggc_strdup): Redefine.
26361 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
26362 (ggc_alloc_rtvec_sized): New.
26363 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
26364 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
26365 (ggc_internal_cleared_alloc_zone_stat)
26366 (ggc_internal_zone_alloc_stat)
26367 (ggc_internal_zone_cleared_alloc_stat)
26368 (ggc_internal_zone_vec_alloc_stat)
26369 (ggc_alloc_zone_rtx_def_stat)
26370 (ggc_alloc_zone_tree_node_stat)
26371 (ggc_alloc_zone_cleared_tree_node_stat)
26372 (ggc_alloc_cleared_gimple_statement_d_stat): New.
26374 * ggc-common.c: Include ggc-internal.h.
26375 (ggc_internal_cleared_alloc_stat): Rename from
26376 ggc_alloc_cleared_stat.
26377 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
26378 (ggc_calloc): Remove.
26379 (ggc_cleared_alloc_htab_ignore_args): New.
26380 (ggc_cleared_alloc_ptr_array_two_args): New.
26381 (ggc_splay_alloc): Add obj_type parameter.
26382 (init_ggc_heuristics): Formatting fixes.
26384 * ggc-none.c: Update copyright year.
26385 (ggc_alloc_stat): Rename to ggc_alloc_stat.
26386 (ggc_alloc_cleared_stat): Rename to
26387 ggc_internal_cleared_alloc_stat.
26388 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
26390 * ggc-page.c: Update copyright year. Include ggc-internal.h.
26391 Remove references to ggc_alloc in comments.
26392 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
26393 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
26394 (new_ggc_zone, destroy_ggc_zone): Remove.
26395 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
26397 * ggc-zone.c: Include ggc-internal.h. Remove references to
26398 ggc_alloc in comments.
26399 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
26400 (ggc_internal_alloc_zone_pass_stat): New.
26401 (ggc_internal_cleared_alloc_zone_stat): New.
26402 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
26403 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
26404 (new_ggc_zone, destroy_ggc_zone): Remove.
26406 * stringpool.c: Update copyright year. Include ggc-internal.h
26407 (digit_vector): Make static.
26408 (digit_string): Moved from ggc.h.
26409 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
26410 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
26412 * Makefile.in (GGC_INTERNAL_H): New.
26413 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
26414 $(GGC_INTERNAL_H) to dependencies.
26416 * gengtype.c: Update copyright year.
26417 (walk_type): Accept variable_size GTY option.
26418 (USED_BY_TYPED_GC_P): New macro.
26419 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
26420 whitespace at the end of strings.
26421 (get_type_specifier, variable_size_p): New functions.
26422 (alloc_quantity, alloc_zone): New enums.
26423 (write_typed_alloc_def): New function.
26424 (write_typed_struct_alloc_def): Likewise.
26425 (write_typed_typed_typedef_alloc_def): Likewise.
26426 (write_typed_alloc_defns): Likewise.
26427 (output_typename, write_splay_tree_allocator_def): Likewise.
26428 (write_splay_tree_allocators): Likewise.
26429 (main): Call write_typed_alloc_defns and
26430 write_splay_tree_allocators.
26432 * lto-streamer.h (lto_file_decl_data_ptr): New.
26434 * passes.c (order): Define using cgraph_node_ptr.
26436 * strinpool.c (struct string_pool_data): Declare nested_ptr using
26439 * gimple.h (union gimple_statement_d): Likewise.
26441 * rtl.h (struct rtx_def): Likewise.
26442 (struct rtvec_def): Likewise.
26444 * tree.h (union tree_node): Likewise.
26446 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
26448 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
26450 * tree-scalar-evolution.c (scev_initialize): Likewise.
26452 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
26454 * dwarf2asm.c (dw2_force_const_mem): Likewise.
26456 * omp-low.c (lower_omp_critical): Likewise.
26458 * bitmap.h (struct bitmap_head_def): Update comment to not
26459 reference ggc_alloc.
26461 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
26463 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
26465 * ipa-prop.c (duplicate_ggc_array): Rename to
26466 duplicate_ipa_jump_func_array. Use typed GC allocation.
26467 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
26469 * gimple.c (gimple_alloc_stat): Use
26470 ggc_alloc_cleared_gimple_statement_d_stat.
26472 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
26474 * tree.c (make_node_stat): Use
26475 ggc_alloc_zone_cleared_tree_node_stat.
26476 (make_tree_vec_stat): Likewise.
26477 (build_vl_exp_stat): Likewise.
26478 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
26479 (make_tree_binfo_stat): Likewise.
26480 (tree_cons_stat): Likewise.
26482 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
26483 (shallow_copy_rtx_stat): Likewise.
26484 (make_node_stat): Likewise.
26486 * lto-symtab.c: Fix comment.
26488 * tree-cfg.c (create_bb): Update comment to not reference
26490 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
26492 * varpool.c (varpool_node): Use typed GC allocation.
26493 (varpool_extra_name_alias): Likewise.
26495 * varasm.c (emutls_decl): Likewise.
26496 (get_unnamed_section): Likewise.
26497 (get_noswitch_section): Likewise.
26498 (get_section): Likewise.
26499 (get_block_for_section): Likewise.
26500 (build_constant_desc): Likewise.
26501 (create_constant_pool): Likewise.
26502 (force_const_mem): Likewise.
26504 * tree.c (build_vl_exp_stat): Likewise.
26505 (build_real): Likewise.
26506 (build_string): Likewise.
26507 (decl_debug_expr_insert): Likewise.
26508 (decl_value_expr_insert): Likewise.
26509 (type_hash_add): Likewise.
26510 (build_omp_clause): Likewise.
26512 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
26514 * tree-ssa.c (init_tree_ssa): Likewise.
26516 * tree-ssa-structalias.c (heapvar_insert): Likewise.
26518 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
26520 * tree-ssa-loop-niter.c (record_estimate): Likewise.
26522 * tree-ssa-alias.c (get_ptr_info): Likewise.
26524 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
26526 * tree-phinodes.c (allocate_phi_node): Likewise.
26528 * tree-iterator.c (tsi_link_before): Likewise.
26529 (tsi_link_after): Likewise.
26531 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
26533 * tree-dfa.c (create_var_ann): Likewise.
26535 * tree-cfg.c (create_bb): Likewise.
26537 * toplev.c (alloc_for_identifier_to_locale): Likewise.
26538 (general_init): Likewise.
26540 * stringpool.c (stringpool_ggc_alloc): Likewise.
26541 (gt_pch_save_stringpool): Likewise.
26543 * sese.c (if_region_set_false_region): Likewise.
26545 * passes.c (do_per_function_toporder): Likewise.
26547 * optabs.c (set_optab_libfunc): Likewise.
26548 (set_conv_libfunc): Likewise.
26550 * lto-symtab.c (lto_symtab_register_decl): Likewise.
26552 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
26553 (input_eh_region): Likewise.
26554 (input_eh_lp): Likewise.
26555 (make_new_block): Likewise.
26556 (unpack_ts_real_cst_value_fields): Likewise.
26558 * lto-section-in.c (lto_new_in_decl_state): Likewise.
26560 * lto-cgraph.c (input_node_opt_summary): Likewise.
26562 * loop-init.c (loop_optimizer_init): Likewise.
26564 * lambda.h (lambda_vector_new): Likewise.
26566 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
26568 * ira.c (update_equiv_regs): Likewise.
26570 * ipa.c (cgraph_node_set_new): Likewise.
26571 (cgraph_node_set_add): Likewise.
26572 (varpool_node_set_new): Likewise.
26573 (varpool_node_set_add): Likewise.
26575 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
26576 (duplicate_ipa_jump_func_array): Likewise.
26577 (ipa_read_node_info): Likewise.
26579 * ipa-cp.c (ipcp_create_replace_map): Likewise.
26581 * integrate.c (get_hard_reg_initial_val): Likewise.
26583 * gimple.c (gimple_alloc_stat): Likewise.
26584 (gimple_build_omp_for): Likewise.
26585 (gimple_seq_alloc): Likewise.
26586 (gimple_copy): Likewise.
26588 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
26589 (gsi_insert_after_without_update): Likewise.
26591 * function.c (add_frame_space): Likewise.
26592 (insert_temp_slot_address): Likewise.
26593 (assign_stack_temp_for_type): Likewise.
26594 (allocate_struct_function): Likewise.
26595 (types_used_by_var_decl_insert): Likewise.
26597 * except.c (init_eh_for_function): Likewise.
26598 (gen_eh_region): Likewise.
26599 (gen_eh_region_catch): Likewise.
26600 (gen_eh_landing_pad): Likewise.
26601 (add_call_site): Likewise.
26603 * emit-rtl.c (get_mem_attrs): Likewise.
26604 (get_reg_attrs): Likewise.
26605 (start_sequence): Likewise.
26606 (init_emit): Likewise.
26608 * dwarf2out.c (new_cfi): Likewise.
26609 (queue_reg_save): Likewise.
26610 (dwarf2out_frame_init): Likewise.
26611 (new_loc_descr): Likewise.
26612 (find_AT_string): Likewise.
26613 (new_die): Likewise.
26614 (add_var_loc_to_decl): Likewise.
26615 (clone_die): Likewise.
26616 (clone_as_declaration): Likewise.
26617 (break_out_comdat_types): Likewise.
26618 (new_loc_list): Likewise.
26619 (loc_descriptor): Likewise.
26620 (add_loc_descr_to_each): Likewise.
26621 (add_const_value_attribute): Likewise.
26622 (tree_add_const_value_attribute): Likewise.
26623 (add_comp_dir_attribute): Likewise.
26624 (add_name_and_src_coords_attributes): Likewise.
26625 (lookup_filename): Likewise.
26626 (store_vcall_insn): Likewise.
26627 (dwarf2out_init): Likewise.
26629 * dbxout.c (dbxout_init): Likewise.
26631 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
26633 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
26635 * config/score/score7.c (score7_output_external): Likewise.
26637 * config/score/score3.c (score3_output_external): Likewise.
26639 * config/s390/s390.c (s390_init_machine_status): Likewise.
26641 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
26642 (rs6000_init_machine_status): Likewise.
26643 (output_toc): Likewise.
26645 * config/pa/pa.c (pa_init_machine_status): Likewise.
26646 (get_deferred_plabel): Likewise.
26648 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
26650 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
26652 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
26654 * config/mep/mep.c (mep_init_machine_status): Likewise.
26655 (mep_note_pragma_flag): Likewise.
26657 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
26659 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
26661 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
26663 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
26664 (i386_pe_maybe_record_exported_symbol): Likewise.
26666 * config/i386/i386.c (get_dllimport_decl): Likewise.
26667 (ix86_init_machine_status): Likewise.
26668 (assign_386_stack_local): Likewise.
26670 * config/frv/frv.c (frv_init_machine_status): Likewise.
26672 * config/darwin.c (machopic_indirection_name): Likewise.
26674 * config/cris/cris.c (cris_init_machine_status): Likewise.
26676 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
26678 * config/avr/avr.c (avr_init_machine_status): Likewise.
26680 * config/arm/arm.c (arm_init_machine_status): Likewise.
26682 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
26683 (alpha_need_linkage): Likewise.
26684 (alpha_use_linkage): Likewise.
26686 * cgraph.c (cgraph_allocate_node): Likewise.
26687 (cgraph_create_edge_1): Likewise.
26688 (cgraph_create_indirect_edge): Likewise.
26689 (cgraph_add_asm_node): Likewise.
26691 * cfgrtl.c (init_rtl_bb_info): Likewise.
26693 * cfgloop.c (alloc_loop): Likewise.
26694 (rescan_loop_exit): Likewise.
26696 * cfg.c (init_flow): Likewise.
26697 (alloc_block): Likewise.
26698 (unchecked_make_edge): Likewise.
26700 * c-parser.c (c_parse_init): Likewise.
26701 (c_parse_file): Likewise.
26703 * c-decl.c (bind): Likewise.
26704 (record_inline_static): Likewise.
26705 (push_scope): Likewise.
26706 (make_label): Likewise.
26707 (lookup_label_for_goto): Likewise.
26708 (finish_struct): Likewise.
26709 (finish_enum): Likewise.
26710 (c_push_function_context): Likewise.
26712 * bitmap.c (bitmap_element_allocate): Likewise.
26713 (bitmap_gc_alloc_stat): Likewise.
26715 * alias.c (record_alias_subset): Likewise.
26716 (init_alias_analysis): Likewise.
26718 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
26720 * fold-const.c (fold_comparison): Remove redundant parenthesis.
26721 * tree-inline.c (expand_call_inline): Pass translated return value of
26722 cgraph_inline_failed_string to diagnostic function.
26724 2010-06-08 Andrew Pinski <pinskia@gmail.com>
26725 Shujing Zhao <pearly.zhao@oracle.com>
26728 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
26729 implicit bad conversions is initialization.
26730 (error_init): Use gmsgid instead of msgid for argument name and change
26731 the call for error.
26732 (pedwarn_init): Use gmsgid instead of msgid for argument name and
26733 change the call for pedwarn.
26734 (warning_init): Use gmsgid instead of msgid for argument name and
26735 change the call for warning.
26737 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
26739 * config/mips/mips-protos.h (mips_print_operand): Delete.
26740 (mips_print_operand_address): Delete.
26741 * config/mips/mips.h (mips_print_operand_punct): Delete.
26742 (PRINT_OPERAND): Delete.
26743 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26744 (PRINT_OPERAND_ADDRESS): Delete.
26745 * config/mips/mips.c (mips_print_operand_punct): Make static.
26746 (mips_print_operand_address): Make static.
26747 (mips_print_operand): Make static. Call
26748 mips_print_operand_punct_valid_p.
26749 (mips_print_operand_punct_valid_p): New function.
26750 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26751 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26753 2010-06-07 Jan Hubicka <jh@suse.cz>
26755 PR middle-end/44454
26756 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
26759 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
26761 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
26764 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26766 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26767 attributes): Document gas.
26769 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
26771 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
26772 <TYPE_LEA>: Split instruction.
26773 <default>: Remove alternative 2 handling.
26774 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
26775 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
26776 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
26778 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
26779 (ashift_zext lea splitter): Use DImode for multiplication.
26781 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
26782 to generate addition.
26784 2010-06-07 Joseph Myers <joseph@codesourcery.com>
26786 * common.opt (fira-verbose): Use Var.
26787 (fpcc-struct-return): Use Init instead of VarExists.
26788 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
26790 * flags.h (flag_signed_char, flag_short_enums,
26791 flag_pcc_struct_return, flag_ira_verbose,
26792 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
26793 * toplev.c (flag_detailed_statistics, flag_signed_char,
26794 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
26795 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
26796 * toplev.h (flag_crossjumping, flag_if_conversion,
26797 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
26798 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
26799 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
26800 flag_cprop_registers, time_report, flag_ira_loop_pressure,
26801 flag_ira_coalesce, flag_ira_move_spills,
26802 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
26804 2010-06-07 Jan Hubicka <jh@suse.cz>
26806 * df-core.c (df_analyze_problem): Do verification after allocation.
26808 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
26809 (df_lr_alloc): Initialize problem data; move bitmaps to
26810 lr_bitmaps obstack.
26811 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
26812 (df_lr_verify_solution_start): Do not initialize problem data;
26813 allocate bitmaps in lr_bitmaps.
26814 (df_lr_verify_solution_end): Do not free problem data.
26816 2010-06-07 Jan Hubicka <jh@suse.cz>
26818 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
26819 if caller is noreturn.
26820 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
26821 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
26822 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
26823 * ipa-pure-const.c (check_decl): Add IPA parameter.
26824 (state_from_flags): New function.
26825 (better_state, worse_state): New functions.
26826 (check_call): When in IPA mode, do not care about callees.
26827 (check_load, check_store): Update.
26828 (check_ipa_load, check_ipa_store): New.
26829 (check_stmt): When in IPA mode, use IPA checkers.
26830 (analyze_function): Use state_from_flags.
26831 (propagate): Check indirect edges and references.
26833 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
26835 PR rtl-optimization/44404
26836 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
26837 of count_occurrences to see if it's safe to modify mem_insn.
26839 2010-06-07 Richard Guenther <rguenther@suse.de>
26841 * gimplify.c (gimplify_cleanup_point_expr): For empty body
26842 and EH-only cleanup drop the cleanup instead of inserting it
26845 2010-06-07 Ira Rosen <irar@il.ibm.com>
26847 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
26849 * targhooks.c (default_builtin_vectorization_cost): New function.
26850 * targhooks.h (default_builtin_vectorization_cost): Declare.
26851 * target.h (enum vect_cost_for_stmt): Define.
26852 (builtin_vectorization_cost): Change argument and comment.
26853 * tree-vectorizer.h: Remove cost model macros.
26854 * tree-vect-loop.c: Include target.h.
26855 (vect_get_cost): New function.
26856 (vect_estimate_min_profitable_iters): Replace cost model macros with
26857 calls to vect_get_cost.
26858 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
26859 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
26860 default implementation.
26861 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
26862 calls to target hook builtin_vectorization_cost.
26863 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
26865 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
26866 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
26867 implementation to return costs.
26868 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
26869 * config/spu/spu.h: Remove vectorizer cost model macros.
26870 * config/i386/i386.h: Likewise.
26871 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
26872 a call to target hook builtin_vectorization_cost.
26874 2010-06-06 Sriraman Tallam <tmsriram@google.com>
26877 * config/i386/i386.c (override_options): Turn zee pass on for level 2
26878 and above and defer till target is known.
26879 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
26880 turn off otherwise.
26882 2010-05-25 Jan Hubicka <jh@suse.cz>
26884 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
26885 (df_compact_blocks): Likewise.
26886 * df.h (struct df): Turn hardware_regs_used,
26887 regular_block_artificial_uses, eh_block_artificial_uses,
26888 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
26890 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
26891 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
26892 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
26893 df_scan_blocks, df_insn_delete, df_insn_rescan,
26894 df_insn_rescan_debug_internal, df_insn_rescan_all,
26895 df_process_deferred_rescans, df_process_deferred_rescans,
26896 df_notes_rescan, df_get_call_refs, df_get_call_refs,
26897 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
26898 df_record_entry_block_defs, df_record_exit_block_uses,
26899 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
26900 df_scan_verify): Update.
26902 2010-05-25 Dodji Seketeli <dodji@redhat.com>
26905 * c-common.c (is_typedef_decl): Move this definition ...
26906 * tree.c (is_typedef_decl): ... here.
26907 (typdef_variant_p): Move definition here from cp/tree.c.
26908 * c-common.h (is_typedef_decl): Move this declaration ...
26909 * tree.h (is_typedef_decl): ... here.
26910 (typedef_variant_p): Move declaration here from cp/cp-tree.h
26911 * dwarf2out.c (is_naming_typedef_decl): New function.
26912 (gen_tagged_type_die): Split out of ...
26913 (gen_type_die_with_usage): ... this function. When an anonymous
26914 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26915 is emitted for the typedef.
26916 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26917 anonymous tagged types.
26919 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
26922 * c-decl.c (grokdeclarator): Delete warning.
26924 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
26926 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
26927 newly built CALL_EXPR.
26928 * tree-profile.c (tree_profiling): Don't profile functions produced
26929 for built-in stuff.
26931 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
26935 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
26936 endianness-independent.
26938 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
26940 * c-common.c: Move to c-family/.
26941 * c-common.def: Likewise.
26942 * c-common.h: Likewise.
26943 * c-cppbuiltin.c: Likewise.
26944 * c-dump.c: Likewise.
26945 * c-format.c: Likewise.
26946 * c-format.h : Likewise.
26947 * c-gimplify.c: Likewise.
26948 * c-lex.c: Likewise.
26949 * c-omp.c: Likewise.
26951 * c-opts.c: Likewise.
26952 * c-pch.c: Likewise.
26953 * c-ppoutput.c: Likewise.
26954 * c-pragma.c: Likewise.
26955 * c-pragma.h: Likewise.
26956 * c-pretty-print.c: Likewise.
26957 * c-pretty-print.h: Likewise.
26958 * c-semantics.c: Likewise.
26959 * stub-objc.c: Likewise.
26961 * gengtype.c (get_file_langdir): Special-case files in c-family/.
26962 (get_output_file_with_visibility): Fix name for c-common.h.
26963 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
26965 * c-tree.h: Update include path for moved files.
26966 * c-lang.c: Likewise.
26967 * c-lang.h: Likewise.
26968 * c-parser.c: Likewise.
26969 * c-convert.c: Likewise.
26970 * c-decl.c: Likewise.
26971 * c-objc-common.c: Likewise.
26972 * configure.ac: Make sure c-family/ exists in the build directory.
26973 * configure: Regenerate.
26974 * Makefile.in: Update paths for moved files. Regroup files per
26975 location and update dependencies. Move generated_files down after
26978 * config/spu/spu-c.c: Update paths for moved files.
26979 * config/mep/mep-pragma.c: Likewise.
26980 * config/darwin-c.c: Likewise.
26981 * config/i386/msformat-c.c: Likewise.
26982 * config/i386/i386-c.c: Likewise.
26983 * config/avr/avr-c.c: Likewise.
26984 * config/sol2-c.c: Likewise.
26985 * config/ia64/ia64-c.c: Likewise.
26986 * config/rs6000/rs6000-c.c: Likewise.
26987 * config/arm/arm.c: Likewise.
26988 * config/arm/arm-c.c: Likewise.
26989 * config/h8300/h8300.c: Likewise.
26990 * config/v850/v850-c.c: Likewise.
26992 * config/t-darwin: Fix dependencies for moved files.
26993 * config/t-sol2: Fix dependencies for moved files.
26994 * config/mep/t-mep: Fix dependencies for moved files.
26995 * config/ia64/t-ia64: Fix dependencies for moved files.
26996 * config/rs6000/t-rs6000: Fix dependencies for moved files.
26997 * config/v850/t-v850: Fix dependencies for moved files.
26998 * config/v850/t-v850e: Fix dependencies for moved files.
27000 * config/m32c/m32c-pragma.c
27002 * po/exgettext: Look in c-family/ also.
27004 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
27006 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
27007 (mark_control_dependent_edges_necessary): Call it instead of marking
27008 the last statement manually.
27009 (propagate_necessity): Likewise.
27011 2010-06-05 Jan Hubicka <jh@suse.cz>
27013 * basic-block.h (compute_dominance_frontiers): Updated.
27014 (compute_idf): Likewise.
27016 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
27017 for dominance frontiers.
27018 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
27019 (insert_updated_phi_nodes_for): Likewise.
27020 (update_ssa): Likewise.
27021 * cfganal.c (compute_dominance_frontiers_1): Likewise.
27022 (compute_dominance_frontiers): Likewise.
27023 (compute_idf): Likewise.
27024 * df-problems.c (df_md_local_compute): Likewise.
27026 2010-06-05 Anatoly Sokolov <aesok@post.ru>
27028 * target.h (struct gcc_target): Add memory_move_cost field.
27029 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
27030 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
27031 * targhooks.c (default_memory_move_cost): New function.
27032 * targhooks.h (default_memory_move_cost): Declare function.
27033 * reload.h (memory_move_cost): Declare.
27034 (memory_move_secondary_cost): Change type of 'in' argument to bool.
27035 * reginfo.c (memory_move_cost): New function.
27036 (memory_move_secondary_cost): Change type of 'in' argument to bool.
27037 * ira.h (ira_memory_move_cost): Update comment.
27038 * ira.c (ira_memory_move_cost): Update comment.
27039 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
27040 with memory_move_cost.
27041 * postreload.c (reload_cse_simplify_set): (Ditto.).
27042 * reload1.c (choose_reload_regs): (Ditto.).
27043 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
27044 (MEMORY_MOVE_COST): Revise documentation.
27046 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
27047 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
27048 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
27049 type of 'in' argument to bool.
27050 (TARGET_MEMORY_MOVE_COST): Define.
27052 2010-06-05 Jan Hubicka <jh@suse.cz>
27054 * ipa-pure-const.c (propagate): Fix typo in handling of functions
27055 that cannot return. Be more careful when merging the results with
27056 previously known ones.
27058 2010-06-05 Matthias Klose <doko@ubuntu.com>
27060 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
27061 function to add the -iplugindir option.
27062 (find_plugindir_spec_function): Add new declaration and function.
27063 (static_spec_func): Use it for "find-plugindir".
27065 2010-06-05 Jakub Jelinek <jakub@redhat.com>
27068 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
27069 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
27070 statement expression.
27072 2010-06-05 Jan Hubicka <jh@suse.cz>
27074 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
27075 (df_rd_problem_data): Convert sparse_invalidated_by_call,
27076 dense_invalidated_by_call to bitmap head.
27077 (df_rd_alloc, df_rd_bb_local_compute_process_def,
27078 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
27079 df_rd_start_dump, df_lr_verify_transfer_functions,
27080 df_live_verify_transfer_functions, df_chain_create_bb,
27081 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
27082 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
27083 df_simulate_one_insn_forwards, df_md_alloc,
27084 df_md_bb_local_compute_process_def,
27085 df_md_bb_local_compute_process_def, df_md_local_compute,
27086 df_md_transfer_function df_md_free): Update.
27088 2010-06-05 Joseph Myers <joseph@codesourcery.com>
27091 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
27092 target type for ADDR_EXPR; require no changes to qualifiers except
27093 for function types.
27094 * c-tree.h (c_build_type_variant): Remove.
27096 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
27098 * genautomata.c (get_excl_set): Do work per element, not per char.
27099 (check_presence_pattern_sets): Similar.
27100 (check_absence_pattern_sets): Similar.
27102 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
27104 * genautomata.c (curr_state_pass_num): Delete.
27105 (min_issue_delay_pass_states): Delete.
27106 (min_issue_delay): Delete.
27107 (initiate_min_issue_delay_pass_states): Delete.
27108 (output_min_issue_delay_table): Compute min_issue_delay_vect
27109 using a breadth-first search variant.
27110 (output_tables): Don't call initiate_min_issue_delay_pass_states.
27112 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
27115 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
27116 (df_byte_lr_bb_local_compute): Likewise.
27118 2010-06-03 Jason Merrill <jason@redhat.com>
27120 Implement noexcept operator (5.3.7)
27121 * c-common.c (c_common_reswords): Add noexcept.
27122 * c-common.h (enum rid): Add RID_NOEXCEPT.
27124 2010-06-04 Joseph Myers <joseph@codesourcery.com>
27126 * config/darwin-driver.c (darwin_default_min_version): Use
27127 GCC-specific formats in diagnostics.
27128 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
27130 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
27131 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
27132 eval_spec_function, handle_braces, process_brace_body, main,
27133 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
27134 getenv_spec_function, compare_version_strings,
27135 version_compare_spec_function): Use GCC-specific formats in
27138 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
27140 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
27141 that operand 0 and operand 1 are equal.
27142 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
27143 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
27144 and operand 1 are equal.
27145 <default>: Ditto. Remove ??? comment.
27146 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
27147 and operand 1 are equal.
27148 <default>: Ditto. Remove ??? comment.
27149 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
27151 (*add<mode>_4) <default>: Ditto.
27152 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
27154 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
27156 * config/i386/i386-protos.h (ix86_print_operand): Declare.
27157 * config/i386/i386.c (ix86_print_operand): Make non-static.
27158 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
27159 * output.h (output_operand): Declare.
27160 * final.c (output_operand): Make non-static.
27162 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
27164 PR rtl-optimization/44013
27165 * sched-deps.c (add_dependence_list_and_free): Don't free lists
27166 when processing debug insns.
27169 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
27170 recursing. Check that recursion is bounded. Rename inner var
27171 to avoid hiding incoming argument.
27173 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
27175 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
27176 operands[2] == 255.
27180 (*addqi_ext_1_rex64): Ditto.
27181 (*addqi_ext_1): Ditto.
27183 (*addqi_4): Check for incdec_operand in QImode.
27185 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
27186 using SWI mode iterator.
27187 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
27188 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
27190 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
27191 using SWI mode iterator.
27193 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
27196 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
27197 * c-format.c (gcc_diag_flag_specs): Add hash.
27198 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
27199 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
27200 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
27201 pp_c_cv_qualifiers. Handle qualifiers spelling here.
27202 (pp_c_type_qualifier_list): Call the function above.
27203 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
27204 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
27205 (WARN_FOR_QUALIFIERS): New macro.
27206 (convert_for_assignment): Use it.
27208 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
27210 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
27212 2010-06-04 Jan Hubicka <jh@suse.cz>
27214 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
27215 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
27216 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
27217 DF_BYTE_LR_OUT): Update for embedded bitmaps.
27218 * fwprop.c (single_def_use_enter_block): Likewise.
27219 * ddg.c (create_ddg_dep_from_intra_loop_link,
27220 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
27221 * loop-iv.c (latch_dominating_def): Likewise.
27222 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
27223 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
27224 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
27225 df_rd_transfer_function, df_rd_top_dump,
27226 df_rd_bottom_dump): Update.
27227 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
27228 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
27229 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
27230 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
27231 df_lr_verify_solution_start, df_lr_verify_solution_end,
27232 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
27233 df_live_free_bb_info, df_live_alloc, df_live_reset,
27234 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
27235 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
27236 df_live_verify_solution_start, df_live_verify_solution_end,
27237 df_live_verify_transfer_functions, df_chain_create_bb,
27238 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
27239 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
27240 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
27241 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
27242 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
27243 df_byte_lr_transfer_function, df_byte_lr_top_dump,
27244 df_byte_lr_bottom_dump, df_create_unused_note,
27245 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
27246 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
27247 df_md_transfer_function, df_md_init, df_md_confluence_0,
27248 df_md_confluence_n,
27249 df_md_top_dump, df_md_bottom_dump): Update.
27250 (struct df_lr_problem_data): Embedd bitmap headers.
27252 2010-06-04 Jan Hubicka <jh@suse.cz>
27254 * dce.c (dce_process_block): Do not re-scan already marked
27257 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
27259 PR rtl-optimization/39871
27260 PR rtl-optimization/40615
27261 PR rtl-optimization/42500
27262 PR rtl-optimization/42502
27263 * ira.c (init_reg_equiv_memory_loc: New function.
27264 (ira): Call it twice.
27265 * reload.h (calculate_elim_costs_all_insns): Declare.
27266 * ira-costs.c: Include "reload.h".
27267 (regno_equiv_gains): New static variable.
27268 (init_costs): Allocate it.
27269 (finish_costs): Free it.
27270 (ira_costs): Call calculate_elim_costs_all_insns.
27271 (find_costs_and_classes): Take estimated elimination costs
27273 (ira_adjust_equiv_reg_cost): New function.
27274 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
27275 * reload1.c (init_eliminable_invariants, free_reg_equiv,
27276 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
27277 (elim_bb): New static variable.
27278 (reload): Move code out of here into init_eliminable_invariants and
27279 free_reg_equiv. Call them.
27280 (calculate_elim_costs_all_insns): New function.
27281 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
27282 all callers changed. If FOR_COSTS is true, don't call alter_reg,
27283 but call note_reg_elim_costly if we turned a valid memory address
27284 into an invalid one.
27285 * Makefile.in (ira-costs.o): Depend on reload.h.
27287 2010-06-04 Julian Brown <julian@codesourcery.com>
27289 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
27292 2010-06-04 Richard Guenther <rguenther@suse.de>
27295 * cgraph.h (struct varpool_node): Add lto_file_data field.
27296 * lto-cgraph.c (input_varpool_node): Initialize it.
27298 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
27300 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
27301 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
27302 predicate in "type" attribute calculation.
27303 (*addsi_1_zext): Ditto.
27304 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
27305 (*addsi_2_zext): Ditto.
27306 (*add<mode>_3): Ditto.
27307 (*addsi_3_zext): Ditto.
27308 (*add<mode>_5): Ditto.
27310 2010-06-03 Jan Hubicka <jh@suse.cz>
27312 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
27314 * cfganal.c (compute_dominance_frontiers_1): Likewise.
27316 2010-06-03 Jan Hubicka <jh@suse.cz>
27318 * df-problems.c (df_create_unused_note, df_note_bb_compute):
27319 micro-optimize the checks when to add new note.
27321 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
27323 * final.c (output_asm_insn): Call
27324 targetm.asm_out.print_operand_punct_valid_p. Update comments.
27325 (output_operand): Call targetm.asm_out.print_operand. Update comments.
27326 (output_address): Call targetm.asm_out.print_operand_address.
27328 * target.h (struct gcc_target): Add print_operand,
27329 print_operand_address, and print_operand_punct_valid_p fields.
27330 * targhooks.h (default_print_operand): Declare.
27331 (default_print_operand_address): Declare.
27332 (default_print_operand_punct_valid_p): Declare.
27333 * targhooks.c (default_print_operand): Define.
27334 (default_print_operand_address): Define.
27335 (default_print_operand_punct_valid_p): Define.
27336 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
27337 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
27338 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
27339 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
27340 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
27341 * vmsdbgout.c (addr_const_to_string): Update comment.
27342 * config/i386/i386.c (print_operand): Rename to...
27343 (ix86_print_operand): ...this. Make static.
27344 (print_operand_address): Rename to...
27345 (ix86_print_operand_address): ...this. Make static. Call
27346 ix86_print_operand instead of PRINT_OPERAND.
27347 (ix86_print_operand_punct_valid_p): New function.
27348 (TARGET_PRINT_OPERAND): Define.
27349 (TARGET_PRINT_OPERAND_ADDRESS): Define.
27350 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
27351 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
27352 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
27353 (PRINT_OPERAND): Delete.
27354 (PRINT_OPERAND_ADDRESS): Delete.
27355 * config/i386/i386-protos.h (print_operand): Delete prototype.
27356 (print_operand_address): Delete prototype.
27358 2010-06-03 Richard Guenther <rguenther@suse.de>
27360 PR tree-optimization/44403
27361 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27362 Preserve pointer qualifiers.
27363 (vect_create_data_ref_ptr): Likewise.
27365 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
27368 * defaults.h (MAX_FIXED_MODE_SIZE): New.
27370 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
27372 2010-06-03 Jakub Jelinek <jakub@redhat.com>
27375 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
27376 return false if merging the bbs would lead to goto_locus
27377 location being lost from the IL.
27379 2010-06-03 Jan Hubicka <jh@suse.cz>
27380 Jakub Jelinek <jakub@redhat.com>
27382 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
27383 set->regs[i] is NULL or has just one entry.
27385 2010-06-03 Jan Hubicka <jh@suse.cz>
27387 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
27388 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
27390 2010-06-03 Paul Brook <paul@codesourcery.com>
27392 * config/arm/arm.c (FL_TUNE): Define.
27393 (arm_default_cpu, arm_cpu_select): Remove.
27394 (all_cores): Populate core field.
27395 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
27396 (arm_find_cpu): New function.
27397 (arm_handle_option): Lookup cpu/architecture names.
27398 (arm_override_options): Cleanup mcpu/march/mtune handling.
27399 (arm_file_start): Ditto.
27401 2010-06-03 Alan Modra <amodra@gmail.com>
27404 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
27405 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
27406 rtx to gen_load_toc_v4_PIC_1b. Tidy.
27407 (rs6000_emit_load_toc_table): Likewise.
27409 2010-06-02 Jan Hubicka <jh@suse.cz>
27411 * passes.c (init_optimization_passes): Put ipa reference
27412 after ipa pure-const.
27414 2010-06-02 Jan Hubicka <jh@suse.cz>
27416 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
27417 calls_read_all and calls_write_all.
27418 (get_reference_optimization_summary): Fix formatting.
27419 (is_proper_for_analysis): Check that decl is not readonly.
27420 (propagate_bits): Check CONST/PURE/noreturn flags.
27421 (ipa_init): Move all_module_statics to optimization_summary_obstack.
27422 (analyze_function): Ignore indirect edges.
27423 (copy_global_bitmap): For all module statics, do nothing.
27424 (generate_summary): Do not print calls_read_all/calls_write_all.
27425 (read_write_all_from_decl): Take node as argument; check
27426 cgraph_node_cannot_return.
27427 (propagate): Reorganize read_all/write_all computation;
27428 check indirect edges; check ecf flags; use all_module_statics
27429 in the results; do not free all_module_statics.
27430 (stream_out_bitmap): Handle all_module_statics.
27431 (ipa_reference_write_optimization_summary): Likewise; use
27432 varpool/cgraph encoders to get boundaries.
27433 (ipa_reference_read_optimization_summary): Read in all_module_statics;
27434 use it when possible.
27436 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27439 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
27440 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
27442 * doc/extend.texi (powerpc builtins): Document vec_recip,
27443 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
27445 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
27446 (rs6000_emit_swrsqrt): Ditto.
27447 (rs6000_emit_swdivsf): Delete.
27448 (rs6000_emit_swdivdf): Ditto.
27449 (rs6000_emit_swrsqrtsf): Ditto.
27451 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
27452 describe the reciprocal estimate support for each type.
27453 (recip_options): Map -mrecip=<opt> into option bits.
27454 (gen_2arg_fn_t): New typedef for binary rtx gen function.
27455 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
27456 reciprocal estimate instructions.
27457 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
27458 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
27459 Set up rs6000_recip_bits based on the -mrecip* options. Print the
27460 cost information if -mdebug=cost or -mdebug=reg.
27461 (rs6000_override_options): Set -mrecip-precision for power6, and
27462 power7 machines. If -mvsx or -mdfp, enable various options that
27463 came in previous instruction set ISAs, unless the option was
27464 explicitly disabled by the command line option. Parse
27465 -mrecip=<opt> options.
27466 (rs6000_builtin_vectorized_function): Add support for vectorizing
27467 the reciprocal estimate builtins and expansions.
27468 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
27469 (bdesc_2arg): Add reciprocal estimate builtins.
27470 (bdesc_1arg): Add reciprocal square root estimate builtins.
27471 (rs6000_expand_builtin): Rewrite to use a switch statement,
27472 instead of multiple if/then/elses. Add reciprocal estimate builtins.
27473 (rs6000_init_builtins): Create declarations for reciprocal
27475 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
27476 sized, prefer traditional floating point registers, if integer
27477 vector types, prefer altivec registers. Don't actually look at
27478 the memory address any more.
27479 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
27481 (rs6000_load_constant_and_splat): New helper function to load up
27482 the constant for reciprocal estimate instructions.
27483 (rs6000_emit_madd): New helper function for generating
27484 multiply/add type instructions, based on the current switches.
27485 (rs6000_emit_msub): Ditto.
27486 (rs6000_emit_mnsub): Ditto.
27487 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
27488 replace a divide with a reciprocal estimate and fixup, adding
27489 support for machines with high precision and vectors.
27490 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
27491 low precision machines.
27492 (rs6000_emit_swdiv): New common function to be called to replace a
27493 division with reciprocal estimate and fixup.
27494 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
27495 for double and vector types. Add support for high precision machines.
27497 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
27498 the reciprocal estimate instructions can be generated.
27499 (TARGET_FRE): Ditto.
27500 (TARGET_FRSQRTES): Ditto.
27501 (TARGET_FRSQRTE): Ditto.
27502 (RS6000_RECIP_*): New macros for reciprocal estimate support.
27504 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
27505 square root estimate on vectors.
27506 (re<mode>2): New insn for reciprocal division estimate on vectors.
27508 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
27510 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
27511 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
27512 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
27513 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
27514 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
27515 (RS6000_BUILTIN_RSQRT): Ditto.
27516 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
27517 floating point builtin.
27519 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
27520 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
27521 __RECIP_PRECISION__ based on the command line switches.
27522 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
27524 * config/rs6000/rs6000.opt (-mrecip): Document add support for
27525 replacing division instructions with reciprocal estimate and fixup.
27526 (-mrecip=<opt>): New option.
27527 (-mrecip-precision): Ditto.
27529 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
27530 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
27531 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
27534 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
27535 (UNSPEC_VREFP): Ditto.
27536 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
27537 conterparts with regard to support of -mno-fused-madd and -ffast-math.
27538 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
27539 reciprocal estimate instructions to be generated.
27540 (altivec_vrefp): Ditto.
27542 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
27544 (rreg): New mode attribute for reciprocal estimate support.
27545 (recip<mode>3): New insn for division using reciprocal estimate
27546 and fixup builtins.
27547 (divide define_split): New define_split to convert floating point
27548 division to use reciprocal estimate if the user used the
27549 appropriate options and the split is run when we can add new
27550 pseudo registers for the fixup.
27551 (rsqrt<mode>2): New insn for reciprocal square root support.
27552 (recipsf3): Move into recip<mode>3.
27554 (fres): Use TARGET_FRES.
27555 (rsqrtsf2): Move into rsqrt<mode>2.
27556 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
27557 (copysignsf3): Add support for VSX.
27558 (fred): Use TARGET_FRE.
27560 (rsqrtdf_internal1): New function for frsqrte instruciton.
27562 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
27563 (vec_rsqrt): Ditto.
27565 2010-06-03 Richard Guenther <rguenther@suse.de>
27567 PR middle-end/44291
27568 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
27569 (set_user_assembler_libfunc): Likewise.
27571 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
27573 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
27575 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
27577 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
27578 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
27579 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
27580 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
27581 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
27582 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
27583 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
27584 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
27585 * defaults.h: Updated for above mentioned changes.
27587 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
27589 * c-common.c: Remove header include of tm_p.h.
27590 * Makefile.in (c-common.o): Remove TM_P_H dependency.
27592 2010-06-02 Jakub Jelinek <jakub@redhat.com>
27594 * tree.h (struct tree_decl_map): New type.
27595 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
27596 (tree_decl_map_hash): New prototype.
27597 (debug_expr_for_decl, value_expr_for_decl): Change into
27598 tree_decl_map hashtab from tree_map.
27599 (init_ttree): Adjust initialization.
27600 (tree_decl_map_hash): New function.
27601 (decl_debug_expr_lookup, decl_debug_expr_insert,
27602 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
27604 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27606 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
27608 * configure: Regenerate.
27609 * config.in: Regenerate.
27611 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
27612 (X86_64_EMULATION): Define.
27613 (TARGET_LD_EMULATION): Use them.
27615 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
27616 (SPARC64_EMULATION): Define.
27617 (LINK_ARCH_SPEC): Use them.
27619 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
27621 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
27622 smallest_mode_for_size for computing the precision types of new
27623 graphite IVs. Do not call lang_hooks.types.type_for_size.
27625 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
27627 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
27629 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
27631 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
27633 PR middle-end/44363
27634 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
27635 return false instead.
27637 2010-06-02 Jan Hubicka <jh@suse.cz>
27639 PR middle-end/44295
27640 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
27641 create new cgraph node to check callee.
27643 2010-06-02 Richard Guenther <rguenther@suse.de>
27645 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
27647 2010-06-02 Richard Guenther <rguenther@suse.de>
27649 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
27650 (lto_wrapper_cleanup): ... this. Do not exit.
27651 (fatal): Adjust. Exit here.
27652 (fatal_perror): Likewise.
27653 (fatal_signal): New function.
27654 (main): Set up signal handlers to cleanup temporary files.
27655 * Makefile.in (lto-wrapper.o): Adjust dependencies.
27657 2010-06-02 Richard Guenther <rguenther@suse.de>
27659 PR tree-optimization/44377
27660 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
27662 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27664 * config/s390/2097.md (z10_fhex): Remove insn reservation.
27665 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
27666 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
27667 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
27669 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
27671 2010-06-02 Jan Hubicka <jh@suse.cz>
27673 * bitmap.c (bitmap_descriptor): Add search_iter.
27674 (bitmap_find_bit): Increment it.
27675 (print_statistics): Print it.
27677 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
27679 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
27680 instead of gimple_build_call_vec. Delete unnecessary local variable.
27682 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
27684 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
27685 change from yesterday.
27687 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
27689 * c-ada-spec.c: Clean up redundant includes.
27691 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
27693 * gimplify.c: Do not include except.h and optabs.h.
27694 (gimplify_body): Do not initialize RTL profiling.
27695 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
27696 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
27697 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
27698 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
27701 * tree-pretty-print.h: Include pretty-print.h.
27702 * gimple-pretty-print.h: Include pretty-print.h.
27704 * tree-pretty-print.c: Do not include diagnostic.h.
27705 * tree-vrp.c: Likewise.
27706 * tree-tailcall.c: Likewise
27707 * tree-scalar-evolution.c: Likewise
27708 * tree-ssa-dse.c: Likewise
27709 * tree-chrec.c: Likewise
27710 * tree-ssa-sccvn.c: Likewise
27711 * tree-ssa-copyrename.c: Likewise
27712 * tree-nomudflap.c: Likewise
27713 * tree-call-cdce.c: Likewise
27714 * tree-stdarg.c: Likewise
27715 * tree-ssa-math-opts.c: Likewise
27716 * tree-nrv.c: Likewise
27717 * tree-ssa-sink.c: Likewise
27718 * tree-browser.c: Likewise
27719 * tree-ssa-loop-ivcanon.c: Likewise
27720 * tree-ssa-loop.c: Likewise
27721 * tree-parloops.c: Likewise
27722 * tree-ssa-address.c: Likewise
27723 * tree-ssa-ifcombine.c: Likewise
27724 * tree-if-conv.c: Likewise
27725 * tree-data-ref.c: Likewise
27726 * tree-affine.c: Likewise
27727 * tree-ssa-phiopt.c: Likewise
27728 * tree-ssa-coalesce.c: Likewise
27729 * tree-ssa-pre.c: Likewise
27730 * tree-ssa-live.c: Likewise
27731 * tree-predcom.c: Likewise
27732 * tree-ssa-forwprop.c: Likewise
27733 * tree-ssa-dce.c: Likewise
27734 * tree-ssa-ter.c: Likewise
27735 * tree-ssa-loop-prefetch.c: Likewise
27736 * tree-optimize.c: Likewise
27737 * tree-ssa-phiprop.c: Likewise
27738 * tree-object-size.c: Likewise
27739 * tree-outof-ssa.c: Likewise
27740 * tree-ssa-structalias.c: Likewise
27741 * tree-switch-conversion.c: Likewise
27742 * tree-ssa-reassoc.c: Likewise
27743 * tree-ssa-operands.c: Likewise
27744 * tree-vectorizer.c: Likewise
27745 * tree-vect-data-refs.c: Likewise
27746 * tree-vect-generic.c: Likewise
27747 * tree-vect-stmts.c: Likewise
27748 * tree-vect-patterns.c: Likewise
27749 * tree-vect-slp.c: Likewise
27750 * tree-vect-loop.c: Likewise
27751 * tree-ssa-loop-ivopts.c: Likewise
27752 * tree-ssa-loop-im.c: Likewise
27753 * tree-ssa-loop-niter.c: Likewise
27754 * tree-ssa-loop-unswitch.c: Likewise
27755 * tree-ssa-loop-manip.c: Likewise
27756 * tree-ssa-loop-ch.c: Likewise
27757 * tree-dump.c: Likewise
27758 * tree-complex.c: Likewise
27760 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
27761 * tree-ssa-uninit.c: Likewise
27762 * tree-ssa-threadupdate.c: Likewise
27763 * tree-ssa-uncprop.c: Likewise
27764 * tree-ssa-ccp.c: Likewise
27765 * tree-ssa-dom.c: Likewise
27766 * tree-ssa-propagate.c: Likewise
27767 * tree-ssa-alias.c: Likewise
27768 * tree-dfa.c: Likewise
27769 * tree-cfgcleanup.c: Likewise
27770 * tree-sra.c: Likewise
27771 * tree-ssa-copy.c: Likewise
27772 * tree-ssa.c: Likewise
27773 * tree-profile.c: Likewise
27774 * tree-cfg.c: Likewise
27775 * tree-ssa-threadedge.c: Likewise
27776 * tree-vect-loop-manip.c: Likewise
27778 * tree-inline.c: Do not include diagnostic.h and expr.h.
27780 (copy_decl_for_dup_finish): Do not use NULL_RTX.
27782 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
27783 * tree-loop-distribution.c: Likewise.
27785 2010-06-01 Jan Hubicka <jh@suse.cz>
27787 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
27789 2010-06-01 Jan Hubicka <jh@suse.cz>
27791 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
27792 remove return value.
27793 (split_bbs_on_noreturn_calls) .... here.
27794 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
27795 * tree-flow.h (fixup_noreturn_call): New.
27797 2010-06-01 Jan Hubicka <jh@suse.cz>
27799 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
27801 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
27803 * tree.h (build_nt_call_list): Delete.
27804 * tree.c (build_nt_call_list): Delete.
27806 2010-06-01 Jan Hubicka <jh@suse.cz>
27808 * fwprop.c: Make emit-rtl.h include last.
27809 * rtlanal.c: Include emit-rtl.h.
27810 * genautomata.c: Output emit-rtl include into insn-automata.c
27811 * df-scan.c: Include emit-rtl.h.
27812 * haifa-sched.c: Indlude emit-rtl.h.
27813 * mode-switching.c: Indlude emit-rtl.h.
27814 * graph.c: Indlude emit-rtl.h.
27815 * sel-sched.c: Include emit-rtl.h.
27816 * sel-sched-ir.c: Include emit-rtl.h.
27817 * ira-build.c: Include emit-rtl.h.
27818 * emit-rtl.c (first_insn, last_insn): Remove defines.
27819 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
27820 Move to emit-rtl.h.
27821 (set_new_first_and_last_insn, get_last_insn_anywhere,
27822 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
27823 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
27824 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
27825 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
27826 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
27827 Use accessor functions.
27828 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27829 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27830 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27831 mem_expr_equal_p): Move here from rtl.h.
27832 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
27833 Move here from emit-rtl.c; make inline.
27834 * cfglayout.h: Include emit-rtl.h.
27835 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27836 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27837 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27838 mem_expr_equal_p, get_insns, set_first-insn,
27839 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
27840 * reg-stack.c: Include emit-rtl.h.
27843 2010-06-01 Jan Hubicka <jh@suse.cz>
27845 * cgraph.h (tree_function_versioning): Update prototype.
27846 (cgraph_function_versioning): Update prototype.
27847 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
27849 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
27850 (cgraph_materialize_clone, save_inline_function_body): Update use of
27851 tree_function_versioning.
27852 * tree-inline.c (copy_bb): Look for previous copied block to link
27853 after; fix debug output.
27854 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
27855 (copy_body): Likewise.
27856 (expand_call_inline): Update use of copy_body.
27857 (tree_function_versioning): Update use of copy body; accept
27858 blocks_to_copy and new_entry.
27860 2010-06-01 Jan Hubicka <jh@suse.cz>
27862 * gegenrtl.c: Remove unnecesary prototypes.
27864 (gendef): Produce static inline.
27866 (main): Do not decode parameters; generate header only.
27867 * Makefile.in (genrtl.c): Remove.
27869 2010-06-01 Jan Hubicka <jh@suse.cz>
27871 * tree-switch-conversion.c (build_one_array): Make it readonly.
27873 2010-06-01 Richard Guenther <rguenther@suse.de>
27875 * optabs.c (init_optabs): Guard all accesses to reinit.
27876 * ipa-pure-const.c (propagate): Fix another typo.
27877 * opts.c (common_handle_option): Split assignment to bool.
27878 * c-opts.c (c_common_handle_option): Likewise.
27880 2010-06-01 Arnaud Charlet <charlet@adacore.com>
27881 Matthew Gingell <gingell@adacore.com>
27883 * doc/invoke.texi: Mention -fdump-ada-spec.
27884 * tree-dump.c (dump_files): Add ada-spec.
27885 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
27886 * tree-pass.h (tree_dump_index): Add TDI_ada.
27887 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
27888 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
27889 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
27890 * c-decl.c: Include c-ada-spec.h.
27891 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
27893 (c_write_global_declarations): Add handling of -fdump-ada-spec.
27894 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
27895 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
27896 * c-ada-spec.h, c-ada-spec.c: New files.
27898 2010-06-01 Richard Guenther <rguenther@suse.de>
27901 * ipa-pure-const.c (get_function_state): Hand back varying state
27902 if we do not have one.
27903 (has_function_state): New function.
27904 (duplicate_node_data): Adjust.
27905 (remove_node_data): Likewise.
27906 (pure_const_write_summary): Likewise.
27907 (propagate): Likewise. Fix typo.
27909 2010-06-01 Jan Hubicka <jh@suse.cz>
27911 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
27912 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
27913 (execute_all_ipa_transforms): Do not play with the states.
27915 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
27917 * config/arm/t-linux-androideabi: New.
27918 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
27920 2010-06-01 Jan Hubicka <jh@suse.cz>
27922 * tree-inline.c (estimate_num_insns): For stdarg functions look
27923 into call statement to count cost of argument passing.
27925 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
27927 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
27928 argument for fprintf.
27929 (ix86_output_addr_diff_elt): Likewise.
27930 (x86_function_profiler): Likewise.
27931 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
27932 (LPREFIX): Likewise.
27933 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
27935 2010-05-31 Jakub Jelinek <jakub@redhat.com>
27938 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
27939 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
27940 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
27941 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
27942 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
27943 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
27944 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
27945 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
27948 2010-05-31 Jan Hubicka <jh@suse.cz>
27950 * tree.h (tree_range_check_failed): Declare noreturn.
27952 2010-05-31 Jan Hubicka <jh@suse.cz>
27954 * gimple.c (gimple_call_builtin_p): New function.
27955 * gimple.h (gimple_call_builtin_p): Declare.
27956 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
27958 (execute_warn_function_return): BUILT_IN_RETURN is return.
27959 (split_critical_edges): Return edges are not critical.
27960 (is_ctrl_altering_stmt): Builtin_in_return is altering.
27961 (gimple_verify_flow_info): Handle built_in_return.
27962 (execute_warn_function_return): Handle built_in_return.
27963 * ipa-pure-const.c (check_call): Ignore builtin_return.
27965 2010-05-31 Jakub Jelinek <jakub@redhat.com>
27967 PR middle-end/44337
27968 * expr.c (expand_assignment): Don't store anything for out-of-bounds
27969 array accesses with non-MEM.
27971 PR tree-optimization/44182
27972 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
27973 newly needs to end a bb is followed by debug stmts, instead return
27974 true from the function at the end.
27975 (maybe_move_debug_stmts_to_successors): New function.
27976 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
27978 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
27981 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
27983 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
27985 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
27986 for nested functions in non-optimized compilation.
27988 2010-05-31 Richard Guenther <rguenther@suse.de>
27990 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
27992 2010-05-30 Jan Hubicka <jh@suse.cz>
27994 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
27996 2010-05-30 Richard Guenther <rguenther@suse.de>
27999 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
28000 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
28003 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
28005 * config/darwin.c (output_objc_section_asm_op): Add comment.
28006 (name_needs_quotes): Add '_' to list of valid comment chars.
28007 (machopic_output_function_base_name): Remove unneeded quotes.
28008 (darwin_encode_section_info): Adjust asm whitespace.
28009 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
28010 (ASM_OUTPUT_LOCAL): Ditto.
28011 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
28012 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
28013 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
28015 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
28017 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
28018 RS6000_OUTPUT_BASENAME unconditionally.
28019 (rs6000_output_function_epilogue): Likewise.
28021 2010-05-30 Jan Hubicka <jh@suse.cz>
28023 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
28026 2010-05-30 Richard Guenther <rguenther@suse.de>
28028 * tree-cfg.c (verify_gimple_assign_single): Implement
28029 verification for COND_EXPR rhs.
28031 2010-05-30 Jan Hubicka <jh@suse.cz>
28033 * cgraph.h (cgraph_dump_file): Declare.
28034 * cgraphunit.c (cgraph_dump_file): Export.
28035 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
28037 2010-05-30 Jan Hubicka <jh@suse.cz>
28039 * dwarf2out.c (reference_to_unused,
28040 premark_types_used_by_global_vars_helper): Avoid creation of new
28043 2010-05-30 Jan Hubicka <jh@suse.cz>
28045 * cgraph.h (cgraph_node_cannot_return,
28046 cgraph_edge_cannot_lead_to_return): New functions.
28047 * cgraph.c (cgraph_node_cannot_return,
28048 cgraph_edge_cannot_lead_to_return): Use them.
28049 * ipa-pure-const.c (pure_const_names): New static var.
28050 (check_call): Handle calls not leading to return.
28051 (pure_const_read_summary): Dump info read.
28052 (propagate): Dump info about propagation process; ignore side effects
28053 of functions not leading to exit; fix handling of pure functions.
28055 2010-05-30 Jan Hubicka <jh@suse.cz>
28057 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
28058 for tail call epilogues.
28060 2010-05-30 Jan Hubicka <jh@suse.cz>
28062 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
28063 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
28066 2010-05-29 Jan Hubicka <jh@suse.cz>
28068 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
28069 node; remove references in node we no longer keep in cgrpah but need
28072 2010-05-29 Jan Hubicka <jh@suse.cz>
28074 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
28076 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28079 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
28081 2010-05-29 Jan Hubicka <jh@suse.cz>
28083 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
28084 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
28085 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
28086 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
28087 debug_names_replaced_by, debug_update_ssa): Likewise.
28088 * sbitmap.c (debug_sbitmap): Likewise.
28089 * genrecog.c (debug_decision, debug_decision_list): Likewise.
28090 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
28091 debug_tree_chain): Likewise.
28092 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
28093 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
28094 * optabs.c (debug_optab_libfuncs): Likewise.
28095 (verify_loop_closed_ssa): Likewise.
28096 * value-prof.c (verify_histograms): Likewise.
28097 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
28098 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
28099 * cfghooks.c (verify_flow_info): Likewise.
28100 * fold-const.c (debug_fold_checksum): Likewise.
28101 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
28102 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
28104 * omega.c (debug_omega_problem): Likewise.
28105 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
28106 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
28107 * dominance.c (verify_dominators, debug_dominance_info,
28108 debug_dominance_tree): Likewise.
28109 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
28110 * df_regno_debug, df_ref_debug,
28111 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
28112 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
28113 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
28114 * sel-sched.c (debug_state): Likewise.
28115 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
28117 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
28118 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
28119 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
28120 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
28122 * c-pretty-print.c (debug_c_tree): Likewise.
28123 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
28124 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
28125 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
28126 * ebitmap.c (debug_ebitmap): Likewise.
28127 * function.c (debug_find_var_in_block_tree): Likewise.
28128 * print-rtl.c (debug_rtx): Likewise.
28129 (debug_rtx_count): Likewise.
28130 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
28131 * stor-layout.c (debug_rli): Likewise.
28132 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
28133 * tree-data-ref.c (debug_data_references,
28134 debug_data_dependence_relations, debug_data_reference,
28135 debug_data_dependence_relation, debug_rdg_vertex,
28136 debug_rdg_component, debug_rdg): Likewise.
28137 * tree-affine.c (debug_aff): Likewise.
28138 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
28140 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
28141 * emit-rtl.c (verify_rtl_sharing): Likewise.
28142 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
28143 debug_value_expressions): Likewise.
28144 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
28145 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
28146 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
28147 * cfglayout.c (verify_insn_chain): Likewise.
28148 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
28149 debug_clast_stmt, debug_generated_program): Likewise.
28150 * ggc-page.c (debug_print_page_list): Likewise.
28151 * tree-ssa-ter.c (debug_ter): Likewise.
28152 * graphite-dependences.c (debug_pddr): Likewise.
28153 * sched-deps.c (debug_ds): Likewise.
28154 * tree-ssa.c (verify_ssa): Likewise.
28155 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
28156 debug_scattering_functions, debug_iteration_domains, debug_pdr,
28157 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
28158 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
28159 * tree-inline.c (debug_find_tree): Likewise.
28160 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
28161 debug_ppl_powerset_matrix): Likewise.
28162 * var-tracking.c (debug_dv): Likewise.
28163 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
28164 * cfgloop.c (verify_loop_structure): Likewise.
28165 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
28166 * c-common.c (verify_sequence_points): Likewise.
28167 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
28168 debug_candidates, debug_rgn_dependencies): Likewise.
28169 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
28170 * debug_constraint_graph, debug_solution_for_var,
28171 debug_sa_points_to_info): Likewise.
28172 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
28174 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
28175 debug_loops, debug_loop, debug_loop_num): Likewise.
28176 * passes.c (debug_pass): Likewise.
28177 (dump_properties): Likewise; add cfglayout property.
28178 (debug_properties): Likewise.
28179 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
28180 * varpool.c (debug_varpool): Likewise.
28181 * regcprop.c (debug_value_data): Likewise.
28182 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
28183 debug_immediate_uses_for): Likewise.
28185 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
28188 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
28189 Filter out insn-flags.h.
28191 2010-05-29 Jan Hubicka <jh@suse.cz>
28193 * cgraph.h (struct varpool_node_set_def,
28194 struct cgraph_node_set_def): Remove unused AUX pointer.
28195 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
28198 2010-05-29 Jan Hubicka <jh@suse.cz>
28200 PR middle-end/44324
28201 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
28203 2010-05-29 Richard Guenther <rguenther@suse.de>
28205 * lto-streamer.c (cached_bp): New global variable.
28206 (bitpack_create): Return the cached bitpack, if available.
28207 (bitpack_delete): Clear and cache the bitpack, if appropriate.
28208 (bp_pack_value): Remove redundant asserts.
28210 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
28212 PR middle-end/44306
28213 * tree-if-conv.c (is_true_predicate): New.
28214 (is_predicated): Use is_true_predicate.
28215 (add_to_predicate_list): Same. Do not use unshare_expr.
28216 (add_to_dst_predicate_list): Same.
28218 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
28220 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
28222 (predicate_bbs): Same.
28223 (clean_predicate_lists): Same.
28224 (find_phi_replacement_condition): Do not AND the predicate from
28227 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
28230 * Makefile.in (build/gencondmd.o): Add a missing `\'.
28232 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28235 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
28236 (negdf2): Adjust expander pattern and use negdf2_slow.
28237 (negsf2): Likewise.
28239 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
28241 * basic-block.h (struct control_flow_graph): Move last_label_uid field
28243 * df.h (struct df_base_ref): Move regno field up.
28244 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
28245 * expr.h (struct separate_ops): Move location field up.
28246 * optabs.h (struct optab_d): Move libcall_basename field down.
28247 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
28248 * config/i386/i386.h (struct machine_function): Convert call_abi field
28249 into a bitfield. Move cfa field to the end of the structure.
28251 2010-05-29 Jan Hubicka <jh@suse.cz>
28253 * varpool.c (varpool_get_node): Fix lookup.
28255 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28257 * config/spu/spu-protos.h: Do not include rtl.h. Protect
28258 RTL specific prototypes with #ifdef RTX_CODE.
28259 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
28260 * config/spu/t-spu-elf: Fix dependencies.
28262 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
28264 2010-05-29 Mike Stump <mikestump@comcast.net>
28267 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
28268 TM_H when building to avoid dependency loops.
28270 2010-05-29 Jan Hubicka <jh@suse.cz>
28272 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
28273 refs and body; not the whole node for masters of materialized clones.
28275 2010-05-29 Mike Stump <mikestump@comcast.net>
28277 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
28279 2010-05-29 Jan Hubicka <jh@suse.cz>
28281 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
28282 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
28283 use of clone_function_name.
28284 * cgraph.h (cgraph_create_virtual_clone,
28285 cgraph_function_versioning): update prototypes.
28286 (clone_function_name): Declare.
28287 * ipa-cp.c (ipcp_insert_stage): Update call of
28288 cgraph_create_virtual_clone.
28289 * omp-low.c (create_omp_child_function_name): Use
28290 cgraph_create_virtual_clone.
28291 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
28292 (cgraph_function_versioning): Take SUFFIX argument; produce new name
28293 and make decl local.
28295 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28297 * vec.h: Include statistics.h
28298 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
28301 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28303 * c-lex.c: Do not include c-tree.h.
28304 * c-pretty-print.c: Likewise.
28305 * c-opts.c: Likewise.
28306 * c-gimplify.c: Likewise.
28307 * c-common.c: Likewise.
28308 * c-dump.c: Likewise. Include c-common.h.
28310 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28312 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
28313 before including diagnostic-core.h.
28314 (c_cpp_error): New prototype moved from c-tree.h.
28315 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
28316 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
28317 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
28318 (c_cpp_error): Prototype moved to c-common.h.
28319 * Makefile.in: Update dependency for C_COMMON_H.
28321 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28323 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
28324 * c-common.c (c_register_addr_space): Remove here.
28325 * c-decl.c (c_register_addr_space): Re-add here.
28327 2010-05-28 Mike Stump <mikestump@comcast.net>
28329 * config/darwin-c.c: Remove c-tree.h include.
28331 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28333 * gcc.c: Include diagnostic.h.
28334 (error_count): Remove. All users changed to use errorcount.
28335 (programname): Remove. All users changed to use progname.
28336 (fancy_abort, internal_error, fatal_error, error, warning, inform,
28338 (execute): Don't include "Internal error" and bug reporting
28339 information in argument of internal_error call.
28340 (process_command): Don't increment error_count after calling
28342 (input_filename): Rename to gcc_input_filename. All users
28344 (main): Call diagnostic_initialize. Register delete_temp_files
28345 with atexit. Use seen_error to test for errors.
28346 * gcc.h: Include diagnostic-core.h.
28347 (fatal_error, error, warning): Remove.
28348 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
28349 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
28350 (gcc.o): Update dependencies.
28352 2010-05-28 Jeff Law <law@redhat.com>
28354 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
28356 * ira.h (ira_bad_reload_regno): Declare
28357 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
28359 * ira-color.c (update_curr_costs): Free updated hard reg costs.
28360 (ira_reassign_conflict_allocnos): Remove bogus asserts.
28361 (allocno_reload_assign): Likewise.
28363 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
28365 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
28368 2010-05-28 Richard Guenther <rguenther@suse.de>
28371 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
28372 Stream fixed-point constants mode.
28373 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
28374 and TYPE_PRECISION.
28375 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
28376 Stream fixed-point constants mode.
28377 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
28378 and TYPE_PRECISION.
28380 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
28382 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
28383 only place it was called from.
28384 (number_of_latch_executions): Do not return chrec_dont_know when the
28385 may_be_zero is a runtime condition: instead, return a COND_EXPR
28386 including the may_be_zero condition.
28387 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
28389 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
28392 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
28394 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
28395 generate COND_EXPRs for degenerate_phi_result.
28397 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
28399 PR middle-end/44293
28400 * tree-if-conv.c (if_convertible_loop_p): Check the
28401 if-convertibility of phi nodes in non predicated BBs.
28403 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28405 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
28407 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28410 * gcc.c (inform, warning, inform): New functions.
28411 (fatal_ice): Rename to internal_error; change cmsgid parameter to
28412 gmsgid. All callers changed.
28413 (notice): Rename to fnotice; add parameter fp. All callers changed.
28414 (fatal_error): Rename to fatal_signal. All users changed.
28415 (fatal): Rename to fatal_error; change cmsgid parameter to
28416 gmsgid. All callers changed.
28417 (process_command): Use warning instead of error for warnings.
28418 (end_going_arg): Don't use _() around argument of error.
28419 (do_spec_1): Use inform for message from %n specs. Use warning
28420 instead of error for warnings.
28421 (main): Use inform for comparison messages. Use warning for
28422 message about unused linker input.
28423 (error): Increment error_count. Print "error: ".
28424 * gcc.h (fatal): Change to fatal_error.
28425 (warning): Declare.
28426 * config/darwin-driver.c (darwin_default_min_version): Use warning
28427 instead of fprintf for warnings.
28428 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
28430 2010-05-28 Julian Brown <julian@codesourcery.com>
28432 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
28433 (*thumb2_addsi3_compare0_scratch): New.
28434 * config/arm/constraints.md (Pv): New.
28435 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
28437 (*addsi3_compare0_scratch): Likewise.
28439 2010-05-28 Jan Hubicka <jh@suse.cz>
28441 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
28443 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
28444 only on local statics.
28446 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
28448 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
28450 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
28453 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
28454 (OPTION_GLIBC): Define.
28456 2010-05-28 Jakub Jelinek <jakub@redhat.com>
28459 * dwarf2out.c (double_int_type_size_in_bits): New function.
28460 (round_up_to_align): Change first argument and return value to
28462 (field_byte_offset): Work internally on double_ints.
28465 * builtins.c (expand_movstr): Use a temporary pseudo instead
28466 of target even when target is not NULL and not const0_rtx, but
28467 fails movstr predicate.
28468 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
28470 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28472 * final.c (rest_of_clean_state): Use %m in errors instead of
28474 * gengtype.c (read_input_list, close_output_files): Use xstrerror
28475 instead of strerror.
28476 * toplev.c (process_options): Use %m in errors instead of strerror
28478 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
28481 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
28483 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
28484 (ix86_canonical_va_list_type): Make static. Add declaration.
28485 (ix86_enum_va_list): Make static. Reindent.
28486 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
28487 (ix86_canonical_va_list_type): Ditto.
28488 (ix86_enum_va_list): Ditto.
28490 2010-05-28 Richard Guenther <rguenther@suse.de>
28492 * lto-wrapper.c (run_gcc): With -save-temps generate a
28493 user-visible ltrans filename. Fixup ltrans unit numbering.
28495 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
28497 * c-common.c (c_common_nodes_and_builtins): Replace use
28498 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
28499 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
28500 to ix86_enum_va_list.
28501 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
28502 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
28503 (TARGET_ENUM_VA_LIST_P): Add hook description.
28504 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
28505 * target.h (gcc_target): Add enum_va_list hook.
28508 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
28509 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
28510 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
28512 2010-05-28 Alan Modra <amodra@gmail.com>
28515 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
28516 emit_library_call machinery to set up __tls_get_addr calls.
28518 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28520 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
28522 2010-05-28 Dodji Seketeli <dodji@redhat.com>
28524 Revert fix for PR c++/44188
28525 * c-common.c (is_typedef_decl): Revert the moving of this
28527 * tree.c (is_typedef_decl): ... here.
28528 (typdef_variant_p): Revert the moving of this definition
28529 here from cp/tree.c.
28530 * c-common.h (is_typedef_decl): Revert the moving of this
28532 * tree.h (is_typedef_decl): ... here.
28533 (typedef_variant_p): Revert the moving of this declaration here
28535 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
28536 (gen_tagged_type_die): Revert the splitting out of ...
28537 (gen_type_die_with_usage): ... this function. Revert the anonymous
28538 tagged type handling.
28539 (gen_typedef_die): Revert emitting DW_TAG_typedef for
28540 typedefs naming anonymous tagged types.
28542 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
28544 * config/rs6000/rs6000-modes.def (PSImode): Delete.
28546 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
28548 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
28549 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
28551 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
28553 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
28554 XER_REGS to CA_REGS throughout.
28555 * config/rs6000/rs6000.h: Same.
28556 (ADDITIONAL_REGISTER_NAMES): Add "xer".
28557 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
28558 that mode_iterator "P" is the size for arithmetic carries as well.
28559 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
28561 2010-05-28 Jakub Jelinek <jakub@redhat.com>
28564 * combine.c (struct rtx_subst_pair): Define unconditionally.
28565 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
28566 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
28567 Call make_compound_operation on pair->to.
28568 (propagate_for_debug): Don't call make_compound_operation here.
28569 Always use simplify_replace_fn_rtx.
28571 2010-05-27 Sterling Augustine <sterling@tensilica.com>
28573 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
28574 * config/xtensa/xtensa.c (override_options): Check
28575 TARGET_FORCE_NO_PIC and set flag_pic.
28576 * config/xtensa/xtensa.opt: Document -mforce-no-pic
28578 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
28581 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
28582 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
28584 2010-05-27 Joseph Myers <joseph@codesourcery.com>
28586 * diagnostic-core.h: New. Contents moved from diagnostic.h and
28588 * diagnostic.c: Don't include toplev.h.
28589 (progname): Define. Moved from toplev.c.
28590 (seen_error): New function.
28591 * diagnostic.h: Include diagnostic-core.h.
28592 (diagnostic_t, emit_diagnostic): Don't declare here.
28593 * toplev.c (progname): Move to toplev.c.
28594 (emit_debug_global_declarations, compile_file, finalize,
28595 do_compile, toplev_main): Use seen_error.
28596 * toplev.h: Include diagnostic-core.h.
28597 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
28598 internal_error, warning, warning_at, error, error_n, error_at,
28599 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
28600 verbatim, fnotice, progname): Move to diagnostic-core.h.
28601 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
28602 (expand_builtin_expect): Use seen_error.
28603 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
28604 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
28605 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
28606 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
28607 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
28608 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
28609 errorcount for errors.
28610 * c-opts.c (c_common_finish): Use seen_error.
28611 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
28612 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
28613 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
28614 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
28615 (get_coverage_counts): Use seen_error.
28616 * dwarf2out.c (dwarf2out_finish): Use seen_error.
28617 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
28618 gimplify_body): Use seen_error.
28619 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
28620 * ipa-pure-const.c (gate_pure_const): Use seen_error.
28621 * ipa-reference.c (gate_reference): Use seen_error.
28622 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
28623 * lambda-code.c: Include diagnostic-core.h instead of
28625 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
28626 * lto-compress.c: Include diagnostic-core.h instead of
28628 * lto-section-in.c: Include diagnostic-core.h instead of
28630 * lto-streamer-out.c: Include diagnostic-core.h instead of
28632 * lto-streamer.c: Include diagnostic-core.h instead of
28634 (gate_lto_out): Use seen_error.
28635 * matrix-reorg.c: Include diagnostic-core.h instead of
28637 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
28638 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
28639 (gate_expand_omp, lower_omp_1): Use seen_error.
28640 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
28641 (rest_of_decl_compilation, rest_of_type_compilation,
28642 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
28643 * tree-cfg.c (label_to_block_fn): Use seen_error.
28644 * tree-inline.c (optimize_inline_calls): Use seen_error.
28645 * tree-mudflap.c (mudflap_finish_file): Use
28647 * tree-optimize.c (gate_all_optimizations,
28648 gate_all_early_local_passes, gate_all_early_optimizations): Use
28650 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
28651 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
28652 (varpool_remove_unreferenced_decls,
28653 varpool_assemble_pending_decls): Use seen_error.
28654 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
28655 (TOPLEV_H, DIAGNOSTIC_H): Update.
28656 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
28657 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
28658 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
28659 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
28660 coverage.o, lambda-code.o): Update dependencies.
28662 2010-05-25 Dodji Seketeli <dodji@redhat.com>
28665 * c-common.c (is_typedef_decl): Move this definition ...
28666 * tree.c (is_typedef_decl): ... here.
28667 (typdef_variant_p): Move definition here from cp/tree.c.
28668 * c-common.h (is_typedef_decl): Move this declaration ...
28669 * tree.h (is_typedef_decl): ... here.
28670 (typedef_variant_p): Move declaration here from cp/cp-tree.h
28671 * dwarf2out.c (is_naming_typedef_decl): New function.
28672 (gen_tagged_type_die): Split out of ...
28673 (gen_type_die_with_usage): ... this function. When an anonymous
28674 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
28675 is emitted for the typedef.
28676 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
28677 anonymous tagged types.
28679 2010-05-27 Jason Merrill <jason@redhat.com>
28681 * print-tree.c (debug_vec_tree): New fn.
28682 (print_vec_tree): New fn.
28683 * tree.h: Declare them.
28684 * gdbinit.in (pvt): New command.
28686 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
28688 * gdbinit.in (pdd): New command.
28690 2010-05-27 Jan Hubicka <jh@suse.cz>
28692 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
28693 (update_caller_keys): Return early if there are no callers;
28694 only update fibheap when decresing the key.
28695 (update_callee_keys): Avoid recursion.
28696 (decide_inlining_of_small_functions): When badness does not match;
28697 re-insert into fibheap.
28699 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
28701 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
28702 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
28703 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
28704 (ALL_HOST_OBJS): Now a union of the above two.
28705 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
28706 all files in ALL_HOST_FRONTEND_OBJS.
28707 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
28709 * c-common.c: Pretend to be a backend file by undefining
28710 IN_GCC_FRONTEND (still need rtl.h here).
28712 2010-05-27 Jan Hubicka <jh@suse.cz>
28714 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
28715 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
28717 2010-05-27 Jan Hubicka <jh@suse.cz>
28719 * sched-ebb.c: Rename struct deps to struct deps_desc.
28721 * sel-sched-ir.c: Likewise.
28722 * sched-deps.c: Likewise.
28723 * sched-int.h: Likewise.
28724 * sched-rgn.c: Likewise.
28726 2010-05-27 Jon Beniston <jon@beniston.com>
28729 * config/lm32/lm32.h: Remove definition of
28730 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
28732 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
28735 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
28737 2010-05-27 Richard Guenther <rguenther@suse.de>
28739 PR tree-optimization/44284
28740 * tree-vect-stmts.c (vectorizable_assignment): Handle
28741 sign-changing conversions as simple copy.
28743 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28745 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
28747 (__gthread_active_p): Check for pthread_create if compiling against
28750 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28752 Support compilation for Android platform. Reimplement -mandroid.
28754 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
28755 (*android*): Set ANDROID_DEFAULT.
28756 (arm*-*-linux*): Include linux-android.h.
28757 (arm*-*-eabi*): Don't include previous -mandroid implementation.
28758 * config/arm/eabi.h: Remove, move Android-specific parts ...
28759 * config/linux-android.h: ... here. New file.
28760 * config/arm/eabi.opt: Rename to ...
28761 * config/linux-android.opt: ... this.
28762 (mandroid): Allow -mno-android option. Initialize based on
28764 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
28765 Move logic to corresponding LINUX_TARGET_* macros.
28766 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
28767 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
28768 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
28769 Android definitions.
28770 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
28771 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
28774 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28776 Add support for Bionic C library
28778 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
28780 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
28781 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
28783 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
28784 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
28785 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
28786 to support multiple C libraries. Handle Bionic.
28787 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
28788 (BIONIC_DYNAMIC_LINKER64): Define.
28789 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
28791 (TARGET_HAS_SINCOS): Enable for Bionic.
28793 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
28794 the last option specified on command line take effect.
28795 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
28797 (mglibc, muclibc): Update.
28799 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
28800 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
28803 * doc/invoke.texi (-mglibc, -muclibc): Update.
28804 (-mbionic): Document.
28806 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28808 * c-common.h (c_register_addr_space): Add prototype.
28809 (ADDR_SPACE_KEYWORD): Remove.
28810 * c-common.c (c_register_addr_space): New function.
28811 (c_addr_space_name): Reimplement.
28812 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
28814 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
28815 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
28817 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
28818 Remove TARGET_ADDR_SPACE_KEYWORDS.
28820 2010-05-27 Joseph Myers <joseph@codesourcery.com>
28822 * input.c: New file.
28823 * input.h (main_input_filename): Move declaration to toplev.h.
28824 * toplev.c (input_location, line_table): Move to input.c
28825 * toplev.h (main_input_filename): Move declaration from input.h.
28826 * tree.c (expand_location): Move to input.c.
28827 * Makefile.in (OBJS-common): Add input.o.
28828 (input.o): Add dependencies.
28830 2010-05-27 Richard Guenther <rguenther@suse.de>
28832 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
28833 for non-existant files.
28834 (fork_execute): Mark args_name file as deleted.
28836 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
28839 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
28840 (narrow_signed_type): Likewise.
28842 2010-05-26 Jan Hubicka <jh@suse.cz>
28844 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
28845 edge only when checking is enabled; check using former_clone_of;
28846 check inline clones too.
28847 (cgraph_materialize_clone): Record former_clone_of pointer.
28848 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
28849 combining redirections; dump args_to_skip bitmap
28850 (cgraph_materialize_all_clones): Do no redirection here.
28851 * ipa-inline.c (inline_transform): Do redirection here.
28852 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
28855 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28857 * config/avr/avr-c.c: Do not include regs.h.
28858 Include cpplib.h for cpp_define and tree.h for c-common.h.
28859 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
28860 * config/avr/t-avr: Fix dependencies for avr-c.o.
28862 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28864 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
28865 string instead of SYMBOL_REF rtx.
28866 * rtl.h (set_stack_check_libfunc): Move prototype from here...
28867 * libfuncs.h: ...to here. Adjust for explow.c change.
28869 2010-05-26 Joseph Myers <joseph@codesourcery.com>
28871 * pretty-print.c: Don't include ggc.h.
28872 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
28873 (identifier_to_locale): Use them for allocation.
28874 * pretty-print.h (identifier_to_locale_alloc,
28875 identifier_to_locale_free): Declare.
28876 * toplev.c (alloc_for_identifier_to_locale): New.
28877 (general_init): Set identifier_to_locale_alloc and
28878 identifier_to_locale_free.
28879 * Makefile.in (pretty-print.o): Update dependencies.
28881 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28883 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
28884 pointer types if they have different alignment or mode.
28886 2010-05-26 Anatoly Sokolov <aesok@post.ru>
28888 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28889 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28890 * config/sparc/sparc-protos.h (function_value): Remove declaration.
28891 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
28892 sparc_function_value_regno_p): New functions.
28893 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28894 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28895 (function_value): Rename to...
28896 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
28897 argument to 'outgoing'.
28898 (function_arg_record_value, function_arg_union_value,
28899 function_arg_vector_value): Update comment.
28901 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28903 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
28904 (fde_needed_for_eh_p): New predicate.
28905 (output_call_frame_info): Use it throughout to decide whether FDEs
28906 are needed for EH purpose.
28907 (dwarf2out_begin_prologue): Reorder assignments.
28909 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28911 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
28912 special case loop->header.
28913 (is_predicated): New.
28914 (if_convertible_loop_p): Call it.
28916 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28918 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
28919 iterator in parameter. Do not generate code during the analysis.
28920 (tree_if_convert_cond_stmt): Removed.
28921 (tree_if_convert_stmt): Removed.
28922 (predicate_bbs): New.
28923 (if_convertible_loop_p): Call predicate_bbs.
28924 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
28925 now contains all the analysis part.
28927 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28929 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
28930 statements in the analysis part.
28931 (tree_if_convert_stmt): Update comment.
28932 (remove_conditions_and_labels): New.
28933 (combine_blocks): Call remove_conditions_and_labels.
28934 (tree_if_conversion): Update comment.
28936 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28938 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
28939 than 2 predecessors or more than 2 successors.
28941 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28943 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
28944 of loops in which the data dependence analysis fails.
28946 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28948 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
28949 CDI_POST_DOMINATORS.
28950 (tree_if_conversion): Same.
28952 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28954 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
28956 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28958 * tree-if-conv.c: Update copyright years. Fix comments.
28961 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
28963 * builtin-types.def (BT_INT128): New primitive type.
28964 (BT_UINT128): Likewise.
28965 * c-common.c (c_common_r): Add __int128 keyword.
28966 (c_common_type_for_size): Handle __int128.
28967 (c_common_type_for_mode): Likewise.
28968 (c_common_signed_or_unsigned_type): Likewise.
28969 (c_common_nodes_and_builtins): Add builtin type
28970 if target supports 128-bit integer scalar.
28971 * c-common.h (enum rid): Add RID_INT128.
28972 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
28973 if target supports 128-bit integer scalar.
28974 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
28975 (finish_declspecs): Likewise.
28976 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
28977 (c_token_starts_declspecs): Likewise.
28978 (c_parser_declspecs): Likewise.
28979 (c_parser_attributes): Likewise.
28980 (c_parser_objc_selector): Likewise.
28981 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
28982 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
28983 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
28984 * tree.c (make_or_reuse_type): Likewise.
28985 (make_unsigned_type): Likewise.
28986 (build_common_tree_nodes_2): Likewise.
28987 * tree.h (enum integer_type_kind): Add itk_int128 and
28988 itk_unsigned_int128.
28989 (int128_integer_type_node): New define.
28990 (int128_unsigned_type_node): New define.
28991 * doc/extend.texi: Add documentation about __int128 type.
28993 2010-05-26 Richard Guenther <rguenther@suse.de>
28995 * tree-ssa-sccvn.c (copy_nary): Adjust.
28996 (copy_phis): Rename to ...
28997 (copy_phi): ... this. Adjust.
28998 (copy_references): Rename to ...
28999 (copy_reference): ... this. Adjust.
29000 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
29001 result into the valid table.
29003 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
29005 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
29006 insn-config.h, insn-codes.h, recog.h, and optabs.h.
29008 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29010 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
29012 2010-05-26 Richard Guenther <rguenther@suse.de>
29014 * opts.c (common_handle_option): Handle OPT_Ofast.
29016 2010-05-26 Joseph Myers <joseph@codesourcery.com>
29018 * diagnostic.c: Don't include opts.h.
29019 (permissive_error_option): Define.
29020 (diagnostic_initialize): Take n_opts parameter. Allocate memory
29021 for classify_diagnostic. Don't use memset for
29022 classify_diagnostic. Initialize new and recently added fields.
29023 (diagnostic_classify_diagnostic): Use context->n_opts instead of
29025 (diagnostic_report_diagnostic): Pass context parameter to
29026 diagnostic_report_warnings_p. Use option_enabled and option_name
29027 hooks from context.
29028 (emit_diagnostic): Use permissive_error_option.
29029 (permerror): Likewise.
29030 * diagnostic.h: Don't include options.h.
29031 (struct diagnostic_context): Add n_opts, opt_permissive,
29032 inhibit_warnings, warn_system_headers, option_enabled and
29033 option_name fields. Change classify_diagnostic to a pointer.
29034 * opts-diagnostic.h: New file.
29035 * opts.c: Include opts-diagnostic.h.
29036 (common_handle_option): Set global_dc fields for -Wfatal-errors,
29037 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
29038 (option_name): New function.
29039 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
29040 (c_common_handle_option): Set global_dc->permissive for
29042 * c-common.c (c_cpp_error): Save and restore
29043 global_dc->warn_system_headers, not variable warn_system_headers.
29044 * toplev.c: Include opts-diagnostic.h.
29045 (general_init): Update call to diagnostic_initialize. Set
29046 global_dc->show_column, global_dc->option_enabled and
29047 global_dc->option_name.
29048 (process_options): Don't set global_dc fields here.
29049 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
29050 (diagnostic.o, opts.o, toplev.o): Update dependencies.
29052 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29054 * config/picochip/picochip.md (movsi): Split a movsi from a
29055 const after reload.
29057 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29059 * ggc-zone.c: Update copyright year.
29060 (poison_region): Mark memory for Valgrind as undefined before
29061 memset () call and inaccessible afterwards.
29062 (ggc_pch_total_size): Change type of i to int.
29064 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29066 * ggc-common.c (ggc_free_overhead): Allow empty slot.
29068 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29070 * ggc-common.c: Update copyright year.
29071 (ggc_rlimit_bound): Remove prototype. Compile only if
29072 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
29073 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
29074 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
29075 (ggc_min_heapsize_heuristic): Likewise.
29077 2010-05-26 Richard Guenther <rguenther@suse.de>
29079 PR rtl-optimization/44164
29080 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
29081 no-common access-path disambiguation.
29082 (indirect_ref_may_alias_decl_p): Adjust.
29083 (indirect_refs_may_alias_p): Likewise.
29084 (refs_may_alias_p_1): Likewise.
29086 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
29088 * c-typeck.c: Do not include expr.h.
29090 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
29092 * rtl.h (decl_default_tls_model): Move prototype from here...
29093 * output.h: ...to here.
29094 * c-decl.c: Do not include rtl.h.
29095 * c-pragma.c: Likewise.
29096 * c-parser.c: Likewise.
29097 * c-gimplify.c: Likewise. And also not hard-reg-set.
29098 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
29099 FIXME note for it. Add a FIXME note for expr.h.
29100 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
29101 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
29104 2010-05-26 Jakub Jelinek <jakub@redhat.com>
29107 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
29108 or total_size is larger than red zone size for non-V4 ABI, emit a
29109 stack_tie resp. frame_tie insn before stack pointer restore.
29110 * config/rs6000/rs6000.md (frame_tie): New insn.
29112 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
29114 * function.h (struct function): Add can_throw_non_call_exceptions bit.
29115 * lto-streamer-in.c (input_function): Stream it in.
29116 * lto-streamer-out.c (output_function): Stream it out.
29117 * function.c (allocate_struct_function): Set it.
29118 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
29119 for flag_non_call_exceptions.
29120 * cfgbuild.c (control_flow_insn_p): Likewise.
29121 (make_edges): Likewise.
29122 * cfgexpand.c (expand_stack_alignment): Likewise.
29123 * combine.c (distribute_notes): Likewise.
29124 * cse.c (cse_extended_basic_block): Likewise.
29125 * except.c (insn_could_throw_p): Likewise.
29126 * gcse.c (simple_mem): Likewise.
29127 * ipa-pure-const.c (check_call): Likewise.
29128 (check_stmt ): Likewise.
29129 * lower-subreg.c (lower-subreg.c): Likewise.
29130 * optabs.c (emit_libcall_block): Likewise.
29131 (prepare_cmp_insn): Likewise.
29132 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
29133 * postreload.c (rest_of_handle_postreload): Likewise.
29134 * reload1.c (reload_as_needed): Likewise.
29135 (emit_input_reload_insns): Likewise.
29136 (emit_output_reload_insns): Likewise.
29137 (fixup_abnormal_edges): Likewise.
29138 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
29139 * store-motion.c (find_moveable_store): Likewise.
29140 * tree-eh.c (stmt_could_throw_p): Likewise.
29141 (tree_could_throw_p): Likewise.
29142 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
29143 * config/arm/arm.c (arm_expand_prologue): Likewise.
29144 (thumb1_expand_prologue): Likewise.
29145 * config/rx/rx.md (cbranchsf4): Likewise.
29147 * config/s390/s390.c (s390_emit_prologue): Likewise.
29148 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
29149 (inline_forbidden_into_p): New predicate.
29150 (expand_call_inline): Use it to forbid inlining.
29151 (tree_can_inline_p): Likewise.
29153 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
29155 * config/i386/i386-c.c: Do not include rtl.h.
29156 * config/i386/t-i386: Update dependencies.
29158 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
29160 * attribs.c: Do not include rtl.h.
29161 * Makefile.in: Update dependencies.
29163 2010-05-25 Anatoly Sokolov <aesok@post.ru>
29165 * double-int.h (double_int_and): New.
29166 * combine.c (try_combine): Clean up, use double_int_* and
29167 immed_double_int_const functions.
29169 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29171 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
29172 stderr to /dev/null instead of grep -q.
29173 * configure: Regenerate.
29175 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
29177 * Makefile.in (EXCEPT_H): Fix typo.
29179 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
29181 * ira-build.c (update_conflict_hard_reg_costs): New.
29182 (ira_build): Call update_conflict_hard_reg_costs.
29184 2010-05-25 Jakub Jelinek <jakub@redhat.com>
29187 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
29189 (intersect_loc_chains): Walk the s2var's loc_chain together
29190 with s1node chain as long as the locations are equal, don't
29191 call find_loc_in_1pdv in that case.
29194 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
29195 (copy_bind_expr): ... instead of here.
29196 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
29197 if the block hasn't been remapped.
29198 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
29199 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
29201 2010-05-25 Richard Guenther <rguenther@suse.de>
29203 PR middle-end/44069
29204 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
29205 out-of-bounds array accesses.
29207 2010-05-25 Richard Guenther <rguenther@suse.de>
29209 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
29210 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
29211 (run_gcc): Re-organize to make cleanup easier.
29213 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29215 * config/s390/s390.c (optimization_options): Fix and move the
29216 flag_prefetch_loop_arrays override ...
29217 (override_options): ... here.
29219 2010-05-25 Joseph Myers <joseph@codesourcery.com>
29221 * diagnostic.c: Don't include plugin.h.
29222 (diagnostic_report_diagnostic): Don't handle plugins specially
29223 here. Pass context to internal_error callback.
29224 * diagnostic.h (struct diagnostic_context): Add context parameter
29225 to internal_error callback.
29226 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
29227 * plugin.h (struct diagnostic_context): Declare.
29228 (warn_if_plugins, plugins_internal_error_function): Declare.
29229 * toplev.c (general_init): Set global_dc->internal_error.
29230 * Makefile.in (diagnostic.o): Update dependencies.
29232 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
29234 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
29235 * config/rs6000/t-darwin64: New.
29236 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
29239 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
29242 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
29243 match the original (and intended) behaviour before r159557. This
29244 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
29247 2010-05-25 Richard Guenther <rguenther@suse.de>
29249 * doc/invoke.texi: Document -Ofast.
29250 * target.h (struct gcc_target): Add handle_ofast.
29251 * target-def.h (TARGET_HANDLE_OFAST): Add.
29252 (TARGET_INITIALIZER): Adjust.
29253 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
29254 * common.opt (Ofast): Add.
29256 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
29258 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
29259 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
29261 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
29264 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
29265 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
29266 false_rtx. Use false_rtx to compute the correct *ptest for reversed
29267 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
29269 2010-05-25 Jakub Jelinek <jakub@redhat.com>
29271 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
29272 DW_OP_minus with negated offset instead of DW_OP_plus.
29273 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
29275 2010-05-25 Wei Guozhi <carrot@google.com>
29277 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
29278 tst instruction and a new alternative.
29279 * config/arm/constraints.md (Pu): New constraint.
29281 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
29283 * function.c (assign_stack_local_1): Initialize variable
29284 to avoid warning when bootstrapping at -O3.
29286 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
29288 * configure.ac (all_lang_makefiles): Remove everything related to it.
29289 * configure: Regenerate.
29290 * Makefile.in: Fix reference to ada Make-lang.in.
29291 Remove support for LANG_MAKEFILES.
29293 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
29294 Sandra Loosemore <sandra@codesourcery.com>
29296 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
29297 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
29298 description. Add arm_neon_fp16_ok.
29299 (Add Options): Add arm_neon and arm_neon_fp16.
29301 2010-05-24 Joseph Myers <joseph@codesourcery.com>
29303 * diagnostic.c: Don't include flags.h.
29304 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
29305 context parameters. Check flags in the context passed as a parameter.
29306 (diagnostic_build_prefix): Add context parameter. Check
29307 show_column flag in context.
29308 (diagnostic_action_after_output): Check fatal_errors flag in context.
29309 (diagnostic_report_current_module): Check show_column flag in context.
29310 (default_diagnostic_starter): Update call to
29311 diagnostic_build_prefix.
29312 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
29313 (emit_diagnostic): Pass context to permissive_error_kind.
29314 (permerror): Pass context to permissive_error_kind.
29315 * diagnostic.h (struct diagnostic_context): Add show_column,
29316 pedantic_errors, permissive and fatal_errors fields.
29317 (diagnostic_build_prefix): Update prototype.
29319 * toplev.c (process_options): Set flags in global_dc from
29320 flag_show_column, flag_pedantic_errors, flag_permissive,
29322 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
29323 to diagnostic_build_prefix.
29324 * Makefile.in (diagnostic.o): Update dependencies.
29326 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
29328 * config/i386/ia32intrin.h (__crc32q): Define only if
29329 __SSE4_2__ is defined.
29331 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
29334 PR middle-end/43602
29335 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
29336 DECL_VISIBILITY_SPECIFIED.
29337 (emutls_decl): Set DECL_PRESERVE_P and copy
29338 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
29339 (emutls_finalize_control_var): New callback.
29340 (emutls_finish): Finalize emutls control variables.
29341 * toplev.c (compile_file): Move the call to emutls_finish ()
29342 before varpool_assemble_pending_decls ().
29344 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
29346 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
29347 added to the preprocessor condition.
29349 2010-05-24 Paul Brook <paul@codesourcery.com>
29351 * gengtype-lex.l: Add HARD_REG_SET.
29352 * expr.c (expand_expr_real_1): Record writes to hard registers.
29353 * function.c (rtl_data): Add asm_clobbers.
29354 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
29355 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
29356 Use crtl->asm_clobbers.
29358 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29360 * doc/makefile.texi (Makefile): Mention stages 'profile'
29361 and 'feedback' for profiledbootstrap.
29363 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
29366 * config/i386/i386.c (def_builtin): Properly check
29367 OPTION_MASK_ISA_64BIT.
29369 2010-05-23 Joseph Myers <joseph@codesourcery.com>
29371 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
29372 typedefs with different but compatible types. Allow duplicate
29373 typedefs with the same type except for pedantic non-C1X, but give
29374 warning for variably modified types.
29375 * c-typeck.c (tagged_types_tu_compatible_p,
29376 function_types_compatible_p, type_lists_compatible_p,
29377 comptypes_internal): Add parameter different_types_p; set
29378 *different_types_p for different but compatible types. All
29380 (comptypes_check_different_types): New.
29381 * c-tree.h (comptypes_check_different_types): Declare.
29383 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
29385 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
29386 * jump.c: Include basic-block.h.
29387 * profile.c: Likewise.
29388 * tree-profile.c: Likewise.
29389 * coverage.c: Likewise.
29390 * basic-block.h (optimize_function_for_size_p): Move to function.h.
29391 (optimize_function_for_speed_p): Likewise.
29392 * function.h (optimize_function_for_size_p,
29393 optimize_function_for_speed_p): Moved here from basic-block.h.
29394 * Makefile.in: Update dependencies.
29396 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29398 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
29399 before calling make; allow override through $MAKE.
29400 * doc/invoke.texi (Optimize Options): Document override.
29402 2010-05-23 Anatoly Sokolov <aesok@post.ru>
29404 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
29405 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29406 (rs6000_mode_dependent_address_ptr): Make static.
29407 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29408 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
29411 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
29414 * config/i386/i386.c: Make sure that the correct regparm is passed.
29416 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
29418 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
29419 * sbitmap.c: ...to here to internalize sbitmap element access.
29420 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
29421 Explain why basic-block.h is included.
29422 * function.h: Include tm.h for CUMULATIVE_ARGS.
29423 * Makefile.in: Update dependencies.
29425 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
29427 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
29429 * sbitmap.h (struct sbitmap_def): Do not typedef here.
29430 * sbitmap.c: Include sbitmap.h.
29431 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
29432 hard-reg-set.h. Split everything related to regsets out from here...
29433 * regset.h: ...to here. New file.
29434 * df.h: Include regset.h and sbitmap.h.
29435 * tree-flow.h: Likewise.
29436 * cfgloop.h: Likewise.
29437 * except.h: Do not include sbitmap.h. Include hashtab.h.
29438 * cgraph.h: Include vec.h and function.h.
29439 * reload.h (struct insn_chain): Change types of live_throughout
29440 and dead_or_set from regset_head to bitmap_head.
29441 (compute_use_by_pseudos): Be defined also if regset.h is not included.
29442 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
29443 spilled_regs from regset_head to bitmap_head to avoid dependency
29445 * sel-sched-ir.h: Include regset.h.
29446 * reload.c: Include df.h before reload.h.
29447 * caller-save.c: Likewise.
29448 * reload1.c: Likewise.
29450 (mark_elimination): Update type of r to bitmap, consistent with
29452 * dominance.c: Include bitmap.h.
29453 * modulo-sched.c: Include df.h.
29454 * cfganal.c: Include bitmap.h and sbitmap.h.
29455 * cfgbuild.c: Include sbitmap.h.
29456 * lcm.c: Include sbitmap.h.
29457 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
29458 * domwalk.c: Include sbitmap.h, exclude ggc.h.
29459 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
29460 * cselib.c: Include bitmap.h.
29461 * tree-optimize.c: Include regset.h.
29462 * stmt.c: Include bitmap.h.
29463 * Makefile.in: Update dependencies.
29465 2010-05-22 Jan Hubicka <jh@suse.cz>
29467 * cgraph.h (struct varpool_node): Add same_comdat_group.
29468 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
29470 (output_varpool): Update call of lto_output_varpool_node.
29471 (input_varpool): Read same_comdat_group pointer.
29472 (input_varpool_1): Fixup same_comdat_group pointer.
29473 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
29474 group is needed, all are.
29475 * varpool.c (varpool_remove_node): Remove node from same comdat group
29477 (varpool_analyze_pending_decls): Walk same comdat groups.
29479 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
29481 * rtl.h (union rtunion_def): Remove rt_bit member.
29482 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
29483 * print-rtl (print_rtx): Do not print the member.
29484 * gengtype.c (adjust_field_rtx_def): Do not handle it.
29485 * gengenrtl.c (type_from_format): Likewise.
29486 (accessor_from_format): Likewise.
29488 2010-05-22 Joseph Myers <joseph@codesourcery.com>
29490 * dbgcnt.c: Include toplev.h instead of errors.h.
29491 * ira-emit.c: Don't include errors.h.
29492 * ira.c: Include toplev.h instead of errors.h.
29493 * lto-compress.c: Include toplev.h instead of errors.h.
29494 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
29495 ira.o, dbgcnt.o): Update dependencies.
29497 2010-05-22 Richard Guenther <rguenther@suse.de>
29499 * gimple.c (gimple_types_compatible_p): Check type qualifications
29500 before merging pointer to complete and pointer to incomplete type.
29501 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
29502 we use our own resolution algorithm. The gold linker plugin
29503 doesn't do the job we want it to do here.
29505 2010-05-22 Anatoly Sokolov <aesok@post.ru>
29507 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29508 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29509 (sparc_mode_dependent_address_p): New function.
29511 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29513 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
29515 * timevar.c: Do not include any core headers.
29516 (timevar_print): De-i18n-ize.
29517 (print_time): Likewise.
29518 * timevar.h (timevar_push, timevar_pop): Make inline functions.
29520 2010-05-21 Joseph Myers <joseph@codesourcery.com>
29522 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
29524 (diagnostic_initialize): Initialize x_data not last_function.
29525 (diagnostic_report_current_function): Move to tree-diagnostic.c.
29526 (default_diagnostic_starter): Call
29527 diagnostic_report_current_module not
29528 diagnostic_report_current_function.
29529 (diagnostic_report_diagnostic): Initialize x_data not
29531 (verbatim): Likewise.
29532 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
29534 (struct diagnostic_context): Change last_function to x_data.
29535 (diagnostic_auxiliary_data): Replace with
29536 diagnostic_context_auxiliary_data and
29537 diagnostic_info_auxiliary_data.
29538 (diagnostic_last_function_changed, diagnostic_set_last_function,
29539 diagnostic_report_current_function): Move to tree-diagnostic.h.
29540 (print_declaration, dump_generic_node, print_generic_stmt,
29541 print_generic_stmt_indented, print_generic_expr,
29542 print_generic_decl, debug_c_tree, dump_omp_clauses,
29543 print_call_name, debug_generic_expr, debug_generic_stmt,
29544 debug_tree_chain, default_tree_printer): Move to
29545 tree-pretty-print.h.
29546 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
29547 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
29548 gimple-pretty-print.h.
29549 * pretty-print.c: Don't include tree.h
29550 (pp_base_format): Don't handle %K here.
29551 (pp_base_tree_identifier): Move to tree-pretty-print.c.
29552 * pretty-print.h (text_info): Change abstract_origin to x_data.
29553 (pp_tree_identifier, pp_unsupported_tree,
29554 pp_base_tree_identifier): Move to tree-pretty-print.h.
29555 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
29556 tree-pretty-print.h: New files.
29557 * tree-pretty-print.c: Include tree-pretty-print.h.
29558 (percent_K_format): New. Moved from pretty-print.c.
29559 (pp_base_tree_identifier): Move from pretty-print.c.
29560 * c-objc-common.c: Include tree-pretty-print.h.
29561 (c_tree_printer): Handle %K here.
29562 * langhooks.c: Include tree-diagnostic.h.
29563 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
29564 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
29565 (default_tree_printer): Handle %K using percent_K_format.
29566 (general_init): Use default_tree_diagnostic_starter.
29567 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
29568 (free_lang_data): Use default_tree_diagnostic_starter.
29569 * c-pretty-print.c: Include tree-pretty-print.h.
29570 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29571 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29572 * dwarf2out.c: Include tree-pretty-print.h.
29573 * except.c: Include tree-pretty-print.h.
29574 * gimple-pretty-print.c: Include tree-pretty-print.h and
29575 gimple-pretty-print.h.
29576 * gimplify.c: Include tree-pretty-print.h.
29577 * graphite-poly.c: Include tree-pretty-print.h and
29578 gimple-pretty-print.h.
29579 * ipa-cp.c: Include tree-pretty-print.h.
29580 * ipa-inline.c: Include gimple-pretty-print.h.
29581 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29582 * ipa-pure-const.c: Include gimple-pretty-print.h.
29583 * ipa-struct-reorg.c: Include tree-pretty-print.h and
29584 gimple-pretty-print.h.
29585 * ipa-type-escape.c: Include tree-pretty-print.h.
29586 * print-rtl.c: Include tree-pretty-print.h.
29587 * print-tree.c: Include gimple-pretty-print.h.
29588 * sese.c: Include tree-pretty-print.h.
29589 * tree-affine.c: Include tree-pretty-print.h.
29590 * tree-browser.c: Include tree-pretty-print.h.
29591 * tree-call-cdce.c: Include gimple-pretty-print.h.
29592 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29593 * tree-chrec.c: Include tree-pretty-print.h.
29594 * tree-data-ref.c: Include tree-pretty-print.h and
29595 gimple-pretty-print.h.
29596 * tree-dfa.c: Include tree-pretty-print.h.
29597 * tree-if-conv.c: Include tree-pretty-print.h and
29598 gimple-pretty-print.h.
29599 * tree-inline.c: Include tree-pretty-print.h.
29600 * tree-into-ssa.c: Include tree-pretty-print.h and
29601 gimple-pretty-print.h.
29602 * tree-nrv.c: Include tree-pretty-print.h.
29603 * tree-object-size.c: Include tree-pretty-print.h and
29604 gimple-pretty-print.h.
29605 * tree-outof-ssa.c: Include tree-pretty-print.h and
29606 gimple-pretty-print.h.
29607 * tree-parloops.c: Include tree-pretty-print.h and
29608 gimple-pretty-print.h.
29609 * tree-predcom.c: Include tree-pretty-print.h and
29610 gimple-pretty-print.h.
29611 * tree-scalar-evolution.c: Include tree-pretty-print.h and
29612 gimple-pretty-print.h.
29613 * tree-sra.c: Include tree-pretty-print.h.
29614 * tree-ssa-address.c: Include tree-pretty-print.h.
29615 * tree-ssa-alias.c: Include tree-pretty-print.h.
29616 * tree-ssa-ccp.c: Include tree-pretty-print.h and
29617 gimple-pretty-print.h.
29618 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
29619 * tree-ssa-copy.c: Include tree-pretty-print.h and
29620 gimple-pretty-print.h.
29621 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
29622 * tree-ssa-dce.c: Include tree-pretty-print.h and
29623 gimple-pretty-print.h.
29624 * tree-ssa-dom.c: Include tree-pretty-print.h and
29625 gimple-pretty-print.h.
29626 * tree-ssa-dse.c: Include gimple-pretty-print.h.
29627 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
29628 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
29629 * tree-ssa-live.c: Include tree-pretty-print.h and
29630 gimple-pretty-print.h.
29631 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
29632 gimple-pretty-print.h.
29633 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
29634 gimple-pretty-print.h.
29635 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
29636 gimple-pretty-print.h.
29637 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
29638 gimple-pretty-print.h.
29639 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
29640 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
29641 * tree-ssa-operands.c: Include tree-pretty-print.h and
29642 gimple-pretty-print.h.
29643 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
29644 gimple-pretty-print.h.
29645 * tree-ssa-pre.c: Include tree-pretty-print.h and
29646 gimple-pretty-print.h.
29647 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
29648 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
29649 gimple-pretty-print.h.
29650 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
29651 gimple-pretty-print.h.
29652 * tree-ssa-sink.c: Include gimple-pretty-print.h.
29653 * tree-ssa-ter.c: Include tree-pretty-print.h and
29654 gimple-pretty-print.h.
29655 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
29656 * tree-ssa.c: Include tree-pretty-print.h and
29657 gimple-pretty-print.h.
29658 * tree-stdarg.c: Include gimple-pretty-print.h.
29659 * tree-switch-conversion.c: Include gimple-pretty-print.h.
29660 * tree-tailcall.c: Include tree-pretty-print.h and
29661 gimple-pretty-print.h.
29662 * tree-vect-data-refs.c: Include tree-pretty-print.h and
29663 gimple-pretty-print.h.
29664 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
29665 gimple-pretty-print.h.
29666 * tree-vect-loop.c: Include tree-pretty-print.h and
29667 gimple-pretty-print.h.
29668 * tree-vect-patterns.c: Include gimple-pretty-print.h.
29669 * tree-vect-slp.c: Include tree-pretty-print.h and
29670 gimple-pretty-print.h.
29671 * tree-vect-stmts.c: Include tree-pretty-print.h and
29672 gimple-pretty-print.h.
29673 * tree-vectorizer.c: Include tree-pretty-print.h.
29674 * tree-vrp.c: Include tree-pretty-print.h and
29675 gimple-pretty-print.h.
29676 * value-prof.c: Include tree-pretty-print.h and
29677 gimple-pretty-print.h.
29678 * var-tracking.c: Include tree-pretty-print.h.
29679 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
29680 (tree-diagnostic.o): New dependencies.
29681 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
29682 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
29683 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
29684 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
29685 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
29686 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
29687 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
29688 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
29689 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
29690 tree-ssa-address.o, tree-ssa-loop-niter.o,
29691 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
29692 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
29693 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
29694 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
29695 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
29696 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
29697 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
29698 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
29699 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
29700 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
29701 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
29702 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
29703 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
29704 tree-switch-conversion.o, var-tracking.o, value-prof.o,
29705 cfgexpand.o, pretty-print.o): Update dependencies.
29707 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
29709 * tree-ssa-structalias.c: Remove tm_p.h from include.
29711 2010-05-21 Jeff Law <law@redhat.com>
29713 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
29715 2010-05-21 Jason Merrill <jason@redhat.com>
29717 * tree-eh.c (cleanup_is_dead_in): New.
29718 (lower_try_finally): Don't generate a dead cleanup region.
29719 (lower_cleanup): Likewise.
29721 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29724 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
29725 unchain each use from the cyclic next_regno_use chain first.
29727 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29729 * real: Do not include gmp.h, mpfr.h, and mpc.h.
29730 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
29731 (real_value_negate, real_value_abs): New prototypes.
29732 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
29733 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
29734 new include file for interface between MPFR and REAL_VALUE_TYPE.
29735 * real.c: Include realmpfr.h.
29736 (real_arithmetic2): Remove legacy function.
29737 (real_value_negate): New.
29738 (real_value_abs): New.
29739 (mfpr_from_real, real_from_mpfr): Move from here...
29740 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
29741 * builtins.c: Include realmpfr.h.
29742 * fold-const.c: Include realmpfr.h.
29743 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
29744 (fold_negate_const): Likewise.
29745 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
29746 * toplev.c: Include realmpfr.h.
29747 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
29748 and real_value_negate.
29749 * fixed-value.c (check_real_for_fixed_mode): Likewise.
29750 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
29751 (vfp3_const_double_index): Likewise.
29752 (arm_print_operand): Likewise.
29753 * Makefile.in: Update dependencies.
29755 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29757 * config/s390/s390.c (override_options): Increase the default
29758 of max-completely-peel-times.
29760 2010-05-21 Julian Brown <julian@codesourcery.com>
29761 Mark Mitchell <mark@codesourcery.com>
29763 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
29764 sibling calls for Thumb-1.
29765 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
29766 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
29768 (*call_insn, *call_value_insn): Don't use for Thumb-2.
29769 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
29771 (return): New expander.
29772 (*arm_return): New name for ARM return insn.
29773 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
29775 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
29777 * config.gcc (sparc64-*-rtems*): New target.
29779 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29781 * tree.c (build_function_decl_skip_args): Fix grammar.
29782 (build_function_type_list_1): Fix typos, adjust formatting.
29784 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29786 * tree.h: Include real.h and fixed-value.h as basic datatypes.
29787 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
29788 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
29789 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
29790 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
29791 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
29792 tree-pretty-print.c, tree-loop-distribution.c,
29793 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
29794 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
29795 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
29796 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
29797 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
29798 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
29799 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
29800 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
29801 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
29802 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
29803 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
29804 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
29805 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
29806 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
29807 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
29808 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
29809 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
29810 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
29811 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
29812 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
29813 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
29814 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
29815 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
29816 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
29817 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
29818 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
29819 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
29820 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
29821 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
29822 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
29823 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
29824 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
29825 config/score/score7.c, config/score/score.c, config/arm/arm.c,
29826 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
29827 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
29828 config/bfin/bfin.c: Clean up redundant includes.
29829 * Makefile.in: Update accordingly.
29831 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29833 PR middle-end/44204
29834 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
29835 statement has no arguments.
29837 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
29840 * varasm.c (emutls_decl): Merge attributes to new decl.
29842 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
29844 PR middle-end/44101
29845 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
29846 around the uniquized constructor if its type requires a conversion.
29848 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29851 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
29852 at -O0 goto_locus of any of the incoming edges differs from
29853 goto_locus of outgoing edge, or gimple_location of any of the
29856 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
29858 * ira.c (ira_non_ordered_class_hard_regs): Define.
29859 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
29860 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
29861 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
29862 cost of unaligned hard regs when allocating multi-reg pseudos.
29864 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
29866 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
29867 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
29868 for TARGET_NO_FLOAT.
29869 * config/mips/mips.c (mips_file_start): Expand conditional expression
29870 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
29871 (mips_override_options): Move -mno-float override -msoft-float and
29873 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
29874 Condition(TARGET_SUPPORTS_NO_FLOAT).
29875 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
29876 __mips_no_float here.
29877 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
29878 (TARGET_SUPPORTS_NO_FLOAT): Define.
29879 * config/mips/sdemtk.opt: Delete.
29881 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
29883 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
29885 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
29888 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
29889 * configure: Regenerate.
29890 * config.in: Regenerate.
29891 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
29892 instead of sahf only for 64bit targets.
29894 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29897 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
29898 setup_ref_regs for DEBUG_INSNs.
29900 2010-05-20 Jan Hubicka <jh@suse.cz>
29902 PR middle-end/44197
29903 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
29905 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
29908 * df-scan.c (df_ref_compare): Stabilize sort.
29910 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29912 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
29913 argument. Don't use DW_OP_piece if offset is non-zero,
29914 put offset into second DW_OP_bit_piece argument.
29915 (dw_sra_loc_expr): Adjust callers. For memory expressions
29918 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
29921 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
29922 settings for 16-bit-constant "addo" alternative.
29924 2010-05-19 James E. Wilson <wilson@codesourcery.com>
29926 * config/mips/mips-dsp.md (add<DSPV:mode>3,
29927 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
29930 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
29931 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
29934 2010-05-19 Joseph Myers <joseph@codesourcery.com>
29936 * diagnostic.c (FLOAT, FFS): Don't undefine.
29937 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
29938 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
29941 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29943 * combine.c (propagate_for_debug): Call make_compound_operation
29944 on the source value.
29945 (try_combine): When implementing a split chosen by find_split_point,
29946 either copy i2src or set it to null. Assert that i2src is not null
29947 before substituting into CALL_INSN_FUNCTION_USAGE.
29949 2010-05-19 Anatoly Sokolov <aesok@post.ru>
29951 * double-int.h (double_int_ior): New function.
29952 * tree.h (build_int_cst_wide_type): Remove.
29953 * tree.c (build_int_cst_wide_type): Remove.
29954 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
29955 of build_int_cst_wide_type.
29956 * stor-layout.c (set_sizetype): (Ditto.).
29957 * dojump.c (do_jump): Use build_int_cstu instead of
29958 build_int_cst_wide_type.
29960 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
29962 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
29963 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
29964 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
29965 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
29966 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
29967 propagate the 'data' argument to copy_tree_r.
29968 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
29969 Propagate 'data' argument to walk_tree.
29970 (copy_if_shared): New function.
29971 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
29972 (unmark_visited): New function.
29973 (unshare_body): Call copy_if_shared instead of doing it manually.
29974 (unvisit_body): Call unmark_visited instead of doing it manually.
29976 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
29978 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
29979 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
29980 * hooks.c: Likewise.
29981 * target-def.h (TARGET_FOLD_BUILTIN): Define to
29982 hook_tree_tree_int_treep_bool_null.
29983 * target.h (struct gcc_target): Update signature of fold_builtin
29985 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
29986 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
29987 instead of the call expression.
29988 (fold_builtin_call_array): Pass n and argarray directly.
29989 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
29991 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
29992 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
29993 `i' and use it in place of `arity'.
29994 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
29995 Dereference `args' directly.
29996 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
29998 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30000 * doc/sourcebuild.texi (Effective-Target Keywords): Document
30002 (Directives): Document optional dg-require-effective-target
30005 2010-05-19 Richard Guenther <rguenther@suse.de>
30008 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
30010 2010-05-19 Richard Guenther <rguenther@suse.de>
30012 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
30013 * common.opt (fwhopr=): New.
30014 * opts.c (common_handle_option): Handle OPT_fwhopr.
30015 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
30016 * collect2.c (main): Match -fwhopr*.
30017 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
30018 Execute ltrans stage in parallel when jobs is bigger than 1.
30020 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30022 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
30023 pentiumpro on Solaris 8/x86 with Sun as.
30024 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
30026 (gcc_cv_as_ix86_quad): Check for .quad directive.
30027 * configure: Regenerate.
30028 * config.in: Regenerate.
30029 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
30031 2010-05-19 Martin Jambor <mjambor@suse.cz>
30033 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
30034 also for indirect edges. Actual printing moved...
30035 (ipa_print_node_jump_functions_for_edge): ...here.
30036 (ipa_compute_jump_functions): Renamed to
30037 ipa_compute_jump_functions_for_edge and made static.
30038 (ipa_compute_jump_functions): New function.
30039 (make_edge_direct_to_target): Check if the number of arguments on
30040 the newly direct edge is the same as the number of parametrs of
30042 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
30043 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
30044 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
30045 analysis functions unconditionally, call the new
30046 ipa_analyze_params_uses on the node instead of every edge.
30048 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
30050 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
30052 (dump_mem_ref): Adopt debug code to handle a tree as step. This
30053 also checks for a constant int vs. non-constant but
30054 loop-invariant steps.
30055 (find_or_create_group): Change the sort algorithm to only consider
30056 steps that are constant ints.
30057 (idx_analyze_ref): Adopt code to handle a tree instead of a
30058 HOST_WIDE_INT for step.
30059 (gather_memory_references_ref): Handle tree instead of int and be
30060 prepared to see a NULL_TREE.
30061 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
30062 prefetches if the step cannot be calculated at compile time.
30063 (issue_prefetch_ref): Issue prefetches for non-constant but
30064 loop-invariant steps.
30066 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
30069 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
30071 * tree.h (build_call_list): Remove.
30072 * tree.c (build_call_list): Remove.
30074 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
30076 * tree.h (build_call_list): Remove.
30077 * tree.c (build_call_list): Remove.
30079 2010-05-18 Jan Hubicka <jh@suse.cz>
30081 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
30083 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
30085 PR rtl-optimization/43332
30086 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
30088 2010-05-18 Anatoly Sokolov <aesok@post.ru>
30090 * tree.h (build_int_cstu): Implement as static inline.
30091 * tree.c (build_int_cstu): Remove function.
30092 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
30095 2010-05-18 Richard Guenther <rguenther@suse.de>
30098 * lto-wrapper.c (verbose): New variable. Initialize from -v.
30099 (debug): Initialize from -save-temps.
30100 (collect_execute): Print command-line when verbose.
30101 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
30102 for ltrans invocation. Produce -dumpbase flag again.
30103 (process_args): Remove.
30105 * collect2.c (maybe_run_lto_and_relink): Only pass object
30106 files to lto-wrapper.
30107 * gcc.c (LINK_COMMAND_SPEC): Likewise.
30109 2010-05-18 Jan Hubicka <jh@suse.cz>
30111 * opts.c (decode_options): Do not disable whopr at ipa_cp.
30112 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
30114 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
30117 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
30119 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
30122 2010-05-18 Jakub Jelinek <jakub@redhat.com>
30125 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
30126 rtx_equal_p inline.
30128 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
30130 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
30131 lto-macho as lto_binary_reader.
30133 * darwin.c (darwin_asm_named_section): Do not add assembler comment
30134 after .section directive; just print it before the directive instead.
30136 2010-05-17 Jan Hubicka <jh@suse.cz>
30138 * cgraph.c (cgraph_create_virtual_clone): Only check
30139 versionable_function_p when not in wpa and checking is enabled.
30140 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
30141 there are no more functions to materialize.
30143 2010-05-17 Jan Hubicka <jh@suse.cz>
30145 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
30146 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
30148 (output_cgraph): Call output_cgraph_opt_summary.
30149 (input_cgrpah): Call input_cgraph_opt_summary.
30150 (output_cgraph_opt_summary_p, output_node_opt_summary,
30151 input_node_opt_summary, input_cgraph_opt_section): New functions.
30152 * lto-section-in.c (lto_section_name): Add cgraphopt.
30153 * tree-inline.c (tree_function_versioning): Handle parm_num.
30154 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
30155 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
30157 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
30159 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
30160 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
30161 the insn to prefetch ratio heuristic to loops with known trip count.
30163 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
30165 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
30166 (schedule_prefetches): Do not generate a prefetch if the unroll factor
30167 is far from what is required by the prefetch.
30169 2010-05-17 Jan Hubicka <jh@suse.cz>
30171 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
30172 (ipcp_estimate_growth): Likewise.
30173 (ipcp_const_param_count): Likewise.
30174 (ipcp_insert_stage): Likewise.
30175 * ipa-prop.c (visit_load_for_mod_analysis): New function.
30176 (visit_store_addr_for_mod_analysis): Set used flag.
30177 (ipa_detect_param_modifications): Set used flag for SSE params;
30178 update use of walk_stmt_load_store_addr_ops.
30179 (ipa_print_node_params): Print used flag.
30180 (ipa_write_node_info): Stream used flag.
30181 (ipa_read_node_info): Likewise.
30182 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
30183 (ipa_is_param_used): New function.
30184 (lto_ipa_fixup_call_notes): Remove unused declaration.
30186 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30189 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
30190 * configure: Regenerate.
30191 * config.in: Regenerate.
30192 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
30193 !HAVE_AS_IX86_REP_LOCK_PREFIX.
30194 Don't emit whitespace.
30195 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
30196 (*rep_movsi): Likewise.
30197 (*rep_movsi_rex64): Likewise.
30198 (*rep_movqi): Likewise.
30199 (*rep_movqi_rex64): Likewise.
30200 (*rep_stosdi_rex64): Likewise.
30201 (*rep_stossi): Likewise.
30202 (*rep_stossi_rex64): Likewise.
30203 (*rep_stosqi): Likewise.
30204 (*rep_stosqi_rex64): Likewise.
30205 (*cmpstrnqi_nz_1): Use {%;} after repz.
30206 (*cmpstrnqi_nz_rex_1): Likewise.
30207 (*cmpstrnqi_1): Likewise.
30208 (*cmpstrnqi_rex_1): Likewise.
30209 (*strlenqi_1): Use {%;} after repnz.
30210 (*strlenqi_rex_1): Likewise.
30211 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
30212 (*sync_compare_and_swap<mode>): Likewise.
30213 (sync_double_compare_and_swap<mode>): Likewise.
30214 (*sync_double_compare_and_swapdi_pic): Likewise.
30215 (sync_old_add<mode>): Likewise.
30216 (sync_add<mode>): Likewise.
30217 (sync_sub<mode>): Likewise.
30218 (sync_<code><mode>): Likewise.
30220 2010-05-17 Martin Jambor <mjambor@suse.cz>
30222 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
30223 otr_token and polymorphic.
30224 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
30225 (cgraph_clone_edge): Copy the above fields.
30226 * tree.c (get_binfo_at_offset): New function.
30227 * tree.h (get_binfo_at_offset): Declare.
30228 * ipa-prop.h (enum jump_func_type): Added known_type jump function
30229 type, reordered items, updated comments.
30230 (union jump_func_value): Added base_type field, reordered fields.
30231 (enum ipa_lattice_type): Moved down in the file.
30232 (struct ipa_param_descriptor): New field polymorphic.
30233 (ipa_is_param_polymorphic): New function.
30234 * ipa-prop.c: Include gimple.h and gimple-fold.h.
30235 (ipa_print_node_jump_functions): Print known type jump functions.
30236 (compute_complex_pass_through): Renamed to...
30237 (compute_complex_assign_jump_func): this.
30238 (compute_complex_ancestor_jump_func): New function.
30239 (compute_known_type_jump_func): Likewise.
30240 (compute_scalar_jump_functions): Create known type and complex ancestor
30242 (ipa_note_param_call): New parameter polymorphic, set the corresponding
30243 flag in the call note accordingly.
30244 (ipa_analyze_call_uses): Renamed to...
30245 (ipa_analyze_indirect_call_uses): this. New parameter target, define
30246 variable var only in the block where it is used.
30247 (ipa_analyze_virtual_call_uses): New function.
30248 (ipa_analyze_call_uses): Likewise.
30249 (combine_known_type_and_ancestor_jfs): Likewise.
30250 (update_jump_functions_after_inlining): Implemented handling of a
30251 number of new jump function types combination.
30252 (print_edge_addition_message): Removed.
30253 (make_edge_direct_to_target): New function.
30254 (try_make_edge_direct_simple_call): Likewise.
30255 (try_make_edge_direct_virtual_call): Likewise.
30256 (update_call_notes_after_inlining): Renamed to...
30257 (update_indirect_edges_after_inlining): this. Moved edge creation for
30258 indirect calls to try_make_edge_direct_simple_call, also calls
30259 try_make_edge_direct_virtual_call for virtual calls.
30260 (ipa_print_node_params): Changed the header message.
30261 (ipa_write_jump_function): Stream also known type jump functions.
30262 (ipa_read_jump_function): Likewise.
30263 (ipa_write_indirect_edge_info): Stream new fields in
30264 cgraph_indirect_call_info.
30265 (ipa_read_indirect_edge_info): Likewise.
30266 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
30269 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30271 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
30273 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
30275 * tree.h (CALL_EXPR_ARGS): Delete.
30276 (call_expr_arglist): Delete.
30277 * tree.c (call_expr_arglist): Delete.
30278 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
30279 targetm.fold_builtin.
30280 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
30281 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
30282 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
30283 arglist parameter. Use CALL_EXPR_ARG.
30284 (picochip_expand_builtin_3op): Likewise.
30285 (picochip_expand_builtin_2opvoid): Likewise.
30286 (picochip_expand_array_get): Likewise.
30287 (picochip_expand_array_put): Likewise.
30288 (picochip_expand_array_testport): Likewise.
30289 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
30290 rather than arglist.
30291 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
30293 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
30294 than TREE_VALUE and TREE_CHAIN.
30295 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
30296 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
30299 2010-05-17 Jakub Jelinek <jakub@redhat.com>
30302 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
30303 to have no fallthru edge.
30305 PR middle-end/44102
30306 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
30307 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
30308 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
30309 add BARRIER after previous bb if needed.
30311 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
30313 * tree.c (build_function_type_list_1): Remove bogus assert condition.
30315 2010-05-17 Alan Modra <amodra@gmail.com>
30317 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
30318 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
30319 with copy_reg rtx param.
30320 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
30321 Correct cases where code for ABI_V4 did not initialise the reg
30322 used to access frame. Also leave frame_reg_rtx as sp for large
30323 frames that save no regs.
30325 2010-05-17 Martin Jambor <mjambor@suse.cz>
30327 PR middle-end/44133
30328 * tree-sra.c (create_access_replacement): New parameter rename, mark
30329 the replaement for renaming only when it is true.
30330 (get_access_replacement): Pass true in the rename parameter of
30331 create_access_replacement.
30332 (get_unrenamed_access_replacement): New function.
30333 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
30334 replacement declaration from it.
30336 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
30338 * function.c (try_fit_stack_local, add_frame_space): New static
30340 (assign_stack_local_1): Use them. Look for opportunities to use
30341 space previously wasted on alignment.
30342 * function.h (struct frame_space): New.
30343 (struct rtl_data): Add FRAME_SPACE_LIST member.
30344 * reload1.c (something_was_spilled): New static variable.
30345 (alter_reg): Set it.
30346 (reload): Test it in addition to testing if the frame size changed.
30348 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
30350 * config/s390/s390.c: Define sane prefetch settings and activate
30351 flag_prefetch_loop_arrays on -O3.
30352 * config/s390/s390.h: Declare that read can use write prefetch.
30354 2010-05-17 Jakub Jelinek <jakub@redhat.com>
30356 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
30359 2010-05-16 Jan Hubicka <jh@suse.cz>
30361 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
30362 function body; do not check stdarg field of struct function.
30364 2010-05-16 Jan Hubicka <jh@suse.cz>
30366 * cgraph.c (dump_cgraph_node): Dump versionable flag.
30367 * cgraph.h (cgraph_local_info): Add versionable flag.
30368 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
30369 (ipcp_versionable_function_p): Use it.
30370 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30373 2010-05-16 Jan Hubicka <jh@suse.cz>
30375 * cgraph.c (cgraph_clone_node): Take decl argument and insert
30376 clone into hash when it is different from orig.
30377 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
30378 * cgraph.h (cgraph_clone_node): Update prototype.
30379 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
30380 (lto_cgraph_encoder_delete): Delete body map.
30381 (lto_cgraph_encoder_size): Move to header.
30382 (lto_cgraph_encoder_encode_body_p,
30383 lto_set_cgraph_encoder_encode_body): New.
30384 (lto_output_node): Do not take written_decls argument; output clone_of
30386 (add_node_to): Add include_body_argument; call
30387 lto_set_cgraph_encoder_encode_body on master of the clone.
30388 (add_references): Update use of add_node_to.
30389 (compute_ltrans_boundary): Likewise.
30390 (output_cgraph): Do not create written_decls bitmap.
30391 (input_node): Take nodes argument; stream in clone_of correctly.
30392 (input_cgraph_1): Update use of input_node.
30393 * lto-streamer-out.c (lto_output): Use encoder info to decide
30394 what bodies to output.
30395 * ipa-inline.c (cgraph_clone_inlined_nodes,
30396 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
30397 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
30398 (lto_cgraph_encoder_size): Define here.
30399 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
30402 2010-05-16 Richard Guenther <rguenther@suse.de>
30404 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
30406 * ipa-type-escape.c (gate_type_escape_vars): Run when
30407 -fipa-struct-reorg runs.
30408 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
30409 * common.opt (fipa-type-escape): Remove.
30411 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
30413 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
30414 (decode_options): Likewise.
30415 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
30417 2010-05-16 Jan Hubicka <jh@suse.cz>
30419 * ipa.c (function_and_variable_visibility): Also bring local all
30422 2010-05-16 Richard Guenther <rguenther@suse.de>
30424 * alias.c (nonoverlapping_memrefs_p): Remove use of
30425 IPA type-escape information.
30427 2010-05-16 Joseph Myers <joseph@codesourcery.com>
30429 * c-common.c (c_common_reswords): Add _Static_assert for C.
30430 * c-parser.c (c_token_starts_declaration,
30431 c_parser_next_token_starts_declaration,
30432 c_parser_static_assert_declaration_no_semi,
30433 c_parser_static_assert_declaration): New.
30434 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
30435 Handle static assertions if static_assert_ok.
30436 (c_parser_external_declaration, c_parser_declaration_or_fndef,
30437 c_parser_compound_statement_nostart, c_parser_label,
30438 c_parser_for_statement, c_parser_objc_methodprotolist,
30439 c_parser_omp_for_loop): All callers of
30440 c_parser_declaration_or_fndef changed.
30441 (c_parser_struct_declaration): Handle static assertions.
30442 (c_parser_compound_statement_nostart): Use
30443 c_parser_next_token_starts_declaration and
30444 c_token_starts_declaration to detect start of declarations.
30445 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
30448 2010-05-16 Anatoly Sokolov <aesok@post.ru>
30450 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
30451 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
30452 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30453 TARGET_FUNCTION_VALUE_REGNO_P): Define.
30454 (mmix_function_outgoing_value): Rename to...
30455 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
30456 (mmix_function_value_regno_p): Make static.
30457 (mmix_libcall_value): New function.
30458 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
30459 mmix_function_value_regno_p): Remove declaration.
30461 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
30463 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
30464 BUILT_IN_ALLOCA if stack checking is enabled.
30466 2010-05-16 Richard Guenther <rguenther@suse.de>
30468 * var-tracking.c (vars_copy_1): Inline ...
30469 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
30470 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
30471 (variable_merge_over_cur): Adjust. Merge asserts.
30472 (variable_merge_over_src): Likewise.
30473 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
30474 (variable_post_merge_new_vals): Merge asserts.
30475 (variable_post_merge_perm_vals): Likewise.
30476 (find_mem_expr_in_1pdv): Likewise.
30477 (dataflow_set_different_value): Remove.
30478 (onepart_variable_different_p): Merge asserts.
30479 (variable_different_p): Likewise.
30480 (dataflow_set_different_1): Inline ...
30481 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
30482 (emit_notes_for_differences_1): Merge asserts.
30484 2010-05-16 Richard Guenther <rguenther@suse.de>
30486 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
30487 * optabs.c (libfunc_decl_hash): Likewise.
30488 * varasm.c (emutls_decl): Likewise.
30490 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
30492 * c-decl.c: Don't include gimple.h.
30493 (merge_decls): Do not copy gimple_body.
30495 2010-05-15 Jason Merrill <jason@redhat.com>
30497 * c.opt: Add -fnothrow-opt.
30499 2010-05-15 Jan Hubicka <jh@suse.cz>
30501 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
30503 * passes.c (ipa_write_summaries): Write all analyzed nodes.
30505 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
30507 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
30508 * Makefile.in: Add it.
30509 Fix all other Makefile dependencies for changes below.
30510 * tree.h: Include it instead of defining VEC primitives here.
30511 * gimple.h: Likewise.
30513 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
30514 * except.h: Include vecir.h, break dependence on tree.h.
30516 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
30518 * tree-iterator.c: ...to here.
30519 * tree-iterator.h: Fix file introduction comment. Add extern markers.
30521 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
30523 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
30524 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
30525 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
30526 tree-mudflap.h, and target.h.
30527 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
30528 predict.h, tree-inline.h, gimple.h, and langhooks.h.
30529 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
30530 Add FIXME for why gimple.h is still included (should be unnecessary
30531 since GCC 4.5 gimplification unit-at-a-time).
30532 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
30533 * c-pragma.c: Add FIXME for why function.h needs to be included just
30534 for cfun, at front-end level.
30535 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
30536 Do not include ggc.h, but include vecprim.h for VEC(char).
30537 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
30538 Explain why target.h is included.
30539 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
30540 Explain why gimple.h is included.
30541 * c-ppoutput.c: Do not include tm.h.
30542 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
30543 * c-parses.c: Explain why rtl.h is included, and that this (and only
30544 this) is also why tm.h must be included.
30545 Do not include except.h.
30546 * c-lang.c: Do not include ggc.h.
30548 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
30550 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
30552 2010-05-15 Joseph Myers <joseph@codesourcery.com>
30554 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
30555 unions by default if those structs and unions have no tags. Do
30556 not condition anonymous struct and unions handling on flag_iso.
30557 Allow anonymous structs and unions for C1X.
30558 (finish_struct): Do not diagnose lack of named fields when
30559 anonymous structs and unions present for C1X. Accept flexible
30560 array members in structure with anonymous structs or unions but no
30561 directly named fields.
30562 * doc/extend.texi (Unnamed Fields): Update.
30564 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
30566 * gimple.h (compare_field_offset): Rename into...
30567 (gimple_compare_field_offset): ...this.
30568 * gimple.c (compare_field_offset): Rename into...
30569 (gimple_compare_field_offset): ...this. Compare the full access if
30570 the offset is self-referential.
30571 (gimple_types_compatible_p): Adjust for above renaming.
30572 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
30573 DECL_NONADDRESSABLE_P flag of fields before merging them.
30575 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
30577 * tree.h (ctor_to_list): Delete.
30578 * tree.c (ctor_to_list): Delete.
30580 2010-05-15 Jan Hubicka <jh@suse.cz>
30582 * ipa-reference.c: Include toplev.h
30583 (is_proper_for_analysis): Only add to all_module_statics
30584 if it is allocated.
30585 (write_node_summary_p, stream_out_bitmap,
30586 ipa_reference_write_optimization_summary,
30587 ipa_reference_read_optimization_summary): New.
30588 (struct ipa_opt_pass_d pass_ipa_reference): Add
30589 optimization summary streaming.
30590 * lto-cgraph.c (referenced_from_this_partition_p,
30591 reachable_from_this_partition_p): New functions.
30592 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
30593 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
30594 * opts.c (decode_options): Enable ipa_reference.
30595 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
30596 * lto-streamer.h (referenced_from_this_partition_p,
30597 reachable_from_this_partition_p): Declare.
30599 2010-05-15 Richard Guenther <rguenther@suse.de>
30601 PR tree-optimization/44038
30602 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
30603 taking the address of a V_C_E of a constant.
30605 2010-05-14 Jan Hubicka <jh@suse.cz>
30607 * tree.h (memory_identifier_string): Remove.
30608 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
30609 (ipa_reference_global_vars_info_d): Remove statics_not_read and
30610 statics_not_written.
30611 (ipa_reference_optimization_summary_d): New structure.
30612 (ipa_reference_optimization_summary_t): New type and vector.
30613 (ipa_reference_vars_info_d): Embedd structures instead of using
30615 (reference_vars_to_consider): Remove out of GGC space.
30616 (module_statics_escape): Remove.
30617 (global_info_obstack): Rename to ...
30618 (optimization_summary_obstack): ... this one.
30619 (initialization_status_t): Remove.
30620 (memory_identifier_string): Remove.
30621 (get_reference_vars_info): Fix indenting.
30622 (set_reference_vars_info): Likewise.
30623 (get_reference_optimization_summary): New.
30624 (set_reference_optimization_summary): New.
30625 (get_global_reference_vars_info): Remove.
30626 (ipa_reference_get_read_global): Remove.
30627 (ipa_reference_get_written_global): Remove.
30628 (ipa_reference_get_not_read_global): Update.
30629 (ipa_reference_get_not_written_global): Update.
30630 (is_proper_for_analysis): Outlaw addressable.
30631 (propagate_bits): Update for new datastructures.
30632 (analyze_variable): Remove.
30633 (init_function_info): Update for new datastructures.
30634 (clean_function_local_data): Remove.
30635 (clean_function): Remove.
30636 (copy_global_bitmap): Use optimizations_summary_obstack.
30637 (duplicate_node_data): Duplicate optimization summary only.
30638 (remove_node_data): Remove optimization summary only.
30639 (generate_summary): Do not analyze variables; do not compute
30640 module_statics_escape; do not prune solutions by it.
30641 (read_write_all_from_decl): Fix typos in comments.
30642 (propagate): Doscover readonly and nonaddressable first;
30643 update for new datastructures; share global bitmaps.
30644 * ipa-reference.h (ipa_reference_get_read_global,
30645 ipa_reference_get_written_global): Remove.
30646 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
30647 * Makefile.in: Remove ipa-refereference from GT files.
30649 2010-05-14 Jakub Jelinek <jakub@redhat.com>
30652 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
30653 for all SYMBOL_REF_DECLs.
30655 2010-05-14 Jan Hubicka <jh@suse.cz>
30657 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
30658 (varpool_all_refs_explicit_p): New inline function.
30659 * ipa-reference.c: Update comment.
30660 (module_statics_written): Remove.
30661 (get_static_decl): Remove.
30662 (ipa_init): Do not initialize module_statics_written.
30663 (analyze_function): Likewise.
30664 (generate_summary): Likewise; do not compute module_statics_readonly
30665 and do not update variable flags.
30666 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
30667 * ipa.c: Inlucde flags.h
30668 (cgraph_local_node_p): New.
30669 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
30670 promote functions to local.
30671 (ipa_discover_readonly_nonaddressable_vars): New function.
30672 (function_and_variable_visibility): Use cgraph_local_node_p.
30673 * varpool.c (varpool_finalize_decl): Set force_output for
30674 DECL_PRESERVE_P vars.
30676 2010-05-14 Jan Hubicka <jh@suse.cz>
30678 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
30680 2010-05-14 Richard Guenther <rguenther@suse.de>
30682 PR tree-optimization/44119
30683 * tree-ssa-pre.c (eliminate): Properly mark replacement of
30684 a PHI node necessary.
30686 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
30688 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
30690 2010-05-14 Jason Merrill <jason@redhat.com>
30693 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
30694 (gimple_call_set_nothrow): New.
30695 * gimple.c (gimple_build_call_from_tree): Call it.
30696 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
30699 * gimplify.c (gimplify_seq_add_stmt): No longer static.
30700 * gimple.h: Declare it.
30701 * gimple.c (gimple_build_eh_filter): No ops.
30703 2010-05-14 Jan Hubicka <jh@suse.cz>
30705 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
30706 nodes already in queue.
30707 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
30708 re-enqueueing node.
30710 2010-05-14 Jakub Jelinek <jakub@redhat.com>
30713 * cfgexpand.c (expand_debug_expr): If non-memory op0
30714 has BLKmode, return NULL.
30716 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
30718 * config.gcc: Add support for --with-cpu option for bdver1.
30719 * config/i386/i386.h (TARGET_BDVER1): New macro.
30720 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
30721 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30722 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
30723 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30724 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
30725 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
30726 (processor_type): Add PROCESSOR_BDVER1.
30727 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
30728 processor_type in config/i386/i386.h.
30729 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
30730 movaps <reg, reg> instead of movapd <reg, reg> when replacing
30731 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
30732 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
30733 to emit packed xor instead of packed double/packed integer
30734 xor for SSE and AVX when moving a zero value.
30735 * config/i386/sse.md: Add check for
30736 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
30737 movapd/movdqa for SSE and AVX.
30738 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
30739 single logical operations i.e and, or and xor instead of packed double
30740 logical operations for SSE and AVX.
30741 * config/i386/i386-c.c (ix86_target_macros_internal):
30742 Add PROCESSOR_BDVER1.
30743 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
30744 (has_fma4, has_xop): New.
30745 * config/i386/i386.c (bdver1_cost): New variable.
30746 (m_BDVER1): New macro.
30747 (m_AMD_MULTIPLE): Add m_BDVER1.
30748 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
30749 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
30750 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
30751 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
30752 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
30753 x86_tune_sse_partial_reg_dependency,
30754 x86_tune_sse_unaligned_load_optimal,
30755 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
30756 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
30757 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
30758 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
30759 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
30760 Enable/disable for bdver1.
30761 (processor_target_table): Add bdver1_cost.
30762 (cpu_names): Add bdver1.
30763 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
30764 processor_alias_table.
30765 (ix86_expand_vector_move_misalign): Change.
30766 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
30767 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
30768 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
30769 of movupd/movdqu for SSE and AVX.
30770 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
30771 (ix86_tune_adjust_cost): Add code for bdver1.
30772 (standard_sse_constant_opcode): Add check for
30773 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
30774 of packed double xor for SSE and AVX.
30776 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
30778 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
30779 result to unsigned.
30781 2010-05-14 Tristan Gingold <gingold@adacore.com>
30783 * toplev.c (default_debug_hooks): Remove this variable.
30784 (process_options): Remove assignments to default_debug_hooks.
30786 2010-05-14 Martin Jambor <mjambor@suse.cz>
30788 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
30789 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
30790 * langhooks.h (struct lang_hooks_for_decls): Removed field
30792 * tree.c (free_lang_data): Remove assignment to
30793 lang_hooks.fold_obj_type_ref.
30794 * tree.def (OBJ_TYPE_REF): Update comment.
30796 2010-05-14 Richard Guenther <rguenther@suse.de>
30798 PR tree-optimization/44124
30799 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
30801 2010-05-14 Alan Modra <amodra@gmail.com>
30804 * config/rs6000/rs6000.c (struct machine_function): Reorder
30805 fields for better packing. Add lr_save_state.
30806 (rs6000_ra_ever_killed): Return lr_save_state if set.
30807 (rs6000_emit_eh_reg_restore): Set lr_save_state.
30809 2010-05-13 Jan Hubicka <jh@suse.cz>
30811 * varpool.c (decide_is_variable_needed): Drop code checking
30812 TREE_SYMBOL_REFERENCED.
30814 2010-05-13 Jan Hubicka <jh@suse.cz>
30816 * final.c (output_addr_const): Do not call mark_decl_referenced.
30817 * cgraphunit.c (process_function_and_variable_attributes): Use
30818 mark_needed_node dirrectly.
30819 (assemble_thunk): Do not call mark_decl_referenced.
30821 2010-05-13 Anatoly Sokolov <aesok@post.ru>
30823 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
30825 2010-05-13 Jeff Law <law@redhat.com>
30827 * ira-conflicts.c (print_allocno_conflicts): New function broken out
30829 (print_conflicts): Call print_allocno_conflicts.
30831 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30834 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
30837 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
30839 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
30840 t-mingw-w64 or t-mingw-w32 for multilib configuration.
30841 * config/i386/t-mingw-w32: New.
30842 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
30844 2010-05-13 Martin Jambor <mjambor@suse.cz>
30846 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
30848 * gimple-fold.c (get_base_binfo_for_type): New function.
30849 (gimple_get_relevant_ref_binfo): Likewise.
30850 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30851 (gimple_fold_obj_type_ref): Likewise.
30852 (fold_gimple_call): Simplify condition for folding virtual calls
30853 and call gimple_fold_obj_type_ref.
30854 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
30855 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30857 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
30859 * config/rs6000/rs6000-protos.h
30860 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
30861 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
30862 (rs6000_debug_mode_dependent_address)
30863 (rs6000_mode_dependent_address_ptr): Likewise.
30865 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30868 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
30870 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
30871 * tree-sra.c (create_access_replacement): Call unshare_expr before
30872 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
30873 * dwarf2out.c: Include tree-flow.h.
30874 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
30875 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
30876 Handle DW_OP_bit_piece.
30877 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
30878 construct_piece_list, adjust_piece_list): New functions.
30879 (add_var_loc_to_decl): Handle SRA optimized variables.
30880 Adjust for var_loc_note to loc field renaming.
30881 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
30882 in VAR_LOCATION note.
30883 (new_loc_descr_op_bit_piece): New function.
30884 (dw_sra_loc_expr): New function.
30885 (dw_loc_list): Use it. Don't handle the last range after the
30886 loop, handle it inside of the loop. Adjust for var_loc_note
30887 to loc field renaming.
30888 (add_location_or_const_value_attribute): Only special case
30889 single entry loc lists if loc is NOTE_P. Adjust for
30890 var_loc_note to loc field renaming.
30891 (dwarf2out_var_location): Don't set newloc->var_loc_note
30892 and newloc->next here.
30894 2010-05-12 Jan Hubicka <jh@suse.cz>
30896 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
30898 * cgraph.h (cgraph_only_called_directly_p,
30899 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
30900 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
30901 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
30903 * ipa.c (cgraph_remove_unreachable_nodes): Use
30904 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
30906 * tree-inline.c (copy_bb): Check address_taken flag.
30907 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
30908 externally_visible flag.
30910 2010-05-12 Jason Merrill <jason@redhat.com>
30914 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
30915 * sdbout.c (plain_type_1): Likewise.
30916 * dwarf2out.c (is_base_type): Likewise.
30917 (gen_type_die_with_usage): Likewise. Generate
30918 DW_TAG_unspecified_type for any LANG_TYPE.
30920 2010-05-12 Jan Hubicka <jh@suse.cz>
30922 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
30924 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
30925 (cgraph_clone_edge): Update.
30926 (cgraph_node_remove_callees): Remove indirect calls too.
30927 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
30928 (cgraph_create_indirect_edge): Update prototype.
30929 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
30930 is_proper_for_analysis.
30931 (add_new_function, visited_nodes, function_insertion_hook_holder,
30932 get_local_reference_vars_info, mark_address_taken, mark_address,
30933 mark_load, mark_store, check_asm_memory_clobber, check_call,
30934 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
30935 (ipa_init): Do not initialize visited_nodes;
30936 function_insertion_hook_holder.
30937 (analyze_variable): Rewrite.
30938 (analyze_function): Rewrite.
30939 (copy_local_bitmap): Remove.
30940 (duplicate_node_dat): Do not duplicate local info.
30941 (generate_summary): Simplify to only walk cgraph.
30942 (write_node_summary_p, ipa_reference_write_summary,
30943 ipa_reference_read_summary): Remove.
30944 (propagate): Do not remove function insertion;
30946 (pass_ipa_reference): NULLify summary handling fields.
30947 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
30948 (input_edge): Input ecf_flags.
30949 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
30950 (update_indirect_edges_after_inlining): Ignore edges with unknown
30953 2010-05-12 Sriraman Tallam <tmsriram@google.com>
30955 * implicit-zee.c: New file.
30956 * tree-pass.h (pass_implicit_zee): Declare.
30957 * passes.c (init_optimization_passes): Add zee pass.
30958 * common.opt (fzee): New flag.
30959 * timevar.def (TV_ZEE): Define.
30960 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
30962 * Makefile.in (implicit-zee.o): Add new build file.
30964 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30965 Nathan Froyd <froydnj@codesourcery.com>
30967 * c-common.c (sync_resolve_params): Remove write-only variable.
30969 2010-05-12 Anatoly Sokolov <aesok@post.ru>
30971 * target.h (struct gcc_target): Add mode_dependent_address_p field.
30972 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30973 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
30974 * targhooks.c (default_mode_dependent_address_p): New function.
30975 * targhooks.h (default_mode_dependent_address_p): Declare function.
30976 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30977 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
30978 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
30979 target hook. Change return type to bool.
30980 * recog.h (mode_dependent_address_p): Change return type to bool.
30982 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30983 Nathan Froyd <froydnj@codesourcery.com>
30985 * tree-mudflap.c (build_function_type_0, build_function_type_1,
30986 build_function_type_2, build_function_type_3): Remove.
30987 (mudflap_init): Use build_function_type_list.
30989 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30990 Nathan Froyd <froydnj@codesourcery.com>
30992 * coverage.c (build_fn_info_value): Call build_constructor instead of
30993 build_constructor_from_list.
30994 (build_ctr_info_value): Likewise.
30995 (build_gcov_info): Likewise.
30997 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
30999 * tree.c (build_constructor): Compute TREE_CONSTANT for the
31000 resultant constructor.
31001 (build_constructor_single): Don't set TREE_CONSTANT.
31002 (build_constructor_from_list): Don't compute TREE_CONSTANT.
31004 2010-05-12 Jan Hubicka <jh@suse.cz>
31006 * cgraph.h (struct varpool_node): Add aux.
31007 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
31008 * varpool.c (varpool_remove_node): Do not remove initializer.
31009 (varpool_reset_queue): Export.
31010 (varpool_finalize_decl): Volatile vars are forced to be output.
31011 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
31013 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
31014 process_references, varpool_can_remove_if_no_refs): New functions.
31015 (cgraph_remove_unreachable_nodes): Handle variables too.
31017 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
31020 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
31022 2010-05-12 Jakub Jelinek <jakub@redhat.com>
31024 PR middle-end/44085
31025 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
31026 change value of ORT_TASK.
31027 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
31028 (omp_notice_threadprivate_variable): New function.
31029 (omp_notice_variable): Call it for threadprivate variables.
31030 If enclosing ctx is a task, print enclosing task rather than
31031 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
31032 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
31033 if task has untied clause.
31036 * dwarf2out.c (base_type_die): Don't add name attribute here.
31037 (modified_type_die): Instead of sizetype use
31038 its underlying original type. If a DW_TAG_base_type doesn't
31039 have name added, add __unknown__.
31040 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
31041 always call force_type_die instead.
31043 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
31045 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
31046 for __stack_chk_guard.
31048 2010-05-11 Jakub Jelinek <jakub@redhat.com>
31050 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
31051 don't call start_source_file debug hook here...
31052 (finish_options): ... but here, after outputting predefined and
31053 command line defines and undefs.
31055 PR middle-end/44071
31056 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
31058 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
31059 optimizing away empty bb with no successors, move over its
31060 footer chain to fallthru predecessor.
31061 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
31062 (rtl_split_edge): For asm goto call patch_jump_insn even if
31063 splitting fallthru edge.
31066 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
31067 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
31068 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
31069 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
31073 * c-parser.c (c_parser_expression): Mark LHS of a comma
31074 expression as read if it is a decl, handled component or
31075 COMPOUND_EXPR with that on the RHS.
31076 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
31077 if it is a decl or handled component.
31079 2010-05-11 Jan Hubicka <jh@suse.cz>
31081 * lto-symtab.c (lto_symtab_free): New function.
31082 * lto-streamer.h (lto_symtab_free): Declare.
31084 2010-05-11 Jan Hubicka <jh@suse.cz>
31086 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
31087 that if function is needed it is reachable.
31088 (lto_output_node): See if it the function is reachable or referenced.
31089 (output_cgraph): Update call of lto_output_node.
31090 * lto-streamer.h (reachable_from_other_partition_p): Declare.
31092 2010-05-11 Jan Hubicka <jh@suse.cz>
31094 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
31097 2010-05-11 Jan Hubicka <jh@suse.cz>
31099 PR tree-optimize/44063
31100 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
31102 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
31104 (estimate_function_body_sizes): Compute sizes even when disregarding.
31106 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
31108 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
31110 2010-05-11 Jan Hubicka <jh@suse.cz>
31112 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
31113 into every boundary.
31115 2010-05-11 Jan Hubicka <jh@suse.cz>
31117 * matrix-reorg.c (matrix_reorg): Rebuild edges.
31119 2010-05-11 Jan Hubicka <jh@suse.cz>
31121 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
31122 lto_streamer_cache_delete): Put nodes into heap.
31123 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
31126 2010-05-11 Jan Hubicka <jh@suse.cz>
31128 * cgraphbuild.c (cgraph_rebuild_references): New.
31129 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
31130 out extern inlines.
31131 * cgraph.h (cgraph_rebuild_references): Declare.
31132 * tree-inline.c (tree_function_versioning): Use it.
31133 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
31135 2010-05-11 Jan Hubicka <jh@suse.cz>
31137 * cgraph.c: Include ipa-utils.h
31138 (cgraph_create_virtual_clone): Update references.
31139 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
31141 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
31143 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
31144 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
31147 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
31149 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
31151 2010-05-11 Jakub Jelinek <jakub@redhat.com>
31153 * gcc.c (execute): For -### don't quote arguments that
31154 contain just alphanumerics and _/-. characters.
31155 * doc/invoke.texi: Document that change for -###.
31158 * df-problems.c (struct dead_debug): Add to_rescan field.
31159 (dead_debug_init): Clear to_rescan field.
31160 (dead_debug_finish): Rescan all debug insns in to_rescan
31161 bitmap and free the bitmap.
31162 (dead_debug_insert_before): Instead of rescanning debug insns
31163 immediately queue their rescanning until dead_debug_finish.
31164 (df_note_bb_compute): After dead_debug_add do continue instead
31167 2010-05-10 Jakub Jelinek <jakub@redhat.com>
31170 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
31171 clear also INSN_REG_USE_LIST.
31173 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31175 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
31177 2010-05-10 Jan Hubicka <jh@suse.cz>
31179 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
31182 2010-05-10 Jan Hubicka <jh@suse.cz>
31184 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
31186 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
31187 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
31188 (lto_streamer_cache_create): Init alloc pool.
31189 (lto_streamer_cache_delete): Free alloc pool.
31190 * lto-streamer.h: Include alloc pool.
31191 (lto_streamer_cache_d): Use alloc pool.
31192 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
31194 2010-05-10 Jan Hubicka <jh@suse.cz>
31196 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
31197 * cgraphbuild.c: Include except.h
31198 (record_type_list, record_eh_tables): New function.
31199 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
31201 2010-05-10 Jan Hubicka <jh@suse.cz>
31203 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
31204 __frame_dummy_init_array_entry, force_to_data): Attribute as used
31205 rather than unused.
31207 2010-05-10 Michael Matz <matz@suse.de>
31209 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
31210 (can_reassociate_p): Use FLOAT_TYPE_P.
31211 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
31212 (vect_force_simple_reduction): ... this.
31213 * tree-parloops.c (gather_scalar_reductions): Use
31214 vect_force_simple_reduction.
31215 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
31216 vect_is_simple_reduction, add modify argument, if true rewrite
31217 "a-b" into "a+(-b)".
31218 (vect_is_simple_reduction, vect_force_simple_reduction): New
31220 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
31222 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
31223 Vladimir Makarov <vmakarov@redhat.com>
31225 PR rtl-optimization/44012
31226 * ira-build.c (remove_unnecessary_allocnos): Nullify
31227 regno_allocno_map of the removed allocno.
31229 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31231 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
31233 * configure: Regenerate.
31235 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31237 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
31239 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
31240 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
31242 * configure: Regenerate.
31244 2010-05-10 Richard Guenther <rguenther@suse.de>
31246 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
31247 marked if the entry identifier is marked.
31249 2010-05-10 Richard Guenther <rguenther@suse.de>
31251 * c-common.c (struct c_common_attributes): Add fnspec attribute.
31252 (handle_fnspec_attribute): New function.
31253 * gimple.h (gimple_call_return_flags): Declare.
31254 (gimple_call_arg_flags): Likewise.
31255 * gimple.c (gimple_call_arg_flags): New function.
31256 (gimple_call_return_flags): Likewise.
31257 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
31258 New argument flags.
31259 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
31260 return value flags.
31261 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
31262 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
31264 (make_heapvar_for): ... this new function.
31265 (handle_rhs_call): Handle fnspec attribute argument specifiers.
31266 (handle_lhs_call): Likewise.
31267 (find_func_aliases): Adjust.
31269 2010-05-10 Richard Guenther <rguenther@suse.de>
31271 PR tree-optimization/44050
31272 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
31274 2010-05-10 Wei Guozhi <carrot@google.com>
31277 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
31279 2010-05-09 Joseph Myers <joseph@codesourcery.com>
31282 * c-typeck.c (lookup_field): Take a type directly. Update
31284 (build_component_ref): Update call to lookup_field.
31285 (set_init_label): Use lookup_field to find initialized field.
31286 Handle returned list of fields like a sequence of designators.
31288 2010-05-09 Richard Guenther <rguenther@suse.de>
31290 PR middle-end/44024
31291 * fold-const.c (tree_single_nonzero_warnv_p): Properly
31292 handle &FUNCTION_DECL.
31294 2010-05-09 Joseph Myers <joseph@codesourcery.com>
31297 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
31298 structures and unions recursively.
31299 (detect_field_duplicates): Move duplicate detection with a hash to
31300 detect_field_duplicates_hash. Always use a hash if anonymous
31301 structures or unions are present.
31302 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
31305 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
31308 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
31309 detect Atom, Core 2 and Core i7.
31311 2010-05-09 Richard Guenther <rguenther@suse.de>
31313 * gcc.c (store_arg): Handle temporary file deletion for
31316 2010-05-09 Richard Guenther <rguenther@suse.de>
31318 PR middle-end/44043
31319 * ipa-inline.c (estimate_function_body_sizes): Return after
31320 disregarding inline limits.
31322 2010-05-09 Richard Guenther <rguenther@suse.de>
31324 * gcc.c (store_arg): Revert last change.
31326 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
31328 PR middle-end/28685
31329 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
31330 (optimize_ops_list): Call it.
31332 2010-05-08 Richard Guenther <rguenther@suse.de>
31334 PR tree-optimization/44030
31335 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
31336 NECESSARY flag if we propagate from a inserted expression.
31338 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
31340 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
31341 domain types as equal if they are both PLACEHOLDER_EXPRs.
31343 2010-05-08 Richard Guenther <rguenther@suse.de>
31345 * lto-wrapper.c (run_gcc): Remove linker output from
31346 command line for LTRANS invocation.
31348 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
31350 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
31351 lto-macho as lto_binary_reader.
31352 * target.h (struct gcc_target): New hooks lto_start and lto_end.
31353 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
31354 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
31355 in lto_start and lto_end calls.
31356 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
31358 (scan_prog_file): Update is_elf_or_coff call.
31359 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
31361 * collect2.c (main): Fix enum comparison.
31363 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
31365 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
31366 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
31367 and TARGET_ASM_LTO_END.
31368 * darwin.c: Include obstack.h and lto-streamer.h.
31369 (lto_section_names_offset, lto_section_names_obstack,
31370 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
31372 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
31373 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
31374 to a temporary file.
31375 (darwin_asm_lto_end): New function. Restore asm_out_file.
31376 (darwin_asm_named_section): For LTO sections, replace the name with
31377 the offset of the section name in a string table, and build this
31379 (darwin_file_start): Initialize global vars for LTO support.
31380 (darwin_file_end): If output to asm_out_file was redirected, append it
31381 to the proper asm_out_file here. Add the section names section.
31383 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
31385 * c-pragma.c (pending_weak_d, pending_weak): New.
31386 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
31387 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
31388 handle_pragma_weak): Update the uses of pending_weaks.
31390 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31392 PR documentation/44016
31393 * doc/standards.texi (Standards): Link to unversioned
31394 cxx0x_status.html page.
31396 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
31399 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
31400 in addition to TREE_USED, to avoid "set but unused" warnings.
31402 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
31404 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
31405 (is_loop_prefetching_profitable): Do not insert prefetches
31406 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
31407 times the prefetch ahead distance.
31409 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
31411 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
31412 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
31413 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
31416 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
31418 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
31419 a diagnostic info when the insn-to-mem ratio is too small.
31421 2010-05-07 Richard Guenther <rguenther@suse.de>
31423 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
31425 (store_arg): Queue temp_filename for deletion instead of
31426 the whole argument.
31428 2010-05-07 Richard Guenther <rguenther@suse.de>
31430 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
31431 (run_gcc): Handle LTRANS phase invocation.
31432 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
31434 2010-05-07 Jakub Jelinek <jakub@redhat.com>
31436 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
31437 this is also meaningful on PARM_DECLs and RESULT_DECLs.
31439 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31441 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
31443 2010-05-07 Richard Guenther <rguenther@suse.de>
31445 PR tree-optimization/44020
31446 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
31447 code when PRE is not yet initialized.
31449 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31451 * config/mips/dbxmdebug.h: Remove.
31452 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
31454 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
31456 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
31457 with null pointer and also warn about ordered comparison of zero with
31458 pointer if -Wextra.
31460 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
31462 * graphite-blocking.c
31463 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
31464 * graphite-clast-to-gimple.c
31465 (clast_to_gcc_expression): Same.
31466 (precision_for_value): Same.
31467 (precision_for_interval): Same.
31468 (gcc_type_for_interval): Same.
31469 (graphite_create_new_guard): Same.
31470 (compute_bounds_for_level): Same.
31471 (graphite_create_new_loop_guard): Same.
31472 * graphite-interchange.c
31473 (build_linearized_memory_access): Same.
31474 (pdr_stride_in_loop): Same.
31475 (memory_strides_in_loop_1): Same.
31476 (memory_strides_in_loop): Same.
31477 (extend_scattering): Same.
31478 (psct_scattering_dim_for_loop_depth): Same.
31479 (pbb_number_of_iterations): Same.
31481 (debug_iteration_domains): Same.
31483 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
31484 (ppl_set_inhomogeneous_gmp): Same.
31485 (ppl_strip_loop): Same.
31486 (ppl_lexico_compare_linear_expressions): Same.
31487 (ppl_read_polyhedron_matrix): Same.
31488 (ppl_max_for_le_pointset): Same.
31490 (ppl_read_polyhedron_matrix): Same.
31491 (tree_int_to_gmp): Same.
31492 (gmp_cst_to_tree): Same.
31493 (ppl_set_inhomogeneous): Same.
31494 (ppl_set_inhomogeneous_tree): Same.
31495 (ppl_set_coef): Same.
31496 (ppl_set_coef_tree): Same.
31497 * graphite-sese-to-poly.c
31498 (build_pbb_scattering_polyhedrons): Same.
31499 (build_scop_scattering): Same.
31500 (scan_tree_for_params_right_scev): Same.
31501 (scan_tree_for_params): Same.
31502 (find_params_in_bb): Same.
31503 (find_scop_parameters): Same.
31504 (add_upper_bounds_from_estimated_nit): Same.
31505 (build_loop_iteration_domains): Same.
31506 (add_condition_to_domain): Same.
31507 (pdr_add_memory_accesses): Same.
31509 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
31511 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
31512 CLooG's value_* macros to their respective mpz_* counterparts.
31513 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
31514 (graphite_create_new_loop_guard): Same.
31515 * graphite-interchange.c (build_linearized_memory_access): Same.
31516 (pdr_stride_in_loop): Same.
31517 (memory_strides_in_loop_1): Same.
31518 (1st_interchange_profitable_p): Same.
31519 * graphite-poly.c (extend_scattering): Same.
31520 (psct_scattering_dim_for_loop_depth): Same.
31521 (pbb_number_of_iterations): Same.
31522 (pbb_number_of_iterations_at_time): Same.
31523 * graphite-poly.h (new_1st_loop): Same.
31524 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
31525 (oppose_constraint): Same.
31526 (insert_constraint_into_matrix): Same.
31527 (ppl_set_inhomogeneous_gmp): Same.
31528 (ppl_set_coef_gmp): Same.
31529 (ppl_strip_loop): Same.
31530 (ppl_lexico_compare_linear_expressions): Same.
31531 (ppl_max_for_le_pointset): Same.
31532 (ppl_min_for_le_pointset): Same.
31533 (ppl_build_realtion): Same.
31534 * graphite-ppl.h (gmp_cst_to_tree): Same.
31535 (ppl_set_inhomogeneous): Same.
31536 (ppl_set_inhomogeneous_tree): Same.
31537 (ppl_set_coef): Same.
31538 (ppl_set_coef_tree): Same.
31539 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
31540 (build_scop_scattering): Same.
31541 (add_value_to_dim): Same.
31542 (scan_tree_for_params_right_scev): Same.
31543 (scan_tree_for_params_int): Same.
31544 (scan_tree_for_params): Same.
31545 (find_params_in_bb): Same.
31546 (find_scop_parameters): Same.
31547 (add_upper_bounds_from_estimated_nit): Same.
31548 (build_loop_iteration_domains): Same.
31549 (create_linear_expr_from_tree): Same.
31550 (add_condition_to_domain): Same.
31551 (pdr_add_memory_accesses): Same.
31553 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
31554 Jason Merrill <jason@redhat.com>
31556 * c-common.c (c_common_reswords): Add nullptr.
31557 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
31558 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
31559 (gen_type_die_with_usage): Likewise.
31560 * dbxout.c (dbxout_type): Likewise.
31561 * sdbout.c (plain_type_1): Likewise.
31563 2010-05-06 Jason Merrill <jason@redhat.com>
31565 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
31566 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
31568 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
31570 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
31571 stripping WITH_SIZE_EXPR.
31572 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
31575 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31577 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
31578 list of obsolete configurations.
31579 Disabled check for obsolete configurations.
31580 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
31581 Removed support for previous versions.
31582 * config/mips/iris.h: Removed.
31583 * config/mips/iris5.h: Removed.
31584 * config/mips/iris6.h: Merged old iris.h contents.
31585 (TARGET_IRIX): Removed.
31586 (DRIVER_SELF_SPECS): Removed mabi=32.
31587 (IDENT_ASM_OP): Removed undef.
31588 (STARTFILE_SPEC): Removed mabi=32.
31589 (ENDFILE_SPEC): Likewise.
31590 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
31591 (MACHINE_TYPE): Update for IRIX 6.5.
31592 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
31593 TARGET_IRIX by TARGET_IRIX6.
31594 (mips_file_start): Likewise.
31595 (mips_output_external): Remove IRIX 5/6 O32 support.
31596 (mips_output_function_prologue): Likewise.
31597 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
31599 (TARGET_CPU_CPP_BUILTINS): Likewise.
31600 (TARGET_IRIX): Removed.
31601 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
31602 (MULTILIB_DIRNAMES): Removed 32.
31603 (MULTILIB_OSDIRNAMES): Removed ../lib.
31604 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
31605 (Specific, mips-sgi-irix5): Document removal.
31606 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
31607 Remove references to older IRIX 6 releases and the O32 ABI.
31609 2010-05-06 Jakub Jelinek <jakub@redhat.com>
31612 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
31613 instead of DF_REF_REAL_REG.
31615 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
31618 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
31619 handling to still return true for x64 targets.
31621 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
31623 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
31625 2010-05-06 Jan Hubicka <jh@suse.cz>
31627 PR tree-optimization/43791
31628 * ipa-inline.c (update_caller_keys): Remove bogus
31629 disregard_inline_limits check.
31631 2010-05-06 Michael Matz <matz@suse.de>
31633 PR tree-optimization/43984
31634 * tree-ssa-pre.c (inserted_phi_names): Remove.
31635 (inserted_exprs): Change to bitmap.
31636 (create_expression_by_pieces): Set bits, don't append to vector.
31637 (insert_into_preds_of_block): Don't handle inserted_phi_names.
31638 (eliminate): Don't look at inserted_phi_names, remove deleted
31639 insns from inserted_exprs.
31640 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
31641 (init_pre, fini_pre): Allocate and free bitmaps.
31642 (execute_pre): Insert insns on edges before elimination.
31644 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
31646 * tree.c (initializer_zerop): Handle STRING_CST.
31648 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
31651 * doc/invoke.texi (Wimplicit): Document as C only.
31652 * opts.c (common_handle_option): Add argument kind.
31653 (handle_option): Rename as read_cmdline_option. Factor out code to...
31654 (handle_option): ... here. New.
31655 (handle_options): Rename as read_cmdline_options.
31656 (decode_options): Update call.
31657 (set_option): Use option index instead of option pointer. Classify
31658 diagnostics correctly.
31659 (enable_warning_as_error): Call handle_option.
31660 * opts.h (set_option): Update declaration.
31661 (handle_option): Declare.
31662 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
31663 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
31664 * c-opts.c (set_Wimplicit): Delete.
31665 (c_family_lang_mask): New static constant.
31666 (c_common_handle_option): Add argument kind. Use handle_option
31667 instead of set_Wimplicit.
31668 (c_common_post_options): warn_implicit and warn_implicit_int
31669 are disabled by default.
31670 * c-common.c (warn_implicit): Do not define here.
31671 * c-common.h (warn_implicit): Do not declare here.
31672 (c_common_handle_option): Update declaration.
31673 * lto-opts.c (lto_reissue_options): Update call to set_option.
31675 2010-05-06 Richard Guenther <rguenther@suse.de>
31677 PR tree-optimization/43571
31678 * domwalk.c (walk_dominator_tree): Walk the dominator
31679 sons in more optimal order.
31681 2010-05-06 Richard Guenther <rguenther@suse.de>
31683 PR tree-optimization/43934
31684 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
31685 (stmt_cost): Likewise.
31686 (extract_true_false_args_from_phi): New helper.
31687 (determine_max_movement): For PHI nodes verify we can hoist them
31688 and compute their cost.
31689 (determine_invariantness_stmt): Handle PHI nodes.
31690 (move_computations_stmt): Likewise. Hoist PHI nodes in
31691 if-converted form using COND_EXPRs.
31692 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
31693 (tree_ssa_lim): Likewise.
31694 * tree-flow.h (tree_ssa_lim): Adjust prototype.
31695 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
31697 2010-05-06 Richard Guenther <rguenther@suse.de>
31699 PR tree-optimization/43987
31700 * tree-ssa-structalias.c (could_have_pointers): For possibly
31701 address-taken variables force pointers to be recorded.
31702 (create_variable_info_for_1): Likewise.
31703 (push_fields_onto_fieldstack): Pass in wheter all fields
31704 must have pointers.
31705 (find_func_aliases): Query types instead of vars whether
31706 they contain pointers where appropriate.
31708 2010-05-06 Jan Hubicka <jh@suse.cz>
31710 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
31711 (record_reference, mark_address, mark_load, mark_store): Record
31713 (record_references_in_initializer): Update call of record_references.
31714 (rebuild_cgraph_edges): Remove all references before rebuiding.
31715 * cgraph.c (cgraph_create_node): Clear ref list.
31716 (cgraph_remove_node): Remove references.
31717 (dump_cgraph_node): Dump references.
31718 (cgraph_clone_node): Clone references.
31719 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
31720 (struct cgraph_node, varpool_node): Add ref_lst.
31721 * ipa-ref.c: New file.
31722 * ipa-ref.h: New file.
31723 * ipa-ref-inline.h: New file.
31724 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
31725 (referenced_from_other_partition_p): New function.
31726 (lto_output_varpool_node): Take set arugment; call
31727 referenced_from_other_partition.
31728 (lto_output_ref): New.
31729 (add_references): New.
31730 (output_refs): New.
31731 (output_cgraph): Compute boundary based on references; output refs.
31732 (output_varpool): Accept cgraph_node_set argument.
31735 (input_cgraph): Call input_refs.
31736 * lto-section-in.c (lto_section_name): Add refs.
31737 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
31738 (ipa-ref.o): New file.
31739 * varpool.c (varpool_node): Clear ipa ref list.
31740 (varpool_remove_node): Remove references.
31741 (dump_varpool_node): Dump references.
31742 (varpool_assemble_decl): Only compile finalized ones.
31743 (varpool_extra_name_alias): Initialize ref list.
31744 * lto-streamer.c (lto-get_section_name): Add .refs section.
31745 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
31746 (referenced_from_other_partition_p): Declared.
31748 2010-05-06 Ira Rosen <irar@il.ibm.com>
31750 PR tree-optimization/43901
31751 * tree-vect-stmts.c (vectorizable_call): Assert that vector
31752 type is not NULL if it's transformation phase, and return
31753 FALSE if it's analysis.
31754 (vectorizable_conversion, vectorizable_operation,
31755 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
31757 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
31759 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31761 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31763 * config/mips/mips-protos.h
31764 (mips_small_register_classes_for_mode_p): Delete prototype.
31766 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
31768 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
31769 * config/arm/arm.c (multiple_operation_profitable_p,
31770 compute_offset_order): New static functions.
31771 (load_multiple_sequence, store_multiple_sequence): Use them.
31772 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
31773 memory offsets, not register numbers.
31774 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
31776 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
31778 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
31779 (get_pending_sizes, put_pending_size, put_pending_sizes):
31780 Update the uses of pending_sizes.
31781 * c-decl.c (store_parm_decls): Likewise.
31782 * c-tree.h (struct c_arg_info): Likewise.
31783 * tree.h: Update the prototype for get_pending_sizes and
31786 2010-05-05 Jason Merrill <jason@redhat.com>
31789 * c-common.c (handle_aligned_attribute): Respect
31790 ATTR_FLAG_TYPE_IN_PLACE.
31793 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
31794 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31795 (TARGET_INITIALIZER): Use it.
31796 * c-common.c (attribute_takes_identifier_p): Call it.
31797 * c-common.h: Update prototype.
31798 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
31799 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31801 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31804 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
31805 DW_ID_down_case for Fortran compilation units.
31807 2010-05-05 Jan Hubicka <jh@suse.cz>
31809 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
31812 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
31814 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
31815 a variable-sized RESULT_DECL.
31817 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
31819 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
31821 2010-05-05 Jason Merrill <jason@redhat.com>
31824 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
31826 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
31828 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
31829 Jakub Jelinek <jakub@redhat.com>
31832 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
31833 (dead_debug_init, dead_debug_finish): New functions.
31834 (dead_debug_add, dead_debug_insert_before): Likewise.
31835 (df_note_bb_compute): Initialize a dead_debug object, add dead
31836 debug uses to it, insert debug bind insns before death insns,
31837 reset debug insns that refer to pending uses at the end.
31838 * rtl.h (make_debug_expr_from_rtl): New prototype.
31839 * varasm.c (make_debug_expr_from_rtl): New function.
31841 2010-05-05 Jan Hubicka <jh@suse.cz>
31843 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
31844 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
31845 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
31846 lto_varpool_encoder_deref, lto_varpool_encoder_size,
31847 lto_varpool_encoder_encode_initializer_p,
31848 lto_set_varpool_encoder_encode_initializer): New functions.
31849 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
31850 call output_varpool.
31851 (input_varpool_node): Do not always set analyzed.
31852 (input_cgraph_1): Return vector of cgraph nodes.
31853 (input_varpool_1): Return vector of varpools.
31854 (input_cgraph): Free the vectors.
31855 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31856 output only initializers needed.
31857 (lto_output): Only call output_cgraph.
31858 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
31859 * lto-section-out.c (lto_new_out_decl_state): Initialize
31860 state->varpool_node_encoder.
31861 * lto-streamer.h (lto_varpool_encoder_d): New.
31862 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
31863 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
31864 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
31865 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
31866 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
31868 (output_varpool, input_varpool): Remove declarations.
31870 2010-05-05 Jan Hubicka <jh@suse.cz>
31872 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
31873 with body can prevail.
31875 2010-05-05 Jan Hubicka <jh@suse.cz>
31877 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
31880 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
31882 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
31884 * gengtype.h (erro_at_line): Constify pos argument.
31886 * gengtype.c: Include hashtab.h.
31887 (enum gc_used): Document GC_MAYBE_POINTED_TO.
31888 (error_at_line): Constify pos argument.
31889 (do_typedef): Initialize p->opt field.
31890 (get_file_gtfilename): Fix comment typo.
31891 (struct walk_type_data): Constify line field.
31892 (get_output_file_for_structure): New function.
31893 (write_local_func_for_structure): Constify orig_s argument.
31894 Use get_output_file_for_structure.
31895 (write_func_for_structure): Use get_output_file_for_structure.
31896 (INDENT): New define.
31897 (dump_pair, dump_type, dump_type_list, dump_typekind)
31898 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
31899 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
31901 (seen_types): New variable.
31902 (main): New variable do_dump. Process "-d" command line option.
31903 Call dump_everything if dump requested.
31905 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31907 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
31908 in a temporary instead of invoking the macro multiple times.
31909 (track_expr_p): Likewise.
31911 2010-05-04 Neil Vachharajani <nvachhar@google.com>
31913 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
31915 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
31916 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
31917 conditions for printing notes.
31918 * common.opt (-Wcoverage-mismatch): Allow negative, default to
31919 true, update documentation.
31920 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
31922 2010-05-04 Jakub Jelinek <jakub@redhat.com>
31925 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
31928 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
31931 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
31932 (*sse_prologue_save_insn1): Likewise.
31933 (SSE prologue save splitter): Likewise.
31935 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
31937 * tree.c (free_lang_data_in_one_sizepos): New inline function.
31938 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
31939 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
31940 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
31941 all decls. Call it on DECL_FIELD_OFFSET of fields.
31942 (find_decls_types_r): Follow DECL_VALUE_EXPR.
31943 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
31945 2010-05-04 Martin Jambor <mjambor@suse.cz>
31947 * tree-sra.c (build_access_from_expr_1): The first parameter type
31948 changed to simple tree.
31949 (build_access_from_expr): Likewise, gsi parameter was eliminated.
31950 (scan_assign_result): Renamed to assignment_mod_result, enum elements
31952 (build_accesses_from_assign): Removed all parameters except for a
31953 simple gimple statement. Now returns a simple bool.
31954 (scan_function): All non-analysis parts moved to separate functions
31955 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
31956 parameters and updated both callers.
31957 (sra_modify_expr): Removed parameter data.
31958 (sra_modify_function_body): New function.
31959 (perform_intra_sra): Call sra_modify_function_body to modify the
31961 (replace_removed_params_ssa_names): Parameter data changed into
31962 adjustments vector.
31963 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
31964 changed the parameter dont_convert to convert with the opposite
31966 (sra_ipa_modify_assign): Parameter data changed into adjustments
31967 vector, return value changed to bool.
31968 (ipa_sra_modify_function_body): New function.
31969 (sra_ipa_reset_debug_stmts): Updated a comment.
31970 (modify_function): Use ipa_sra_modify_function_body to modify function
31973 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
31975 PR middle-end/43671
31976 * alias.c (true_dependence): Handle the same VALUE in x and mem.
31977 (canon_true_dependence): Likewise.
31978 (write_dependence_p): Likewise.
31980 2010-05-04 Jan Hubicka <jh@suse.cz>
31982 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
31983 * cgraphbuild.c: Include ipa-utils.h
31984 (record_reference_ctx): New struct.
31985 (record_reference): Simplify to work on initializers; not statements.
31986 (mark_address, mark_load, mark_store): New.
31987 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31988 walk PHI nodes too.
31989 (record_references_in_initializer): Update use of record_reference.
31990 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31991 walk PHI nodes too.
31993 2010-05-04 Jan Hubicka <jh@suse.cz>
31995 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
31996 node will be removed anyway.
31997 (lto_varpool_replace_node): Allow also unanalyzed nodes;
31998 relink aliases of node into prevailing node.
31999 * varpool.c (varpool_remove_node): Remove aliases properly;
32000 when removing node, remove all its aliases too; remove DECL_INITIAL
32001 of removed node; ggc_free the varpool node.
32003 2010-05-04 Richard Guenther <rguenther@suse.de>
32005 PR tree-optimization/43879
32006 * tree-ssa-structalias.c (alias_get_name): Use
32007 DECL_ASSEMBLER_NAME if available.
32008 (create_function_info_for): Return the varinfo node.
32009 (ipa_pta_execute): Associate same-body aliases and extra names
32010 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
32012 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32014 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
32016 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
32019 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
32020 only if HONOR_REG_ALLOC_ORDER is not defined.
32022 2010-05-04 Richard Guenther <rguenther@suse.de>
32024 PR tree-optimization/43949
32025 * tree-vrp.c (extract_range_from_binary_expr): Only handle
32028 2010-04-26 Jason Merrill <jason@redhat.com>
32030 * c.opt (-fstrict-enums): New.
32031 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
32033 2010-05-03 David Ung <davidu@mips.com>
32034 James E. Wilson <wilson@codesourcery.com>
32036 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
32037 emit the trap instruction before the divide for TUNE_74K.
32039 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
32041 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
32042 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
32043 based on the above, for new target hook.
32045 * hooks.c (hook_bool_mode_true): New generic hook.
32046 * hooks.h (hook_bool_mode_true): Add prototype.
32048 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
32050 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
32051 target hook, set to hook_bool_mode_false.
32052 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
32053 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
32054 with targetm.small_register_classes_for_mode_p.
32055 (find_reusable_reload): Likewise.
32056 (combine_reloads): Likewise.
32057 * reload1.c (reload_as_needed): Likewise.
32058 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
32059 * ifcvt.c (noce_process_if_block, check_cond_move_block,
32060 dead_or_predicable): Likewise.
32061 * regmove.c (optimize_reg_copy_1): Likewise.
32062 * calls.c (prepare_call_address): Likewise.
32063 (precompute_register_parameters): Likewise.
32065 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
32067 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
32068 implementation of the hook that considers all register classes
32069 small except for SH64.
32070 (sh_override_options): Use the new hook.
32071 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
32074 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
32076 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
32077 implementation of the hook that considers all register classes
32079 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
32082 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
32084 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
32085 implementation of the hook that considers all register classes
32087 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
32090 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
32092 * config/m32c/m32c.h: Likewise.
32093 * config/pdp11/pdp11.h: Likewise.
32094 * config/avr/avr.h: Likewise.
32095 * config/xtensa/xtensa.h: Likewise.
32096 * config/m68hc11/m68hc11.h: Likewise.
32097 * config/mn10300/mn10300.h: Likewise.
32098 * config/mcore/mcore.h: Likewise.
32099 * config/h8300/h8300.h: Likewise.
32100 * config/bfin/bfin.h: Likewise.
32102 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
32103 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
32105 2010-05-03 Anatoly Sokolov <aesok@post.ru>
32107 * double-int.h (tree_to_double_int): Remove macro.
32108 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
32109 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
32110 (tree_to_double_int): New function.
32111 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
32113 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
32115 2010-05-03 Richard Guenther <rguenther@suse.de>
32117 PR tree-optimization/43971
32118 * tree-ssa-structalias.c (get_constraint_for_1): Fix
32119 constraints in the !flag_delete_null_pointer_checks case.
32121 2010-05-03 Jakub Jelinek <jakub@redhat.com>
32124 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
32125 result mode matches original rtl mode.
32127 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
32130 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
32132 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32134 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
32135 when processing flag options.
32137 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32139 * gcov-iov.c (main): Change format string placeholder
32140 from %#08x to 0x%08x.
32141 * genchecksum.c (dosum): Change format string placeholder
32142 from %#02x to 0x%02x.
32144 2010-05-02 Richard Guenther <rguenther@suse.de>
32146 PR tree-optimization/43879
32147 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
32149 2010-05-02 Bruno Haible <bruno@clisp.org>
32151 * doc/extend.texi (Function Attributes): Fix a typo.
32153 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32156 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
32157 placeholder from 0x%x to %#x.
32158 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
32159 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
32160 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
32161 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
32162 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
32163 * config/i386/i386.c (ix86_target_string): Ditto.
32164 * config/i386/i386.c (output_pic_addr_const): Ditto.
32165 (print_operand): Ditto.
32167 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32169 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
32170 placeholder from 0x%x to %#x.
32171 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
32172 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
32173 (ASM_OUTPUT_DEBUG_DATA): Ditto.
32174 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
32175 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
32176 * optc-gen.awk: Ditto.
32177 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
32178 (HOST_WIDE_INT_PRINT_HEX): Ditto.
32179 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
32180 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
32182 2010-05-01 Anatoly Sokolov <aesok@post.ru>
32184 * target.h (struct calls): Add function_value_regno_p field.
32185 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
32186 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
32187 * targhooks.c (default_function_value_regno_p): New function.
32188 * targhooks.h (default_function_value_regno_p): Declare function.
32189 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
32190 * builtins.c. (apply_result_size): (Ditto.).
32191 * combine.c. (likely_spilled_retval_p): (Ditto.).
32192 * mode-switching.c. Include 'target.h'.
32193 (create_pre_exit): Use function_value_regno_p hook.
32194 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
32195 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
32196 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
32198 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
32199 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
32200 (ix86_function_value_regno_p): Declare as static, change argument
32201 type to const unsigned int.
32202 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
32204 2010-05-01 Richard Guenther <rguenther@suse.de>
32206 PR tree-optimization/43949
32207 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
32209 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
32211 2010-05-01 Anatoly Sokolov <aesok@post.ru>
32213 * rtl.h (CONST_DOUBLE_P): Define.
32214 (rtx_to_double_int): Declare.
32215 * emit-rtl.c (rtx_to_double_int): New function.
32216 * dwarf2out.c (insert_double): New function.
32217 (loc_descriptor, add_const_value_attribute): Clean up, use
32218 rtx_to_double_int and insert_double functions.
32220 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
32222 * doc/extend.texi (Inline): Add missing return keyword to examples.
32223 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
32226 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
32228 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
32229 the variable part of the offset as well. Use highest_pow2_factor for
32230 all alignment checks.
32232 2010-04-30 Richard Guenther <rguenther@suse.de>
32234 PR tree-optimization/43879
32235 * tree-ssa-structalias.c (type_could_have_pointers): Functions
32238 2010-04-30 Jan Hubicka <jh@suse.cz>
32240 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
32242 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
32244 2010-04-30 Jan Hubicka <jh@suse.cz>
32246 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
32248 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
32249 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
32250 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
32251 cgraph_node_set_needs_ltrans_p): Remove.
32253 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
32255 * sdbout.c: Include vec.h, do not include varray.h.
32256 (deferred_global_decls, sdbout_global_decl,
32257 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
32258 * toplev.c: Do not include varray.h.
32259 (dump_memory_report): Do not dump VARRAY statistics.
32260 * gengtype.c (open_base_file): Ignore varray.h.
32261 * Makefile.in: Update for abovementioned changes.
32262 Remove all traces of varray.c and varray.h.
32263 * varray.c: Remove file.
32264 * varray.h: Remove file.
32266 2010-04-30 Jan Hubicka <jh@suse.cz>
32268 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
32271 2010-04-30 Jan Hubicka <jh@suse.cz>
32273 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
32276 2010-04-30 Richard Guenther <rguenther@suse.de>
32278 * tree-ssa-structalias.c (get_constraint_for_1): Generate
32279 constraints for CONSTRUCTOR.
32281 2010-04-30 Richard Guenther <rguenther@suse.de>
32284 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
32285 first after all lowering passes.
32287 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
32289 * toplev.c: Include varray.h for statistics dumping.
32290 * tree.h: Do not declare varray_head_tag.
32291 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
32292 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
32293 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
32294 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
32295 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
32296 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
32297 c-common.c, c-common.h, reg-stack.c, basic-block.h,
32298 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
32300 * Makefile.in: Update for abovementioned changes.
32302 2010-04-30 Jakub Jelinek <jakub@redhat.com>
32305 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
32307 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
32309 * config/picochip/picochip.c (picochip_legitimize_address): Define.
32310 Use this function to do machine-specific conversion.
32311 (picochip_legitimize_reload_address): Likewise.
32312 (picochip_legitimate_address_p): Check valid base register only if
32314 (picochip_check_conditional_copy): Check for modw only if opnd is
32316 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
32317 to call the function in c.
32318 * config/picochip/picochip-protos.h
32319 (picochip_legitimize_reload_address): Define.
32320 * config/picochip/picochip.md (supported_compare1): Define.
32322 2010-04-30 Jan Hubicka <jh@suse.cz>
32324 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
32325 (cgraph_global_info): Remove inlined.
32326 (LTO_cgraph_tag_names): Remove.
32327 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
32328 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
32329 simplify cgraph tags and document.
32330 (lto_output_node): Use only LTO_cgraph_unavail_node and
32331 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
32332 for_functions_valid, global info, process and output flags.
32333 (input_overwrite_node): Initialize estimated stack size and
32334 estimated growth. Do not read flags we no longer store.
32335 (input_node): Likewise do not read info no longer stored.
32336 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
32339 2010-04-30 Richard Guenther <rguenther@suse.de>
32341 PR tree-optimization/43879
32342 * tree-ssa-structalias.c (get_constraint_for_1): Properly
32343 handle non-zero initializers.
32345 2010-04-30 Richard Guenther <rguenther@suse.de>
32347 * builtins.c (fold_builtin_1): Delete free (0).
32349 2010-04-29 Jan Hubicka <jh@suse.cz>
32351 * gengtype.c (open_base_files): Add lto-streamer.h
32352 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
32353 (pass_ipa_cp): GGC collect.
32354 * toplev. (compile_file): Do not output symbols.
32355 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
32356 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
32357 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
32358 * lto-section-in.c: Include ggc.h
32359 (lto_new_in_decl_state): Alloc in GGC.
32360 (lto_delete_in_decl_state): Likewise.
32361 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
32364 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
32367 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
32368 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
32369 (HONOR_REG_ALLOC_ORDER): Describe new macro.
32370 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
32371 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
32372 account only if HONOR_REG_ALLOC_ORDER is not defined.
32373 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
32374 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
32376 2010-04-29 Jon Grant <04@jguk.org>
32378 * collect2.c (vflag): Change type from int to bool.
32380 (helpflag): New global bool.
32381 (main): Set vflag and debug with boolean, not integer truth values.
32382 Accept new "--help" option and output usage text if found.
32383 * collect2.h (vflag): Update prototype.
32386 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
32389 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
32391 2010-04-29 Richard Guenther <rguenther@suse.de>
32394 * plugin.h (invoke_plugin_callbacks): Annotate arguments
32395 with ATTRIBUTE_UNUSED.
32397 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
32400 * config/i386/i386.c (get_some_local_dynamic_name): Replace
32401 INSN_P with NONDEBUG_INSN_P.
32402 (distance_non_agu_define): Likewise.
32403 (distance_agu_use): Likewise.
32405 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
32407 From Dominique d'Humieres <dominiq@lps.ens.fr>
32409 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
32412 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
32414 * plugin.h (invoke_plugin_callbacks): New inline function.
32415 * plugin.c (flag_plugin_added): New global flag.
32416 (add_new_plugin): Initialize above flag.
32417 (invoke_plugin_callbacks): Rename to ...
32418 (invoke_plugin_callbacks_full): ... this.
32420 2010-04-28 Jan Hubicka <jh@suse.cz>
32422 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
32423 (lto_varpool_replace_node): New.
32424 (lto_symtab_resolve_symbols): Resolve varpool nodes.
32425 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
32426 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
32427 * cgraph.h (varpool_node_ptr): New type.
32428 (varpool_node_ptr): New vector.
32429 (varpool_node_set_def): New structure.
32430 (varpool_node_set): New type.
32431 (varpool_node_set): New vector.
32432 (varpool_node_set_element_def): New structure.
32433 (varpool_node_set_element, const_varpool_node_set_element): New types.
32434 (varpool_node_set_iterator): New type.
32435 (varpool_node): Add prev pointers, add used_from_other_partition,
32436 in_other_partition.
32437 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
32438 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
32439 varpool_get_node, varpool_remove_node): Declare.
32440 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
32441 varpool_node_set_size): New inlines.
32442 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
32443 * tree-pass.h (varpool_node_set_def): Forward declare.
32444 (ipa_opt_pass_d): Summary writting takes vnode sets too.
32445 (ipa_write_optimization_summaries): Update prototype.
32446 * ipa-cp.c (ipcp_write_summary): Update.
32447 * ipa-reference.c (ipa_reference_write_summary): Update.
32448 * lto-cgraph.c (lto_output_varpool_node): New static function.
32449 (output_varpool): New function.
32450 (input_varpool_node): New static function.
32451 (input_varpool_1): New function.
32452 (input_cgraph): Input varpool.
32453 * ipa-pure-const.c (pure_const_write_summary): Update.
32454 * lto-streamer-out.c (lto_output): Update, output varpool too.
32455 (write_global_stream): Kill WPA hack.
32456 (produce_asm_for_decls): Update.
32457 (output_alias_pair_p): Handle variables.
32458 (output_unreferenced_globals): Output only needed partition of varpool.
32459 * ipa-inline.c (inline_write_summary): Update.
32460 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
32462 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
32463 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
32464 varpool_node_set_new, varpool_node_set_add,
32465 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
32466 debug_varpool_node_set): New functions.
32467 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
32468 (execute_one_pass): Process new decls too.
32469 (ipa_write_summaries_2): Pass around vsets.
32470 (ipa_write_summaries_1): Likewise.
32471 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
32473 (ipa_write_optimization_summaries_1): Pass around vsets.
32474 (ipa_write_optimization_summaries): Likewise.
32475 * varpool.c (varpool_get_node): New.
32476 (varpool_node): Update doubly linked lists.
32477 (varpool_remove_node): New.
32478 (dump_varpool_node): More dumping.
32479 (varpool_enqueue_needed_node): Update doubly linked lists.
32480 (decide_is_variable_needed): Kill ltrans hack.
32481 (varpool_finalize_decl): Kill lto hack.
32482 (varpool_assemble_decl): Skip decls in other partitions.
32483 (varpool_assemble_pending_decls): Update doubly linkes lists.
32484 (varpool_empty_needed_queue): Likewise.
32485 (varpool_extra_name_alias): Likewise.
32486 * lto-streamer.c (lto_get_section_name): Add vars section.
32487 * lto-streamer.h (lto_section_type): Update.
32488 (output_varpool, input_varpool): Declare.
32490 2010-04-28 Mike Stump <mikestump@comcast.net>
32492 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
32494 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
32496 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
32497 record or union type with RECORD_OR_UNION_TYPE_P predicate.
32498 (lto_input_ts_type_tree_pointers): Likewise.
32499 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
32500 (lto_output_ts_type_tree_pointers): Likewise.
32502 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
32504 Uniquization of constants at the Tree level
32505 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
32506 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
32508 (tree_output_constant_def): Declare.
32509 * gimplify.c (gimplify_init_constructor): When using block copy, first
32510 uniquize the constant constructor on the RHS.
32511 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
32512 DECL_IN_CONSTANT_POOL flag.
32513 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
32514 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
32516 (assemble_variable): Deal with symbols belonging to the tree constant
32518 (get_constant_section): Add ALIGN parameter and simplify.
32519 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
32520 (assemble_constant_contents): Use the expression of the VAR_DECL.
32521 (output_constant_def_contents): Use the alignment of the VAR_DECL.
32522 (tree_output_constant_def): New global function.
32523 (mark_constant): Use the expression of the VAR_DECL.
32524 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
32526 (output_object_block): Likewise and assemble the expression.
32528 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
32530 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
32531 hash_tree, eq_tree): New tree hash table.
32532 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
32533 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
32534 lto_orig_address_remove): Reimplement.
32536 2010-04-28 Xinliang David Li <davidxl@google.com>
32539 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
32540 (compute_uninit_opnds_pos): New function.
32541 (is_non_loop_exit_postdominating): New function.
32542 (compute_control_dep_chain): New function.
32543 (find_pdom): New function.
32544 (convert_control_dep_chain_into_preds): New function.
32545 (find_predicates): New function.
32546 (find_control_equiv_block): New function.
32547 (collect_phi_def_edges): New function.
32548 (find_def_preds): New function.
32549 (find_dom): New function.
32550 (dump_predicates): New function.
32551 (get_cmp_code): New function.
32552 (is_value_included_in): New function.
32553 (find_matching_predicate_in_rest_chains): New function.
32554 (use_pred_not_overlap_with_undef_path_pred): New function.
32555 (is_use_properly_guarded): New function.
32556 (normalize_cond_1): New function.
32557 (is_and_or_or): New function.
32558 (normalize_cond): New function.
32559 (is_gcond_subset_of): New function.
32560 (is_subset_of_any): New function.
32561 (is_or_set_subset_of): New function.
32562 (is_and_set_subset_of): New function.
32563 (is_norm_cond_subset_of): New function.
32564 (is_pred_expr_subset_of): New function.
32565 (is_pred_chain_subset_of): New function.
32566 (is_included_in): New function.
32567 (is_superset_of): New function.
32568 (find_uninit_use): New function.
32569 (warn_uninitialized_phi): New function.
32570 (compute_possibly_undefined_names): New function.
32571 (ssa_undefined_value_p): New function.
32572 (execute_late_warn_uninitialized): New function.
32573 * tree-ssa.c (ssa_undefined_value_p): Removed.
32574 (warn_uninit): Changed to extern.
32575 (warn_uninitialized_phi): Removed.
32576 (warn_uninitialized_vars): Changed to extern.
32577 (execute_late_warn_uninitialized): Removed
32578 * tree-flow.h: Add new prototypes.
32579 * timevar.def: Add new time variable.
32580 * Makefile.in: Add new build file.
32582 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
32584 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
32587 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32590 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
32592 2010-04-28 Martin Jambor <mjambor@suse.cz>
32594 * cgraph.h (struct cgraph_node): New field indirect_calls.
32595 (struct cgraph_indirect_call_info): New type.
32596 (struct cgraph_edge): Removed field indirect_call. New fields
32597 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
32598 (cgraph_create_indirect_edge): Declare.
32599 (cgraph_make_edge_direct): Likewise.
32600 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
32601 * ipa-prop.h (struct ipa_param_call_note): Removed.
32602 (struct ipa_node_params): Removed field param_calls.
32603 (ipa_create_all_structures_for_iinln): Declare.
32604 * cgraph.c: Described indirect edges and uids in initial comment.
32605 (cgraph_add_edge_to_call_site_hash): New function.
32606 (cgraph_edge): Search also among the indirect edges, use
32607 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
32608 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
32609 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
32611 (initialize_inline_failed): Assign a reason to indirect edges.
32612 (cgraph_create_edge_1): New function.
32613 (cgraph_create_edge): Moved some functionality to
32614 cgraph_create_edge_1.
32615 (cgraph_create_indirect_edge): New function.
32616 (cgraph_edge_remove_callee): Add an assert checking for
32618 (cgraph_edge_remove_caller): Special-case indirect edges.
32619 (cgraph_remove_edge): Likewise.
32620 (cgraph_set_edge_callee): New function.
32621 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
32622 (cgraph_make_edge_direct): New function.
32623 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
32624 the declaration of the call statement matches.
32625 (cgraph_node_remove_callees): Special-case indirect edges.
32626 (cgraph_clone_edge): Likewise.
32627 (cgraph_clone_node): Clone also the indirect edges.
32628 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
32629 indirect_call, dump count of indirect_calls edges.
32630 * ipa-prop.c (iinlining_processed_edges): New variable.
32631 (ipa_note_param_call): Create indirect edges instead of
32632 creating notes. New parameter node.
32633 (ipa_analyze_call_uses): New parameter node, pass it on to
32634 ipa_note_param_call.
32635 (ipa_analyze_stmt_uses): Likewise.
32636 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
32637 (print_edge_addition_message): Work on edges rather than on notes.
32638 (update_call_notes_after_inlining): Likewise, renamed to
32639 update_indirect_edges_after_inlining.
32640 (ipa_create_all_structures_for_iinln): New function.
32641 (ipa_free_node_params_substructures): Do not free notes.
32642 (ipa_edge_duplication_hook): Propagate bits within
32643 iinlining_processed_edges bitmap.
32644 (ipa_node_duplication_hook): Do not duplicate notes.
32645 (free_all_ipa_structures_after_ipa_cp): Renamed to
32646 ipa_free_all_structures_after_ipa_cp.
32647 (free_all_ipa_structures_after_iinln): Renamed to
32648 ipa_free_all_structures_after_iinln.
32649 (ipa_write_param_call_note): Removed.
32650 (ipa_read_param_call_note): Removed.
32651 (ipa_write_indirect_edge_info): New function.
32652 (ipa_read_indirect_edge_info): Likewise.
32653 (ipa_write_node_info): Do not stream notes, do stream information
32655 (ipa_read_node_info): Likewise.
32656 (lto_ipa_fixup_call_notes): Removed.
32657 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
32658 * ipa-inline.c (pass_ipa_inline): Likewise.
32659 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
32660 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
32661 * tree-inline.c (copy_bb): Removed an unnecessary double check for
32663 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
32665 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
32666 (output_cgraph): Stream also indirect edges.
32667 (lto_output_edge): Added capability to stream indirect edges.
32668 (input_edge): Likewise.
32669 (input_cgraph_1): Likewise.
32670 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
32673 2010-04-28 Richard Guenther <rguenther@suse.de>
32675 PR tree-optimization/43879
32676 PR tree-optimization/43909
32677 * tree-ssa-structalias.c (struct variable_info): Add
32678 only_restrict_pointers flag.
32679 (new_var_info): Initialize it. Increment stats.total_vars here.
32680 (create_function_info_for): Do not increment stats.total_vars here.
32681 (get_function_part_constraint): Fix build with C++.
32682 (insert_into_field_list): Remove.
32683 (push_fields_onto_fieldstack): Properly merge fields.
32684 (create_variable_info_for): Split and simplify.
32685 (create_variable_info_for_1): New piece.
32686 (intra_create_variable_infos): Properly make restrict constraints
32689 2010-04-28 Richard Guenther <rguenther@suse.de>
32692 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
32694 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
32695 Jan Hubicka <hubicka@ucw.cz>
32697 * doc/invoke.texi (-Wsuggest-attribute=const,
32698 -Wsuggest-attribute=pure): Document.
32699 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
32700 (function_always_visible_to_compiler_p,
32701 suggest_attribute, warn_function_pure, warn_function_const):
32703 (check_call): Improve debug info.
32704 (analyze_function): Do not check availability.
32705 (add_new_function): Check availability.
32706 (propagate): Output warnings.
32707 (skip_function_for_local_pure_const): New function.
32708 (local_pure_const): Use it; output warnings.
32709 * common.opt (Wsuggest-attribute=const,
32710 Wsuggest-attribute=pure): New.
32712 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32714 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
32715 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
32716 or DW_CFA_def_cfa_offset{,_sf}.
32718 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32720 * tree.h: Fix truncated long macros.
32722 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
32724 * collect2.c (TARGET_64BIT): Redefine to target's default.
32725 * tlink.c: Likewise.
32726 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
32727 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
32728 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
32729 for underscoring __USER_LABEL_PREFIX__.
32730 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
32731 (SUB_LINK_ENTRY32): New.
32732 (SUB_LINK_ENTRY64): New.
32733 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
32734 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
32735 (SUB_LINK_ENTRY64): New.
32736 (SUB_LINK_ENTRY): New.
32737 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
32738 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
32739 x64 target is choosen.
32740 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
32741 * configure: Regenerated.
32742 * configure.ac (leading-mingw64-underscores): Option added.
32744 2010-04-27 Jan Hubicka <jh@suse.cz>
32746 * doc/invoke.texi (-fipa-profile): Document.
32747 * opts.c (decode_options): Enable ipa-profile at -O1.
32748 * timevar.def (TV_IPA_PROFILE): Define.
32749 * common.opt (fipa-profile): Add.
32750 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
32752 (cgraph_propagate_frequency): Handle only local ones.
32753 * tree-pass.h (pass_ipa_profile): Declare.
32754 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
32755 (pass_ipa_profile): Use TV_IPA_PROFILE.
32756 * ipa.c (ipa_profile): New function.
32757 (gate_ipa_profile): Likewise.
32758 (pass_ipa_profile): New global variable.
32759 * passes.c (pass_ipa_profile): New.
32761 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
32763 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
32765 2010-04-27 Martin Jambor <mjambor@suse.cz>
32767 PR middle-end/43812
32768 * ipa.c (dissolve_same_comdat_group_list): New function.
32769 (function_and_variable_visibility): Call
32770 dissolve_same_comdat_group_list when comdat group contains external or
32772 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
32773 lists are circular and that they contain only DECL_ONE_ONLY nodes.
32775 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32777 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
32778 (const_hash_1) <VECTOR_CST>: New case.
32779 (compare_constant) <VECTOR_CST>: Likewise.
32780 <ADDR_EXPR>: Deal with LABEL_REFs.
32781 (copy_constant) <VECTOR_CST>: New case.
32783 2010-04-27 Jan Hubicka <jh@suse.cz>
32785 * cgraph.c (cgraph_propagate_frequency): New function.
32786 * cgraph.h (cgraph_propagate_frequency): Declare.
32787 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
32788 cgraph_propagate_frequency.
32790 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32792 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
32794 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
32797 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
32798 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
32799 here to determine which regs to push and how much stack to reserve.
32801 2010-04-27 Jie Zhang <jie@codesourcery.com>
32803 * doc/gimple.texi (gimple_statement_with_ops): Remove
32804 addresses_taken field.
32805 (gimple_statement_with_memory_ops): Likewise.
32807 2010-04-27 Jan Hubicka <jh@suse.cz>
32809 * tree-inline.c (eni_inlining_weights): Remove.
32810 (estimate_num_insns): Special case more builtins.
32812 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
32815 * c-typeck.c (build_binary_op): Move forward check for comparison
32816 pointer with null pointer constant and adjust the diagnostic message.
32818 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
32821 * configure.ac (gcc_cv_as_section_has_align): Set if installed
32822 binutils supports extended .section directive needed by LTO, or
32823 warn if older binutils found.
32824 (LTO_BINARY_READER): New AC_SUBST'd variable.
32825 (LTO_USE_LIBELF): Likewise.
32826 * config.gcc (lto_binary_reader): New target-specific configure
32828 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
32829 (LTO_USE_LIBELF): Likewise.
32830 * configure: Regenerate.
32832 * collect2.c (is_elf): Rename from this ...
32833 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
32834 object files in addition to ELF-formatted ones.
32835 (scan_prog_file): Caller updated. Also allow for LTO info marker
32836 symbol to be prefixed or not by an extra underscore.
32838 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
32839 * config/i386/winnt.c: Also #include lto-streamer.h
32840 (i386_pe_asm_named_section): Specify 1-byte section alignment for
32841 LTO named sections.
32842 (i386_pe_asm_output_aligned_decl_common): Add comment.
32843 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
32845 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
32848 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
32849 Add missing earlyclobber for second alternative.
32851 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
32853 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
32854 bits for artificial defs at the top of the block.
32855 * fwprop.c (single_def_use_enter_block): Don't call it.
32857 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
32860 * configure.ac: Use "$gcc_cv_nm -g" on darwin
32861 instead of "$gcc_cv_objdump -T".
32862 Use "-undefined dynamic_lookup" on darwin.
32863 * configure: Regenerate.
32865 2010-04-26 Jakub Jelinek <jakub@redhat.com>
32868 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
32870 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32872 * c-parser.c (struct c_token): Move location field up.
32873 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
32874 (struct c_declspecs): Convert typespec_word, storage_class, and
32875 default_int_p into bitfields.
32876 (struct c_declarator): Move loc field up.
32878 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32880 * cfgloop.h (struct loop): Move can_be_parallel field up.
32881 * ipa-prop.h (struct ip_node_params): Move bitfields up.
32882 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
32884 (struct iv_cand): Convert pos field into a bitfield.
32885 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
32887 (struct _stmt_vec_info): Shuffle fields for better packing.
32889 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32891 * varasm.c (IN_NAMED_SECTION): Remove guard.
32892 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
32893 (IN_NAMED_SECTION_P): ...this.
32894 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
32895 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
32897 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32899 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
32900 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
32901 of shadowing it. Fix comments.
32903 2010-04-26 Jan Hubicka <jh@suse.cz>
32905 * cgraph.c (cgraph_create_node): Set node frequency to normal.
32906 (cgraph_clone_node): Copy function frequency.
32907 * cgraph.h (node_frequency): New enum
32908 (struct cgraph_node): Add.
32909 * final.c (rest_of_clean_state): Update.
32910 * lto-cgraph.c (lto_output_node): Output node frequency.
32911 (input_overwrite_node): Input node frequency.
32912 * tre-ssa-loop-ivopts (computation_cost): Update.
32913 * lto-streamer-out.c (output_function): Do not output function
32915 * predict.c (maybe_hot_frequency_p): Update and handle functions
32917 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
32919 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
32920 (compute_function_frequency): Set noreturn functions to be executed
32922 (choose_function_section): Update.
32923 * lto-streamer-in.c (input_function): Do not input function frequency.
32924 * function.c (allocate_struct_function): Do not initialize function
32926 * function.h (function_frequency): Remove.
32927 (struct function): Remove function frequency.
32928 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
32929 (try_update): Update.
32930 * tree-inline.c (initialize_cfun): Do not update function frequency.
32931 * passes.c (pass_init_dump_file): Update.
32932 * i386.c (ix86_compute_frame_layout): Update.
32933 (ix86_pad_returns): Update.
32935 2010-04-26 Jie Zhang <jie@codesourcery.com>
32937 PR tree-optimization/43833
32938 * tree-vrp.c (range_int_cst_p): New.
32939 (range_int_cst_singleton_p): New.
32940 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
32941 when both operands are constants. Use range_int_cst_p in
32944 2010-04-26 Jan Hubicka <jh@suse.cz>
32946 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
32948 2010-04-26 Richard Guenther <rguenther@suse.de>
32951 * gimple.c (gimple_decl_printable_name): Deal gracefully
32952 with a NULL DECL_NAME.
32954 2010-04-26 Richard Guenther <rguenther@suse.de>
32957 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
32958 if emitting debug information and it is either a function
32959 or a namespace decl.
32961 2010-04-26 Ira Rosen <irar@il.ibm.com>
32963 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
32964 determine if the statement is vectorizable, and a macro to access it.
32965 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32966 Skip statements that can't be vectorized. If the analysis fails,
32967 mark the statement as unvectorizable if vectorizing basic block.
32968 (vect_compute_data_refs_alignment): Likewise.
32969 (vect_verify_datarefs_alignment): Skip statements marked as
32970 unvectorizable. Add print.
32971 (vect_analyze_group_access): Skip statements that can't be
32972 vectorized. If the analysis fails, mark the statement as
32973 unvectorizable if vectorizing basic block.
32974 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
32975 * tree-vect-stmts.c (vectorizable_store): Fix the number of
32976 generated stmts for SLP.
32977 (new_stmt_vec_info): Initialize the new field.
32978 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
32979 statements marked as unvectorizable.
32981 2010-04-25 Joseph Myers <joseph@codesourcery.com>
32983 * c-common.c (flag_isoc1x): New.
32984 (flag_isoc99): Update comment.
32985 * c-common.h (flag_isoc1x): New.
32986 (flag_isoc99): Update comment.
32987 * c-cppbuiltin.c (builtin_define_float_constants): Also define
32988 __<type>_DECIMAL_DIG__.
32989 * c-opts.c (set_std_c1x): New.
32990 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
32991 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
32992 * c.opt (-std=c1x, -std=gnu1x): New options.
32993 * doc/cpp.texi: Mention -std=c1x.
32994 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
32995 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
32996 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
32997 * doc/standards.texi: Mention C1X.
32998 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
32999 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
33000 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
33003 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
33005 * config/i386/gmon-sol2.c (_mcleanup): Change format string
33006 placeholder from 0x%x to %#x.
33007 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
33008 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
33009 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
33010 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
33011 * config/i386/i386.c (ix86_target_string): Ditto.
33012 (output_pic_addr_const): Ditto.
33013 (print_operand): Ditto.
33015 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
33017 * combine.c (find_split_point): Add third argument. Use it
33018 to find nested multiply-accumulate instructions. Adjust calls.
33019 (try_combine): Adjust call to find_split_point.
33021 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
33023 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
33025 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
33027 PR tree-optimization/41442
33028 * fold-const.c (merge_truthop_with_opposite_arm): New function.
33029 (fold_binary_loc): Call it.
33031 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
33033 * toplev.c (general_init): Set default for fdiagnostics-show-option.
33034 * opts.c (common_handle_option): Allow disabling it.
33035 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
33037 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
33039 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
33040 between modes if both types are integral.
33042 2010-04-23 Richard Guenther <rguenther@suse.de>
33044 PR tree-optimization/43572
33045 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
33047 2010-04-23 Richard Guenther <rguenther@suse.de>
33050 * tree-inline.c (tree_can_inline_p): Also check compatibility
33053 2010-04-23 Martin Jambor <mjambor@suse.cz>
33055 PR tree-optimization/43846
33056 * tree-sra.c (struct access): New flag grp_assignment_read.
33057 (build_accesses_from_assign): Set grp_assignment_read.
33058 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
33059 (enum mark_read_status): New type.
33060 (analyze_access_subtree): Propagate grp_assignment_read, create
33061 accesses also if both direct_read and root->grp_assignment_read.
33063 2010-04-23 Martin Jambor <mjambor@suse.cz>
33065 PR middle-end/43835
33066 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
33067 function does not have type attributes.
33069 2010-04-23 Richard Guenther <rguenther@suse.de>
33072 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
33075 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
33077 * sese.h (create_if_region_on_edge): Remove.
33079 * sese.c (create_if_region_on_edge): Make static.
33081 * tree-inline.c: Do not include ggc.h.
33083 * expr.c: Do not include ggc.h.
33085 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
33088 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
33091 * config/sh/sh.c (find_barrier): Don't emit a constant pool
33092 in the middle of insns for casesi_worker_2.
33094 2010-04-22 David Edelsohn <edelsohn@gnu.org>
33096 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
33098 2010-04-22 Ira Rosen <irar@il.ibm.com>
33100 PR tree-optimization/43842
33101 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
33102 loop unrolling in update of exit phis. Fix comment.
33103 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
33104 least two reduction statements in the loop before starting SLP
33107 2010-04-22 Nick Clifton <nickc@redhat.com>
33109 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
33111 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
33113 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
33114 to simplify a + ~a.
33116 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
33118 * tree-parloops.c (loop_parallel_p): New argument
33119 parloop_obstack. Pass it down.
33120 (parallelize_loops): New variable parloop_obstack. Initialize it,
33121 pass it down, free it.
33123 * tree-loop-linear.c (linear_transform_loops): Pass down
33126 * tree-data-ref.h (lambda_compute_access_matrices): New argument
33127 of type struct obstack *.
33129 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
33130 scratch_obstack. Initialize it, pass down, free it.
33132 * lambda.h (lambda_loop_new): Remove.
33133 (lambda_matrix_new, lambda_matrix_inverse)
33134 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
33135 argument of type struct obstack *.
33137 * lambda-trans.c (lambda_trans_matrix_new): New argument
33138 lambda_obstack. Pass it down, use obstack allocation for ret.
33139 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
33142 * lambda-mat.c (lambda_matrix_get_column)
33143 (lambda_matrix_project_to_null): Remove.
33144 (lambda_matrix_new): New argument lambda_obstack. Use obstack
33145 allocation for mat.
33146 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
33149 * lambda-code.c (lambda_loop_new): New function.
33150 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
33151 (lambda_compute_auxillary_space, lambda_compute_target_space)
33152 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
33153 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
33154 (build_access_matrix): New argument lambda_obstack. Use obstack
33156 (lambda_compute_step_signs, lambda_compute_access_matrices): New
33157 argument lambda_obstack. Pass it down.
33159 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
33161 * optabs.h (expand_widening_mult): Declare.
33163 2010-04-22 Richard Guenther <rguenther@suse.de>
33165 PR tree-optimization/43845
33166 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
33167 lookup the CALL_EXPR function and arguments.
33169 2010-04-22 Nick Clifton <nickc@redhat.com>
33171 * config/stormy16/stormy16.c
33172 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
33173 * config/stormy16/stormy16.h: Tidy up formatting.
33174 (DONT_USE_BUILTIN_SETJMP): Remove definition.
33175 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
33176 (ineqbranchsi): Delete pattern.
33177 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
33178 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
33179 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
33180 stormy16-lib2-ucmpsi2.c.
33182 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
33184 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
33185 df_simulate_find_noclobber_defs as appropriate. Keep track of an
33186 extra set merge_set_noclobber, and use it to relax the final test
33188 * df.h (df_simulate_find_noclobber_defs): Declare.
33189 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
33191 (df_simulate_find_noclobber_defs): New function.
33193 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
33195 * config/i386/i386.md: Use {} around multi-line preparation statements.
33197 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
33199 * c-tree.h (push_init_level, pop_init_level, set_init_index)
33200 (process_init_element): New argument of type struct obstack *.
33202 * c-typeck.c (push_init_level, pop_init_level, set_designator)
33203 (set_init_index, set_init_label, set_nonincremental_init)
33204 (set_nonincremental_init_from_string, find_init_member)
33205 (output_init_element, output_pending_init_elements)
33206 (process_init_element): New argument braced_init_obstack. Pass it
33208 (push_range_stack, add_pending_init): New argument
33209 braced_init_obstack. Use obstack allocation.
33211 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
33212 braced_init_obstack. Pass it down.
33213 (c_parser_braced_init): New variables ret, braced_init_obstack.
33214 Initialize obstack, pass it down and finally free it.
33216 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
33218 PR middle-end/29274
33219 * tree-pass.h (pass_optimize_widening_mul): Declare.
33220 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
33221 gate_optimize_widening_mul): New static functions.
33222 (pass_optimize_widening_mul): New.
33223 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
33224 <case MULT_EXPR>: Remove support for widening multiplies.
33225 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
33226 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
33227 simplify_gen_unary rather than directly building extensions.
33228 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
33230 * expmed.c (expand_widening_mult): New function.
33231 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
33233 2010-04-21 Jan Hubicka <jh@suse.cz>
33235 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
33236 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
33237 * lto-wpa-fixup.c: Remove.
33238 * Makefile.in (lto-wpa-fixup.o): Remove.
33239 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
33240 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
33241 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
33243 2010-04-21 Jan Hubicka <jh@suse.cz>
33245 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
33246 add write_optimization_summary, read_optimization_summary.
33247 (ipa_write_summaries_of_cgraph_node_set): Remove.
33248 (ipa_write_optimization_summaries): Declare.
33249 (ipa_read_optimization_summaries): Declare.
33250 * ipa-cp.c (pass_ipa_cp): Update.
33251 * ipa-reference.c (pass_ipa_reference): Update.
33252 * ipa-pure-const.c (pass_ipa_pure_const): Update.
33253 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
33255 * ipa-inline.c (pass_ipa_inline): Update.
33256 * ipa.c (pass_ipa_whole_program): Update.
33257 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
33258 * passes.c (ipa_write_summaries_1): Do not test wpa.
33259 (ipa_write_optimization_summaries_1): New.
33260 (ipa_write_optimization_summaries): New.
33261 (ipa_read_summaries): Do not test ltrans.
33262 (ipa_read_optimization_summaries_1): New.
33263 (ipa_read_optimization_summaries): New.
33265 2010-04-21 Jan Hubicka <jh@suse.cz>
33267 * lto-cgraph.c (lto_output_node): Do not output comdat groups
33268 for boundary nodes.
33269 (output_cgraph): Do not arrange comdat groups for boundary nodes.
33271 2010-04-21 Jakub Jelinek <jakub@redhat.com>
33274 * dwarf2out.c (add_name_and_src_coords_attributes): Add
33275 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
33277 2010-04-21 Jan Hubicka <jh@suse.cz>
33279 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
33281 2010-04-21 Jan Hubicka <jh@suse.cz>
33283 * varpool.c (decide_is_variable_needed): Variable is always needed
33286 2010-04-21 Jan Hubicka <jh@suse.cz>
33288 * opts.c (decode_options): Enable pure-const pass for whopr.
33290 2010-04-21 Jan Hubicka <jh@suse.cz>
33292 * cgraph.c (dump_cgraph_node): Dump also assembler name.
33293 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
33295 (cgraph_decide_inlining): Do not expect callee to be removed in all
33298 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
33300 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
33302 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
33304 * config/i386/i386.md (x86_shrd): Add athlon_decode and
33305 amdfam10_decode attributes.
33307 2010-04-21 Jakub Jelinek <jakub@redhat.com>
33309 PR middle-end/43570
33310 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
33311 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
33312 (lower_copyprivate_clauses): Use private var in outer
33313 context instead of original var. Make sure the types
33314 are correct for VLAs.
33316 2010-04-21 Richard Guenther <rguenther@suse.de>
33318 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
33319 to non-pointer objects.
33321 2010-04-21 Jakub Jelinek <jakub@redhat.com>
33323 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
33324 last chain entry if it starts with the still current label.
33325 (add_location_or_const_value_attribute): Check that
33326 loc_list->first->next is NULL instead of comparing ->first with ->last.
33327 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
33328 to add_var_loc_to_decl.
33330 * dwarf2out.c (output_call_frame_info): For dw_cie_version
33331 >= 4 add also address size and segment size fields into CIE header.
33333 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
33334 long as address size is the same as sizeof (void *) and
33336 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
33337 address size or segment size is unexpected, return DW_EH_PE_omit.
33338 (classify_object_over_fdes): If get_cie_encoding returned
33339 DW_EH_PE_omit, return -1.
33340 (init_object): If classify_object_over_fdes returned -1,
33341 pretend there were no FDEs at all.
33343 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
33345 * config/i386/i386.md (bswap<mode>2): Macroize expander from
33346 bswap{si,di}2 using SWI48 mode iterator.
33347 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
33348 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
33349 set modrm attribute of bswap insn to 0 and remove length attribute.
33350 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
33351 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
33352 set mode attribute to <MODE> and remove length attribute.
33354 2010-04-20 James E. Wilson <wilson@codesourcery.com>
33356 PR rtl-optimization/43520
33357 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
33358 zero available registers.
33360 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33362 * builtins.c (fold_builtin_cproj): Fold more cases.
33364 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33366 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
33367 (fold_builtin_1): Fold builtin cproj.
33368 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
33369 Use ATTR_CONST_NOTHROW_LIST.
33371 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
33373 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
33374 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
33375 ffsi2_no_cmove for !TARGET_CMOVE.
33376 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
33377 (ffssi2): Remove expander.
33378 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
33380 (ctz<mode>2): Ditto from ctz{si,di}2.
33381 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
33383 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
33386 2010-04-20 Jakub Jelinek <jakub@redhat.com>
33388 * dwarf2out.c (AT_linkage_name): Define.
33389 (clone_as_declaration): Handle DW_AT_linkage_name.
33390 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
33391 of DW_AT_MIPS_linkage_name.
33392 (move_linkage_attr): Likewise.
33393 (dwarf2out_finish): Likewise.
33395 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
33397 PR middle-end/41952
33398 * fold-const.c (fold_comparison): New folding rule.
33400 2010-04-20 Anatoly Sokolov <aesok@post.ru>
33402 * double-int.h (double_int_setbit): Declare.
33403 * double-int.c (double_int_setbit): New function.
33404 * rtl.h (immed_double_int_const): Declare.
33405 * emit-rtl.c (immed_double_int_const): New function.
33406 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
33407 and immed_double_int_const functions.
33408 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
33409 expand_copysign_bit): (Ditto.).
33410 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
33411 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
33412 * dojump.c (prefer_and_bit_test): (Ditto.).
33413 * expr.c (convert_modes, reduce_to_bit_field_precision,
33414 const_vector_from_tree): (Ditto.).
33415 * expmed.c (mask_rtx, lshift_value): (Ditto.).
33417 2010-04-20 Jan Hubicka <jh@suse.cz>
33419 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
33420 (dump_cgraph_node): Dump new flags.
33421 * cgraph.h (struct cgraph_node): Add flags
33422 reachable_from_other_partition and in_other_partition.
33423 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
33424 other partition can not be removed.
33425 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
33426 the other partition must be output; silence sanity checking on
33427 leaking functions bodies from other paritition.
33428 * lto-cgraph.c (reachable_from_other_partition_p): New function.
33429 (lto_output_node): Output new flags; do not sanity check that inline
33430 clones are output; drop lto_forced_extern_inline_p code; do not mock
33431 visibility flags at partition boundaries.
33432 (add_node_to): New function.
33433 (output_cgraph): Use it to sort functions so masters appear before
33435 (input_overwrite_node): Input new flags.
33436 * passes.c (ipa_write_summaries): Do not call
33437 lto_new_extern_inline_states.
33438 * lto-section-out.c (forced_extern_inline,
33439 lto_new_extern_inline_states lto_delete_extern_inline_states,
33440 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
33441 * lto-streamer.h (lto_new_extern_inline_states,
33442 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
33443 lto_forced_extern_inline_p): Kill.
33445 2010-04-20 Richard Guenther <rguenther@suse.de>
33447 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
33448 from vars that can have pointers.
33449 (process_constraint): Dump useless constraints.
33451 2010-04-20 Richard Guenther <rguenther@suse.de>
33453 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
33454 (dump_sa_points_to_info): Remove asserts.
33455 (init_base_vars): nothing_id isn't an escape point nor does it
33458 2010-04-20 Jakub Jelinek <jakub@redhat.com>
33460 * tree.h (TYPE_REF_IS_RVALUE): Define.
33461 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
33462 should_move_die_to_comdat, prune_unused_types_walk): Handle
33463 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
33464 (modified_type_die, gen_reference_type_die): Emit
33465 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
33466 if TYPE_REF_IS_RVALUE and -gdwarf-4.
33468 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33471 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
33472 calls for -fpic -m31 if they have been sibcall optimized.
33474 2010-04-19 James E. Wilson <wilson@codesourcery.com>
33476 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
33477 ar.lc fixed and call-used.
33479 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
33481 2010-04-19 Jan Hubicka <jh@suse.cz>
33483 * opts.c (decode_options): Disable whpr incompatible passes.
33484 * lto/lto.c (lto_1_to_1_map): Skip clones.
33485 (read_cgraph_and_symbols): Do not mark everything as needed.
33486 (do_whole_program_analysis): Do map only after optimizing;
33487 set proper cgraph_state; use passmanager.
33489 2010-04-19 DJ Delorie <dj@redhat.com>
33491 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
33492 POINTER_PLUS_EXPR and fix them.
33494 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
33496 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
33497 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
33498 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
33499 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
33500 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
33501 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
33502 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
33503 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
33504 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
33505 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
33506 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
33508 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
33510 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
33511 (check_cond_move_block): Likewise.
33512 (cond_move_process_if_block): Likewise.
33513 (noce_find_if_block): Improve formatting.
33514 (find_if_header): Pass 0 to memset and tweak conditions.
33515 (cond_exec_find_if_block): Fix long lines and tweak conditions.
33517 2010-04-19 Jakub Jelinek <jakub@redhat.com>
33519 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
33522 PR middle-end/43337
33523 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
33524 with non-local decl doesn't need chain.
33526 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
33528 * ira-color.c (allocno_reload_assign): Avoid accumulating
33529 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
33531 2010-04-19 Martin Jambor <mjambor@suse.cz>
33533 * gimple.h (create_tmp_reg): Declare.
33534 * gimplify.c (create_tmp_reg): New function.
33535 (gimplify_return_expr): Use create_tmp_reg.
33536 (gimplify_omp_atomic): Likewise.
33537 (gimple_regimplify_operands): Likewise.
33538 * tree-dfa.c (make_rename_temp): Likewise.
33539 * tree-predcom.c (predcom_tmp_var): Likewise.
33540 (reassociate_to_the_same_stmt): Likewise.
33541 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
33542 (get_replaced_param_substitute): Likewise.
33543 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
33544 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
33545 * tree-ssa-pre.c (get_representative_for): Likewise.
33546 (create_expression_by_pieces): Likewise.
33547 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
33548 (create_tailcall_accumulator): Likewise.
33550 2010-04-19 Martin Jambor <mjambor@suse.cz>
33552 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
33554 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
33556 2010-04-19 Richard Guenther <rguenther@suse.de>
33558 PR tree-optimization/43796
33559 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
33560 from SCEV in the lattice.
33561 (vrp_visit_phi_node): Dump change.
33563 2010-04-19 Richard Guenther <rguenther@suse.de>
33565 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
33566 * configure: Re-generated.
33568 2010-04-19 Richard Guenther <rguenther@suse.de>
33570 PR tree-optimization/43783
33571 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
33572 constant ARRAY_REF operands two and three if possible.
33574 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
33577 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
33579 2010-04-19 Jie Zhang <jie@codesourcery.com>
33582 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
33584 2010-04-19 Ira Rosen <irar@il.ibm.com>
33586 PR tree-optimization/37027
33587 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
33588 and macro to access it.
33589 (vectorizable_reduction): Add argument.
33590 (vect_get_slp_defs): Likewise.
33591 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
33592 statements for possible use in SLP.
33593 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
33594 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
33595 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
33597 (vectorizable_reduction): Likewise.
33598 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
33600 (vectorizable_type_demotion, vectorizable_type_promotion,
33601 vectorizable_store): Likewise.
33602 (vect_analyze_stmt): Update call to vectorizable_reduction.
33603 (vect_transform_stmt): Likewise.
33604 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
33605 (vect_build_slp_tree): Fix indentation. Check that there are no loads
33606 from different interleaving chains in same node.
33607 (vect_slp_rearrange_stmts): New function.
33608 (vect_supported_load_permutation_p): Allow load permutations for
33609 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
33610 inside SLP nodes if necessary.
33611 (vect_analyze_slp_instance): Handle reductions.
33612 (vect_analyze_slp): Try to build SLP instances originating from groups
33614 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
33615 (vect_get_constant_vectors): Create initial vectors for reductions
33616 according to reduction code. Add new argument.
33617 (vect_get_slp_defs): Add new argument, pass it to
33618 vect_get_constant_vectors.
33619 (vect_schedule_slp_instance): Remove SLP tree root statements.
33621 2010-04-19 Jakub Jelinek <jakub@redhat.com>
33623 * tree.h (ENUM_IS_SCOPED): Define.
33624 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
33625 for ENUM_IS_SCOPED enums.
33627 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
33629 * fold-const.c (fold_comparison): Use ssizetype.
33630 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
33631 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
33632 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
33633 * tree-object-size.c (compute_object_sizes): Use size_type_node.
33635 * tree.h (initialize_sizetypes): Remove parameter.
33636 (build_common_tree_nodes): Remove second parameter.
33637 * stor-layout.c (initialize_sizetypes): Remove parameter.
33638 Always create an unsigned type.
33639 (set_sizetype): Assert that the passed type is unsigned and simplify.
33640 * tree.c (build_common_tree_nodes): Remove second parameter.
33641 Adjust call to initialize_sizetypes.
33642 * c-decl.c (c_init_decl_processing): Remove second argument in call to
33643 build_common_tree_nodes.
33645 2010-04-18 Matthias Klose <doko@ubuntu.com>
33647 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
33649 2010-04-18 Ira Rosen <irar@il.ibm.com>
33651 PR tree-optimization/43771
33652 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
33653 load permutation doesn't have gaps.
33655 2010-04-18 Jan Hubicka <jh@suse.cz>
33657 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
33658 (sse_prologue_save_insn expander): Use new pattern.
33659 (sse_prologue_save_insn1): New pattern and splitter.
33660 (sse_prologue_save_insn): Update to deal also with 64bit aligned
33662 * i386.c (setup_incoming_varargs_64): Do not compute jump
33664 (ix86_gimplify_va_arg): Update alignment needed.
33665 (ix86_local_alignment): Do not align all local arrays to 128bit.
33667 2010-04-17 Jan Hubicka <jh@suse.cz>
33669 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
33671 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
33673 * arm.md (negdi2): Remove redundant code to force values into a
33676 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
33678 * arm/bpabi.S: Add EABI alignment attributes to objects.
33679 * arm/bpabi-v6m.S: Likewise.
33680 * arm/crti.asm: Likewise.
33681 * arm/crtn.asm: Likewise.
33682 * arm/lib1funcs.asm: Likewise.
33683 * arm/libunwind.S: Likewise.
33685 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
33687 * arm-protos.h (tune_params): New structure.
33688 * arm.c (current_tune): New variable.
33689 (arm_constant_limit): Delete.
33690 (struct processors): Add pointer to the tune parameters.
33691 (arm_slowmul_tune): New tuning option.
33692 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
33693 (all_cores): Adjust to pick up the tuning model.
33694 (arm_constant_limit): New function.
33695 (arm_override_options): Select the appropriate tuning model. Delete
33696 initialization of arm_const_limit.
33697 (arm_split_constant): Use the new constant-limit model.
33698 (arm_rtx_costs): Pick up the current tuning model.
33699 * arm.md (is_strongarm, is_xscale): Delete.
33700 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
33701 for Xscale variant architectures.
33702 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
33704 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33706 * config/arm/arm.c (arm_gen_constant): Remove unused variable
33708 (arm_rtx_costs_1): Remove unused variable extra_cost.
33709 (arm_unwind_emit_set): Use variable offset.
33710 (thumb1_output_casesi): Remove unused variable flags.
33712 2010-04-16 Jeff Law <law@redhat.com>
33714 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
33715 needing assignment rather than doing a two-phase assignment. Remove
33716 unused variable 'm'.
33718 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33721 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
33723 2010-04-16 Doug Kwan <dougkwan@google.com>
33725 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
33726 (next_operand_entry_id): New static variable.
33727 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
33728 (add_to_ops_vec): Assigned unique ID to operand entry.
33729 (struct oecount_s): New field ID.
33730 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
33731 (undistribute_ops_list): Assign unique IDs to oecounts.
33732 (init_reassoc): reset next_operand_entry_id.
33734 2010-04-16 Doug Kwan <dougkwan@google.com>
33736 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
33737 missing left parenthesis.
33739 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
33741 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
33742 *btdi_rex64 using SWI48 mode iterator.
33743 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
33744 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
33745 *jcc_btdi_mask_rex64.
33747 2010-04-16 Anatoly Sokolov <aesok@post.ru>
33749 * double-int.h (tree_to_double_int): Convert to macro.
33750 * double-int.c (tree_to_double_int): Remove.
33752 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33755 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
33756 with want_address 2 and in case a single element list might be
33757 possible, call it again with want_address 0.
33759 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33761 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
33762 case 'W' print operands for HI mode.
33763 * config/h8300/h8300.h (Y0, Y2) : New constraints.
33764 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
33765 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
33766 * config/h8300/predicate.md (bit_register_indirect_operand): New.
33768 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
33770 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
33771 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
33772 #xx:3 and #xx:4 mode.
33774 * config/h8300/h8300.md (inverted load with HImode dest): Add
33775 support for H8300SX.
33777 * config/h8300/predicate.md (bit_operand): Allow immediate values that
33778 satisfy 'U' constraint.
33780 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33782 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
33783 * configure: Regenerate.
33784 * config.in: Regenerate.
33785 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
33788 2010-04-16 Richard Guenther <rguenther@suse.de>
33790 * tree.h (struct tree_decl_minimal): Move pt_uid ...
33791 (struct tree_decl_common): ... here.
33792 (DECL_PT_UID): Adjust.
33793 (SET_DECL_PT_UID): Likewise.
33794 (DECL_PT_UID_SET_P): Likewise.
33796 2010-04-16 Richard Guenther <rguenther@suse.de>
33798 PR tree-optimization/43572
33799 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
33800 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
33801 * tree-flow.h (is_call_clobbered): Remove.
33802 * tree-flow-inline.h (is_call_clobbered): Likewise.
33803 * tree-dfa.c (dump_variable): Do not dump call clobber state.
33804 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
33805 (execute_return_slot_opt): Adjust.
33806 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
33807 check for call clobbered vars here.
33808 (find_tail_calls): Move tailcall verification to the
33811 2010-04-16 Diego Novillo <dnovillo@google.com>
33813 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
33815 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33818 * config/arm/arm.md (cbranchqi4): New pattern.
33819 * config/arm/predicates.md (const0_operand,
33820 cbranchqi4_comparison_operator): New predicates.
33822 2010-04-16 Richard Guenther <rguenther@suse.de>
33824 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
33825 (dump_gimple_stmt): Likewise.
33827 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33829 * recog.h (struct recog_data): New field is_operator.
33830 (struct insn_operand_data): New field is_operator.
33831 * recog.c (extract_insn): Set recog_data.is_operator.
33832 * genoutput.c (output_operand_data): Emit code to set the
33834 * reload.c (find_reloads): Use it rather than testing for an
33835 empty constraint string.
33838 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
33839 If the previous insn is a cbranchsi4_insn with the same arguments,
33840 omit the compare instruction.
33842 * config/arm/arm.md (addsi3_cbranch): If destination is a high
33843 register, inputs must be low registers and we need a low register
33844 scratch. Handle alternative 2 like alternative 3.
33846 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33848 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
33849 don't call get_addr on both. If one expression is a VALUE and
33850 the other a REG, check VALUE's locs if the REG isn't among them.
33852 2010-04-16 Christian Bruel <christian.bruel@st.com>
33854 * config/sh/sh.h (sh_frame_pointer_required): New function.
33855 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
33856 (flag_omit_frame_pointer) Set.
33857 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
33858 (rounded_frame_size): Adjust size with outgoing_args_size.
33859 (sh_set_return_address): Must return from stack pointer.
33860 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
33861 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
33862 (ACCUMULATE_OUTGOING_ARGS): Define.
33863 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
33864 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
33866 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
33869 * config/sh/sh.c (sh_legitimize_reload_address): Use
33870 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
33871 Remove a unneeded check for offset_base.
33873 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
33875 * configure: Regenerated.
33877 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33879 * config/s390/s390.c (s390_call_save_register_used): Switch back
33880 to HARD_REGNO_NREGS.
33882 2010-04-15 Richard Guenther <rguenther@suse.de>
33884 * alias.c (alias_set_subset_of): Handle alias-set zero
33887 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
33888 Julian Brown <julian@codesourcery.com>
33890 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
33891 alternatives according to use of high and low regs.
33892 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
33893 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
33894 optimizing for size on Thumb-2.
33896 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
33898 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
33900 2010-04-15 Richard Guenther <rguenther@suse.de>
33902 * tree-ssa-structalias.c (struct variable_info): Add
33904 (new_var_info): Initialize it.
33905 (dump_constraints): Support printing last added constraints.
33906 (debug_constraints): Adjust.
33907 (dump_constraint_graph): Likewise.
33908 (make_heapvar_for): Check for NULL cfun.
33909 (get_function_part_constraint): New function.
33910 (get_fi_for_callee): Likewise.
33911 (find_func_aliases): Properly implement IPA PTA constraints.
33912 (process_ipa_clobber): New function.
33913 (find_func_clobbers): Likewise.
33914 (insert_into_field_list_sorted): Remove.
33915 (create_function_info_for): Properly allocate vars for IPA mode.
33916 Do not use insert_into_field_list_sorted.
33917 (create_variable_info_for): Properly generate constraints for
33918 global vars in IPA mode.
33919 (dump_solution_for_var): Always dump the solution.
33920 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
33921 (find_what_var_points_to): Adjust.
33922 (pt_solution_set): Change.
33923 (pt_solution_ior_into): New function.
33924 (pt_solution_empty_p): Export.
33925 (pt_solution_includes_global): Adjust.
33926 (pt_solution_includes_1): Likewise.
33927 (pt_solutions_intersect_1): Likewise.
33928 (dump_sa_points_to_info): Check some invariants.
33929 (solve_constraints): Move constraint dumping ...
33930 (compute_points_to_sets): ... here.
33931 (ipa_pta_execute): ... and here.
33932 (compute_may_aliases): Do not re-compute points-to info
33933 locally if IPA info is available.
33934 (ipa_escaped_pt): New global var.
33935 (ipa_pta_execute): Properly implement IPA PTA.
33936 * tree-into-ssa.c (dump_decl_set): Support dumping
33937 decls not in referenced-vars.
33938 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
33939 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
33940 (dump_points_to_solution): Likewise.
33941 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
33942 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
33943 (remap_gimple_stmt): Reset call clobber/use information if necessary.
33944 (copy_decl_to_var): Copy DECL_PT_UID.
33945 (copy_result_decl_to_var): Likewise.
33946 * tree.c (make_node_stat): Initialize DECL_PT_UID.
33947 (copy_node_stat): Copy it.
33948 * tree.h (DECL_PT_UID): New macro.
33949 (SET_DECL_PT_UID): Likewise.
33950 (DECL_PT_UID_SET_P): Likewise.
33951 (struct tree_decl_minimal): Add pt_uid member.
33952 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
33953 (pt_solution_empty_p): Declare.
33954 (pt_solution_set): Adjust.
33955 (ipa_escaped_pt): Declare.
33956 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
33957 * gimple-pretty-print.c (pp_points_to_solution): New function.
33958 (dump_gimple_call): Dump call clobber/use information.
33959 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
33960 * tree-pass.h (TDF_ALIAS): New dump option.
33961 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
33962 * doc/invoke.texi (-fipa-pta): Update documentation.
33964 2010-04-15 Richard Guenther <rguenther@suse.de>
33966 * Makefile.in (OBJS-common): Add gimple-fold.o.
33967 (gimple-fold.o): New rule.
33968 * tree.h (maybe_fold_offset_to_reference,
33969 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
33971 * gimple.h: ... here.
33972 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
33973 may_propagate_address_into_dereference): Move prototypes ...
33974 * gimple.h: ... here.
33975 * tree-ssa-ccp.c (get_symbol_constant_value,
33976 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
33977 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
33978 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
33979 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
33980 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
33981 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
33982 gimplify_and_update_call_from_tree): Move ...
33983 * gimple-fold.c: ... here. New file.
33984 (ccp_fold_builtin): Rename to ...
33985 (gimple_fold_builtin): ... this.
33986 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
33988 2010-04-15 Richard Guenther <rguenther@suse.de>
33990 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
33991 fit_double_type, force_fit_type_double, add_double_with_sign,
33992 neg_double, mul_double_with_sign, lshift_double, rshift_double,
33993 lrotate_double, rrotate_double, div_and_round_double): Move ...
33994 * double-int.c: ... here.
33995 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
33996 add_double, neg_double, mul_double_with_sign, mul_double,
33997 lshift_double, rshift_double, lrotate_double, rrotate_double,
33998 div_and_round_double): Move prototypes ...
33999 * double-int.h: ... here.
34001 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
34004 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
34005 matching constraints to ensure inputs match the output.
34007 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
34010 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
34011 in an input-only operand.
34013 2010-04-15 Anatoly Sokolov <aesok@post.ru>
34015 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
34016 (double_int_not, double_int_lshift, double_int_rshift): Declare.
34017 (double_int_negative_p): Convert to static inline function.
34018 * double-int.c (double_int_lshift, double_int_lshift): New functions.
34019 (double_int_negative_p): Remove.
34020 * tree.h (lshift_double, rshift_double):
34021 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
34022 * fold-const.c (fold_convert_const_int_from_real,
34023 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
34024 (lshift_double): Change type of arith argument to bool.
34025 (rshift_double): Change type of arith argument to bool. Correct
34027 * expmed.c (mask_rtx, lshift_value): (Ditto.).
34029 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
34032 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
34033 at the start and end of the then/else blocks, and omit them from the
34035 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
34036 argument; all callers changed. Pass zero to old_insns_match_p instead.
34037 (flow_find_head_matching_sequence): New function.
34038 (old_insns_match_p): Check REG_EH_REGION notes for calls.
34039 * basic-block.h (flow_find_cross_jump,
34040 flow_find_head_matching_sequence): Declare functions.
34042 2010-04-14 Jason Merrill <jason@redhat.com>
34045 * c-common.c (attribute_takes_identifier_p): New fn.
34046 * c-common.h: Declare it.
34048 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34050 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
34051 splitter condition.
34052 (*udivmod<mode>4): Ditto.
34054 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34056 * config/i386/i386.md (maxmin_int): Rename code attribute from
34057 maxminiprefix and update all users.
34058 (maxmin_float): Ditto from maxminfprefix.
34059 (logic): Ditto from logicprefix.
34060 (absneg_mnemonic): Ditto from absnegprefix.
34061 * config/i386/mmx.md: Update all users of maxminiprefix,
34062 maxminfprefix and logicprefix for rename.
34063 * config/i386/sse.md: Ditto.
34064 * config/i386/sync.md (sync_<code><mode>): Update for
34065 logicprefix rename.
34067 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
34070 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
34071 warnings converted to errors.
34073 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34075 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
34076 used insn_type variable.
34077 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
34078 to avoid set-but-not-used warning.
34080 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34082 * df-core.c (df_ref_debug): Change format string placeholder
34084 * dwarf2asm.c (dw2_asm_output_data_raw,
34085 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
34086 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
34087 * dwarf2out.c (output_cfi, output_cfi_directive,
34088 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
34089 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
34091 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
34092 * print-rtl.c (print_rtx): Ditto.
34094 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34096 PR middle-end/42694
34097 * builtins.c (expand_builtin_pow_root): New function to expand pow
34098 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
34099 series of sqrt and cbrt calls under -ffast-math.
34100 (expand_builtin_pow): Call it.
34102 2010-04-14 Michael Matz <matz@suse.de>
34104 PR tree-optimization/42963
34105 * tree-cfg.c (touched_switch_bbs): New static variable.
34106 (group_case_labels_stmt): New function broken out from ...
34107 (group_case_labels): ... here, use the above.
34108 (start_recording_case_labels): Allocate touched_switch_bbs.
34109 (end_recording_case_labels): Deallocate it, call
34110 group_case_labels_stmt.
34111 (gimple_redirect_edge_and_branch): Remember index of affected BB.
34113 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34115 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
34116 from insn template.
34118 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34120 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
34122 2010-04-13 Jan Hubicka <jh@suse.cz>
34124 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
34125 of optimized out static functions.
34126 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
34127 cost computation. Also sanity check for overflows.
34128 (update_caller_keys): Update cgraph_edge_badness call; properly
34129 update fibheap and sanity check that it is up to date.
34130 (add_new_edges_to_heap): Update cgraph_edge_badness.
34131 (cgraph_decide_inlining_of_small_function): Likewise;
34132 add sanity checking that badness in heap is up to date;
34133 improve dumping of reason; Update badness of calls to the
34134 offline copy of function currently inlined; dump badness
34135 of functions not inlined because of unit growth limits.
34137 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
34139 PR middle-end/32628
34140 * c-common.c (pointer_int_sum): Disregard overflow that occured only
34141 because of sign-extension change when converting to sizetype here...
34142 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
34144 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
34145 the folding to constants. Remove redundant final conversion.
34146 (fold_binary) <associate>: Do not associate if the re-association of
34147 constants alone overflows.
34148 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
34149 to the end of the list.
34150 (multiple_of_p) <COND_EXPR>: New case.
34152 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
34154 * opt-functions.awk (opt_sanitized_name): New.
34156 * optc-gen.awk: Use it
34157 * opth-gen.awk: Use it.
34159 2010-04-13 Martin Jambor <mjambor@suse.cz>
34161 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
34162 (sra_modify_assign): Delete stmts loading dead data even if racc has no
34163 children. Call replace_uses_with_default_def_ssa_name to handle
34166 2010-04-13 Michael Matz <matz@suse.de>
34168 PR middle-end/43730
34169 * builtins.c (expand_builtin_interclass_mathfn): Also create
34170 a register if the predicate doesn't match.
34172 2010-04-13 Diego Novillo <dnovillo@google.com>
34174 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
34175 * c-pch.c: Include timevar.h.
34176 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
34177 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
34178 * ggc-common.c: Include timevar.h.
34179 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
34180 * timevar.def (TV_PCH_SAVE): Define.
34181 (TV_PCH_CPP_SAVE): Define.
34182 (TV_PCH_PTR_REALLOC): Define.
34183 (TV_PCH_PTR_SORT): Define.
34184 (TV_PCH_RESTORE): Define.
34185 (TV_PCH_CPP_RESTORE): Define.
34187 2010-04-13 Michael Matz <matz@suse.de>
34189 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
34191 (can_reassociate_p): New function.
34192 (break_up_subtract_bb, reassociate_bb): Use it.
34194 2010-04-13 Richard Guenther <rguenther@suse.de>
34197 * builtins.c (c_readstr): Fix assert.
34199 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
34201 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
34202 when generating cltd insn.
34204 (*ashl<mode>3_1): Remove special handling for register operand 2.
34205 (*ashlsi3_1_zext): Ditto.
34206 (*ashlhi3_1): Ditto.
34207 (*ashlhi3_1_lea): Ditto.
34208 (*ashlqi3_1): Ditto.
34209 (*ashlqi3_1_lea): Ditto.
34210 (*<shiftrt_insn><mode>3_1): Ditto.
34211 (*<shiftrt_insn>si3_1_zext): Ditto.
34212 (*<shiftrt_insn>qi3_1_slp): Ditto.
34213 (*<rotate_insn><mode>3_1): Ditto.
34214 (*<rotate_insn>si3_1_zext): Ditto.
34215 (*<rotate_insn>qi3_1_slp): Ditto.
34217 2010-04-13 Richard Guenther <rguenther@suse.de>
34219 * tree-ssa-structalias.c (callused_id): Remove.
34220 (call_stmt_vars): New.
34221 (get_call_vi): Likewise.
34222 (lookup_call_use_vi): Likewise.
34223 (lookup_call_clobber_vi): Likewise.
34224 (get_call_use_vi): Likewise.
34225 (get_call_clobber_vi): Likewise.
34226 (make_transitive_closure_constraints): Likewise.
34227 (handle_const_call): Adjust to do per-call call-used handling.
34228 (handle_pure_call): Likewise.
34229 (find_what_var_points_to): Remove general callused handling.
34230 (init_base_vars): Likewise.
34231 (init_alias_vars): Initialize call_stmt_vars.
34232 (compute_points_to_sets): Process call-used and call-clobbered
34233 vars for call statements.
34234 (delete_points_to_sets): Free call_stmt_vars.
34236 2010-04-13 Richard Guenther <rguenther@suse.de>
34238 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
34239 Only add RW dependence for dependence distance zero.
34240 Adjust maximal vectorization factor according to dependences.
34241 Move alignment handling ...
34242 (vect_find_same_alignment_drs): ... here. New function.
34243 (vect_analyze_data_ref_dependences): Adjust.
34244 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
34245 (vect_analyze_data_refs): Adjust minimal vectorization factor
34246 according to data references.
34247 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
34248 dependences before determining the vectorization factor.
34249 Analyze alignment after determining the vectorization factor.
34250 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
34251 dependences before alignment.
34252 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
34254 (vect_analyze_data_refs): Likewise.
34255 (MAX_VECTORIZATION_FACTOR): New define.
34257 2010-04-13 Duncan Sands <baldrick@free.fr>
34259 * except.h (lang_eh_type_covers): Remove.
34260 * except.c (lang_eh_type_covers): Likewise.
34262 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34263 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34265 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
34266 * config/s390/s390.c: Replace UNTIS_PER_WORD with
34267 UNITS_PER_LONG where it is ABI relevant.
34268 (s390_return_addr_rtx): Likewise.
34269 (s390_back_chain_rtx): Likewise.
34270 (s390_frame_area): Likewise.
34271 (s390_frame_info): Likewise.
34272 (s390_initial_elimination_offset): Likewise.
34273 (save_gprs): Likewise.
34274 (s390_emit_prologue): Likewise.
34275 (s390_emit_epilogue): Likewise.
34276 (s390_function_arg_advance): Likewise.
34277 (s390_function_arg): Likewise.
34278 (s390_va_start): Likewise.
34279 (s390_gimplify_va_arg): Likewise.
34280 (s390_function_profiler): Likewise.
34281 (s390_optimize_prologue): Likewise.
34282 (s390_rtx_costs): Likewise.
34283 (s390_secondary_reload): Likewise.
34284 (s390_promote_function_mode): Likewise.
34285 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
34286 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
34287 registers available.
34288 (s390_unwind_word_mode): New function.
34289 (s390_function_value): Split 64 bit values into register pair if
34290 used as return value.
34291 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
34292 function call parameters. Handle parallels.
34293 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
34294 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
34295 (DWARF_CIE_DATA_ALIGNMENT): New macro.
34296 (s390_expand_setmem): Remove unused variable src_addr.
34297 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
34298 deal with 64 bit registers.
34299 * config/s390/s390.h: Define __zarch__ predefined macro.
34300 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
34301 (UNITS_PER_LONG): New macro.
34302 * libjava/include/s390-signal.h: Define extended ucontext
34303 structure containing the upper halfs of the 64 bit registers.
34305 2010-04-13 Simon Baldwin <simonb@google.com>
34307 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
34309 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
34311 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
34312 rvalue on the RHS if the LHS is of a non-renamable type.
34313 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
34315 2010-04-13 Matthias Klose <doko@ubuntu.com>
34317 * gcc.c (cc1_options): Handle -iplugindir before processing
34318 the cc1 spec. Only add -iplugindir once.
34319 (cpp_unique_options): Add -iplugindir option if -fplugin* options
34321 * common.opt (iplugindir): Remove `Separate' property, initialize.
34322 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
34324 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
34325 (distclean): Remove plugin dir.
34326 * doc/invoke.texi: Document -iplugindir.
34328 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
34330 * doc/plugins.texi (Loading Plugins): Document short
34331 -fplugin=foo option.
34332 (Plugin API): Mention default_plugin_dir_name function.
34334 * gcc.c (find_file_spec_function): Add new declaration.
34335 (static_spec_func): Use it for "find-file".
34336 (find_file_spec_function): Add new function.
34337 (cc1_options): Add -iplugindir option if -fplugin* options found.
34339 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
34341 * plugin.c (add_new_plugin): Updated comment, and handle short
34343 (default_plugin_dir_name): Added new function.
34345 * common.opt (iplugindir): New option to set the plugin directory.
34347 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
34349 * config/i386/i386.md (any_rotate): New code iterator.
34350 (rotate_insn): New code attribute.
34352 (SWIM124): New mode iterator.
34353 (<rotate_insn>ti3): New expander.
34354 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
34355 any_rotate code iterator.
34356 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
34357 using any_rotate code iterator and SWIM124 mode iterator.
34358 (ix86_rotlti3): New insn_and_split pattern.
34359 (ix86_rotrti3): Ditto.
34360 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
34361 ix86_rotl{di,ti}3 patterns.
34362 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
34363 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
34364 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
34365 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
34366 code iterator and SWI mode iterator.
34367 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
34368 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
34370 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
34371 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
34372 (bswap rotatert splitter): Add splitter.
34373 (bswap splitter): Macroize splitter using any_rotate code iterator.
34374 Add insn predicate to split only for TARGET_USE_XCHGB or when
34375 optimizing function for size.
34377 2010-04-12 Steve Ellcey <sje@cup.hp.com>
34379 * config/pa/pa.c (emit_move_sequence): Remove use of
34380 deleted variable flag_argument_noalias.
34382 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34384 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
34386 Add to unsupported targets list.
34387 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
34388 sparc*-sun-solaris2.[567]* from target lists.
34389 * configure: Regenerate.
34390 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
34392 Remove Solaris 7 patch references.
34393 (Specific, sparc-sun-solaris2.7): Removed.
34394 (sparc-sun-solaris2*): Update Solaris 7 example.
34395 (sparc64-*-solaris2*): Likewise.
34397 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34399 * config.build (alpha*-dec-osf4*): Remove.
34400 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
34401 of obsolete configurations.
34402 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
34404 * config/alpha/t-osf4: Renamed to ...
34405 * config/alpha/t-osf5: ... this.
34406 * config/alpha/osf.h: Renamed to ...
34407 * config/alpha/osf5.h: ... this.
34408 Merged old osf5.h contents.
34410 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
34411 (EXTRA_SPECS): Removed.
34412 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
34413 reflect removal of Tru64 UNIX V4.0/V5.0 support.
34416 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34418 * doc/contrib.texi (Contributors, Rainer Orth): Update.
34420 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
34423 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
34424 __thiscall convention.
34426 2010-04-12 Steve Ellcey <sje@cup.hp.com>
34428 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
34430 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
34432 2010-04-12 Steve Ellcey <sje@cup.hp.com>
34434 * function.c (assign_parms_initialize_all): Add unused attribute
34437 2010-04-12 Richard Guenther <rguenther@suse.de>
34439 * gsstruct.def (GSS_CALL): New.
34440 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
34441 * gimple.h: Include tree-ssa-alias.h.
34442 (struct gimple_statement_call): New.
34443 (union gimple_statement_struct_d): Add gimple_call member.
34444 (gimple_call_reset_alias_info): Declare.
34445 (gimple_call_use_set): New function.
34446 (gimple_call_clobber_set): Likewise.
34447 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
34448 * gimple.c (gimple_call_reset_alias_info): New function.
34449 (gimple_build_call_1): Call it.
34450 * lto-streamer-in.c (input_gimple_stmt): Likewise.
34451 * tree-inline.c (remap_gimple_stmt): Likewise.
34452 (expand_call_inline): Remove callused handling.
34453 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
34454 * tree-dfa.c (dump_variable): Likewise.
34455 * tree-parloops.c (parallelize_loops): Likewise.
34456 * tree-ssa.c (init_tree_ssa): Likewise.
34457 (delete_tree_ssa): Likewise.
34458 * tree-flow-inline.h (is_call_used): Remove.
34459 * tree-flow.h (struct gimple_df): Remove callused member.
34460 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
34461 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
34462 (ref_maybe_used_by_call_p_1): Simplify.
34463 (call_may_clobber_ref_p_1): Likewise.
34464 * tree-ssa-structalias.c (compute_points_to_sets): Set
34465 the call stmt used and clobbered sets.
34466 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
34467 (find_tail_calls): Verify the tail call.
34469 2010-04-12 Richard Guenther <rguenther@suse.de>
34471 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
34472 single-iteration always-inline inlining.
34473 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
34474 (cgraph_decide_inlining): Do not handle always-inline specially.
34475 (try_inline): Remove always-inline cycle detection special case.
34476 Do not recurse on always-inlines.
34477 (cgraph_early_inlining): Do not iterate if not optimizing.
34478 (cgraph_gate_early_inlining): remove.
34479 (pass_early_inline): Run unconditionally.
34480 (gate_cgraph_decide_inlining): New function.
34481 (pass_ipa_inline): Use it. Do not run the IPA inliner if
34482 not inlining or optimizing.
34483 (cgraph_decide_inlining_of_small_functions): Also consider
34484 always-inline functions.
34485 (cgraph_default_inline_p): Return true for nodes which should
34486 disregard inline limits.
34487 (estimate_function_body_sizes): Assume zero size and time for
34488 nodes which are marked as disregarding inline limits.
34489 (cgraph_decide_recursive_inlining): Do not perform recursive
34490 inlining on always-inline nodes.
34492 2010-04-12 Jakub Jelinek <jakub@redhat.com>
34495 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
34496 for exprs satisfying handled_component_p.
34498 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
34500 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
34501 non-constant aggregate elements.
34503 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
34504 is a real initialization.
34506 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
34509 * c-decl.c (start_function): Move forward check for nested function.
34511 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
34513 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
34514 * config/sh/sh.c: Include reload.h.
34515 (sh_legitimize_reload_address): New.
34516 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
34517 sh_legitimize_reload_address.
34519 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
34521 * config/sh/sh.md (*movqi_pop): New insn pattern.
34522 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
34524 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
34526 * config/i386/i386.md (any_shiftrt): New code iterator.
34527 (shiftrt_insn): New code attribute.
34529 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
34530 using any_shiftrt code iterator.
34531 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
34532 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
34533 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
34534 pattern from corresponding peephole2 patterns.
34535 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
34536 using any_shiftrt code iterator.
34537 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
34538 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
34539 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
34540 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
34541 *{ashr,lshr}<mode>3_cmp_zext.
34542 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
34544 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
34546 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
34548 (*lshr<mode>3_cconly): Ditto.
34550 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
34552 * config/i386/i386.md (lshr<mode>3): Macroize expander from
34553 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
34554 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
34555 pattern from *lshr{di,ti}3_1 and corresponding splitters using
34557 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
34558 from corresponding peephole2 patterns.
34559 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
34560 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
34561 and *lshrdi3_1_rex64 using SWI mode iterator.
34562 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
34563 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
34564 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
34565 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
34566 and *lshrdi3_cmp_rex64 using SWI mode iterator.
34567 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
34568 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
34569 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
34570 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
34573 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
34575 * config/i386/i386.md (ashr<mode>3): Macroize expander from
34576 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
34577 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
34578 pattern from *ashr{di,ti}3_1 and corresponding splitters using
34580 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
34581 from corresponding peephole2 patterns.
34582 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
34583 (ashrsi3_cvt): Rename from ashrsi3_31.
34584 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
34585 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
34586 and x86_64_shift_adj_3 using SWI48 mode iterator.
34587 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
34588 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
34589 and *ashrdi3_1_rex64 using SWI mode iterator.
34590 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
34591 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
34592 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
34593 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
34594 and *ashrdi3_cmp_rex64 using SWI mode iterator.
34595 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
34596 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
34597 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
34598 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
34600 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
34601 * config/i386/i386.c (ix86_split_ashr): Update for renamed
34602 x86_shift<mode>_adj_3 expanders.
34604 2010-04-10 Wei Guozhi <carrot@google.com>
34607 * config/arm/arm.c (arm_pic_static_addr): New function.
34608 (legitimize_pic_address): Call arm_pic_static_addr when it detects
34610 (arm_output_addr_const_extra): Output expression for new pattern.
34611 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
34613 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
34615 * ira-costs.c (record_reg_classes): Ignore alternatives that are
34618 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
34619 * web.c: Include "insn-config.h" and "recog.h".
34620 (union_match_dups): New function.
34621 (web_main): Call it.
34622 (union_defs): Don't try to recognize match_dups.
34624 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
34625 if doing so would replace the entire pattern.
34627 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
34631 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
34632 and splitter pattern. Change splitter operand 1 predicate to
34635 2010-04-09 Martin Jambor <mjambor@suse.cz>
34637 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
34638 lattices are addresses of CONST_DECLs with the same initial value.
34639 (ipcp_print_all_lattices): Print values of CONST_DECLs.
34640 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
34642 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
34643 Bernd Schmidt <bernds@codesourcery.com>
34645 * loop-invariant.c (replace_uses): New static function.
34646 (move_invariant_reg): Use it to ensure we can replace the uses.
34648 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
34650 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
34652 (picochip_override_options): Enable section anchors only above -O1.
34653 (picochip_reorg): Fixed a couple of build warnings.
34655 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34657 * configure.ac (plugin -rdynamic test): Log result.
34658 * configure: Regenerate.
34659 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
34660 (RDYNAMIC_SPEC): Define.
34661 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
34663 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34665 * configure.ac: Determine Sun ld version numbers.
34666 (comdat_group): Restrict GNU ld version checks to gld.
34667 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
34668 (enable_comdat): Support --enable-comdat.
34669 * configure: Regenerate.
34670 * doc/install.texi (Configuration): Document --enable-comdat.
34672 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34674 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
34675 * config/sol2-gld.h: ... here.
34676 * config.gcc (sparc*-*-solaris2*): Reflect this.
34677 (i[34567]86-*-solaris2*): Use it.
34679 2010-04-09 Steve Ellcey <sje@cup.hp.com>
34681 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
34683 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
34685 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34688 * diagnostic.c (diagnostic_initialize): Initialize
34689 some_warnings_are_errors.
34690 (diagnostic_finish): New.
34691 (diagnostic_action_after_output): Call it before exiting.
34692 (diagnostic_report_diagnostic): Do not print message here. Set
34693 some_warnings_are_errors.
34694 * diagnostic.h (diagnostic_context): Delete
34695 issue_warnings_are_errors_message. Add some_warnings_are_errors.
34696 (diagnostic_finish): Declare.
34697 * toplev.c (toplev_main): Call it before exit.
34699 2010-04-09 Jason Merrill <jason@redhat.com>
34702 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
34703 for incomplete type.
34706 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
34707 based on a warning flag.
34709 2010-04-09 Richard Guenther <rguenther@suse.de>
34711 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
34713 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
34716 * varasm.c (default_assemble_visibility): Wrap vars that are
34717 set, but unused, by targets without GAS.
34718 * config/rs6000/rs6000.c (paired_emit_vector_compare):
34719 Remove set, but unused, vars.
34720 (rs6000_legitimize_tls_address): Likewise.
34721 (altivec_expand_dst_builtin): Likewise.
34722 * config/darwin.c (machopic_classify_symbol): Likewise.
34723 (machopic_indirection_name): Likewise.
34725 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
34727 * config/i386/i386.md (DWI): New mode iterator.
34728 (S): New mode attribute.
34729 (shift_operand): Ditto.
34730 (shift_immediate_operand): Ditto.
34731 (ashl_input_operand): Ditto.
34732 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
34733 using SDWIM mode iterator.
34734 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
34735 pattern from *ashl{di,ti}3_1 and corresponding splitters using
34737 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
34738 from corresponding peephole2 patterns.
34739 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
34740 and x86_64_shift_adj_1 using SWI48 mode iterator.
34741 (x86_shift<mode>_adj_2): Ditto.
34742 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
34743 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
34744 using SWI48 mode iterator.
34745 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
34746 *ashldi3_cmp_rex64 using SWI mode iterator.
34747 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
34748 *ashldi3_cconly_rex64 using SWI mode iterator.
34749 * config/i386/i386.c (ix86_split_ashl): Update for renamed
34750 x86_shift<mode>_adj_{1,2}.
34751 (ix86_split_ashr): Ditto.
34752 (ix86_split_lshr): Ditto.
34754 2010-04-09 Richard Guenther <rguenther@suse.de>
34756 * target.h (builtin_conversion): Pass in input and output types.
34757 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
34758 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
34759 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
34760 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
34762 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
34764 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
34766 2010-04-09 Richard Guenther <rguenther@suse.de>
34769 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
34771 2010-04-09 Richard Guenther <rguenther@suse.de>
34773 * tree-vectorizer.h (struct _stmt_vec_info): Document
34774 that vectype is the type of the LHS.
34775 (supportable_widening_operation, supportable_narrowing_operation):
34776 Get both input and output vector types as arguments.
34777 (vect_is_simple_use_1): Declare.
34778 (get_same_sized_vectype): Likewise.
34779 * tree-vect-loop.c (vect_determine_vectorization_factor):
34780 Set STMT_VINFO_VECTYPE to the vector type of the def.
34781 (vectorizable_reduction): Adjust.
34782 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
34783 Adjust. Specify the output vector type.
34784 (vect_pattern_recog_1): Adjust.
34785 * tree-vect-stmts.c (get_same_sized_vectype): New function.
34786 (vectorizable_call): Adjust.
34787 (vectorizable_conversion): Likewise.
34788 (vectorizable_operation): Likewise.
34789 (vectorizable_type_demotion): Likewise.
34790 (vectorizable_type_promotion): Likewise.
34791 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
34793 (vect_is_simple_use_1): New function.
34794 (supportable_widening_operation): Get both input and output
34796 (supportable_narrowing_operation): Likewise.
34797 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
34799 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
34801 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
34802 __thiscall and _thiscall as predefined macros.
34803 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
34804 thiscall attribute handling.
34805 (ix86_comp_type_attributes): Likewise.
34806 (ix86_function_regparm): Likewise.
34807 (ix86_return_pops_args): Likewise.
34808 (init_cumulative_args): Likewise.
34809 (find_drap_reg): Likewise.
34810 (ix86_static_chain): Likewise.
34811 (x86_this_parameter): Likewise.
34812 (x86_output_mi_thunk): Likewise.
34813 (ix86_attribute_table): Add description for thiscall attribute.
34814 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
34815 * doc/extend.texi: Add documentation for thiscall.
34817 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34820 * c.opt (Wint-to-pointer-cast): Available in C++.
34821 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
34823 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
34825 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
34826 * calls.c (expand_call): Pass the function type to aggregate_value_p.
34827 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
34828 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
34829 function type instead. Reorder and simplify checks.
34831 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
34833 2010-04-08 Jing Yu <jingyu@google.com>
34834 Zdenek Dvorak <ook@ucw.cz>
34836 PR tree-optimization/42720
34837 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
34838 loop unswitch conditions here from ...
34839 (tree_unswitch_single_loop): ... here.
34841 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34843 * tree-if-conv.c: Fix comments and simplify logic.
34845 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34847 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
34848 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
34849 (main_tree_if_conversion): Update call to tree_if_conversion.
34851 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
34854 * doc/invoke.texi (-b,-V): Delete.
34855 * doc/tm.texi: Do not mention -b.
34856 * gcc.c (display_help): Delete -b and -V.
34857 (process_command): Delete -b and -V.
34858 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
34860 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
34861 Wolfgang Gellerich <gellerich@de.ibm.com>
34863 Implement target hook for loop unrolling
34864 * target.h (loop_unroll_adjust): Add a new target hook function.
34865 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
34866 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
34867 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
34868 (s390_loop_unroll_adjust): Implement the new target hook for s390.
34869 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
34871 (decide_unroll_stupid): Likewise.
34873 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34876 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
34878 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34880 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
34881 (Specific, *-*-solaris2*): Likewise.
34882 Don't prefer Sun as over GNU as.
34884 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
34886 * config/s390/s390.c (override_options): Adjust the z10 defaults
34887 for max-unroll-times, max-completely-peeled-insns
34888 and max-completely-peel-times.
34890 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34892 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
34893 instructions for z10.
34894 (s390_expand_setmem): Likewise.
34895 (s390_expand_cmpmem): Likewise.
34897 2010-04-08 Richard Guenther <rguenther@suse.de>
34899 PR tree-optimization/43679
34900 * tree-ssa-pre.c (eliminate): Only propagate copies.
34902 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34905 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
34906 set but not used variable warning.
34908 2010-04-08 Wei Guozhi <carrot@google.com>
34911 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
34912 (arm_size_rtx_costs): Call the new function when optimized for size.
34914 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34917 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
34918 op0 is not a MEM, just return NULL instead of assertion
34920 (discover_nonconstant_array_refs): Don't walk debug stmts.
34922 2010-04-08 Doug Kwan <dougkwan@google.com>
34924 * configure.ac: Recognize gold and do not use its version number
34925 to test ld features.
34926 * configure: Regenerate.
34928 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
34930 PR middle-end/40815
34931 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
34932 (negate_value): Move code to push elements to broken_up_substracts ...
34933 (eliminate_plus_minus_pair): ... here. Push operands that have no
34934 negative pair to plus_negates.
34935 (repropagate_negates, init_reassoc, fini_reassoc): Update.
34937 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34939 * doc/install.texi (Configuration): Move description of
34940 --enable-lto, --with-libelf*, --enable-gold from Java section to
34943 * doc/generic.texi (Working with declarations)
34944 (Function Properties, C and C++ Trees): Fix typos.
34945 * doc/sourcebuild.texi (Top Level): Likewise.
34947 2010-04-07 Jakub Jelinek <jakub@redhat.com>
34950 * tree.h (DECL_READ_P): Define.
34951 (struct tree_decl_common): Add decl_read_flag.
34952 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
34953 a set but not used warning.
34954 (merge_decls): Merge DECL_READ_P flag.
34955 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
34956 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
34957 * c-common.c (handle_used_attribute, handle_unused_attribute):
34959 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
34961 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
34963 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
34964 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
34965 c_parser_binary_expression, c_parser_cast_expression,
34966 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
34967 Call default_function_array_read_conversion instead of
34968 default_function_array_conversion where needed.
34969 (c_parser_unary_expression, c_parser_conditional_expression,
34970 c_parser_postfix_expression_after_primary, c_parser_initelt):
34971 Likewise. Call mark_exp_read where needed.
34972 (c_parser_statement_after_labels, c_parser_asm_operands,
34973 c_parser_typeof_specifier, c_parser_sizeof_expression,
34974 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
34976 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
34978 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
34979 (warn_unused_but_set_parameter): Default to warn_unused
34981 * doc/invoke.texi: Document -Wunused-but-set-variable and
34982 -Wunused-but-set-parameter.
34984 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
34985 used count variable.
34986 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
34987 when operandN variables aren't used in the body of the expander
34989 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
34990 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
34991 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
34992 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
34993 FOR_EACH_IMM_USE_ON_STMT): Likewise.
34994 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
34995 * tree.c (PROCESS_ARG): Likewise.
34997 2010-04-07 Simon Baldwin <simonb@google.com>
34999 * diagnostic.h (diagnostic_override_option_index): New macro to
35000 set a diagnostic's option_index.
35001 * c-tree.h (c_cpp_error): Add warning reason argument.
35002 * opts.c (_warning_as_error_callback): New.
35003 (register_warning_as_error_callback): Store callback for
35004 warnings enabled via enable_warning_as_error.
35005 (enable_warning_as_error): Call callback, minor code tidy.
35006 * opts.h (register_warning_as_error_callback): Declare.
35007 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
35008 response to -Werror=.
35009 (c_common_init_options): Register warning_as_error_callback in opts.c.
35010 * common.opt: Add -Wno-cpp option.
35011 * c-common.c (struct reason_option_codes_t): Map cpp warning
35012 reason codes to gcc option indexes.
35013 * (c_option_controlling_cpp_error): New function, lookup the gcc
35014 option index for a cpp warning reason code.
35015 * (c_cpp_error): Add warning reason argument, call
35016 c_option_controlling_cpp_error for diagnostic_override_option_index.
35017 * doc/invoke.texi: Document -Wno-cpp.
35019 2010-04-07 Richard Guenther <rguenther@suse.de>
35021 * ipa-reference.c (mark_load): Use get_base_address.
35022 (mark_store): Likewise.
35024 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
35025 inserting GIMPLE_NOPs into the IL.
35026 * tree-ssa-structalias.c (get_constraint_for_component_ref):
35027 Explicitly strip handled components and indirect references.
35029 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
35030 folding address expressions.
35031 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
35032 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
35033 operand_equal_p to compare decls.
35034 (ptr_deref_may_alias_decl_p): Likewise.
35035 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
35036 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
35037 Handle reversed comparison ops.
35038 * tree-sra.c (asm_visit_addr): Use get_base_address.
35039 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
35040 * ipa-reference.c (mark_address): Use get_base_address.
35042 2010-04-07 Richard Guenther <rguenther@suse.de>
35044 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
35045 Propagate constants everywhere.
35047 2010-04-07 Jakub Jelinek <jakub@redhat.com>
35050 * tree.c (MAX_INT_CACHED_PREC): Define.
35051 (nonstandard_integer_type_cache): New array.
35052 (build_nonstandard_integer_type): Cache results for precision
35053 <= MAX_INT_CACHED_PREC.
35055 2010-04-07 Richard Guenther <rguenther@suse.de>
35057 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
35058 -fargument-noalias-global, -fargument-noalias-anything): Remove.
35059 * common.opt: Likewise.
35060 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
35061 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
35062 (nonoverlapping_memrefs_p): Likewise.
35063 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
35064 * opts.c (common_handle_option): Handle OPT_fargument_alias,
35065 OPT_fargument_noalias, OPT_fargument_noalias_anything and
35066 OPT_fargument_noalias_global for backward compatibility.
35068 2010-04-07 Richard Guenther <rguenther@suse.de>
35070 PR tree-optimization/43270
35071 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
35072 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
35073 * tree-ssa-pre.c (phi_translate_1): Adjust.
35074 (fully_constant_expression): Split out vn_reference handling to ...
35075 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
35076 Fold reads from constant strings.
35077 (vn_reference_lookup): Handle fully constant references.
35078 (vn_reference_lookup_pieces): Likewise.
35079 * Makefile.in (expmed.o-warn): Add -Wno-error.
35081 2010-04-07 Martin Jambor <mjambor@suse.cz>
35083 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
35085 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
35088 * gcc.c: Add -static-libstdc++ to list of recognized options.
35090 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35092 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
35094 2010-04-07 Richard Guenther <rguenther@suse.de>
35096 PR middle-end/42617
35097 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
35098 bases build simple mem attributes to retain points-to information.
35100 2010-04-07 Richard Guenther <rguenther@suse.de>
35102 PR middle-end/42617
35103 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
35104 preserve points-to related information.
35106 2010-04-07 Richard Guenther <rguenther@suse.de>
35108 PR middle-end/42617
35109 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
35110 discard plain indirect references.
35111 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
35112 * tree.c (tree_nop_conversion): Likewise.
35114 2010-04-07 Dodji Seketeli <dodji@redhat.com>
35117 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
35119 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
35121 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
35122 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
35124 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
35126 * tree-if-conv.c: Fix indentation and comments.
35128 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
35130 * tree-if-conv.c: Sort static functions in topological order.
35132 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
35134 * tree-if-conv.c: Fix indentation and comments.
35136 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35138 PR middle-end/43519
35139 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
35140 lang_hooks.types.type_for_size instead of
35141 build_nonstandard_integer_type.
35142 When converting an unsigned type to signed, double its precision.
35143 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
35144 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
35145 (graphite_create_new_loop_guard): When ub + 1 wraps around,
35148 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35150 PR middle-end/43519
35151 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
35152 POINTER_PLUS_EXPR for pointer types.
35154 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35156 PR middle-end/43519
35157 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
35158 * graphite-clast-to-gimple.c: Include langhooks.h.
35159 (max_signed_precision_type): New.
35160 (max_precision_type): Takes two types as arguments.
35161 (precision_for_value): New.
35162 (precision_for_interval): New.
35163 (gcc_type_for_interval): New.
35164 (gcc_type_for_value): New.
35165 (gcc_type_for_clast_term): New.
35166 (gcc_type_for_clast_red): New.
35167 (gcc_type_for_clast_bin): New.
35168 (gcc_type_for_clast_expr): Split up into several functions.
35169 (gcc_type_for_clast_eq): Rewritten.
35170 (compute_bounds_for_level): New.
35171 (compute_type_for_level_1): New.
35172 (compute_type_for_level): New.
35173 (gcc_type_for_cloog_iv): Removed.
35174 (gcc_type_for_iv_of_clast_loop): Rewritten.
35175 (graphite_create_new_loop): Compute the lower and upper bound types
35176 with gcc_type_for_clast_expr.
35177 (graphite_create_new_loop_guard): Same.
35178 (find_cloog_iv_in_expr): Removed.
35179 (compute_cloog_iv_types_1): Removed.
35180 (compute_cloog_iv_types): Removed.
35181 (gloog): Do not call compute_cloog_iv_types.
35182 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
35183 GBB_CLOOG_IV_TYPES.
35184 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
35185 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
35186 (GBB_CLOOG_IV_TYPES): Removed.
35188 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35190 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
35191 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
35192 (detect_commutative_reduction): Same.
35194 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35196 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
35197 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
35199 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
35200 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
35201 (rewrite_commutative_reductions_out_of_ssa): Same.
35202 * passes.c (execute_function_todo): Call verify_ssa for every pass
35203 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
35204 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
35205 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
35206 with an extra argument.
35207 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
35208 verify_ssa only when the extra argument is true.
35209 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
35210 with an extra argument.
35211 (tree_transform_and_unroll_loop): Same.
35213 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35215 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
35216 for all the passes of the LNO having LOOP_CLOSED_SSA.
35217 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
35218 * tree-loop-distribution.c (pass_loop_distribution): Same.
35219 * tree-pass.h (TODO_verify_loops): Removed.
35220 * tree-ssa-loop.c (pass_tree_loop_init): Same.
35222 (pass_tree_unswitch): Same.
35223 (pass_predcom): Same.
35224 (pass_vectorize): Same.
35225 (pass_linear_transform): Same.
35226 (pass_graphite_transforms): Same.
35227 (pass_iv_canon): Same.
35228 (pass_complete_unroll): Same.
35229 (pass_complete_unrolli): Same.
35230 (pass_parallelize_loops): Same.
35231 (pass_loop_prefetch): Same.
35232 (pass_iv_optimize): Same.
35234 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
35236 PR middle-end/32824
35237 * passes.c (init_optimization_passes): Move pass_lim before
35238 pass_copy_prop and pass_dce_loop.
35240 2010-04-06 Jakub Jelinek <jakub@redhat.com>
35243 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
35244 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
35245 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
35246 MULTI_* defines for 4 argument vpermil2p* builtins.
35248 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
35250 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
35251 * config/i386/i386.c (x86_maybe_negate_const_int): New.
35252 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
35253 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
35254 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
35255 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
35256 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
35257 Use x86_maybe_negate_const_int to output insn mnemonic.
35258 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
35259 check from instruction predicate. Update comments.
35260 * config/i386/sync.md (sync_add<mode>): Use
35261 x86_maybe_negate_const_int to output insn mnemonic.
35263 2010-04-06 Jan Hubicka <jh@suse.cz>
35265 PR tree-optimization/42906
35266 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
35267 IGNORE_SELF argument. Set visited_control_parents for fully
35269 (find_obviously_necessary_stmts): Update call of
35270 mark_control_dependent_edges_necessary.
35271 (propagate_necessity): Likewise. Handle PHI edges more curefully.
35273 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
35275 * config/i386/i386.md: Remove comment about 'e' and 'E'
35278 2010-04-06 Richard Guenther <rguenther@suse.de>
35280 PR tree-optimization/43627
35281 * tree-vrp.c (extract_range_from_unary_expr): Widenings
35282 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
35285 2010-04-06 Jakub Jelinek <jakub@redhat.com>
35287 * BASE-VER: Change to 4.6.0.
35290 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
35293 2010-04-06 Richard Guenther <rguenther@suse.de>
35295 PR middle-end/43661
35296 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
35298 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35300 * doc/invoke.texi (Optimize Options): Document that LTO
35301 won't remove object access purely due to incompatible
35304 2010-04-04 Matthias Klose <doko@ubuntu.com>
35306 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
35307 Initialize variable.
35309 2010-04-03 Richard Guenther <rguenther@suse.de>
35311 PR middle-end/42509
35312 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
35313 require a non-NULL MEM_OFFSET.
35315 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
35317 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
35318 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
35319 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
35320 config/alpha/predicates.md, config/arm/arm.md,
35321 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
35322 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
35323 config/darwin9.h, config/darwin.c, config/darwin.h,
35324 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
35325 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
35326 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
35327 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
35328 config/mips/mips.md, config/mn10300/mn10300.c,
35329 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
35330 config/rs6000/aix.h, config/rs6000/dfp.md,
35331 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
35332 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
35333 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
35334 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
35335 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
35336 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
35337 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
35338 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
35339 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
35340 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
35341 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
35342 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
35343 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
35344 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
35345 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
35346 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
35347 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
35348 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
35349 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
35350 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
35351 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
35352 opt-functions.awk, opth-gen.awk, params.def, passes.c,
35353 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
35354 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
35355 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
35356 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
35357 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
35358 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
35359 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
35360 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
35361 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
35362 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
35363 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
35364 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
35365 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
35366 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
35368 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35371 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
35372 * aclocal.m4: Regenerate.
35374 2010-04-02 Richard Guenther <rguenther@suse.de>
35376 PR tree-optimization/43629
35377 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
35378 if we have seen a constant value.
35380 2010-04-02 Joseph Myers <joseph@codesourcery.com>
35382 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
35384 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
35387 * arm.c (legitimize_tls_address): Adjust call to
35388 gen_tls_load_dot_plus_four.
35389 (arm_note_pic_base): New function.
35390 (arm_cannot_copy_insn_p): Use it.
35391 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
35394 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35399 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35401 * Makefile.in ($(out_object_file)): Depend on
35402 gt-$(basename $(notdir $(out_file))).h.
35404 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
35406 * config.gcc (lm32-*-rtems*): Add t-lm32.
35408 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
35410 * config.gcc: Add lm32-*-rtems*.
35411 * config/lm32/rtems.h: New file.
35413 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
35416 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
35418 2010-04-01 Jakub Jelinek <jakub@redhat.com>
35420 * dwarf2out.c (output_compilation_unit_header): For
35421 -gdwarf-4 use version 4 instead of version 3.
35422 (output_line_info): For version 4 and above emit additional
35423 maximum ops per insn header field.
35424 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
35426 * dwarf2out.c (is_c_family, is_java): Remove.
35427 (lower_bound_default): New function.
35428 (add_bound_info, gen_descr_array_type_die): Use it.
35430 2010-04-01 Dodji Seketeli <dodji@redhat.com>
35433 * dwarf2out.c (gen_variable_die): Allow debug info for variable
35434 re-declaration when it happens in a function.
35436 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
35438 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
35439 (cgraph_remove_function_insertion_hook): Same.
35440 (cgraph_call_function_insertion_hooks): Same.
35442 2010-04-01 Richard Guenther <rguenther@suse.de>
35444 PR middle-end/43614
35445 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
35446 and TREE_THIS_VOLATILE.
35447 (copy_ref_info): Likewise.
35448 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
35449 * tree.c (build6_stat): Ignore side-effects of all but arg5
35450 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
35453 2010-04-01 Richard Guenther <rguenther@suse.de>
35455 PR tree-optimization/43607
35456 * ipa-type-escape.c (check_call): Do not access non-existing
35459 2010-04-01 Richard Guenther <rguenther@suse.de>
35461 PR middle-end/43602
35463 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
35464 Jack Howarth <howarth@bromo.med.uc.edu>
35466 * tree-profile.c (tree_init_ic_make_global_vars): Make static
35469 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35471 * doc/install.texi (Prerequisites): Document libelf usability on
35472 IRIX 5/6 and Solaris 2.
35473 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
35474 Update GNU as, GNU ld requirements.
35475 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
35476 Document Sun Studio compiler download.
35477 Update and simplify as, ld recommendations.
35478 (Specific, *-*-solaris2.7): Note obsoletion, removal.
35480 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35482 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
35483 with_tune_32 to pentium4.
35485 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
35487 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
35489 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35491 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
35492 obsoletion, removal.
35494 Document GNU as requirement.
35495 Update configure requirements.
35496 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
35497 Recomment IRIX 6.5.18+.
35498 Document IDF/IDL requirement.
35499 Document GNU as requirement.
35500 Document GNU ld bootstrap failure.
35501 Remove freeware.sgi.com reference.
35503 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35505 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
35506 UNIX V4.0, V5.0 obsoletion, removal.
35507 Remove --with-gc=simple reference.
35508 Update VM requirements during bootstrap.
35509 Remove -oldas bootstrap description.
35510 Update binutils reference.
35511 Remove comparison failure note.
35513 2010-03-31 Richard Guenther <rguenther@suse.de>
35514 Zdenek Dvorak <ook@ucw.cz>
35515 Sebastian Pop <sebastian.pop@amd.com>
35517 PR middle-end/43464
35518 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
35519 with multiple arguments.
35520 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
35522 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35524 * graphite-dependences.c (print_pddr): Call print_pdr with an
35526 * graphite-poly.c (debug_pdr): Add an extra argument for the
35529 (print_pbb_domain): Same.
35531 (print_scop_context): Same.
35532 (print_scop): Same.
35533 (print_cloog): Same.
35534 (debug_pbb_domain): Same.
35536 (print_pdrs): Same.
35537 (debug_pdrs): Same.
35538 (debug_scop_context): Same.
35539 (debug_scop): Same.
35540 (debug_cloog): Same.
35541 (print_scop_params): Same.
35542 (debug_scop_params): Same.
35543 (print_iteration_domain): Same.
35544 (print_iteration_domains): Same.
35545 (debug_iteration_domain): Same.
35546 (debug_iteration_domains): Same.
35547 (print_scattering_function): Same.
35548 (print_scattering_functions): Same.
35549 (debug_scattering_function): Same.
35550 (debug_scattering_functions): Same.
35551 * graphite-poly.h (debug_pdr): Update declaration.
35553 (print_pbb_domain): Same.
35555 (print_scop_context): Same.
35556 (print_scop): Same.
35557 (print_cloog): Same.
35558 (debug_pbb_domain): Same.
35560 (print_pdrs): Same.
35561 (debug_pdrs): Same.
35562 (debug_scop_context): Same.
35563 (debug_scop): Same.
35564 (debug_cloog): Same.
35565 (print_scop_params): Same.
35566 (debug_scop_params): Same.
35567 (print_iteration_domain): Same.
35568 (print_iteration_domains): Same.
35569 (debug_iteration_domain): Same.
35570 (debug_iteration_domains): Same.
35571 (print_scattering_function): Same.
35572 (print_scattering_functions): Same.
35573 (debug_scattering_function): Same.
35574 (debug_scattering_functions): Same.
35576 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35578 * graphite-poly.c (print_scattering_function_1): New.
35579 (print_scattering_function): Call it.
35580 (print_scop_params): Remove spaces at the end of lines.
35581 (print_cloog): New.
35582 (debug_cloog): New.
35583 * graphite-poly.h (print_cloog): Declared.
35584 (debug_cloog): Declared.
35586 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35588 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
35590 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
35591 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
35592 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
35593 to switch between adding the IV bump in loop->latch or in loop->header.
35595 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35597 * graphite-poly.c (print_scattering_function): Pretty print following
35598 the scoplib format.
35600 (print_pbb_domain): Same.
35601 (dump_gbb_cases): Same.
35602 (dump_gbb_conditions): Same.
35603 (print_pdrs): Same.
35605 (print_scop_params): Same.
35606 (print_scop_context): Same.
35607 (print_scop): Same.
35608 (print_pbb_body): New.
35609 (lst_indent_to): New.
35610 (print_lst): Start new lines with a #.
35611 * graphite-poly.h (pbb_bb): New.
35612 (pbb_index): Use pbb_bb.
35613 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
35615 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
35617 2010-03-31 Jakub Jelinek <jakub@redhat.com>
35619 * dwarf2out.c (size_of_die): For -gdwarf-4 use
35620 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
35621 and 0 instead of 1 for dw_val_class_flag.
35622 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
35623 dw_val_class_range_list, dw_val_class_loc_list,
35624 dw_val_class_lineptr and dw_val_class_macptr, use
35625 DW_FORM_flag_present for dw_val_class_flag and
35626 DW_FORM_exprloc for dw_val_class_loc.
35627 (output_die): For -gdwarf-4 print dw_val_class_loc
35628 size as uleb128 instead of 1 or 2 bytes and don't print
35629 anything for dw_val_class_flag.
35631 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
35632 instead of cselib_lookup following by tweaking locs->setting_insn.
35635 * cselib.c (cselib_process_insn): Clear cselib_current_insn
35636 even before returning from label, setjmp call or volatile asm
35639 2010-03-31 Richard Guenther <rguenther@suse.de>
35641 PR middle-end/43600
35642 * cgraphunit.c (cgraph_output_in_order): Do not allocate
35643 temporary data on stack.
35645 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35647 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
35648 (PUSHSECTION_ASM_OP): Remove.
35649 (POPSECTION_ASM_OP): Remove.
35650 (PUSHSECTION_FORMAT): Remove.
35651 * config/sol2.h (PUSHSECTION_FORMAT): Define.
35652 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
35653 * config/sol2.c (solaris_output_init_fini): Use it.
35655 2010-03-31 Jie Zhang <jie@codesourcery.com>
35658 * opt-functions.awk (var_type_struct): Use signed char type
35659 for simple variables.
35661 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35663 * config/sol2.c: Include output.h.
35664 (solaris_assemble_visibility): New function.
35665 * config/t-sol2 (sol2.o): Add output.h dependency.
35666 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
35667 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
35670 2010-03-31 Jakub Jelinek <jakub@redhat.com>
35673 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
35674 V2SImode or XFmode on PRE_DEC.
35677 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
35680 2010-03-31 Jie Zhang <jie@codesourcery.com>
35683 * reload.h (caller_save_initialized_p): Declare.
35684 * toplev.c (backend_init_target): Don't call
35685 init_caller_save but set caller_save_initialized_p to false.
35686 * caller-save.c (caller_save_initialized_p): Define.
35687 (init_caller_save): Check caller_save_initialized_p.
35688 * ira.c (ira): Call init_caller_save if flag_caller_saves.
35690 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35693 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
35694 and soft-fp/t-softfp to tmake_file.
35695 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
35696 (LIBGCC2_TF_CEXT): Define.
35699 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
35702 * cselib.c (n_useless_values): Document handling of debug locs.
35703 (n_useless_debug_values, n_debug_values): New variables.
35704 (new_elt_loc_list): Don't add to debug values, keep count.
35705 (promote_debug_loc): New.
35706 (cselib_reset_table): Zero new variables.
35707 (entry_and_rtx_equal_p): Promote debug locs.
35708 (discard_useless_locs): Increment n_useless_debug_values for
35710 (remove_useless_values): Adjust n_useless_values and n_debug_values
35711 with n_useless_debug_values.
35712 (add_mem_for_addr): Promote debug locs.
35713 (cselib_lookup_mem): Likewise.
35714 (cselib_lookup_addr): Renamed to...
35715 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
35716 (cselib_log_lookup): ... this. Turn into...
35717 (cselib_lookup_addr): ... new wrapper.
35718 (cselib_lookup_from_insn): New.
35719 (cselib_invalidate_regno): Increment n_useless_debug_values for
35721 (cselib_invalidate_mem): Likewise.
35722 (cselib_process_insn): Take n_deleted and n_debug_values into
35723 account to guard remove_useless_value call.
35724 (cselib_finish): Zero n_useless_debug_values.
35725 * cselib.h (cselib_lookup_from_insn): Declare.
35726 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
35727 (sched_analyze_2): Likewise.
35729 2010-03-30 Jakub Jelinek <jakub@redhat.com>
35731 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
35733 (adjust_mems): Replace narrowing SUBREG of expression containing
35734 just PLUS, MINUS, MULT and ASHIFT of registers and constants
35735 with operations in the narrower mode.
35738 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
35739 regs_invalidated_by_call instead all call_used_reg_set registers.
35741 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
35743 PR middle-end/43430
35744 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
35745 pointer comparisons with types_compatible_p.
35746 * tree-vect-stmts.c (vectorizable_call): Same.
35747 (vectorizable_condition): Same.
35749 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35751 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
35752 stack check if the mask would be zero.
35754 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
35755 Jack Howarth <howarth@bromo.med.uc.edu>
35757 * tree-profile.c (tree_init_ic_make_global_vars): Make static
35760 2010-03-30 Joseph Myers <joseph@codesourcery.com>
35763 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
35765 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
35766 Include ___unordxf2 and ___unordtf2.
35767 * config/i386/libgcc-glibc.ver: Do not define inheritance from
35770 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
35772 * config/lm32/t-lm32: New file.
35773 * config.gcc: Use the above file when targetting lm32.
35775 2010-03-28 Duncan Sands <baldrick@free.fr>
35777 * Makefile.in (PLUGIN_HEADERS): Add except.h.
35779 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35781 PR middle-end/43431
35782 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
35783 Improve vectorization cost model diagnostic.
35785 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35787 PR middle-end/43436
35788 * tree-vect-data-refs.c (vect_analyze_data_refs): When
35789 compute_data_dependences_for_loop returns false, early exit
35790 and output an extra diagnostic for the failed data reference
35793 2010-03-29 Richard Guenther <rguenther@suse.de>
35795 PR tree-optimization/43560
35796 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
35797 (can_sm_ref_p): Treat stores to readonly locations as trapping.
35799 2010-03-29 Jie Zhang <jie@codesourcery.com>
35802 * toplev.c (process_options): Set optimization_default_node
35803 and optimization_current_node.
35804 * opts.c (decode_options): Don't set optimization_default_node
35805 and optimization_current_node.
35807 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
35809 * config/rtems.h: Abandon -qrtems_debug.
35811 2010-03-28 Jan Hubicka <jh@suse.cz>
35813 PR tree-optimization/43505
35814 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
35815 map should not be copied.
35817 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35819 PR middle-end/41674
35820 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
35821 cdtors, set DECL_PRESERVE_P.
35822 * ipa.c (cgraph_externally_visible_p): Return true if declaration
35823 should be preseved.
35825 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
35827 PR tree-optimization/43528
35828 * stor-layout.c (place_field): Check that constant fits into
35829 unsigned HWI when skipping calculation of MS bitfield layout.
35831 2010-03-27 Jan Hubicka <jh@suse.cz>
35833 PR middle-end/43391
35834 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
35835 notice_global_symbol work.
35837 2010-03-27 Jakub Jelinek <jakub@redhat.com>
35839 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
35840 instead of dwarf2out_decl.
35841 (struct var_loc_node): Remove section_label field.
35842 (dwarf2out_function_decl): New function.
35843 (dwarf2out_var_location): Don't set section_label field.
35844 (dwarf2out_begin_function): Don't empty decl_loc_table here.
35846 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
35848 PR tree-optimization/43544
35849 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35850 First argument for builtin vectorized function hook is now a
35851 tree to be able to distinguish between machine specific and
35853 * targhooks.c (default_builtin_vectorized_function): Ditto.
35854 * targhooks.h (default_builtin_vectorized_function): Ditto.
35855 * target.h (struct gcc_target): Ditto.
35856 * tree-vect-stmts.c (vectorizable_function): Ditto.
35857 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
35858 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
35861 2010-03-26 Joseph Myers <joseph@codesourcery.com>
35864 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
35865 nested binding iff it is a FUNCTION_DECL.
35866 (store_parm_decls_newstyle): Pass nested=true to bind for
35867 FUNCTION_DECLs amongst parameters.
35869 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35871 * var-tracking.c (vt_expand_loc_callback): Don't run
35872 cselib_expand_value_rtx_cb in dummy mode if
35873 cselib_dummy_expand_value_rtx_cb returned false.
35875 * var-tracking.c (emit_note_insn_var_location): For one part
35876 notes with offset 0, don't add EXPR_LIST around the location.
35877 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
35878 add_location_or_const_value_attribute): Adjust for that change.
35881 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
35882 into first operand and location into second.
35883 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
35884 dw_cfi_oprnd_loc for DW_CFA_expression.
35885 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
35886 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
35887 assume first argument is regnum and second argument is location.
35889 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35892 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
35893 of scratch register to DImode. Split to DImode comparison operator.
35894 Use SImode subreg of scratch register in the multiplication.
35895 (*cmp_sadd_sidi): Ditto.
35896 (*cmp_ssub_si): Ditto.
35897 (*cmp_ssub_sidi): Ditto.
35899 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35902 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
35903 Remove invalid assert and wrong comment.
35905 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35908 * flags.h (final_insns_dump_p): New extern.
35909 * final.c (final_insns_dump_p): New variable.
35910 (rest_of_clean_state): Set it before -fdump-final-insns=
35911 dumping, clear afterwards.
35912 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
35913 MEM_ALIAS_SET on MEMs.
35915 2010-03-26 David S. Miller <davem@davemloft.net>
35917 * configure.ac: Fix sparc GOTDATA_OP bug check.
35918 * configure: Rebuild.
35920 2010-03-26 Alan Modra <amodra@gmail.com>
35922 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
35924 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35926 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
35927 TLS_SECTION_ASM_FLAG.
35929 2010-03-25 Jakub Jelinek <jakub@redhat.com>
35932 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
35933 Clear first_function_block_is_cold.
35936 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
35937 argument if the argument is truth_value_p.
35939 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35941 * config/rs6000/constraints.md: Update copyright year for my changes.
35944 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
35945 used in reg+reg addressing, swap registers.
35947 2010-03-24 Jakub Jelinek <jakub@redhat.com>
35950 * target.h (struct gcc_target): Add code_end hook.
35951 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
35952 if not yet defined.
35953 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
35954 * toplev.c (compile_file): Call targetm.asm_out.code_end
35955 hook before unwind info/debug info output.
35956 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
35957 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
35958 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35959 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
35960 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35961 * config/i386/i386.c (ix86_file_end): Renamed to...
35962 (ix86_code_end): ... this. Make static. Don't call
35963 file_end_indicate_exec_stack. Emit unwind info using
35964 final_start_function/final_end_function.
35965 (darwin_x86_file_end): Remove.
35966 (TARGET_ASM_CODE_END): Define.
35967 * config/i386/i386.h (TARGET_ASM_FILE_END,
35968 NEED_INDICATE_EXEC_STACK): Don't define.
35969 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
35970 (TARGET_ASM_FILE_END): Define to darwin_file_end.
35971 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
35972 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
35975 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
35976 at the beginning and final_end_function at the end.
35977 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
35979 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35981 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
35982 and Sun as TLS syntax.
35983 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
35984 * configure: Regenerate.
35985 * config.in: Regenerate.
35986 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
35987 (default_elf_asm_named_section): Use it.
35988 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
35989 (i386_output_dwarf_dtprel): Likewise.
35990 (output_addr_const_extra): Likewise.
35991 (output_pic_addr_const): Lowercase @GOTTPOFF.
35992 (output_addr_const_extra): Likewise.
35993 (output_pic_addr_const): Lowercase @GOTNTPOFF.
35994 (output_addr_const_extra): Likewise.
35995 (output_pic_addr_const): Lowercase @INDNTPOFF.
35996 (output_addr_const_extra): Likewise.
35997 (output_pic_addr_const): Lowercase @NTPOFF.
35998 (output_addr_const_extra): Likewise.
35999 (output_pic_addr_const): Lowercase @TPOFF.
36000 (output_addr_const_extra): Likewise.
36001 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
36002 (*tls_global_dynamic_64): Likewise.
36003 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
36004 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
36006 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
36007 (ASM_OUTPUT_TLS_COMMON): Use it.
36008 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
36011 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
36012 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
36013 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
36014 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
36015 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
36016 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
36018 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36020 * config/i386/i386.c (override_options): Don't accept
36021 -mtls-dialect=sun any longer.
36022 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
36023 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
36024 (*tls_local_dynamic_base_32_sun): Likewise.
36025 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
36027 2010-03-24 Jakub Jelinek <jakub@redhat.com>
36030 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
36031 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
36034 * ira.c (adjust_cleared_regs): New function.
36035 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
36039 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
36041 * expr.c (expand_expr_real): Restore previous
36042 curr_insn_source_location and curr_insn_block after
36043 expand_expr_real_1 call.
36044 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
36045 instead of expand_expr_real_1.
36047 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
36049 PR rtl-optimization/43413
36050 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
36053 2010-03-22 James E. Wilson <wilson@codesourcery.com>
36056 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
36057 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
36059 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
36061 * config/i386/i386.c (ix86_target_string): Add -mfma.
36062 Fix a typo in comment.
36064 2010-03-22 Mike Stump <mikestump@comcast.net>
36067 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
36068 Don't overly align based upon packed packed fields.
36070 2010-03-22 Jason Merrill <jason@redhat.com>
36072 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
36073 Use () rather than [], and move before the element type.
36075 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36077 * doc/configfiles.texi (Configuration Files): Removed
36078 fixinc/Makefile*, intl/Makefile.*.
36079 * doc/makefile.texi: Fixed markup. Abstract from version
36080 control system used.
36081 (Makefile): Removed obsolete java/parse.y example.
36082 * doc/sourcebuild.texi: Likewise.
36083 (Top Level): Added config, gnattools, libdecnumber, libgcc,
36084 libgomp, libssp. Removed fastjar.
36085 (Miscellaneous Docs): Clarify location.
36086 Added COPYING3, COPYING3.LIB.
36087 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
36089 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36092 * config/i386/i386.c (x86_function_profiler)
36093 [!NO_PROFILE_COUNTERS]: Fix typo.
36094 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
36097 2010-03-22 Janis Johnson <janis187@us.ibm.com>
36098 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36100 * doc/sourcebuild.texi (Test Directives): Split into six
36101 subsections, with most of the current text in new subsections
36102 Directives, Selectors, and Final Actions.
36103 (Directives): Split list of test directives into multiple
36105 (Selectors): Describe use and syntax of selectors.
36106 (Effective-Target Keywords): Describe all existing keywords.
36107 (Add Options): Describe features for dg-add-options.
36108 (Require Support): Describe variants of dg-require-support.
36109 (Final Actions): Describe commands to use in dg-final.
36111 2010-03-22 Michael Matz <matz@suse.de>
36113 PR middle-end/43475
36114 * recog.c (validate_replace_rtx_group): Replace also in
36115 REG_EQUAL and REG_EQUIV notes.
36117 2010-03-22 Richard Guenther <rguenther@suse.de>
36119 PR tree-optimization/43390
36120 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
36121 sure vector extracts are type correct.
36123 2010-03-22 Richard Guenther <rguenther@suse.de>
36125 PR middle-end/40106
36126 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
36127 x * sqrt (x) even when optimizing for size if the target
36128 has native support for sqrt.
36130 2010-03-22 Jakub Jelinek <jakub@redhat.com>
36132 * varasm.c (make_decl_rtl_for_debug): Also clear
36133 flag_mudflap for the duration of make_decl_rtl call.
36136 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
36137 locs from preserved VALUEs.
36139 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36141 PR middle-end/42718
36142 * pa.md (movmemsi): Set align to one if zero.
36143 (movmemdi): Likewise.
36145 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
36148 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
36149 with their corresponding prologue pushes.
36151 2010-03-20 Andrew Pinski <pinskia@gmail.com>
36154 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
36155 at the begining or end.
36156 (spu_expand_epilogue): Likewise.
36158 2010-03-20 Richard Guenther <rguenther@suse.de>
36160 PR rtl-optimization/43438
36161 * combine.c (make_extraction): Properly zero-/sign-extend an
36162 extraction of the low part of a CONST_INT. Also handle
36165 2010-03-19 Mike Stump <mikestump@comcast.net>
36167 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
36168 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
36169 (override_options): Use SUBTARGET32_DEFAULT_CPU.
36171 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
36174 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
36177 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
36179 PR rtl-optimization/42258
36180 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
36181 use that may match DEF.
36184 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
36185 the cost of loading the constant rather than assuming
36187 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
36188 outer code is AND, do the same tests as the andsi3 expander and
36189 return COSTS_N_INSNS (1) if and is cheap.
36191 * optabs.c (avoid_expensive_constant): Fix formatting.
36193 2010-03-19 Michael Matz <matz@suse.de>
36196 * attribs.c (decl_attributes): When rebuilding a function pointer
36197 type use the same qualifiers as the original pointer type.
36199 2010-03-19 Martin Jambor <mjambor@suse.cz>
36201 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
36202 and is_gimple_ip_invariant_address.
36204 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36207 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36209 * config/arm/arm.c (arm_override_options): Turn off
36210 flag_dwarf2_cfi_asm for AAPCS variants.
36212 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36215 * config/arm/arm.c (emit_multi_reg_push): Update comments.
36216 Use PRE_MODIFY instead of PRE_DEC.
36217 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
36218 (vfp_emit_fstmd): Likewise.
36220 2010-03-19 Michael Matz <matz@suse.de>
36223 * builtins.c (expand_builtin_interclass_mathfn,
36224 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
36227 2010-03-19 Richard Guenther <rguenther@suse.de>
36229 PR tree-optimization/43415
36230 * tree-ssa-pre.c (phi_translate): Split out worker to ...
36231 (phi_translate_1): ... this.
36232 (phi_translate): Move all caching here. Cache all NARY
36233 and REFERENCE translations.
36235 2010-03-19 David S. Miller <davem@davemloft.net>
36237 With help from Eric Botcazou.
36238 * config/sparc/sparc.c: Include dwarf2out.h.
36239 (emit_pic_helper): Delete.
36240 (pic_helper_symbol_name): Delete.
36241 (pic_helper_emitted_p): Delete.
36242 (pic_helper_needed): New.
36243 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
36244 (get_pc_thunk_name): New.
36245 (load_pic_register): Remove 'delay_pic_helper' arg. Use
36246 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
36247 Set pic_helper_needed to true. Don't call emit_pic_helper.
36248 (sparc_expand_prologue): Update load_pic_register call.
36249 (sparc_output_mi_thunk): Likewise.
36250 (sparc_file_end): Emit a hidden comdat symbol for the PIC
36251 thunk if possible. Output CFI information as needed.
36253 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36254 Jack Howarth <howarth@bromo.med.uc.edu>
36257 * config/i386/i386.h: Fix ABI on darwin x86-32.
36259 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
36261 * tree.h: Declare make_decl_rtl_for_debug.
36262 * varasm.c (make_decl_rtl_for_debug): New.
36263 * dwarf2out.c (rtl_for_decl_location): Call it.
36264 * cfgexpand.c (expand_debug_expr): Call it.
36266 2010-03-18 Jakub Jelinek <jakub@redhat.com>
36269 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
36273 * var-tracking.c (vt_init_cfa_base): Do nothing if
36274 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
36276 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
36279 * var-tracking.c (canonicalize_vars_star): New.
36280 (dataflow_post_merge_adjust): Use it.
36282 2010-03-18 Jakub Jelinek <jakub@redhat.com>
36285 * var-tracking.c (non_suitable_const): New function.
36286 (add_uses): For DEBUG_INSNs with constants, don't record any
36287 value, instead just the constant value itself.
36288 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
36289 is not VAR_LOC_UNKNOWN_P, set var to the constant.
36290 (emit_notes_in_bb): Likewise.
36291 (emit_note_insn_var_location): For onepart variables if
36292 cur_loc is a VOIDmode constant, use DECL_MODE.
36294 2010-03-18 Martin Jambor <mjambor@suse.cz>
36296 PR middle-end/42450
36297 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
36298 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
36299 all non-clones. Moved call redirection...
36300 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
36301 (cgraph_materialize_all_clones): Dispose of all
36302 combined_args_to_skip bitmaps.
36303 (verify_cgraph_node): Do not check for edges pointing to wrong
36304 nodes in inline clones.
36305 * tree-inline.c (copy_bb): Call
36306 cgraph_redirect_edge_call_stmt_to_callee.
36307 * ipa.c (cgraph_remove_unreachable_nodes): Call
36308 cgraph_node_remove_callees even when there are used clones.
36310 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
36312 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
36314 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
36317 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
36320 2010-03-18 Michael Matz <matz@suse.de>
36322 PR middle-end/43419
36323 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
36324 into sqrt(x) if we need to preserve signed zeros.
36326 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
36327 Eric Botcazou <ebotcazou@adacore.com>
36329 PR rtl-optimization/43360
36330 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
36331 note if we don't know its invariant status.
36333 2010-03-18 Michael Matz <matz@suse.de>
36335 PR tree-optimization/43402
36336 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
36337 PHI chains of ssa names registered for update.
36339 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
36342 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
36343 non-offsettable and pre_modify update addressing.
36344 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
36345 and "2" alternatives "#".
36346 (*movdd_softfloat32): Make all alternatives "#";
36347 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
36348 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
36349 (*movdf_softfloat32): Make all alternatives "#";
36350 (movdi): Use the new DIFD mode iterator to create a common splitter
36351 for movdi, movdf and movdd patterns.
36353 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
36355 * common.opt (dumpdir): Remove redundant tab.
36357 2010-03-17 Martin Jambor <mjambor@suse.cz>
36359 PR tree-optimization/43347
36360 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
36361 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
36363 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
36365 PR rtl-optimization/42216
36366 * regrename.c (create_new_chain): New function, broken out from...
36367 (scan_rtx_reg): ... here. Call it. Handle the case where we are
36368 appending a use to an empty chain.
36369 (build_def_use): Remove previous changes that convert OP_INOUT to
36370 OP_OUT operands; instead detect the case where an OP_INOUT operand
36371 uses a previously untracked register and create an empty chain for it.
36373 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36375 * doc/extend.texi (Function Attributes): Rewrite unfinished
36376 sentence in ms_abi documentation.
36378 2010-03-17 Alan Modra <amodra@gmail.com>
36380 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
36381 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
36382 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
36383 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
36385 2010-03-16 Richard Henderson <rth@redhat.com>
36387 PR middle-end/43365
36388 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
36389 (lower_try_finally): Save and restore eh_seq around the expansion
36390 of the try-finally.
36392 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
36394 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
36395 statements before splitting block.
36397 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36399 * doc/sourcebuild.texi (Testsuites): Fix markup.
36400 Use pathnames relative to gcc/testsuite.
36401 (Test Directives): Move description of how timeout is determined.
36402 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
36403 (C Tests): Correct gcc.misc-tests directory.
36404 Framework tests now live in gcc.test-framework.
36406 2010-03-16 Richard Guenther <rguenther@suse.de>
36408 PR middle-end/43379
36409 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
36410 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
36412 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
36413 Alexandre Oliva <aoliva@redhat.com>
36415 PR tree-optimization/42917
36416 * lambda-code.c (remove_iv): Skip debug statements.
36417 (lambda_loopnest_to_gcc_loopnest): Likewise.
36418 (not_interesting_stmt): Debug statements are not interesting.
36420 2010-03-16 Jakub Jelinek <jakub@redhat.com>
36424 * cselib.c (cselib_preserve_constants,
36425 cfa_base_preserved_val): New static variables.
36426 (preserve_only_constants): New function.
36427 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
36428 clear its REG_VALUES. If cselib_preserve_constants, don't
36429 empty the whole hash table, but preserve there VALUEs with constants,
36430 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
36431 (cselib_preserve_cfa_base_value): New function.
36432 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
36433 (cselib_init): Change argument to int bitfield. Set
36434 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
36436 (cselib_finish): Clear cselib_preserve_constants and
36437 cfa_base_preserved_val.
36438 * cselib.h (enum cselib_record_what): New enum.
36439 (cselib_init): Change argument to int.
36440 (cselib_preserve_cfa_base_value): New prototype.
36441 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
36442 * dse.c (dse_step1): Likewise.
36443 * cfgcleanup.c (thread_jump): Likewise.
36444 * sched-deps.c (sched_analyze): Likewise.
36445 * gcse.c (local_cprop_pass): Likewise.
36446 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
36447 If FN is non-NULL, call the callback always and whenever it returns
36448 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
36449 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
36450 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
36451 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
36452 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
36453 * var-tracking.c: Include recog.h.
36454 (bb_stack_adjust_offset): Remove.
36455 (vt_stack_adjustments): Don't call it, instead just gather the
36456 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
36457 (adjust_stack_reference): Remove.
36458 (compute_cfa_pointer): New function.
36459 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
36460 (struct adjust_mem_data): New type.
36461 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
36463 (get_address_mode): New function.
36464 (replace_expr_with_values): Use it.
36465 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
36466 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
36467 (adjust_sets): Remove.
36468 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
36469 Use get_address_mode.
36470 (get_adjusted_src): Remove.
36471 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
36472 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
36473 (add_with_sets): Don't call adjust_sets.
36474 (fp_setter, vt_init_cfa_base): New functions.
36475 (vt_initialize): Change return type to bool. Move most of pool etc.
36476 initialization to the beginning of the function from end. Pass
36477 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
36478 If !frame_pointer_needed, call vt_stack_adjustment before mos
36479 vector is filled, call vt_init_cfa_base if argp/framep has been
36480 eliminated to sp. If frame_pointer_needed and argp/framep has
36481 been eliminated to hard frame pointer, set
36482 hard_frame_pointer_adjustment and call vt_init_cfa_base after
36483 encountering fp setter in the prologue. For MO_ADJUST, call
36484 log_op_type before pusing the op into mos vector, not afterwards.
36485 Call adjust_insn before cselib_process_insn/add_with_sets,
36486 call cancel_changes (0) afterwards.
36487 (variable_tracking_main_1): Adjust for vt_initialize calling
36488 vt_stack_adjustments and returning whether it succeeded or not.
36490 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
36492 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
36495 2010-03-15 Jakub Jelinek <jakub@redhat.com>
36497 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
36499 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
36500 drap_reg has not been set.
36502 2010-03-15 Michael Matz <matz@suse.de>
36504 PR middle-end/43300
36505 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
36506 use it to expand block copies.
36507 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
36508 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
36509 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
36511 2010-03-15 Richard Guenther <rguenther@suse.de>
36513 PR tree-optimization/43367
36514 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
36517 2010-03-15 Richard Guenther <rguenther@suse.de>
36519 PR tree-optimization/43317
36520 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
36522 2010-03-15 Martin Jambor <mjambor@suse.cz>
36524 PR tree-optimization/43141
36525 * tree-sra.c (create_abstract_origin): New function.
36526 (modify_function): Call create_abstract_origin.
36528 2010-03-15 Chris Demetriou <cgd@google.com>
36530 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
36533 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36535 PR middle-end/43354
36536 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
36537 call insert_out_of_ssa_copy for default definitions.
36539 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36541 * graphite-clast-to-gimple.c (my_long_long): Defined.
36542 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
36543 * graphite-sese-to-poly.c (my_long_long): Defined.
36544 (scop_ivs_can_be_represented): Use it.
36546 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36548 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
36549 graphite-max-bbs-per-function, and loop-block-tile-size.
36550 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
36552 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
36554 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36556 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
36557 forward declaration.
36558 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
36559 (add_upper_bounds_from_estimated_nit): New.
36560 (build_loop_iteration_domains): Use it.
36562 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36564 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
36566 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36568 PR middle-end/43306
36569 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
36570 should be an INTEGER_CST. Also handle CASE_CONVERT.
36572 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36574 * graphite.c (graphite_initialize): To bound the number of bbs per
36575 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
36576 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
36577 * doc/invoke.texi: Document it.
36579 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36581 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
36582 * graphite-sese-to-poly.h (build_poly_scop): Same.
36584 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36586 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
36587 the number of parameters in the scop. Use as an upper bound
36588 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
36589 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
36590 * doc/invoke.texi: Document it.
36592 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
36594 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
36595 * doc/c-tree.texi: Remove.
36596 * doc/generic.texi: Merge c-tree.texi here.
36597 * doc/gccint.texi (Trees): Remove menu entry.
36598 (c-tree.texi): Remove @include.
36599 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
36600 * doc/languages.texi (Reading RTL): Ditto.
36602 2010-03-12 Steve Ellcey <sje@cup.hp.com>
36605 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
36607 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
36609 PR middle-end/42431
36610 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
36611 code added to work around reload clobbering CONST insns.
36613 2010-03-12 Jakub Jelinek <jakub@redhat.com>
36615 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
36616 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
36617 (cselib_preserve_only_values): Remove retain argument, don't
36618 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
36619 * cselib.h (cselib_preserve_only_values): Remove retain argument.
36620 * var-tracking.c (micro_operation): Move insn field before union.
36621 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
36622 (struct variable_tracking_info_def): Remove n_mos field, change
36623 mos into a vector of micro_operations.
36624 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
36625 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
36626 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
36627 changing into a vector.
36628 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
36629 come before all other uops generated by add_stores.
36630 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
36632 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
36633 a vector. Run just one pass over the bbs instead of separate counting
36634 and computation phase.
36635 (vt_finalize): Free VTI (bb)->mos vector instead of array.
36638 * tree-inline.c (remap_decls): Put old_var rather than origin_var
36639 into *nonlocalized_list vector.
36640 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
36641 even if origin is non-NULL.
36642 (gen_variable_die): Likewise.
36643 (process_scope_var): Don't change origin.
36644 (gen_decl_die): Likewise.
36645 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
36646 before adding new edges instead of after it, fix moving over
36649 2010-03-11 David S. Miller <davem@davemloft.net>
36651 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
36653 * configure: Rebuild.
36655 2010-03-11 Martin Jambor <mjambor@suse.cz>
36657 PR tree-optimization/43257
36658 * tree.c (assign_assembler_name_if_neeeded): New function.
36659 (free_lang_data_in_cgraph): Assembler name assignment moved to the
36660 above new function.
36661 * tree.h (assign_assembler_name_if_neeeded): Declare.
36662 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
36663 the function if needed.
36665 2010-03-11 Chris Demetriou <cgd@google.com>
36667 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
36668 include/stdint-gcc.h, and include/stdint.h world-readable.
36670 2010-03-11 Richard Guenther <rguenther@suse.de>
36672 PR tree-optimization/43255
36673 * tree-vrp.c (process_assert_insertions_for): Do not insert
36674 asserts for trivial conditions.
36676 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36678 PR tree-optimization/43280
36679 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
36680 generation. Move calculation of size out of the if branch.
36681 (find_bswap): Modify compare number generation.
36683 2010-03-11 Richard Guenther <rguenther@suse.de>
36686 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
36687 (input_gimple_stmt): Fixup handled component types during
36688 operand read. Also fix up decls in ADDR_EXPRs.
36690 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
36692 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
36693 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
36695 2010-03-10 Jan Hubicka <jh@suse.cz>
36698 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
36699 * varasm.c (get_variable_section): Don't do that here...
36700 (make_decl_rtl): ... and here.
36701 (do_assemble_alias): Produce decl RTL.
36702 (assemble_alias): Likewise.
36704 2010-03-10 Jakub Jelinek <jakub@redhat.com>
36707 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
36708 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
36710 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
36711 (based_loc_descr): Only express drap or vdrap regno based expressions
36712 using DW_OP_fbreg when not optimizing.
36713 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
36714 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
36715 REG_CFA_SET_VDRAP note.
36717 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
36719 PR tree-optimization/43236
36720 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
36721 error in calculation of base address in reverse iteration case.
36722 (generate_builtin): Take number of latch executions if the statement
36725 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
36727 PR middle-end/42859
36728 * tree-eh.c: Include pointer-set.h.
36729 (lower_eh_dispatch): Filter out duplicate case labels and
36730 remove the unneeded edge when the label is unused. Return
36731 true when some edges are removed.
36732 (execute_lower_eh_dispatch): When any lowering resulted in
36733 removing an edge, also delete unreachable blocks.
36735 2010-03-10 Jakub Jelinek <jakub@redhat.com>
36738 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
36739 UNSPEC_MACHOPIC_OFFSET.
36741 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
36744 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
36745 (m68k_delegitimize_address): New function.
36747 2010-03-09 Jakub Jelinek <jakub@redhat.com>
36750 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
36753 * var-tracking.c (adjust_sets): New function.
36754 (count_with_sets, add_with_sets): Use it.
36755 (get_adjusted_src): New inline function.
36756 (add_stores): Use it.
36759 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
36760 call cselib_dummy_expand_value_rtx_cb instead of
36761 cselib_expand_value_rtx_cb.
36764 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
36765 * config/i386/i386.c: Include debug.h and dwarf2out.h.
36766 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
36767 and .cfi_endproc around the pic thunks.
36768 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
36769 all queued unwind info register saves are saved before the call.
36770 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
36771 considered as sp-=4 for unwind info and the pop as sp+=4 which
36772 also clobbers dest, but doesn't actually restore it.
36775 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
36776 RTX_FRAME_RELATED_P.
36778 2010-03-09 Jie Zhang <jie@codesourcery.com>
36780 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
36781 whitespaces in output template.
36783 2010-03-09 Jie Zhang <jie@codesourcery.com>
36785 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
36786 out array boundary.
36788 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36790 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
36791 builtins.exp in a separate job.
36793 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36795 * graphite-sese-to-poly.c (add_param_constraints): Use
36796 lower_bound_in_type and upper_bound_in_type.
36798 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36800 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
36801 instead of unsigned_type_node.
36803 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36804 Reza Yazdani <reza.yazdani@amd.com>
36806 PR middle-end/43065
36807 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
36808 on pointer type parameters.
36810 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36812 PR middle-end/42644
36813 PR middle-end/42130
36814 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
36815 handle conversions from pointer to integers.
36816 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
36817 induction variable, to be able to work with code generated by CLooG.
36818 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
36819 (build_poly_scop): Bail out if we cannot codegen a loop.
36821 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36823 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
36824 code generation with gloog_error.
36826 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36828 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
36829 Call fold_convert on all the returned values.
36830 (expand_scalar_variables_expr): Pass to
36831 expand_scalar_variables_ssa_name the type of the resulting expression.
36833 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36835 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
36836 ppl_min_for_le_pointset.
36837 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
36838 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
36840 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36842 * graphite-dependences.c (map_into_dep_poly): Removed.
36843 (dependence_polyhedron_1): Use combine_context_id_scat.
36845 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36847 * graphite-poly.h (struct poly_scattering): Add layout documentation.
36848 (struct poly_bb): Same.
36849 (combine_context_id_scat): New.
36851 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36853 PR middle-end/42326
36854 * sese.c (name_defined_in_loop_p): Return false for default
36857 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36859 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
36860 and clean up the logic.
36862 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36864 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
36867 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36869 * var-tracking.c (remove_cselib_value_chains): Define only for
36871 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
36872 delete_slot_part, emit_notes_for_differences_1): Don't call
36873 remove_cselib_value_chains here.
36874 (set_slot_part, emit_notes_for_differences_2): Don't call
36875 add_cselib_value_chains here.
36876 (preserved_values): New vector.
36877 (preserve_value): New function.
36878 (add_uses, add_stores, vt_add_function_parameters): Use it
36879 instead of cselib_preserve_value.
36880 (changed_values_stack): New vector.
36881 (check_changed_vars_0): New function.
36882 (check_changed_vars_1, check_changed_vars_2): Use it.
36883 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
36884 changed_values_stack VALUEs.
36885 (vt_emit_notes): For all preserved_values call
36886 add_cselib_value_chains. If ENABLE_CHECKING call
36887 remove_cselib_value_chains before verifying value_chains is empty.
36888 Initialize and free changed_values_stack.
36889 (vt_initialize): Initialize preserved_values.
36890 (vt_finalize): Free preserved_values.
36892 2010-03-08 Richard Guenther <rguenther@suse.de>
36894 PR tree-optimization/43269
36895 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
36898 2010-03-08 Martin Jambor <mjambor@suse.cz>
36900 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
36901 (ipa_is_param_called): Removed.
36902 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
36903 (ipa_print_node_params): Do not print the called flag.
36904 (ipa_write_node_info): Do not stream the called flag.
36905 (ipa_read_node_info): Likewise.
36907 2010-03-07 Jakub Jelinek <jakub@redhat.com>
36910 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
36911 * cselib.c (struct expand_value_data): Add dummy field.
36912 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
36914 (cselib_dummy_expand_value_rtx_cb): New function.
36915 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
36917 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
36918 * var-tracking.c: Include pointer-set.h.
36919 (variable): Change n_var_parts to char from int. Add
36920 cur_loc_changed and in_changed_variables fields.
36921 (variable_canonicalize): Remove.
36922 (shared_var_p): New inline function.
36923 (unshare_variable): Maintain cur_loc_changed and
36924 in_changed_variables fields. If var was in changed_variables,
36925 replace it there with new_var. Just copy cur_loc instead of
36926 resetting it to something else.
36927 (variable_union): Don't recompute cur_loc. Use shared_var_p.
36928 (dataflow_set_union): Don't call variable_canonicalize.
36929 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
36930 of their DEBUG_EXPR_TREE_DECLs.
36931 (canonicalize_loc_order_check): Verify that cur_loc is NULL
36932 and in_changed_variables and cur_loc_changed is false.
36933 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
36934 and cur_loc_changed. Don't update cur_loc here.
36935 (variable_merge_over_src): Don't call variable_canonicalize.
36936 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
36937 removing loc that is equal to cur_loc, clear cur_loc,
36938 set cur_loc_changed and ensure variable_was_changed is called.
36939 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
36940 compare pointers in cur_loc check, if it is equal to loc,
36941 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
36942 (variable_different_p): Remove compare_current_location argument,
36943 don't compare cur_loc.
36944 (dataflow_set_different_1): Adjust variable_different_p caller.
36945 (variable_was_changed): If dv had some var in changed_variables
36946 already, reset in_changed_variables flag for it and propagate
36947 cur_loc_changed over to the new variable. On empty var
36948 always set cur_loc_changed. Set in_changed_variables on whatever
36949 var is added to changed_variables.
36950 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
36951 Use shared_var_p. When removing loc that is equal to cur_loc,
36952 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
36953 end, don't set it to something else, just call variable_was_changed.
36954 (delete_slot_part): Use shared_var_p. When cur_loc equals to
36955 loc being removed, clear cur_loc and set cur_loc_changed.
36956 Set cur_loc_changed if all locations have been removed.
36957 (struct expand_loc_callback_data): New type.
36958 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
36959 allocated. Always create SUBREGs if simplify_subreg failed.
36960 Prefer to use cur_loc, when that fails and still in
36961 changed_variables (and seen first time) recompute it. Set
36962 cur_loc_changed of variables which had to change cur_loc and
36963 compute elcd->cur_loc_changed if any of the subexpressions used
36964 had to change cur_loc.
36965 (vt_expand_loc): Adjust to pass arguments in
36966 expand_loc_callback_data structure.
36967 (vt_expand_loc_dummy): New function.
36968 (emitted_notes): New variable.
36969 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
36970 that weren't used for any other decl in current
36971 emit_notes_for_changes call call vt_expand_loc_dummy to update
36972 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
36973 first loc_chain location if NULL before. Always use just
36974 cur_loc instead of first loc_chain location. When cur_loc_changed
36975 is false, when not --enable-checking=rtl just don't emit any note.
36976 When rtl checking, compute the note and assert it is the same
36977 as previous note. Clear cur_loc_changed and in_changed_variables
36978 at the end before removing from changed_variables.
36979 (check_changed_vars_3): New function.
36980 (emit_notes_for_changes): Traverse changed_vars to call
36981 check_changed_vars_3 on each changed var.
36982 (emit_notes_for_differences_1): Clear cur_loc_changed and
36983 in_changed_variables. Recompute cur_loc of new_var.
36984 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
36985 (vt_emit_notes): Initialize and destroy emitted_notes.
36987 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
36989 PR rtl-optimization/42220
36990 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
36991 Use verify_reg_tracked to determine if we should use OP_OUT rather
36993 (build_def_use): If we see an in-out operand for a register that we
36994 know nothing about, treat is an output if possible, fail the block if
36997 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
37000 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
37003 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
37006 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
37007 uses of relevant DEFs that are dead outside the loop too.
37009 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
37011 * var-tracking.c (dataflow_set_merge): Swap src and src2.
37013 2010-01-13 Jakub Jelinek <jakub@redhat.com>
37015 * var-tracking.c (values_to_unmark): New variable.
37016 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
37017 values_to_unmark vector. Moved body to...
37018 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
37019 instead queue it into values_to_unmark vector.
37020 (vt_find_locations): Free values_to_unmark vector.
37022 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
37024 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
37025 (site.exp): Export them when plugins are enabled.
37027 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
37029 PR middle-end/42326
37030 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
37031 that contain scevs.
37032 (chrec_fold_multiply): Same.
37034 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
37037 * c-decl.c (build_compound_literal): Return early if init is
37038 an error_mark_node.
37040 2010-03-04 Martin Jambor <mjambor@suse.cz>
37042 PR tree-optimization/43164
37043 PR tree-optimization/43191
37044 * tree-sra.c (type_consists_of_records_p): Reject records with
37045 zero-size bit-fields at the end.
37047 2010-03-04 Mike Stump <mikestump@comcast.net>
37049 * Makefile.in (TAGS): Remove *.y.
37051 2010-03-04 Richard Guenther <rguenther@suse.de>
37053 PR tree-optimization/40761
37054 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
37056 (my_rev_post_order_compute): New function.
37057 (init_pre): Call it.
37059 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
37061 PR middle-end/43209
37062 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
37063 decrease the cost of an IV candidate when the cost is infinite.
37065 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37067 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
37068 Use '3DNow!' for the extension of that name, ensure normal space
37070 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
37072 2010-03-03 Jeff Law <law@redhat.com>
37074 * PR middle-end/32693
37075 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
37076 than gen_rtx_SUBREG.
37077 (extract_bit_field_1): Likewise.
37079 2010-03-03 Janis Johnson <janis187@us.ibm.com>
37081 * doc/sourcebuild.texi (Test directives): Document that arguments
37082 include-opts and exclude-opts are now optional for dg-skip-if,
37083 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
37085 2010-03-03 Jason Merrill <jason@redhat.com>
37088 * cgraph.h (varpool_node): Add extra_name field.
37089 * varpool.c (varpool_extra_name_alias): New.
37090 (varpool_assemble_decl): Emit extra name aliases.
37091 (varpool_mark_needed_node): Look past an extra name alias.
37092 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
37093 * lto-streamer-in.c (lto_input_tree): Read it.
37094 * lto-streamer-out.c (output_unreferenced_globals): Write it.
37096 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
37098 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
37099 (sparc*-*-solaris2*): ...this.
37101 2010-03-03 Jakub Jelinek <jakub@redhat.com>
37104 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
37105 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
37106 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
37107 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
37110 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
37111 fallthrough to default handling, just with want_address 0 instead of 2.
37112 For single element lists, add_AT_loc directly, otherwise create an
37113 artificial variable DIE and stick location list to it.
37116 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
37117 (VAL_EXPR_HAS_REVERSE): Define.
37118 (reverse_op): New function.
37119 (add_stores): For reversible operations add an extra MO_VAL_USE.
37121 2010-03-02 Jason Merrill <jason@redhat.com>
37123 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
37125 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
37127 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
37128 (sparc64-*-linux*): Likewise.
37129 (sparc64-*-solaris2*): Include assembler files before linker ones.
37130 (sparc-*-solaris2*): Simplify and reorder to match previous case.
37131 * config/sparc/gas.h: Delete.
37132 * config/sparc/sol2-64.h: Add copyright notice.
37133 * config/sparc/sol2-gas-bi.h: Likewise.
37134 * config/sparc/sol2-gld.h: Likewise.
37135 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
37136 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
37137 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
37138 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
37139 (sparc_elf_asm_named_section): Rename into...
37140 (sparc_solaris_elf_asm_named_section): ...this. Always define.
37142 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
37144 * config/alpha/alpha.c (override_options): Fix -mtune error message.
37146 2010-03-02 Jeff Law <law@redhat.com>
37148 PR middle-end/42431
37149 * reload1.c (rtx_p, substitute_stack): Declare.
37150 (substitute): Record addresses of changed rtxs.
37151 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
37152 Restore the original rtx when complete.
37153 (reload): Free subsitute_stack when complete.
37155 2010-03-02 Janis Johnson <janis187@us.ibm.com>
37157 * doc/gccint.texi (menu): Add Testsuites as a chapter.
37158 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
37160 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
37161 LTO Testing, gcov Testing, profopt Testing, compat Testing,
37162 Torture Tests): Change from subsection to section.
37164 2010-03-02 Jakub Jelinek <jakub@redhat.com>
37165 Steven Bosscher <steven@gcc.gnu.org>
37167 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
37170 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
37172 PR middle-end/42640
37173 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
37174 the assignment from the new induction variable to the assignment
37175 of the value from the original loop PHI function.
37177 2010-03-01 Janis Johnson <janis187@us.ibm.com>
37178 Daniel Jacobowitz <dan@codesourcery.com>
37180 * doc/sourcebuild.texi (Test directives): Clarify options to
37183 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37185 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
37186 Disable cfi directives unless GCC and gas agree on using read-only
37187 .eh_frame sections for 64-bit.
37188 * configure: Regenerate.
37190 2010-03-01 Richard Guenther <rguenther@suse.de>
37192 PR tree-optimization/43220
37193 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
37194 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
37196 2010-03-01 Richard Guenther <rguenther@suse.de>
37197 Martin Jambor <mjambor@suse.cz>
37199 PR middle-end/41250
37200 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
37201 gimplified parameters.
37203 2010-03-01 Christian Bruel <christian.bruel@st.com>
37205 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
37207 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
37209 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
37211 2010-03-01 Richard Guenther <rguenther@suse.de>
37213 PR middle-end/43213
37214 * expr.c (expand_assignment): Use the alias-oracle to tell
37215 if the rhs aliases the result decl.
37217 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37220 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
37221 to sol_gt_pch_get_address.
37222 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
37223 64-bit, SPARC and x86.
37224 (sol_gt_pch_get_address): New function.
37226 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
37228 * toplev.h (inform_n, error_n): Declare.
37229 * diagnostic.c (inform_n, error_n): New function.
37231 2010-03-01 Jakub Jelinek <jakub@redhat.com>
37233 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
37234 has no rtl yet when processing local_decls, queue it and recheck
37235 if deferred stack allocation hasn't assigned it rtl.
37237 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
37239 * config/sh/sh.c (unspec_bbr_uid): New.
37240 (gen_block_redirect): Use it instead of INSN_UID.
37241 (gen_far_branch): Likewise.
37243 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
37245 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
37246 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
37248 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37250 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
37251 (Warning Options): -Wno-conversion-null is valid for
37252 Objective-C++ as well.
37253 * doc/tm.texi (Named Address Spaces): Likewise.
37254 * doc/plugins.texi (Plugins): Replace TABs with spaces.
37255 * doc/tree-ssa.texi (Tree SSA): Likewise.
37257 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
37260 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
37261 by default. Don't set the default arch for
37262 i[34567]86-*-darwin*|x86_64-*-darwin*.
37264 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
37267 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
37268 default. Set the default 32bit/64bit archs with $with_arch
37269 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
37271 2010-02-27 Richard Guenther <rguenther@suse.de>
37273 PR tree-optimization/43186
37274 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
37275 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
37276 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
37277 unroller iterations.
37279 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
37281 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
37282 required and i[34567]86-*-* targets don't support 64bit ISA.
37284 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
37287 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37288 the same alias set.
37290 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
37292 * config.gcc: Set the default arch at least to Prescott for
37293 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
37294 if SSE math is enabled.
37296 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
37298 * diagnostic.c (diagnostic_initialize): Update.
37299 (diagnostic_report_diagnostic): Test inhibit_notes_p for
37301 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
37302 (diagnostic_inhibit_notes): New.
37303 * toplev.c (process_options): inhibit notes with -fcompare-debug.
37305 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
37308 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
37309 * doc/standards.texi: Likewise.
37310 * doc/extend.texi: Likewise.
37311 * doc/trouble.texi: Likewise.
37312 * doc/cppopts.texi: Likewise.
37313 * doc/install.texi: Likewise.
37314 * c.opt (std=c90,std=gnu90): New options.
37315 * c-opts.c (c_common_handle_option): Handle them.
37317 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
37320 * c-decl.c (undeclared_variable): Use an informative note.
37322 2010-02-26 Richard Guenther <rguenther@suse.de>
37324 PR tree-optimization/43186
37325 * gimple.h (gimple_fold): Remove.
37326 * gimple.c (gimple_fold): Remove. Inline into single user ...
37327 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
37328 Try harder for conditions.
37330 2010-02-26 Jakub Jelinek <jakub@redhat.com>
37333 * function.c (used_types_insert): Don't skip through named pointer
37334 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
37335 and it is different from the main variant's type.
37337 2010-02-26 Nick Clifton <nickc@redhat.com>
37339 * config/rx/rx.md (sminsi3): Remove bogus alternative.
37341 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
37343 * config.gcc: Support --with-fpmath=sse for x86.
37345 * config/i386/ssemath.h: New.
37347 * doc/install.texi (--with-fpmath=sse): Documented.
37349 2010-02-26 Richard Guenther <rguenther@suse.de>
37351 PR tree-optimization/43188
37352 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
37353 vector types of over-aligned element type.
37355 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
37358 * config/i386/i386.c (expand_vec_perm_blend): Use correct
37359 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
37361 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
37363 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
37365 2010-02-26 Jakub Jelinek <jakub@redhat.com>
37367 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
37368 * var-tracking.c: Include diagnostic.h.
37369 (debug_dv): New function.
37370 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
37373 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
37374 (add_value_chain, add_value_chains, remove_value_chain,
37375 remove_value_chains): Handle DEBUG_EXPRs.
37376 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
37379 * regcprop.c (struct queued_debug_insn_change): New type.
37380 (struct value_data_entry): Add debug_insn_changes field.
37381 (struct value_data): Add n_debug_insn_changes field.
37382 (debug_insn_changes_pool): New variable.
37383 (free_debug_insn_changes, apply_debug_insn_changes,
37384 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
37385 (kill_value_one_regno): Call free_debug_insn_changes if needed.
37386 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
37388 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
37390 (copyprop_hardreg_forward_1): Don't call apply_change_group for
37391 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
37392 changes, call cprop_find_used_regs via note_stores.
37393 (copyprop_hardreg_forward): When copying vd from predecessor
37394 which has any queued DEBUG_INSN changes, make sure the pointers are
37395 cleared. At the end call df_analyze and then if there are any
37396 DEBUG_INSN changes queued at the end of some basic block for still
37397 live registers, apply them.
37398 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
37400 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
37402 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
37405 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
37407 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
37408 targets. Set the default with_cpu/with_arch from arch/cpu.
37409 Allow x86-64 and native for with_cpu/with_arch.
37411 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
37413 * ebitmap.c: Change calls to verify_popcount with calls to
37414 sbitmap_verify_popcount.
37415 (ebitmap_clear_bit): Fixed map->cacheindex test and
37416 map>cache update when bit clearing results in an empty
37419 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
37422 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
37423 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
37424 and support both V2DF and V2DI modes.
37425 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
37426 support both V2DF and V2DI modes.
37427 (general): Delete trailing whitespace from a few patterns.
37429 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
37430 V2DF/V2DI interleave high/low builtins.
37432 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
37435 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
37436 interleave high/low functions.
37438 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
37440 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
37441 #pragma extern_prefix.
37443 2010-02-25 Jakub Jelinek <jakub@redhat.com>
37446 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
37447 BLKmode, assert op0 is a MEM and just adjust its mode.
37450 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
37451 if bitpos isn't multiple of mode's bitsize.
37453 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
37455 * c.opt (-ftemplate-depth=): New.
37456 (-ftemplate-depth-): Deprecate.
37457 * optc-gen.awk: Handle -ftemplate-depth=.
37458 * opth-gen.awk: Likewise.
37459 * c-opts.c (c_common_handle_option): Likewise.
37460 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
37462 2010-02-24 Jason Merrill <jason@redhat.com>
37464 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
37466 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37468 * cfg.c (alloc_aux_for_block): Remove inline.
37469 (alloc_aux_for_edge): Likewise.
37471 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37473 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
37475 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37477 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
37478 * config/i386/sol2-gas.h: New file.
37479 * config.gcc (i[34567]86-*-solaris2*): Use it.
37481 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
37484 * c-typeck.c (ep_convert_and_check): New.
37485 (build_conditional_expr): Use it.
37486 (build_binary_op): Likewise.
37488 2010-02-24 Jakub Jelinek <jakub@redhat.com>
37490 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
37493 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
37494 bounds even for -O+.
37495 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
37496 expr needs to have DECL_NAME set.
37498 2010-02-24 Nick Clifton <nickc@redhat.com>
37500 * config/mep/mep.c: Include gimple.h.
37501 (mep_function_uses_sp): Delete unused function.
37502 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
37503 parameters. Use unsigned integers to count args. Return a
37504 NULL_RTX instead of an error_mark_node. Toidy up formatting.
37506 2010-02-23 Jakub Jelinek <jakub@redhat.com>
37509 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
37510 greater or equal to nelt instead of 2 * nelt.
37511 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
37514 2010-02-23 Jason Merrill <jason@redhat.com>
37517 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
37518 in cfun->local_decls even if they have register types.
37521 * stor-layout.c (place_field): Don't warn about unnecessary
37522 DECL_PACKED if the type is packed.
37524 2010-02-23 Jakub Jelinek <jakub@redhat.com>
37527 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
37528 GOTOFF relocs, even when the base reg isn't pic pointer.
37530 2010-02-23 Michael Matz <matz@suse.de>
37533 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
37534 (expand_gimple_basic_block): Generate and use debug temps if there
37535 are debug uses left after the last real use of TERed ssa names.
37536 Unlink debug immediate uses when they are expanded.
37538 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
37541 * config/i386/i386.c (override_options): Reorganise to provide
37542 better error messages.
37544 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
37546 PR middle-end/43083
37547 * graphite-scop-detection.c (create_single_exit_edge): Move
37548 the call to find_single_exit_edge to....
37549 (create_sese_edges): ...here. Don't handle multiple edges
37550 exiting the function.
37551 (build_graphite_scops): Don't handle multiple edges
37552 exiting the function.
37554 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
37556 PR middle-end/43097
37557 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
37558 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
37560 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
37562 PR middle-end/43026
37563 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
37565 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
37568 * c-typeck.c (convert_arguments): Print declaration location.
37569 * c-common.c (validate_nargs): Rename as
37570 builtin_function_validate_nargs.
37571 (check_builtin_function_arguments): Update.
37573 2010-02-22 Richard Guenther <rguenther@suse.de>
37576 * tree-inline.c (declare_return_variable): Use the type of
37577 the call stmt lhs if available.
37579 2010-02-22 Duncan Sands <baldrick@free.fr>
37581 * passes.c (register_pass): Always consider all pass lists when
37582 ref_pass_instance_number is zero.
37584 2010-02-22 Richard Guenther <rguenther@suse.de>
37586 PR tree-optimization/42749
37587 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
37588 parameter. Do arithmetic in the original type.
37589 (update_accumulator_with_ops): Likewise.
37590 (adjust_accumulator_values): Adjust.
37592 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37594 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
37595 (QI to BLKmode splitter): New splitter.
37597 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
37599 * config/i386/i386.c (initial_ix86_tune_features): Turn on
37600 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
37602 2010-02-22 Richard Guenther <rguenther@suse.de>
37604 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
37606 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
37608 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
37609 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
37610 ($(T)crti.o, $(T)crtn.o): Remove rules.
37612 2010-02-21 Tobias Burnus <burnus@net-b.de>
37615 * doc/invoke.texi (-fassociative-math): Document that this
37616 option is automatically enabled for Fortran.
37618 2010-02-20 David S. Miller <davem@davemloft.net>
37620 * configure.ac: Test if linker and assembler properly support
37621 GOTDATA_OP relocations.
37622 * configure: Rebuild.
37623 * config.in: Likewise.
37624 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
37625 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
37626 (movsi_high_pic): Likewise.
37627 (movdi_lo_sum_pic): Likewise.
37628 (movdi_high_pic): Likewise.
37629 (movsi_pic_gotdata_op): New pattern.
37630 (movdi_pic_gotdata_op): Likewise.
37631 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
37632 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
37634 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
37637 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
37638 attribute to ssemul.
37639 (xop_mulv2div2di3_high): Ditto.
37641 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
37644 * c.opt (Wconversion-null): New option.
37645 * doc/invoke.texi (Wconversion-null): Document.
37647 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
37649 * common.opt (Wlarger-than-): Add Undocumented.
37651 2010-02-19 Mike Stump <mikestump@comcast.net>
37653 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
37655 2010-02-19 Jason Merrill <jason@redhat.com>
37658 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
37659 * configure: Likewise.
37661 2010-02-20 Alan Modra <amodra@gmail.com>
37663 PR middle-end/42344
37664 * cgraph.h (cgraph_make_decl_local): Declare.
37665 * cgraph.c (cgraph_make_decl_local): New function.
37666 (cgraph_make_node_local): Use it.
37667 * cgraphunit.c (cgraph_function_versioning): Likewise.
37668 * ipa.c (function_and_variable_visibility): Likewise.
37670 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37673 * except.c (sjlj_emit_function_enter): Don't call
37674 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
37676 * rtl.h (add_reg_br_prob_note): Remove prototype.
37678 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
37681 * c-common.c (conversion_warning): Remove widening conversions
37682 before checking the conversion of integers to reals.
37684 2010-02-19 Mike Stump <mikestump@comcast.net>
37686 PR middle-end/43125
37687 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
37690 * cgraphunit.c (process_function_and_variable_attributes): Check
37691 DECL_PRESERVE_P instead of looking up attribute "used".
37692 * ipa-pure-const.c (check_decl): Likewise.
37693 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
37694 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
37695 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
37696 instead of attribute "used".
37697 * config/sol2-c.c (solaris_pragma_init): Likewise.
37698 (solaris_pragma_fini): Likewise.
37700 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37702 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
37703 Use XCNEW instead of xcalloc.
37704 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
37705 XNEW instead of xmalloc.
37706 (get_fields): Use XNEWVEC instead of xmalloc.
37709 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
37710 populate vars array.
37711 (create_new_general_access): For debug stmts just reset value.
37712 (get_stmt_accesses): For accesses within debug stmts just record them
37713 using add_access_to_acc_sites instead of preventing the peeling or
37714 counting them as accesses.
37716 PR middle-end/42233
37717 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
37719 2010-02-19 Richard Guenther <rguenther@suse.de>
37721 PR tree-optimization/42916
37722 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
37725 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
37727 * configure.ac: Replace all uses of changequote in macro arguments
37728 with proper quoting.
37730 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37732 PR middle-end/42233
37733 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
37735 2010-02-19 Richard Guenther <rguenther@suse.de>
37737 PR tree-optimization/42944
37738 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
37739 test for aliasing with errno.
37741 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37743 PR middle-end/42233
37744 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
37745 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
37746 * dojump.c: Include output.h.
37747 (inv): New inline function.
37748 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
37749 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
37750 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
37751 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
37752 argument, pass it down to other calls.
37753 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
37754 add REG_BR_PROB note to the conditional jump.
37755 * cfgexpand.c (add_reg_br_prob_note): Removed.
37756 (expand_gimple_cond): Don't call it, add the probability
37757 as last argument to jumpif_1/jumpifnot_1.
37758 * Makefile.in (dojump.o): Depend on output.h.
37759 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
37761 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
37762 * stmt.c (do_jump_if_equal): Likewise.
37763 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
37764 * loop-unswitch.c (compare_and_jump_seq): Likewise.
37765 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
37767 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
37768 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
37769 jumpifnot_1 callers.
37770 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
37772 (store_expr): Adjust jumpifnot caller.
37773 (store_constructor): Adjust jumpif caller.
37775 PR middle-end/42233
37776 * gimplify.c (gimple_boolify): For __builtin_expect call
37777 gimple_boolify also on its first argument.
37779 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
37781 * configure.ac (gnu-unique-object): Wrap regexps using [] in
37783 (__stack_chk_fail): Ditto. Remove quadrigraphs.
37784 * configure: Regenerated.
37786 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37788 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
37789 lang_hooks.types_compatible_p instead of comptypes.
37791 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
37793 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
37794 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
37795 if __prefer_thumb__ is defined.
37797 2010-02-18 Martin Jambor <mjambor@suse.cz>
37799 PR tree-optimization/43066
37800 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
37801 array with zero-sized element type.
37803 2010-02-18 Jakub Jelinek <jakub@redhat.com>
37805 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
37806 rtx, allocate struct var_loc_node here and return it to the
37807 caller, and only if it is actually needed.
37808 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
37809 move it earlier and return immediately if it returns NULL.
37811 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
37813 * config/sparc/gas.h: New file. Restore
37814 TARGET_ASM_NAMED_SECTION to its ELF default.
37815 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
37816 check !HAVE_GNU_AS.
37817 * config/sparc/sparc.c (sparc_elf_asm_named_section):
37818 Likewise. Add ATTRIBUTE_UNUSED to prototype.
37819 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
37820 after sparc/sysv4.h.
37822 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
37824 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
37826 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
37828 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
37829 patterns from predicated pattern.
37831 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
37834 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
37835 for insn mnemonic suffix.
37837 2010-02-17 Richard Guenther <rguenther@suse.de>
37839 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
37842 2010-02-17 Jakub Jelinek <jakub@redhat.com>
37845 * caller-save.c (save_call_clobbered_regs): If BB ends with
37846 a DEBUG_INSN, move any notes in between last real insn and the last
37847 DEBUG_INSN after the last DEBUG_INSN.
37849 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
37851 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
37852 Fix return type. Fix argument type. Explain meaning of return value.
37854 2010-02-16 Richard Guenther <rguenther@suse.de>
37856 PR tree-optimization/41043
37857 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
37858 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
37860 (vrp_visit_phi_node): ... but only for loop PHI nodes.
37862 2010-02-16 Ira Rosen <irar@il.ibm.com>
37864 PR tree-optimization/43074
37865 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
37866 * tree-vect-loop.c (vect_analyze_loop_operations): Add
37867 vectorizable cycles in hybrid SLP check.
37868 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
37870 2010-02-16 Richard Guenther <rguenther@suse.de>
37872 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
37873 (true_dependence): If memrefs_conflict_p computes must-alias
37874 trust it. Move TBAA check after offset-based disambiguation.
37875 (canon_true_dependence): Likewise.
37877 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
37879 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
37880 * doc/invoke.texi: Document it.
37881 * var-tracking.c: Include toplev.h and params.h.
37882 (vt_find_locations): Return bool indicating success. Compute
37883 hash sizes unconditionally. Check new parameter, report.
37884 (variable_tracking_main_1): Check vt_find_locations results and
37885 retry. Renamed from...
37886 (variable_tracking_main): ... this. New wrapper to preserve
37887 flag_var_tracking_assignments.
37888 * Makefile.in (var-tracking.o): Adjust dependencies.
37890 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
37891 Jakub Jelinek <jakub@redhat.com>
37894 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
37895 if weak_import attribute is present.
37896 * config/darwin.c (machopic_select_section): Likewise.
37898 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
37900 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
37901 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
37902 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
37903 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
37905 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
37908 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
37909 Fix argument types.
37911 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
37912 Rewrite text to refer to the names.
37914 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
37916 * config/i386/i386-builtin-types.def
37917 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
37918 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
37919 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
37920 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
37921 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
37922 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
37923 IX86_BUILTIN_VPERMIL2PS256.
37924 (MULTI_ARG_4_DF2_DI_I): Defined.
37925 (MULTI_ARG_4_DF2_DI_I1): Defined.
37926 (MULTI_ARG_4_SF2_SI_I): Defined.
37927 (MULTI_ARG_4_SF2_SI_I1): Defined.
37928 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
37929 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
37930 __builtin_ia32_vpermil2ps256.
37931 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37932 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37933 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
37934 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37935 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37936 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
37937 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
37938 CODE_FOR_xop_vpermil2v8sf3.
37939 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
37940 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
37941 * config/i386/xopintrin.h (_mm_permute2_pd): New.
37942 (_mm256_permute2_pd): New.
37943 (_mm_permute2_ps): New.
37944 (_mm256_permute2_ps): New.
37946 2010-02-15 Nick Clifton <nickc@redhat.com>
37948 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
37949 boolean parameters. Use emit_jump_insn when emitting a pop
37950 instruction containing a return insn.
37951 (push): Use 'true' rather than '1' as second parameter to F.
37952 (h8300_expand_prologue): Likewise.
37953 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
37954 (h8300_expand_epilogue): Likewise.
37956 2010-02-15 Richard Guenther <rguenther@suse.de>
37958 PR middle-end/43068
37959 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
37962 2010-02-15 Nick Clifton <nickc@redhat.com>
37964 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
37967 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
37969 * intl.c (fake_ngettext): New function.
37970 * intl.h (fake_ngettext): Declare.
37971 (ngettext): Define macro.
37972 * collect2.c (notice_translated): New function.
37973 (main): Use notice_translated and ngettext.
37974 * collect2.h (notice_translated): Declare.
37976 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
37978 * reorg.c (delete_computation): Comment fixes.
37979 * caller-save.c (setup_save_areas): Idem.
37980 * sel-sched-dump.c (dump_lv_set): Idem.
37983 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37985 * config/s390/s390.c (s390_sched_init): New function.
37986 (TARGET_SCHED_INIT): Target hook defined.
37988 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
37989 Jack Howarth <howarth@bromo.med.uc.edu>
37990 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
37993 Partial revert of unintended change in fix for PR41605.
37994 * config/darwin.h: Fix typo.
37995 * config/darwin9.h: Same.
37997 2010-02-11 Jakub Jelinek <jakub@redhat.com>
37999 * c-pch.c (pch_init): Clear v.
38001 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38003 PR middle-end/42930
38004 * graphite-scop-detection.c (graphite_can_represent_scev): Call
38005 graphite_can_represent_init for MULT_EXPR.
38007 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38009 PR middle-end/42914
38010 PR middle-end/42530
38011 * graphite-sese-to-poly.c (remove_phi): New.
38012 (translate_scalar_reduction_to_array): Call remove_phi.
38014 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38016 PR middle-end/42771
38017 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
38018 * graphite-clast-to-gimple.h (gloog): Update declaration.
38019 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
38020 * graphite-poly.h (struct poly_bb): Add missing comments.
38021 (struct scop): Add poly_scop_p field.
38022 (POLY_SCOP_P): New.
38023 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
38024 * graphite.c (graphite_transform_loops): Build the polyhedral
38025 representation for each scop before code generation.
38026 * sese.c (rename_variables_in_operand): Removed.
38027 (rename_variables_in_expr): Return the renamed expression.
38028 (rename_sese_parameters): New.
38029 * sese.h (rename_sese_parameters): Declared.
38031 2010-02-11 Richard Guenther <rguenther@suse.de>
38033 PR tree-optimization/42998
38034 * tree-ssa-pre.c (create_expression_by_pieces): Treat
38035 POINTER_PLUS_EXPR properly.
38037 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38038 Changpeng Fang <changpeng.fang@amd.com>
38040 PR middle-end/40886
38041 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
38042 the cost of an IV candidate when the IV is used in a test against zero.
38044 * gcc.dg/tree-ssa/ivopts-3.c: New.
38046 2010-02-11 Richard Guenther <rguenther@suse.de>
38049 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
38050 pointer-vs-decl case by swapping refs. Handle some cases
38051 of pointer-vs-decl disambiguations more conservatively.
38052 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
38053 to false after expanding.
38055 2010-02-11 Richard Guenther <rguenther@suse.de>
38058 * gcc.c (process_command): Handle LTO file@offset case more
38061 2010-02-11 Jakub Jelinek <jakub@redhat.com>
38063 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
38064 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
38066 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
38068 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
38069 if MEM's mode size isn't DWARF2_ADDR_SIZE.
38070 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
38071 Optimize eq/ne comparisons when both arguments are known to be
38073 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
38074 Don't mask operands unnecessarily if they are known to be already
38077 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
38079 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
38082 2010-02-10 Richard Guenther <rguenther@suse.de>
38084 PR tree-optimization/43017
38085 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
38086 for wrapping signed arithmetic.
38088 2010-02-10 Jakub Jelinek <jakub@redhat.com>
38091 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
38092 if no debug info should be emitted for it.
38094 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
38096 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
38097 note when flag_exceptions is set.
38099 2010-02-10 Duncan Sands <baldrick@free.fr>
38101 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
38103 2010-02-10 Richard Guenther <rguenther@suse.de>
38106 * tree.c (get_unwidened): Handle constants.
38107 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
38109 2010-02-10 Martin Jambor <mjambor@suse.cz>
38112 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
38113 check for variable argument counts independently.
38115 2010-02-10 Christian Bruel <christian.bruel@st.com>
38118 * config/sh/sh.c (find_barrier): Increase length for non delayed
38119 conditional branches.
38121 2010-02-10 Christian Bruel <christian.bruel@st.com>
38123 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
38125 2010-02-10 Jakub Jelinek <jakub@redhat.com>
38127 * builtins.c (set_builtin_user_assembler_name): Also handle
38128 ffs if int is smaller than word.
38130 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
38132 PR middle-end/42973
38133 * ira-conflicts.c (get_dup): Remove.
38134 (process_reg_shuffles): Add new parameter. Use it as an
38135 additional guard for copy generation.
38136 (add_insn_allocno_copies): Rewrite.
38138 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
38140 * common.opt (fsched2-use-traces): Preserved for backward
38142 * doc/invoke.texi: Remove the documentation about option
38143 -fsched2-use-traces.
38144 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
38145 flag_sched2_use_traces.
38146 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
38147 the backward compatibility flag section.
38149 2010-02-09 Richard Guenther <rguenther@suse.de>
38151 PR tree-optimization/43008
38152 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
38153 make HEAP variables initialized from global memory if they
38154 are not known builtin functions.
38155 (find_func_aliases): Adjust.
38157 2010-02-09 Richard Guenther <rguenther@suse.de>
38159 PR tree-optimization/43000
38160 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
38161 arithmetic manually.
38163 2010-02-08 Jakub Jelinek <jakub@redhat.com>
38165 PR tree-optimization/42931
38166 * tree-loop-linear.c (try_interchange_loops): Don't call
38167 double_int_mul if estimated_loop_iterations failed.
38169 2010-02-08 Martin Jambor <mjambor@suse.cz>
38171 PR middle-end/42898
38172 * tree-sra.c (build_accesses_from_assign): Do not mark in
38173 should_scalarize_away_bitmap if stmt has volatile ops.
38174 (sra_modify_assign): Do not process assigns piecemeal if if stmt
38177 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
38179 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
38181 2010-02-07 Adam Nemet <adambnmet@gmail.com>
38183 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
38184 before the pattern.
38186 2010-02-07 Andrew Pinski <pinskia@gmail.com>
38188 PR middle-end/42946
38189 * df-core.c (df_finish_pass): Change type of saved_flags to int.
38191 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
38193 PR middle-end/42988
38194 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
38195 to unknown_dependence.
38196 (graphite_legal_transform_dr): Handle the unknown_dependence.
38197 (graphite_carried_dependence_level_k): Same.
38199 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
38201 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
38203 2010-02-07 Richard Guenther <rguenther@suse.de>
38205 PR middle-end/42991
38206 * expr.c (get_inner_reference): Always initialize *pbitsize.
38208 2010-02-07 Richard Guenther <rguenther@suse.de>
38210 PR middle-end/42956
38211 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
38212 new ARRAY_REFs on variable size element or minimal index arrays.
38214 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
38215 gimple_fold_indirect_ref.
38217 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
38220 * arm.c (arm_override_options): Just return if the user has specified
38221 an invalid fpu name.
38223 2010-02-03 Jason Merrill <jason@redhat.com>
38226 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
38227 i386_pe_maybe_record_exported_symbol.
38229 2010-02-05 Steve Ellcey <sje@cup.hp.com>
38232 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
38233 (pa_delegitimize_address): New function.
38235 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
38237 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
38238 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
38240 2010-02-05 Richard Guenther <rguenther@suse.de>
38243 * lto-streamer-in.c (get_resolution): Deal with references
38244 to undefined functions.
38246 2010-02-05 Richard Guenther <rguenther@suse.de>
38248 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
38249 (fold_const_aggregate_ref): Likewise.
38250 (ccp_fold_stmt): Substitute loads.
38251 (maybe_fold_reference): Verify types before substituting.
38253 (fold_gimple_assign): Unshare properly.
38254 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
38256 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
38258 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
38259 for rs6000_gen_cell_microcode.
38261 2010-02-04 Richard Guenther <rguenther@suse.de>
38263 PR rtl-optimization/42952
38264 * dse.c (const_or_frame_p): Remove MEM handling.
38266 2010-02-04 Nick Clifton <nickc@redhat.com>
38268 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
38269 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
38270 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
38271 (mn10300_asm_output_mi_thunk): New function.
38272 (mn10300_can_output_mu_thunk): New function.
38273 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
38274 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
38275 (FUNCTION_ARG): Delete incorrect comment.
38277 2010-02-03 Jason Merrill <jason@redhat.com>
38280 * fold-const.c (operand_equal_p): Handle erroneous types.
38282 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
38284 * config/h8300/h8300.md (can_delay): Fix attibute condition.
38286 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
38288 PR rtl-optimization/42941
38289 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
38292 2010-02-03 Jason Merrill <jason@redhat.com>
38295 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
38297 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
38300 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
38301 (cselib_reset_table): Renamed from...
38302 (cselib_reset_table_with_next_value): ... this.
38303 (cselib_get_next_uid): Renamed from...
38304 (cselib_get_next_unknown_value): ... this.
38305 * cselib.c (next_uid): Renamed from...
38306 (next_unknown_value): ... this.
38307 (cselib_clear_table): Adjust.
38308 (cselib_reset_table): Adjust. Renamed from...
38309 (cselib_reset_table_with_next_value): ... this.
38310 (cselib_get_next_uid): Adjust. Renamed from...
38311 (cselib_get_next_unknown_value): ... this.
38312 (get_value_hash): Use hash.
38313 (cselib_hash_rtx): Likewise.
38314 (new_cselib_val): Adjust. Set and dump uid.
38315 (cselib_lookup_mem): Pass next_uid as hash.
38316 (cselib_subst_to_values): Likewise.
38317 (cselib_log_lookup): Dump uid.
38318 (cselib_lookup): Pass next_uid as hash. Adjust.
38319 (cselib_process_insn): Adjust.
38320 (cselib_init): Initialize next_uid.
38321 (cselib_finish): Adjust.
38322 (dump_cselib_table): Likewise.
38323 * dse.c (canon_address): Dump value uid.
38324 * print-rtl.c (print_rtx): Print value uid.
38325 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
38327 (dv_uid): New function, sort of renamed from...
38328 (dv_htab_hash): ... this, reimplemented in terms of it and...
38329 (dv_uid2hash): ... this. New.
38330 (variable_htab_eq): Drop excess assertions.
38331 (tie_break_pointers): Removed.
38332 (canon_value_cmp): Compare uids.
38333 (variable_post_merge_New_vals): Print uids.
38334 (vt_add_function_parameters): Adjust.
38335 (vt_initialize): Reset table. Adjust.
38337 2010-02-03 Richard Guenther <rguenther@suse.de>
38339 PR tree-optimization/42944
38340 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
38341 (call_may_clobber_ref_p_1): Likewise. Properly handle
38342 malloc and calloc clobbering errno.
38344 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
38346 * doc/invoke.texi: Fix name of sched1 dump.
38348 * opts.c (decode_options): Set flag_tree_switch_conversion
38349 only conditionally on optimize >= 2.
38351 * gcse.c: Assorted comment fixes in pass description.
38353 2010-02-03 Anthony Green <green@moxielogic.com>
38355 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
38356 nop padding in order to maintain alignment of storage location of
38357 target function address.
38358 (moxie_trampoline_init): Store target function address at newly
38360 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
38362 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
38364 2010-02-03 Richard Guenther <rguenther@suse.de>
38366 PR middle-end/42927
38367 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
38369 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38371 * config.gcc: Reenable check for obsolete targets.
38372 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
38373 mips-sgi-irix6.[0-4]*.
38375 2010-02-02 Nick Clifton <nickc@redhat.com>
38377 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
38378 constant size of 4 as being the same as 0.
38379 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
38380 can take values in the range 0..4.
38382 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
38385 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
38386 as _darwin10_Unwind_FindEnclosingFunction().
38387 * libgcc-libsystem.ver: New.
38389 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
38392 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
38393 implicitly set registers.
38395 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
38397 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
38398 (arm_override_options): Allow automatic selection of the thread
38399 pointer register if thumb2.
38400 (legitimize_pic_address): Improve code sequences for Thumb2.
38401 (arm_call_tls_get_addr): Likewise.
38402 (legitimize_tls_address): Likewise.
38403 * arm.md (pic_load_addr_arm): Delete. Replace with ...
38404 (pic_load_addr_32bit): ... this. New named pattern.
38405 * thumb2.md (pic_load_addr_thumb2): Delete.
38406 (pic_load_dot_plus_four): Delete.
38407 (tls_load_dot_plus_four): New named pattern.
38409 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38412 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
38413 Document fix for TLS bug.
38415 2010-01-31 Richard Guenther <rguenther@suse.de>
38417 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
38418 conservatively correct.
38420 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38424 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38426 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38428 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38430 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
38432 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
38434 * config.gcc: Adjust order of makefile fragments for mingw targets.
38436 2010-01-31 Richard Guenther <rguenther@suse.de>
38438 PR middle-end/42898
38439 * gimplify.c (gimplify_init_constructor): For volatile LHS
38440 initialize a temporary.
38442 2010-01-31 Matthias Klose <doko@ubuntu.com>
38444 * configure.ac: Fix __stack_chk_fail check for cross builds configured
38446 * configure: Regenerate.
38448 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
38450 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
38451 the same alias set and their sizes different constantness.
38452 (aliasing_component_refs_p): Revert 2009-10-24 change.
38454 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38456 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
38459 2010-01-29 Richard Guenther <rguenther@suse.de>
38461 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
38462 Assert we successfully updated the call.
38464 2010-01-29 Jakub Jelinek <jakub@redhat.com>
38466 PR rtl-optimization/42889
38467 * df.h (df_set_bb_dirty_nonlr): New prototype.
38468 * df-core.c (df_set_bb_dirty_nonlr): New function.
38469 * df-scan.c (df_insn_rescan): Call it instead of
38470 df_set_bb_dirty for DEBUG_INSNs.
38472 2010-01-29 Richard Guenther <rguenther@suse.de>
38474 PR middle-end/37448
38475 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
38476 quadratic behavior in most cases.
38478 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
38481 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
38482 in the call to gen_x86_movsicc_0_m1.
38484 2010-01-28 Richard Guenther <rguenther@suse.de>
38486 PR tree-optimization/42871
38487 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
38489 2010-01-28 Richard Guenther <rguenther@suse.de>
38491 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
38492 into call arguments.
38494 2010-01-28 Richard Guenther <rguenther@suse.de>
38496 PR middle-end/42883
38497 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
38498 the forwarder if the destination is an EH landing pad.
38500 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
38502 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
38503 block list passed to gimple_duplicate_sese_tail.
38504 (parallelize_loops): Avoid parallelization when the function
38505 has_nonlocal_label.
38506 Avoid parallelization when the preheader is IRREDUCIBLE.
38507 Try to optimize when estimated_loop_iterations_int is unresolved.
38508 Add the loop's location to the dump file.
38509 * tree-cfg.c (add_phi_args_after_redirect): Remove.
38510 (gimple_duplicate_sese_tail): Remove the check for the latch.
38511 Redirect nexits to the exit block.
38512 Remove handling of the incoming edges to the latch.
38513 Redirect the backedge from the copied latch to the exit bb.
38515 2010-01-28 Michael Matz <matz@suse.de>
38518 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
38519 Wrap force_reg into a sequence, emit it before user.
38521 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
38523 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
38525 (arm_legacy_rev): Likewise.
38526 (thumb_legacy_rev): Likewise.
38528 2010-01-27 Jakub Jelinek <jakub@redhat.com>
38530 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
38531 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
38532 on MEM's address failed, try avoid_constant_pool_reference and
38533 recurse if it returned something different.
38534 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
38535 address, try avoid_constant_pool_reference and recurse if it
38536 returned something different.
38537 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
38538 address and avoid_constant_pool_reference returned something
38539 different, don't set have_address.
38541 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
38544 * var-tracking.c (val_store): Add modified argument, obey it.
38546 (count_uses): Move down logging of main.
38547 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
38548 don't need resolution.
38549 (emit_notes_in_bb): Likewise.
38551 2010-01-27 Richard Guenther <rguenther@suse.de>
38553 PR middle-end/42878
38554 * tree-inline.c (remap_decl): Delay remapping of SSA name
38555 default definitions until we need them.
38557 2010-01-27 Jakub Jelinek <jakub@redhat.com>
38559 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
38560 (rs6000_delegitimize_address): New function.
38562 * config/s390/s390.c (s390_delegitimize_address): Call
38563 delegitimize_mem_from_attrs.
38565 PR middle-end/42874
38566 * tree-inline.c (cannot_copy_type_1): Removed.
38567 (copy_forbidden): Don't forbid copying of functions containing
38568 records/unions with variable length fields.
38570 2010-01-27 Christian Bruel <christian.bruel@st.com>
38574 * config/sh/sh.c (find_barrier): Increase length for non delayed
38575 conditional branches.
38577 2010-01-27 Matthias Klose <doko@ubuntu.com>
38579 * configure.ac (gnu-unique-object): Fix ldd version check.
38580 * configure: Regenerate.
38582 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38584 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
38586 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
38587 Test for HAVE_GNU_AS value.
38589 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38591 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
38592 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
38593 INT64_TYPE): Define.
38594 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
38595 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
38596 INT_LEAST64_TYPE): Define.
38597 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
38598 UINT_LEAST64_TYPE): Define.
38599 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
38600 INT_FAST64_TYPE): Define.
38601 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
38602 UINT_FAST64_TYPE): Define.
38603 (INTMAX_TYPE, UINTMAX_TYPE): Define.
38604 (INTPTR_TYPE, UINTPTR_TYPE): Define.
38605 (SIG_ATOMIC_TYPE): Define.
38607 2010-01-26 Richard Guenther <rguenther@suse.de>
38609 * df-scan.c (df_scan_set_bb_info): Remove assert.
38610 (df_insn_rescan_debug_internal): Merge asserts.
38611 (df_install_ref): Likewise.
38612 (df_mark_reg): Use bitmap_set_range.
38613 (df_hard_reg_used_p): Remove assert.
38614 (df_hard_reg_used_count): Likewise.
38616 2010-01-26 Richard Guenther <rguenther@suse.de>
38618 PR rtl-optimization/42685
38619 * web.c (web_main): Ignore DEBUG_INSNs.
38621 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
38623 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
38625 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
38626 Fix types of fndecl and arglist parameters.
38628 2010-01-26 Richard Guenther <rguenther@suse.de>
38630 PR middle-end/42806
38631 * tree-eh.c (unsplit_eh): Skip debug insns.
38633 2010-01-26 Richard Guenther <rguenther@suse.de>
38635 PR tree-optimization/42250
38636 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
38638 2010-01-26 Jakub Jelinek <jakub@redhat.com>
38641 * omp-low.c (expand_omp_sections): Only use single_pred if
38642 l2_bb is single_pred_p.
38644 2010-01-25 Christian Bruel <christian.bruel@st.com>
38647 * config/sh/sh.c (find_barrier): Increase length for non delayed
38648 conditional branches.
38649 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
38651 2010-01-24 David S. Miller <davem@davemloft.net>
38653 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
38654 define if not using GAS.
38655 * config/sparc/sparc.c (sparc_elf_asm_named_section):
38656 Likewise. Delete SECTION_MERGE code, which is only applicable
38659 2010-01-24 Mark Mitchell <mark@codesourcery.com>
38662 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
38663 mangling of va_list in system headers.
38665 2010-01-23 Toon Moene <toon@moene.org>
38667 * tree-predcom.c (combine_chains): Return NULL, not false.
38669 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
38671 * tree-loop-distribution.c (distribute_loop): Fix declaration and
38672 initialization of variable res to agree with return type.
38674 2010-01-22 Steve Ellcey <sje@cup.hp.com>
38676 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
38677 * tree-sra.c: Add include of expr.h.
38679 2010-01-22 Jakub Jelinek <jakub@redhat.com>
38681 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
38682 insert the debug stmt on the single non-EH edge from the stmt.
38684 2010-01-22 Richard Henderson <rth@redhat.com>
38687 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
38688 the RHS until after generate_subtree_copies has insertted its
38689 code before the current statement.
38691 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
38693 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
38695 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
38697 2010-01-21 Martin Jambor <mjambor@suse.cz>
38699 PR tree-optimization/42585
38700 * tree-sra.c (struct access): New field grp_total_scalarization.
38701 (dump_access): Dump the new field.
38702 (should_scalarize_away_bitmap): New variable.
38703 (cannot_scalarize_away_bitmap): Likewise.
38704 (sra_initialize): Allocate new bitmaps.
38705 (sra_deinitialize): Free new bitmaps.
38706 (create_access_1): New function.
38707 (create_access): Parts moved to create_access_1.
38708 (type_consists_of_records_p): New function.
38709 (completely_scalarize_record): Likewise.
38710 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
38711 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
38712 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
38714 (analyze_all_variable_accesses): Completely scalarize small eligible
38717 2010-01-21 Martin Jambor <mjambor@suse.cz>
38719 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
38721 2010-01-21 Andrew Haley <aph@redhat.com>
38723 * gcc.c (process_command): Move lang_specific_driver before
38724 setting cc_libexec_prefix.
38726 2010-01-21 Richard Guenther <rguenther@suse.de>
38728 PR middle-end/19988
38729 * fold-const.c (negate_expr_p): Pretend only negative
38730 real constants are easily negatable.
38732 2010-01-20 Janis Johnson <janis187@us.ibm.com>
38733 Jason Merrill <jason@redhat.com>
38735 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
38736 (TYPE_TRANSPARENT_AGGR): this, for union and record.
38737 * calls.c (initialize argument_information): Handle it.
38738 * c-common.c (handle_transparent_union_attribute): Use new name.
38739 * c-decl.c (finish_struct): Ditto.
38740 * c-typeck.c (type_lists_compatible_p): Ditto.
38741 (convert_for_assignment): Use new name and also handle record.
38742 * function.c (aggregate_value_p): Handle it.
38743 (pass_by_reference): Ditto.
38744 (assign_parm_data_types): Ditto.
38745 * print-tree.c (print_node): Ditto.
38746 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
38747 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
38748 * tree.c (first_field): New fn.
38750 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
38753 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
38754 even when linking statically, for now.
38756 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38759 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
38760 without a cselib val.
38761 (count_uses): Accept MO_VAL_SET with no val on stores.
38762 (add_stores): Likewise.
38764 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38766 * var-tracking.c (check_value_val): Add a compile time assertion.
38767 (dv_is_decl_p): Simplify.
38768 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
38769 gcc_assert if ENABLE_CHECKING.
38771 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38774 * var-tracking.c: Include tree-flow.h.
38775 (mem_dies_at_call): New.
38776 (dataflow_set_preserve_mem_locs): Use it.
38777 (dataflow_set_remove_mem_locs): Likewise.
38778 (dump_var): Renamed from dump_variable. Adjust all callers.
38779 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
38780 * Makefile.in (var-tracking.o): Adjust deps.
38782 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
38784 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
38786 2010-01-20 Richard Guenther <rguenther@suse.de>
38788 PR tree-optimization/42717
38789 * tree-ssa-dce.c (get_live_post_dom): Remove.
38790 (forward_edge_to_pdom): Take an arbitrary edge to copy
38791 degenerate PHI args from.
38792 (remove_dead_stmt): Use the first post-dominator even if it
38793 does not contain live statements as redirection destination.
38795 2010-01-20 Richard Guenther <rguenther@suse.de>
38797 * tree-inline.c (estimate_num_insns): Handle EH builtins.
38799 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38801 * sel-sched.c (create_speculation_check): Remove set but not used
38803 (try_transformation_cache): Remove set but not used variable ds.
38804 (calculate_privileged_insns): Remove set but not used variables
38805 cur_insn and min_spec_insn.
38806 (find_best_expr): Remove set but not used variable avail_n.
38807 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
38809 * cgraphunit.c (assemble_thunk): Remove set but not used variable
38811 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
38812 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
38813 new_scop_exit_edge.
38815 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
38818 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
38819 cpu types. Add support for *-sse3 cpu types.
38820 (x86_64-*-*): Ditto.
38822 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38824 PR middle-end/42803
38825 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
38826 argument, call initializer_constant_valid_p_1 instead of
38827 initializer_constant_valid_p, pass CACHE to it, return NULL
38828 immediately if first call returns NULL.
38829 (initializer_constant_valid_p_1): New function.
38830 (initializer_constant_valid_p): Use it.
38832 2010-01-20 Thomas Quinot <quinot@adacore.com>
38834 * tree.def (PLACEHOLDER_EXPR): Fix comment.
38836 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38838 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
38839 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
38840 (loc_list_from_tree): Don't handle unsigned division. Handle
38841 signed modulo using DW_OP_{over,over,div,mul,minus}.
38842 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
38843 modulo instead of signed.
38845 2010-01-20 DJ Delorie <dj@redhat.com>
38847 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
38849 (h8300_emit_stack_adjustment): Propogate it.
38851 (h8300_expand_prologue): Likewise.
38852 (h8300_expand_epilogue): Likewise.
38854 2010-01-19 Michael Matz <matz@suse.de>
38856 PR tree-optimization/41783
38857 * tree-data-ref.c (toplevel): Include flags.h.
38858 (dump_data_dependence_relation): Also dump the inputs if the
38859 result will be unknown.
38860 (split_constant_offset_1): Look through some conversions.
38861 * tree-predcom.c (determine_roots_comp): Restart a new chain if
38862 the offset from last element is too large.
38863 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
38864 (reassociate_to_the_same_stmt): Handle vector registers.
38865 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
38866 (e.g. conversions).
38867 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
38868 wide_prolog_niters argument, emit widening instructions.
38869 (vect_do_peeling_for_alignment): Adjust caller, use widened
38870 variant of the iteration cound.
38871 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
38873 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38876 * config/arm/neon-testgen.m (emit_automatics): New parameter
38877 features. Adjust for Fixed_return_reg feature.
38878 (test_intrinsic): Call emit_automatics with new feature.
38879 * config/arm/neon.ml: Update copyright years.
38880 (features): New Fixed_return_reg feature.
38881 (ops): Update feature for Vget_low.
38883 2010-01-19 Jakub Jelinek <jakub@redhat.com>
38885 PR tree-optimization/42719
38886 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
38890 * fwprop.c (all_uses_available_at): Return false if def_set dest
38891 is a REG that is used in def_insn.
38893 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
38895 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
38897 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
38898 Add argument names.
38900 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
38902 * target.h (struct gcc_target) <secondary_reload>: Change type
38903 of last argument to secondary_reload_info *.
38905 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
38908 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
38909 memory references with unaligned offsets. Remove CQImode handling.
38910 (unaligned_memory_operand): Return 1 for memory references with
38911 unaligned offsets. Remove CQImode handling.
38913 2010-01-18 Richard Guenther <rguenther@suse.de>
38915 PR middle-end/39954
38916 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
38919 2010-01-18 Richard Guenther <rguenther@suse.de>
38921 PR tree-optimization/42781
38922 * tree-ssa-structalias.c (find_what_var_points_to): Skip
38923 restrict processing only if the original variable was artificial.
38925 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
38927 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
38928 find number of popped argument bytes.
38930 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
38931 Fix the text that describes the return value for invalid insns.
38933 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
38935 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
38936 Clarify what 'cost of the -dependence' is. Fix quoting.
38938 * toplev.c (default_get_pch_validity): Rename argument to "sz".
38939 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
38941 2010-01-17 Jakub Jelinek <jakub@redhat.com>
38943 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
38944 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
38946 2010-01-17 Richard Guenther <rguenther@suse.de>
38948 PR middle-end/42248
38949 * function.c (split_complex_args): Take a VEC to modify.
38950 (assign_parms_augmented_arg_list): Build a VEC instead of
38951 a chain of PARM_DECLs.
38952 (assign_parms_unsplit_complex): Take a VEC of arguments.
38953 Do not fixup unmodified parms.
38954 (assign_parms): Deal with the VEC.
38955 (gimplify_parameters): Likewise.
38957 2010-01-17 Richard Guenther <rguenther@suse.de>
38959 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
38960 node existence check.
38961 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
38962 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
38963 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
38964 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
38965 (gimple_execute_on_growing_pred): Likewise.
38967 2010-01-17 Richard Guenther <rguenther@suse.de>
38969 PR tree-optimization/42773
38970 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
38971 (compute_antic_aux): Likewise.
38972 (compute_partial_antic_aux): Likewise.
38974 2010-01-17 Jie Zhang <jie.zhang@analog.com>
38977 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
38980 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
38982 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
38985 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
38986 Fix markup for strict argument.
38988 (TARGET_SCHED_REORDER2): Fix argument types.
38990 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
38991 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
38993 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
38994 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
38996 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
38999 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
39000 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
39001 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
39002 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
39003 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
39005 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
39007 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
39009 (TARGET_ASM_RELOC_RW_MASK): Add return type.
39010 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
39012 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
39014 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
39017 (TARGET_ASM_NAMED_SECTION): Fix argument list.
39019 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
39020 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
39022 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
39024 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
39026 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
39027 referring to it. Fix language.
39029 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
39031 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
39033 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
39035 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
39037 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
39038 '@var{stream}. Remove stray 'and'.
39040 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
39042 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
39044 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
39046 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
39047 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
39049 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
39050 Fix description of return value.
39051 Rename argument "sz" to "len."
39053 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
39054 Clarify meaning of 'true' return value.
39056 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
39058 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
39059 rep_mode versus mode_rep.
39061 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
39063 (TARGET_BUILTIN_DECL): Fix name.
39065 (TARGET_COMMUTATIVE_P): Fix type of first argument.
39067 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
39069 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
39071 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
39073 (TARGET_RELAXED_ORDERING): Use @deftypevr.
39075 (TARGET_GET_DRAP_RTX): Note that this is a hook.
39078 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
39079 Rename argument tm_fn to md_fn.
39081 (TARGET_OPTION_PRINT): Fix argument list.
39083 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
39086 * config/i386/i386.c (ix86_fixup_binary_operands):
39087 Revert FMA4 fixup of operands.
39089 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39092 * Makefile.in (write_entries_to_file, install-plugin):
39093 Use \012 instead of \n with tr.
39095 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
39097 * configure.ac (HAVE_AS_REF): New C macro.
39098 * configure: Regenerate.
39099 * config.in: Likewise.
39100 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
39102 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
39105 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
39107 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
39109 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
39111 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
39113 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
39115 (TARGET_IN_SMALL_DATA_P): Fix argument type.
39117 (TARGET_BINDS_LOCAL_P): Fix argument type.
39119 (TARGET_ASM_FILE_END): Use prototype.
39121 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
39123 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
39125 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
39127 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
39129 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
39130 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
39132 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
39133 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
39135 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
39136 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
39137 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
39138 (TARGET_ADDR_SPACE_CONVERT): Likewise.
39140 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
39142 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
39144 (TARGET_INIT_BUILTINS): Use prototype.
39146 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
39147 Put 'const char *' in braces. Fix parameter types.
39148 (TARGET_INVALID_CONVERSION): Fix parameter types.
39149 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
39150 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
39152 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
39155 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
39157 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
39159 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
39161 * doc/tm.texi (TARGET_HELP): Fix return type.
39163 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
39164 in braces. Fix argument types.
39166 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
39168 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
39170 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
39172 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
39173 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
39175 (TARGET_MANGLE_TYPE): Fix argument types.
39177 (TARGET_IRA_COVER_CLASSES): Use prototype.
39179 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
39181 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
39183 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
39185 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
39187 (TARGET_CALLEE_COPIES): Fix argument types.
39189 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
39191 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
39193 (TARGET_FUNCTION_VALUE): Fix argument types.
39195 (TARGET_RETURN_IN_MSB): Fix argument type.
39197 (TARGET_RETURN_IN_MEMORY): Fix argument types.
39199 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
39201 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
39203 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
39204 agree with return type.
39206 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
39208 2010-01-15 Jing Yu <jingyu@google.com>
39210 PR rtl-optimization/42691
39211 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
39212 a pseudo to a constant and are merged, and adjust comments.
39214 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
39216 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
39218 2010-01-15 Richard Guenther <rguenther@suse.de>
39220 PR middle-end/42739
39221 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
39222 labels of computed or non-local gotos to the destination.
39223 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
39224 landing pad label is the first label.
39226 2010-01-15 Richard Guenther <rguenther@suse.de>
39228 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
39230 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
39233 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
39234 to allow generation of the xssqrtdp instruction on power7.
39235 (sqrtdf2_fpr): Ditto.
39237 2010-01-14 Jakub Jelinek <jakub@redhat.com>
39239 PR middle-end/42674
39240 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
39241 functions with noreturn attribute.
39244 * varasm.c (declare_weak): Add weak attribute to decl if it
39245 doesn't have one already.
39246 (assemble_external): Only add decls to weak_decls if they also
39247 have weak attribute.
39249 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
39251 * var-tracking.c (var_reg_delete): Don't delete the association
39252 between REGs and values or one-part variables if the register
39255 2010-01-14 Jakub Jelinek <jakub@redhat.com>
39258 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
39259 because its first operand is a non-localized variable.
39261 2010-01-14 Martin Jambor <mjambor@suse.cz>
39263 PR tree-optimization/42706
39264 * tree-sra.c (encountered_recursive_call): New variable.
39265 (encountered_unchangable_recursive_call): Likewise.
39266 (sra_initialize): Initialize both new variables.
39267 (callsite_has_enough_arguments_p): New function.
39268 (scan_function): Call decl and flags check only for IPA-SRA, check
39269 whether there is a recursive call and whether it has enough arguments.
39270 (all_callers_have_enough_arguments_p): New function.
39271 (convert_callers): Look for recursive calls only when
39272 encountered_recursive_call is set.
39273 (ipa_early_sra): Bail out either if
39274 !all_callers_have_enough_arguments_p or
39275 encountered_unchangable_recursive_call.
39277 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39279 * sel-sched.c: Add 2010 to copyright years.
39280 * sel-sched-ir.c: Likewise.
39281 * sel-sched-ir.h: Likewise.
39283 2010-01-14 Martin Jambor <mjambor@suse.cz>
39285 PR tree-optimization/42714
39286 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
39287 constructors specially.
39289 2010-01-14 Andi Kleen <ak@linux.intel.com>
39291 * config/i386/drivers-i386.c (detect_caches_intel):
39292 Add l2sizekb parameter and fill in.
39293 (host_detect_local_cpu): Add l2sizekb, fill in.
39294 Add Atom small cache heuristic.
39296 2010-01-14 Andi Kleen <ak@linux.intel.com>
39298 * config/i386/drivers-i386.c (detect_caches_cpuid4):
39299 Add level3 parameter and fill in.
39300 (detect_caches_intel): Handle level3 cache.
39302 2010-01-14 Andi Kleen <ak@linux.intel.com>
39304 * config/i386/drivers-i386.c (host_detect_local_cpu):
39305 Fix core duo detection.
39307 2010-01-14 Andi Kleen <ak@linux.intel.com>
39309 * config/i386/drivers-i386.c (host_detect_local_cpu):
39310 Fix Atom detection.
39312 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39314 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
39315 (rs6000_variable_issue_1): this. Use...
39316 (rs6000_variable_issue): here. Reimplement. Print debug info.
39318 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39320 * sel-sched-ir.c (sel_restore_other_notes): Rename to
39321 sel_restore_notes. Update all callers. Call reemit_notes
39324 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39326 PR rtl-optimization/42246
39327 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
39330 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39332 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
39333 all successors is the same as number of successors in current region.
39335 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39337 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
39338 to rename is not separable. Otherwise check that its LHS is not NULL.
39340 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39342 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
39344 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39346 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
39347 available registers when failed to discover LHS register class.
39348 Fix indentation. Update comment.
39350 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39351 Alexander Monakov <amonakov@ispras.ru>
39353 PR rtl-optimization/42389
39354 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
39356 (advance_state_on_fence): Likewise.
39357 (sel_target_adjust_priority): Print debug output only when
39358 sched_verbose >= 4, not 2.
39359 (get_expr_cost): Do not issue all unique insns on the next cycle.
39360 (fill_insns): Initialize can_issue_more from the value saved
39362 * sel-sched-ir.c (flist_add): New parameter issue_more.
39363 Init FENCE_ISSUE_MORE with it.
39364 (merge_fences): Likewise.
39365 (init_fences): Update call to flist_add.
39366 (add_to_fences, add_clean_fence_to_fences)
39367 (add_dirty_fence_to_fences): Likewise.
39368 (move_fence_to_fences): Update call to merge_fences.
39369 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
39371 * sel-sched-ir.h (struct _fence): New field issue_more.
39372 (FENCE_ISSUE_MORE): New accessor macro.
39374 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39376 PR rtl-optimization/42388
39377 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
39378 that have no predecessors nor successors. Do not call move_bb_info
39379 for empty blocks outside of current region.
39381 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39383 PR rtl-optimization/42294
39384 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
39385 * sel-sched.c (move_exprs_to_boundary): Transitively add all
39386 originators' originators.
39388 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39390 PR rtl-optimization/39453
39391 PR rtl-optimization/42246
39392 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
39394 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
39396 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39397 Alexander Monakov <amonakov@ispras.ru>
39399 PR middle-end/42245
39400 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
39401 (maybe_tidy_empty_bb): ... here. Make static. Add new
39402 argument. Update all callers.
39403 (tidy_control_flow): ... and here. Recompute topological order
39404 of basic blocks in region if necessary.
39405 (sel_redirect_edge_and_branch): Change return type. Return true
39406 if topological order might have been invalidated.
39407 (purge_empty_blocks): Export and move from...
39408 * sel-sched.c (purge_empty_blocks): ... here.
39409 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
39410 (maybe_tidy_empty_bb): Delete prototype.
39411 (purge_empty_blocks): Declare.
39413 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39415 PR rtl-optimization/42249
39416 * sel-sched.c (try_replace_dest_reg): When chosen register
39417 and original register is the same, do not bail out early, but
39418 still check all original insns for validity of replacing destination
39419 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
39422 2010-01-14 Jakub Jelinek <jakub@redhat.com>
39425 Port from no-undefined-overflow branch:
39426 2009-03-09 Richard Guenther <rguenther@suse.de>
39428 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
39430 2010-01-14 Richard Guenther <rguenther@suse.de>
39433 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
39435 2010-01-14 Ira Rosen <irar@il.ibm.com>
39437 PR tree-optimization/42709
39438 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
39439 as scalar type in creation of constant vector operand.
39441 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39444 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
39445 (check-parallel-%): Match `testsuite' directory component only
39448 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
39450 PR translation/39521
39451 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
39454 2010-01-13 Richard Guenther <rguenther@suse.de>
39456 PR tree-optimization/42730
39457 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
39460 2010-01-13 Steve Ellcey <sje@cup.hp.com>
39463 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
39464 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
39467 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
39469 * config/bfin/libgcc-bfin.ver: Regenerate based on current
39470 libgcc-std.ver. Add entries for ___smulsi3_highpart and
39471 ___umulsi3_highpart.
39473 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
39474 rather than schedule_insns if the pass is enabled.
39476 2010-01-13 Martin Jambor <mjambor@suse.cz>
39478 PR tree-optimization/42704
39479 * tree-sra.c (sra_modify_assign): Do not delete assignments to
39482 2010-01-13 Martin Jambor <mjambor@suse.cz>
39484 PR tree-optimization/42703
39485 * tree-sra.c (analyze_access_subtree): Check that we can build a
39486 reference to the original data within the aggregate.
39488 2010-01-13 Richard Guenther <rguenther@suse.de>
39490 PR tree-optimization/42705
39491 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
39493 2010-01-13 Richard Guenther <rguenther@suse.de>
39495 PR middle-end/42716
39496 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
39498 2010-01-13 Jakub Jelinek <jakub@redhat.com>
39501 * var-tracking.c (values_to_unmark): New variable.
39502 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
39503 values_to_unmark vector. Moved body to...
39504 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
39505 instead queue it into values_to_unmark vector.
39506 (vt_find_locations): Free values_to_unmark vector.
39508 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
39510 * config/s390/s390.c (override_options): Set
39511 default of max-pending-list-length to 256
39513 2010-01-13 Richard Guenther <rguenther@suse.de>
39516 * tree-pass.h (PROP_gimple_lcx): New.
39517 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
39518 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
39519 before the final cleanup_eh.
39520 (dump_properties): Dump PROP_gimple_lcx.
39521 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
39522 (tree_lower_complex_O0): Remove.
39523 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
39524 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
39525 tree_lower_complex, schedule TODO_update_ssa.
39526 * lto-streamer-out.c (output_function): Stream the functions
39528 * lto-streamer-in.c (input_function): Likewise.
39529 (lto_read_body): Do not override them here.
39531 2010-01-12 Joseph Myers <joseph@codesourcery.com>
39534 * c-typeck.c (build_c_cast): Fold value cast to union type before
39535 wrapping it in a CONSTRUCTOR.
39537 2010-01-12 Jakub Jelinek <jakub@redhat.com>
39539 PR rtl-optimization/42699
39540 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
39543 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39545 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
39546 SUBTARGET_WARN_UNUSED_SPEC): Move ...
39547 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
39548 SUBTARGET_WARN_UNUSED_SPEC): ... here
39549 * config/mips/iris5.h (LIBGCC_SPEC): Define.
39551 2010-01-12 Julian Brown <julian@codesourcery.com>
39553 * config/arm/neon-schedgen.ml (Utils): Don't try to
39554 open missing module.
39555 (find_with_result): New.
39557 2010-01-12 Jakub Jelinek <jakub@redhat.com>
39560 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
39561 sharing when canonicalizing ({lt,ge}u (plus a b) b).
39563 PR tree-optimization/42645
39564 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
39565 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
39566 decl_map, set processing_debug_stmt to -1 and return name without
39569 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
39571 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
39572 binutils version, and reword target configuration description.
39574 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
39576 * config/avr/avr.h (LINKER_NAME): Remove.
39578 2010-01-11 Janis Johnson <janis187@us.ibm.com>
39581 * config/rs6000/rs6000.c (rs6000_override_options): On targets
39582 that support VSX, warn for -mno-altivec if vsx is not disabled,
39585 2010-01-11 Joseph Myers <joseph@codesourcery.com>
39586 Shujing Zhao <pearly.zhao@oracle.com>
39588 PR translation/42469
39589 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
39590 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
39591 character between option name and help text.
39592 * c.opt (imultilib): Likewise.
39594 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
39596 * lto-streamer-out.c (output_unreferenced_globals): Output static
39599 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
39601 PR rtl-optimization/42621
39602 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
39603 optimizing for size.
39604 (duplicate_computed_gotos): Remove now-redundant check.
39606 2010-01-10 Steve Ellcey <sje@cup.hp.com>
39609 * configure.ac: Save and restore LDFLAGS and LIBS
39610 * configure: Regenerate.
39612 2010-01-10 Richard Guenther <rguenther@suse.de>
39614 PR middle-end/42667
39615 * builtins.c (fold_builtin_strlen): Add type argument and
39616 convert the resulting length to it.
39617 (fold_builtin_1): Adjust.
39619 2010-01-09 Jakub Jelinek <jakub@redhat.com>
39621 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
39622 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
39624 (num_insns_constant_wide): Adjust for that change.
39626 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39629 * web.c (union_defs): Add used argument, to combine uses of
39630 uninitialized regs.
39631 (entry_register): Adjust type and tests of used argument.
39632 (web_main): Widen used for new use. Pass it to union_defs.
39633 * df.h (union_defs): Adjust prototype.
39635 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39638 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
39639 uses in new incoming argument. Free body.
39640 (reset_debug_uses_in_loop): New.
39641 (analyze_insn_to_expand_var): Call the latter if the former found
39642 anything. Fix whitespace. Reject invalid dest overlaps before
39643 going through all insns in the loop.
39645 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39648 * haifa-sched.c (dying_use_p): Debug insns don't count.
39650 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39652 PR middle-end/42363
39653 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
39654 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
39655 (verify_gimple_call): Reject LHS in noreturn calls.
39657 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39661 * tree-vect-loop-manip.c (adjust_info): New type.
39662 (adjust_vec): New pointer to vector.
39663 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
39664 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
39665 (slpeel_update_phis_for_duplicate_loop): Use them.
39666 (slpeel_update_phi_nodes_for_guard1): Likewise.
39667 (slpeel_update_phi_nodes_for_guard2): Likewise.
39668 (slpeel_tree_peel_loop_to_edge): Likewise.
39669 (vect_update_ivs_after_vectorizer): Likewise.
39671 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39673 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
39674 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
39676 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39678 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
39679 bogus uninitialized warning.
39681 2010-01-09 Richard Guenther <rguenther@suse.de>
39683 PR middle-end/42512
39684 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
39685 the evolution is compatible with the initial condition.
39687 2010-01-09 Jakub Jelinek <jakub@redhat.com>
39689 * gcc.c (process_command): Update copyright notice dates.
39690 * gcov.c (print_version): Likewise.
39691 * gcov-dump.c (print_version): Likewise.
39692 * mips-tfile.c (main): Likewise.
39693 * mips-tdump.c (main): Likewise.
39695 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
39698 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
39700 (rotlhi3_8): Delete.
39702 (rotlsi3_8): Delete.
39703 (rotlsi3_16): Delete.
39704 (rotlsi3_24): Delete.
39705 (rotl<mode>3): New.
39706 (*rotw<mode>3): New.
39707 (*rotb<mode>3): New.
39708 * config/avr/avr.c (avr_rotate_bytes): New function.
39709 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
39711 2010-01-08 Steve Ellcey <sje@cup.hp.com>
39714 * configure.ac: Modify -rdynamic check.
39715 * configure: Regenerate.
39717 2010-01-08 DJ Delorie <dj@redhat.com>
39719 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
39720 register popping order.
39722 2010-01-08 Richard Guenther <rguenther@suse.de>
39725 * c.opt (fsigned-char): Also let LTO handle this option.
39726 (funsigned-char): Likewise.
39728 2010-01-07 Richard Guenther <rguenther@suse.de>
39730 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
39731 (gimple_op): Likewise.
39732 (gimple_op_ptr): Likewise.
39733 (gimple_assign_set_lhs): Remove gcc_assert.
39734 (gimple_assign_set_rhs1): Likewise.
39735 (gimple_assign_set_rhs2): Likewise.
39736 (gimple_call_set_lhs): Likewise.
39737 (gimple_call_set_fn): Likewise.
39738 (gimple_call_set_fndecl): Likewise.
39739 (gimple_call_fndecl): Likewise.
39740 (gimple_call_return_type): Likewise.
39741 (gimple_call_set_chain): Likewise.
39742 (gimple_call_num_args): Likewise.
39743 (gimple_call_set_arg): Likewise.
39744 (gimple_cond_set_code): Likewise.
39745 (gimple_cond_set_lhs): Likewise.
39746 (gimple_cond_set_rhs): Likewise.
39747 (gimple_cond_set_true_label): Likewise.
39748 (gimple_cond_set_false_label): Likewise.
39749 (gimple_label_set_label): Likewise.
39750 (gimple_goto_set_dest): Likewise.
39751 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
39752 (gimple_debug_bind_get_value): Likewise.
39753 (gimple_debug_bind_get_value_ptr): Likewise.
39754 (gimple_debug_bind_set_var): Likewise.
39755 (gimple_debug_bind_set_value): Likewise.
39756 (gimple_debug_bind_reset_value): Likewise.
39757 (gimple_debug_bind_has_value_p): Likewise.
39758 (gimple_return_retval_ptr): Remove gcc_assert.
39759 (gimple_return_retval): Likewise.
39760 (gimple_return_set_retval): Likewise.
39761 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
39762 (safe_referenced_var_iterator): Remove.
39763 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
39764 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
39765 (fill_referenced_var_vec): Remove.
39766 (first_readonly_imm_use): Remove redundant gcc_assert.
39767 (phi_arg_index_from_use): Combine gcc_asserts.
39768 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
39769 (first_imm_use_stmt): Remove redundant gcc_assert.
39770 * tree-cfg.c (verify_gimple_call): Verify function and chain
39771 operands. Verify arguments.
39772 (verify_types_in_gimple_stmt): Verify condition code and labels.
39774 2010-01-07 Richard Guenther <rguenther@suse.de>
39776 PR tree-optimization/42641
39777 * sese.c (rename_map_elt_info): Use the SSA name version, do
39780 2010-01-07 Jakub Jelinek <jakub@redhat.com>
39782 PR tree-optimization/42625
39783 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
39784 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
39786 2010-01-07 Duncan Sands <baldrick@free.fr>
39788 * Makefile.in (PLUGIN_HEADERS): Add version.h.
39790 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
39793 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
39794 note itself is not function_invariant_p.
39796 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
39798 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
39799 Do not add the DF_NOTE problem.
39800 * store-motion.c (execute_rtl_store_motion): Likewise.
39802 2010-01-07 Martin Jambor <mjambor@suse.cz>
39804 PR tree-optimization/42157
39805 * tree-sra.c (compare_access_positions): Stabilize sort if both
39806 accesses have integer types, return zero immediately if they are the
39809 2010-01-06 Richard Henderson <rth@redhat.com>
39811 PR middle-end/41883
39812 * haifa-sched.c (add_to_note_list): Merge into ...
39813 (concat_note_lists): ... here, and ...
39814 (unlink_other_notes, rm_other_notes): Merge into...
39815 (remove_notes): ... here. Create REG_SAVE_NOTEs for
39816 NOTE_INSN_EPILOGUE_BEG.
39818 2010-01-06 Richard Guenther <rguenther@suse.de>
39820 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
39821 not inline regular functions into always-inline functions.
39823 2010-01-06 Nick Clifton <nickc@redhat.com>
39825 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
39826 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
39828 (OVERRIDE_OPTIONS): Delete.
39829 (OPTIMIZATION_OPTIONS): Define.
39830 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
39831 * config/rx/rx.c (rx_handle_option): Issue an error message if
39832 -mcpu=rx200 and -fpu are used together.
39833 (rx_set_optimization_options): New function. Issue an error
39834 message if an optimization attribute attempts to reset the FPU/
39835 math optimization pairing.
39836 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
39837 * config/rx/rx.opt: Set the default to 32-bit doubles.
39838 * config/rx/t-rx: Add multilibs for -nofpu option.
39839 * doc/invoke.texi: Update documentation of RX options.
39841 2010-01-06 Richard Guenther <rguenther@suse.de>
39843 * tree-ssa-pre.c (name_to_id): New global.
39844 (alloc_expression_id): Simplify SSA name handling.
39845 (lookup_expression_id): Likewise.
39846 (init_pre): Zero name_to_id.
39847 (fini_pre): Free it.
39849 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
39851 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
39853 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
39856 * config/i386/sse.md (smaxv2di3): New.
39857 (umaxv2di3): Likewise.
39858 (sminv2di3): Likewise.
39859 (uminv2di3): Likewise.
39861 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
39864 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
39865 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
39866 (legitimize_tls_address): Likewise.
39867 (sparc_tls_referenced_p): Likewise.
39868 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
39869 and adjust calls to legitimize_pic_address.
39870 (legitimate_constant_p) Use sparc_tls_referenced_p.
39871 (legitimate_pic_operand_p): Likewise.
39872 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
39873 (sparc_tls_symbol_ref_1): Delete.
39874 (sparc_tls_referenced_p): Make static, recognize specific patterns.
39875 (legitimize_tls_address): Make static, handle CONST patterns.
39876 (legitimize_pic_address): Make static, remove unused parameter and
39877 adjust recursive calls.
39878 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
39879 and adjust call to legitimize_pic_address.
39880 (sparc_output_mi_thunk): Likewise.
39882 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
39883 H.J. Lu <hongjiu.lu@intel.com>
39886 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
39887 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
39888 operands to make them signed.
39891 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39894 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39895 GTU to GT for V4SI and V2DI.
39897 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39898 (umin<mode>3): Removed.
39900 (uminv4si3): Likewise.
39902 2010-01-05 Martin Jambor <mjambor@suse.cz>
39904 PR tree-optimization/42462
39905 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
39906 current_function_decl to helper functions and macros.
39908 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39911 * flags.h: Don't include real.h.
39912 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
39913 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
39914 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
39915 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
39916 * dominance.c: Update copyright.
39917 * gimple.c (walk_gimple_op): Remove inline.
39918 * tree-ssa-reassoc.c: Include real.h.
39919 * Makefile.in (FLAGS_H): Remove $(REAL_H).
39920 (tree-ssa-reassoc.o): Depend on $(REAL_H).
39922 2010-01-05 Nick Clifton <nickc@redhat.com>
39924 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
39925 register to push into the stack frame when the accumulator has to
39926 be saved during interrupts.
39928 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
39930 * doc/invoke.texi: Remove the documentation about option
39931 -Wunreachable-code.
39932 * common.opt (Wunreachable-code): Preserved for backward
39934 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
39935 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
39936 the backward compatibility flag section.
39938 2010-01-05 Richard Guenther <rguenther@suse.de>
39940 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
39942 2010-01-05 Jakub Jelinek <jakub@redhat.com>
39945 * cfgexpand.c (expand_one_var): Diagnose too large variables.
39947 PR tree-optimization/42508
39948 * tree-sra.c (convert_callers): Check for recursive call
39949 by comparing cgraph nodes instead of decls.
39950 (modify_function): Call ipa_modify_formal_parameters also
39951 on all same_body aliases.
39953 * cgraphunit.c (cgraph_materialize_all_clones): Compare
39954 cgraph nodes when checking for same_body aliases.
39956 2010-01-05 Richard Guenther <rguenther@suse.de>
39958 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
39959 allocation and lookup.
39960 (get_or_alloc_expr_for_constant): Likewise.
39961 (phi_translate): Sink allocation.
39963 2010-01-04 Richard Guenther <rguenther@suse.de>
39965 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
39966 a new entry only if needed.
39967 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
39968 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
39970 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
39972 (phi_translate): Handle CONSTANTs early.
39974 2010-01-04 Martin Jambor <mjambor@suse.cz>
39976 PR tree-optimization/42398
39977 * tree-sra.c (struct access): Removed flag grp_different_types.
39978 (dump_access): Do not dump the removed flag.
39979 (sort_and_splice_var_accesses): Do not set the removed flag.
39980 (sra_modify_expr): Check for type compatibility directly.
39982 2010-01-04 Martin Jambor <mjambor@suse.cz>
39984 PR tree-optimization/42366
39985 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
39986 edges with variable number of parameters.
39987 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
39988 flag instead of asserting it.
39989 (ipa_read_node_info): Read uses_analysis_done flag.
39991 2010-01-04 Richard Guenther <rguenther@suse.de>
39993 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
39994 iterative_hash_* as intended.
39995 (vn_reference_compute_hash): Likewise. Simplify hashing
39997 (vn_reference_lookup_2): Likewise.
39998 (vn_nary_op_compute_hash): Likewise.
39999 (vn_phi_compute_hash): Likewise.
40000 (expressions_equal_p): Remove strange code.
40001 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
40002 (pre_expr_hash): Likewise. Simplify hashing SSA names.
40003 (bitmap_insert_into_set_1): Take value-id as parameter.
40004 (add_to_value): Pass it.
40005 (bitmap_insert_into_set): Likewise.
40006 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
40008 2010-01-04 Jakub Jelinek <jakub@redhat.com>
40011 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
40012 (do_self_spec): For switches with SWITCH_IGNORE set set also
40013 SWITCH_IGNORE_PERMANENTLY.
40014 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
40017 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
40019 * lto-streamer-out.c (output_unreferenced_globals): Output the full
40020 tree of an unreferenced global var.
40022 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
40025 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
40026 GTU to GT for V4SI and V2DI.
40028 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
40029 (umin<mode>3): Removed.
40031 (uminv4si3): Likewise.
40033 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
40036 * collect2.c (main): Turn on trace in collect2 if -v is passed
40039 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
40041 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
40042 description of expression operand.
40044 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
40046 * configure.ac: Add install-html to target_list for Make-hooks.
40047 * configure: Regenerate.
40048 * fortran/Make-lang.in (F95_HTMLFILES): New.
40049 (fortran.html): Use it.
40050 (fortran.install-html): New.
40051 * Makefile.in (install-html): Add lang.install-html.
40052 * java/Make-lang.in (JAVA_HTMLFILES): New.
40053 (java.html): Use it.
40054 (java.install-html): New.
40055 * objc/Make-lang.in (objc.install-html): New.
40056 * objcp/Make-lang.in (obj-c++.install-html): New.
40057 * cp/Make-lang.in (c++.install-html): New.
40058 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
40059 * lto/Make-lang.in (lto.install-html): New.
40061 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
40064 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
40066 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
40068 PR rtl-optimization/41862
40069 * store-motion.c (store_killed_in_insn, compute_store_table,
40070 remove_reachable_equiv_notes, replace_store_insn,
40071 build_store_vectors): Ignore all DEBUG_INSNs.
40073 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
40076 * common.opt: Add dumpdir.
40078 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
40080 (option_map): Add --dumpdir.
40082 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
40084 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
40086 * opts.c (decode_options): Try dump_dir_name first if
40087 dump_base_name isn't an absolute path.
40088 (common_handle_option): Handle OPT_dumpdir.
40090 * toplev.c (dump_dir_name): New.
40091 (print_switch_values): Also ignore -dumpdir.
40093 * toplev.h (dump_dir_name): New.
40095 2010-01-03 Richard Guenther <rguenther@suse.de>
40097 PR tree-optimization/42589
40098 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
40099 double-word expansion of bswap32.
40101 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
40103 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
40104 with BLOCK_FOR_INSN.
40105 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
40106 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
40107 noce_process_if_block): Likewise.
40108 * gcse.c (compute_local_properties, insert_expr_in_table,
40109 insert_set_in_table, canon_list_insert, find_avail_set,
40110 pre_insert_copy_insn): Likewise.
40112 * basic-block.h (BLOCK_NUM): Move from here...
40113 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
40115 2010-01-03 Richard Guenther <rguenther@suse.de>
40117 PR tree-optimization/42438
40118 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
40119 contains_may_not_return_call flag.
40120 (BB_MAY_NOTRETURN): New.
40121 (valid_in_sets): Trapping nary operations are not valid
40122 in blocks that may not return.
40123 (insert_into_preds_of_block): Remove check for trapping expressions.
40124 (compute_avail): Compute also BB_MAY_NOTRETURN.
40126 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
40128 * doc/invoke.texi: Add 2010 to copyright years.
40130 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
40132 * config/sparc/sparc.c: Fix formatting nits.
40134 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
40135 Alexander Monakov <amonakov@ispras.ru>
40137 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
40139 2010-01-02 Richard Guenther <rguenther@suse.de>
40141 PR middle-end/42577
40142 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
40143 (simplify_switch_using_ranges): Mark to be removed edges
40146 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
40148 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
40150 * collect2.c (scan_libraries): Add missing argument in call to
40153 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
40156 * config/alpha/predicates.md (aligned_memory_operand): Return false
40158 (unaligned_memory_operand): Return true for CQImode.
40159 * config/alpha/alpha.c (get_aligned_mem): Assert that location
40160 doesn not cross aligned SImode word boundary.
40162 2010-01-02 Anatoly Sokolov <aesok@post.ru>
40164 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
40166 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
40167 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
40169 2010-01-02 Richard Guenther <rguenther@suse.de>
40172 * toplev.c (compile_file): Emit LTO marker properly. Change
40173 it to __gnu_lto_v1.
40174 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
40176 2010-01-01 Richard Guenther <rguenther@suse.de>
40179 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
40181 2010-01-01 Richard Guenther <rguenther@suse.de>
40184 * c-decl.c (grokdeclarator): For zero-size arrays force
40185 structural equality checks as layout_type does.
40187 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
40189 * builtins.c: Update copyright to 2010.
40191 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
40194 * lto-streamer-out.c (produce_asm): Revert the last change.
40195 (copy_function): Likewise.
40197 * lto-streamer.c (lto_get_section_name): Skip any leading
40200 2010-01-01 Richard Guenther <rguenther@suse.de>
40202 PR middle-end/42559
40203 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
40207 Copyright (C) 2010 Free Software Foundation, Inc.
40209 Copying and distribution of this file, with or without modification,
40210 are permitted in any medium without royalty provided the copyright
40211 notice and this notice are preserved.