1 2010-07-22 Richard Guenther <rguenther@suse.de>
4 * gimple.c (gtc_next_dfs_num): New global.
5 (struct sccs): Make value a union, add integer same_p member.
6 (gtc_visit): New function.
7 (gimple_types_compatible_p_1): New function, split out from ...
8 (gimple_types_compatible_p): ... here. Start a DFS walk here.
9 (iterative_hash_gimple_type): Adjust for sccs change.
11 2010-07-22 Martin Jambor <mjambor@suse.cz>
13 PR tree-optimization/44891
14 * tree-sra.c: Include gimple-pretty-print.h.
15 (replace_uses_with_default_def_ssa_name): Renamed to
16 get_repl_default_def_ssa_name, return the new SSA name instead of
17 replacing the old one.
18 (sra_modify_assign): Dump a message when removing a load, if the LHS
19 is an SSA_NAME, do not do any propagation, just set the RHS to a
20 default definition SSA NAME, type convert if necessary.
21 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
23 2010-07-22 Richard Guenther <rguenther@suse.de>
25 PR tree-optimization/45017
26 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
27 TYPE_PRECISION of integral types in addition to size.
29 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
31 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
32 when no C library is specified.
34 2010-07-22 Martin Jambor <mjambor@suse.cz>
36 * ipa-prop.h (struct ipa_node_params): Updated comment.
37 (struct ipa_edge_args): Likewise.
38 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
40 2010-07-22 Martin Jambor <mjambor@suse.cz>
42 * cgraphunit.c (verify_edge_count_and_frequency): New function.
43 (verify_cgraph_node): Verify frequencies of indirect edges.
44 * tree-inline.c (tree_function_versioning): Update frequencies of
47 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
50 * config/arm/arm.md: Split arm_rev into *arm_rev
51 and *thumb1_rev. Set *arm_rev to be predicable.
53 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
55 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
56 (LINK_COMMAND_SPEC_A): New.
59 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
60 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
62 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
64 * calls.c (load_register_parameters): Move check for zero
65 sized items so that only the call to
66 mem_overlaps_already_clobbered_arg_p () is protected.
68 2010-07-22 Jan Hubicka <jh@suse.cz>
70 * ipa-pure-const.c (varying_state): Break out from ...
71 (get_function_state): ... here; always return varying_state
72 when state would be NULL otherwise.
73 (remove_node_data): Do not free varying state.
75 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
79 * postreload.c: Include "target.h".
80 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
82 (fixup_debug_insns): Don't copy the rtx.
83 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't
84 have uses. Don't copy when replacing. Call fixup_debug_insns
85 in the case where we merged one add with another.
86 (reload_combine_recognize_pattern): Fail if there aren't any
87 uses. Try harder to determine whether we're picking a valid
88 index register. Don't set store_ruid for an insn we're going
89 to scan in the next iteration.
90 (reload_combine): Remove unused code.
91 (reload_combine_note_use): When updating use information for
92 an old insn, ignore a use that occurs after store_ruid.
93 * Makefile.in (postreload.o): Update dependencies.
95 * function.c (record_hard_reg_sets): Restrict the previous change
96 to cases where the incoming nominal mode is the same as the
97 incoming promoted mode and everything happens in MODE_INT.
99 2010-07-21 Jakub Jelinek <jakub@redhat.com>
102 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
103 ASM_OPERANDS_OUTPUT_IDX.
104 (adjust_insn): For inline asm with multiple sets ensure first
105 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
108 2010-07-21 Richard Henderson <rth@redhat.com>
110 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
111 comparison for avoiding xmm register saves. Emit the xmm register
113 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
114 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
115 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
116 Remove patterns and the associated splitters.
118 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
120 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
121 and imagine parts of a complex, so that they can have the same
122 base and fall into the same group.
124 2010-07-21 Richard Guenther <rguenther@suse.de>
127 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
128 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
129 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
131 2010-07-21 Martin Jambor <mjambor@suse.cz>
133 PR tree-optimization/44900
134 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
135 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
137 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
140 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
142 2010-07-21 Richard Guenther <rguenther@suse.de>
145 * tree-ssa.c (useless_type_conversion_p): Dispatch to
146 gimple_types_compatible_p only when in lto.
147 * gimple.c (gimple_types_compatible_p): Use canonical types
148 to speed up comparison.
150 2010-07-21 Richard Guenther <rguenther@suse.de>
152 * tree-flow.h (referenced_var): Move define ...
153 * tree-flow-inline.h (referenced_var): ... here as an inline
154 function. Assert here ...
155 * tree-dfa.c (referenced_var_lookup): ... instead of here.
156 * tree-ssa.c (maybe_optimize_var): Check if the variable
157 is in referenced vars.
158 (execute_update_addresses_taken): Remove old broken check.
159 * gimple-pretty-print.c (pp_points_to_solution): Use
160 referenced_var_lookup.
161 * tree-into-ssa.c (dump_decl_set): Likewise.
163 2010-07-21 Jakub Jelinek <jakub@redhat.com>
166 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of
168 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
171 2010-07-20 Richard Henderson <rth@redhat.com>
173 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
175 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
177 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
178 computing the sum of the stack pointer and a large constant.
179 * config/arm/constraints.md (M): Remove superfluous parentheses.
180 (Pc): New constraint.
182 2010-07-20 Jakub Jelinek <jakub@redhat.com>
185 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
186 operand's type if exp is tcc_unary class tree.
188 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
190 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
191 Reverse sense of if_then_else condition.
193 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
195 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
196 * config/rs6000/rs6000.c (rs6000_override_options): Set
197 rs6000_block_move_inline_limit appropriately.
198 (expand_block_move): Use rs6000_block_move_inline_limit.
199 * doc/invoke.texi (mblock-move-inline-limit): Document.
201 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
203 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
204 FROM and TO. All callers changed. Don't look for tracked uses,
205 just scan the RTL for DEBUG_INSNs and substitute.
206 (reload_combine_recognize_pattern): Call fixup_debug_insns.
207 (reload_combine): Ignore DEBUG_INSNs.
209 2010-07-20 Jakub Jelinek <jakub@redhat.com>
211 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
215 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
216 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
217 instead of the result's type.
219 2010-07-20 Richard Guenther <rguenther@suse.de>
221 PR tree-optimization/44977
222 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
225 2010-07-20 Richard Guenther <rguenther@suse.de>
227 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
228 (lto_symtab_merge_decls_2): Likewise.
229 * gimple.h (gimple_types_compatible_p): Declare.
230 * gimple.c (gimple_queue_type_fixup): Remove.
231 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
232 (gimple_compatible_complete_and_incomplete_type_p): New
234 (gimple_types_compatible_p): Adjust.
235 (gimple_register_type): Remove type fixup code.
236 (print_gimple_types_stats): Adjust.
237 (free_gimple_type_tables): Likewise.
238 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
239 * tree-ssa.c (useless_type_conversion_p): Likewise.
241 2010-07-20 Richard Guenther <rguenther@suse.de>
245 * tree-ssa.c (maybe_optimize_var): New function split out from ...
246 (execute_update_addresses_taken): ... here.
247 (non_rewritable_mem_ref_base): Likewise.
248 (execute_update_addresses_taken): Do not iterate over all referenced
249 vars but just all local decls and parms.
250 Properly check call and asm arguments and rewrite call arguments.
252 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
254 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
256 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
258 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
260 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
262 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
264 * gengtype.c (start_root_entry): New function, split out from
265 write_root. Check whether V is null and raise an error if so.
266 (write_field_root): Check for V being null. Don't raise an error here;
267 set V to null instead.
268 (write_root): Update comment above function. Use start_root_entry.
270 2010-07-19 Xinliang David Li <davidxl@google.com>
273 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting def edges.
274 (find_uninit_use): Add dump.
275 (is_use_properly_guarded): Ditto.
276 (warn_uninitialized_phi): Ditto.
277 (execute_late_warn_uninitialized): Ditto.
279 2010-07-19 Richard Guenther <rguenther@suse.de>
282 * expr.c (emit_block_move_hints): Move zero size check first.
283 Move asserts to more useful places.
284 * calls.c (load_register_parameters): Check for zero size.
286 2010-07-19 Richard Henderson <rth@redhat.com>
288 * tree-optimize.c (execute_all_early_local_passes): New. Change
289 cgraph_state here ...
290 (execute_early_local_optimizations): ... not here. Remove.
291 (pass_early_local_passes, pass_all_early_optimizations): Update.
293 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
295 * postreload.c (reload_combine_closest_single_use): Ignore the
296 number of uses for DEBUG_INSNs.
297 (fixup_debug_insns): New static function.
298 (reload_combine_recognize_const_pattern): Use it. Don't let the
299 main loop be affected by DEBUG_INSNs.
300 Really disallow moving adds past a jump insn.
301 (reload_combine_recognize_pattern): Don't update use_ruid here.
302 (reload_combine_note_use): Do it here.
303 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
305 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
307 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
309 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
311 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
313 * config/i386/darwin.h: Define darwin_emit_branch_islands.
314 (TARGET_MACHO_BRANCH_ISLANDS): New.
315 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
316 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
318 * config/i386/i386.c (output_pic_addr_const): Do not emit
319 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
320 (x86_output_mi_thunk): Adjust symbol creation.
321 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
322 Remove out of date comment.
323 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
324 DARWIN_LINKER_GENERATES_ISLANDS: Remove.
325 DARWIN_GENERATE_ISLANDS: Ditto.
326 (output_call): Do not emit branch islands unless
327 darwin_emit_branch_islands is set.
328 * config/darwin.c: Declare darwin_emit_branch_islands.
329 (machopic_indirect_data_reference): Do not emit unless
330 darwin_emit_branch_islands is set.
331 (darwin_override_options): Set darwin_emit_branch_islands
334 DARWIN_LINKER_GENERATES_ISLANDS: Remove.
336 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 * doc/sourcebuild.texi (Effective-Target Keywords): Document
339 sse_runtime, sse2_runtime.
341 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
343 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
344 low half of a single-register SCmode return value before ORing
345 it with the high half.
346 * config/mips/mips16.S (MERGE_GPRf): Likewise.
348 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
351 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
354 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
357 * postreload.c (reload_cse_move2add): Return bool, true if anything.
358 changed. All callers changed.
359 (move2add_use_add2_insn): Likewise.
360 (move2add_use_add3_insn): Likewise.
361 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
363 (RELOAD_COMBINE_MAX_USES): Bump to 16.
364 (last_jump_ruid): New static variable.
365 (struct reg_use): New members CONTAINING_MEM and RUID.
366 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
367 (reload_combine_split_one_ruid, reload_combine_split_ruids,
368 reload_combine_purge_insn_uses, reload_combine_closest_single_use
369 reload_combine_purge_reg_uses_after_ruid,
370 reload_combine_recognize_const_pattern): New static functions.
371 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
372 is true for our reg and that we have available index regs.
373 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
374 callers changed. Use them to initialize fields in struct reg_use.
375 (reload_combine): Initialize last_jump_ruid. Be careful when to
376 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
377 Call reload_combine_recognize_const_pattern.
378 (reload_combine_note_store): Update REAL_STORE_RUID field.
380 2010-07-16 Jason Merrill <jason@redhat.com>
382 * Makefile.in (opts-common.o): Depend on options.h.
384 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
386 * tree.c (build_common_builtin_nodes): Use build_function_type_list
387 instead of build_function_type.
388 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
389 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
391 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
393 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
395 (rs6000_emit_int_cmove): Use function pointers for insn generation.
396 Don't force values into registers unnecessarily.
397 (output_isel): Assert that we're not given conditions we can't handle.
398 Delete corresponding code.
399 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
400 scc_comparison_operator constraint. Permit 0 for the consequent
401 operand. Permit any GPR for the alternative operand.
402 (isel_unsigned_<mode>): Likewise.
404 2010-07-16 Jakub Jelinek <jakub@redhat.com>
407 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
408 argument to const_tree.
409 * config/i386/i386.c (function_arg_advance): If padding needs to be
410 inserted before argument, increment cum->words by number of padding
412 (contains_aligned_value_p): Change argument to const_tree.
413 (ix86_function_arg_boundary): Change second argument to const_tree.
415 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
418 * function.c (record_hard_reg_sets): New static function.
419 (assign_parm_setup_reg): If an optab for extending exists and the
420 generated code clobbbers no hard regs, emit the insn directly and
421 create a REG_EQUIV note.
423 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
425 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
427 * c-typeck.c (push_init_level): Likewise.
428 (process_init_element): Likewise.
430 2010-07-15 Anatoly Sokolov <aesok@post.ru>
432 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
433 (integer_three_node): Add.
434 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
435 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
436 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
437 of call build_int_cst.
438 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
439 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
440 (find_interesting_uses_address): Ditto.
441 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
442 * tree-eh.c (lower_eh_constructs_2): Ditto.
443 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
444 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
445 * expmed.c (expand_divmod): Ditto.
446 * tree-mudflap.c (mx_register_decls): Ditto.
447 * varasm.c (array_size_for_constructor): Ditto.
448 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
449 * c-parser.c (c_parser_postfix_expression): Ditto.
451 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
453 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
454 New static variables.
455 (reload_combine_recognize_pattern): New static function, broken out
457 (reload_combine): Use it. Only initialize first_index_reg and
460 2010-07-15 Richard Henderson <rth@redhat.com>
462 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
465 2010-07-15 Jan Hubicka <jh@suse.cz>
467 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling comdats
469 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
471 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
473 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
475 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
477 * tree.h (DECL_CHAIN): Define.
478 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
479 * c-decl.c: Likewise.
480 * c-parser.c: Likewise.
481 * c-typeck.c: Likewise.
482 * cfgexpand.c: Likewise.
483 * cgraph.c: Likewise.
484 * cgraphunit.c: Likewise.
485 * combine.c: Likewise.
486 * config/alpha/alpha.c: Likewise.
487 * config/arm/arm.c: Likewise.
488 * config/frv/frv.c: Likewise.
489 * config/i386/i386.c: Likewise.
490 * config/i386/winnt-cxx.c: Likewise.
491 * config/ia64/ia64.c: Likewise.
492 * config/iq2000/iq2000.c: Likewise.
493 * config/mep/mep.c: Likewise.
494 * config/mips/mips.c: Likewise.
495 * config/pa/som.h: Likewise.
496 * config/rs6000/rs6000.c: Likewise.
497 * config/s390/s390.c: Likewise.
498 * config/sh/sh.c: Likewise.
499 * config/sh/symbian-cxx.c: Likewise.
500 * config/sparc/sparc.c: Likewise.
501 * config/spu/spu.c: Likewise.
502 * config/stormy16/stormy16.c: Likewise.
503 * config/vxworks.c: Likewise.
504 * config/xtensa/xtensa.c: Likewise.
505 * coverage.c: Likewise.
506 * dbxout.c: Likewise.
507 * dwarf2out.c: Likewise.
508 * emit-rtl.c: Likewise.
510 * function.c: Likewise.
511 * gimple-low.c: Likewise.
512 * gimple-pretty-print.c: Likewise.
513 * gimplify.c: Likewise.
514 * integrate.c: Likewise.
515 * ipa-inline.c: Likewise.
516 * ipa-prop.c: Likewise.
517 * ipa-split.c: Likewise.
518 * ipa-struct-reorg.c: Likewise.
519 * ipa-type-escape.c: Likewise.
520 * langhooks.c: Likewise.
521 * lto-cgraph.c: Likewise.
522 * omp-low.c: Likewise.
523 * stor-layout.c: Likewise.
524 * tree-cfg.c: Likewise.
525 * tree-complex.c: Likewise.
526 * tree-dfa.c: Likewise.
527 * tree-dump.c: Likewise.
528 * tree-inline.c: Likewise.
529 * tree-mudflap.c: Likewise.
530 * tree-nested.c: Likewise.
531 * tree-object-size.c: Likewise.
532 * tree-pretty-print.c: Likewise.
533 * tree-sra.c: Likewise.
534 * tree-ssa-live.c: Likewise.
535 * tree-ssa-loop-niter.c: Likewise.
536 * tree-ssa-math-opts.c: Likewise.
537 * tree-ssa-reassoc.c: Likewise.
538 * tree-ssa-sccvn.c: Likewise.
539 * tree-ssa-structalias.c: Likewise.
540 * tree-tailcall.c: Likewise.
541 * tree-vrp.c: Likewise.
543 * var-tracking.c: Likewise.
544 * varasm.c: Likewise.
546 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
549 * config/spu/spu.c (spu_expand_builtin_1): Allow references
550 (as well as pointers) as argument to mask_for_load builtins.
552 2010-07-15 Richard Guenther <rguenther@suse.de>
554 PR tree-optimization/44946
555 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
556 with accessing only padding properly.
558 2010-07-15 Jan Hubicka <jh@suse.cz>
560 * ipa.c (function_and_variable_visibility): Variables marked as used
561 should not be localized.
563 2010-07-15 Jan Hubicka <jh@suse.cz>
565 * cgraph.c: Include lto-streamer.h
566 (change_decl_assembler_name): Work when assembler name hash is at place.
567 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage, be
568 sure to rename it to avoid name clash.
569 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
570 Localize hidden symbols only when locally defined.
572 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
574 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
576 2010-07-15 Magnus Granberg <zorry@gentoo.org>
577 Kevin F. Quinn <kevquinn@gentoo.org>
579 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
580 * common.opt: Add -Wtrampolines.
581 * doc/invoke.texi: Add -Wtrampolines.
583 2010-07-15 Jie Zhang <jie@codesourcery.com>
585 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
588 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
590 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
591 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
593 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
595 * config/spu/spu.c (reg_names): Remove prototype.
596 (call_used_regs): Likewise.
598 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
600 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
601 "unused" with attribute "used".
602 (__JCR_END__): Likewise.
603 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
605 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
607 2010-07-14 Richard Guenther <rguenther@suse.de>
609 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
610 (maybe_fixup_decls): Likewise.
611 (input_gimple_stmt): Do not fixup anything.
612 * lto-streamer-out.c (output_gimple_stmt): Make sure all
613 non-automatic variable uses are wrapped inside a MEM_REF.
615 2010-07-14 Richard Henderson <rth@redhat.com>
617 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
619 * varasm.c (assemble_variable): Remove early exit for functions;
620 assert that we're given a variable.
622 2010-07-14 Jie Zhang <jie@codesourcery.com>
624 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
625 cortex_a8_default when neon_type is not none.
627 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
629 * lower-subreg.c (subreg_context): New static bitmap.
630 (decompose_multiword_subregs): Allocate and free it.
631 (find_decomposable_subregs): Set a bit in it for a register that
632 occurs in a subreg that changes mode but not size.
633 (can_decompose_p): Test it instead of non_decomposable_context.
635 2010-07-14 Richard Guenther <rguenther@suse.de>
637 PR tree-optimization/44824
638 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
639 is_gimple_mem_ref_addr.
640 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
641 non-decl_address_invariant_p addresses.
643 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
645 * reload.c (find_reloads): Revert code to penalize small register
646 classes that was brought in with the IRA merge.
648 2010-07-14 Richard Guenther <rguenther@suse.de>
650 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
651 as base of ARRAY_REFs.
653 2010-07-14 Richard Guenther <rguenther@suse.de>
656 * tree-pretty-print.c (do_niy): Do not print a newline.
658 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
660 * ira-int.h (struct ira_object): New.
661 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
662 (struct ira_allocno): Remove members min, max,
663 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
664 conflict_allocnos_num and conflict_vec_p. Add new member object.
665 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
666 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
667 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
668 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
669 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
670 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
671 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
672 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
673 an ira_object_t rather than ira_allocno_t. All uses changed.
674 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
675 contains a vector of ira_object_t; all uses changed.
676 (ira_objects_num): Declare variable.
677 (ira_create_allocno_object): Declare function.
678 (ira_conflict_vector_profitable_p): Adjust prototype.
679 (ira_allocate_conflict_vec): Renamed from
680 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
681 (ira_allocate_object_conflicts): Renamed from
682 ira_allocate_allocno_conflicts; first arg now ira_object_t.
683 (struct ira_object_iterator): New.
684 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
685 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
686 to conflict_vec_p. All uses changed.
687 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
688 Changed to take into account that conflicts are now tracked for
690 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
691 Args changed to accept ira_object_t. All uses changed.
692 (allocnos_conflict_p): New static function.
693 (collected_conflict_objects): Renamed from collected_allocno_objects;
694 now a vector of ira_object_t. All uses changed.
695 (build_conflict_bit_table): Changed to take into account that
696 conflicts are now tracked for objects.
697 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
698 (print_allocno_conflicts, ira_build_conflicts): Likewise.
699 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
700 setup_allocno_left_conflicts_size, allocno_reload_assign,
701 fast_allocation): Likewise.
702 * ira-lives.c (make_hard_regno_born, make_allocno_born)
703 process_single_reg_class_operands, process_bb_node_lives): Likewise.
704 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
706 * ira-build.c (ira_objects_num): New variable.
707 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
708 contains a vector of ira_object_t; all uses changed.
709 (ira_object_id_map_vec): Corresponding change.
710 (object_pool): New static variable.
711 (initiate_allocnos): Initialize it.
712 (finish_allocnos): Free it.
713 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
715 (ira_create_allocno): Don't set members that were removed.
716 (ira_set_allocno_cover_class): Don't change conflict hard regs.
717 (merge_hard_reg_conflicts): Changed to take into account that
718 conflicts are now tracked for objects.
719 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
720 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
721 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
722 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
723 setup_min_max_conflict_allocno_ids, ): Likewise.
724 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
725 to ira_object_t; all callers changed.
726 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
727 to ira_object_t, all callers changed.
728 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
729 to ira_object_t, all callers changed.
730 (conflict_check, curr_conflict_check_tick): Renamed from
731 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
733 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
734 arg changed to ira_object_t, all callers changed.
735 (create_cap_allocno): Call ira_create_allocno_object.
736 (finish_allocno): Free the corresponding object.
737 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
738 callers changed. Adjusted for dealing with objects.
739 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
740 dealing with objects.
741 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
743 * ira-int.h (struct live_range): Rename allocno member to object
744 and change type to ira_object_t.
745 (struct ira_object): New member live_ranges.
746 (struct ira_allocno): Remove member live_ranges.
747 (ALLOCNO_LIVE_RANGES): Remove.
748 (OBJECT_LIVE_RANGES): New macro.
749 (ira_create_live_range, ira_copy_live_range_list,
750 ira_merge_live_range_list, ira_live_ranges_intersect_p,
751 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
752 * ira-build.c (ira_create_object): Initialize live ranges here.
753 (ira_create_allocno): Not here.
754 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
755 changed to ira_object_t, all callers changed.
756 (copy_live_range): Rename from copy_allocno_live_range, all callers
758 (ira_copy_live_range_list): Rename from
759 ira_copy_allocno_live_range_list, all callers changed.
760 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
762 (ira_live_ranges_intersect_p): Rename from
763 ira_allocno_live_ranges_intersect_p, all callers changed.
764 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
766 (ira_finish_live_range_list): Rename from
767 ira_finish_allocno_live_range_list, all callers changed.
768 (change_object_in_range_list): Rename from change_allocno_in_range_list,
769 last arg changed to ira_object_t, all callers changed.
770 (finish_allocno): Changed to expect live ranges in the allocno's object.
771 (move_allocno_live_ranges, copy_allocno_live_ranges,
772 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
773 ira_flattening, ira_build): Likewise.
774 * ira-color.c (allocnos_have_intersected_live_ranges_p,
775 slot_coalesced_allocno_live_ranges_intersect,
776 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
777 * ira-conflicts.c (build_conflict_bit_table): Likewise.
778 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
779 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
780 make_allocno_dead, create_start_finish_chains,
781 remove_some_program_points_and_update_live_ranges,
782 ira_debug_live_range_list): Likewise.
784 * ira-int.h (ira_object_conflict_iterator): Rename from
785 ira_allocno_conflict_iterator.
786 (ira_object_conflict_iter_init): Rename from
787 ira_allocno_conflict_iter_init, second arg changed to
788 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
789 FOR_EACH_ALLOCNO_CONFLICT.
790 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
791 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
792 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
793 * ira-conflicts.c (print_allocno_conflicts): Likewise.
795 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
798 * tree-dump.c (dump_options): Add enumerate_locals entry.
799 Add TDF_NOID exclusion to all entry.
800 * tree-dump.h (dump_enumerated_decls): Declare.
801 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
802 Don't display type uid.
803 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
804 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
805 * tree-ssa-live.c: Include gimple.h.
806 (numbered_tree_d): New struct.
807 (numbered_tree): New typedef.
808 (DEF_VEC_O (numbered_tree): New.
809 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
810 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
811 (dump_enumerated_decls): Likewise.
812 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
813 debug info and flag_dump_final_insns, call dump_enumerated_decls.
814 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
815 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
817 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
819 * expmed.h (MAX_BITS_PER_WORD): Move to...
820 * defaults.h (MAX_BITS_PER_WORD): ...here.
822 2010-07-13 DJ Delorie <dj@redhat.com>
824 * config/h8300/h8300.c (h8300_init_once): Default to
825 -fstrict_volatile_bitfields.
827 * config/sh/sh.c (sh_override_options): Default to
828 -fstrict_volatile_bitfields.
830 * config/rx/rx.c (rx_option_override): New.
832 * config/m32c/m32c.c (m32c_override_options): Default to
833 -fstrict_volatile_bitfields.
835 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
837 * tree.h (build_function_call_expr): Delete.
838 (build_call_expr_loc_array): New function.
839 (build_call_expr_loc_vec): New function.
840 * tree-flow.h (struct omp_region): Change type of ws_args field
842 * builtins.c (build_function_call_expr): Delete.
843 (build_call_expr_loc_array): New function.
844 (build_call_expr_loc): Call it. Use XALLOCAVEC.
845 (build_call_expr): Likewise.
846 (build_call_expr_loc_vec): New function.
847 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
848 build_function_call_expr.
849 * expr.c (emutls_var_address): Likewise.
850 * varasm.c (emutls_common_1): Likewise.
851 * omp-low.c (expand_omp_atomic_mutex): Likewise.
852 (expand_omp_taskreg): Adjust for new type of region->ws_args.
853 (get_ws_args_for): Return a VEC instead of a tree.
854 (expand_parallel_call): Call build_call_expr_loc_vec instead of
855 build_function_call_expr.
856 * stor-layout.c (self_referential_size): Likewise.
858 2010-07-13 Jakub Jelinek <jakub@redhat.com>
861 * recog.c (constrain_operands): Allow side-effects in memory
862 operands if either < or > constraint is used, rather than if
863 both < and > is used.
865 2010-07-13 Richard Guenther <rguenther@suse.de>
868 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
869 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
872 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
875 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
877 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
878 * config/sh/sh.md (symGOT_load): Likewise.
879 (symDTPOFF2reg): Likewise.
880 (symTPOFF2reg): Likewise.
882 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
884 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
885 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
887 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
889 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
891 Find ucontext_t * on Solaris 11.
892 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
893 Handle new Solaris 11 __sighndlr patterns.
895 2010-07-13 Jakub Jelinek <jakub@redhat.com>
898 * vec.h (VEC_block_remove): Fix comment.
899 * tree-ssa-live.c (remove_unused_locals): Don't use
900 VEC_unordered_remove on local_decls, instead replace a single
901 vector element in each iteration if at least one element had
902 to be removed and VEC_truncate at the end.
903 * omp-low.c (expand_omp_taskreg): Likewise.
905 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
907 * c-decl.c (finish_function): Fix typo in comment.
909 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
912 * postreload.c (move2add_use_add3_insn): Silence gcc warning
915 2010-07-12 Jakub Jelinek <jakub@redhat.com>
917 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
918 (simplify_stmt_using_ranges): Use it.
920 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
922 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
923 member. Do not mark as GTY(()).
924 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
925 (spu_builtin_decls): New static variable.
926 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
927 (spu_init_builtins): Likewise.
928 (spu_builtin_mul_widen_even): Likewise.
929 (spu_builtin_mul_widen_odd): Likewise.
930 (spu_builtin_mask_for_load): Likewise.
931 (spu_builtin_vec_perm): Likewise.
932 * config/spu/spu-c.c: Include "target.h".
933 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
934 of using spu_builtins[].fndecl.
936 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
938 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
939 imply -minterlink-mips16.
941 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
943 * config/mips/mips.h (mips16_globals): Declare.
944 (SWITCHABLE_TARGET): Define.
945 * config/mips/mips.c: Include target-globals.h.
946 (mips16_globals): New variable.
947 (mips_set_mips16_mode): Use save_target_globals and
948 restore_target_globals instead of target_reinit.
950 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
952 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
953 to say that the function can be called more than once.
954 * target-globals.c (save_target_globals): Call init_reg_sets.
956 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
958 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
959 * bb-reorder.h: New file.
960 * bb-reorder.c (default_target_bb_reorder): New variable.
961 (this_target_bb_reorder): New conditional variable.
962 (uncond_jump_length): Redefine as a macro.
963 * target-globals.h (this_target_bb_reorder): Declare.
964 (target_globals): Add a bb_reorder field.
965 (restore_target_globals): Copy the bb_reorder field to
966 this_target_bb-reorder.
967 * target-globals.c: Include bb-reorder.h.
968 (default_target_globals): Initialize the bb_reorder field.
969 (save_target_globals): Likewise.
971 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
973 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
975 * gcse.c: Include gcse.h.
976 (default_target_gcse): New variable.
977 (this_target_gcse): New conditional variable.
978 (can_copy): Redefine as a macro.
979 (can_copy_init_p): New macro.
980 (can_copy_p): Remove can_copy_init_p.
981 * target-globals.h (this_target_gcse): Declare.
982 (target_globals): Add a gcse field.
983 (restore_target_globals): Copy the gcse field to this_target_gcse.
984 * target-globals.c: Include gcse.h.
985 (default_target_globals): Initialize the gcse field.
986 (save_target_globals): Likewise.
988 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
990 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
991 and x_ira_prohibited_mode_move_regs_initialized_p.
992 (ira_prohibited_mode_move_regs): Redefine as a macro.
993 * ira.c (ira_prohibited_mode_move_regs): Delete.
994 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
996 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
998 * reload.h (target_reload): Add x_cached_reg_save_code and
999 x_cached_reg_restore_code.
1000 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
1003 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1005 * Makefile.in (target-globals.o): Depend on builtins.h.
1006 * builtins.h: New file.
1007 * builtins.c: Include builtins.h.
1008 (default_target_builtins): New variable.
1009 (this_target_builtins): New conditional variable.
1010 (apply_args_mode, apply_result_mode): Redefine as macros.
1011 * target-globals.h (this_target_builtins): Declare.
1012 (target_globals): Add a builtins field.
1013 (restore_target_globals): Copy the builtins field to
1014 this_target_builtins.
1015 * target-globals.c: Include builtins.h.
1016 (default_target_globals): Initialize the builtins field.
1017 (save_target_globals): Likewise.
1019 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1021 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
1022 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
1024 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
1025 (alg_hash, alg_hash_used_p): New macros.
1026 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
1027 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
1028 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
1030 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1032 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
1033 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
1034 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
1035 (this_op_costs, costs_classes): Redefine as macros.
1036 (record_reg_classes): Don't take op_costs as a parameter.
1037 (record_operand_costs): Likewise. Update calls to record_reg_classes.
1038 (scan_one_insn): Update call to record_operand_costs.
1040 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1042 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
1043 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
1044 (target_ira_int): New structure.
1045 (default_target_ira_int): Declare.
1046 (this_target_ira_int): Declare as a variable or define as a macro.
1047 (ira_reg_mode_hard_regset, ira_register_move_cost)
1048 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
1049 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
1050 (prohibited_class_mode_regs, ira_important_classes_num)
1051 (ira_important_classes, ira_reg_class_intersect)
1052 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
1053 (ira_reg_class_union): Redefine as macros.
1054 * ira.h (target_ira): New structure.
1055 (default_target_ira): Declare.
1056 (this_target_ira): Declare as a variable or define as a macro.
1057 (ira_available_class_regs, ira_hard_regno_cover_class)
1058 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
1059 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
1060 (ira_class_hard_regs_num): Redefine as macros.
1061 * ira.c (default_target_ira, default_target_ira_int): New variables.
1062 (this_target_ira, this_target_ira_int): New conditional variables.
1063 (ira_reg_mode_hard_regset, ira_memory_move_cost)
1064 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
1065 (ira_class_subset_p): Delete.
1066 (no_unit_alloc_regs): Redefine as a macro.
1067 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
1068 (ira_class_hard_regs_num, ira_class_hard_reg_index)
1069 (ira_available_class_regs): Delete.
1070 (alloc_reg_class_subclasses): Redefine as a macro.
1071 (ira_reg_class_cover_size, ira_reg_class_cover)
1072 (ira_important_classes_num, ira_important_classes)
1073 (ira_important_class_nums, ira_class_translate): Delete.
1074 (cover_class_order): Document the variable's lifetime.
1075 (reorder_important_classes): Don't set ira_important_class_nums.
1076 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
1077 (ira_reg_class_super_classes, ira_reg_class_union)
1078 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
1080 (setup_reg_class_nregs): Don't set ira_max_regs.
1081 (prohibited_class_mode_regs): Delete.
1082 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
1083 (target_globals): Add ira and ira_int fields.
1084 (restore_target_globals): Copy the ira field to this_target_ira
1085 and the ira_int field to this_target_ira_int.
1086 * target-globals.c: Include ira-int.h.
1087 (default_target_globals): Initialize the ira and ira_int fields.
1088 (save_target_globals): Likewise.
1090 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1092 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
1093 * cfgloop.h (target_cfgloop): New structure.
1094 (default_target_cfgloop): Declare.
1095 (this_target_cfgloop): Declare as a variable or define as a macro.
1096 (target_avail_regs, target_clobbered_regs, target_res_regs)
1097 (target_reg_cost, target_spill_cost): Redefine as macros.
1098 * cfgloopanal.c (default_target_cfgloop): New variable.
1099 (this_target_cfgloop): New conditional variable.
1100 (target_avail_regs, target_clobbered_regs, target_res_regs)
1101 (target_reg_cost, target_spill_cost): Delete.
1102 * target-globals.h (this_target_cfgloop): Declare.
1103 (target_globals): Add a cfgloop field.
1104 (restore_target_globals): Copy the cfgloop field to
1105 this_target_cfgloop.
1106 * target-globals.c: Include cfgloop.h.
1107 (default_target_globals): Initialize the cfgloop field.
1108 (save_target_globals): Likewise.
1110 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1112 * regs.h (target_regs): Add x_direct_load, x_direct_store and
1113 x_float_extend_from_mem.
1114 (direct_load, direct_store, float_extend_from_mem): New macros.
1115 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
1117 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1119 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
1120 (target-globals.o): Depend on $(LIBFUNCS_H).
1121 * libfuncs.h: Include hashtab.h.
1122 (libfunc_entry): Moved from optabs.c.
1123 (target_libfuncs): New structure.
1124 (default_target_libfuncs): Declare.
1125 (this_target_libfuncs): Declare as a variable or define as a macro.
1126 (libfunc_table): Redefine as a macro.
1127 * optabs.c (default_target_libfuncs): New variable.
1128 (this_target_libfuncs): New conditional variable.
1129 (libfunc_table): Delete.
1130 (libfunc_entry): Moved to optabs.h.
1131 (libfunc_hash): Redefine as a macro.
1132 (hash_libfunc, eq_libfunc): Fix comments.
1133 (init_optabs): Use libfunc_hash to detect cases where the function
1134 has already been called. Clear the hash table instead of
1136 * target-globals.h (this_target_libfuncs): Declare.
1137 (target_globals): Add a libfuncs field.
1138 (restore_target_globals): Copy the libfuncs field to
1139 this_target_libfuncs.
1140 * target-globals.c: Include libfuncs.h.
1141 (default_target_globals): Initialize the libfuncs field.
1142 (save_target_globals): Likewise.
1144 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1146 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
1147 in all dependency lists.
1149 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1151 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
1152 * optabs.h (target_optabs): New structure.
1153 (default_target_optabs): Declare.
1154 (this_target_optabs): Declare as a variable or define as a macro.
1155 (optab_table, convert_optab_table, direct_optab_table): Redefine
1157 * optabs.c (default_target_optabs): New variable.
1158 (this_target_optabs): New conditional variable.
1159 (optab_table, convert_optab_table, direct_optab_table): Delete.
1160 * target-globals.h (this_target_optabs): Declare.
1161 (target_globals): Add a optabs field.
1162 (restore_target_globals): Copy the optabs field to
1164 * target-globals.c: Include expr.h and optabs.h.
1165 (default_target_globals): Initialize the optabs field.
1166 (save_target_globals): Likewise.
1168 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1170 * flags.h (target_flagstate): Add x_flag_excess_precision.
1171 (flag_excess_precision): Redefine as a macro.
1172 * toplev.c (flag_excess_precision): Delete.
1174 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1176 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
1177 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
1178 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
1179 (no_caller_save_reg_set): Redefine as a macro.
1180 * reload.h (target_reload): Add x_caller_save_initialized_p and
1182 (caller_save_initialized_p): Redefine as a macro.
1183 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
1184 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
1185 (regno_save_mode): Redefine as a macro.
1187 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1189 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
1190 * expmed.h: New file.
1191 * expmed.c (default_target_costs): New variable.
1192 (this_target_costs): New conditional variable.
1193 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
1194 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
1195 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
1196 * target-globals.h (this_target_expmed): Declare.
1197 (target_globals): Add a expmed field.
1198 (restore_target_globals): Copy the expmed field to
1200 * target-globals.c: Include expmed.h.
1201 (default_target_globals): Initialize the expmed field.
1202 (save_target_globals): Likewise.
1204 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1206 * Makefile.in (target-globals.o): Depend on reload.h.
1207 * reload.h (target_reload): New structure.
1208 (default_target_reload): Declare.
1209 (this_target_reload): Declare as a variable or define as a macro.
1210 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
1211 * reload1.c (default_target_reload): New variable
1212 (this_target_reload): New conditional variable.
1213 (indirect_symref_ok, double_reg_address_ok): Delete.
1214 (spill_indirect_levels): Redefine as a macro.
1215 * target-globals.h (this_target_reload): Declare.
1216 (target_globals): Add a reload field.
1217 (restore_target_globals): Copy the reload field to
1219 * target-globals.c: Include hard-reg-set.h.
1220 (default_target_globals): Initialize the reload field.
1221 (save_target_globals): Likewise.
1223 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1225 * rtl.h (target_rtl): Add x_static_reg_base_value.
1226 * alias.c (static_reg_base_value): Redefine as a macro.
1228 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1230 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
1231 (GTFILES): Remove reginfo.c.
1232 * rtl.h (target_rtl): Add x_top_of_stack.
1233 (top_of_stack): New macro.
1234 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
1235 (top_of_stack): Delete.
1237 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1239 * regs.h (target_regs): Add x_hard_regs_of_mode,
1240 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
1241 x_may_move_out_cost and x_last_mode_for_init_move_cost.
1242 (have_regs_of_mode, contains_reg_of_mode, move_cost)
1243 (may_move_in_cost, may_move_out_cost): Redefine as macros.
1244 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
1245 (may_move_in_cost, may_move_out_cost): Delete.
1246 (last_mode_for_init_move_cost): Redefine as a macro.
1248 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1250 * hard-reg-set.h (target_hard_regs): New structure.
1251 (default_target_hard_regs): Declare.
1252 (this_target_hard_regs): Declare as a variable or define as a macro.
1253 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
1254 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
1255 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
1256 (reg_class_size, reg_class_subclasses, reg_class_subunion)
1257 (reg_class_superunion, reg_names): Redefine as macros.
1258 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
1259 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
1260 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
1261 (reg_class_contents, reg_class_size, reg_class_subclasses)
1262 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
1263 (default_target_hard_regs): New variable
1264 (this_target_hard_regs, initial_call_really_used_regs)
1265 (initial_reg_alloc_order): New conditional variables.
1266 (initial_reg_names): New variable.
1267 (init_reg_sets): Assert that initial_call_really_used_regs,
1268 initial_reg_alloc_order and initial_reg_names
1269 are all the same size as their variable counterparts. Use them to
1270 initialize those counterparts.
1271 * target-globals.h (this_target_hard_regs): Declare.
1272 (target_globals): Add a hard_regs field.
1273 (restore_target_globals): Copy the hard_regs field to
1274 this_target_hard_regs.
1275 * target-globals.c: Include hard-reg-set.h.
1276 (default_target_globals): Initialize the hard_regs field.
1277 (save_target_globals): Likewise.
1279 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1281 * Makefile.in (target-globals.o): Depend on $(RTL_H).
1282 * rtl.h: (target_rtl): New structure.
1283 (default_target_rtl): Declare.
1284 (this_target_rtl): Declare as a variable or define as a macro.
1285 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
1287 * emit-rtl.c (default_target_rtl): New variable.
1288 (this_target_rtl): New conditional variable.
1289 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
1290 (return_address_pointer_rtx): Delete.
1291 (initial_regno_reg_rtx): New macro.
1292 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
1293 (init_emit_regs): Likewise.
1294 * target-globals.h (this_target_rtl): Declare.
1295 (target_globals): Add a rtl field.
1296 (restore_target_globals): Copy the rtl field to this_target_rtl.
1297 * target-globals.c: Include rtl.h.
1298 (default_target_globals): Initialize the rtl field.
1299 (save_target_globals): Likewise.
1301 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1303 * Makefile.in (target-globals.o): Depend on $(REGS_H).
1304 * regs.h (target_reg_modes): New structure.
1305 (default_target_reg_modes): Declare.
1306 (this_target_reg_modes): Declare as a variable or define as a macro.
1307 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
1308 * reginfo.c (default_target_reg_modes): New variable.
1309 (this_target_reg_modes): New conditional variable.
1310 (hard_regno_nregs, reg_raw_mode): Delete.
1311 * target-globals.h (this_target_regs): Declare.
1312 (target_globals): Add a regs field.
1313 (restore_target_globals): Copy the regs field to this_target_regs.
1314 * target-globals.c: Include regs.h.
1315 (default_target_globals): Initialize the regs field.
1316 (save_target_globals): Likewise.
1318 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1320 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
1321 * doc/tm.texi: Regenerate.
1322 * Makefile.in (OBJS-common): Add target-globals.o.
1323 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
1324 and target-globals.h.
1325 (target-globals.o): New rule.
1326 (GTFILES): Include $(srcdir)/target-globals.h.
1327 * defaults.h (SWITCHABLE_TARGET): Define.
1328 * gengtype.c (open_base_files): Add target-globals.h to the
1330 * target-globals.h: New file.
1331 * target-globals.c: Likewise.
1333 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
1334 * flags.h (target_flag_state): New structure.
1335 (default_target_flag_state): Declare.
1336 (this_target_flag_state): Declare as a variable or define as a macro.
1337 (align_loops_log): Redefine as a macro.
1338 (align_loops_max_skip, align_jumps_log): Likewise.
1339 (align_jumps_max_skip, align_labels_log): Likewise.
1340 (align_labels_max_skip, align_functions_log): Likewise.
1341 * toplev.c (default_target_flag_state): New variable.
1342 (this_target_flag_state): New conditional variable.
1343 (align_loops_log): Delete.
1344 (align_loops_max_skip, align_jumps_log): Likewise.
1345 (align_jumps_max_skip, align_labels_log): Likewise.
1346 (align_labels_max_skip, align_functions_log): Likewise.
1347 * target-globals.h (this_target_flag_state): Declare.
1348 (target_globals): Add a flag_state field.
1349 (restore_target_globals): Copy the flag_state field to
1350 this_target_flag_state.
1351 * target-globals.c: Include flags.h.
1352 (default_target_globals): Initialize the flag_state field.
1353 (save_target_globals): Likewise.
1355 2010-07-12 Jie Zhang <jie@codesourcery.com>
1357 * postreload.c (reg_symbol_ref[]): New.
1358 (move2add_use_add2_insn): New.
1359 (move2add_use_add3_insn): New.
1360 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
1361 (move2add_note_store): Likewise.
1363 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
1365 PR rtl-optimization/44752
1366 * genautomata.c (main): Don't emit an empty file even if there
1369 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1371 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
1372 ix86_solaris_return_in_memory.
1373 * config/i386-protos.h: Reflect this.
1374 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1375 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1377 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
1379 2010-07-12 Jie Zhang <jie@codesourcery.com>
1381 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
1382 align the stack when it's going to be saved.
1384 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1387 * config/host-solaris.c (mmap_fixed): New function.
1388 (sol_gt_pch_get_address): Use it.
1389 (sol_gt_pch_use_address): Likewise.
1391 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1393 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1394 pentiumpro on Solaris 8 and 9/x86.
1395 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
1396 Document SSE/SSE2 support.
1397 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
1399 2010-07-12 Andi Kleen <ak@linux.intel.com>
1401 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
1402 instead of gcc_assert to print better error message for multiple
1405 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
1407 * config/i386/i386.c (ix86_asm_output_function_label): Change format
1408 string placeholder from 0x%x to %#x.
1409 (ix86_code_end): Use putc to output '\n'.
1410 (ix86_print_operand) <case ';'>: Use putc to output ';'.
1412 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
1414 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
1415 in directive -export.
1417 2010-07-10 Anatoly Sokolov <aesok@post.ru>
1419 * reginfo.h (reg_classes_intersect_p): Change arguments type to
1421 * rtl.h (reg_classes_intersect_p): Adjust prototype.
1423 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1425 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
1426 rs6000_memory_move_cost): Remove
1427 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
1428 TARGET_MEMORY_MOVE_COST): Define.
1429 (rs6000_register_move_cost): Make static. Change arguments type from
1430 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
1431 (rs6000_memory_move_cost): Make static. Change arguments type from
1432 'enum reg_class' to reg_class_t.
1434 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
1437 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
1438 lookup code into....
1439 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
1441 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
1442 * cfgloopanal.c (target_clobbered_regs): Define.
1443 (init_set_costs): Initialize target_clobbered_regs.
1444 (estimate_reg_pressure_cost): Add call_p argument. When true,
1445 adjust the number of available registers to exclude the
1446 call-clobbered registers.
1447 * cfgloop.h (target_clobbered_regs): Declare.
1448 (estimate_reg_pressure_cost): Adjust declaration.
1449 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
1450 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
1451 (determine_set_costs): Dump target_clobbered_regs.
1452 (loop_body_includes_call): New function.
1453 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
1454 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
1455 call_p flag through.
1456 (best_gain_for_invariant): Likewise.
1457 (find_invariants_to_move): Likewise.
1458 (move_single_loop_invariants): Likewise, using already-computed
1461 2010-07-10 Richard Guenther <rguenther@suse.de>
1462 Joern Rennecke <joern.rennecke@embecosm.com>
1465 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
1466 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
1467 unless they have DECL_IGNORED_P set.
1469 2010-07-10 Richard Guenther <rguenther@suse.de>
1472 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
1474 (gimple_types_compatible_p): Similar to pointed-to
1475 types allow and merge a mix of complete and incomplete aggregate.
1476 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
1477 (iterative_hash_gimple_type): Adjust for that.
1479 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1481 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
1483 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
1486 * config/darwin.c (output_objc_section_asm_op): Save and restore
1487 section when outputting ObjC section list.
1489 2010-07-09 Jan Hubicka <jh@suse.cz>
1491 * lto-streamer-out.c (produce_symtab): Do not write alias
1492 cgraph/varpool nodes.
1494 2010-07-09 Jan Hubicka <jh@suse.cz>
1496 * tree-inline.c (declare_return_variable): Fix ICE while
1497 inlining DECL_BY_VALUE function not in SSA form
1499 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
1501 PR tree-optimization/44576
1502 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
1503 New. Pull out from is_loop_prefetching_profitable to implement
1504 the trip count to ahead ratio heuristic.
1505 (mem_ref_count_reasonable_p): New. Pull out from
1506 is_loop_prefetching_profitable to implement the instruction to
1507 memory reference ratio heuristic. Also consider not reasonable if
1508 the memory reference count is above a threshold (to avoid
1509 explosive compilation time.
1510 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
1511 is_loop_prefetching_profitable to implement the instruction to
1512 prefetch ratio heuristic.
1513 (is_loop_prefetching_profitable): Removed.
1514 (loop_prefetch_arrays): Distribute the cost analysis across the
1515 function to allow early exit of the prefetch analysis.
1516 is_loop_prefetching_profitable is splitted into three functions,
1517 with each one called as early as possible.
1518 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
1519 number of memory references in a loop is considered too many.
1521 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1523 * reload.c (find_reloads): Don't clear badop if we have a winreg
1524 alternative, but not win, and the class only has fixed regs.
1525 * hard-reg-set.h (class_only_fixed_regs): Declare.
1526 * reginfo.c (class_only_fixed_regs): New array.
1527 (init_reg_sets_1): Initialize it.
1528 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
1529 discourage alternatives using the stack pointer.
1531 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
1533 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
1535 * config/arm/arm.md (cbranchqi4): Fix array size.
1536 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
1539 2010-07-09 Richard Guenther <rguenther@suse.de>
1541 * gimple.c (struct type_fixup_s): New struct and VEC type.
1542 (gimple_register_type_fixups): New static global.
1543 (gimple_queue_type_fixup): New function.
1544 (gimple_types_compatible_p): Queue type fixups instead of
1546 (gimple_register_type): Apply queued fixups for the
1547 canonical type. Empty the type fixup queue.
1549 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1551 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
1552 * configure: Regenerate.
1555 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1556 Denys Vlasenko <dvlasenk@redhat.com>
1557 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1559 PR tree-optimization/28632
1560 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
1561 (extract_range_from_binary_expr): Further optimize
1562 BIT_AND_EXPR and BIT_IOR_EXPR.
1564 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
1566 * tree-if-conv.c (fold_or_predicates): New.
1567 (add_to_predicate_list): Call it.
1569 2010-07-09 Richard Guenther <rguenther@suse.de>
1572 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
1573 if base is a pointer.
1574 * tree-cfg.c (verify_expr): Update MEM_REF checking.
1576 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1579 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
1580 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
1581 builtin mask for load/store builtins.
1583 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1585 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
1587 * configure: Regenerate.
1588 * config/i386/i386.c (ix86_print_operand) <case ';'>:
1589 Remove TARGET_MACHO.
1591 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
1593 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
1595 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
1597 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
1599 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
1601 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
1603 * config/picochip/picochip.md (commsTestPort): Emit more
1604 efficient sequence for tstport instruction.
1606 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1608 * config/i386/i386.c (ix86_veclib_handler): Make static.
1610 2010-07-09 Richard Guenther <rguenther@suse.de>
1612 PR tree-optimization/44852
1613 * tree-ssa-alias.c: Include toplev.h for exact_log2.
1614 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
1616 (indirect_refs_may_alias_p): Likewise.
1617 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
1619 2010-07-09 Richard Guenther <rguenther@suse.de>
1621 PR tree-optimization/44882
1622 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
1624 (vectorizable_load): Likewise.
1626 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1629 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
1630 All callers changed.
1631 Handle the case when we're called for the epilogue.
1632 (thumb_unexpanded_epilogue): Use it.
1633 (thumb1_expand_epilogue): Likewise.
1635 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1637 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
1638 both ranges are range_int_cst_p with non-negative minimum,
1639 try harder to derive smaller range.
1641 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1643 * genrecog.c: Include diagnostic-core.h before toplev.h.
1644 * genoutput.c: Likewise.
1645 * genextract.c: Likewise.
1646 * genautomata.c: Likewise.
1647 * genemit.c: Likewise.
1648 * genpeep.c: Likewise.
1649 * genattrtab.c: Likewise.
1650 * genconditions.c: Likewise.
1651 * genpreds.c: Likewise.
1653 2010-07-08 Andi Kleen <ak@linux.intel.com>
1655 * lto-section-in.c (lto_section_name): Add missing comma.
1657 2010-07-08 Anatoly Sokolov <aesok@post.ru>
1659 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1660 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1661 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1662 (ia64_override_options): Rename to...
1663 (ia64_option_override): ... this one. Make static.
1665 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1668 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1669 pointed-to type of the offset in a MEM_REF to compute the alignment.
1671 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
1673 * final.c (final_scan_insn): Replace
1674 TARGET_UNWIND_INFO macro check by unwind_emit
1676 * targhooks.c (default_unwind_emit): Removed.
1677 * targhooks.h (default_unwind_emit): Likewise.
1678 * target.def (unwind_emit): Set default value to NULL.
1680 * config/i386/i386-protos.h (ix86_asm_output_function_label):
1682 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1683 for NULL fntype argument and allow 64-bit targets.
1684 (ix86_asm_output_function_label): New function.
1685 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1686 (ix86_handle_fndecl_attribute): Likewise.
1687 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1688 * doc/doc/tm.texi: Regenerated.
1689 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1690 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1691 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1692 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1693 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1694 * config/elfos.h: Likewise.
1695 * config/i386/cygming.h: Likewise.
1696 * config/netbsd-aout.h: Likewise.
1697 * config/openbsd.h: Likewise.
1698 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1699 by ix86_asm_output_function_label function call.
1700 * varasm.c (assemble_start_function): Use
1701 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1703 2010-07-08 Jan Hubicka <jh@suse.cz>
1705 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1707 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1709 * ipa-cp.c (ipcp_estimate_growth): Use it.
1710 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1713 2010-07-08 Jan Hubicka <jh@suse.cz>
1715 * tree-inline.c (declare_return_variable): Allocate annotation for new
1718 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1720 PR tree-optimization/44710
1721 * tree-if-conv.c (parse_predicate): New.
1722 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1723 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1725 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1727 * common.opt (ftree-loop-if-convert): New flag.
1728 * doc/invoke.texi (ftree-loop-if-convert): Documented.
1729 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1730 when flag_tree_loop_if_convert is set.
1732 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
1734 * config/i386/i386.c: Use short syntax for function calls
1735 through function pointers.
1736 * config/i386/i386.md: Ditto.
1738 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1740 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1742 2010-07-08 Richard Guenther <rguenther@suse.de>
1744 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1745 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1747 2010-07-08 Jakub Jelinek <jakub@redhat.com>
1749 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1750 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1751 (loc_list_from_tree): Likewise.
1752 (output_loc_operands): Handle outputting DW_OP_const[48]u
1753 with loc->dtprel set.
1754 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1756 2010-07-08 Jan Hubicka <jh@suse.cz>
1758 * ipa.c: Include pointer-set.h
1759 (cgraph_externally_visible_p): New attribute ALIASED;
1760 when in LTO, hidden symbols are local unless they are aliased.
1761 (function_and_variable_visibility): Compute aliased nodes;
1762 handle LTO and hidden symbol on functions and vars.
1763 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1764 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1766 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1768 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1769 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1770 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1771 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1772 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1773 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1774 (ix86_gen_probe_stack_range): Likewise.
1775 (override_options): Set them.
1776 (ix86_target_stack_probe): New function.
1777 (ix86_compute_frame_layout): Force use of push instructions to
1778 save registers if stack checking with probes is enabled.
1779 (get_scratch_register_on_entry): New function.
1780 (release_scratch_register_on_entry): Likewise.
1781 (ix86_adjust_stack_and_probe): Likewise.
1782 (output_adjust_stack_and_probe): Likewise.
1783 (ix86_emit_probe_stack_range): Likewise.
1784 (output_probe_stack_range): Likewise.
1785 (ix86_expand_prologue): Emit stack checking code if static built-in
1786 stack checking is enabled.
1787 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1788 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1789 (output_adjust_stack_and_probe): Likewise.
1790 (output_probe_stack_range): Likewise.
1791 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1792 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1794 (allocate_stack_worker_64): Likewise.
1795 (allocate_stack): Likewise.
1796 (adjust_stack_and_probe): New insn.
1797 (probe_stack_range): Likewise.
1799 2010-07-08 Richard Guenther <rguenther@suse.de>
1801 PR tree-optimization/44831
1802 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1803 a MEM_REF preserving TBAA info of the original dereference.
1804 Dereference the original pointer if the address is not invariant.
1805 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
1806 at least one invariant address that we are going to dereference.
1808 2010-07-08 Richard Guenther <rguenther@suse.de>
1810 PR tree-optimization/44861
1811 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1812 information when building MEM_REFs.
1813 (vectorizable_load): Likewise.
1814 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1816 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1818 * config/sol2-c.c: Do not include diagnostic-core.h.
1820 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1823 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1824 with respect to current_function_decl. Pass decl of the function.
1825 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1826 * ipa-inline.c (compute_inline_parameters): Pass decl to
1827 estimated_stack_frame_size.
1829 2010-07-08 Richard Guenther <rguenther@suse.de>
1831 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1833 (valueize_refs): Call it.
1835 2010-07-08 Richard Guenther <rguenther@suse.de>
1837 PR rtl-optimization/44838
1838 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1839 SSA form do not use pointer equivalence.
1841 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1843 * dwarf2out.c (AT_linkage_name): Delete.
1844 (add_linkage_attr): New function.
1845 (add_linkage_name): Call it to emit the linkage attribute.
1846 (dwarf2out_finish): Likewise.
1847 (move_linkage_attr): Explicitly accept both attribute variants.
1849 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1851 * toplev.h: Do not include diagnostic-core.h.
1852 Include diagnostic-core.h in every file that includes toplev.h.
1853 * c-tree.h: Do not include toplev.h.
1854 * pretty-print.h: Update comment.
1855 * Makefile.in: Update dependencies.
1856 * alias.c: Include diagnostic-core.h in every file that includes
1858 * attribs.c: Likewise.
1859 * auto-inc-dec.c: Likewise.
1860 * bb-reorder.c: Likewise.
1861 * bt-load.c: Likewise.
1862 * caller-save.c: Likewise.
1863 * calls.c: Likewise.
1865 * cfganal.c: Likewise.
1866 * cfgbuild.c: Likewise.
1867 * cfgcleanup.c: Likewise.
1868 * cfghooks.c: Likewise.
1869 * cfgloop.c: Likewise.
1870 * combine.c: Likewise.
1871 * config/alpha/alpha.c: Likewise.
1872 * config/arc/arc.c: Likewise.
1873 * config/arm/arm.c: Likewise.
1874 * config/arm/pe.c: Likewise.
1875 * config/avr/avr.c: Likewise.
1876 * config/bfin/bfin.c: Likewise.
1877 * config/cris/cris.c: Likewise.
1878 * config/crx/crx.c: Likewise.
1879 * config/darwin-c.c: Likewise.
1880 * config/darwin.c: Likewise.
1881 * config/fr30/fr30.c: Likewise.
1882 * config/frv/frv.c: Likewise.
1883 * config/h8300/h8300.c: Likewise.
1884 * config/host-darwin.c: Likewise.
1885 * config/i386/i386.c: Likewise.
1886 * config/i386/netware.c: Likewise.
1887 * config/i386/nwld.c: Likewise.
1888 * config/i386/winnt-cxx.c: Likewise.
1889 * config/i386/winnt-stubs.c: Likewise.
1890 * config/i386/winnt.c: Likewise.
1891 * config/ia64/ia64-c.c: Likewise.
1892 * config/ia64/ia64.c: Likewise.
1893 * config/iq2000/iq2000.c: Likewise.
1894 * config/lm32/lm32.c: Likewise.
1895 * config/m32c/m32c-pragma.c: Likewise.
1896 * config/m32c/m32c.c: Likewise.
1897 * config/m32r/m32r.c: Likewise.
1898 * config/m68hc11/m68hc11.c: Likewise.
1899 * config/m68k/m68k.c: Likewise.
1900 * config/mcore/mcore.c: Likewise.
1901 * config/mep/mep-pragma.c: Likewise.
1902 * config/mep/mep.c: Likewise.
1903 * config/mmix/mmix.c: Likewise.
1904 * config/mn10300/mn10300.c: Likewise.
1905 * config/moxie/moxie.c: Likewise.
1906 * config/pa/pa.c: Likewise.
1907 * config/pdp11/pdp11.c: Likewise.
1908 * config/picochip/picochip.c: Likewise.
1909 * config/rs6000/rs6000-c.c: Likewise.
1910 * config/rs6000/rs6000.c: Likewise.
1911 * config/rx/rx.c: Likewise.
1912 * config/s390/s390.c: Likewise.
1913 * config/score/score.c: Likewise.
1914 * config/score/score3.c: Likewise.
1915 * config/score/score7.c: Likewise.
1916 * config/sh/sh.c: Likewise.
1917 * config/sh/symbian-base.c: Likewise.
1918 * config/sh/symbian-c.c: Likewise.
1919 * config/sh/symbian-cxx.c: Likewise.
1920 * config/sol2-c.c: Likewise.
1921 * config/sol2.c: Likewise.
1922 * config/sparc/sparc.c: Likewise.
1923 * config/spu/spu.c: Likewise.
1924 * config/stormy16/stormy16.c: Likewise.
1925 * config/v850/v850-c.c: Likewise.
1926 * config/v850/v850.c: Likewise.
1927 * config/vax/vax.c: Likewise.
1928 * config/vxworks.c: Likewise.
1929 * config/xtensa/xtensa.c: Likewise.
1930 * convert.c: Likewise.
1932 * cselib.c: Likewise.
1933 * dbgcnt.c: Likewise.
1934 * dbxout.c: Likewise.
1936 * dominance.c: Likewise.
1937 * emit-rtl.c: Likewise.
1938 * explow.c: Likewise.
1939 * expmed.c: Likewise.
1940 * fixed-value.c: Likewise.
1941 * fold-const.c: Likewise.
1942 * fwprop.c: Likewise.
1944 * ggc-common.c: Likewise.
1945 * ggc-page.c: Likewise.
1946 * ggc-zone.c: Likewise.
1947 * gimple-low.c: Likewise.
1948 * gimplify.c: Likewise.
1949 * graph.c: Likewise.
1950 * haifa-sched.c: Likewise.
1951 * ifcvt.c: Likewise.
1952 * implicit-zee.c: Likewise.
1953 * integrate.c: Likewise.
1954 * ira-build.c: Likewise.
1955 * ira-color.c: Likewise.
1956 * ira-conflicts.c: Likewise.
1957 * ira-costs.c: Likewise.
1958 * ira-lives.c: Likewise.
1960 * lists.c: Likewise.
1961 * loop-doloop.c: Likewise.
1962 * loop-iv.c: Likewise.
1963 * lto-opts.c: Likewise.
1964 * lto-symtab.c: Likewise.
1966 * modulo-sched.c: Likewise.
1967 * optabs.c: Likewise.
1968 * params.c: Likewise.
1969 * plugin.c: Likewise.
1970 * postreload-gcse.c: Likewise.
1971 * postreload.c: Likewise.
1972 * predict.c: Likewise.
1973 * profile.c: Likewise.
1975 * regcprop.c: Likewise.
1976 * reginfo.c: Likewise.
1977 * regmove.c: Likewise.
1978 * reorg.c: Likewise.
1979 * resource.c: Likewise.
1981 * rtlanal.c: Likewise.
1982 * sched-deps.c: Likewise.
1983 * sched-ebb.c: Likewise.
1984 * sched-rgn.c: Likewise.
1985 * sdbout.c: Likewise.
1986 * sel-sched-dump.c: Likewise.
1987 * sel-sched-ir.c: Likewise.
1988 * simplify-rtx.c: Likewise.
1990 * stor-layout.c: Likewise.
1991 * store-motion.c: Likewise.
1992 * targhooks.c: Likewise.
1993 * tree-cfg.c: Likewise.
1994 * tree-cfgcleanup.c: Likewise.
1995 * tree-dump.c: Likewise.
1996 * tree-eh.c: Likewise.
1997 * tree-inline.c: Likewise.
1998 * tree-nomudflap.c: Likewise.
1999 * tree-object-size.c: Likewise.
2000 * tree-optimize.c: Likewise.
2001 * tree-outof-ssa.c: Likewise.
2002 * tree-phinodes.c: Likewise.
2003 * tree-profile.c: Likewise.
2004 * tree-ssa-ccp.c: Likewise.
2005 * tree-ssa-coalesce.c: Likewise.
2006 * tree-ssa-live.c: Likewise.
2007 * tree-ssa-loop-niter.c: Likewise.
2008 * tree-ssa-loop-prefetch.c: Likewise.
2009 * tree-ssa-loop.c: Likewise.
2010 * tree-ssa-structalias.c: Likewise.
2011 * tree-ssa-uninit.c: Likewise.
2012 * tree-ssa.c: Likewise.
2013 * tree-vect-data-refs.c: Likewise.
2014 * tree-vect-loop-manip.c: Likewise.
2015 * tree-vect-loop.c: Likewise.
2016 * tree-vect-patterns.c: Likewise.
2017 * tree-vect-stmts.c: Likewise.
2018 * tree-vrp.c: Likewise.
2019 * varasm.c: Likewise.
2022 * xcoffout.c: Likewise.
2024 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
2026 * gengtype.c (write_field_root): New function.
2027 (write_root): Use it.
2029 2010-07-07 Wei Guozhi <carrot@google.com>
2031 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2032 of lowest bits to lshift/compare): Add a missing line.
2034 2010-07-07 Wei Guozhi <carrot@google.com>
2036 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2037 of lowest bits to lshift/compare): New.
2039 2010-07-07 Tom Tromey <tromey@redhat.com>
2041 * doc/tm.texi: Update.
2042 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
2044 * target.def (want_debug_pub_sections): New hook.
2045 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
2046 * dwarf2out.c (add_pubname_string): Check
2047 targetm.want_debug_pub_sections.
2048 (add_pubname): Likewise.
2049 (add_pubtype): Likewise.
2051 2010-07-07 Jie Zhang <jie@codesourcery.com>
2053 * genautomata.c (output_automata_list_min_issue_delay_code):
2054 Correctly decompress min_issue_delay.
2056 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
2058 PR rtl-optimization/44404
2059 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
2060 possible, use reg_overlap_mentioned_p instead.
2062 2010-07-07 Duncan Sands <baldrick@free.fr>
2065 * tree.c (build_function_type_skip_args): Copy the original type using
2066 build_distinct_type_copy rather than copy_node.
2068 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
2071 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
2073 (ix86_expand_prologue): Likewise.
2074 (ix86_handle_fndecl_attribute): Likewise.
2075 (ix86_asm_declare_function_name): Likewise.
2076 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2077 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2078 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
2079 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
2080 * doc/extend.texi: Likewise.
2082 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
2085 * config/i386/i386.md (rdrand<mode>): Changed to expand to
2086 retry if the carry flag isn't valid.
2087 (rdrand<mode>_1): New.
2089 2010-07-07 Richard Guenther <rguenther@suse.de>
2092 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
2093 for expanding the constant offset for MEM_REFs.
2095 2010-07-07 Richard Guenther <rguenther@suse.de>
2097 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
2098 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
2099 * gimple.h (is_gimple_operand): Remove.
2100 * gimple.c (is_gimple_operand): Likewise.
2101 (walk_gimple_op): Fix wi->val_only setting for calls.
2102 * tree-cfg.c (verify_gimple_call): Fix argument validation.
2103 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
2104 invalid gimple calls.
2106 2010-07-06 Jan Hubicka <jh@suse.cz>
2108 * lto-cgraph.c (output_cgraph): Add missing declaration.
2110 2010-07-06 Jan Hubicka <jh@suse.cz>
2112 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
2115 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
2117 * doc/gimple.texi (GIMPLE_DEBUG): Document.
2118 * doc/rtl.texi (Debug Information): New node.
2119 (NOTE_INSN_VAR_LOCATION): Document.
2120 (debug_insn): Likewise.
2121 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
2123 2010-07-07 Jan Hubicka <jh@suse.cz>
2125 With parts by Richard Guenther.
2128 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
2129 for functions passed by reference.
2130 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
2131 in memory when passed by reference.
2132 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
2134 * ipa-split.c (split_function): Cleanup way return value is passed;
2135 handle SSA DECL_BY_REFERENCE retvals.
2136 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
2137 DECL_BY_REFERENCE is set.
2138 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
2139 find_what_p_points_to): Handle RESULT_DECL.
2140 * tree-inline.c (declare_return_variable): Get new entry_block argument;
2141 when passing by reference ensure that RESULT_DECL is gimple_val.
2142 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
2143 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
2145 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
2147 PR rtl-optimization/44787
2148 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
2149 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
2151 2010-07-06 Jan Hubicka <jh@suse.cz>
2153 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
2154 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
2155 with body can prevail.
2156 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
2157 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
2158 * cgraph.c (cgraph_get_node_or_alias): New function.
2159 * cgraph.h (cgraph_get_node_or_alias): Declare.
2161 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
2163 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
2165 (ix86_expand_prologue): Likewise.
2166 (ix86_handle_fndecl_attribute): Likewise.
2167 (ix86_asm_declare_function_name): New function for
2168 ASM_DECLARE_FUNCTION_NAME.
2169 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
2170 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
2171 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
2172 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
2173 * doc/extend.texi: Adjust documentation about ms_hook_prologue
2176 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2178 * config/i386/i386.md (immediate_operand): New mode attribute.
2180 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
2181 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
2182 using P mode iterator.
2183 (pro_epilogue_adjust_stack_di_2): Rename from
2184 pro_epilogue_adjust_stack_rex64_2.
2186 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
2188 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2190 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
2191 through gen_mov_insv_1 function pointer.
2192 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
2193 gen_truncxf<mode>2 through gen_truncxf function pointer.
2194 (remainder<mode>3): Ditto.
2195 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
2196 (allocate_stack): Call gen_allocate_stack_worker_64 or
2197 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
2199 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
2202 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2204 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
2205 operand constraint instead of <r><i>m.
2207 2010-07-06 Richard Guenther <rguenther@suse.de>
2210 * convert.c (convert_to_integer): Watch out for overflowing
2213 2010-07-05 Jan Hubicka <jh@suse.cz>
2215 * lto-streamer.c (write_symbol_vec): Rename to ...
2216 (write_symbol) ... this one; write only symbol given and when
2217 present in cache. Sanity check that what is defined is present
2218 in cgraph/varpool with body/finalized decl.
2219 (write_symbols_of_kind): Remove.
2220 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
2221 pairs to produce symtab.
2222 (produce_asm_for_decls): Update call of produce_symtab; don't do so
2223 when doing WPA streaming.
2225 2010-07-05 Jan Hubicka <jh@suse.cz>
2227 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
2228 function is still available to fold into.
2230 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2232 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
2233 * function.h (struct_function): Change type of local_decls field
2235 (add_local_decl): New function.
2236 (FOR_EACH_LOCAL_DECL): New macro.
2237 * cfgexpand.c (init_vars_expansion): Adjust for new type of
2239 (estimated_stack_frame_size): Likewise.
2240 (expand_used_vars): Likewise.
2241 * cgraphbuild.c (build_cgraph_edges): Likewise.
2242 * function.c (instantiate_decls_1): Likewise.
2243 * ipa-struct-reorg.c (build_data_structure): Likewise.
2244 * ipa-type-escape.c (analyze_function): Likewise.
2245 * lto-streamer-in.c (input_function): Likewise.
2246 * lto-streamer-out.c (output_function): Likewise.
2247 * tree-ssa-live.c (remove_unused_locals): Likewise.
2248 * tree.c (free_lang_data_in_decl): Likewise.
2249 (find_decls_types_in_node): Likewise.
2250 * omp-low.c (remove_exit_barrier): Likewise.
2251 (expand_omp_taskreg): Likewise.
2252 (list2chain): Rename to...
2253 (vec2chain): ...this. Adjust.
2254 * cgraphunit.c (assemble_thunk): Call add_local_decl.
2255 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
2256 * gimple-low.c (record_vars_into): Likewise.
2257 * tree-inline.c (remap_decls): Likewise.
2258 (declare_return_variable): Likewise.
2259 (declare_inline_vars): Likewise.
2260 (copy_forbidden): Adjust for new type of cfun->local_decls.
2261 (add_local_variables): New function.
2262 (expand_call_inline): Call it.
2263 (tree_function_versioning): Likewise.
2265 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
2267 AVX Programming Reference (June, 2010)
2268 * config/i386/cpuid.h (bit_F16C): New.
2269 (bit_RDRND): Likewise.
2270 (bit_FSGSBASE): Likewise.
2272 * config/i386/i386-builtin-types.def: Add
2273 "DEF_FUNCTION_TYPE (UINT16)", function types for
2274 float16 <-> float conversions and
2275 "DEF_FUNCTION_TYPE (VOID, UINT64)".
2277 * config/i386/i386-c.c (ix86_target_macros_internal): Support
2278 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
2279 OPTION_MASK_ISA_F16C.
2281 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
2282 (OPTION_MASK_ISA_RDRND_SET): Likewise.
2283 (OPTION_MASK_ISA_F16C_SET): Likewise.
2284 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
2285 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
2286 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
2287 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
2288 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
2289 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
2290 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
2291 (override_options): Handle them.
2292 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
2293 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
2294 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
2295 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
2296 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
2297 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
2298 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
2299 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
2300 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
2301 (bdesc_args): Likewise.
2302 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
2303 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
2304 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
2305 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
2306 Handle non-memory store.
2308 * config/i386/i386.h (TARGET_FSGSBASE): New.
2309 (TARGET_RDRND): Likewise.
2310 (TARGET_F12C): Likewise.
2312 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
2313 (UNSPEC_VCVTPS2PH): Likewise.
2314 (UNSPECV_RDFSBASE): Likewise.
2315 (UNSPECV_RDGSBASE): Likewise.
2316 (UNSPECV_WRFSBASE): Likewise.
2317 (UNSPECV_WRGSBASE): Likewise.
2318 (UNSPECV_RDRAND): Likewise.
2319 (rdfsbase<mode>): Likewise.
2320 (rdgsbase<mode>): Likewise.
2321 (wrfsbase<mode>): Likewise.
2322 (wrgsbase<mode>): Likewise.
2323 (rdrand<mode>): Likewise.
2325 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
2327 * config/i386/immintrin.h (_rdrand_u16): New.
2328 (_rdrand_u32): Likewise.
2329 (_readfsbase_u32): Likewise.
2330 (_readfsbase_u64): Likewise.
2331 (_readgsbase_u32): Likewise.
2332 (_readgsbase_u64): Likewise.
2333 (_writefsbase_u32): Likewise.
2334 (_writefsbase_u64): Likewise.
2335 (_writegsbase_u32): Likewise.
2336 (_writegsbase_u64): Likewise.
2337 (_rdrand_u64): Likewise.
2338 (_cvtsh_ss): Likewise.
2339 (_mm_cvtph_ps): Likewise.
2340 (_mm256_cvtph_ps): Likewise.
2341 (_cvtss_sh): Likewise.
2342 (_mm_cvtps_ph): Likewise.
2343 (_mm256_cvtps_ph): Likewise.
2345 * config/i386/sse.md (vcvtph2ps): New.
2346 (*vcvtph2ps_load): Likewise.
2347 (vcvtph2ps256): Likewise.
2348 (vcvtps2ph): Likewise.
2349 (*vcvtps2ph): Likewise.
2350 (*vcvtps2ph_store): Likewise.
2351 (vcvtps2ph256): Likewise.
2353 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
2355 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
2357 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
2360 * genenums.c (main): Output include of insn-constants.h
2361 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
2363 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
2365 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
2366 (override_options): Initialize it.
2367 (ix86_expand_prologue): Use it.
2369 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2371 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
2373 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2375 * double-int.h (fit_double_type): Remove declaration.
2376 * double-int.c (fit_double_type): Remove function.
2377 * tree.h (int_fits_type_p): Adjust prototype.
2378 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
2379 instead of fit_double_type.
2380 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
2381 instead of fit_double_type and build_int_cst_wide.
2382 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
2383 instead of fit_double_type and build_int_cst_wide.
2384 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
2387 2010-07-05 Jan Hubicka <jh@suse.cz>
2389 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
2391 * lto-cgraph.c (referenced_from_other_partition_p,
2392 reachable_from_other_partition_p): Use in_other_partition flags.
2393 (output_node, output_varpool_node): COMDAT nodes always have private
2394 copies and thus are never used from other partition.
2396 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2398 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2399 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
2400 * config/ia64/ia64.c Include reload.h.
2401 (ia64_memory_move_cost): New function.
2402 (TARGET_MEMORY_MOVE_COST): Define.
2403 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
2406 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
2409 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
2410 comments about cost model.
2411 (try_add_cand_for): Add second strategy for choosing initial set
2412 based on original IVs, controlled by ORIGINALP argument.
2413 (get_initial_solution): Add ORIGINALP argument.
2414 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
2415 (find_optimal_iv_set): Try two different strategies for choosing
2416 the IV set, and return the one with lower cost.
2418 2010-07-05 Richard Guenther <rguenther@suse.de>
2420 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
2422 2010-07-05 Richard Guenther <rguenther@suse.de>
2424 * tree.c (reference_alias_ptr_type): New function.
2425 * tree.h (reference_alias_ptr_type): Declare.
2426 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
2427 allow non-TARGET_MEM_REF new refs.
2428 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
2429 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
2430 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
2431 (create_mem_ref): Get alias pointer type. Adjust calls to
2433 (maybe_fold_tmr): Likewise.
2434 * tree-flow.h (create_mem_ref): Adjust prototype.
2436 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2439 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
2440 *from_p is VAR_DECL.
2442 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2444 * tree.h (build_call_list): Remove.
2445 * tree.c (build_call_list): Remove.
2447 2010-07-05 Richard Guenther <rguenther@suse.de>
2449 * double-int.h (double_int_sub): Declare.
2450 * double-int.c (double_int_sub): New function.
2451 * dwarf2out.c (field_byte_offset): Use it.
2452 * fixed-value.c (do_fixed_add): Likewise.
2453 (do_fixed_multiply): Likewise.
2454 (do_fixed_divide): Likewise.
2455 * tree-predcom.c (add_ref_to_chain): Likewise.
2456 (determine_roots_comp): Likewise.
2457 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2459 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2461 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
2464 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
2466 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
2467 * arm-modes.def (CC_NOTB): Don't define.
2468 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
2469 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
2470 (LTUGEU): New code_iterator.
2471 (cnb, optab): New corresponding code_attrs.
2472 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
2473 to canonical form. Operands 1 and 2 are commutative. Parametrize
2475 (addsi3_carryin_shift_<optab>): Likewise.
2476 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
2477 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
2478 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
2479 (subsi3_compare): Renamed from subsi3_compare0_c.
2480 Change CC_NOTB to CC.
2481 (arm_subsi3_insn): Allow constants for operand 0.
2482 (compare_scc peephole for eq case): New.
2483 (compare_scc splitters): Change CC_NOTB to CC.
2485 2010-07-05 Richard Guenther <rguenther@suse.de>
2487 * tree-ssa-loop-im.c (for_each_index): Do not handle
2489 (gen_lsm_tmp_name): Likewise.
2490 * tree-dump.c (dequeue_and_dump): Likewise.
2491 * tree-pretty-print.c (dump_generic_node): Likewise.
2492 (op_code_prio): Likewise.
2493 (op_symbol_code): Likewise.
2494 * tree.c (staticp): Likewise.
2495 (build1_stat): Likewise.
2496 * tree.h (INDIRECT_REF_P): Likewise.
2497 * fold-const.c (maybe_lvalue_p): Likewise.
2498 (operand_equal_p): Likewise.
2499 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2500 (ao_ref_init_from_vn_reference): Likewise.
2501 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
2502 (find_interesting_uses_address): Likewise.
2503 * dwarf2out.c (loc_list_from_tree): Likewise.
2504 * gimplify.c (gimplify_expr): Likewise.
2505 * tree-eh.c (tree_could_trap_p): Likewise.
2506 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2507 * cfgexpand.c (expand_debug_expr): Likewise.
2508 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2509 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2510 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
2511 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
2512 * tree-ssa-operands.c (get_expr_operands): Likewise.
2513 * expr.c (safe_from_p): Likewise.
2514 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
2515 * tree-vect-data-refs.c (vect_setup_realignment): Build
2516 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
2517 * tree-vect-stmts.c (vectorizable_load): Likewise.
2518 * tree.def (ALIGN_INDIRECT_REF): Remove.
2520 2010-07-05 Richard Guenther <rguenther@suse.de>
2522 PR tree-optimization/44784
2523 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
2525 (find_or_generate_expression): Fix SCCVN insertion check.
2527 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
2529 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
2530 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2531 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
2534 2010-07-05 Ira Rosen <irar@il.ibm.com>
2536 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
2537 statements that are not vectorized.
2538 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
2541 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
2544 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
2546 2010-07-05 Richard Guenther <rguenther@suse.de>
2548 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
2549 RESULT_DECLs properly.
2551 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
2553 PR rtl-optimization/44695
2554 * config/i386/i386.md (extract_code): Removed.
2555 (<u>divmodqi4): Likewise.
2557 (udivmodqi4): Likewise.
2558 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
2559 (udivmodhiqi3): Likewise.
2561 2010-07-04 Jan Hubicka <jh@suse.cz>
2563 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
2565 2010-07-04 Jan Hubicka <jh@suse.cz>
2567 * cgraphunit.c (init_cgraph): Only initialize dump file if it
2568 is not already initialized.
2570 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2572 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
2573 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
2574 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
2575 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
2576 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
2577 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
2578 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
2579 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
2580 (sync_new_nand_optab): Redefine as macros.
2581 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
2583 (direct_optab_index): New enum.
2584 (direct_optab_d): New structure.
2585 (direct_optab): New typedef.
2586 (direct_optab_table): Declare.
2587 (direct_optab_handler, set_direct_optab_handler): New functions.
2588 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
2589 (sync_lock_release_optab): New macros.
2590 * optabs.c (direct_optab_table): New variable.
2591 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
2592 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
2593 cmpstr_optab and cmpstrn_optab.
2594 (emit_conditional_move): Likewise for movcc_optab.
2595 (can_conditionally_move_p): Likewise for movcc_gen_code.
2596 (init_insn_codes): Clear direct_optab_table.
2597 (init_optabs): Don't initialize the new "direct optabs" here.
2598 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
2600 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
2601 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
2602 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
2603 (expand_sync_operation): Likewise other sync_*_optabs.
2604 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
2605 to sync_compare_and_swap_optab.
2606 (expand_sync_lock_test_and_set): Use direct_optab_handler for
2607 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
2608 to the names of both.
2609 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
2610 cmpstr_optab and cmpstrn_optab.
2611 (expand_builtin_lock_release): Likewise sync_lock_release.
2612 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
2613 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
2614 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
2615 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
2616 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
2617 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
2618 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
2619 (sync_lock_test_and_set, sync_lock_release): Delete.
2620 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
2621 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
2622 * genopinit.c (optabs): Use set_direct_optab_handler for the new
2624 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
2625 the "optab" local variable. Use direct_optab_handler for optab and
2626 sync_compare_and_swap_optab.
2627 * reload1.c (reload_in_optab, reload_out_optab): Delete.
2628 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
2629 reload_in_optab and reload_out_optab.
2630 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2631 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
2632 * config/pa/pa.c (pa_secondary_reload): Likewise.
2633 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
2634 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
2635 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
2636 (VMSupportsCS8_builtin): Likewise.
2638 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2640 * optabs.h (optab_handlers): Change type of insn_code to int.
2641 (optab_handler, set_optab_handler, convert_optab_handler)
2642 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
2644 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
2645 (init_insn_codes): Zero both the above arrays.
2646 (init_optabs): Never call init_insn_codes first time around.
2648 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2650 * optabs.h (optab_handler, convert_optab_handler): Turn into
2651 inline functions that return an insn code.
2652 (set_optab_handler, set_convert_optab_handler): New functions.
2653 * builtins.c: Replace optab_handler(X)->insn_code with
2654 optab_handler or set_optab_handler thoughout. Likewise
2655 convert_optab_handler(X)->insn_code with convert_optab_handler
2656 and set_convert_optab_handler.
2657 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2658 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2659 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2660 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2661 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2662 config/spu/spu.c: Likewise.
2664 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2667 * config.gcc (sh*-*-*): Use regular expressions instead of
2668 the 'i' modifier for sed substitutions.
2670 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
2672 * gimple.c (gimple_body): Comments added.
2674 2010-07-04 Richard Guenther <rguenther@suse.de>
2677 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2680 2010-07-04 Richard Guenther <rguenther@suse.de>
2682 PR tree-optimization/44479
2683 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2684 extra SSA name copy statements which preserves points-to
2686 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2687 Copy points-to information for all pointers. Properly handle
2689 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
2691 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2694 2010-07-04 Richard Guenther <rguenther@suse.de>
2697 * tree-inline.c (initialize_inlined_parameters): Do not
2698 re-use pointer-map slot over remap_type call.
2700 2010-07-04 Richard Guenther <rguenther@suse.de>
2702 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2704 2010-07-04 Richard Guenther <rguenther@suse.de>
2706 PR tree-optimization/44656
2707 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2708 again after value-replacing in the defintions lhs.
2710 2010-07-04 Ira Rosen <irar@il.ibm.com>
2711 Revital Eres <eres@il.ibm.com>
2713 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2714 Document new arguments.
2715 * doc/tm.texi: Regenerate.
2716 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2717 Handle unaligned store.
2718 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2719 * target.def (builtin_vectorization_cost): Add new arguments.
2720 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2721 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2722 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2723 (vect_vfa_segment_size): Fix indentation.
2724 * tree-vectorizer.h (struct _vect_peel_info): New.
2725 (struct _vect_peel_extended_info): New.
2726 (struct _loop_vec_info): Add new field for peeling hash table and a
2727 macro for its access.
2728 (VECT_MAX_COST): Define.
2729 (vect_get_load_cost): Declare.
2730 (vect_get_store_cost, vect_get_known_peeling_cost,
2731 vect_get_single_scalar_iteraion_cost): Likewise.
2732 (vect_supportable_dr_alignment): Add new argument.
2733 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2735 (destroy_loop_vec_info): Free peeling hash table.
2736 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2737 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2738 vect_analyze_slp. Fix indentation.
2739 (vect_get_single_scalar_iteraion_cost): New function.
2740 (vect_get_known_peeling_cost): Likewise.
2741 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2742 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2743 statement. Move outside cost calculation inside unknown peeling case.
2744 Call vect_get_known_peeling_cost for known amount of peeling.
2745 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2746 reference to the print message of forced alignment.
2747 (vect_verify_datarefs_alignment): Update call to
2748 vect_supportable_dr_alignment.
2749 (vect_get_data_access_cost): New function.
2750 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2751 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2752 vect_peeling_hash_choose_best_peeling): Likewise.
2753 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2754 to store all the accesses in the loop and find best possible access to
2755 align using peeling for known alignment case. For unknown alignment
2756 check if stores are preferred or if peeling is worthy.
2757 (vect_find_same_alignment_drs): Analyze pairs of loads too.
2758 (vect_supportable_dr_alignment): Add new argument and check aligned
2759 accesses according to it.
2760 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2761 (cost_for_stmt): Call vect_get_stmt_cost.
2762 (vect_model_simple_cost): Likewise.
2763 (vect_model_store_cost): Call vect_get_stmt_cost. Call
2764 vect_get_store_cost to calculate the cost of the statement.
2765 (vect_get_store_cost): New function.
2766 (vect_model_load_cost): Call vect_get_stmt_cost. Call
2767 vect_get_load_cost to calculate the cost of the statement.
2768 (vect_get_load_cost): New function.
2769 (vectorizable_store): Update call to vect_supportable_dr_alignment.
2770 (vectorizable_load): Likewise.
2771 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2772 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2773 arguments. Handle unaligned store.
2774 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2775 (rs6000_builtin_support_vector_misalignment): Return true for word and
2776 double word alignments for VSX.
2777 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2778 vect_supportable_dr_alignment and builtin_vectorization_cost.
2780 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2783 * config/pa/predicates.md (prefetch_cc_operand): Remove.
2784 (prefetch_nocc_operand): Likewise.
2785 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2786 (prefetch_20): New insn.
2787 (prefetch_cc): Remove.
2788 (prefetch_nocc): Likewise.
2790 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2792 * expr.c (vector_mode_valid_p): Move to c-common.c.
2793 * expr.h (vector_mode_valid_p): Do not declare here.
2794 * system.h: Poison GCC_EXPR_H in front-ends.
2795 * Makefile.in: Update dependencies.
2797 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2800 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2802 2010-07-03 Jan Hubicka <jh@suse.cz>
2804 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2805 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2806 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2807 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2810 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2812 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2813 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2814 TV_IPA_LTO_DECL_OUT): New.
2815 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2817 2010-07-03 Jan Hubicka <jh@suse.cz>
2819 * ipa-inline.c (update_edge_key): Break out from ...
2820 update_callers_keys): ... here;
2821 (update_callee_keys): Update only the edges from caller to callee.
2822 (update_all_calle_keys): Do what update_calle_keys did.
2823 (decide_inlining_of_small_functions): Avoid recomputing of all
2824 callees when badness increase.
2826 2010-07-03 Jie Zhang <jie@codesourcery.com>
2828 * config/arm/arm.c (arm_attr_length_move_neon): New.
2829 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2830 * config/arm/neon.md (define_mode_attr V_slen): Remove.
2831 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2832 to compute length attribute.
2834 2010-07-03 Jie Zhang <jie@codesourcery.com>
2836 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2837 as predicate for operand 1 and remove its constraint.
2838 * config/arm/predicates.md (vfp_register_operand): New.
2839 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2840 (*push_fp_multi): Likewise.
2842 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
2844 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2846 2010-07-03 Jan Hubicka <jh@suse.cz>
2848 * config/i386/i386.c (override_options): Revert accidental commit.
2850 2010-07-02 Le-Chun Wu <lcwu@google.com>
2853 * doc/invoke.texi: Update documentation of -Wshadow.
2855 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2856 Julian Brown <julian@codesourcery.com>
2857 Sandra Loosemore <sandra@codesourcery.com>
2859 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2860 comparisons. Adjust to take both operands.
2861 (arm_select_cc_mode): Handle DImode comparisons.
2862 (arm_gen_compare_reg): Generate a scratch register for DImode
2863 comparisons which require one. Use xor for Thumb equality checks.
2864 (arm_const_double_by_immediates): New.
2865 (arm_print_operand): Allow 'Q' and 'R' for constants.
2866 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2867 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2868 arm_canonicalize_comparison.
2869 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2870 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2872 (arm_const_double_by_immediates): Declare.
2873 * config/arm/constraints.md (Di): New constraint.
2874 * config/arm/predicates.md (arm_immediate_di_operand)
2875 (arm_di_operand, cmpdi_operand): New.
2876 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2877 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2878 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2879 (cstoredi4): Handle non-Cirrus also.
2881 2010-07-02 Julian Brown <julian@codesourcery.com>
2882 Sandra Loosemore <sandra@codesourcery.com>
2885 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2886 (smax<mode>3): Disable for NEON float modes when
2887 flag_unsafe_math_optimizations is false.
2888 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2890 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2891 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2892 for NEON float modes when flag_unsafe_math_optimizations is false.
2893 (quad_halves_<code>v4sf): Only enable if
2894 flag_unsafe_math_optimizations is true.
2895 * doc/invoke.texi (ARM Options): Add note about floating point
2896 vectorization requiring -funsafe-math-optimizations.
2898 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2899 Julian Brown <julian@codesourcery.com>
2901 * config/arm/neon.md (UNSPEC_VABA): Delete.
2902 (UNSPEC_VABAL): Delete.
2903 (UNSPEC_VABS): Delete.
2904 (UNSPEC_VMUL_N): Delete.
2907 (mul<mode>3add<mode>_neon): Make the pattern named.
2908 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2909 (neon_vadd<mode>): Replace with define_expand, and move the remaining
2911 (neon_vadd<mode>_unspec): ...to this.
2912 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2913 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2914 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2915 (neon_vaba<mode>): Rewrite in terms of vabd.
2916 (neon_vabal<mode>): Rewrite in terms of vabdl.
2917 (neon_vabs<mode>): Rewrite without unspec.
2918 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2919 (*arm_subdi3): Likewise.
2920 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2921 No_op attribute to disable assembly output checks.
2922 * config/arm/arm_neon.h: Regenerated.
2923 * doc/arm-neon-intrinsics.texi: Regenerated.
2925 2010-07-02 Jan Hubicka <jh@suse.cz>
2927 * ipa-split.c (split_function): For aggregate values, set the return
2928 slot optimization bit. When passing DECL_BY_REFERENCE, produce
2929 *<retval> = fncall.part ().
2930 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2932 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2934 * config/arm/neon.md (UNSPEC_VAND): Delete.
2935 (UNSPEC_VBIC): Delete.
2936 (UNSPEC_VCLZ): Delete.
2937 (UNSPEC_VCNT): Delete.
2938 (UNSPEC_VEOR): Delete.
2939 (UNSPEC_VORN): Delete.
2940 (UNSPEC_VORR): Delete.
2941 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
2943 (anddi3_neon): Likewise.
2944 (orndi3_neon): Likewise.
2945 (bicdi3_neon): Likewise.
2946 (xordi3_neon): Likewise.
2947 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2948 rid of unspec and handle unused operand.
2949 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2950 * config/arm/predicates.md (imm_for_neon_logic_operand):
2951 Require TARGET_NEON.
2952 (imm_for_neon_inv_logic_operand): Likewise.
2953 * config/arm/arm.md (define_split for logical_binary_operator):
2954 Disable for NEON registers.
2955 (anddi3): Add new define_expand, and rename the insn. Disable
2956 this insn for NEON, where anddi3_neon now applies.
2957 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2958 (iordi3): As for anddi3.
2960 * config/arm/neon.ml (Vand): Split DImode variants and mark them
2961 as No_op to disable testing for exact instruction match.
2966 * config/arm/arm_neon.h: Regenerated.
2967 * doc/arm-neon-intrinsics.texi: Regenerated.
2969 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2971 * expr.h (emit_stack_probe): Declare.
2972 * explow.c (emit_stack_probe): Make global.
2973 (anti_adjust_stack_and_probe): Fix comments.
2974 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2975 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2976 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2977 * config/sparc/sparc.c: Include except.h.
2978 (sparc_emit_probe_stack_range): New function.
2979 (output_probe_stack_range): Likewise.
2980 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2981 built-in stack checking is enabled.
2982 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2983 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2984 (probe_stack_range): New insn.
2986 2010-07-02 Richard Guenther <rguenther@suse.de>
2989 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2990 for argument alignment.
2992 2010-07-02 Jan Hubicka <jh@suse.cz>
2994 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2995 walk backwards from entry_bb to check only those basic block of header
2996 that might lead to execution of split part.
2997 (consider_split) ... here.
2998 (find_return_bb): Allow assignment in return BB.
3000 (split_function): Fix name of cloned function; take care of updating
3001 return value in return_bb containing move.
3003 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
3006 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
3009 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3011 * implicit-zee.c (combine_reaching_defs): Fix long lines.
3012 (is_set_with_extension_DI): Delete.
3013 (struct zero_extend_info): New structure.
3014 (add_removable_zero_extend): New function.
3015 (find_removable_zero_extends): Use note_stores to find SETs.
3016 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
3018 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
3020 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
3021 is_miss_rate_acceptable. Pull total_positions computation
3022 out of the loops. Early return if miss_positions exceeds
3023 the acceptable threshold.
3024 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
3025 is_miss_rate_acceptable after renaming of compute_miss_rate.
3027 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
3030 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
3031 of 1000) for miss rate if the address diference is greater than or
3032 equal to the cache line size (the two reference will never hit the
3035 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
3038 * config/arm/arm-modes.def (CC_NOTB): New mode.
3039 * config/arm/arm.c (get_arm_condition_code): Handle it.
3040 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
3041 * config/arm/arm.md (subsi3_compare0_c): New pattern.
3042 (compare_scc): Now a define_and_split. Add a number of extra
3043 splitters before it.
3046 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
3048 (arm_rtx_costs_1): Likewise.
3049 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
3050 * config/arm/arm.md (is_arch6): New attribute.
3051 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
3052 extendqisi2): Tighten the code somewhat, avoiding invalid
3053 RTL to occur in the expander patterns.
3054 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
3055 (thumb1_zero_extendhisi2_v6): Delete.
3056 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
3057 (thumb1_extendhisi2_v6): Delete.
3058 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
3059 (thumb1_extendqisi2_v6): Delete.
3060 (zero_extendhisi2 for register input splitter): New.
3061 (zero_extendqisi2 for register input splitter): New.
3062 (thumb1_extendhisi2 for register input splitter): New.
3063 (extendhisi2 for register input splitter): New.
3064 (extendqisi2 for register input splitter): New.
3065 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
3066 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
3067 and add support for a register alternative requiring a split.
3068 (thumb1_zero_extendqisi2): Likewise.
3069 (arm_zero_extendqisi2): Likewise.
3070 (arm_extendhisi2): Likewise.
3071 (arm_extendqisi2): Likewise.
3073 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3075 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
3076 instead of an unspec.
3077 (neon_expand_vector_init): Likewise.
3078 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
3079 (UNSPEC_VDUP_LANE): Delete.
3080 (UNSPEC VDUP_N): Delete.
3081 (UNSPEC_VGET_HIGH): Delete.
3082 (UNSPEC_VGET_LANE): Delete.
3083 (UNSPEC_VGET_LOW): Delete.
3084 (UNSPEC_VMVN): Delete.
3085 (UNSPEC_VSET_LANE): Delete.
3086 (V_double_vector_mode): New.
3087 (vec_set<mode>_internal): Make code emitted match that for the
3088 corresponding intrinsics.
3089 (vec_setv2di_internal): Likewise.
3090 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
3091 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
3092 (neon_vset_lane<mode>): Combine double and quad patterns and
3093 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
3094 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
3095 (neon_vdup_n<mode>): Rewrite RTL without unspec.
3096 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
3097 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
3098 with neon_vdup_lanev2di, adjusting the pattern from the latter
3099 to be predicable for consistency.
3100 (neon_vdup_lane<mode>_internal): New.
3101 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
3102 to avoid using an unspec.
3103 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
3104 (neon_vdup_lanev2di): Turn into a define_expand.
3105 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
3106 (neon_vget_high<mode>): Replace with....
3107 (neon_vget_highv16qi): New pattern using canonical RTL.
3108 (neon_vget_highv8hi): Likewise.
3109 (neon_vget_highv4si): Likewise.
3110 (neon_vget_highv4sf): Likewise.
3111 (neon_vget_highv2di): Likewise.
3112 (neon_vget_low<mode>): Replace with....
3113 (neon_vget_lowv16qi): New pattern using canonical RTL.
3114 (neon_vget_lowv8hi): Likewise.
3115 (neon_vget_lowv4si): Likewise.
3116 (neon_vget_lowv4sf): Likewise.
3117 (neon_vget_lowv2di): Likewise.
3119 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
3120 test for this emitting vmov.
3121 (Vset_lane): Likewise.
3125 * doc/arm-neon-intrinsics.texi: Regenerated.
3127 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3129 * config/arm/neon.md (vec_extractv2di): Correct error in register
3130 numbering to reconcile with neon_vget_lanev2di.
3132 2010-07-02 Richard Guenther <rguenther@suse.de>
3134 * tree-ssa-structalias.c (pt_solution_set_var): New function.
3135 * tree-ssa-alias.h (pt_solution_set_var): Declare.
3136 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
3137 points-to information.
3139 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
3141 * config/s390/s390.c (override_options): Adopt prefetching
3142 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
3144 2010-07-02 Jan Hubicka <jh@suse.cz>
3146 * df-problems.c (df_kill_notes): Do not collect dead notes.
3147 (df_set_note): Just call add_reg_note.
3148 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
3149 df_create_unused_note): Do not deal with lists of old notes.
3150 (df_note_bb_compute): Likewise.
3152 2010-07-02 Richard Guenther <rguenther@suse.de>
3154 * tree-ssa-structalias.c (find_func_aliases): Handle
3155 pointer alignment via BIT_AND_EXPR.
3156 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
3158 2010-07-02 Richard Guenther <rguenther@suse.de>
3160 * tree-data-ref.c (initialize_data_dependence_relation): Handle
3161 mismatching number of dimensions properly.
3163 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3166 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
3167 (lo_sum (high ...) ...) patterns generated by earlier passes.
3169 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3171 * doc/install.texi (Prerequisites): Document Perl requirement on
3173 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
3175 2010-07-02 Richard Guenther <rguenther@suse.de>
3178 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
3180 2010-07-02 Jan Hubicka <jh@suse.cz>
3183 * predict.c (predict_paths_for_bb): Handle case when control dependence
3184 BB has only abnormal edges.
3186 2010-07-02 Richard Guenther <rguenther@suse.de>
3188 PR tree-optimization/44748
3189 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
3190 the embedded conversion in MEM_REFs.
3192 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
3194 * reload.c: Include toplev.h.
3195 * recog.c: Likewise.
3196 * Makefile.in: Adjust dependencies.
3198 2010-07-01 Jakub Jelinek <jakub@redhat.com>
3201 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
3202 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
3204 2010-07-01 Richard Guenther <rguenther@suse.de>
3206 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
3209 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
3212 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
3215 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
3218 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3219 Make sure operand 0 dies.
3221 2010-07-01 Richard Guenther <rguenther@suse.de>
3225 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
3226 * doc/generic.texi (References to storage): Document MEM_REF.
3227 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
3228 (print_call_name): Likewise.
3229 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
3230 (build_simple_mem_ref_loc): New function.
3231 (mem_ref_offset): Likewise.
3232 * tree.h (build_simple_mem_ref_loc): Declare.
3233 (build_simple_mem_ref): Define.
3234 (mem_ref_offset): Declare.
3235 * fold-const.c: Include tree-flow.h.
3236 (operand_equal_p): Handle MEM_REF.
3237 (build_fold_addr_expr_with_type_loc): Likewise.
3238 (fold_comparison): Likewise.
3239 (fold_unary_loc): Fold
3240 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
3241 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
3242 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
3243 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
3244 (ptr_deref_may_alias_ref_p_1): Likewise.
3245 (ao_ref_base_alias_set): Properly differentiate base object for
3247 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
3248 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
3249 (indirect_refs_may_alias_p): Likewise.
3250 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
3252 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
3253 (call_may_clobber_ref_p_1): Likewise.
3254 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
3255 * expr.c (expand_assignment): Handle MEM_REF.
3256 (store_expr): Handle MEM_REFs from STRING_CSTs.
3257 (store_field): If expanding a MEM_REF of a non-addressable
3258 decl use bitfield operations.
3259 (get_inner_reference): Handle MEM_REF.
3260 (expand_expr_addr_expr_1): Likewise.
3261 (expand_expr_real_1): Likewise.
3262 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
3263 * alias.c (ao_ref_from_mem): Handle MEM_REF.
3264 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
3265 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
3266 (dr_analyze_indices): Likewise.
3267 (dr_analyze_alias): Likewise.
3268 (object_address_invariant_in_loop_p): Likewise.
3269 * gimplify.c (mark_addressable): Handle MEM_REF.
3270 (gimplify_cond_expr): Build MEM_REFs.
3271 (gimplify_modify_expr_to_memcpy): Likewise.
3272 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
3273 (gimple_fold_indirect_ref): Adjust.
3274 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
3275 * tree.def (MEM_REF): New tree code.
3276 * tree-dfa.c: Include toplev.h.
3277 (get_ref_base_and_extent): Handle MEM_REF.
3278 (get_addr_base_and_unit_offset): New function.
3279 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
3280 * gimple-fold.c (may_propagate_address_into_dereference): Handle
3282 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
3283 accesses if the array has just one dimension. Remove always true
3284 parameter. Do not require type compatibility here.
3285 (maybe_fold_offset_to_component_ref): Remove.
3286 (maybe_fold_stmt_indirect): Remove.
3287 (maybe_fold_reference): Remove INDIRECT_REF handling.
3288 Fold back to non-MEM_REF.
3289 (maybe_fold_offset_to_address): Simplify. Deal with type
3291 (maybe_fold_reference): Likewise.
3292 (maybe_fold_stmt_addition): Likewise. Also handle
3293 &ARRAY + I in addition to &ARRAY[0] + I.
3294 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
3295 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
3296 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
3297 * tree-ssa.c (useless_type_conversion_p): Make most pointer
3298 conversions useless.
3299 (warn_uninitialized_var): Handle MEM_REF.
3300 (maybe_rewrite_mem_ref_base): New function.
3301 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
3303 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
3304 INDIRECT_REF handling.
3305 (copy_tree_body_r): Handle MEM_REF.
3306 * gimple.c (is_gimple_addressable): Adjust.
3307 (is_gimple_address): Likewise.
3308 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
3309 invariant base are invariant.
3310 (is_gimple_min_lval): Adjust.
3311 (is_gimple_mem_ref_addr): New function.
3312 (get_base_address): Handle MEM_REF.
3313 (count_ptr_derefs): Likewise.
3314 (get_base_loadstore): Likewise.
3315 * gimple.h (is_gimple_mem_ref_addr): Declare.
3316 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
3317 * tree-cfg.c (verify_address): New function, split out from ...
3318 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
3319 the address operand of MEM_REFs. Verify MEM_REFs. Reject
3321 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
3322 INDIRECT_REF. Allow conversions.
3323 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
3324 a register does not change its size.
3325 (verify_types_in_gimple_reference): Verify MEM_REF.
3326 (verify_gimple_assign_single): Disallow INDIRECT_REF.
3328 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
3330 (mark_address_taken): Handle MEM_REF.
3331 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
3332 (get_asm_expr_operands): Pass opf_not_non_addressable.
3333 (get_expr_operands): Handle opf_[not_]non_addressable.
3334 Handle MEM_REF. Remove INDIRECT_REF handling.
3335 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
3336 (search_for_addr_array): Likewise.
3337 (check_array_bounds): Likewise.
3338 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
3339 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
3340 (ref_always_accessed_p): Likewise.
3341 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
3342 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
3344 * cgraphbuild.c (mark_load): Properly check for NULL result
3345 from get_base_address.
3346 (mark_store): Likewise.
3347 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
3348 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
3349 handling for MEM_REF.
3350 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
3351 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
3352 * builtins.c (stabilize_va_list_loc): Use the function ABI
3353 valist type if we couldn't canonicalize the argument type.
3354 Always dereference with the canonical va-list type.
3355 (maybe_emit_free_warning): Handle MEM_REF.
3356 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
3358 * builtins.c (fold_builtin_memory_op): Use ref-all types
3359 for all memcpy foldings.
3360 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
3361 (build_outer_var_ref): Likewise.
3362 (scan_omp_1_op): Likewise.
3363 (lower_rec_input_clauses): Likewise.
3364 (lower_lastprivate_clauses): Likewise.
3365 (lower_reduction_clauses): Likewise.
3366 (lower_copyprivate_clauses): Likewise.
3367 (expand_omp_atomic_pipeline): Likewise.
3368 (expand_omp_atomic_mutex): Likewise.
3369 (create_task_copyfn): Likewise.
3370 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
3371 Remove old union trick. Initialize constant offsets.
3372 (ao_ref_init_from_vn_reference): Likewise. Do not handle
3373 INDIRECT_REF. Init base_alias_set properly.
3374 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
3375 (vn_reference_fold_indirect): Adjust for MEM_REFs.
3376 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
3378 (may_insert): Remove.
3379 (visit_reference_op_load): Do not test may_insert.
3380 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
3381 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3382 a field to store the constant offset this op applies.
3383 (run_scc_vn): Adjust prototype.
3384 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
3385 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
3386 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
3387 bother about volatile qualifiers on pointers.
3388 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
3389 * tree-ssa-loop-ivopts.c
3390 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
3391 (strip_offset_1): Likewise.
3392 (find_interesting_uses_address): Replace INDIRECT_REF handling with
3394 (get_computation_cost_at): Likewise.
3395 * ipa-pure-const.c (check_op): Handle MEM_REF.
3396 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
3397 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
3399 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
3400 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
3401 (eliminate_local_variables_1): Likewise.
3402 (create_call_for_reduction_1): Likewise.
3403 (create_loads_for_reductions): Likewise.
3404 (create_loads_and_stores_for_name): Likewise.
3405 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
3406 (ssa_accessed_in_tree): Handle MEM_REF.
3407 (ssa_accessed_in_assign_rhs): Likewise.
3408 (update_type_size): Likewise.
3409 (analyze_accesses_for_call_stmt): Likewise.
3410 (analyze_accesses_for_assign_stmt): Likewise.
3411 (transform_access_sites): Likewise.
3412 (transform_allocation_sites): Likewise.
3413 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
3414 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3415 not handle INDIRECT_REF.
3416 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
3417 (cond_store_replacement): Likewise.
3418 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3419 MEM_REF, no not handle INDIRECT_REFs.
3420 (insert_into_preds_of_block): Properly initialize avail.
3421 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
3422 for ARRAY_REFs. Properly handle reference lookups that
3423 require a bit re-interpretation.
3424 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
3425 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
3426 (build_ref_for_offset_1): Remove.
3427 (build_ref_for_offset): Build MEM_REFs.
3428 (gate_intra_sra): Disable for now.
3429 (sra_ipa_modify_expr): Handle MEM_REF.
3430 (ipa_early_sra_gate): Disable for now.
3431 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
3433 (disqualify_base_of_expr): Likewise.
3434 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
3436 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
3437 Use mem_ref_offset. Remove bogus folding.
3438 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
3439 (make_fancy_name_1): Add support for MEM_REF.
3440 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
3441 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
3442 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
3443 (compute_complex_ancestor_jump_func): Likewise.
3444 (ipa_analyze_virtual_call_uses): Likewise.
3445 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
3446 INDIRECT_REF folding with more generalized MEM_REF folding.
3447 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
3448 (forward_propagate_addr_into_variable_array_index): Also handle
3449 &ARRAY + I in addition to &ARRAY[0] + I.
3450 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
3451 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
3452 creates assignments with overlap.
3453 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
3454 (get_frame_field): Likewise.
3455 (get_nonlocal_debug_decl): Likewise.
3456 (convert_nonlocal_reference_op): Likewise.
3457 (struct nesting_info): Add mem_refs pointer-set.
3458 (create_nesting_tree): Allocate it.
3459 (convert_local_reference_op): Insert to be folded mem-refs.
3460 (fold_mem_refs): New function.
3461 (finalize_nesting_tree_1): Perform defered folding of mem-refs
3462 (free_nesting_tree): Free the pointer-set.
3463 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
3464 (vectorizable_load): Likewise.
3465 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
3466 (propagate_with_phi): Likewise.
3467 * tree-object-size.c (addr_object_size): Handle MEM_REFs
3468 instead of INDIRECT_REFs.
3469 (compute_object_offset): Handle MEM_REF.
3470 (plus_stmt_object_size): Handle MEM_REF.
3471 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
3473 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
3474 (symbol_marked_for_renaming): Likewise.
3475 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
3476 (fold-const.o): Add $(TREE_FLOW_H).
3477 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
3478 (find_func_clobbers): Likewise.
3479 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
3480 (decompose_access): Likewise.
3481 (replace_field_acc): Likewise.
3482 (replace_field_access_stmt): Likewise.
3483 (insert_new_var_in_stmt): Likewise.
3484 (get_stmt_accesses): Likewise.
3485 (reorg_structs_drive): Disable.
3486 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
3487 (ix86_canonical_va_list_type): Likewise.
3489 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3492 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
3493 * target.def (struct gcc_target): Replace enum reg_class with
3494 reg_class_t in hook argument / return types.
3495 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
3496 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
3497 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3498 * targhooks.h (default_branch_target_register_class): Likewise.
3499 (default_ira_cover_classes, default_secondary_reload): Likewise.
3500 (default_memory_move_cost, default_register_move_cost): Likewise.
3501 * targhooks.c (default_branch_target_register_class): Likewise.
3502 (default_ira_cover_classes, default_secondary_reload): Likewise.
3503 (default_memory_move_cost, default_register_move_cost): Likewise.
3504 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
3505 * bt-load.c (branch_target_load_optimize): Likewise.
3506 * ira.c (setup_cover_and_important_classes): Likewise.
3507 * ira-costs.c (copy_cost): Likewise.
3508 * reload1.c (emit_input_reload_insns): Likewise.
3509 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3510 * config/frv/frv.c (frv_secondary_reload): Likewise.
3511 * config/s390/s390.c (s390_secondary_reload): Likewise.
3512 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
3513 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
3514 (ix86_register_move_cost): Likewise.
3515 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
3516 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
3517 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
3518 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
3519 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
3520 (rs6000_ira_cover_classes): Likewise.
3521 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
3522 * config/picochip/picochip-protos.h (picochip_secondary_reload):
3524 * config/pa/pa.c (pa_secondary_reload): Likewise.
3525 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
3526 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
3527 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
3528 * doc/tm.texi: Regenerate.
3530 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
3533 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
3535 (build_alias_set_optimal_p): Likewise.
3536 (build_base_obj_set_for_drs): Likewise.
3538 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3540 * target.def: Remove comment about licensing problems of function
3543 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
3544 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
3545 * doc/tm.texi: Regenerate.
3547 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
3548 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
3550 * target.def (enum_va_list_p): Use DEFHOOK.
3551 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
3552 Rename ptype to ptree.
3553 * doc/tm.texi: Regenerate.
3555 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
3556 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
3557 * doc/tm.texi: Regenerate.
3559 * target.def (memory_move_cost): Use DEFHOOK.
3560 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
3561 Rename regclass AKA class to rclass.
3562 * doc/tm.texi: Regenerate.
3564 * target.def (pragma_parse): Use DEFHOOK.
3565 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
3566 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
3567 * doc/tm.texi: Regenerate.
3569 * target.def (pass_by_reference): Use DEFHOOK.
3570 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
3571 * doc/tm.texi: Regenerate.
3573 * target.def (resolve_overloaded_builtin): Rename params to arglist.
3575 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
3576 * doc/tm.texi: Regenerate.
3578 * target.def (return_pops_args): Use DEFHOOK.
3579 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
3580 Rename stack-size to size.
3581 * doc/tm.texi: Regenerate.
3583 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
3584 last-sched_cycle to last_clock, cur_cycle to clock.
3585 * doc/tm.texi.in: Use @hook.
3586 * doc/tm.texi: Regenerate.
3588 * target.def (print_operand, print_operand_address): Update comment.
3589 (print_operand_punct_valid_p): Likewise.
3591 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3593 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
3595 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
3596 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
3598 * regrename.c: Do not include toplev.h. Include rtl-error.h.
3599 * rtl-error.c: Likewise.
3600 * reload.c: Likewise.
3601 * recog.c: Likewise.
3602 * sel-sched.c: Likewise.
3603 * function.c: Likewise.
3604 * reg-stack.c: Likewise.
3605 * cfgrtl.c: Likewise.
3606 * reload1.c: Likewise.
3607 * final.c: Include rtl-error.
3608 * Makefile.in: Adjust dependencies.
3610 2010-06-30 Jan Hubicka <jh@suse.cz>
3612 PR middle-end/PR44706
3613 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
3614 to return the value.
3616 2010-06-30 Michael Matz <matz@suse.de>
3619 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
3620 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
3621 a gimple reg, attach the original VDEF to the last store in the
3624 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
3627 * config/darwin.c (darwin_override_options): Use renamed
3628 targetm.asm_out.emit_unwind_label.
3630 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3632 PR tree-optimization/39799
3633 * tree-inline.c (remap_ssa_name): Initialize variable only if
3634 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3636 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
3638 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
3640 2010-06-30 Richard Guenther <rguenther@suse.de>
3643 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
3644 against oscillation with reverse peephole2.
3646 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
3649 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3652 2010-06-30 Nick Clifton <nickc@redhat.com>
3654 * config/rx/rx-modes.def: New file.
3655 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3656 (CC_REGNUM): Define.
3657 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3659 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3660 (SELECT_CC_MODE): Define.
3661 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
3662 (reg:CC CC_REG) instead of (cc0).
3663 (attr "cc"): Delete.
3664 (cbranchsi4): Do not split compare and branch here. Instead move
3666 (cbranchsi4_<code>): ... here. New patterns.
3667 (cmpsi): Call rx-compare_redundant to find out if it is necessary
3668 to emit the compare instruction.
3669 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3671 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3672 FIRST_PSEUDO_REGNUM.
3673 (rx_expand_prologue, rx_expand_epilogue): Likewise.
3674 (rx_notice_update_cc): Delete.
3675 (rx_cc_modes_compatible): New function.
3676 (flags_needed_for_conditional): New function.
3677 (flags_from_mode): New function.
3678 (rx_compare_redundant): New function - scans backwards through
3679 insn list to find out if condition flags are already set correctly.
3680 (TARGET_CC_MODES_COMPATIBLE): Define.
3681 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3683 * config/rx/rx.h (BRANCH_COST): Define.
3684 (REGISTER_MOVE_COST): Define.
3685 * config/rx/predicates (rx_source_operand): Allow all constant types.
3686 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3687 (tstsi4): New pattern.
3688 * config/rx/rx.c (rx_memory_move_cost): Define.
3689 (TARGET_MEMORY_MOVE_COST): Define.
3691 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3693 * tree.h (block_may_fallthru): Declare here.
3694 * tree-flow.h (block_may_fallthru): Do not declare here.
3695 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3697 * Makefile.in (c-typeck.o): Update dependencies.
3699 2010-06-30 Jakub Jelinek <jakub@redhat.com>
3702 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3703 * cselib.c (cfa_base_preserved_regno): New static variable.
3704 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3705 of REGNO (cfa_base_preserved_val->locs->loc).
3706 (cselib_preserve_cfa_base_value): Add regno argument, set
3707 cfa_base_preserved_regno to it.
3708 (cselib_invalidate_regno): Allow removal of registers other than
3709 cfa_base_preserved_regno from cfa_base_preserved_val.
3710 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3711 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3712 of MEM addresses, if not on LHS.
3713 (reverse_op): Don't add reverse ops for cfa_base_rtx.
3714 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3716 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3718 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3720 (peep2_buf_position): New static function.
3721 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3722 peephole2_optimize): Use it.
3723 (peep2_attempt, peep2_update_life): New static functions, broken out
3724 of peephole2_optimize.
3725 (peep2_fill_buffer): New static function.
3726 (peephole2_optimize): Change the main loop to try to fill the buffer
3727 with the maximum number of insns before matching them against
3728 peepholes. Use a forward scan. Remove special case for targets with
3729 conditional execution.
3730 * genrecog.c (change_state): Delete dead code.
3731 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3732 Rewrite so as not to expect the second insn to have had a peephole
3735 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3737 * genhooks.c (emit_findices): Cast field precision to int.
3738 (emit_documentation): Likewise.
3740 2010-06-29 Jakub Jelinek <jakub@redhat.com>
3742 PR tree-optimization/43801
3743 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3744 if old_decl was DECL_ONE_ONLY.
3747 * dwarf2out.c (add_accessibility_attribute): New function.
3748 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3749 instead of adding DW_AT_accessibility manually.
3750 (gen_enumeration_type_die, gen_struct_or_union_type_die,
3751 gen_typedef_die): Use it.
3753 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3755 * vmsdbgout.c (full_name): Just output the file name if not native.
3757 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3759 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3760 (funcnam_table): New static table.
3761 (funcnum_table): New static table.
3762 (write_rtnbeg): Write value saved in funcnum_table.
3763 (write_rtnend): Write value saved in funcnum_table.
3764 (vmsdbgout_begin_function): Save current function info in
3765 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3766 (vmsdbgout_finish): Iterate over funcnum_table.
3768 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3770 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3771 (vmsdbgout_type_decl): Declare
3772 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3773 (FUNC_EPILOGUE_LABEL): New macro
3774 (vmsdbgout_begin_epilogue): New function.
3775 (vmsdbgout_type_decl): New function.
3777 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3779 * vmsdbg.h: Update copyright.
3781 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3783 * vmsdbg.h (DST_K_TBG): New DST constant.
3784 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3785 (write_modbeg): Cast module_language to avoid warning.
3786 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3788 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3791 * target.def, doc/tm.texi.in, genhooks.c: New files.
3792 * target.h: Instead of defining individual hook members,
3793 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3795 * target-def.h: Instead of defining individual hook initializers,
3796 include target-hooks-def.h.
3797 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3798 targetm.live_on_entry -> targetm.extra_live_on_entry
3799 targetm.sched.md_finish ->targetm.sched.finish
3800 targetm.sched.md_init -> targetm.sched.init
3801 targetm.sched.md_init_global -> targetm.sched.init_global
3802 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3803 targetm.asm_out.except_table_label ->
3804 targetm.asm_out.emit_except_table_label
3805 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3806 targetm.target_help -> targetm.help
3807 targetm.vectorize.builtin_support_vector_misalignment ->
3808 targetm.vectorize.support_vector_misalignment
3809 targetm.file_start_app_off -> targetm.asm_file_start_app_off
3810 targetm.file_start_file_directive ->
3811 targetm.asm_file_start_file_directive
3812 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3813 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3814 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3815 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3816 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3817 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3818 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3819 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3820 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3821 * Makefile.in (TARGET_H): Depend on target.def.
3822 (TARGET_DEF_H): Depend on target-hooks-def.h.
3823 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3824 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3825 * doc/tm.texi: Regenerate.
3827 * Makefile.in (s-tm-texi): Remove stray tab / rule.
3829 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3830 (targetm.sched.init): Likewise.
3832 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3835 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3836 (function_arg_advance_32): Const-ify TYPE parameter.
3837 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
3838 (ix86_function_arg_advance): Change type of NAMED to bool.
3839 (function_arg_32): Const-ify CUM and TYPE parameters.
3840 (function_arg_64): Likewise. Change type of NAMED to bool.
3841 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3843 (ix86_function_arg): Change type of NAMED to bool.
3844 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
3845 last argument as a bool.
3847 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3849 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3850 (OVERRIDE_OPTIONS): Add note of obsolescence.
3851 Replace references with references to TARGET_OPTION_OVERRIDE.
3852 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3854 * targhooks.c (default_target_option_override): New function.
3855 * targhooks.h (default_target_option_override): Declare.
3856 * target.h (struct gcc_target): Add override member to
3857 target_option member.
3858 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3859 targetm.target_option.override call.
3860 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3861 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3863 2010-06-29 Jan Hubicka <jh@suse.cz>
3865 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3867 2010-06-29 Jan Hubicka <jh@suse.cz>
3869 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3871 (rebuild_frequencies): New function.
3872 * predict.h (rebuild_frequencies): Declare.
3873 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3874 entry block and edge reaching new_entry.
3875 (tree_function_versioning): When doing partial cloning, rebuild
3876 frequencies when done.
3877 * passes.c (execute_function_todo): Use rebild_frequencies.
3879 2010-06-29 Richard Guenther <rguenther@suse.de>
3881 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3882 * tree-flow.h (enum noalias_state): Remove.
3883 (struct var_ann_d): Remove noalias_state member.
3885 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3888 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3889 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
3890 (maddhidi4): Likewise.
3892 Revert parts of the change for PR25130.
3893 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3896 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3898 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3899 targetm.calls.function_incoming_arg, and
3900 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3901 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3902 * target.h (struct gcc_target): Add function_arg_advance,
3903 function_arg, and function_incoming_arg fields.
3904 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3905 (TARGET_FUNCTION_INCOMING_ARG): Define.
3906 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3907 and TARGET_FUNCTION_INCOMING_ARG.
3908 * targhooks.h (default_function_arg_advance): Declare.
3909 (default_function_arg, default_function_incoming_arg): Declare.
3910 * targhooks.c (default_function_arg_advance): New function.
3911 (default_function_arg, default_function_incoming_arg): New function.
3912 * config/i386/i386.c (function_arg_advance): Rename to...
3913 (ix86_function_arg_advance): ...this. Make static.
3914 (function_arg): Rename to...
3915 (ix86_function_arg): ...this. Make static.
3916 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3917 (TARGET_FUNCTION_ARG): Define.
3918 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3919 (FUNCTION_ARG): Delete.
3920 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3921 (function_arg): Delete prototype.
3923 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3925 * reginfo.c (init_reg_sets_1): Adjust comments.
3926 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3927 * calls.c (prepare_call_address): Likewise.
3928 (emit_call_1): Use targetm.calls.return_pops_args.
3929 (expand_call): Likewise.
3930 * function.c (assign_parms): Likewise.
3931 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3932 * target.h (struct gcc_target) [struct calls]: Add
3933 return_pops_args field.
3934 * targhooks.h (default_return_pops_args): Declare.
3935 * targhooks.c (default_return_pops_args): Define.
3936 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3937 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3938 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3939 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
3941 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3942 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3943 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3944 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3945 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3946 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3947 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3948 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3949 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3950 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3951 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3952 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3953 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3954 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3955 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3956 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3957 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3958 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3959 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3960 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3961 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3962 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3963 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3964 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3965 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3966 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3967 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3968 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3969 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3970 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3971 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3972 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3973 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3974 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3975 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3976 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3977 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3978 * config/i386/i386.c (ix86_return_pops_args): Make static.
3980 (TARGET_RETURN_POPS_ARGS): Define.
3981 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3982 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3983 (TARGET_RETURN_POPS_ARGS): Define.
3984 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3985 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3986 (TARGET_RETURN_POPS_ARGS): Define.
3988 2010-06-29 Richard Guenther <rguenther@suse.de>
3991 * tree-inline.c (initialize_inlined_parameters): Make sure
3992 to remap the inlined parameter variable substitutions types.
3994 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3996 PR rtl-optimization/44659
3997 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3998 result of force_to_mode if it partially re-expanded the compound.
4000 2010-06-28 Jan Hubicka <jh@suse.cz>
4003 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
4006 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4008 * double-int.h (force_fit_type_double): Remove declaration.
4009 * double-int.c (force_fit_type_double): Move to tree.c.
4010 * tree.h (force_fit_type_double): Declare.
4011 * tree.h (force_fit_type_double): Moved from double-int.c. Use
4012 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
4013 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
4014 * convert.c (convert_to_pointer): Adjust call to
4015 force_fit_type_double.
4016 * tree-vrp.c (extract_range_from_assert,
4017 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
4018 * fold-const.c: Update comment.
4019 (int_const_binop, fold_convert_const_int_from_int,
4020 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
4021 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
4022 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
4023 round_up_loc): Adjust call to force_fit_type_double.
4025 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4027 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
4029 2010-06-28 Martin Jambor <mjambor@suse.cz>
4031 * tree-sra.c (convert_callers): New parameter, change fndecls of
4033 (modify_function): Pass the old decl to convert_callers.
4035 2010-06-28 Martin Jambor <mjambor@suse.cz>
4037 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
4038 ipa_check_create_node_params and ipa_initialize_node_params with
4039 checking asserts they are not necessary.
4041 2010-06-28 Jan Hubicka <jh@suse.cz>
4043 PR tree-optimization/44687
4044 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
4046 2010-06-28 Martin Jambor <mjambor@suse.cz>
4049 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
4050 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
4051 instead of BINFO_BASE_BINFO.
4053 2010-06-28 Michael Matz <matz@suse.de>
4056 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
4057 proper VDEF chain for intermediate stores in the sequence.
4059 2010-06-28 Jan Hubicka <jh@suse.cz>
4061 PR tree-optimization/44357
4062 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
4063 uninlinable functions.
4065 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4067 * config.gcc (powerpc*-*-*): Handle titan.
4068 * config/rs6000/rs6000.c (titan_cost): New costs.
4069 (rs6000_override_options): Add "titan" to processor_target_table.
4070 Add Titan to branch alignment logic.
4071 Correctly set rs6000_cost for titan.
4072 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
4073 * config/rs6000/titan.md: New file.
4074 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
4076 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
4078 * tree-browser.c (TB_history_stack): Convert to a VEC.
4079 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
4080 (TB_history_prev): Likewise.
4082 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
4084 * vec.h (vec_heap_free): Add parentheses around free.
4086 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4088 * system.h: Poison GCC_EXCEPT_H for front-end files.
4090 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
4092 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
4093 Define to NULL by default.
4094 * except.h: Define GCC_EXCEPT_H.
4095 (doing_eh): Remove prototype.
4096 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
4097 (lang_protect_cleanup_actions): Remove.
4098 * except.c (lang_protect_cleanup_actions): Remove.
4100 (gen_eh_region): Don't check doing_eh here.
4101 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
4102 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
4103 instead of lang_protect_cleanup_actions.
4104 * omp-low.c (maybe_catch_exception): Likewise.
4105 * Makefile.in: Update dependencies.
4107 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
4109 * cgraph.h (struct varpool_node): new used_from_object_file flag.
4110 (struct cgraph_local_info): new used_from_object_file flag.
4111 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
4112 (cgraph_clone_node): initialize used_from_object_file.
4113 (cgraph_create_virtual_clone): initialize used_from_object_file.
4114 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
4115 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
4116 when compiling with -fwhole-program.
4117 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
4119 * ipa.c (function_and_variable_visibility): Set externally_visible
4120 flag of varpool_node if used_from_object_file flag is set.
4121 (cgraph_externally_visible_p): check used_from_object_file flag.
4122 * doc/invoke.texi (-fwhole-program option): Change description of
4123 externally_visible attribute accordingly.
4124 * doc/extend.texi (externally_visible): Ditto.
4126 2010-06-27 Jan Hubicka <jh@suse.cz>
4128 * params.def (max-inline-insns-auto): Default to 40.
4129 * doc/invoke.texi (max-inline-insns-auto): Document the change.
4131 2010-06-27 Jan Hubicka <jh@suse.cz>
4135 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
4137 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
4138 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4140 2010-06-27 Anatoly Sokolov <aesok@post.ru>
4142 * target.h (struct gcc_target): Add register_move_cost field.
4143 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
4144 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
4145 * targhooks.c (default_register_move_cost): New function.
4146 * targhooks.h (default_register_move_cost): Declare function.
4147 * defaults.h (REGISTER_MOVE_COST): Delete.
4148 * ira-int.h (ira_register_move_cost): Update comment.
4149 * ira.c: (ira_register_move_cost): Update comment.
4150 * reload.h (register_move_cost): Declare.
4151 * reginfo.c (register_move_cost): New function.
4152 (move_cost): Update comment.
4153 (init_move_cost, memory_move_secondary_cost): Replace
4154 REGISTER_MOVE_COST with register_move_cost.
4155 * postreload.c (reload_cse_simplify_set): (Ditto.).
4156 * reload.c (find_valid_class, find_reloads): (Ditto.).
4157 * reload1.c (choose_reload_regs): (Ditto.).
4158 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
4159 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
4160 * doc/md.texi (can_create_pseudo_p): Update documentation.
4162 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4163 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4164 * config/i386/i386.h (ix86_memory_move_cost): Make static.
4165 (TARGET_MEMORY_MOVE_COST): Define.
4167 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4168 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
4169 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
4170 (TARGET_MEMORY_MOVE_COST): Define.
4172 2010-06-27 Richard Guenther <rguenther@suse.de>
4174 PR tree-optimization/44683
4175 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
4176 false edge from the inverted condition.
4178 2010-06-27 Richard Guenther <rguenther@suse.de>
4181 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
4182 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
4183 for register LHS. Or non-store assignments.
4185 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
4187 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4188 (sparc_emit_set_const64): Likewise. Remove disabled code.
4189 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
4190 (sparc_emit_set_const64): Likewise.
4192 2010-06-26 Catherine Moore <clm@codesourcery.com>
4194 * config/mips/mips.md (alu_type): New attribute.
4195 (type): Infer type from alu_type.
4196 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
4197 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
4198 *subsi3_extended, negsi2, negdi2, *low<mode>,
4199 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
4200 xor<mode>3, *nor<mode>3,
4201 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
4202 *zero_extendhi_truncqi): Set alu_type instead of type.
4204 2010-06-26 Douglas B Rupp <rupp@gnat.com>
4206 * config/alpha/alpha.c (alpha_need_linkage): Adjust
4207 splay_tree_new_ggc call.
4208 (alpha_use_linkage): Likewise.
4210 2010-06-26 Joseph Myers <joseph@codesourcery.com>
4212 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
4213 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
4214 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
4215 (static_specs): Remove switches_need_spaces.
4216 (process_command, do_self_spec): Hardcode handling "-o" instead of
4217 checking switches_need_spaces.
4218 * system.h (SWITCHES_NEED_SPACES): Poison.
4220 2010-06-26 Richard Guenther <rguenther@suse.de>
4222 PR tree-optimization/44393
4223 * tree-loop-distribution.c (generate_loops_for_partition): Fix
4224 stmt removal and VOP renaming.
4225 (generate_memset_zero): Remove redundant stmt updating.
4226 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
4227 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
4229 2010-06-26 Jan Hubicka <jh@suse.cz>
4231 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
4232 edges comming from header are equivalent.
4233 (visit_bb): Handle PHIs correctly.
4234 * tree-inline.c (copy_phis_for_bb): Be able to copy
4235 PHI from entry edge.
4236 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
4238 2010-06-26 Richard Guenther <rguenther@suse.de>
4241 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
4242 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
4244 2010-06-26 Joseph Myers <joseph@codesourcery.com>
4246 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
4247 add_infile, alloc_switch): New.
4248 (process_command): Remove variable lang_n_infiles. Process
4249 options in a single pass. Use new functions for allocating
4250 infiles and switches arrays. Properly skip operands of
4251 -Xpreprocessor and -Xassembler.
4253 2010-06-26 Jan Hubicka <jh@suse.cz>
4256 * cgraphunit.c (cgraph_function_versioning): Remove wrong
4257 cgraph_make_decl_local call; fix typo copying RTL data.
4259 2010-06-25 DJ Delorie <dj@redhat.com>
4261 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
4262 (m32c_output_aligned_common): Likewise.
4263 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4264 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4265 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
4266 (m32c_register_pragmas): Register it.
4267 * config/m32c/m32c.c (m32c_get_pragma_address): New.
4268 (m32c_insert_attributes): Set #pragma address decls volatile.
4269 (pragma_entry_eq): New.
4270 (pragma_entry_hash): New.
4271 (m32c_note_pragma_address): New.
4272 (m32c_get_pragma_address): New.
4273 (m32c_output_aligned_common): New.
4274 * doc/extend.texi: Document the new pragma.
4276 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
4278 * config/m32c/predicates.md (m32c_any_operand): Check the code
4279 instead of memory_operand so as to allow matching volatile MEMs.
4280 (m32c_nonimmediate_operand): Likewise.
4281 (mra_operand): Allow volatiles.
4283 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
4286 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
4287 address if the offset is unknown.
4289 2010-06-25 Douglas B Rupp <rupp@gnat.com>
4291 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
4292 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
4293 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
4294 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
4295 to ia64_start_function. Invoke it.
4296 * config/ia64/ia64.c (ia64_start_function): Call new function
4297 dwarf2out_vms_debug_main_pointer.
4299 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4301 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
4302 statements computing the true predicate.
4304 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4306 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
4307 to boolean_true_node.
4308 (reset_bb_predicate): New.
4309 (predicate_bbs): Call reset_bb_predicate.
4311 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4313 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
4314 (tree_if_conversion): Returns true when something has been changed.
4315 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
4318 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4320 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
4321 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
4322 * tree-if-conv.c: Include dbgcnt.h.
4323 (tree_if_conversion): Use if_conversion_tree to count the number of
4324 if-convertible loops.
4326 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
4328 * common.opt (fprefetch-loop-arrays): Re-define
4329 -fprefetch-loop-arrays as a tri-state option with the initial
4331 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
4332 pass only when flag_prefetch_loop_arrays > 0.
4333 * toplev.c (process_options): Note that, with tri-states,
4334 flag_prefetch_loop_arrays>0 means prefetching is enabled.
4335 * config/i386/i386.c (override_options): Enable prefetching at -O3
4336 for a set of CPUs that sw prefetching is helpful.
4337 (software_prefetching_beneficial_p): New. Return TRUE if software
4338 prefetching is beneficial for the given CPU.
4340 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
4342 PR rtl-optimization/44326
4343 * implicit-zee.c (find_removable_zero_extends): Replace
4344 INSN_P with NONDEBUG_INSN_P.
4346 2010-06-25 Martin Jambor <mjambor@suse.cz>
4348 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
4349 (struct ipa_node_params): Removed the modification_analysis_done flag.
4350 (ipa_is_param_modified): Removed.
4351 (ipa_analyze_node): Declare.
4352 (ipa_compute_jump_functions): Remove declaration.
4353 (ipa_count_arguments): Likewise.
4354 (ipa_detect_param_modifications): Likewise.
4355 (ipa_analyze_params_uses): Likewise.
4356 * ipa-prop.c (struct param_analysis_info): New type.
4357 (visit_store_addr_for_mod_analysis): Removed.
4358 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
4359 moved down in the file.
4360 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
4361 (ipa_count_arguments): Made static.
4362 (mark_modified): New function.
4363 (is_parm_modified_before_call): New function.
4364 (compute_pass_through_member_ptrs): New parameter parms_info, call
4365 is_parm_modified_before_call instead of ipa_is_param_modified.
4366 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
4367 it to compute_pass_through_member_ptrs.
4368 (ipa_compute_jump_functions): New parameter parms_info, pass it to
4369 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
4370 on the callee if it is analyzed. Made static.
4371 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
4372 is_parm_modified_before_call instead of ipa_is_param_modified.
4373 (ipa_analyze_call_uses): New parameter parms_info, pass it to
4374 ipa_analyze_indirect_call_uses.
4375 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
4376 ipa_analyze_call_uses.
4377 (ipa_analyze_params_uses): New parameter parms_info, pass it to
4378 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
4379 (ipa_analyze_node): New function.
4380 (ipa_print_node_params): Do not dump the modified flag.
4381 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
4382 it. Do not stream the modified parameter flag.
4383 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
4384 it. Do not stream the modified parameter flag.
4385 * ipa-cp.c (ipcp_analyze_node): Removed.
4386 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
4387 with only a call to ipa_analyze_node.
4388 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
4389 node with only a call to ipa_analyze_node.
4391 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4393 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
4395 2010-06-25 Jan Hubicka <jh@suse.cz>
4397 * tree-pass.h (pass_split_functions): Declare.
4398 * opts.c (decode_options): Enable function splitting at -O2
4399 * timevar.def (TV_IPA_FNSPLIT): New macro.
4400 * ipa-split.c: New file.
4401 * common.opt (-fpartial-inlining): New flag.
4402 * Makefile.in (ipa-split.o): New object file.
4403 * passes.c (init_optimization_passes): Add ipa-split.
4404 * params.def (partial-inlining-entry-probability): New parameters.
4405 * doc/invoke.texi (-fpartial-inlining): New.
4407 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4410 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
4411 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
4412 (gimplify_expr): Likewise.
4414 2010-06-25 Martin Jambor <mjambor@suse.cz>
4416 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
4417 statements instead of bailing out on them.
4418 (ipa_analyze_indirect_call_uses): Do not require that loads from the
4419 parameter are in the same BB as the condition. Update comments.
4421 2010-06-25 Jakub Jelinek <jakub@redhat.com>
4424 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
4425 true or always false, return NULL_TREE.
4426 (tree_unswitch_single_loop): Optimize conditions even when reaching
4427 max-unswitch-level parameter. If num > 0, optimize first all conditions
4428 using entry checks, then do still reachable block discovery and consider
4429 only conditions in still reachable basic blocks in the loop.
4431 PR tree-optimization/44539
4432 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
4433 the call doesn't have LHS, but has VDEF.
4435 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4437 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
4438 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
4439 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
4440 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
4441 * system.h (MODIFY_TARGET_NAME): Poison.
4443 2010-06-25 Alan Modra <amodra@gmail.com>
4445 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
4446 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
4447 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4448 CMODEL_LARGE as default.
4449 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
4450 (offsettable_ok_by_alignment): Delete.
4451 (rs6000_emit_move): Remove mcmodel=medium optimization.
4453 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4455 With large parts from Jim Wilson:
4457 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
4458 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4459 * optabs.c (optab_for_tree_code): Likewise.
4460 (expand_widen_pattern_expr): Likewise.
4461 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
4462 out of execute_optimize_widening_mul.
4463 (convert_plusminus_to_widen): New function.
4464 (execute_optimize_widening_mul): Use the two new functions.
4465 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
4466 Remove code to generate widening multiply-accumulate. Add support
4467 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4468 * gimple-pretty-print.c (dump_ternary_rhs): New function.
4469 (dump_gimple_assign): Call it when appropriate.
4470 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
4471 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4472 (expand_gimple_stmt_1): Likewise.
4473 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
4474 WIDEN_MULT_MINUS_EXPR.
4475 * tree-ssa-operands.c (get_expr_operands): Likewise.
4476 * tree-inline.c (estimate_operator_cost): Likewise.
4477 * gimple.c (extract_ops_from_tree_1): Renamed from
4478 extract_ops_from_tree. Add new arg for a third operand; fill it.
4479 (gimple_build_assign_stat): Support operations with three operands.
4480 (gimple_build_assign_with_ops_stat): Likewise.
4481 (gimple_assign_set_rhs_from_tree): Likewise.
4482 (gimple_assign_set_rhs_with_ops_1): Renamed from
4483 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
4484 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
4485 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
4486 WIDEN_MULT_MINUS_EXPR.
4487 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
4488 (extract_ops_from_tree_1): Adjust declaration.
4489 (gimple_assign_set_rhs_with_ops_1): Likewise.
4490 (gimple_build_assign_with_ops): Pass NULL for last operand.
4491 (gimple_build_assign_with_ops3): New macro.
4492 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
4493 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
4495 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
4496 (verify_gimple_assign): Call it.
4497 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
4498 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
4499 functions for dealing with three-operand statements.
4500 * tree.c (commutative_ternary_tree_code): New function.
4501 * tree.h (commutative_ternary_tree_code): Declare it.
4502 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
4504 (gimple_assign_nonzero_warnv_p): Likewise.
4505 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
4506 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
4507 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
4508 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
4509 (struct hashtable_expr): New member ternary in the union.
4510 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
4511 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
4512 (iterative_hash_hashable_expr): Likewise.
4513 (print_expr_hash_elt): Handle EXPR_TERNARY.
4514 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
4515 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
4516 statements. Handle GIMPLE_TERNARY_RHS.
4518 2010-06-25 Jan Hubicka <jh@suse.cz>
4520 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
4522 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
4525 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
4526 parameters are not good.
4527 (c_parser_parameter_declaration): Error unknown type name if the type
4528 name can't start declaration specifiers.
4530 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4532 * gcc.c (translate_options): Don't mention +e in comment.
4533 (process_command): Don't handle +e specially.
4535 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4537 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
4539 * ira-build.c (merge_hard_reg_conflicts): New function.
4540 (create_cap_allocno, copy_info_to_removed_store_destinations,
4541 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
4542 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
4543 (remove_unnecessary_allocnos, remove_low_level_allocnos)
4544 copy_nifo_to_removed_store_destination): Use them.
4545 * ira-lives.c (make_hard_regno_born): New function, split out of
4547 (make_allocno_born): Likewise.
4548 (make_hard_regno_dead): New function, split out of make_regno_dead.
4549 (make_allocno_dead): Likewise.
4550 (inc_register_pressure): New function, split out of set_allocno_live.
4551 (dec_register_pressure): New function, split out of clear_allocno_live.
4552 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
4553 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
4554 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
4555 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
4556 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
4557 mark_pseudo_regno_live.
4558 (process_bb_node_lives): Use mark_pseudo_regno_live,
4559 make_hard_regno_born and make_allocno_dead.
4560 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
4561 set_allocno_live, clear_allocno_live): Delete functions.
4563 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
4564 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
4566 (ira_flattening): Use ira_parent_allocno.
4567 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
4568 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
4570 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
4573 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
4574 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
4575 minmax_set_iter_cond, minmax_set_iter_next,
4576 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
4577 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
4578 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
4579 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
4582 * ira-int.h (struct live_range, live_range_t): Renamed from struct
4583 ira_allocno_live_range and allocno_live_range_t; all uses changed.
4584 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
4587 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
4589 * thumb2.md (thumb2_tlobits_cbranch): Delete.
4590 (peephole2 to convert zero_extract/compare of single bit to
4591 lshift/compare): New.
4593 2010-06-24 Anatoly Sokolov <aesok@post.ru>
4595 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
4596 recursive call and call to 'int_const_binop'.
4597 (build_range_check, fold_cond_expr_with_comparison, unextend,
4598 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
4599 multiple_of_p): Adjust call to const_binop.
4601 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
4603 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
4604 determine size of XFmode operand.
4605 (XFmode extended DFmode push splitter): Ditto.
4606 (XFmode extended SFmode push splitter): Ditto.
4608 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
4611 * config/i386/i386.md (extract_code): New.
4612 (<u>divmodqi4): Likewise.
4613 (divmodhiqi3): Likewise.
4614 (udivmodhiqi3): Likewise.
4615 (<u>divqi3): Remvoved.
4617 2010-06-24 Jakub Jelinek <jakub@redhat.com>
4620 * recog.h (struct recog_data): Add is_asm field.
4621 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
4622 present in constraints of inline-asm operand and memory operand
4623 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
4624 (extract_insn): Initialize recog_data.is_asm.
4625 * doc/md.texi (Constraints): Document operand side-effect rules.
4627 2010-06-24 Andi Kleen <ak@linux.intel.com>
4629 * c-parser.c (c_parser_conditional_expression): Call
4630 warn_for_omitted_condop.
4631 * doc/invoke.texi: Document omitted condop warning.
4633 2010-06-24 Nick Clifton<nickc@redhat.com>
4635 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
4636 insn in the sequence is a jump insn before setting its label.
4638 2010-06-24 Alan Modra <amodra@gmail.com>
4640 * collect2.c (main): Match exactly --version and --help.
4642 2010-06-24 DJ Delorie <dj@redhat.com>
4644 * config/m32c/m32c-pragma.c: Don't include rtl.h.
4646 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
4648 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4649 using X87MODEF mode iterator.
4650 (pushsf splitter): Macroize splitter using P mode iterator.
4651 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4654 (*movxf_internal): Rename from *movxf_integer.
4655 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4656 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4657 (*movdf_internal): Rename from *movdf_integer.
4658 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4659 (*movsf_internal): Rename from *movdf_1.
4661 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
4663 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4664 (const_gimple_seq_node): Removed typedefs.
4666 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4667 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4669 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
4671 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4672 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4673 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4674 and CODE_FOR_vec_extract_lo_v4df.
4676 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4677 Changed to define_insn_and_split.
4678 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4679 (vec_extract_lo_v16hi): Likewise.
4680 (vec_extract_lo_v32qi): Likewise.
4681 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4682 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4684 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
4687 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4688 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4689 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4690 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4691 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4694 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4697 * df-core.c (struct df): Rename to df_d.
4698 * df.h (struct df): Likewise.
4699 * dse.h (struct df): Remove forward declaration.
4700 * recog.h (struct insn_data): Rename to:
4701 (struct_insn_data_d). Adjusted all users.
4703 2010-06-23 Arnaud Charlet <charlet@adacore.com
4706 * doc/install.texi: Update requirements to build GNAT.
4708 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
4710 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4712 (m68k_sched_attr_opx_type): Remove unreachable return.
4713 (m68k_sched_attr_opy_type): Likewise.
4714 (m68k_sched_attr_size): Likewise.
4715 (sched_get_opxy_mem_type): Likewise.
4716 (m68k_sched_attr_op_mem): Likewise.
4718 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4720 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4721 new statement and adjust VDEF only if necessary. Remove superfluous
4722 call to maybe_clean_or_replace_eh_stmt.
4723 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4725 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4726 * tree-inline.c (copy_bb): ...and not there.
4728 2010-06-22 Cary Coutant <ccoutant@google.com>
4730 * dwarf2out.c (is_nested_in_subprogram): New function.
4731 (should_move_die_to_comdat): Use it.
4732 (copy_ancestor_tree): Don't mark DIEs here.
4733 (copy_decls_walk): Start walk from root of newly-added tree;
4734 mark DIEs here instead.
4736 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
4738 * config/i386/i386.md (unit): Also check sseishft1.
4740 2010-06-22 Jan Hubicka <jh@suse.cz>
4742 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4745 2010-06-22 Jan Hubicka <jh@suse.cz>
4747 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4748 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4749 Return true if something changed.
4750 * df.h (df_confluence_function_n): Return bool.
4751 * df-core.c (df_worklist_propagate_forward,
4752 df_worklist_propagate_backward): Track changes and ages.
4753 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4755 * dse.c (dse_confluence_n): Return always true.
4757 2010-06-22 Jan Hubicka <jh@suse.cz>
4759 * bitmap.c (bitmap_clear_bit): Micro optimize.
4761 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
4763 * config/i386/i386.md (SWI1248x): New mode iterator.
4768 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4769 SWI1248x mode iterator.
4770 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4771 using SWI124 mode iterator.
4772 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4774 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
4775 *pushdi2_prologue_rex64 using P mode iterator.
4776 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4777 using SWI48 mode iterator.
4778 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4779 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4780 using SWI1248x mode iterator.
4781 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4782 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4783 SWI48 mode iterator.
4784 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4786 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4787 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4788 SWI12 mode iterator.
4789 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4790 SWI12 mode iterator.
4791 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4792 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4793 SWI24 mode iterator.
4794 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4795 SWI48 mode iterator.
4796 (mov<mode>_insn_1): New expander.
4797 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4798 using SWI48x mode iterator.
4800 (*movoi_internal_avx): Rename from *movoi_internal.
4801 (*movti_internal_rex64): Rename from *movti_rex64.
4802 (*movti_internal_sse): Rename from *movti_sse.
4803 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4804 (*movdi_internal): Rename from *movdi_2.
4805 (*movsi_internal): Rename from *movsi_1.
4806 (*movhi_internal): Rename from *movhi_1.
4807 (*movqi_internal): Rename from *movqi_1.
4809 (insv): Update the call to gen_movsi_insv_1 for rename.
4810 * config/i386/i386.c (promote_duplicated_reg): Ditto.
4812 2010-06-22 Jan Hubicka <jh@suse.cz>
4814 * passes.c (execute_function_todo): Move call of statistics_fini_pass
4816 (execute_todo) ... this one.
4818 2010-06-22 Alan Modra <amodra@gmail.com>
4821 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4822 * caller-save.c (insert_restore, insert_save): Use non-validate
4823 form of adjust_address.
4825 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4828 * config/pa/pa.c (override_options): Disable
4829 -freorder-blocks-and-partition.
4831 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
4834 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4836 * config/i386/i386.md (type): Add sseishft1
4838 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4839 (ppro_insn_load): Likewise.
4840 (ppro_insn_store): Likewise.
4841 (ppro_insn_both): Likewise.
4843 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4844 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4846 (*vec_extractv2di_1_avx): Likewise.
4847 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4848 type. Remove atom_unit.
4849 (*vec_extractv2di_1_sse2): Likewise.
4851 2010-06-21 DJ Delorie <dj@redhat.com>
4853 * diagnostic.h (diagnostic_classification_change_t): New.
4854 (diagnostic_context): Add history and push/pop list.
4855 (diagnostic_push_diagnostics): Declare.
4856 (diagnostic_pop_diagnostics): Declare.
4857 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4858 from pragmas in a history chain instead of the global table.
4859 (diagnostic_push_diagnostics): New.
4860 (diagnostic_pop_diagnostics): New.
4861 (diagnostic_report_diagnostic): Scan history chain to find state
4862 of diagnostics as of the diagnostic location.
4863 * opts.c (set_option): Pass UNKNOWN_LOCATION to
4864 diagnostic_classify_diagnostic.
4865 (enable_warning_as_error): Likewise.
4866 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4867 use in the history chain.
4868 * doc/extend.texi: Document pragma GCC diagnostic changes.
4870 2010-06-21 Jakub Jelinek <jakub@redhat.com>
4872 * dwarf2out.c (add_linkage_name): New function. Don't add
4873 anything to DW_TAG_member DIEs.
4874 (add_name_and_src_coords_attributes): Use it.
4875 (gen_variable_die): Call it for C++ static data members if
4876 specification is DW_TAG_member.
4878 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4879 C++ char16_t and char32_t.
4881 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4882 * genattrtab.c: Include vecprim.h.
4883 (cached_attrs, cached_attr_count, attrs_seen_once,
4884 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4885 attrs_cached_after): New variables.
4886 (find_attrs_to_cache): New function.
4887 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4888 (write_test_expr): Add attrs_cached argument, return it too,
4889 attempt to cache non-const attributes used more than once in
4890 a single case handling.
4891 (write_attr_get): Use find_attrs_to_cache, for caching candidates
4892 emit cached_* variables. Adjust write_attr_set callers.
4893 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4894 to find attributes that should be cached in this block. Adjust
4895 write_test_expr callers.
4896 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
4898 (make_automaton_attrs): Adjust write_test_expr caller.
4900 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4901 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4902 (make_automaton_attrs): If find_tune_attr returns non-NULL,
4903 write separate internal_dfa_insn_code_* and insn_default_latency_*
4904 functions for each attribute's value and emit init_sched_attrs
4905 function and function pointers.
4906 * genattr.c (const_attrs, reservations): New variables.
4907 (gen_attr): Add const attributes to const_attrs vector.
4908 (check_tune_attr, find_tune_attr): New functions.
4909 (main): Add reservations to reservations vector. If find_tune_attr
4910 returns true, add prototype for init_sched_attrs and make
4911 internal_dfa_insn_code and insn_default_latency function pointers,
4912 otherwise define init_sched_attrs as dummy macro.
4913 * cfgexpand.c: Include insn-attr.h.
4914 (gimple_expand_cfg): Call init_sched_attrs.
4916 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4919 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4920 va_arg from a set of register save slots into a temporary,
4921 if the container is bigger than type size, do the copying
4922 using smaller mode or using memcpy.
4925 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4927 (sel_print_to_dot): Remove macro.
4928 (sel_print): Likewise. New prototype.
4929 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4930 (sel_print): New function.
4932 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4934 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4935 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4937 2010-06-21 Nick Clifton <nickc@redhat.com>
4939 * config/rx/rx.h (PTRDIFF_TYPE): Define.
4940 (SMALL_REGISTER_CLASS): Define (to zero).
4941 (PRINT_OPERAND): Delete.
4942 (PRINT_OPERAND_ADDRESS): Delete.
4943 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4944 (rx_print_operand_address): Delete prototype.
4945 * config/rx/rx.c (rx_print_operand): Make static.
4946 Allow %H and %L to handle CONST_DOUBLEs.
4947 (rx_print_operand_address): Make static.
4948 (rx_gen_move_template): Rename local variable 'template' to
4950 (rx_function_arg): Do not pass unknown sized objects in registers.
4951 (TARGET_PRINT_OPERAND): Define.
4952 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4954 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4956 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4958 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
4960 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4961 stack-alignment for simple leaf-functions.
4963 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4965 * doc/install.texi: Document bootstrap-lto.
4967 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4970 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4971 (input_function): Drop them here, if VTA is disabled.
4973 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4976 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4978 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4979 ix86_swapped_fp_comparsion_operator instead of
4980 ix86_fp_comparison_operator.
4982 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4983 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4984 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4985 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4986 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4987 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4989 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4992 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4993 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4994 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4995 (decode_cmdline_option): Update for this return value. Set
4996 orig_option_with_args_text field. Set arg field for unknown
4997 options. Make static.
4998 (decode_cmdline_options_to_array): New.
4999 (prune_options): Update handling of find_opt return value.
5000 * opts.c (read_cmdline_option): Take decoded option. Return void.
5001 (read_cmdline_options): Take decoded options.
5002 (decode_options): Add parameters for decoded options. Use
5003 decode_cmdline_options_to_array. Use decoded options for -O
5004 scan. Use integral_argument for -O parameters. Update call to
5005 read_cmdline_options.
5006 (enable_warning_as_error): Update handling of find_opt return value.
5007 * opts.h: Update comment on unknown options.
5008 (struct cl_decoded_option): Update comments on opt_index and arg.
5009 Add orig_option_with_args_text.
5010 (decode_cmdline_option): Remove.
5011 (decode_cmdline_options_to_array): Declare.
5012 (decode_options): Update prototype.
5013 * toplev.c (save_argv): Remove.
5014 (save_decoded_options, save_decoded_options_count): New.
5015 (read_integral_parameter): Remove.
5016 (print_switch_values): Use decoded options.
5017 (toplev_main): Don't set save_argv. Update call to decode_options.
5018 * toplev.h (read_integral_parameter): Remove.
5019 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
5021 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
5024 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
5026 * constraints.md (Pw, Px): New constraints.
5027 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
5029 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
5031 * config/i386/sse.md (fma4modesuffixf4): Removed.
5032 (ssemodesuffixf2s): Likewise.
5033 (ssemodesuffixf4): Likewise.
5034 (ssemodesuffixf2c): Likewise.
5035 (ssescalarmodesuffix2s): Likewise.
5036 (avxmodesuffixf2c): Likewise.
5037 (ssemodesuffix): New.
5038 (ssescalarmodesuffix): Likewise.
5039 Update patterns with ssemodesuffix and ssescalarmodesuffix.
5041 2010-06-19 Philip Herron <herron.philip@googlemail.com>
5043 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
5045 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
5047 * stor-layout.c (debug_rli): Remove unused local variables.
5049 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5051 PR rtl-optimization/40900
5052 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
5053 original expression for later reuse.
5054 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
5055 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
5057 2010-06-18 Anatoly Sokolov <aesok@post.ru>
5059 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
5060 double_int_fits_in_uhwi_p): Implement as static inline.
5061 (double_int_xor): New inline function.
5062 (double_int_lrotate, double_int_rrotate, double_int_max,
5063 double_int_umax, double_int_smax, double_int_min, double_int_umin,
5064 double_int_smin): Declare.
5065 (lrotate_double, rrotate_double): Remove declaration.
5066 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
5067 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
5068 (double_int_lrotate, double_int_rrotate, double_int_max,
5069 double_int_umax, double_int_smax, double_int_min, double_int_umin,
5070 double_int_smin): New function.
5071 * fold-const.c (int_const_binop): Clean up, use double_int_*
5073 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
5074 double_int_* and immed_double_int_const functions.
5076 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5078 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
5079 * function.c (types_used_by_cur_var_decl): Likewise.
5080 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
5082 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5084 * tree.h (record_layout_info): Change type of pending_statics field
5086 * stor-layout.c (start_record_layout): Store NULL into
5088 (debug_rli): Call debug_vec_tree instead of debug_tree.
5089 (place_field): Likewise.
5090 (finish_record_layout): Likewise.
5092 2010-06-18 Alan Modra <amodra@gmail.com>
5094 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
5096 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5099 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
5100 for SET source operand from SET destination operand.
5102 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
5104 PR rtl-optimization/39871
5105 * reload1.c (init_eliminable_invariants): For flag_pic, disable
5106 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
5107 (function_invariant_p): Rule out a plus of frame or arg pointer with
5109 * ira.c (find_reg_equiv_invariant_const): Likewise.
5111 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
5113 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
5114 print_operand_address and puts to output the operand for CONST.
5116 2010-06-17 Jakub Jelinek <jakub@redhat.com>
5119 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
5122 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5124 * v850-protos.h (print_operand): Delete.
5125 (print_operand_address): Delete.
5126 * v850.h (PRINT_OPERAND): Delete.
5127 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5128 (PRINT_OPERAND_ADDRESS): Delete.
5129 * v850.c (print_operand_address): Rename to...
5130 (v850_print_operand_address): ...this. Make static. Call
5132 (print_operand): Rename to...
5133 (v850_print_operand): ...this. Make static. Call
5134 v850_print_operand_address.
5135 (v850_print_operand_punct_valid_p): New function.
5136 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5137 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5139 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5141 * config/sh/sh-protos.h (print_operand): Delete.
5142 (print_operand_address): Delete.
5143 * config/sh/sh.h (PRINT_OPERAND): Delete.
5144 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5145 (PRINT_OPERAND_ADDRESS): Delete.
5146 * config/sh/sh.c (sh_print_operand_address): Make static.
5147 (sh_print_operand): Make static. Call sh_print_operand_address
5148 and sh_print_operand.
5149 (sh_print_operand_punct_valid_p): New function.
5150 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5151 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5153 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5155 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
5156 (mcore_print_operand_address): Delete.
5157 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
5158 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5159 (PRINT_OPERAND_ADDRESS): Delete.
5160 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
5161 (mcore_print_operand): Make static.
5162 (mcore_print_operand_punct_valid_p): New function.
5163 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
5164 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5166 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5168 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
5169 (print_operand_address): Delete.
5170 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
5171 (PRINT_OPERAND_ADDRESS): Delete.
5172 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
5174 (m68hc11_print_operand): Make static.
5175 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5177 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5179 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
5180 (m32r_print_operand_address): Delete.
5181 * config/m32r/m32r.h (m32r_punct_chars): Delete.
5182 (PRINT_OPERAND): Delete.
5183 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5184 (PRINT_OPERAND_ADDRESS): Delete.
5185 * config/m32r/m32r.c (m32r_punct_chars): Make static.
5186 (m32r_print_operand_address): Make static.
5187 (m32r_print_operand): Make static.
5188 (m32r_print_operand_punct_valid_p): New function.
5189 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5190 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5192 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5194 * config/iq2000/iq2000-protos.h (print_operand): Delete.
5195 (print_operand_address): Delete.
5196 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
5197 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5198 (PRINT_OPERAND_ADDRESS): Delete.
5199 (iq2000_print_operand_punct): Delete.
5200 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
5201 (iq2000_print_operand_address): Make static.
5202 (iq2000_print_operand): Make static.
5203 (iq2000_print_operand_punct_valid_p): New function.
5204 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5205 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5207 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5209 * config/frv/frv-protos.h (frv_print_operand): Delete.
5210 (frv_print_operand_address): Delete.
5211 * config/frv/frv.h (PRINT_OPERAND): Delete.
5212 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5213 (PRINT_OPERAND_ADDRESS): Delete.
5214 * config/frv/frv.c (frv_print_operand_address): Make static.
5215 (frv_print_operand): Make static.
5216 (frv_print_operand_punct_valid_p): New function.
5217 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5218 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5220 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5222 * tree.h (vec_member): Declare.
5223 * tree.c (vec_member): Define.
5225 2010-06-17 Richard Guenther <rguenther@suse.de>
5227 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
5228 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
5230 2010-06-17 Richard Guenther <rguenther@suse.de>
5232 * tree-inline.c (declare_return_variable): Remove bogus code.
5234 2010-06-17 Richard Guenther <rguenther@suse.de>
5236 * gimplify.c (gimplify_bind_expr): Always promote complex
5237 and vector variables to registers if possible.
5239 2010-06-17 Richard Guenther <rguenther@suse.de>
5241 * expr.c (get_inner_reference): Use double_int for bit_offset
5244 2010-06-16 DJ Delorie <dj@redhat.com>
5246 * common.opt (-fstrict-volatile-bitfields): new.
5247 * doc/invoke.texi: Document it.
5248 * fold-const.c (optimize_bit_field_compare): For volatile
5249 bitfields, use the field's type to determine the mode, not the
5251 * expr.c (expand_assignment): Likewise.
5252 (get_inner_reference): Likewise.
5253 (expand_expr_real_1): Likewise.
5254 * expmed.c (store_fixed_bit_field): Likewise.
5255 (extract_bit_field_1): Likewise.
5256 (extract_fixed_bit_field): Likewise.
5258 2010-06-16 Richard Guenther <rguenther@suse.de>
5260 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
5262 2010-06-16 Douglas B Rupp <rupp@gnat.com>
5264 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
5265 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
5266 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
5267 * debug.c: Likewise.
5268 * sdbout.c: Likewise.
5269 * vmsdbgout.c: Likewise.
5270 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
5271 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
5272 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
5273 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
5274 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
5275 * dwarf2out.c (dw_fde_struct): New fields
5276 dw_fde_vms_{end,begin}_prologue.
5277 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
5278 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
5279 (dwarf2out_vms_end_prologue): New function.
5280 (dwarf2out_vms_begin_epilogue): New function.
5281 (dw_val_struct): New value dw_val_class_vms_delta.
5282 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
5283 begin_epilogue for VMS.
5284 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
5285 new static functions.
5286 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
5287 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
5289 (print_die): New case dw_val_class_vms_delta.
5290 (attr_checksum): Likewise.
5291 (same_dw_val_p: Likewise.
5292 (size_of_die): Likewise.
5293 (value_format): Likewise.
5294 (output_die): Likewise.
5295 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
5296 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
5297 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
5298 dwarf2out_cfi_begin_epilogue
5299 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
5301 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
5303 * config/cris/cris-protos.h (cris_print_operand): Delete.
5304 (cris_print_operand_address): Delete.
5305 * config/cris/cris.h (PRINT_OPERAND): Delete.
5306 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5307 (PRINT_OPERAND_ADDRESS): Delete.
5308 * config/cris/cris.c (cris_print_operand_address): Make static.
5309 (cris_print_operand): Make static.
5310 (cris_print_operand_punct_valid_p): New function.
5311 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5312 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5314 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
5316 * config/arm/arm-protos.h (arm_print_operand): Delete.
5317 (arm_print_operand_address): Delete.
5318 * config/arm/arm.h (PRINT_OPERAND): Delete.
5319 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5320 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
5321 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
5322 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
5323 (arm_print_operand): Make static.
5324 (arm_print_operand_punct_valid_p): New function.
5325 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5326 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5328 2010-06-16 Nick Clifton <nickc@redhat.com>
5330 * config/rx/constraints.md (NEGint4): New constraint.
5331 * config/rx/rx.md (attr cc): Add set_zsc.
5332 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5335 (call_internal): Clobber the cc0 register.
5336 (call_value_internal): Likewise.
5337 (cstoresi4): Likewise.
5338 (movsieq): Likewise.
5339 (movsine): Likewise.
5340 (addsi3): Add alternative to handle small negative constants.
5342 (addsi3): Do not set the O bit in the cc0 register.
5346 (andsi3): Reorder alternatives to prefer shorter forms.
5349 (negsi2): Note that the cc0 flags are set.
5350 (rotlsi3): Note that only the Z and S bits are set in cc0.
5351 (lshrsi3): Likewise.
5352 (ashlsi3): Likewise.
5353 (subsf3): Use %Q for the MEM operand.
5354 (fix_truncsfsi2): Likewise.
5355 (floatsisf2): Likewise.
5356 (bitset): Remove early clobber from destination.
5357 (bitset_in_memory): Likewise.
5358 (lrintsf2): Clobber the cc0 register.
5359 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
5360 (rx_print_operand): Handle %N.
5362 2010-06-16 Jan Hubicka <jh@suse.cz>
5364 * df-core.c (df_compact_blocks): Free problem_temps vector.
5366 2010-06-16 Martin Jambor <mjambor@suse.cz>
5368 PR tree-optimization/43905
5369 * tree-sra.c: Include tree-inline.h.
5370 (create_abstract_origin): Removed.
5371 (modify_function): Version the call graph node instead of creating
5372 abstract origins and dealing with same_body aliases.
5373 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
5374 function is versionable.
5375 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
5377 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
5379 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
5380 (CHOOSE_DYNAMIC_LINKER): Update.
5382 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
5384 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
5385 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
5386 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
5387 *prefetch_3dnow_rex.
5389 2010-06-15 Anatoly Sokolov <aesok@post.ru>
5391 * target.h (struct asm_out):Add declare_constant_name field.
5392 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5393 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
5394 * output.h (default_asm_declare_constant_name): Declare.
5395 (assemble_label): Update prototype.
5396 * varasm.c (assemble_constant_contents): Use
5397 targetm.asm_out.declare_constant_name target hook.
5398 (assemble_label): Add 'file' argument.
5399 (default_asm_declare_constant_name): New function.
5400 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
5401 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
5402 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
5404 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
5405 * config/darwin.c (darwin_asm_declare_constant_name): New function.
5406 (machopic_output_indirection): Update assemble_label argument list.
5407 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
5408 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5410 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
5413 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5414 size_one_node for pointer types. Do not call gmp_cst_to_tree.
5416 2010-06-15 Richard Guenther <rguenther@suse.de>
5418 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
5420 2010-06-15 Paul Brook <paul@codesourcery.com>
5422 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
5425 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
5427 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
5428 don't get a vector type for output.
5430 2010-06-15 Jakub Jelinek <jakub@redhat.com>
5433 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
5434 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
5435 (LANG_HOOKS_DECLS): Add it.
5436 * gimplify.c (omp_notice_variable): Call
5437 lang_hooks.decls.omp_report_decl.
5439 2010-06-15 Martin Jambor <mjambor@suse.cz>
5442 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
5443 on the newly dead SSA name.
5445 2010-06-15 Alan Modra <amodra@gmail.com>
5447 * doc/invoke.texi: Add mcmodel to powerpc options.
5448 * configure.ac: Add HAVE_LD_LARGE_TOC test.
5449 * configure: Regenerate.
5450 * config.in: Regenerate.
5451 * config/rs6000/linux64.opt (mcmodel): New.
5452 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
5453 (TARGET_CMODEL, SET_CMODEL): Define.
5454 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
5455 select CMODEL_MEDIUM default.
5456 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
5457 (TARGET_CMODEL): Define default.
5458 * config/rs6000/rs6000.c (cmodel): New variable.
5459 (rs6000_explicit_options): Add cmodel field.
5460 (rs6000_handle_option): Handle -mcmodel.
5461 (create_TOC_reference): Add largetoc_reg param. Generate high,
5462 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
5463 (rs6000_delegitimize_address): Recognise new toc reference rtl
5464 and minimal-toc rtl.
5465 (rs6000_legitimize_reload_address): Handle new toc references.
5466 (print_operand_address): Handle legitimate_constant_pool_address_p
5467 match before lo_sum.
5468 (rs6000_eliminate_indexed_memrefs): Tidy.
5469 (rs6000_emit_move): Tweak threshold for inlining constants.
5470 Keep rs6000_emit_allocate_stack large stack frame offsets
5471 loaded into r0 inline.
5472 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
5473 (tocrel_base, tocrel_offset): New variables.
5474 (toc_relative_expr_p): Set them here.
5475 (print_operand_address): Skip over any offset on constant pool address.
5476 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
5477 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
5478 (offsettable_ok_by_alignment): New function.
5479 (rs6000_emit_move): Address suitably aligned local symbol_refs
5480 relative to the toc pointer for -mcmodel=medium.
5481 (legitimate_constant_pool_address_p): Make param const_rtx. Add
5482 strict param. Allow lo_sum version of addressing. Verify reg
5483 used for -mminimal-toc and -mcmodel != small. Update all callers.
5484 * config/rs6000/constraints.md: Update for above change.
5485 * config/rs6000/predicates.md: Likewise.
5486 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
5488 (tls_gd): Split for -mcmodel=medium/large.
5489 (tls_gd_high, tls_gd_low): New.
5490 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
5491 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
5492 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
5493 (largetoc_high, largetoc_low): New.
5494 (cmptf_internal2): Add clobber.
5495 * config/rs6000/rs6000-protos.h: Update.
5497 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
5499 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
5500 true if no prefetch is going to be generated for a given group.
5501 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
5502 estimate the prefetch_count.
5503 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
5504 prefetch count by considering the unroll_factor and prefetch_mod
5505 for is_loop_prefetching_profitable.
5507 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
5509 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
5510 anything if the argument is not a MEM.
5512 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
5517 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
5519 (canonicalize_loop_ivs): Likewise.
5521 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
5524 * haifa-sched.c (setup_insn_reg_pressure_info,
5525 update_register_pressure): Reject debug insns.
5526 (ready_sort): Don't setup reg pressure for debug insns.
5527 (schedule_insn): Don't update reg pressure for debug insns.
5529 2010-06-14 Richard Guenther <rguenther@suse.de>
5531 * lto-streamer.c (cached_bp): Remove.
5532 (bitpack_delete): Likewise.
5533 (bitpack_create): Likewise.
5534 (bp_get_next_word): Likewise.
5535 (bp_pack_value, bp_unpack_value): Move ...
5536 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
5538 (struct bitpack_d): Likewise.
5539 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
5540 New inline functions.
5541 * lto-streamer-out.c (lto_output_bitpack): Remove.
5542 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
5543 (pack_value_fields): Adjust.
5544 (lto_write_tree): Likewise.
5545 (output_gimple_stmt): Likewise.
5546 (output_function): Likewise.
5547 * lto-streamer-in.c (input_gimple_stmt): Adjust.
5548 (input_function): Likewise.
5549 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
5550 (lto_input_bitpack): Remove.
5551 (lto_materialize_tree): Adjust.
5552 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
5553 * lto-cgraph.c (lto_output_edge): Adjust.
5554 (lto_output_node): Likewise.
5555 (lto_output_varpool_node): Likewise.
5556 (lto_output_ref): Likewise.
5557 (input_node): Likewise.
5558 (input_varpool_node): Likewise.
5559 (input_ref): Likewise.
5560 (input_edge): Likewise.
5561 (output_node_opt_summary): Likewise.
5562 (input_node_opt_summary): Likewise.
5563 * ipa-pure-const.c (pure_const_write_summary): Likewise.
5564 (pure_const_read_summary): Likewise.
5565 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
5566 (ipa_read_indirect_edge_info): Likewise.
5567 (ipa_write_node_info): Likewise.
5568 (ipa_read_node_info): Likewise.
5570 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
5573 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
5574 (vec_extract_lo_v16hi): Likewise.
5575 (vec_extract_lo_v32qi): Likewise.
5577 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5580 * tree.h (build_call_expr): Don't define as vararg macro, instead
5582 * builtins.c (build_call_nofold): Remove.
5583 (expand_builtin_int_roundingfn, expand_builtin_pow,
5584 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
5585 expand_builtin_memset_args, expand_builtin_strcmp,
5586 expand_builtin_strncmp, expand_builtin_memory_chk): Use
5587 build_call_nofold_loc instead of build_call_nofold.
5588 (build_call_expr): New function.
5590 PR tree-optimization/44508
5591 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
5592 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
5593 don't eliminate trivially dead stmts.
5594 * tree-vrp.c (vrp_finalize): Pass false as last argument
5595 to substitute_and_fold.
5596 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
5597 to substitute_and_fold.
5598 * tree-ssa-ccp.c (ccp_finalize): Likewise.
5601 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
5603 2010-06-14 Ira Rosen <irar@il.ibm.com>
5605 PR tree-optimization/44507
5606 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
5607 to build initial vector for BIT_AND_EXPR.
5608 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5610 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5612 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
5613 adjust z10prop set_attr.
5615 2010-06-13 Jan Hubicka <jh@suse.cz>
5617 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5618 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5619 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
5620 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
5621 datastructure checks into checking asserts.
5622 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
5623 * tree-ssa-sccvn.c (VN_INFO): Likewise.
5624 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
5625 df_ref_create_structure): Likewise.
5626 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
5627 pool_free): Use gcc_checking_assert.
5628 * alias.c (get_alias_set): Likewise.
5629 * var-tracking.c (variable_htab_free, shared_hash_copy,
5630 canonicalize_values_mark, variable_merge_over_cur): Likewise.
5631 * lto-streamer.c (bp_unpack_value): Likewise.
5633 2010-06-13 Richard Guenther <rguenther@suse.de>
5635 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
5636 Do not stream but initialize TYPE_CANONICAL to NULL.
5637 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
5638 * gimple.c (gimple_types_compatible_p): Disregard
5639 TYPE_STRUCTURAL_EQUALITY_P.
5640 (gimple_register_type): Use TYPE_CANONICAL as cache.
5641 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
5642 before registering common types.
5643 * config/i386/i386.c (ix86_function_arg_boundary): Do not
5644 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
5645 * tree.h (TYPE_CANONICAL): Clarify documentation.
5647 2010-06-13 Anatoly Sokolov <aesok@post.ru>
5649 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5650 LIBCALL_VALUE): Remove macros.
5651 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5652 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5653 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5654 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5655 (ia64_function_value): Make static. Handle receiving the function
5656 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5658 2010-06-12 Jan Hubicka <jh@suse.cz>
5660 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5663 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
5665 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5667 2010-06-12 Jan Hubicka <jh@suse.cz>
5669 * df-core.c (df_clear_bb_info): New function.
5670 (df_set_blocks): bb_info is always allocated.
5671 (df_get_bb_info): Use block_info_elt_size.
5672 (df_set_bb_info): Likewise.
5673 (df_compact_blocks): Update for new block_info.
5674 (grow_bb_info): New function.
5675 * df-problems.c (df_grow_bb_info): Move to df-core.c
5676 (df_rd_set_bb_info): Remove.
5677 (df_rd_free_bb_info): Do not free block pool.
5678 (df_rd_alloc): Do not create pool, use check for
5679 obstack presence instead of NULL pointer for new blocks.
5680 (df_rd_free): DO not free alloc pool; clear block_info.
5681 (problem_RD): Add size of block info structure.
5682 (df_lr_set_bb_info): Remove.
5683 (df_lr_free_bb_info): Do not free block pool.
5684 (df_lr_alloc): Do not create pool, use check for
5685 obstack presence instead of NULL pointer for new blocks.
5686 (df_lr_free): DO not free alloc pool; clear block_info.
5687 (problem_LR): Add size of block info structure.
5688 (df_live_set_bb_info): Remove.
5689 (df_live_free_bb_info): Do not free block pool.
5690 (df_live_alloc): Do not create pool, use check for
5691 obstack presence instead of NULL pointer for new blocks.
5692 (df_live_free): DO not free alloc pool; clear block_info.
5693 (problem_LIVE): Add size of block info structure.
5694 (problem_CHAIN): Add size of block info structure.
5695 (df_byte_lr_set_bb_info): Remove.
5696 (df_byte_lr_free_bb_info): Do not free block pool.
5697 (df_byte_lr_alloc): Do not create pool, use check for
5698 obstack presence instead of NULL pointer for new blocks.
5699 (df_byte_lr_free): DO not free alloc pool; clear block_info.
5700 (problem_BYTE_LR): Add size of block info structure.
5701 (problem_NOTE): Add size of block info structure.
5702 (df_byte_MD_set_bb_info): Remove.
5703 (df_byte_MD_free_bb_info): Do not free block pool.
5704 (df_byte_MD_alloc): Do not create pool, use check for
5705 obstack presence instead of NULL pointer for new blocks.
5706 (df_byte_MD_free): DO not free alloc pool; clear block_info.
5707 (problem_BD): Add size of block info structure.
5708 * df-scan.c (df_scan_free_internal): Free block pool.
5709 (df_scan_set_bb_info): Remove.
5710 (df_scan_free_bb_info): Check for artificial_defs instead
5711 of bb_info being non-NULL.
5712 (df_scan_alloc): DO not create df_scan_block pool.
5713 (problem_SCAN): Set size of block info.
5714 (df_bb_refs_record): Do not allocate bb_info.
5715 * df.h (df_problem): Add block_info_elt_size.
5716 (struct dataflow): Change block_info to void *.
5717 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5718 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5721 2010-06-12 Jan Hubicka <jh@suse.cz>
5723 PR tree-optimize/44485
5724 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5725 containing use of return value of noreturn function.
5727 2010-06-12 Anatoly Sokolov <aesok@post.ru>
5729 * targhooks.c (default_function_value): Don't use
5730 FUNCTION_OUTGOING_VALUE.
5731 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5732 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5734 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
5736 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5737 Add crtfastmath.o to extra_parts.
5738 * config/mips/crtfastmath.c: New.
5739 * config/mips/linux.h (ENDFILE_SPEC): New.
5741 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
5743 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5744 old_type in parameter.
5745 (gcc_type_for_value): Update call to gcc_type_for_interval.
5746 (compute_type_for_level_1): Renamed compute_type_for_level.
5747 Update call to gcc_type_for_interval.
5749 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5751 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5752 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5754 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5756 * opts-common.c: Include options.h.
5757 (integral_argument): Move from opts.c.
5758 (decode_cmdline_option): New. Based on read_cmdline_option.
5759 * opts.c (integral_argument): Move to opts-common.c.
5760 (read_cmdline_option): Move most contents to
5761 decode_cmdline_option. Use %qs in diagnostics.
5762 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5763 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5764 decode_cmdline_option): New.
5766 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5769 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5770 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5771 (partiysi2_cmp): Ditto.
5772 (*partiyhi2_cmp): Ditto.
5773 (*parityqi2_cmp): Remove.
5775 2010-06-11 Jan Hubicka <jh@suse.cz>
5777 * bitmap.h (bmp_iter_next_bit): New.
5778 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5780 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
5781 Eric Botcazou <ebotcazou@adacore.com>
5783 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5786 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5788 * config/i386/i386.md (unspec): New define_c_enum.
5791 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5793 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5795 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
5798 * tree-if-conv.c (bb_predicate_s): New struct.
5799 (bb_predicate_p): New.
5800 (bb_has_predicate): New.
5801 (bb_predicate): New.
5802 (set_bb_predicate): New.
5803 (bb_predicate_gimplified_stmts): New.
5804 (set_bb_predicate_gimplified_stmts): New.
5805 (add_bb_predicate_gimplified_stmts): New.
5806 (init_bb_predicate): New.
5807 (free_bb_predicate): New.
5808 (is_predicated): Use bb_predicate.
5809 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5810 (predicate_bbs): Same. Gimplify the condition of the basic blocks
5811 before processing their successors.
5812 (clean_predicate_lists): Removed.
5813 (find_phi_replacement_condition): Use bb_predicate.
5814 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
5816 (insert_gimplified_predicates): New.
5817 (combine_blocks): Call insert_gimplified_predicates.
5818 (tree_if_conversion): Call free_bb_predicate instead of
5819 clean_predicate_lists.
5821 2010-10-11 Paul Brook <paul@codesourcery.com>
5823 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5824 * config/arm/arm.c (all_architectures): Change v7e-m default to
5826 * config/arm/arm-cores.def: Add cortex-m4.
5827 * config/arm/arm-tune.md: Regenerate.
5829 2010-06-11 Jan Hubicka <jh@suse.cz>
5831 * ipa-pure-const.c (special_builtlin_state): New function.
5832 (check_call): Use it instead of special casign BUILT_IN_RETURN.
5833 (propagate_pure_const): Use it.
5835 2010-06-11 Jan Hubicka <jh@suse.cz>
5837 * df-problems.c (df_live_scratch): Convert to bitmap_head.
5838 (df_live_alloc): Initialize df_live_scratch when initializing
5840 (df_live_transfer_function): Update uses of df_live_scratch.
5841 (df_live_free): Free problem_data; clear df_live_scratch before
5842 releasing the obstack.
5843 (df_md_free): Free problem data.
5845 2010-06-11 Jan Hubicka <jh@suse.cz>
5847 * doc/invoke.texi (Wsuggest-attribute): Document.
5848 (Wmissing-noreturn): Remove.
5849 * ipa-pure-const.c (warn_function_noreturn): New function.
5850 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5851 warn_missing_noreturn.
5852 * common.opt (Wsuggest-attribute=noreturn): New.
5853 * tree-flow.h (warn_function_noreturn): Declare.
5854 * tree-cfg.c (execute_warn_function_noreturn): Use
5855 warn_function_noreturn.
5856 (gate_warn_function_noreturn): New.
5857 (pass_warn_function_noreturn): Update.
5859 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5861 * c-typeck.c (handle_warn_cast_qual): Add loc
5862 parameter. Improve warning message.
5863 (build_c_cast): Pass location to handle_warn_cast_qual.
5865 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5868 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
5870 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5872 2010-06-10 Dodji Seketeli <dodji@redhat.com>
5874 Fix bootstap on mips
5875 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5878 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
5880 * system.h (helper_const_non_const_cast): New inline for
5882 (CONST_CAST2): For gcc version <= 4.0 use
5883 new helper to do const/non-const casting.
5885 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5887 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5888 * Makefile.in (OBJS-common): Include insn-enums.o.
5889 (insn-enums.o): New rule.
5890 (simple_generated_c): Add insn-enums.c.
5891 (build/genenums.o): New rule.
5892 (genprogmd): Add "enums".
5893 * genconstants.c (print_enum_type): Declare a C string array
5895 * genenums.c: New file.
5896 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5897 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
5898 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5900 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5902 * doc/md.texi (define_enum_attr): Document.
5903 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5904 * read-md.h (lookup_enum_type): Declare.
5905 * read-md.c (lookup_enum_type): New function.
5906 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5907 * genattrtab.c (attr_desc): Add an enum_name field.
5908 (evaluate_eq_attr): Take the associated attribute as argument.
5909 Get the enum prefix from the enum_name field, if defined.
5910 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
5911 (simplify_test_exp): Pass attr to evaluate_eq_attr.
5912 (add_attr_value): New function, split out from...
5913 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
5914 (write_test_expr): Pass attr to evaluate_eq_attr.
5915 (write_attr_get): Use the enum_name as the enum tag, if defined.
5916 (write_attr_valueq): Use the enum_name as a prefix, if defined.
5917 (find_attr): Initialize enum_name.
5918 (main): Handle DEFINE_ENUM_ATTR.
5919 * gensupport.c (process_rtx): Likewise.
5920 * config/mips/mips.h (mips_tune_attr): Delete.
5921 * config/mips/mips.md (cpu): Use define_attr_enum.
5923 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5925 * doc/md.texi (define_c_enum, define_enum): Document.
5926 * read-md.h (md_constant): Add a parent_enum field.
5927 (enum_value, enum_type): New structures.
5928 (upcase_string, traverse_enum_types): Declare.
5929 * read-md.c (enum_types): New variable.
5930 (upcase_string, add_constant): New functions.
5931 (handle_constants): Don't create the hash table here.
5933 (traverse_md_constants): Don't check for a null md_constants.
5934 (decimal_string, handle_enum, traverse_enum_types): New functions.
5935 (read_md_files): Initialize md_constants and md_enums.
5936 * genconstants.c (print_md_constant): Ignore info argument.
5937 Only print constants that belong to no enum.
5938 (print_enum_type): New function.
5939 (main): Don't pass stdout to print_md_constant. Call print_enum_type
5940 for each defined enum type.
5941 * config/mips/mips.md (processor): New define_enum.
5942 (unspec): New define_c_enum.
5943 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5944 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5945 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5946 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5947 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5948 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5949 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5950 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5951 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5952 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5953 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5954 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5955 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5956 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5957 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5958 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5959 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5960 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5961 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5962 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5963 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5964 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5965 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5966 (UNSPEC_RDDSP): Move to mips-dsp.md.
5967 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5968 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5969 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5970 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5971 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5972 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5973 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5974 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5975 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5976 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5977 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5978 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5979 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5980 Moved to mips-dspr2.md.
5981 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5982 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5983 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5984 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5985 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5986 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5987 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5988 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5989 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5990 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5991 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5992 UNSPEC_LOONGSON_PSADBH)
5993 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5994 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5995 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5996 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5997 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5998 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5999 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
6000 (cpu): Update comment.
6001 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
6002 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
6003 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
6004 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
6005 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
6006 UNSPEC_LOONGSON_PCMPEQ)
6007 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
6008 UNSPEC_LOONGSON_PINSR_0)
6009 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6010 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6011 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6012 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6013 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6014 UNSPEC_LOONGSON_PSADBH)
6015 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6016 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6017 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
6018 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6019 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6020 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6021 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
6022 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
6023 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
6024 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
6025 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
6026 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
6027 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
6028 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
6029 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
6030 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
6031 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
6032 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
6033 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
6034 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
6035 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
6036 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
6037 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
6038 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
6039 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
6040 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
6041 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6042 (UNSPEC_RDDSP): Moved from mips.md.
6043 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
6044 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
6045 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
6046 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
6047 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
6048 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
6049 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
6050 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
6051 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
6052 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
6053 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
6054 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
6055 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
6056 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
6057 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
6058 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
6059 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
6060 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
6061 (UNSPEC_SCC): Moved from mips.md.
6062 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
6063 "processor_type" to "processor".
6064 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
6065 * config/mips/mips.h (processor_type): Delete.
6066 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
6067 "processor_type" to "processor".
6069 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6071 * configure.ac (tm_include_list): Add insn-constants.h.
6072 * configure: Regenerate.
6073 * Makefile.in (GTM_H): Move insn-constants.h here from...
6075 * mkconfig.sh: Remove special handling for insn-constants.h.
6077 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6079 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
6080 (BUILD_MD): ...this new variable.
6081 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
6082 that include the old contents of simple_generated_h and
6084 (simple_generated_h, simple_generated_c): Include them. Add
6086 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
6087 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
6088 Remove these dependencies from the main rule and include
6089 insn-conditions.md in the command line only if it appears
6090 in the dependency list.
6091 (insn-constants.h, s-constants): Delete.
6092 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
6094 (build/genmddeps.o): Likewise.
6095 (genprogrtl): New variable that contains everything from genprogmd
6096 except mddeps and constants.
6097 (genprogmd): Redefine in terms of genprogrtl. Make these programs
6098 depend on $(BUILD_MD)
6099 (genprog): New variable. Make these programs depend on
6101 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
6102 (main): Use read_md_files instead of init_rtx_reader_args.
6103 * genconstants.c: As for genmddeps.c.
6104 * read-md.h (read_skip_construct): Declare.
6105 * read-md.c (read_skip_construct): New function.
6106 (handle_file): Allow a null handle_directive, skipping the
6108 (parse_include): Update the comment accordingly.
6110 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6112 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
6113 * genmddeps.c: Include read-md.h.
6114 (main): Call init_rtx_reader_args instead of init_md_reader_args.
6115 * genattr.c (main): Likewise.
6116 * genattrtab.c (main): Likewise.
6117 * genautomata.c (main): Likewise.
6118 * gencodes.c (main): Likewise.
6119 * genconditions.c (main): Likewise.
6120 * genconfig.c (main): Likewise.
6121 * genconstants.c (main): Likewise.
6122 * genemit.c (main): Likewise.
6123 * genextract.c (main): Likewise.
6124 * genflags.c (main): Likewise.
6125 * genopinit.c (main): Likewise.
6126 * genoutput.c (main): Likewise.
6127 * genpeep.c (main): Likewise.
6128 * genrecog.c (main): Likewise.
6129 * genpreds.c (main): Likewise.
6130 * gensupport.h (in_fname): Move to read-md.h.
6131 (init_md_reader_args_cb): Rename to...
6132 (init_rtx_reader_args_cb): ...this and return a bool.
6133 (init_md_reader_args): Rename to...
6134 (init_rtx_reader_args): ...this and return a bool.
6135 (include_callback): Move to read-md.h.
6136 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
6137 (file_name_list, first_dir_md_include): Move to read-md.c
6138 (first_bracket_include): Delete unused variable.
6139 (last_dir_md_include): Move to read-md.c.
6140 (process_include): Delete, moving code to read-md.c:handle_include.
6141 (process_rtx): Don't handle INCLUDE.
6142 (save_string): Delete.
6143 (rtx_handle_directive): New function.
6144 (init_md_reader_args_cb): Rename to...
6145 (init_rtx_reader_args_cb): ...this and return a boolean success value.
6147 (init_md_reader_args): Rename to...
6148 (init_rtx_reader_args): ...this and return a boolean success value.
6149 * rtl.def (INCLUDE): Delete.
6150 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
6152 * read-rtl.c (read_conditions): Don't gobble ')' here.
6153 (read_mapping): Likewise.
6154 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
6155 Handle top-level non-rtx constructs here rather than in read_rtx_1.
6156 Store the whole queue in *X. Remove call to init_md_reader.
6157 (read_rtx_1): Rename to...
6158 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
6159 Don't handle top-level non-rtx constructs here. Don't handle (nil)
6161 (read_nested_rtx): New function. Handle (nil) here rather than
6163 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
6165 * read-md.h (directive_handler_t): New type.
6166 (in_fname, include_callback): Moved from read-md.h.
6167 (read_constants, init_md_reader): Delete.
6168 (read_md_files): Declare.
6169 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
6170 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
6172 (read_constants): Rename to...
6173 (handle_constants): ...this. Don't gobble ')' here.
6174 (handle_include, handle_file, handle_toplevel_file)
6175 (parse_include): New functions, mostly taken from gensupport.c.
6176 (init_md_reader): Subsume into...
6177 (read_md_files): ...this new function.
6179 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6181 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
6182 (unread_char): Decrement read_md_lineno after putting back '\n'.
6183 * read-md.c (fatal_with_file_and_line): Push back any characters
6184 that we decide not to add to the context.
6185 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
6186 fatal_expected_char in cases where '/' ends a line (for example).
6187 (read_name): Don't increment read_md_lineno here.
6188 (read_escape): Likewise.
6189 (read_quoted_string): Likewise.
6190 (read_braced_string): Likewise.
6192 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6194 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
6195 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
6196 * genconstants.c: Include read-md.h.
6197 * read-rtl.c (md_constants): Move to read-md.c.
6198 (md_name): Move to read-md.h.
6199 (initialize_iterators): Use leading_string_hash instead of def_hash
6200 and leading_string_eq_p instead of def_name_eq_p.
6201 (read_name): Move to read-md.c.
6202 (def_hash, def_name_eq_p): Delete.
6203 (read_constants, traverse_md_constants): Move to read-md.c.
6204 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
6205 * read-md.h: Include hashtab.h.
6206 (md_name): Moved from read-rtl.c.
6207 (md_constant): Moved from read-md.h.
6208 (leading_string_hash, leading_string_eq_p, read_name)
6209 (read_constants, traverse_md_constants): Declare.
6210 * read-md.c (md_constants): Moved from read-rtl.c.
6211 (leading_string_hash, leading_string_eq_p): New functions.
6212 (read_name, read_constants, traverse_md_constants): Moved from
6215 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6217 * read-rtl.c (md_name): New structure.
6218 (read_name): Take an md_name instead of a buffer pointer.
6219 Use the "string" field instead of strcpy when expanding constants.
6220 (read_constants): Remove the tmp_char argument. Update the calls
6221 to read_name, using two local name buffers instead of the tmp_char
6222 argument. Merge the constant-creation code.
6223 (read_conditions): Remove the tmp_char argument. Update the calls
6224 to read_name, using a local name buffer instead of the tmp_char
6226 (read_mapping): Replace tmp_char variable with a local name buffer.
6227 Update the calls to read_name.
6228 (read_rtx_1): Likewise. Update the calls to read_constants and
6231 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6233 * Makefile.in (build/read-md.o): Depend on errors.h.
6234 * read-md.h (error_with_line): Declare.
6235 * read-md.c: Include errors.h.
6236 (message_with_line_1): New function, extracted from...
6237 (message_with_line): ...here.
6238 (error_with_line): New function.
6239 * genattrtab.c: If a call to message_with_line is followed by
6240 "have_error = 1;", replace both statements with a call to
6242 * genoutput.c: Likewise.
6243 * genpreds.c: Likewise.
6244 * genrecog.c: If a call to message_with_line is followed by
6245 "error_count++;", replace both statements with a call to
6247 (errorcount): Delete.
6248 (main): Don't check it.
6249 * gensupport.c: If a call to message_with_line is followed by
6250 "errors = 1;", replace both statements with a call to error_with_line.
6252 (process_define_cond_exec): Check have_error instead of errors.
6253 (init_md_reader_args_cb): Likewise. Don't set errors.
6255 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6257 * read-md.h (read_md_file): Declare.
6258 (read_char, unread_char): New functions.
6259 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6260 (read_quoted_string, read_string): Remove FILE * argument.
6261 * read-md.c (read_md_file): New variable.
6262 (read_md_filename, read_md_lineno): Update comments and remove
6263 unnecessary initialization.
6264 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6265 (read_escape, read_quoted_string, read_braced_string, read_string):
6266 Remove FILE * argument. Update calls accordingly, using read_char
6267 and unread_char instead of getc and ungetc.
6268 * rtl.h (read_rtx): Remove FILE * argument.
6269 * read-rtl.c (iterator_group): Remove FILE * argument from
6271 (iterator_traverse_data): Remove "infile" field.
6272 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
6273 (add_mapping, read_name, read_constants, read_conditions)
6274 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
6275 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
6276 Remove file arguments from all calls, using read_char and unread_char
6277 instead of getc and ungetc.
6278 * gensupport.c (process_include): Preserve read_md_file around
6279 the include. Set read_md_file to the handle of the included file.
6280 Update call to read_rtx.
6281 (init_md_reader_args_cb): Set read_md_file to the handle of the file
6282 and remove local FILE *. Update calls to read_rtx.
6284 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6286 * read-md.h (read_rtx_lineno): Rename to...
6287 (read_md_lineno): ...this.
6288 (read_rtx_filename): Rename to...
6289 (read_md_filename): ...this.
6290 (copy_rtx_ptr_loc): Rename to...
6291 (copy_md_ptr_loc): ...this.
6292 (print_rtx_ptr_loc): Rename to...
6293 (print_md_ptr_loc): ...this.
6294 * read-md.c: Likewise. Update references after renaming.
6295 (string_obstack): Replace RTL with MD in comment.
6296 (set_rtx_ptr_loc): Rename to...
6297 (set_md_ptr_loc): ...this.
6298 (get_rtx_ptr_loc): Rename to...
6299 (get_md_ptr_loc): ...this.
6300 * genconditions.c: Update references after renaming.
6301 * genemit.c: Likewise.
6302 * genoutput.c: Likewise.
6303 * genpreds.c: Likewise.
6304 * gensupport.c: Likewise.
6305 * read-rtl.c: Likewise.
6307 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6309 * Makefile.in (READ_MD_H): New variable.
6310 (BUILD_RTL): Add build/read-md.o.
6311 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
6312 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
6313 (build/genattrtab.o, build/genconditions.o build/genemit.o)
6314 (build/genextract.o, build/genflags.o, build/genoutput.o)
6315 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
6316 (build/read-md.o): New rule.
6317 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
6318 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
6319 * coretypes.h: ...here.
6320 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
6321 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
6322 * genattr.c: Include read-md.h.
6323 * genattrtab.c: Likewise.
6324 * genconditions.c: Likewise.
6325 * genemit.c: Likewise.
6326 * genextract.c: Likewise.
6327 * genflags.c: Likewise.
6328 * genoutput.c: Likewise.
6329 * genpreds.c: Likewise.
6330 * genrecog.c: Likewise.
6331 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6332 (join_c_conditions, print_c_condition, read_rtx_filename)
6333 (read_rtx_lineno): Move to read-md.h.
6334 * read-rtl.c: Include read-md.h.
6335 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6336 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6337 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
6338 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
6339 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6340 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
6341 (read_braced_string, read_string): Move to read-md.c.
6342 (read_rtx): Move some initialization to init_md_reader and call
6343 init_md_reader here.
6344 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
6346 * gensupport.c: Include read-md.h.
6347 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
6348 * read-md.h, read-md.c: New files.
6350 2010-06-10 Anatoly Sokolov <aesok@post.ru>
6352 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6353 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6354 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
6355 * config/moxie/moxie.c (moxie_function_value): Make static.
6356 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
6357 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6359 2010-06-10 Martin Jambor <mjambor@suse.cz>
6361 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
6362 * dbgcnt.def (tree_sra): New counter.
6363 * tree-sra.c: Include dbgcnt.h.
6364 (gate_intra_sra): Check tree_sra debug counter.
6366 2010-06-10 Martin Jambor <mjambor@suse.cz>
6368 PR tree-optimization/44258
6369 * tree-sra.c (build_access_subtree): Return false iff there is a
6371 (build_access_trees): Likewise.
6372 (analyze_all_variable_accesses): Disqualify candidates if
6373 build_access_trees returns true for them.
6375 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
6378 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
6379 tail-recurse into canonical node. Fast-forward over
6380 non-canonical VALUEs.
6382 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
6385 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
6386 (*addsi_1_zext) <TYPE_LEA>: Likewise.
6387 (add lea splitter): Likewise.
6388 (add_zext lea splitter): Likewise.
6390 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6392 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
6394 2010-06-10 Jan Hubicka <jh@suse.cz>
6396 * df-problems.c (df_live_problem_data): Add live_bitmaps.
6397 (df_live_alloc): Initialize problem data and live_osbtacks.
6398 (df_live_finalize): Remove obstack, problem data; do not
6400 (df_live_top_dump, df_live_bottom_dump): Do not dump old
6401 data when not allocated.
6402 (df_live_verify_solution_start): Do not allocate problem data.
6403 (df_live_verify_solution_end): Check if out is allocated.
6404 (struct df_md_problem_data): New structure.
6405 (df_md_alloc): Allocate problem data.
6406 (df_md_free): Free problem data; do not clear bitmaps.
6408 2010-06-10 Jan Beulich <jbeulich@novell.com>
6411 * configure.ac: Replace $() with ${} when intending to expand
6412 variables rather than invoking commands.
6413 * configure: Re-generate.
6415 2010-06-10 Jan Hubicka <jh@suse.cz>
6417 PR rtl-optimization/44460
6418 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6419 TYPE_NEEDS_CONSTRUCTING sanity check.
6421 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
6423 * doc/include/fdl.texi: Move to GFDL version 1.3.
6425 * doc/cpp.texi: Move to GFDL version 1.3.
6426 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
6427 * doc/gccint.texi: Move to GFDL version 1.3.
6428 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
6429 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
6430 * doc/invoke.texi: Move to GFDL version 1.3.
6432 2010-06-09 Jan Hubicka <jh@suse.cz>
6434 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
6436 (propagate) ... here; swap the order.
6438 2010-06-09 Jan Hubicka <jh@suse.cz>
6440 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
6441 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
6442 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
6443 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
6445 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6447 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
6448 Do not the gather memory reference in the outer loop if the step
6451 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6453 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
6454 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
6455 8 to 4. Minor change of the related comments.
6457 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6459 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
6460 the scev analysis when the variable is not used outside the loop
6461 in a close phi node: call compute_overall_effect_of_inner_loop.
6463 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6465 * graphite-sese-to-poly.c (single_pred_cond): Renamed
6466 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
6467 (build_sese_conditions_before): Renamed call to single_pred_cond.
6468 (build_sese_conditions_after): Same.
6470 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6472 * graphite-poly.h: Fix comments and indentation.
6473 * graphite-sese-to-poly.c: Same.
6474 (build_sese_conditions_before): Compute stmt and gbb only when needed.
6475 * tree-chrec.c: Fix comments and indentation.
6476 (tree-ssa-loop-niter.c): Same.
6478 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
6480 PR rtl-optimization/42461
6481 * dce.c (deletable_insn_p): Return true for const or pure calls again.
6482 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
6484 2010-06-09 Jan Hubicka <jh@suse.cz>
6486 * bitmap.c (bitmap_and): Walk array forward.
6487 (bitmap_and_compl_into): Likewise.
6488 (bitmap_xor): Likewise.
6489 (bitmap_xor_into): Likewise.
6490 (bitmap_equal_p): Likewise.
6491 (bitmap_intersect_p): Likewise.
6492 (bitmap_intersect_compl_p): Likewise.
6493 (bitmap_ior_and_into): Likewise.
6494 (bitmap_elt_copy): Likewise.
6495 (bitmap_and_compl): Likewise.
6496 (bitmap_elt_ior): Likewise.
6498 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
6500 * opts-common.c (prune_options): Ensure replacement argv array
6501 is correctly terminated by a NULL entry.
6503 2010-06-09 Jan Hubicka <jh@suse.cz>
6505 * cgraph.h (varpool_first_static_initializer,
6506 varpool_next_static_initializer): Make checking only when
6508 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
6509 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
6510 gcc_assert to gcc_checking_assert.
6511 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
6512 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
6513 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
6514 op_iter_init_phiuse, op_iter_init_phidef,
6515 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
6516 gcc_checking_assert.
6517 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
6518 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
6519 partition_is_global, live_on_entry, live_on_exit,
6520 live_merge_and_clear): Likewise.
6521 * system.h (gcc_checking_assert): New macro.
6522 * gimple.h (set_bb_seq): Use gcc_checking_assert.
6524 2010-06-09 Jason Merrill <jason@redhat.com>
6526 * Makefile.in (TAGS): Collect tags info from c-family.
6528 2010-06-09 Jan Hubicka <jh@suse.cz>
6530 * gimple.h (gcc_gimple_checking_assert): New macro.
6531 (gimple_set_def_ops, gimple_set_use_ops,
6532 gimple_set_vuse, gimple_set_vdef,
6533 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
6534 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
6535 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
6536 gimple_asm_output_op, gimple_asm_output_op_ptr,
6537 gimple_asm_set_output_op, gimple_asm_clobber_op,
6538 gimple_asm_set_clobber_op, gimple_asm_label_op,
6539 gimple_asm_set_label_op, gimple_try_set_kind,
6540 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
6541 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
6542 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
6543 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
6544 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
6545 gimple_omp_for_set_initial, gimple_omp_for_final,
6546 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
6547 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
6548 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
6549 conditional with ENABLE_GIMPLE_CHECKING.
6550 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
6552 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
6554 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
6555 (get_computation_cost_at): Use it.
6556 (determine_use_iv_cost_condition): Likewise.
6557 (determine_iv_cost): Likewise.
6559 2010-06-09 Richard Guenther <rguenther@suse.de>
6561 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
6564 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
6566 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
6568 2010-06-09 Martin Jambor <mjambor@suse.cz>
6570 PR tree-optimization/44423
6571 * tree-sra.c (dump_access): Dump also grp_assignment_read.
6572 (analyze_access_subtree): Pass negative allow_replacements to children
6573 if the current type is scalar.
6575 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6578 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
6579 * doc/plugins.texi (Plugin license check): Update information
6580 on type of plugin_is_GPL_compatible.
6581 * Makefile.in (PLUGINCC): Define as $(COMPILER).
6582 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
6584 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
6586 * config/arm/arm.c (thumb2_reorg): New function.
6587 (arm_reorg): Call it.
6588 * config/arm/thumb2.md (define_peephole2 for flag clobbering
6589 arithmetic operations): Delete.
6591 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
6594 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
6597 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6600 * gcc-plugin.h: Encapsulate all declarations in extern "C".
6602 2010-06-08 Jan Hubicka <jh@suse.cz>
6604 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
6605 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
6607 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
6609 PR tree-optimization/39874
6611 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
6613 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
6614 same_bool_result_p): New.
6615 (and_var_with_comparison, and_var_with_comparison_1,
6616 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
6617 (or_var_with_comparison, or_var_with_comparison_1,
6618 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
6619 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
6620 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
6621 of combine_comparisons.
6622 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
6624 2010-06-08 Anatoly Sokolov <aesok@post.ru>
6626 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6627 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6628 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
6629 pdp11_function_value_regno_p): New functions.
6630 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6631 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6633 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
6635 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
6636 Thumb-2 in the MINUS case.
6638 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6640 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
6642 * doc/gty.texi (GTY Options): Document typed GC allocation and
6643 variable_size GTY option.
6645 * ggc-internal.h: New.
6647 * ggc.h: Update copyright year.
6648 (digit_string): Move to stringpool.c.
6649 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6650 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6651 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6652 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6653 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6654 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6655 (ggc_force_collect, ggc_get_size, ggc_statistics)
6656 (ggc_print_common_statistics): Move to ggc-internal.h.
6657 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6658 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6659 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6660 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6661 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6662 (ggc_alloc_zone_pass_stat): Remove.
6663 (ggc_internal_alloc_stat, ggc_internal_alloc)
6664 (ggc_internal_cleared_alloc_stat): New.
6665 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6666 (ggc_internal_vec_alloc_stat)
6667 (ggc_internal_cleared_vec_alloc_stat)
6668 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6669 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6670 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6671 (ggc_cleared_alloc_ptr_array_two_args): New.
6672 (htab_create_ggc, splay_tree_new_ggc): Redefine.
6673 (ggc_splay_alloc): Change the type of the first argument to
6675 (ggc_alloc_string): Make macro.
6676 (ggc_alloc_string_stat): New.
6677 (ggc_strdup): Redefine.
6678 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6679 (ggc_alloc_rtvec_sized): New.
6680 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6681 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6682 (ggc_internal_cleared_alloc_zone_stat)
6683 (ggc_internal_zone_alloc_stat)
6684 (ggc_internal_zone_cleared_alloc_stat)
6685 (ggc_internal_zone_vec_alloc_stat)
6686 (ggc_alloc_zone_rtx_def_stat)
6687 (ggc_alloc_zone_tree_node_stat)
6688 (ggc_alloc_zone_cleared_tree_node_stat)
6689 (ggc_alloc_cleared_gimple_statement_d_stat): New.
6691 * ggc-common.c: Include ggc-internal.h.
6692 (ggc_internal_cleared_alloc_stat): Rename from
6693 ggc_alloc_cleared_stat.
6694 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6695 (ggc_calloc): Remove.
6696 (ggc_cleared_alloc_htab_ignore_args): New.
6697 (ggc_cleared_alloc_ptr_array_two_args): New.
6698 (ggc_splay_alloc): Add obj_type parameter.
6699 (init_ggc_heuristics): Formatting fixes.
6701 * ggc-none.c: Update copyright year.
6702 (ggc_alloc_stat): Rename to ggc_alloc_stat.
6703 (ggc_alloc_cleared_stat): Rename to
6704 ggc_internal_cleared_alloc_stat.
6705 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6707 * ggc-page.c: Update copyright year. Include ggc-internal.h.
6708 Remove references to ggc_alloc in comments.
6709 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6710 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6711 (new_ggc_zone, destroy_ggc_zone): Remove.
6712 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6714 * ggc-zone.c: Include ggc-internal.h. Remove references to
6715 ggc_alloc in comments.
6716 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6717 (ggc_internal_alloc_zone_pass_stat): New.
6718 (ggc_internal_cleared_alloc_zone_stat): New.
6719 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6720 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6721 (new_ggc_zone, destroy_ggc_zone): Remove.
6723 * stringpool.c: Update copyright year. Include ggc-internal.h
6724 (digit_vector): Make static.
6725 (digit_string): Moved from ggc.h.
6726 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6727 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6729 * Makefile.in (GGC_INTERNAL_H): New.
6730 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6731 $(GGC_INTERNAL_H) to dependencies.
6733 * gentype.c: Update copyright year.
6734 (walk_type): Accept variable_size GTY option.
6735 (USED_BY_TYPED_GC_P): New macro.
6736 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
6737 whitespace at the end of strings.
6738 (get_type_specifier, variable_size_p): New functions.
6739 (alloc_quantity, alloc_zone): New enums.
6740 (write_typed_alloc_def): New function.
6741 (write_typed_struct_alloc_def): Likewise.
6742 (write_typed_typed_typedef_alloc_def): Likewise.
6743 (write_typed_alloc_defns): Likewise.
6744 (output_typename, write_splay_tree_allocator_def): Likewise.
6745 (write_splay_tree_allocators): Likewise.
6746 (main): Call write_typed_alloc_defns and
6747 write_splay_tree_allocators.
6749 * lto-streamer.h (lto_file_decl_data_ptr): New.
6751 * passes.c (order): Define using cgraph_node_ptr.
6753 * strinpool.c (struct string_pool_data): Declare nested_ptr using
6756 * gimple.h (union gimple_statement_d): Likewise.
6758 * rtl.h (struct rtx_def): Likewise.
6759 (struct rtvec_def): Likewise.
6761 * tree.h (union tree_node): Likewise.
6763 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6765 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6767 * tree-scalar-evolution.c (scev_initialize): Likewise.
6769 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6771 * dwarf2asm.c (dw2_force_const_mem): Likewise.
6773 * omp-low.c (lower_omp_critical): Likewise.
6775 * bitmap.h (struct bitmap_head_def): Update comment to not
6776 reference ggc_alloc.
6778 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6780 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6782 * ipa-prop.c (duplicate_ggc_array): Rename to
6783 duplicate_ipa_jump_func_array. Use typed GC allocation.
6784 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6786 * gimple.c (gimple_alloc_stat): Use
6787 ggc_alloc_cleared_gimple_statement_d_stat.
6789 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6791 * tree.c (make_node_stat): Use
6792 ggc_alloc_zone_cleared_tree_node_stat.
6793 (make_tree_vec_stat): Likewise.
6794 (build_vl_exp_stat): Likewise.
6795 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6796 (make_tree_binfo_stat): Likewise.
6797 (tree_cons_stat): Likewise.
6799 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6800 (shallow_copy_rtx_stat): Likewise.
6801 (make_node_stat): Likewise.
6803 * lto-symtab.c: Fix comment.
6805 * tree-cfg.c (create_bb): Update comment to not reference
6807 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6809 * varpool.c (varpool_node): Use typed GC allocation.
6810 (varpool_extra_name_alias): Likewise.
6812 * varasm.c (emutls_decl): Likewise.
6813 (get_unnamed_section): Likewise.
6814 (get_noswitch_section): Likewise.
6815 (get_section): Likewise.
6816 (get_block_for_section): Likewise.
6817 (build_constant_desc): Likewise.
6818 (create_constant_pool): Likewise.
6819 (force_const_mem): Likewise.
6821 * tree.c (build_vl_exp_stat): Likewise.
6822 (build_real): Likewise.
6823 (build_string): Likewise.
6824 (decl_debug_expr_insert): Likewise.
6825 (decl_value_expr_insert): Likewise.
6826 (type_hash_add): Likewise.
6827 (build_omp_clause): Likewise.
6829 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6831 * tree-ssa.c (init_tree_ssa): Likewise.
6833 * tree-ssa-structalias.c (heapvar_insert): Likewise.
6835 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6837 * tree-ssa-loop-niter.c (record_estimate): Likewise.
6839 * tree-ssa-alias.c (get_ptr_info): Likewise.
6841 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6843 * tree-phinodes.c (allocate_phi_node): Likewise.
6845 * tree-iterator.c (tsi_link_before): Likewise.
6846 (tsi_link_after): Likewise.
6848 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6850 * tree-dfa.c (create_var_ann): Likewise.
6852 * tree-cfg.c (create_bb): Likewise.
6854 * toplev.c (alloc_for_identifier_to_locale): Likewise.
6855 (general_init): Likewise.
6857 * stringpool.c (stringpool_ggc_alloc): Likewise.
6858 (gt_pch_save_stringpool): Likewise.
6860 * sese.c (if_region_set_false_region): Likewise.
6862 * passes.c (do_per_function_toporder): Likewise.
6864 * optabs.c (set_optab_libfunc): Likewise.
6865 (set_conv_libfunc): Likewise.
6867 * lto-symtab.c (lto_symtab_register_decl): Likewise.
6869 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6870 (input_eh_region): Likewise.
6871 (input_eh_lp): Likewise.
6872 (make_new_block): Likewise.
6873 (unpack_ts_real_cst_value_fields): Likewise.
6875 * lto-section-in.c (lto_new_in_decl_state): Likewise.
6877 * lto-cgraph.c (input_node_opt_summary): Likewise.
6879 * loop-init.c (loop_optimizer_init): Likewise.
6881 * lambda.h (lambda_vector_new): Likewise.
6883 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6885 * ira.c (update_equiv_regs): Likewise.
6887 * ipa.c (cgraph_node_set_new): Likewise.
6888 (cgraph_node_set_add): Likewise.
6889 (varpool_node_set_new): Likewise.
6890 (varpool_node_set_add): Likewise.
6892 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6893 (duplicate_ipa_jump_func_array): Likewise.
6894 (ipa_read_node_info): Likewise.
6896 * ipa-cp.c (ipcp_create_replace_map): Likewise.
6898 * integrate.c (get_hard_reg_initial_val): Likewise.
6900 * gimple.c (gimple_alloc_stat): Likewise.
6901 (gimple_build_omp_for): Likewise.
6902 (gimple_seq_alloc): Likewise.
6903 (gimple_copy): Likewise.
6905 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6906 (gsi_insert_after_without_update): Likewise.
6908 * function.c (add_frame_space): Likewise.
6909 (insert_temp_slot_address): Likewise.
6910 (assign_stack_temp_for_type): Likewise.
6911 (allocate_struct_function): Likewise.
6912 (types_used_by_var_decl_insert): Likewise.
6914 * except.c (init_eh_for_function): Likewise.
6915 (gen_eh_region): Likewise.
6916 (gen_eh_region_catch): Likewise.
6917 (gen_eh_landing_pad): Likewise.
6918 (add_call_site): Likewise.
6920 * emit-rtl.c (get_mem_attrs): Likewise.
6921 (get_reg_attrs): Likewise.
6922 (start_sequence): Likewise.
6923 (init_emit): Likewise.
6925 * dwarf2out.c (new_cfi): Likewise.
6926 (queue_reg_save): Likewise.
6927 (dwarf2out_frame_init): Likewise.
6928 (new_loc_descr): Likewise.
6929 (find_AT_string): Likewise.
6930 (new_die): Likewise.
6931 (add_var_loc_to_decl): Likewise.
6932 (clone_die): Likewise.
6933 (clone_as_declaration): Likewise.
6934 (break_out_comdat_types): Likewise.
6935 (new_loc_list): Likewise.
6936 (loc_descriptor): Likewise.
6937 (add_loc_descr_to_each): Likewise.
6938 (add_const_value_attribute): Likewise.
6939 (tree_add_const_value_attribute): Likewise.
6940 (add_comp_dir_attribute): Likewise.
6941 (add_name_and_src_coords_attributes): Likewise.
6942 (lookup_filename): Likewise.
6943 (store_vcall_insn): Likewise.
6944 (dwarf2out_init): Likewise.
6946 * dbxout.c (dbxout_init): Likewise.
6948 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6950 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6952 * config/score/score7.c (score7_output_external): Likewise.
6954 * config/score/score3.c (score3_output_external): Likewise.
6956 * config/s390/s390.c (s390_init_machine_status): Likewise.
6958 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6959 (rs6000_init_machine_status): Likewise.
6960 (output_toc): Likewise.
6962 * config/pa/pa.c (pa_init_machine_status): Likewise.
6963 (get_deferred_plabel): Likewise.
6965 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6967 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6969 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6971 * config/mep/mep.c (mep_init_machine_status): Likewise.
6972 (mep_note_pragma_flag): Likewise.
6974 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6976 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6978 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6980 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6981 (i386_pe_maybe_record_exported_symbol): Likewise.
6983 * config/i386/i386.c (get_dllimport_decl): Likewise.
6984 (ix86_init_machine_status): Likewise.
6985 (assign_386_stack_local): Likewise.
6987 * config/frv/frv.c (frv_init_machine_status): Likewise.
6989 * config/darwin.c (machopic_indirection_name): Likewise.
6991 * config/cris/cris.c (cris_init_machine_status): Likewise.
6993 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6995 * config/avr/avr.c (avr_init_machine_status): Likewise.
6997 * config/arm/arm.c (arm_init_machine_status): Likewise.
6999 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
7000 (alpha_need_linkage): Likewise.
7001 (alpha_use_linkage): Likewise.
7003 * cgraph.c (cgraph_allocate_node): Likewise.
7004 (cgraph_create_edge_1): Likewise.
7005 (cgraph_create_indirect_edge): Likewise.
7006 (cgraph_add_asm_node): Likewise.
7008 * cfgrtl.c (init_rtl_bb_info): Likewise.
7010 * cfgloop.c (alloc_loop): Likewise.
7011 (rescan_loop_exit): Likewise.
7013 * cfg.c (init_flow): Likewise.
7014 (alloc_block): Likewise.
7015 (unchecked_make_edge): Likewise.
7017 * c-parser.c (c_parse_init): Likewise.
7018 (c_parse_file): Likewise.
7020 * c-decl.c (bind): Likewise.
7021 (record_inline_static): Likewise.
7022 (push_scope): Likewise.
7023 (make_label): Likewise.
7024 (lookup_label_for_goto): Likewise.
7025 (finish_struct): Likewise.
7026 (finish_enum): Likewise.
7027 (c_push_function_context): Likewise.
7029 * bitmap.c (bitmap_element_allocate): Likewise.
7030 (bitmap_gc_alloc_stat): Likewise.
7032 * alias.c (record_alias_subset): Likewise.
7033 (init_alias_analysis): Likewise.
7035 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
7037 * fold-const.c (fold_comparison): Remove redundant parenthesis.
7038 * tree-inline.c (expand_call_inline): Pass translated return value of
7039 cgraph_inline_failed_string to diagnostic function.
7041 2010-06-08 Andrew Pinski <pinskia@gmail.com>
7042 Shujing Zhao <pearly.zhao@oracle.com>
7045 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
7046 implicit bad conversions is initialization.
7047 (error_init): Use gmsgid instead of msgid for argument name and change
7049 (pedwarn_init): Use gmsgid instead of msgid for argument name and
7050 change the call for pedwarn.
7051 (warning_init): Use gmsgid instead of msgid for argument name and
7052 change the call for warning.
7054 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
7056 * config/mips/mips-protos.h (mips_print_operand): Delete.
7057 (mips_print_operand_address): Delete.
7058 * config/mips/mips.h (mips_print_operand_punct): Delete.
7059 (PRINT_OPERAND): Delete.
7060 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7061 (PRINT_OPERAND_ADDRESS): Delete.
7062 * config/mips/mips.c (mips_print_operand_punct): Make static.
7063 (mips_print_operand_address): Make static.
7064 (mips_print_operand): Make static. Call
7065 mips_print_operand_punct_valid_p.
7066 (mips_print_operand_punct_valid_p): New function.
7067 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7068 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7070 2010-06-07 Jan Hubicka <jh@suse.cz>
7073 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
7076 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
7078 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
7081 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7083 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7084 attributes): Document gas.
7086 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
7088 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
7089 <TYPE_LEA>: Split instruction.
7090 <default>: Remove alternative 2 handling.
7091 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
7092 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
7093 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
7095 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
7096 (ashift_zext lea splitter): Use DImode for multiplication.
7098 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
7099 to generate addition.
7101 2010-06-07 Joseph Myers <joseph@codesourcery.com>
7103 * common.opt (fira-verbose): Use Var.
7104 (fpcc-struct-return): Use Init instead of VarExists.
7105 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
7107 * flags.h (flag_signed_char, flag_short_enums,
7108 flag_pcc_struct_return, flag_ira_verbose,
7109 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
7110 * toplev.c (flag_detailed_statistics, flag_signed_char,
7111 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
7112 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
7113 * toplev.h (flag_crossjumping, flag_if_conversion,
7114 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
7115 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
7116 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
7117 flag_cprop_registers, time_report, flag_ira_loop_pressure,
7118 flag_ira_coalesce, flag_ira_move_spills,
7119 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
7121 2010-06-07 Jan Hubicka <jh@suse.cz>
7123 * df-core.c (df_analyze_problem): Do verification after allocation.
7125 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
7126 (df_lr_alloc): Initialize problem data; move bitmaps to
7128 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
7129 (df_lr_verify_solution_start): Do not initialize problem data;
7130 allocate bitmaps in lr_bitmaps.
7131 (df_lr_verify_solution_end): Do not free problem data.
7133 2010-06-07 Jan Hubicka <jh@suse.cz>
7135 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
7136 if caller is noreturn.
7137 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
7138 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
7139 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
7140 * ipa-pure-const.c (check_decl): Add IPA parameter.
7141 (state_from_flags): New function.
7142 (better_state, worse_state): New functions.
7143 (check_call): When in IPA mode, do not care about callees.
7144 (check_load, check_store): Update.
7145 (check_ipa_load, check_ipa_store): New.
7146 (check_stmt): When in IPA mode, use IPA checkers.
7147 (analyze_function): Use state_from_flags.
7148 (propagate): Check indirect edges and references.
7150 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
7152 PR rtl-optimization/44404
7153 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
7154 of count_occurrences to see if it's safe to modify mem_insn.
7156 2010-06-07 Richard Guenther <rguenther@suse.de>
7158 * gimplify.c (gimplify_cleanup_point_expr): For empty body
7159 and EH-only cleanup drop the cleanup instead of inserting it
7162 2010-06-07 Ira Rosen <irar@il.ibm.com>
7164 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
7166 * targhooks.c (default_builtin_vectorization_cost): New function.
7167 * targhooks.h (default_builtin_vectorization_cost): Declare.
7168 * target.h (enum vect_cost_for_stmt): Define.
7169 (builtin_vectorization_cost): Change argument and comment.
7170 * tree-vectorizer.h: Remove cost model macros.
7171 * tree-vect-loop.c: Include target.h.
7172 (vect_get_cost): New function.
7173 (vect_estimate_min_profitable_iters): Replace cost model macros with
7174 calls to vect_get_cost.
7175 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
7176 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
7177 default implementation.
7178 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
7179 calls to target hook builtin_vectorization_cost.
7180 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
7182 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
7183 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
7184 implementation to return costs.
7185 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7186 * config/spu/spu.h: Remove vectorizer cost model macros.
7187 * config/i386/i386.h: Likewise.
7188 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
7189 a call to target hook builtin_vectorization_cost.
7191 2010-06-06 Sriraman Tallam <tmsriram@google.com>
7194 * config/i386/i386.c (override_options): Turn zee pass on for level 2
7195 and above and defer till target is known.
7196 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
7199 2010-05-25 Jan Hubicka <jh@suse.cz>
7201 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
7202 (df_compact_blocks): Likewise.
7203 * df.h (struct df): Turn hardware_regs_used,
7204 regular_block_artificial_uses, eh_block_artificial_uses,
7205 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
7207 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
7208 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
7209 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
7210 df_scan_blocks, df_insn_delete, df_insn_rescan,
7211 df_insn_rescan_debug_internal, df_insn_rescan_all,
7212 df_process_deferred_rescans, df_process_deferred_rescans,
7213 df_notes_rescan, df_get_call_refs, df_get_call_refs,
7214 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
7215 df_record_entry_block_defs, df_record_exit_block_uses,
7216 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
7217 df_scan_verify): Update.
7219 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7222 * c-common.c (is_typedef_decl): Move this definition ...
7223 * tree.c (is_typedef_decl): ... here.
7224 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7225 * c-common.h (is_typedef_decl): Move this declaration ...
7226 * tree.h (is_typedef_decl): ... here.
7227 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7228 * dwarf2out.c (is_naming_typedef_decl): New function.
7229 (gen_tagged_type_die): Split out of ...
7230 (gen_type_die_with_usage): ... this function. When an anonymous
7231 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7232 is emitted for the typedef.
7233 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7234 anonymous tagged types.
7236 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7239 * c-decl.c (grokdeclarator): Delete warning.
7241 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
7243 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
7244 newly built CALL_EXPR.
7245 * tree-profile.c (tree_profiling): Don't profile functions produced
7248 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
7252 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
7253 endianness-independent.
7255 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7257 * c-common.c: Move to c-family/.
7258 * c-common.def: Likewise.
7259 * c-common.h: Likewise.
7260 * c-cppbuiltin.c: Likewise.
7261 * c-dump.c: Likewise.
7262 * c-format.c: Likewise.
7263 * c-format.h : Likewise.
7264 * c-gimplify.c: Likewise.
7265 * c-lex.c: Likewise.
7266 * c-omp.c: Likewise.
7268 * c-opts.c: Likewise.
7269 * c-pch.c: Likewise.
7270 * c-ppoutput.c: Likewise.
7271 * c-pragma.c: Likewise.
7272 * c-pragma.h: Likewise.
7273 * c-pretty-print.c: Likewise.
7274 * c-pretty-print.h: Likewise.
7275 * c-semantics.c: Likewise.
7276 * stub-objc.c: Likewise.
7278 * gengtype.c (get_file_langdir): Special-case files in c-family/.
7279 (get_output_file_with_visibility): Fix name for c-common.h.
7280 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
7282 * c-tree.h: Update include path for moved files.
7283 * c-lang.c: Likewise.
7284 * c-lang.h: Likewise.
7285 * c-parser.c: Likewise.
7286 * c-convert.c: Likewise.
7287 * c-decl.c: Likewise.
7288 * c-objc-common.c: Likewise.
7289 * configure.ac: Make sure c-family/ exists in the build directory.
7290 * configure: Regenerate.
7291 * Makefile.in: Update paths for moved files. Regroup files per
7292 location and update dependencies. Move generated_files down after
7295 * config/spu/spu-c.c: Update paths for moved files.
7296 * config/mep/mep-pragma.c: Likewise.
7297 * config/darwin-c.c: Likewise.
7298 * config/i386/msformat-c.c: Likewise.
7299 * config/i386/i386-c.c: Likewise.
7300 * config/avr/avr-c.c: Likewise.
7301 * config/sol2-c.c: Likewise.
7302 * config/ia64/ia64-c.c: Likewise.
7303 * config/rs6000/rs6000-c.c: Likewise.
7304 * config/arm/arm.c: Likewise.
7305 * config/arm/arm-c.c: Likewise.
7306 * config/h8300/h8300.c: Likewise.
7307 * config/v850/v850-c.c: Likewise.
7309 * config/t-darwin: Fix dependencies for moved files.
7310 * config/t-sol2: Fix dependencies for moved files.
7311 * config/mep/t-mep: Fix dependencies for moved files.
7312 * config/ia64/t-ia64: Fix dependencies for moved files.
7313 * config/rs6000/t-rs6000: Fix dependencies for moved files.
7314 * config/v850/t-v850: Fix dependencies for moved files.
7315 * config/v850/t-v850e: Fix dependencies for moved files.
7317 * config/m32c/m32c-pragma.c
7319 * po/exgettext: Look in c-family/ also.
7321 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
7323 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
7324 (mark_control_dependent_edges_necessary): Call it instead of marking
7325 the last statement manually.
7326 (propagate_necessity): Likewise.
7328 2010-06-05 Jan Hubicka <jh@suse.cz>
7330 * basic-block.h (compute_dominance_frontiers): Updated.
7331 (compute_idf): Likewise.
7333 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
7334 for dominance frontiers.
7335 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7336 (insert_updated_phi_nodes_for): Likewise.
7337 (update_ssa): Likewise.
7338 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7339 (compute_dominance_frontiers): Likewise.
7340 (compute_idf): Likewise.
7341 * df-problems.c (df_md_local_compute): Likewise.
7343 2010-06-05 Anatoly Sokolov <aesok@post.ru>
7345 * target.h (struct gcc_target): Add memory_move_cost field.
7346 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
7347 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
7348 * targhooks.c (default_memory_move_cost): New function.
7349 * targhooks.h (default_memory_move_cost): Declare function.
7350 * reload.h (memory_move_cost): Declare.
7351 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7352 * reginfo.c (memory_move_cost): New function.
7353 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7354 * ira.h (ira_memory_move_cost): Update comment.
7355 * ira.c: (ira_memory_move_cost): Update comment.
7356 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
7357 with memory_move_cost.
7358 * postreload.c (reload_cse_simplify_set): (Ditto.).
7359 * reload1.c (choose_reload_regs): (Ditto.).
7360 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
7361 (MEMORY_MOVE_COST): Revise documentation.
7363 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7364 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7365 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
7366 type of 'in' argument to bool.
7367 (TARGET_MEMORY_MOVE_COST): Define.
7369 2010-06-05 Jan Hubicka <jh@suse.cz>
7371 * ipa-pure-const.c (propagate): Fix typo in handling of functions
7372 that cannot return. Be more careful when merging the results with
7373 previously known ones.
7375 2010-06-05 Matthias Klose <doko@ubuntu.com>
7377 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
7378 function to add the -iplugindir option.
7379 (find_plugindir_spec_function): Add new declaration and function.
7380 (static_spec_func): Use it for "find-plugindir".
7382 2010-06-05 Jakub Jelinek <jakub@redhat.com>
7385 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
7386 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
7387 statement expression.
7389 2010-06-05 Jan Hubicka <jh@suse.cz>
7391 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
7392 (df_rd_problem_data): Convert sparse_invalidated_by_call,
7393 dense_invalidated_by_call to bitmap head.
7394 (df_rd_alloc, df_rd_bb_local_compute_process_def,
7395 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
7396 df_rd_start_dump, df_lr_verify_transfer_functions,
7397 df_live_verify_transfer_functions, df_chain_create_bb,
7398 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
7399 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
7400 df_simulate_one_insn_forwards, df_md_alloc,
7401 df_md_bb_local_compute_process_def,
7402 df_md_bb_local_compute_process_def, df_md_local_compute,
7403 df_md_transfer_function df_md_free): Update.
7405 2010-06-05 Joseph Myers <joseph@codesourcery.com>
7408 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
7409 target type for ADDR_EXPR; require no changes to qualifiers except
7411 * c-tree.h (c_build_type_variant): Remove.
7413 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7415 * genautomata.c (get_excl_set): Do work per element, not per char.
7416 (check_presence_pattern_sets): Similar.
7417 (check_absence_pattern_sets): Similar.
7419 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7421 * genautomata.c (curr_state_pass_num): Delete.
7422 (min_issue_delay_pass_states): Delete.
7423 (min_issue_delay): Delete.
7424 (initiate_min_issue_delay_pass_states): Delete.
7425 (output_min_issue_delay_table): Compute min_issue_delay_vect
7426 using a breadth-first search variant.
7427 (output_tables): Don't call initiate_min_issue_delay_pass_states.
7429 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
7432 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
7433 (df_byte_lr_bb_local_compute): Likewise.
7435 2010-06-03 Jason Merrill <jason@redhat.com>
7437 Implement noexcept operator (5.3.7)
7438 * c-common.c (c_common_reswords): Add noexcept.
7439 * c-common.h (enum rid): Add RID_NOEXCEPT.
7441 2010-06-04 Joseph Myers <joseph@codesourcery.com>
7443 * config/darwin-driver.c (darwin_default_min_version): Use
7444 GCC-specific formats in diagnostics.
7445 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
7447 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
7448 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
7449 eval_spec_function, handle_braces, process_brace_body, main,
7450 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
7451 getenv_spec_function, compare_version_strings,
7452 version_compare_spec_function): Use GCC-specific formats in
7455 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7457 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
7458 that operand 0 and operand 1 are equal.
7459 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
7460 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
7461 and operand 1 are equal.
7462 <default>: Ditto. Remove ??? comment.
7463 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
7464 and operand 1 are equal.
7465 <default>: Ditto. Remove ??? comment.
7466 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
7468 (*add<mode>_4) <default>: Ditto.
7469 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
7471 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
7473 * config/i386/i386-protos.h (ix86_print_operand): Declare.
7474 * config/i386/i386.c (ix86_print_operand): Make non-static.
7475 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
7476 * output.h (output_operand): Declare.
7477 * final.c (output_operand): Make non-static.
7479 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
7481 PR rtl-optimization/44013
7482 * sched-deps.c (add_dependence_list_and_free): Don't free lists
7483 when processing debug insns.
7486 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
7487 recursing. Check that recursion is bounded. Rename inner var
7488 to avoid hiding incoming argument.
7490 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7492 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
7497 (*addqi_ext_1_rex64): Ditto.
7498 (*addqi_ext_1): Ditto.
7500 (*addqi_4): Check for incdec_operand in QImode.
7502 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
7503 using SWI mode iterator.
7504 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
7505 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
7507 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
7508 using SWI mode iterator.
7510 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7513 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
7514 * c-format.c (gcc_diag_flag_specs): Add hash.
7515 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
7516 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
7517 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
7518 pp_c_cv_qualifiers. Handle qualifiers spelling here.
7519 (pp_c_type_qualifier_list): Call the function above.
7520 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
7521 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
7522 (WARN_FOR_QUALIFIERS): New macro.
7523 (convert_for_assignment): Use it.
7525 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
7527 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
7529 2010-06-04 Jan Hubicka <jh@suse.cz>
7531 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
7532 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
7533 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
7534 DF_BYTE_LR_OUT): Update for embedded bitmaps.
7535 * fwprop.c (single_def_use_enter_block): Likewise.
7536 * ddg.c (create_ddg_dep_from_intra_loop_link,
7537 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
7538 * loop-iv.c (latch_dominating_def): Likewise.
7539 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
7540 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
7541 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
7542 df_rd_transfer_function, df_rd_top_dump,
7543 df_rd_bottom_dump): Update.
7544 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
7545 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
7546 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
7547 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
7548 df_lr_verify_solution_start, df_lr_verify_solution_end,
7549 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
7550 df_live_free_bb_info, df_live_alloc, df_live_reset,
7551 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
7552 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
7553 df_live_verify_solution_start, df_live_verify_solution_end,
7554 df_live_verify_transfer_functions, df_chain_create_bb,
7555 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
7556 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7557 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7558 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
7559 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
7560 df_byte_lr_transfer_function, df_byte_lr_top_dump,
7561 df_byte_lr_bottom_dump, df_create_unused_note,
7562 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
7563 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
7564 df_md_transfer_function, df_md_init, df_md_confluence_0,
7566 df_md_top_dump, df_md_bottom_dump): Update.
7567 (struct df_lr_problem_data): Embedd bitmap headers.
7569 2010-06-04 Jan Hubicka <jh@suse.cz>
7571 * dce.c (dce_process_block): Do not re-scan already marked
7574 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
7576 PR rtl-optimization/39871
7577 PR rtl-optimization/40615
7578 PR rtl-optimization/42500
7579 PR rtl-optimization/42502
7580 * ira.c (init_reg_equiv_memory_loc: New function.
7581 (ira): Call it twice.
7582 * reload.h (calculate_elim_costs_all_insns): Declare.
7583 * ira-costs.c: Include "reload.h".
7584 (regno_equiv_gains): New static variable.
7585 (init_costs): Allocate it.
7586 (finish_costs): Free it.
7587 (ira_costs): Call calculate_elim_costs_all_insns.
7588 (find_costs_and_classes): Take estimated elimination costs
7590 (ira_adjust_equiv_reg_cost): New function.
7591 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
7592 * reload1.c (init_eliminable_invariants, free_reg_equiv,
7593 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
7594 (elim_bb): New static variable.
7595 (reload): Move code out of here into init_eliminable_invariants and
7596 free_reg_equiv. Call them.
7597 (calculate_elim_costs_all_insns): New function.
7598 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
7599 all callers changed. If FOR_COSTS is true, don't call alter_reg,
7600 but call note_reg_elim_costly if we turned a valid memory address
7601 into an invalid one.
7602 * Makefile.in (ira-costs.o): Depend on reload.h.
7604 2010-06-04 Julian Brown <julian@codesourcery.com>
7606 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
7609 2010-06-04 Richard Guenther <rguenther@suse.de>
7612 * cgraph.h (struct varpool_node): Add lto_file_data field.
7613 * lto-cgraph.c (input_varpool_node): Initialize it.
7615 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7617 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
7618 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
7619 predicate in "type" attribute calculation.
7620 (*addsi_1_zext): Ditto.
7621 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
7622 (*addsi_2_zext): Ditto.
7623 (*add<mode>_3): Ditto.
7624 (*addsi_3_zext): Ditto.
7625 (*add<mode>_5): Ditto.
7627 2010-06-03 Jan Hubicka <jh@suse.cz>
7629 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
7631 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7633 2010-06-03 Jan Hubicka <jh@suse.cz>
7635 * df-problems.c (df_create_unused_note, df_note_bb_compute):
7636 micro-optimize the checks when to add new note.
7638 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
7640 * final.c (output_asm_insn): Call
7641 targetm.asm_out.print_operand_punct_valid_p. Update comments.
7642 (output_operand): Call targetm.asm_out.print_operand. Update comments.
7643 (output_address): Call targetm.asm_out.print_operand_address.
7645 * target.h (struct gcc_target): Add print_operand,
7646 print_operand_address, and print_operand_punct_valid_p fields.
7647 * targhooks.h (default_print_operand): Declare.
7648 (default_print_operand_address): Declare.
7649 (default_print_operand_punct_valid_p): Declare.
7650 * targhooks.c (default_print_operand): Define.
7651 (default_print_operand_address): Define.
7652 (default_print_operand_punct_valid_p): Define.
7653 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7654 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7655 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7656 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7657 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7658 * vmsdbgout.c (addr_const_to_string): Update comment.
7659 * config/i386/i386.c (print_operand): Rename to...
7660 (ix86_print_operand): ...this. Make static.
7661 (print_operand_address): Rename to...
7662 (ix86_print_operand_address): ...this. Make static. Call
7663 ix86_print_operand instead of PRINT_OPERAND.
7664 (ix86_print_operand_punct_valid_p): New function.
7665 (TARGET_PRINT_OPERAND): Define.
7666 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7667 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7668 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7669 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7670 (PRINT_OPERAND): Delete.
7671 (PRINT_OPERAND_ADDRESS): Delete.
7672 * config/i386/i386-protos.h (print_operand): Delete prototype.
7673 (print_operand_address): Delete prototype.
7675 2010-06-03 Richard Guenther <rguenther@suse.de>
7677 PR tree-optimization/44403
7678 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7679 Preserve pointer qualifiers.
7680 (vect_create_data_ref_ptr): Likewise.
7682 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7685 * defaults.h (MAX_FIXED_MODE_SIZE): New.
7687 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7689 2010-06-03 Jakub Jelinek <jakub@redhat.com>
7692 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7693 return false if merging the bbs would lead to goto_locus
7694 location being lost from the IL.
7696 2010-06-03 Jan Hubicka <jh@suse.cz>
7697 Jakub Jelinek <jakub@redhat.com>
7699 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7700 set->regs[i] is NULL or has just one entry.
7702 2010-06-03 Jan Hubicka <jh@suse.cz>
7704 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7705 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7707 2010-06-03 Paul Brook <paul@codesourcery.com>
7709 * config/arm/arm.c (FL_TUNE): Define.
7710 (arm_default_cpu, arm_cpu_select): Remove.
7711 (all_cores): Populate core field.
7712 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7713 (arm_find_cpu): New function.
7714 (arm_handle_option): Lookup cpu/architecture names.
7715 (arm_override_options): Cleanup mcpu/march/mtune handling.
7716 (arm_file_start): Ditto.
7718 2010-06-03 Alan Modra <amodra@gmail.com>
7721 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7722 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7723 rtx to gen_load_toc_v4_PIC_1b. Tidy.
7724 (rs6000_emit_load_toc_table): Likewise.
7726 2010-06-02 Jan Hubicka <jh@suse.cz>
7728 * passes.c (init_optimization_passes): Put ipa reference
7729 after ipa pure-const.
7731 2010-06-02 Jan Hubicka <jh@suse.cz>
7733 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7734 calls_read_all and calls_write_all.
7735 (get_reference_optimization_summary): Fix formatting.
7736 (is_proper_for_analysis): Check that decl is not readonly.
7737 (propagate_bits): Check CONST/PURE/noreturn flags.
7738 (ipa_init): Move all_module_statics to optimization_summary_obstack.
7739 (analyze_function): Ignore indirect edges.
7740 (copy_global_bitmap): For all module statics, do nothing.
7741 (generate_summary): Do not print calls_read_all/calls_write_all.
7742 (read_write_all_from_decl): Take node as argument; check
7743 cgraph_node_cannot_return.
7744 (propagate): Reorganize read_all/write_all computation;
7745 check indirect edges; check ecf flags; use all_module_statics
7746 in the results; do not free all_module_statics.
7747 (stream_out_bitmap): Handle all_module_statics.
7748 (ipa_reference_write_optimization_summary): Likewise; use
7749 varpool/cgraph encoders to get boundaries.
7750 (ipa_reference_read_optimization_summary): Read in all_module_statics;
7751 use it when possible.
7753 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7756 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7757 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7759 * doc/extend.texi (powerpc builtins): Document vec_recip,
7760 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7762 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7763 (rs6000_emit_swrsqrt): Ditto.
7764 (rs6000_emit_swdivsf): Delete.
7765 (rs6000_emit_swdivdf): Ditto.
7766 (rs6000_emit_swrsqrtsf): Ditto.
7768 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7769 describe the reciprocal estimate support for each type.
7770 (recip_options): Map -mrecip=<opt> into option bits.
7771 (gen_2arg_fn_t): New typedef for binary rtx gen function.
7772 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7773 reciprocal estimate instructions.
7774 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7775 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7776 Set up rs6000_recip_bits based on the -mrecip* options. Print the
7777 cost information if -mdebug=cost or -mdebug=reg.
7778 (rs6000_override_options): Set -mrecip-precision for power6, and
7779 power7 machines. If -mvsx or -mdfp, enable various options that
7780 came in previous instruction set ISAs, unless the option was
7781 explicitly disabled by the command line option. Parse
7782 -mrecip=<opt> options.
7783 (rs6000_builtin_vectorized_function): Add support for vectorizing
7784 the reciprocal estimate builtins and expansions.
7785 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7786 (bdesc_2arg): Add reciprocal estimate builtins.
7787 (bdesc_1arg): Add reciprocal square root estimate builtins.
7788 (rs6000_expand_builtin): Rewrite to use a switch statement,
7789 instead of multiple if/then/elses. Add reciprocal estimate builtins.
7790 (rs6000_init_builtins): Create declarations for reciprocal
7792 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7793 sized, prefer traditional floating point registers, if integer
7794 vector types, prefer altivec registers. Don't actually look at
7795 the memory address any more.
7796 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7798 (rs6000_load_constant_and_splat): New helper function to load up
7799 the constant for reciprocal estimate instructions.
7800 (rs6000_emit_madd): New helper function for generating
7801 multiply/add type instructions, based on the current switches.
7802 (rs6000_emit_msub): Ditto.
7803 (rs6000_emit_mnsub): Ditto.
7804 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7805 replace a divide with a reciprocal estimate and fixup, adding
7806 support for machines with high precision and vectors.
7807 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7808 low precision machines.
7809 (rs6000_emit_swdiv): New common function to be called to replace a
7810 division with reciprocal estimate and fixup.
7811 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
7812 for double and vector types. Add support for high precision machines.
7814 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7815 the reciprocal estimate instructions can be generated.
7816 (TARGET_FRE): Ditto.
7817 (TARGET_FRSQRTES): Ditto.
7818 (TARGET_FRSQRTE): Ditto.
7819 (RS6000_RECIP_*): New macros for reciprocal estimate support.
7821 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7822 square root estimate on vectors.
7823 (re<mode>2): New insn for reciprocal division estimate on vectors.
7825 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7827 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7828 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7829 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7830 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7831 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7832 (RS6000_BUILTIN_RSQRT): Ditto.
7833 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7834 floating point builtin.
7836 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7837 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7838 __RECIP_PRECISION__ based on the command line switches.
7839 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7841 * config/rs6000/rs6000.opt (-mrecip): Document add support for
7842 replacing division instructions with reciprocal estimate and fixup.
7843 (-mrecip=<opt>): New option.
7844 (-mrecip-precision): Ditto.
7846 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7847 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7848 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7851 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7852 (UNSPEC_VREFP): Ditto.
7853 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7854 conterparts with regard to support of -mno-fused-madd and -ffast-math.
7855 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7856 reciprocal estimate instructions to be generated.
7857 (altivec_vrefp): Ditto.
7859 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7861 (rreg): New mode attribute for reciprocal estimate support.
7862 (recip<mode>3): New insn for division using reciprocal estimate
7864 (divide define_split): New define_split to convert floating point
7865 division to use reciprocal estimate if the user used the
7866 appropriate options and the split is run when we can add new
7867 pseudo registers for the fixup.
7868 (rsqrt<mode>2): New insn for reciprocal square root support.
7869 (recipsf3): Move into recip<mode>3.
7871 (fres): Use TARGET_FRES.
7872 (rsqrtsf2): Move into rsqrt<mode>2.
7873 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7874 (copysignsf3): Add support for VSX.
7875 (fred): Use TARGET_FRE.
7877 (rsqrtdf_internal1): New function for frsqrte instruciton.
7879 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7882 2010-06-03 Richard Guenther <rguenther@suse.de>
7885 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7886 (set_user_assembler_libfunc): Likewise.
7888 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7890 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7892 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7894 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7895 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7896 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7897 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7898 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7899 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7900 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7901 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7902 * defaults.h: Updated for above mentioned changes.
7904 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
7906 * c-common.c: Remove header include of tm_p.h.
7907 * Makefile.in (c-common.o): Remove TM_P_H dependency.
7909 2010-06-02 Jakub Jelinek <jakub@redhat.com>
7911 * tree.h (struct tree_decl_map): New type.
7912 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7913 (tree_decl_map_hash): New prototype.
7914 (debug_expr_for_decl, value_expr_for_decl): Change into
7915 tree_decl_map hashtab from tree_map.
7916 (init_ttree): Adjust initialization.
7917 (tree_decl_map_hash): New function.
7918 (decl_debug_expr_lookup, decl_debug_expr_insert,
7919 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7921 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7923 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7925 * configure: Regenerate.
7926 * config.in: Regenerate.
7928 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7929 (X86_64_EMULATION): Define.
7930 (TARGET_LD_EMULATION): Use them.
7932 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7933 (SPARC64_EMULATION): Define.
7934 (LINK_ARCH_SPEC): Use them.
7936 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7938 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7939 smallest_mode_for_size for computing the precision types of new
7940 graphite IVs. Do not call lang_hooks.types.type_for_size.
7942 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7944 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7946 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7948 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7951 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7952 return false instead.
7954 2010-06-02 Jan Hubicka <jh@suse.cz>
7957 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7958 create new cgraph node to check callee.
7960 2010-06-02 Richard Guenther <rguenther@suse.de>
7962 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7964 2010-06-02 Richard Guenther <rguenther@suse.de>
7966 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7967 (lto_wrapper_cleanup): ... this. Do not exit.
7968 (fatal): Adjust. Exit here.
7969 (fatal_perror): Likewise.
7970 (fatal_signal): New function.
7971 (main): Set up signal handlers to cleanup temporary files.
7972 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7974 2010-06-02 Richard Guenther <rguenther@suse.de>
7976 PR tree-optimization/44377
7977 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7979 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7981 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7982 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7983 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7984 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7986 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7988 2010-06-02 Jan Hubicka <jh@suse.cz>
7990 * bitmap.c (bitmap_descriptor): Add search_iter.
7991 (bitmap_find_bit): Increment it.
7992 (print_statistics): Print it.
7994 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7996 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7997 instead of gimple_build_call_vec. Delete unnecessary local variable.
7999 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8001 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
8002 change from yesterday.
8004 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8006 * c-ada-spec.c: Clean up redundant includes.
8008 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
8010 * gimplify.c: Do not include except.h and optabs.h.
8011 (gimplify_body): Do not initialize RTL profiling.
8012 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
8013 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
8014 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
8015 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
8018 * tree-pretty-print.h: Include pretty-print.h.
8019 * gimple-pretty-print.h: Include pretty-print.h.
8021 * tree-pretty-print.c: Do not include diagnostic.h.
8022 * tree-vrp.c: Likewise.
8023 * tree-tailcall.c: Likewise
8024 * tree-scalar-evolution.c: Likewise
8025 * tree-ssa-dse.c: Likewise
8026 * tree-chrec.c: Likewise
8027 * tree-ssa-sccvn.c: Likewise
8028 * tree-ssa-copyrename.c: Likewise
8029 * tree-nomudflap.c: Likewise
8030 * tree-call-cdce.c: Likewise
8031 * tree-stdarg.c: Likewise
8032 * tree-ssa-math-opts.c: Likewise
8033 * tree-nrv.c: Likewise
8034 * tree-ssa-sink.c: Likewise
8035 * tree-browser.c: Likewise
8036 * tree-ssa-loop-ivcanon.c: Likewise
8037 * tree-ssa-loop.c: Likewise
8038 * tree-parloops.c: Likewise
8039 * tree-ssa-address.c: Likewise
8040 * tree-ssa-ifcombine.c: Likewise
8041 * tree-if-conv.c: Likewise
8042 * tree-data-ref.c: Likewise
8043 * tree-affine.c: Likewise
8044 * tree-ssa-phiopt.c: Likewise
8045 * tree-ssa-coalesce.c: Likewise
8046 * tree-ssa-pre.c: Likewise
8047 * tree-ssa-live.c: Likewise
8048 * tree-predcom.c: Likewise
8049 * tree-ssa-forwprop.c: Likewise
8050 * tree-ssa-dce.c: Likewise
8051 * tree-ssa-ter.c: Likewise
8052 * tree-ssa-loop-prefetch.c: Likewise
8053 * tree-optimize.c: Likewise
8054 * tree-ssa-phiprop.c: Likewise
8055 * tree-object-size.c: Likewise
8056 * tree-outof-ssa.c: Likewise
8057 * tree-ssa-structalias.c: Likewise
8058 * tree-switch-conversion.c: Likewise
8059 * tree-ssa-reassoc.c: Likewise
8060 * tree-ssa-operands.c: Likewise
8061 * tree-vectorizer.c: Likewise
8062 * tree-vect-data-refs.c: Likewise
8063 * tree-vect-generic.c: Likewise
8064 * tree-vect-stmts.c: Likewise
8065 * tree-vect-patterns.c: Likewise
8066 * tree-vect-slp.c: Likewise
8067 * tree-vect-loop.c: Likewise
8068 * tree-ssa-loop-ivopts.c: Likewise
8069 * tree-ssa-loop-im.c: Likewise
8070 * tree-ssa-loop-niter.c: Likewise
8071 * tree-ssa-loop-unswitch.c: Likewise
8072 * tree-ssa-loop-manip.c: Likewise
8073 * tree-ssa-loop-ch.c: Likewise
8074 * tree-dump.c: Likewise
8075 * tree-complex.c: Likewise
8077 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
8078 * tree-ssa-uninit.c: Likewise
8079 * tree-ssa-threadupdate.c: Likewise
8080 * tree-ssa-uncprop.c: Likewise
8081 * tree-ssa-ccp.c: Likewise
8082 * tree-ssa-dom.c: Likewise
8083 * tree-ssa-propagate.c: Likewise
8084 * tree-ssa-alias.c: Likewise
8085 * tree-dfa.c: Likewise
8086 * tree-cfgcleanup.c: Likewise
8087 * tree-sra.c: Likewise
8088 * tree-ssa-copy.c: Likewise
8089 * tree-ssa.c: Likewise
8090 * tree-profile.c: Likewise
8091 * tree-cfg.c: Likewise
8092 * tree-ssa-threadedge.c: Likewise
8093 * tree-vect-loop-manip.c: Likewise
8095 * tree-inline.c: Do not include diagnostic.h and expr.h.
8097 (copy_decl_for_dup_finish): Do not use NULL_RTX.
8099 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
8100 * tree-loop-distribution.c: Likewise.
8102 2010-06-01 Jan Hubicka <jh@suse.cz>
8104 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
8106 2010-06-01 Jan Hubicka <jh@suse.cz>
8108 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
8109 remove return value.
8110 (split_bbs_on_noreturn_calls) .... here.
8111 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
8112 * tree-flow.h (fixup_noreturn_call): New.
8114 2010-06-01 Jan Hubicka <jh@suse.cz>
8116 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
8118 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
8120 * tree.h (build_nt_call_list): Delete.
8121 * tree.c (build_nt_call_list): Delete.
8123 2010-06-01 Jan Hubicka <jh@suse.cz>
8125 * fwprop.c: Make emit-rtl.h include last.
8126 * rtlanal.c: Include emit-rtl.h.
8127 * genautomata.c: Output emit-rtl include into insn-automata.c
8128 * df-scan.c: Include emit-rtl.h.
8129 * haifa-sched.c: Indlude emit-rtl.h.
8130 * mode-switching.c: Indlude emit-rtl.h.
8131 * graph.c: Indlude emit-rtl.h.
8132 * sel-sched.c: Include emit-rtl.h.
8133 * sel-sched-ir.c: Include emit-rtl.h.
8134 * ira-build.c: Include emit-rtl.h.
8135 * emit-rtl.c: (first_insn, last_insn): Remove defines.
8136 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
8138 (set_new_first_and_last_insn, get_last_insn_anywhere,
8139 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
8140 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
8141 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
8142 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
8143 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
8144 Use accessor functions.
8145 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8146 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8147 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8148 mem_expr_equal_p): Move here from rtl.h.
8149 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
8150 Move here from emit-rtl.c; make inline.
8151 * cfglayout.h: Include emit-rtl.h.
8152 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8153 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8154 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8155 mem_expr_equal_p, get_insns, set_first-insn,
8156 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
8157 * reg-stack.c: Include emit-rtl.h.
8160 2010-06-01 Jan Hubicka <jh@suse.cz>
8162 * cgraph.h (tree_function_versioning): Update prototype.
8163 (cgraph_function_versioning): Update prototype.
8164 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
8166 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
8167 (cgraph_materialize_clone, save_inline_function_body): Update use of
8168 tree_function_versioning.
8169 * tree-inline.c (copy_bb): Look for previous copied block to link
8170 after; fix debug output.
8171 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
8172 (copy_body): Likewise.
8173 (expand_call_inline): Update use of copy_body.
8174 (tree_function_versioning): Update use of copy body; accept
8175 blocks_to_copy and new_entry.
8177 2010-06-01 Jan Hubicka <jh@suse.cz>
8179 * gegenrtl.c: Remove unnecesary prototypes.
8181 (gendef): Produce static inline.
8183 (main): Do not decode parameters; generate header only.
8184 * Makefile.in (genrtl.c): Remove.
8186 2010-06-01 Jan Hubicka <jh@suse.cz>
8188 * tree-switch-conversion.c (build_one_array): Make it readonly.
8190 2010-06-01 Richard Guenther <rguenther@suse.de>
8192 * optabs.c (init_optabs): Guard all accesses to reinit.
8193 * ipa-pure-const.c (propagate): Fix another typo.
8194 * opts.c (common_handle_option): Split assignment to bool.
8195 * c-opts.c (c_common_handle_option): Likewise.
8197 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8198 Matthew Gingell <gingell@adacore.com>
8200 * doc/invoke.texi: Mention -fdump-ada-spec.
8201 * tree-dump.c (dump_files): Add ada-spec.
8202 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
8203 * tree-pass.h (tree_dump_index): Add TDI_ada.
8204 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
8205 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
8206 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
8207 * c-decl.c: Include c-ada-spec.h.
8208 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
8210 (c_write_global_declarations): Add handling of -fdump-ada-spec.
8211 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
8212 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
8213 * c-ada-spec.h, c-ada-spec.c: New files.
8215 2010-06-01 Richard Guenther <rguenther@suse.de>
8218 * ipa-pure-const.c (get_function_state): Hand back varying state
8219 if we do not have one.
8220 (has_function_state): New function.
8221 (duplicate_node_data): Adjust.
8222 (remove_node_data): Likewise.
8223 (pure_const_write_summary): Likewise.
8224 (propagate): Likewise. Fix typo.
8226 2010-06-01 Jan Hubicka <jh@suse.cz>
8228 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
8229 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
8230 (execute_all_ipa_transforms): Do not play with the states.
8232 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
8234 * config/arm/t-linux-androideabi: New.
8235 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
8237 2010-06-01 Jan Hubicka <jh@suse.cz>
8239 * tree-inline.c (estimate_num_insns): For stdarg functions look
8240 into call statement to count cost of argument passing.
8242 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
8244 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
8245 argument for fprintf.
8246 (ix86_output_addr_diff_elt): Likewise.
8247 (x86_function_profiler): Likewise.
8248 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
8249 (LPREFIX): Likewise.
8250 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8252 2010-05-31 Jakub Jelinek <jakub@redhat.com>
8255 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
8256 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
8257 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
8258 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
8259 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
8260 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
8261 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
8262 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
8265 2010-05-31 Jan Hubicka <jh@suse.cz>
8267 * tree.h (tree_range_check_failed): Declare noreturn.
8269 2010-05-31 Jan Hubicka <jh@suse.cz>
8271 * gimple.c (gimple_call_builtin_p): New function.
8272 * gimple.h (gimple_call_builtin_p): Declare.
8273 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
8275 (execute_warn_function_return): BUILT_IN_RETURN is return.
8276 (split_critical_edges): Return edges are not critical.
8277 (is_ctrl_altering_stmt): Builtin_in_return is altering.
8278 (gimple_verify_flow_info): Handle built_in_return.
8279 (execute_warn_function_return): Handle built_in_return.
8280 * ipa-pure-const.c (check_call): Ignore builtin_return.
8282 2010-05-31 Jakub Jelinek <jakub@redhat.com>
8285 * expr.c (expand_assignment): Don't store anything for out-of-bounds
8286 array accesses with non-MEM.
8288 PR tree-optimization/44182
8289 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
8290 newly needs to end a bb is followed by debug stmts, instead return
8291 true from the function at the end.
8292 (maybe_move_debug_stmts_to_successors): New function.
8293 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
8295 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
8298 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
8300 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
8302 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
8303 for nested functions in non-optimized compilation.
8305 2010-05-31 Richard Guenther <rguenther@suse.de>
8307 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
8309 2010-05-30 Jan Hubicka <jh@suse.cz>
8311 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
8313 2010-05-30 Richard Guenther <rguenther@suse.de>
8316 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
8317 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
8320 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
8322 * config/darwin.c (output_objc_section_asm_op): Add comment.
8323 (name_needs_quotes): Add '_' to list of valid comment chars.
8324 (machopic_output_function_base_name): Remove unneeded quotes.
8325 (darwin_encode_section_info): Adjust asm whitespace.
8326 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
8327 (ASM_OUTPUT_LOCAL): Ditto.
8328 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
8329 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
8330 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
8332 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8334 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8335 RS6000_OUTPUT_BASENAME unconditionally.
8336 (rs6000_output_function_epilogue): Likewise.
8338 2010-05-30 Jan Hubicka <jh@suse.cz>
8340 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
8343 2010-05-30 Richard Guenther <rguenther@suse.de>
8345 * tree-cfg.c (verify_gimple_assign_single): Implement
8346 verification for COND_EXPR rhs.
8348 2010-05-30 Jan Hubicka <jh@suse.cz>
8350 * cgraph.h (cgraph_dump_file): Declare.
8351 * cgraphunit.c (cgraph_dump_file): Export.
8352 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
8354 2010-05-30 Jan Hubicka <jh@suse.cz>
8356 * dwarf2out.c (reference_to_unused,
8357 premark_types_used_by_global_vars_helper): Avoid creation of new
8360 2010-05-30 Jan Hubicka <jh@suse.cz>
8362 * cgraph.h (cgraph_node_cannot_return,
8363 cgraph_edge_cannot_lead_to_return): New functions.
8364 * cgraph.c (cgraph_node_cannot_return,
8365 cgraph_edge_cannot_lead_to_return): Use them.
8366 * ipa-pure-const.c (pure_const_names): New static var.
8367 (check_call): Handle calls not leading to return.
8368 (pure_const_read_summary): Dump info read.
8369 (propagate): Dump info about propagation process; ignore side effects
8370 of functions not leading to exit; fix handling of pure functions.
8372 2010-05-30 Jan Hubicka <jh@suse.cz>
8374 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
8375 for tail call epilogues.
8377 2010-05-30 Jan Hubicka <jh@suse.cz>
8379 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
8380 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
8383 2010-05-29 Jan Hubicka <jh@suse.cz>
8385 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
8386 node; remove references in node we no longer keep in cgrpah but need
8389 2010-05-29 Jan Hubicka <jh@suse.cz>
8391 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
8393 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8396 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
8398 2010-05-29 Jan Hubicka <jh@suse.cz>
8400 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
8401 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
8402 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
8403 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
8404 debug_names_replaced_by, debug_update_ssa): Likewise.
8405 * sbitmap.c (debug_sbitmap): Likewise.
8406 * genrecog.c (debug_decision, debug_decision_list): Likewise.
8407 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
8408 debug_tree_chain): Likewise.
8409 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
8410 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
8411 * optabs.c (debug_optab_libfuncs): Likewise.
8412 (verify_loop_closed_ssa): Likewise.
8413 * value-prof.c (verify_histograms): Likewise.
8414 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
8415 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
8416 * cfghooks.c (verify_flow_info): Likewise.
8417 * fold-const.c (debug_fold_checksum): Likewise.
8418 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
8419 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
8421 * omega.c (debug_omega_problem): Likewise.
8422 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
8423 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
8424 * dominance.c (verify_dominators, debug_dominance_info,
8425 debug_dominance_tree): Likewise.
8426 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
8427 * df_regno_debug, df_ref_debug,
8428 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
8429 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
8430 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
8431 * sel-sched.c (debug_state): Likewise.
8432 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
8434 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
8435 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
8436 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
8437 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
8439 * c-pretty-print.c (debug_c_tree): Likewise.
8440 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
8441 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
8442 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
8443 * ebitmap.c (debug_ebitmap): Likewise.
8444 * function.c (debug_find_var_in_block_tree): Likewise.
8445 * print-rtl.c (debug_rtx): Likewise.
8446 (debug_rtx_count): Likewise.
8447 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
8448 * stor-layout.c (debug_rli): Likewise.
8449 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
8450 * tree-data-ref.c (debug_data_references,
8451 debug_data_dependence_relations, debug_data_reference,
8452 debug_data_dependence_relation, debug_rdg_vertex,
8453 debug_rdg_component, debug_rdg): Likewise.
8454 * tree-affine.c (debug_aff): Likewise.
8455 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
8457 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
8458 * emit-rtl.c (verify_rtl_sharing): Likewise.
8459 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
8460 debug_value_expressions): Likewise.
8461 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
8462 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
8463 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
8464 * cfglayout.c (verify_insn_chain): Likewise.
8465 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
8466 debug_clast_stmt, debug_generated_program): Likewise.
8467 * ggc-page.c (debug_print_page_list): Likewise.
8468 * tree-ssa-ter.c (debug_ter): Likewise.
8469 * graphite-dependences.c (debug_pddr): Likewise.
8470 * sched-deps.c (debug_ds): Likewise.
8471 * tree-ssa.c (verify_ssa): Likewise.
8472 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
8473 debug_scattering_functions, debug_iteration_domains, debug_pdr,
8474 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
8475 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
8476 * tree-inline.c (debug_find_tree): Likewise.
8477 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
8478 debug_ppl_powerset_matrix): Likewise.
8479 * var-tracking.c (debug_dv): Likewise.
8480 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
8481 * cfgloop.c (verify_loop_structure): Likewise.
8482 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
8483 * c-common.c (verify_sequence_points): Likewise.
8484 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
8485 debug_candidates, debug_rgn_dependencies): Likewise.
8486 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
8487 * debug_constraint_graph, debug_solution_for_var,
8488 debug_sa_points_to_info): Likewise.
8489 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
8491 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
8492 debug_loops, debug_loop, debug_loop_num): Likewise.
8493 * passes.c (debug_pass): Likewise.
8494 (dump_properties): Likewise; add cfglayout property.
8495 (debug_properties): Likewise.
8496 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
8497 * varpool.c (debug_varpool): Likewise.
8498 * regcprop.c (debug_value_data): Likewise.
8499 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
8500 debug_immediate_uses_for): Likewise.
8502 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
8505 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
8506 Filter out insn-flags.h.
8508 2010-05-29 Jan Hubicka <jh@suse.cz>
8510 * cgraph.h (struct varpool_node_set_def,
8511 struct cgraph_node_set_def): Remove unused AUX pointer.
8512 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
8515 2010-05-29 Jan Hubicka <jh@suse.cz>
8518 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
8520 2010-05-29 Richard Guenther <rguenther@suse.de>
8522 * lto-streamer.c (cached_bp): New global variable.
8523 (bitpack_create): Return the cached bitpack, if available.
8524 (bitpack_delete): Clear and cache the bitpack, if appropriate.
8525 (bp_pack_value): Remove redundant asserts.
8527 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
8530 * tree-if-conv.c (is_true_predicate): New.
8531 (is_predicated): Use is_true_predicate.
8532 (add_to_predicate_list): Same. Do not use unshare_expr.
8533 (add_to_dst_predicate_list): Same.
8535 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
8537 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
8539 (predicate_bbs): Same.
8540 (clean_predicate_lists): Same.
8541 (find_phi_replacement_condition): Do not AND the predicate from
8544 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
8547 * Makefile.in (build/gencondmd.o): Add a missing `\'.
8549 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8552 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
8553 (negdf2): Adjust expander pattern and use negdf2_slow.
8556 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
8558 * basic-block.h (struct control_flow_graph): Move last_label_uid field
8560 * df.h (struct df_base_ref): Move regno field up.
8561 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
8562 * expr.h (struct separate_ops): Move location field up.
8563 * optabs.h (struct optab_d): Move libcall_basename field down.
8564 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
8565 * config/i386/i386.h (struct machine_function): Convert call_abi field
8566 into a bitfield. Move cfa field to the end of the structure.
8568 2010-05-29 Jan Hubicka <jh@suse.cz>
8570 * varpool.c (varpool_get_node): Fix lookup.
8572 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8574 * config/spu/spu-protos.h: Do not include rtl.h. Protect
8575 RTL specific prototypes with #ifdef RTX_CODE.
8576 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
8577 * config/spu/t-spu-elf: Fix dependencies.
8579 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
8581 2010-05-29 Mike Stump <mikestump@comcast.net>
8584 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
8585 TM_H when building to avoid dependency loops.
8587 2010-05-29 Jan Hubicka <jh@suse.cz>
8589 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
8590 refs and body; not the whole node for masters of materialized clones.
8592 2010-05-29 Mike Stump <mikestump@comcast.net>
8594 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
8596 2010-05-29 Jan Hubicka <jh@suse.cz>
8598 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
8599 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
8600 use of clone_function_name.
8601 * cgraph.h (cgraph_create_virtual_clone,
8602 cgraph_function_versioning): update prototypes.
8603 (clone_function_name): Declare.
8604 * ipa-cp.c (ipcp_insert_stage): Update call of
8605 cgraph_create_virtual_clone.
8606 * omp-low.c (create_omp_child_function_name): Use
8607 cgraph_create_virtual_clone.
8608 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
8609 (cgraph_function_versioning): Take SUFFIX argument; produce new name
8610 and make decl local.
8612 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8614 * vec.h: Include statistics.h
8615 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
8618 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8620 * c-lex.c: Do not include c-tree.h.
8621 * c-pretty-print.c: Likewise.
8622 * c-opts.c: Likewise.
8623 * c-gimplify.c: Likewise.
8624 * c-common.c: Likewise.
8625 * c-dump.c: Likewise. Include c-common.h.
8627 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8629 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
8630 before including diagnostic-core.h.
8631 (c_cpp_error): New prototype moved from c-tree.h.
8632 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
8633 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
8634 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
8635 (c_cpp_error): Prototype moved to c-common.h.
8636 * Makefile.in: Update dependency for C_COMMON_H.
8638 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8640 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
8641 * c-common.c (c_register_addr_space): Remove here.
8642 * c-decl.c (c_register_addr_space): Re-add here.
8644 2010-05-28 Mike Stump <mikestump@comcast.net>
8646 * config/darwin-c.c: Remove c-tree.h include.
8648 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8650 * gcc.c: Include diagnostic.h.
8651 (error_count): Remove. All users changed to use errorcount.
8652 (programname): Remove. All users changed to use progname.
8653 (fancy_abort, internal_error, fatal_error, error, warning, inform,
8655 (execute): Don't include "Internal error" and bug reporting
8656 information in argument of internal_error call.
8657 (process_command): Don't increment error_count after calling
8659 (input_filename): Rename to gcc_input_filename. All users
8661 (main): Call diagnostic_initialize. Register delete_temp_files
8662 with atexit. Use seen_error to test for errors.
8663 * gcc.h: Include diagnostic-core.h.
8664 (fatal_error, error, warning): Remove.
8665 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8666 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8667 (gcc.o): Update dependencies.
8669 2010-05-28 Jeff Law <law@redhat.com>
8671 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8673 * ira.h (ira_bad_reload_regno): Declare
8674 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8676 * ira-color.c (update_curr_costs): Free updated hard reg costs.
8677 (ira_reassign_conflict_allocnos): Remove bogus asserts.
8678 (allocno_reload_assign): Likewise.
8680 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
8682 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8685 2010-05-28 Richard Guenther <rguenther@suse.de>
8688 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8689 Stream fixed-point constants mode.
8690 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8692 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8693 Stream fixed-point constants mode.
8694 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8697 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8699 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8700 only place it was called from.
8701 (number_of_latch_executions): Do not return chrec_dont_know when the
8702 may_be_zero is a runtime condition: instead, return a COND_EXPR
8703 including the may_be_zero condition.
8704 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8706 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8709 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8711 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8712 generate COND_EXPRs for degenerate_phi_result.
8714 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8717 * tree-if-conv.c (if_convertible_loop_p): Check the
8718 if-convertibility of phi nodes in non predicated BBs.
8720 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8722 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8724 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8727 * gcc.c (inform, warning, inform): New functions.
8728 (fatal_ice): Rename to internal_error; change cmsgid parameter to
8729 gmsgid. All callers changed.
8730 (notice): Rename to fnotice; add parameter fp. All callers changed.
8731 (fatal_error): Rename to fatal_signal. All users changed.
8732 (fatal): Rename to fatal_error; change cmsgid parameter to
8733 gmsgid. All callers changed.
8734 (process_command): Use warning instead of error for warnings.
8735 (end_going_arg): Don't use _() around argument of error.
8736 (do_spec_1): Use inform for message from %n specs. Use warning
8737 instead of error for warnings.
8738 (main): Use inform for comparison messages. Use warning for
8739 message about unused linker input.
8740 (error): Increment error_count. Print "error: ".
8741 * gcc.h (fatal): Change to fatal_error.
8743 * config/darwin-driver.c (darwin_default_min_version): Use warning
8744 instead of fprintf for warnings.
8745 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8747 2010-05-28 Julian Brown <julian@codesourcery.com>
8749 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8750 (*thumb2_addsi3_compare0_scratch): New.
8751 * config/arm/constraints.md (Pv): New.
8752 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8754 (*addsi3_compare0_scratch): Likewise.
8756 2010-05-28 Jan Hubicka <jh@suse.cz>
8758 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8760 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8761 only on local statics.
8763 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
8765 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8767 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8770 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8771 (OPTION_GLIBC): Define.
8773 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8776 * dwarf2out.c (double_int_type_size_in_bits): New function.
8777 (round_up_to_align): Change first argument and return value to
8779 (field_byte_offset): Work internally on double_ints.
8782 * builtins.c (expand_movstr): Use a temporary pseudo instead
8783 of target even when target is not NULL and not const0_rtx, but
8784 fails movstr predicate.
8785 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8787 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8789 * final.c (rest_of_clean_state): Use %m in errors instead of
8791 * gengtype.c (read_input_list, close_output_files): Use xstrerror
8792 instead of strerror.
8793 * toplev.c (process_options): Use %m in errors instead of strerror
8795 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8798 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
8800 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8801 (ix86_canonical_va_list_type): Make static. Add declaration.
8802 (ix86_enum_va_list): Make static. Reindent.
8803 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8804 (ix86_canonical_va_list_type): Ditto.
8805 (ix86_enum_va_list): Ditto.
8807 2010-05-28 Richard Guenther <rguenther@suse.de>
8809 * lto-wrapper.c (run_gcc): With -save-temps generate a
8810 user-visible ltrans filename. Fixup ltrans unit numbering.
8812 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
8814 * c-common.c (c_common_nodes_and_builtins): Replace use
8815 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8816 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8817 to ix86_enum_va_list.
8818 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8819 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8820 (TARGET_ENUM_VA_LIST_P): Add hook description.
8821 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8822 * target.h (gcc_target): Add enum_va_list hook.
8825 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8826 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8827 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8829 2010-05-28 Alan Modra <amodra@gmail.com>
8832 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8833 emit_library_call machinery to set up __tls_get_addr calls.
8835 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8837 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8839 2010-05-28 Dodji Seketeli <dodji@redhat.com>
8841 Revert fix for PR c++/44188
8842 * c-common.c (is_typedef_decl): Revert the moving of this
8844 * tree.c (is_typedef_decl): ... here.
8845 (typdef_variant_p): Revert the moving of this definition
8846 here from gcc/cp/tree.c.
8847 * c-common.h (is_typedef_decl): Revert the moving of this
8849 * tree.h (is_typedef_decl): ... here.
8850 (typedef_variant_p): Revert the moving of this declaration here
8851 from gcc/cp/cp-tree.h
8852 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8853 (gen_tagged_type_die): Revert the splitting out of ...
8854 (gen_type_die_with_usage): ... this function. Revert the anonymous
8855 tagged type handling.
8856 (gen_typedef_die): Revert emitting DW_TAG_typedef for
8857 typedefs naming anonymous tagged types.
8859 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8861 * config/rs6000/rs6000-modes.def (PSImode): Delete.
8863 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8865 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8866 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8868 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8870 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8871 XER_REGS to CA_REGS throughout.
8872 * config/rs6000/rs6000.h: Same.
8873 (ADDITIONAL_REGISTER_NAMES): Add "xer".
8874 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
8875 that mode_iterator "P" is the size for arithmetic carries as well.
8876 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8878 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8881 * combine.c (struct rtx_subst_pair): Define unconditionally.
8882 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
8883 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8884 Call make_compound_operation on pair->to.
8885 (propagate_for_debug): Don't call make_compound_operation here.
8886 Always use simplify_replace_fn_rtx.
8888 2010-05-27 Sterling Augustine <sterling@tensilica.com>
8890 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8891 * config/xtensa/xtensa.c (override_options): Check
8892 TARGET_FORCE_NO_PIC and set flag_pic.
8893 * config/xtensa/xtensa.opt: Document -mforce-no-pic
8895 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8898 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8899 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8901 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8903 * diagnostic-core.h: New. Contents moved from diagnostic.h and
8905 * diagnostic.c: Don't include toplev.h.
8906 (progname): Define. Moved from toplev.c.
8907 (seen_error): New function.
8908 * diagnostic.h: Include diagnostic-core.h.
8909 (diagnostic_t, emit_diagnostic): Don't declare here.
8910 * toplev.c (progname): Move to toplev.c.
8911 (emit_debug_global_declarations, compile_file, finalize,
8912 do_compile, toplev_main): Use seen_error.
8913 * toplev.h: Include diagnostic-core.h.
8914 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8915 internal_error, warning, warning_at, error, error_n, error_at,
8916 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8917 verbatim, fnotice, progname): Move to diagnostic-core.h.
8918 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8919 (expand_builtin_expect): Use seen_error.
8920 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8921 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8922 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8923 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8924 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8925 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8926 errorcount for errors.
8927 * c-opts.c (c_common_finish): Use seen_error.
8928 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8929 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8930 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8931 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8932 (get_coverage_counts): Use seen_error.
8933 * dwarf2out.c (dwarf2out_finish): Use seen_error.
8934 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8935 gimplify_body): Use seen_error.
8936 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8937 * ipa-pure-const.c (gate_pure_const): Use seen_error.
8938 * ipa-reference.c (gate_reference): Use seen_error.
8939 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8940 * lambda-code.c: Include diagnostic-core.h instead of
8942 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8943 * lto-compress.c: Include diagnostic-core.h instead of
8945 * lto-section-in.c: Include diagnostic-core.h instead of
8947 * lto-streamer-out.c: Include diagnostic-core.h instead of
8949 * lto-streamer.c: Include diagnostic-core.h instead of
8951 (gate_lto_out): Use seen_error.
8952 * matrix-reorg.c: Include diagnostic-core.h instead of
8954 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8955 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8956 (gate_expand_omp, lower_omp_1): Use seen_error.
8957 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8958 (rest_of_decl_compilation, rest_of_type_compilation,
8959 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8960 * tree-cfg.c (label_to_block_fn): Use seen_error.
8961 * tree-inline.c (optimize_inline_calls): Use seen_error.
8962 * tree-mudflap.c (mudflap_finish_file): Use
8964 * tree-optimize.c (gate_all_optimizations,
8965 gate_all_early_local_passes, gate_all_early_optimizations): Use
8967 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8968 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8969 (varpool_remove_unreferenced_decls,
8970 varpool_assemble_pending_decls): Use seen_error.
8971 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8972 (TOPLEV_H, DIAGNOSTIC_H): Update.
8973 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8974 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8975 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8976 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8977 coverage.o, lambda-code.o): Update dependencies.
8979 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8982 * c-common.c (is_typedef_decl): Move this definition ...
8983 * tree.c (is_typedef_decl): ... here.
8984 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8985 * c-common.h (is_typedef_decl): Move this declaration ...
8986 * tree.h (is_typedef_decl): ... here.
8987 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8988 * dwarf2out.c (is_naming_typedef_decl): New function.
8989 (gen_tagged_type_die): Split out of ...
8990 (gen_type_die_with_usage): ... this function. When an anonymous
8991 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8992 is emitted for the typedef.
8993 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8994 anonymous tagged types.
8996 2010-05-27 Jason Merrill <jason@redhat.com>
8998 * print-tree.c (debug_vec_tree): New fn.
8999 (print_vec_tree): New fn.
9000 * tree.h: Declare them.
9001 * gdbinit.in (pvt): New command.
9003 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
9005 * gdbinit.in (pdd): New command.
9007 2010-05-27 Jan Hubicka <jh@suse.cz>
9009 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
9010 (update_caller_keys): Return early if there are no callers;
9011 only update fibheap when decresing the key.
9012 (update_callee_keys): Avoid recursion.
9013 (decide_inlining_of_small_functions): When badness does not match;
9014 re-insert into fibheap.
9016 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
9018 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
9019 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
9020 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
9021 (ALL_HOST_OBJS): Now a union of the above two.
9022 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
9023 all files in ALL_HOST_FRONTEND_OBJS.
9024 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
9026 * c-common.c: Pretend to be a backend file by undefining
9027 IN_GCC_FRONTEND (still need rtl.h here).
9029 2010-05-27 Jan Hubicka <jh@suse.cz>
9031 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
9032 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
9034 2010-05-27 Jan Hubicka <jh@suse.cz>
9036 * sched-ebb.c: Rename struct deps to struct deps_desc.
9038 * sel-sched-ir.c: Likewise.
9039 * sched-deps.c: Likewise.
9040 * sched-int.h: Likewise.
9041 * sched-rgn.c: Likewise.
9043 2010-05-27 Jon Beniston <jon@beniston.com>
9046 * config/lm32/lm32.h: Remove definition of
9047 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
9049 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
9052 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
9054 2010-05-27 Richard Guenther <rguenther@suse.de>
9056 PR tree-optimization/44284
9057 * tree-vect-stmts.c (vectorizable_assignment): Handle
9058 sign-changing conversions as simple copy.
9060 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9062 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
9064 (__gthread_active_p): Check for pthread_create if compiling against
9067 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9069 Support compilation for Android platform. Reimplement -mandroid.
9071 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
9072 (*android*): Set ANDROID_DEFAULT.
9073 (arm*-*-linux*): Include linux-android.h.
9074 (arm*-*-eabi*): Don't include previous -mandroid implementation.
9075 * config/arm/eabi.h: Remove, move Android-specific parts ...
9076 * config/linux-android.h: ... here. New file.
9077 * config/arm/eabi.opt: Rename to ...
9078 * config/linux-android.opt: ... this.
9079 (mandroid): Allow -mno-android option. Initialize based on
9081 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
9082 Move logic to corresponding LINUX_TARGET_* macros.
9083 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
9084 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
9085 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
9086 Android definitions.
9087 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
9088 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
9091 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9093 Add support for Bionic C library
9095 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
9097 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
9098 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
9100 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
9101 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
9102 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
9103 to support multiple C libraries. Handle Bionic.
9104 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
9105 (BIONIC_DYNAMIC_LINKER64): Define.
9106 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
9108 (TARGET_HAS_SINCOS): Enable for Bionic.
9110 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
9111 the last option specified on command line take effect.
9112 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
9114 (mglibc, muclibc): Update.
9116 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
9117 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
9120 * doc/invoke.texi (-mglibc, -muclibc): Update.
9121 (-mbionic): Document.
9123 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9125 * c-common.h (c_register_addr_space): Add prototype.
9126 (ADDR_SPACE_KEYWORD): Remove.
9127 * c-common.c (c_register_addr_space): New function.
9128 (c_addr_space_name): Reimplement.
9129 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
9131 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
9132 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
9134 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
9135 Remove TARGET_ADDR_SPACE_KEYWORDS.
9137 2010-05-27 Joseph Myers <joseph@codesourcery.com>
9139 * input.c: New file.
9140 * input.h (main_input_filename): Move declaration to toplev.h.
9141 * toplev.c (input_location, line_table): Move to input.c
9142 * toplev.h (main_input_filename): Move declaration from input.h.
9143 * tree.c (expand_location): Move to input.c.
9144 * Makefile.in (OBJS-common): Add input.o.
9145 (input.o): Add dependencies.
9147 2010-05-27 Richard Guenther <rguenther@suse.de>
9149 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
9150 for non-existant files.
9151 (fork_execute): Mark args_name file as deleted.
9153 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
9156 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
9157 (narrow_signed_type): Likewise.
9159 2010-05-26 Jan Hubicka <jh@suse.cz>
9161 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
9162 edge only when checking is enabled; check using former_clone_of;
9163 check inline clones too.
9164 (cgraph_materialize_clone): Record former_clone_of pointer.
9165 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
9166 combining redirections; dump args_to_skip bitmap
9167 (cgraph_materialize_all_clones): Do no redirection here.
9168 * ipa-inline.c (inline_transform): Do redirection here.
9169 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
9172 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9174 * config/avr/avr-c.c: Do not include regs.h.
9175 Include cpplib.h for cpp_define and tree.h for c-common.h.
9176 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
9177 * config/avr/t-avr: Fix dependencies for avr-c.o.
9179 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9181 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
9182 string instead of SYMBOL_REF rtx.
9183 * rtl.h (set_stack_check_libfunc): Move prototype from here...
9184 * libfuncs.h: ...to here. Adjust for explow.c change.
9186 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9188 * pretty-print.c: Don't include ggc.h.
9189 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
9190 (identifier_to_locale): Use them for allocation.
9191 * pretty-print.h (identifier_to_locale_alloc,
9192 identifier_to_locale_free): Declare.
9193 * toplev.c (alloc_for_identifier_to_locale): New.
9194 (general_init): Set identifier_to_locale_alloc and
9195 identifier_to_locale_free.
9196 * Makefile.in (pretty-print.o): Update dependencies.
9198 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
9200 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
9201 pointer types if they have different alignment or mode.
9203 2010-05-26 Anatoly Sokolov <aesok@post.ru>
9205 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9206 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9207 * config/sparc/sparc-protos.h (function_value): Remove declaration.
9208 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
9209 sparc_function_value_regno_p): New functions.
9210 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9211 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9212 (function_value): Rename to...
9213 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
9214 argument to 'outgoing'.
9215 (function_arg_record_value, function_arg_union_value,
9216 function_arg_vector_value): Update comment.
9218 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
9220 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
9221 (fde_needed_for_eh_p): New predicate.
9222 (output_call_frame_info): Use it throughout to decide whether FDEs
9223 are needed for EH purpose.
9224 (dwarf2out_begin_prologue): Reorder assignments.
9226 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9228 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
9229 special case loop->header.
9230 (is_predicated): New.
9231 (if_convertible_loop_p): Call it.
9233 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9235 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
9236 iterator in parameter. Do not generate code during the analysis.
9237 (tree_if_convert_cond_stmt): Removed.
9238 (tree_if_convert_stmt): Removed.
9239 (predicate_bbs): New.
9240 (if_convertible_loop_p): Call predicate_bbs.
9241 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
9242 now contains all the analysis part.
9244 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9246 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
9247 statements in the analysis part.
9248 (tree_if_convert_stmt): Update comment.
9249 (remove_conditions_and_labels): New.
9250 (combine_blocks): Call remove_conditions_and_labels.
9251 (tree_if_conversion): Update comment.
9253 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9255 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
9256 than 2 predecessors or more than 2 successors.
9258 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9260 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9261 of loops in which the data dependence analysis fails.
9263 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9265 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
9266 CDI_POST_DOMINATORS.
9267 (tree_if_conversion): Same.
9269 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9271 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
9273 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9275 * tree-if-conv.c: Update copyright years. Fix comments.
9278 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
9280 * builtin-types.def (BT_INT128): New primitive type.
9281 (BT_UINT128): Likewise.
9282 * c-common.c (c_common_r): Add __int128 keyword.
9283 (c_common_type_for_size): Handle __int128.
9284 (c_common_type_for_mode): Likewise.
9285 (c_common_signed_or_unsigned_type): Likewise.
9286 (c_common_nodes_and_builtins): Add builtin type
9287 if target supports 128-bit integer scalar.
9288 * c-common.h (enum rid): Add RID_INT128.
9289 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
9290 if target supports 128-bit integer scalar.
9291 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
9292 (finish_declspecs): Likewise.
9293 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
9294 (c_token_starts_declspecs): Likewise.
9295 (c_parser_declspecs): Likewise.
9296 (c_parser_attributes): Likewise.
9297 (c_parser_objc_selector): Likewise.
9298 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
9299 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
9300 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
9301 * tree.c (make_or_reuse_type): Likewise.
9302 (make_unsigned_type): Likewise.
9303 (build_common_tree_nodes_2): Likewise.
9304 * tree.h (enum integer_type_kind): Add itk_int128 and
9305 itk_unsigned_int128.
9306 (int128_integer_type_node): New define.
9307 (int128_unsigned_type_node): New define.
9308 * doc/extend.texi: Add documentation about __int128 type.
9310 2010-05-26 Richard Guenther <rguenther@suse.de>
9312 * tree-ssa-sccvn.c (copy_nary): Adjust.
9313 (copy_phis): Rename to ...
9314 (copy_phi): ... this. Adjust.
9315 (copy_references): Rename to ...
9316 (copy_reference): ... this. Adjust.
9317 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9318 result into the valid table.
9320 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9322 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
9323 insn-config.h, insn-codes.h, recog.h, and optabs.h.
9325 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9327 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
9329 2010-05-26 Richard Guenther <rguenther@suse.de>
9331 * opts.c (common_handle_option): Handle OPT_Ofast.
9333 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9335 * diagnostic.c: Don't include opts.h.
9336 (permissive_error_option): Define.
9337 (diagnostic_initialize): Take n_opts parameter. Allocate memory
9338 for classify_diagnostic. Don't use memset for
9339 classify_diagnostic. Initialize new and recently added fields.
9340 (diagnostic_classify_diagnostic): Use context->n_opts instead of
9342 (diagnostic_report_diagnostic): Pass context parameter to
9343 diagnostic_report_warnings_p. Use option_enabled and option_name
9345 (emit_diagnostic): Use permissive_error_option.
9346 (permerror): Likewise.
9347 * diagnostic.h: Don't include options.h.
9348 (struct diagnostic_context): Add n_opts, opt_permissive,
9349 inhibit_warnings, warn_system_headers, option_enabled and
9350 option_name fields. Change classify_diagnostic to a pointer.
9351 * opts-diagnostic.h: New file.
9352 * opts.c: Include opts-diagnostic.h.
9353 (common_handle_option): Set global_dc fields for -Wfatal-errors,
9354 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
9355 (option_name): New function.
9356 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
9357 (c_common_handle_option): Set global_dc->permissive for
9359 * c-common.c (c_cpp_error): Save and restore
9360 global_dc->warn_system_headers, not variable warn_system_headers.
9361 * toplev.c: Include opts-diagnostic.h.
9362 (general_init): Update call to diagnostic_initialize. Set
9363 global_dc->show_column, global_dc->option_enabled and
9364 global_dc->option_name.
9365 (process_options): Don't set global_dc fields here.
9366 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
9367 (diagnostic.o, opts.o, toplev.o): Update dependencies.
9369 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9371 * config/picochip/picochip.md (movsi): Split a movsi from a
9374 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9376 * ggc-zone.c: Update copyright year.
9377 (poison_region): Mark memory for Valgrind as undefined before
9378 memset () call and inaccessible afterwards.
9379 (ggc_pch_total_size): Change type of i to int.
9381 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9383 * ggc-common.c (ggc_free_overhead): Allow empty slot.
9385 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9387 * ggc-common.c: Update copyright year.
9388 (ggc_rlimit_bound): Remove prototype. Compile only if
9389 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
9390 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
9391 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
9392 (ggc_min_heapsize_heuristic): Likewise.
9394 2010-05-26 Richard Guenther <rguenther@suse.de>
9396 PR rtl-optimization/44164
9397 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
9398 no-common access-path disambiguation.
9399 (indirect_ref_may_alias_decl_p): Adjust.
9400 (indirect_refs_may_alias_p): Likewise.
9401 (refs_may_alias_p_1): Likewise.
9403 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9405 * c-typeck.c: Do not include expr.h.
9407 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9409 * rtl.h (decl_default_tls_model): Move prototype from here...
9410 * output.h: ...to here.
9411 * c-decl.c: Do not include rtl.h.
9412 * c-pragma.c: Likewise.
9413 * c-parser.c: Likewise.
9414 * c-gimplify.c: Likewise. And also not hard-reg-set.
9415 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
9416 FIXME note for it. Add a FIXME note for expr.h.
9417 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
9418 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
9421 2010-05-26 Jakub Jelinek <jakub@redhat.com>
9424 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
9425 or total_size is larger than red zone size for non-V4 ABI, emit a
9426 stack_tie resp. frame_tie insn before stack pointer restore.
9427 * config/rs6000/rs6000.md (frame_tie): New insn.
9429 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
9431 * function.h (struct function): Add can_throw_non_call_exceptions bit.
9432 * lto-streamer-in.c (input_function): Stream it in.
9433 * lto-streamer-out.c (output_function): Stream it out.
9434 * function.c (allocate_struct_function): Set it.
9435 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
9436 for flag_non_call_exceptions.
9437 * cfgbuild.c (control_flow_insn_p): Likewise.
9438 (make_edges): Likewise.
9439 * cfgexpand.c (expand_stack_alignment): Likewise.
9440 * combine.c (distribute_notes): Likewise.
9441 * cse.c (cse_extended_basic_block): Likewise.
9442 * except.c (insn_could_throw_p): Likewise.
9443 * gcse.c (simple_mem): Likewise.
9444 * ipa-pure-const.c (check_call): Likewise.
9445 (check_stmt ): Likewise.
9446 * lower-subreg.c (lower-subreg.c): Likewise.
9447 * optabs.c (emit_libcall_block): Likewise.
9448 (prepare_cmp_insn): Likewise.
9449 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
9450 * postreload.c (rest_of_handle_postreload): Likewise.
9451 * reload1.c (reload_as_needed): Likewise.
9452 (emit_input_reload_insns): Likewise.
9453 (emit_output_reload_insns): Likewise.
9454 (fixup_abnormal_edges): Likewise.
9455 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
9456 * store-motion.c (find_moveable_store): Likewise.
9457 * tree-eh.c (stmt_could_throw_p): Likewise.
9458 (tree_could_throw_p): Likewise.
9459 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9460 * config/arm/arm.c (arm_expand_prologue): Likewise.
9461 (thumb1_expand_prologue): Likewise.
9462 * config/rx/rx.md (cbranchsf4): Likewise.
9464 * config/s390/s390.c (s390_emit_prologue): Likewise.
9465 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
9466 (inline_forbidden_into_p): New predicate.
9467 (expand_call_inline): Use it to forbid inlining.
9468 (tree_can_inline_p): Likewise.
9470 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9472 * config/i386/i386-c.c: Do not include rtl.h.
9473 * config/i386/t-i386: Update dependencies.
9475 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9477 * attribs.c: Do not include rtl.h.
9478 * Makefile.in: Update dependencies.
9480 2010-05-25 Anatoly Sokolov <aesok@post.ru>
9482 * double-int.h (double_int_and): New.
9483 * combine.c (try_combine): Clean up, use double_int_* and
9484 immed_double_int_const functions.
9486 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9488 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
9489 stderr to /dev/null instead of grep -q.
9490 * configure: Regenerate.
9492 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9494 * Makefile.in (EXCEPT_H): Fix typo.
9496 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
9498 * ira-build.c (update_conflict_hard_reg_costs): New.
9499 (ira_build): Call update_conflict_hard_reg_costs.
9501 2010-05-25 Jakub Jelinek <jakub@redhat.com>
9504 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
9506 (intersect_loc_chains): Walk the s2var's loc_chain together
9507 with s1node chain as long as the locations are equal, don't
9508 call find_loc_in_1pdv in that case.
9511 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
9512 (copy_bind_expr): ... instead of here.
9513 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
9514 if the block hasn't been remapped.
9515 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
9516 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
9518 2010-05-25 Richard Guenther <rguenther@suse.de>
9521 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
9522 out-of-bounds array accesses.
9524 2010-05-25 Richard Guenther <rguenther@suse.de>
9526 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
9527 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
9528 (run_gcc): Re-organize to make cleanup easier.
9530 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9532 * config/s390/s390.c (optimization_options): Fix and move the
9533 flag_prefetch_loop_arrays override ...
9534 (override_options): ... here.
9536 2010-05-25 Joseph Myers <joseph@codesourcery.com>
9538 * diagnostic.c: Don't include plugin.h.
9539 (diagnostic_report_diagnostic): Don't handle plugins specially
9540 here. Pass context to internal_error callback.
9541 * diagnostic.h (struct diagnostic_context): Add context parameter
9542 to internal_error callback.
9543 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
9544 * plugin.h (struct diagnostic_context): Declare.
9545 (warn_if_plugins, plugins_internal_error_function): Declare.
9546 * toplev.c (general_init): Set global_dc->internal_error.
9547 * Makefile.in (diagnostic.o): Update dependencies.
9549 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
9551 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
9552 * config/rs6000/t-darwin64: New.
9553 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
9556 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
9559 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
9560 match the original (and intended) behaviour before r159557. This
9561 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
9564 2010-05-25 Richard Guenther <rguenther@suse.de>
9566 * doc/invoke.texi: Document -Ofast.
9567 * target.h (struct gcc_target): Add handle_ofast.
9568 * target-def.h (TARGET_HANDLE_OFAST): Add.
9569 (TARGET_INITIALIZER): Adjust.
9570 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
9571 * common.opt (Ofast): Add.
9573 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
9575 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
9576 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
9578 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
9581 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
9582 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
9583 false_rtx. Use false_rtx to compute the correct *ptest for reversed
9584 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
9586 2010-05-25 Jakub Jelinek <jakub@redhat.com>
9588 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
9589 DW_OP_minus with negated offset instead of DW_OP_plus.
9590 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
9592 2010-05-25 Wei Guozhi <carrot@google.com>
9594 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
9595 tst instruction and a new alternative.
9596 * config/arm/constraints.md (Pu): New constraint.
9598 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
9600 * function.c (assign_stack_local_1): Initialize variable
9601 to avoid warning when bootstrapping at -O3.
9603 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
9605 * configure.ac (all_lang_makefiles): Remove everything related to it.
9606 * configure: Regenerate.
9607 * Makefile.in: Fix reference to ada Make-lang.in.
9608 Remove support for LANG_MAKEFILES.
9610 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
9611 Sandra Loosemore <sandra@codesourcery.com>
9613 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
9614 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
9615 description. Add arm_neon_fp16_ok.
9616 (Add Options): Add arm_neon and arm_neon_fp16.
9618 2010-05-24 Joseph Myers <joseph@codesourcery.com>
9620 * diagnostic.c: Don't include flags.h.
9621 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
9622 context parameters. Check flags in the context passed as a parameter.
9623 (diagnostic_build_prefix): Add context parameter. Check
9624 show_column flag in context.
9625 (diagnostic_action_after_output): Check fatal_errors flag in context.
9626 (diagnostic_report_current_module): Check show_column flag in context.
9627 (default_diagnostic_starter): Update call to
9628 diagnostic_build_prefix.
9629 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
9630 (emit_diagnostic): Pass context to permissive_error_kind.
9631 (permerror): Pass context to permissive_error_kind.
9632 * diagnostic.h (struct diagnostic_context): Add show_column,
9633 pedantic_errors, permissive and fatal_errors fields.
9634 (diagnostic_build_prefix): Update prototype.
9636 * toplev.c (process_options): Set flags in global_dc from
9637 flag_show_column, flag_pedantic_errors, flag_permissive,
9639 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
9640 to diagnostic_build_prefix.
9641 * Makefile.in (diagnostic.o): Update dependencies.
9643 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
9645 * config/i386/ia32intrin.h (__crc32q): Define only if
9646 __SSE4_2__ is defined.
9648 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
9652 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9653 DECL_VISIBILITY_SPECIFIED.
9654 (emutls_decl): Set DECL_PRESERVE_P and copy
9655 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9656 (emutls_finalize_control_var): New callback.
9657 (emutls_finish): Finalize emutls control variables.
9658 * toplev.c (compile_file): Move the call to emutls_finish ()
9659 before varpool_assemble_pending_decls ().
9661 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
9663 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9664 added to the preprocessor condition.
9666 2010-05-24 Paul Brook <paul@codesourcery.com>
9668 * gengtype-lex.l: Add HARD_REG_SET.
9669 * expr.c (expand_expr_real_1): Record writes to hard registers.
9670 * function.c (rtl_data): Add asm_clobbers.
9671 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9672 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9673 Use crtl->asm_clobbers.
9675 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9677 * doc/makefile.texi (Makefile): Mention stages 'profile'
9678 and 'feedback' for profiledbootstrap.
9680 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
9683 * config/i386/i386.c (def_builtin): Properly check
9684 OPTION_MASK_ISA_64BIT.
9686 2010-05-23 Joseph Myers <joseph@codesourcery.com>
9688 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9689 typedefs with different but compatible types. Allow duplicate
9690 typedefs with the same type except for pedantic non-C1X, but give
9691 warning for variably modified types.
9692 * c-typeck.c (tagged_types_tu_compatible_p,
9693 function_types_compatible_p, type_lists_compatible_p,
9694 comptypes_internal): Add parameter different_types_p; set
9695 *different_types_p for different but compatible types. All
9697 (comptypes_check_different_types): New.
9698 * c-tree.h (comptypes_check_different_types): Declare.
9700 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9702 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
9703 * jump.c: Include basic-block.h.
9704 * profile.c: Likewise.
9705 * tree-profile.c: Likewise.
9706 * coverage.c: Likewise.
9707 * basic-block.h (optimize_function_for_size_p): Move to function.h.
9708 (optimize_function_for_speed_p): Likewise.
9709 * function.h (optimize_function_for_size_p,
9710 optimize_function_for_speed_p): Moved here from basic-block.h.
9711 * Makefile.in: Update dependencies.
9713 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9715 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9716 before calling make; allow override through $MAKE.
9717 * doc/invoke.texi (Optimize Options): Document override.
9719 2010-05-23 Anatoly Sokolov <aesok@post.ru>
9721 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9722 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9723 (rs6000_mode_dependent_address_ptr): Make static.
9724 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9725 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9728 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
9731 * config/i386/i386.c: Make sure that the correct regparm is passed.
9733 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9735 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9736 * sbitmap.c: ...to here to internalize sbitmap element access.
9737 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9738 Explain why basic-block.h is included.
9739 * function.h: Include tm.h for CUMULATIVE_ARGS.
9740 * Makefile.in: Update dependencies.
9742 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9744 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9746 * sbitmap.h (struct sbitmap_def): Do not typedef here.
9747 * sbitmap.c: Include sbitmap.h.
9748 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9749 hard-reg-set.h. Split everything related to regsets out from here...
9750 * regset.h: ...to here. New file.
9751 * df.h: Include regset.h and sbitmap.h.
9752 * tree-flow.h: Likewise.
9753 * cfgloop.h: Likewise.
9754 * except.h: Do not include sbitmap.h. Include hashtab.h.
9755 * cgraph.h: Include vec.h and function.h.
9756 * reload.h (struct insn_chain): Change types of live_throughout
9757 and dead_or_set from regset_head to bitmap_head.
9758 (compute_use_by_pseudos): Be defined also if regset.h is not included.
9759 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9760 spilled_regs from regset_head to bitmap_head to avoid dependency
9762 * sel-sched-ir.h: Include regset.h.
9763 * reload.c: Include df.h before reload.h.
9764 * caller-save.c: Likewise.
9765 * reload1.c: Likewise.
9767 (mark_elimination): Update type of r to bitmap, consistent with
9769 * dominance.c: Include bitmap.h.
9770 * modulo-sched.c: Include df.h.
9771 * cfganal.c: Include bitmap.h and sbitmap.h.
9772 * cfgbuild.c: Include sbitmap.h.
9773 * lcm.c: Include sbitmap.h.
9774 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9775 * domwalk.c: Include sbitmap.h, exclude ggc.h.
9776 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9777 * cselib.c: Include bitmap.h.
9778 * tree-optimize.c: Include regset.h.
9779 * stmt.c: Include bitmap.h.
9780 * Makefile.in: Update dependencies.
9782 2010-05-22 Jan Hubicka <jh@suse.cz>
9784 * cgraph.h (struct varpool_node): Add same_comdat_group.
9785 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9787 (output_varpool): Update call of lto_output_varpool_node.
9788 (input_varpool): Read same_comdat_group pointer.
9789 (input_varpool_1): Fixup same_comdat_group pointer.
9790 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9791 group is needed, all are.
9792 * varpool.c (varpool_remove_node): Remove node from same comdat group
9794 (varpool_analyze_pending_decls): Walk same comdat groups.
9796 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9798 * rtl.h (union rtunion_def): Remove rt_bit member.
9799 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9800 * print-rtl (print_rtx): Do not print the member.
9801 * gengtype.c (adjust_field_rtx_def): Do not handle it.
9802 * gengenrtl.c (type_from_format): Likewise.
9803 (accessor_from_format): Likewise.
9805 2010-05-22 Joseph Myers <joseph@codesourcery.com>
9807 * dbgcnt.c: Include toplev.h instead of errors.h.
9808 * ira-emit.c: Don't include errors.h.
9809 * ira.c: Include toplev.h instead of errors.h.
9810 * lto-compress.c: Include toplev.h instead of errors.h.
9811 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9812 ira.o, dbgcnt.o): Update dependencies.
9814 2010-05-22 Richard Guenther <rguenther@suse.de>
9816 * gimple.c (gimple_types_compatible_p): Check type qualifications
9817 before merging pointer to complete and pointer to incomplete type.
9818 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9819 we use our own resolution algorithm. The gold linker plugin
9820 doesn't do the job we want it to do here.
9822 2010-05-22 Anatoly Sokolov <aesok@post.ru>
9824 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9825 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9826 (sparc_mode_dependent_address_p): New function.
9828 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9830 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9832 * timevar.c: Do not include any core headers.
9833 (timevar_print): De-i18n-ize.
9834 (print_time): Likewise.
9835 * timevar.h (timevar_push, timevar_pop): Make inline functions.
9837 2010-05-21 Joseph Myers <joseph@codesourcery.com>
9839 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9841 (diagnostic_initialize): Initialize x_data not last_function.
9842 (diagnostic_report_current_function): Move to tree-diagnostic.c.
9843 (default_diagnostic_starter): Call
9844 diagnostic_report_current_module not
9845 diagnostic_report_current_function.
9846 (diagnostic_report_diagnostic): Initialize x_data not
9848 (verbatim): Likewise.
9849 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9851 (struct diagnostic_context): Change last_function to x_data.
9852 (diagnostic_auxiliary_data): Replace with
9853 diagnostic_context_auxiliary_data and
9854 diagnostic_info_auxiliary_data.
9855 (diagnostic_last_function_changed, diagnostic_set_last_function,
9856 diagnostic_report_current_function): Move to tree-diagnostic.h.
9857 (print_declaration, dump_generic_node, print_generic_stmt,
9858 print_generic_stmt_indented, print_generic_expr,
9859 print_generic_decl, debug_c_tree, dump_omp_clauses,
9860 print_call_name, debug_generic_expr, debug_generic_stmt,
9861 debug_tree_chain, default_tree_printer): Move to
9862 tree-pretty-print.h.
9863 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9864 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9865 gimple-pretty-print.h.
9866 * pretty-print.c: Don't include tree.h
9867 (pp_base_format): Don't handle %K here.
9868 (pp_base_tree_identifier): Move to tree-pretty-print.c.
9869 * pretty-print.h (text_info): Change abstract_origin to x_data.
9870 (pp_tree_identifier, pp_unsupported_tree,
9871 pp_base_tree_identifier): Move to tree-pretty-print.h.
9872 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9873 tree-pretty-print.h: New files.
9874 * tree-pretty-print.c: Include tree-pretty-print.h.
9875 (percent_K_format): New. Moved from pretty-print.c.
9876 (pp_base_tree_identifier): Move from pretty-print.c.
9877 * c-objc-common.c: Include tree-pretty-print.h.
9878 (c_tree_printer): Handle %K here.
9879 * langhooks.c: Include tree-diagnostic.h.
9880 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9881 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9882 (default_tree_printer): Handle %K using percent_K_format.
9883 (general_init): Use default_tree_diagnostic_starter.
9884 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9885 (free_lang_data): Use default_tree_diagnostic_starter.
9886 * c-pretty-print.c: Include tree-pretty-print.h.
9887 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9888 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9889 * dwarf2out.c: Include tree-pretty-print.h.
9890 * except.c: Include tree-pretty-print.h.
9891 * gimple-pretty-print.c: Include tree-pretty-print.h and
9892 gimple-pretty-print.h.
9893 * gimplify.c: Include tree-pretty-print.h.
9894 * graphite-poly.c: Include tree-pretty-print.h and
9895 gimple-pretty-print.h.
9896 * ipa-cp.c: Include tree-pretty-print.h.
9897 * ipa-inline.c: Include gimple-pretty-print.h.
9898 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9899 * ipa-pure-const.c: Include gimple-pretty-print.h.
9900 * ipa-struct-reorg.c: Include tree-pretty-print.h and
9901 gimple-pretty-print.h.
9902 * ipa-type-escape.c: Include tree-pretty-print.h.
9903 * print-rtl.c: Include tree-pretty-print.h.
9904 * print-tree.c: Include gimple-pretty-print.h.
9905 * sese.c: Include tree-pretty-print.h.
9906 * tree-affine.c: Include tree-pretty-print.h.
9907 * tree-browser.c: Include tree-pretty-print.h.
9908 * tree-call-cdce.c: Include gimple-pretty-print.h.
9909 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9910 * tree-chrec.c: Include tree-pretty-print.h.
9911 * tree-data-ref.c: Include tree-pretty-print.h and
9912 gimple-pretty-print.h.
9913 * tree-dfa.c: Include tree-pretty-print.h.
9914 * tree-if-conv.c: Include tree-pretty-print.h and
9915 gimple-pretty-print.h.
9916 * tree-inline.c: Include tree-pretty-print.h.
9917 * tree-into-ssa.c: Include tree-pretty-print.h and
9918 gimple-pretty-print.h.
9919 * tree-nrv.c: Include tree-pretty-print.h.
9920 * tree-object-size.c: Include tree-pretty-print.h and
9921 gimple-pretty-print.h.
9922 * tree-outof-ssa.c: Include tree-pretty-print.h and
9923 gimple-pretty-print.h.
9924 * tree-parloops.c: Include tree-pretty-print.h and
9925 gimple-pretty-print.h.
9926 * tree-predcom.c: Include tree-pretty-print.h and
9927 gimple-pretty-print.h.
9928 * tree-scalar-evolution.c: Include tree-pretty-print.h and
9929 gimple-pretty-print.h.
9930 * tree-sra.c: Include tree-pretty-print.h.
9931 * tree-ssa-address.c: Include tree-pretty-print.h.
9932 * tree-ssa-alias.c: Include tree-pretty-print.h.
9933 * tree-ssa-ccp.c: Include tree-pretty-print.h and
9934 gimple-pretty-print.h.
9935 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9936 * tree-ssa-copy.c: Include tree-pretty-print.h and
9937 gimple-pretty-print.h.
9938 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9939 * tree-ssa-dce.c: Include tree-pretty-print.h and
9940 gimple-pretty-print.h.
9941 * tree-ssa-dom.c: Include tree-pretty-print.h and
9942 gimple-pretty-print.h.
9943 * tree-ssa-dse.c: Include gimple-pretty-print.h.
9944 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9945 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9946 * tree-ssa-live.c: Include tree-pretty-print.h and
9947 gimple-pretty-print.h.
9948 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9949 gimple-pretty-print.h.
9950 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9951 gimple-pretty-print.h.
9952 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9953 gimple-pretty-print.h.
9954 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9955 gimple-pretty-print.h.
9956 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9957 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9958 * tree-ssa-operands.c: Include tree-pretty-print.h and
9959 gimple-pretty-print.h.
9960 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9961 gimple-pretty-print.h.
9962 * tree-ssa-pre.c: Include tree-pretty-print.h and
9963 gimple-pretty-print.h.
9964 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9965 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9966 gimple-pretty-print.h.
9967 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9968 gimple-pretty-print.h.
9969 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9970 * tree-ssa-ter.c: Include tree-pretty-print.h and
9971 gimple-pretty-print.h.
9972 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9973 * tree-ssa.c: Include tree-pretty-print.h and
9974 gimple-pretty-print.h.
9975 * tree-stdarg.c: Include gimple-pretty-print.h.
9976 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9977 * tree-tailcall.c: Include tree-pretty-print.h and
9978 gimple-pretty-print.h.
9979 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9980 gimple-pretty-print.h.
9981 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9982 gimple-pretty-print.h.
9983 * tree-vect-loop.c: Include tree-pretty-print.h and
9984 gimple-pretty-print.h.
9985 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9986 * tree-vect-slp.c: Include tree-pretty-print.h and
9987 gimple-pretty-print.h.
9988 * tree-vect-stmts.c: Include tree-pretty-print.h and
9989 gimple-pretty-print.h.
9990 * tree-vectorizer.c: Include tree-pretty-print.h.
9991 * tree-vrp.c: Include tree-pretty-print.h and
9992 gimple-pretty-print.h.
9993 * value-prof.c: Include tree-pretty-print.h and
9994 gimple-pretty-print.h.
9995 * var-tracking.c: Include tree-pretty-print.h.
9996 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9997 (tree-diagnostic.o): New dependencies.
9998 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9999 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
10000 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
10001 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
10002 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
10003 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
10004 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
10005 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
10006 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
10007 tree-ssa-address.o, tree-ssa-loop-niter.o,
10008 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
10009 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
10010 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
10011 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
10012 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
10013 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
10014 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
10015 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
10016 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
10017 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
10018 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
10019 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
10020 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
10021 tree-switch-conversion.o, var-tracking.o, value-prof.o,
10022 cfgexpand.o, pretty-print.o): Update dependencies.
10024 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
10026 * tree-ssa-structalias.c: Remove tm_p.h from include.
10028 2010-05-21 Jeff Law <law@redhat.com>
10030 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
10032 2010-05-21 Jason Merrill <jason@redhat.com>
10034 * tree-eh.c (cleanup_is_dead_in): New.
10035 (lower_try_finally): Don't generate a dead cleanup region.
10036 (lower_cleanup): Likewise.
10038 2010-05-21 Jakub Jelinek <jakub@redhat.com>
10041 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
10042 unchain each use from the cyclic next_regno_use chain first.
10044 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10046 * real: Do not include gmp.h, mpfr.h, and mpc.h.
10047 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
10048 (real_value_negate, real_value_abs): New prototypes.
10049 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
10050 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
10051 new include file for interface between MPFR and REAL_VALUE_TYPE.
10052 * real.c: Include realmpfr.h.
10053 (real_arithmetic2): Remove legacy function.
10054 (real_value_negate): New.
10055 (real_value_abs): New.
10056 (mfpr_from_real, real_from_mpfr): Move from here...
10057 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
10058 * builtins.c: Include realmpfr.h.
10059 * fold-const.c: Include realmpfr.h.
10060 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
10061 (fold_negate_const): Likewise.
10062 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
10063 * toplev.c: Include realmpfr.h.
10064 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
10065 and real_value_negate.
10066 * fixed-value.c (check_real_for_fixed_mode): Likewise.
10067 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
10068 (vfp3_const_double_index): Likewise.
10069 (arm_print_operand): Likewise.
10070 * Makefile.in: Update dependencies.
10072 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10074 * config/s390/s390.c (override_options): Increase the default
10075 of max-completely-peel-times.
10077 2010-05-21 Julian Brown <julian@codesourcery.com>
10078 Mark Mitchell <mark@codesourcery.com>
10080 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
10081 sibling calls for Thumb-1.
10082 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
10083 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
10085 (*call_insn, *call_value_insn): Don't use for Thumb-2.
10086 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
10088 (return): New expander.
10089 (*arm_return): New name for ARM return insn.
10090 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
10092 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
10094 * config.gcc (sparc64-*-rtems*): New target.
10096 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
10098 * tree.c (build_function_decl_skip_args): Fix grammar.
10099 (build_function_type_list_1): Fix typos, adjust formatting.
10101 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10103 * tree.h: Include real.h and fixed-value.h as basic datatypes.
10104 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
10105 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
10106 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
10107 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
10108 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
10109 tree-pretty-print.c, tree-loop-distribution.c,
10110 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
10111 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
10112 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
10113 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
10114 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
10115 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
10116 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
10117 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
10118 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
10119 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
10120 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
10121 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
10122 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
10123 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
10124 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
10125 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
10126 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
10127 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
10128 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
10129 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
10130 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
10131 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
10132 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
10133 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
10134 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
10135 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
10136 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
10137 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
10138 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
10139 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
10140 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
10141 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
10142 config/score/score7.c, config/score/score.c, config/arm/arm.c,
10143 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
10144 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
10145 config/bfin/bfin.c: Clean up redundant includes.
10146 * Makefile.in: Update accordingly.
10148 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
10150 PR middle-end/44204
10151 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
10152 statement has no arguments.
10154 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
10157 * varasm.c (emutls_decl): Merge attributes to new decl.
10159 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
10161 PR middle-end/44101
10162 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
10163 around the uniquized constructor if its type requires a conversion.
10165 2010-05-21 Jakub Jelinek <jakub@redhat.com>
10168 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
10169 at -O0 goto_locus of any of the incoming edges differs from
10170 goto_locus of outgoing edge, or gimple_location of any of the
10173 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
10175 * ira.c (ira_non_ordered_class_hard_regs): Define.
10176 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
10177 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
10178 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
10179 cost of unaligned hard regs when allocating multi-reg pseudos.
10181 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10183 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
10184 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
10185 for TARGET_NO_FLOAT.
10186 * config/mips/mips.c (mips_file_start): Expand conditional expression
10187 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
10188 (mips_override_options): Move -mno-float override -msoft-float and
10190 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
10191 Condition(TARGET_SUPPORTS_NO_FLOAT).
10192 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
10193 __mips_no_float here.
10194 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
10195 (TARGET_SUPPORTS_NO_FLOAT): Define.
10196 * config/mips/sdemtk.opt: Delete.
10198 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
10200 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
10202 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
10205 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
10206 * configure: Regenerate.
10207 * config.in: Regenerate.
10208 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
10209 instead of sahf only for 64bit targets.
10211 2010-05-20 Jakub Jelinek <jakub@redhat.com>
10214 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
10215 setup_ref_regs for DEBUG_INSNs.
10217 2010-05-20 Jan Hubicka <jh@suse.cz>
10219 PR middle-end/44197
10220 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
10222 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
10225 * df-scan.c (df_ref_compare): Stabilize sort.
10227 2010-05-20 Jakub Jelinek <jakub@redhat.com>
10229 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
10230 argument. Don't use DW_OP_piece if offset is non-zero,
10231 put offset into second DW_OP_bit_piece argument.
10232 (dw_sra_loc_expr): Adjust callers. For memory expressions
10235 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
10238 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
10239 settings for 16-bit-constant "addo" alternative.
10241 2010-05-19 James E. Wilson <wilson@codesourcery.com>
10243 * config/mips/mips-dsp.md (add<DSPV:mode>3,
10244 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
10247 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
10248 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
10251 2010-05-19 Joseph Myers <joseph@codesourcery.com>
10253 * diagnostic.c (FLOAT, FFS): Don't undefine.
10254 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
10255 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
10258 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10260 * combine.c (propagate_for_debug): Call make_compound_operation
10261 on the source value.
10262 (try_combine): When implementing a split chosen by find_split_point,
10263 either copy i2src or set it to null. Assert that i2src is not null
10264 before substituting into CALL_INSN_FUNCTION_USAGE.
10266 2010-05-19 Anatoly Sokolov <aesok@post.ru>
10268 * double-int.h (double_int_ior): New function.
10269 * tree.h (build_int_cst_wide_type): Remove.
10270 * tree.c (build_int_cst_wide_type): Remove.
10271 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
10272 of build_int_cst_wide_type.
10273 * stor-layout.c (set_sizetype): (Ditto.).
10274 * dojump.c (do_jump): Use build_int_cstu instead of
10275 build_int_cst_wide_type.
10277 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
10279 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
10280 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
10281 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
10282 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
10283 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
10284 propagate the 'data' argument to copy_tree_r.
10285 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
10286 Propagate 'data' argument to walk_tree.
10287 (copy_if_shared): New function.
10288 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
10289 (unmark_visited): New function.
10290 (unshare_body): Call copy_if_shared instead of doing it manually.
10291 (unvisit_body): Call unmark_visited instead of doing it manually.
10293 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
10295 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
10296 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
10297 * hooks.c: Likewise.
10298 * target-def.h (TARGET_FOLD_BUILTIN): Define to
10299 hook_tree_tree_int_treep_bool_null.
10300 * target.h (struct gcc_target): Update signature of fold_builtin
10302 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
10303 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
10304 instead of the call expression.
10305 (fold_builtin_call_array): Pass n and argarray directly.
10306 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
10308 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
10309 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
10310 `i' and use it in place of `arity'.
10311 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
10312 Dereference `args' directly.
10313 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
10315 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10317 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10319 (Directives): Document optional dg-require-effective-target
10322 2010-05-19 Richard Guenther <rguenther@suse.de>
10325 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
10327 2010-05-19 Richard Guenther <rguenther@suse.de>
10329 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
10330 * common.opt (fwhopr=): New.
10331 * opts.c (common_handle_option): Handle OPT_fwhopr.
10332 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
10333 * collect2.c (main): Match -fwhopr*.
10334 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10335 Execute ltrans stage in parallel when jobs is bigger than 1.
10337 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10339 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10340 pentiumpro on Solaris 8/x86 with Sun as.
10341 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
10343 (gcc_cv_as_ix86_quad): Check for .quad directive.
10344 * configure: Regenerate.
10345 * config.in: Regenerate.
10346 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
10348 2010-05-19 Martin Jambor <mjambor@suse.cz>
10350 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
10351 also for indirect edges. Actual printing moved...
10352 (ipa_print_node_jump_functions_for_edge): ...here.
10353 (ipa_compute_jump_functions): Renamed to
10354 ipa_compute_jump_functions_for_edge and made static.
10355 (ipa_compute_jump_functions): New function.
10356 (make_edge_direct_to_target): Check if the number of arguments on
10357 the newly direct edge is the same as the number of parametrs of
10359 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
10360 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
10361 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10362 analysis functions unconditionally, call the new
10363 ipa_analyze_params_uses on the node instead of every edge.
10365 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
10367 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
10369 (dump_mem_ref): Adopt debug code to handle a tree as step. This
10370 also checks for a constant int vs. non-constant but
10371 loop-invariant steps.
10372 (find_or_create_group): Change the sort algorithm to only consider
10373 steps that are constant ints.
10374 (idx_analyze_ref): Adopt code to handle a tree instead of a
10375 HOST_WIDE_INT for step.
10376 (gather_memory_references_ref): Handle tree instead of int and be
10377 prepared to see a NULL_TREE.
10378 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
10379 prefetches if the step cannot be calculated at compile time.
10380 (issue_prefetch_ref): Issue prefetches for non-constant but
10381 loop-invariant steps.
10383 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10386 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10388 * tree.h (build_call_list): Remove.
10389 * tree.c (build_call_list): Remove.
10391 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10393 * tree.h (build_call_list): Remove.
10394 * tree.c (build_call_list): Remove.
10396 2010-05-18 Jan Hubicka <jh@suse.cz>
10398 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
10400 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
10402 PR rtl-optimization/43332
10403 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
10405 2010-05-18 Anatoly Sokolov <aesok@post.ru>
10407 * tree.h (build_int_cstu): Implement as static inline.
10408 * tree.c (build_int_cstu): Remove function.
10409 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
10412 2010-05-18 Richard Guenther <rguenther@suse.de>
10415 * lto-wrapper.c (verbose): New variable. Initialize from -v.
10416 (debug): Initialize from -save-temps.
10417 (collect_execute): Print command-line when verbose.
10418 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
10419 for ltrans invocation. Produce -dumpbase flag again.
10420 (process_args): Remove.
10422 * collect2.c (maybe_run_lto_and_relink): Only pass object
10423 files to lto-wrapper.
10424 * gcc.c (LINK_COMMAND_SPEC): Likewise.
10426 2010-05-18 Jan Hubicka <jh@suse.cz>
10428 * opts.c (decode_options): Do not disable whopr at ipa_cp.
10429 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
10431 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10434 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
10436 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
10439 2010-05-18 Jakub Jelinek <jakub@redhat.com>
10442 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
10443 rtx_equal_p inline.
10445 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10447 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
10448 lto-macho as lto_binary_reader.
10450 * darwin.c (darwin_asm_named_section): Do not add assembler comment
10451 after .section directive; just print it before the directive instead.
10453 2010-05-17 Jan Hubicka <jh@suse.cz>
10455 * cgraph.c (cgraph_create_virtual_clone): Only check
10456 versionable_function_p when not in wpa and checking is enabled.
10457 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
10458 there are no more functions to materialize.
10460 2010-05-17 Jan Hubicka <jh@suse.cz>
10462 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
10463 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
10465 (output_cgraph): Call output_cgraph_opt_summary.
10466 (input_cgrpah): Call input_cgraph_opt_summary.
10467 (output_cgraph_opt_summary_p, output_node_opt_summary,
10468 input_node_opt_summary, input_cgraph_opt_section): New functions.
10469 * lto-section-in.c (lto_section_name): Add cgraphopt.
10470 * tree-inline.c (tree_function_versioning): Handle parm_num.
10471 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
10472 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
10474 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10476 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
10477 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
10478 the insn to prefetch ratio heuristic to loops with known trip count.
10480 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10482 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
10483 (schedule_prefetches): Do not generate a prefetch if the unroll factor
10484 is far from what is required by the prefetch.
10486 2010-05-17 Jan Hubicka <jh@suse.cz>
10488 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
10489 (ipcp_estimate_growth): Likewise.
10490 (ipcp_const_param_count): Likewise.
10491 (ipcp_insert_stage): Likewise.
10492 * ipa-prop.c (visit_load_for_mod_analysis): New function.
10493 (visit_store_addr_for_mod_analysis): Set used flag.
10494 (ipa_detect_param_modifications): Set used flag for SSE params;
10495 update use of walk_stmt_load_store_addr_ops.
10496 (ipa_print_node_params): Print used flag.
10497 (ipa_write_node_info): Stream used flag.
10498 (ipa_read_node_info): Likewise.
10499 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
10500 (ipa_is_param_used): New function.
10501 (lto_ipa_fixup_call_notes): Remove unused declaration.
10503 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10506 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
10507 * configure: Regenerate.
10508 * config.in: Regenerate.
10509 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
10510 !HAVE_AS_IX86_REP_LOCK_PREFIX.
10511 Don't emit whitespace.
10512 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
10513 (*rep_movsi): Likewise.
10514 (*rep_movsi_rex64): Likewise.
10515 (*rep_movqi): Likewise.
10516 (*rep_movqi_rex64): Likewise.
10517 (*rep_stosdi_rex64): Likewise.
10518 (*rep_stossi): Likewise.
10519 (*rep_stossi_rex64): Likewise.
10520 (*rep_stosqi): Likewise.
10521 (*rep_stosqi_rex64): Likewise.
10522 (*cmpstrnqi_nz_1): Use {%;} after repz.
10523 (*cmpstrnqi_nz_rex_1): Likewise.
10524 (*cmpstrnqi_1): Likewise.
10525 (*cmpstrnqi_rex_1): Likewise.
10526 (*strlenqi_1): Use {%;} after repnz.
10527 (*strlenqi_rex_1): Likewise.
10528 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
10529 (*sync_compare_and_swap<mode>): Likewise.
10530 (sync_double_compare_and_swap<mode>): Likewise.
10531 (*sync_double_compare_and_swapdi_pic): Likewise.
10532 (sync_old_add<mode>): Likewise.
10533 (sync_add<mode>): Likewise.
10534 (sync_sub<mode>): Likewise.
10535 (sync_<code><mode>): Likewise.
10537 2010-05-17 Martin Jambor <mjambor@suse.cz>
10539 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
10540 otr_token and polymorphic.
10541 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
10542 (cgraph_clone_edge): Copy the above fields.
10543 * tree.c (get_binfo_at_offset): New function.
10544 * tree.h (get_binfo_at_offset): Declare.
10545 * ipa-prop.h (enum jump_func_type): Added known_type jump function
10546 type, reordered items, updated comments.
10547 (union jump_func_value): Added base_type field, reordered fields.
10548 (enum ipa_lattice_type): Moved down in the file.
10549 (struct ipa_param_descriptor): New field polymorphic.
10550 (ipa_is_param_polymorphic): New function.
10551 * ipa-prop.c: Include gimple.h and gimple-fold.h.
10552 (ipa_print_node_jump_functions): Print known type jump functions.
10553 (compute_complex_pass_through): Renamed to...
10554 (compute_complex_assign_jump_func): this.
10555 (compute_complex_ancestor_jump_func): New function.
10556 (compute_known_type_jump_func): Likewise.
10557 (compute_scalar_jump_functions): Create known type and complex ancestor
10559 (ipa_note_param_call): New parameter polymorphic, set the corresponding
10560 flag in the call note accordingly.
10561 (ipa_analyze_call_uses): Renamed to...
10562 (ipa_analyze_indirect_call_uses): this. New parameter target, define
10563 variable var only in the block where it is used.
10564 (ipa_analyze_virtual_call_uses): New function.
10565 (ipa_analyze_call_uses): Likewise.
10566 (combine_known_type_and_ancestor_jfs): Likewise.
10567 (update_jump_functions_after_inlining): Implemented handling of a
10568 number of new jump function types combination.
10569 (print_edge_addition_message): Removed.
10570 (make_edge_direct_to_target): New function.
10571 (try_make_edge_direct_simple_call): Likewise.
10572 (try_make_edge_direct_virtual_call): Likewise.
10573 (update_call_notes_after_inlining): Renamed to...
10574 (update_indirect_edges_after_inlining): this. Moved edge creation for
10575 indirect calls to try_make_edge_direct_simple_call, also calls
10576 try_make_edge_direct_virtual_call for virtual calls.
10577 (ipa_print_node_params): Changed the header message.
10578 (ipa_write_jump_function): Stream also known type jump functions.
10579 (ipa_read_jump_function): Likewise.
10580 (ipa_write_indirect_edge_info): Stream new fields in
10581 cgraph_indirect_call_info.
10582 (ipa_read_indirect_edge_info): Likewise.
10583 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
10586 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10588 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
10590 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10592 * tree.h (CALL_EXPR_ARGS): Delete.
10593 (call_expr_arglist): Delete.
10594 * tree.c (call_expr_arglist): Delete.
10595 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
10596 targetm.fold_builtin.
10597 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
10598 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
10599 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
10600 arglist parameter. Use CALL_EXPR_ARG.
10601 (picochip_expand_builtin_3op): Likewise.
10602 (picochip_expand_builtin_2opvoid): Likewise.
10603 (picochip_expand_array_get): Likewise.
10604 (picochip_expand_array_put): Likewise.
10605 (picochip_expand_array_testport): Likewise.
10606 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
10607 rather than arglist.
10608 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
10610 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
10611 than TREE_VALUE and TREE_CHAIN.
10612 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10613 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
10616 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10619 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
10620 to have no fallthru edge.
10622 PR middle-end/44102
10623 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
10624 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
10625 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
10626 add BARRIER after previous bb if needed.
10628 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10630 * tree.c (build_function_type_list_1): Remove bogus assert condition.
10632 2010-05-17 Alan Modra <amodra@gmail.com>
10634 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
10635 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
10636 with copy_reg rtx param.
10637 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
10638 Correct cases where code for ABI_V4 did not initialise the reg
10639 used to access frame. Also leave frame_reg_rtx as sp for large
10640 frames that save no regs.
10642 2010-05-17 Martin Jambor <mjambor@suse.cz>
10644 PR middle-end/44133
10645 * tree-sra.c (create_access_replacement): New parameter rename, mark
10646 the replaement for renaming only when it is true.
10647 (get_access_replacement): Pass true in the rename parameter of
10648 create_access_replacement.
10649 (get_unrenamed_access_replacement): New function.
10650 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10651 replacement declaration from it.
10653 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
10655 * function.c (try_fit_stack_local, add_frame_space): New static
10657 (assign_stack_local_1): Use them. Look for opportunities to use
10658 space previously wasted on alignment.
10659 * function.h (struct frame_space): New.
10660 (struct rtl_data): Add FRAME_SPACE_LIST member.
10661 * reload1.c (something_was_spilled): New static variable.
10662 (alter_reg): Set it.
10663 (reload): Test it in addition to testing if the frame size changed.
10665 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
10667 * config/s390/s390.c: Define sane prefetch settings and activate
10668 flag_prefetch_loop_arrays on -O3.
10669 * config/s390/s390.h: Declare that read can use write prefetch.
10671 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10673 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10676 2010-05-16 Jan Hubicka <jh@suse.cz>
10678 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10679 function body; do not check stdarg field of struct function.
10681 2010-05-16 Jan Hubicka <jh@suse.cz>
10683 * cgraph.c (dump_cgraph_node): Dump versionable flag.
10684 * cgraph.h (cgraph_local_info): Add versionable flag.
10685 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10686 (ipcp_versionable_function_p): Use it.
10687 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10690 2010-05-16 Jan Hubicka <jh@suse.cz>
10692 * cgraph.c (cgraph_clone_node): Take decl argument and insert
10693 clone into hash when it is different from orig.
10694 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10695 * cgraph.h (cgraph_clone_node): Update prototype.
10696 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10697 (lto_cgraph_encoder_delete): Delete body map.
10698 (lto_cgraph_encoder_size): Move to header.
10699 (lto_cgraph_encoder_encode_body_p,
10700 lto_set_cgraph_encoder_encode_body): New.
10701 (lto_output_node): Do not take written_decls argument; output clone_of
10703 (add_node_to): Add include_body_argument; call
10704 lto_set_cgraph_encoder_encode_body on master of the clone.
10705 (add_references): Update use of add_node_to.
10706 (compute_ltrans_boundary): Likewise.
10707 (output_cgraph): Do not create written_decls bitmap.
10708 (input_node): Take nodes argument; stream in clone_of correctly.
10709 (input_cgraph_1): Update use of input_node.
10710 * lto-streamer-out.c (lto_output): Use encoder info to decide
10711 what bodies to output.
10712 * ipa-inline.c (cgraph_clone_inlined_nodes,
10713 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10714 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10715 (lto_cgraph_encoder_size): Define here.
10716 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10719 2010-05-16 Richard Guenther <rguenther@suse.de>
10721 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10723 * ipa-type-escape.c (gate_type_escape_vars): Run when
10724 -fipa-struct-reorg runs.
10725 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10726 * common.opt (fipa-type-escape): Remove.
10728 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10730 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10731 (decode_options): Likewise.
10732 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10734 2010-05-16 Jan Hubicka <jh@suse.cz>
10736 * ipa.c (function_and_variable_visibility): Also bring local all
10739 2010-05-16 Richard Guenther <rguenther@suse.de>
10741 * alias.c (nonoverlapping_memrefs_p): Remove use of
10742 IPA type-escape information.
10744 2010-05-16 Joseph Myers <joseph@codesourcery.com>
10746 * c-common.c (c_common_reswords): Add _Static_assert for C.
10747 * c-parser.c (c_token_starts_declaration,
10748 c_parser_next_token_starts_declaration,
10749 c_parser_static_assert_declaration_no_semi,
10750 c_parser_static_assert_declaration): New.
10751 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10752 Handle static assertions if static_assert_ok.
10753 (c_parser_external_declaration, c_parser_declaration_or_fndef,
10754 c_parser_compound_statement_nostart, c_parser_label,
10755 c_parser_for_statement, c_parser_objc_methodprotolist,
10756 c_parser_omp_for_loop): All callers of
10757 c_parser_declaration_or_fndef changed.
10758 (c_parser_struct_declaration): Handle static assertions.
10759 (c_parser_compound_statement_nostart): Use
10760 c_parser_next_token_starts_declaration and
10761 c_token_starts_declaration to detect start of declarations.
10762 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10765 2010-05-16 Anatoly Sokolov <aesok@post.ru>
10767 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10768 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10769 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10770 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10771 (mmix_function_outgoing_value): Rename to...
10772 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10773 (mmix_function_value_regno_p): Make static.
10774 (mmix_libcall_value): New function.
10775 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10776 mmix_function_value_regno_p): Remove declaration.
10778 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10780 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10781 BUILT_IN_ALLOCA if stack checking is enabled.
10783 2010-05-16 Richard Guenther <rguenther@suse.de>
10785 * var-tracking.c (vars_copy_1): Inline ...
10786 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
10787 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
10788 (variable_merge_over_cur): Adjust. Merge asserts.
10789 (variable_merge_over_src): Likewise.
10790 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10791 (variable_post_merge_new_vals): Merge asserts.
10792 (variable_post_merge_perm_vals): Likewise.
10793 (find_mem_expr_in_1pdv): Likewise.
10794 (dataflow_set_different_value): Remove.
10795 (onepart_variable_different_p): Merge asserts.
10796 (variable_different_p): Likewise.
10797 (dataflow_set_different_1): Inline ...
10798 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
10799 (emit_notes_for_differences_1): Merge asserts.
10801 2010-05-16 Richard Guenther <rguenther@suse.de>
10803 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10804 * optabs.c (libfunc_decl_hash): Likewise.
10805 * varasm.c (emutls_decl): Likewise.
10807 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
10809 * c-decl.c: Don't include gimple.h.
10810 (merge_decls): Do not copy gimple_body.
10812 2010-05-15 Jason Merrill <jason@redhat.com>
10814 * c.opt: Add -fnothrow-opt.
10816 2010-05-15 Jan Hubicka <jh@suse.cz>
10818 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10820 * passes.c (ipa_write_summaries): Write all analyzed nodes.
10822 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
10824 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10825 * Makefile.in: Add it.
10826 Fix all other Makefile dependencies for changes below.
10827 * tree.h: Include it instead of defining VEC primitives here.
10828 * gimple.h: Likewise.
10830 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10831 * except.h: Include vecir.h, break dependence on tree.h.
10833 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10835 * tree-iterator.c: ...to here.
10836 * tree-iterator.h: Fix file introduction comment. Add extern markers.
10838 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
10840 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10841 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10842 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10843 tree-mudflap.h, and target.h.
10844 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10845 predict.h, tree-inline.h, gimple.h, and langhooks.h.
10846 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10847 Add FIXME for why gimple.h is still included (should be unnecessary
10848 since GCC 4.5 gimplification unit-at-a-time).
10849 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10850 * c-pragma.c: Add FIXME for why function.h needs to be included just
10851 for cfun, at front-end level.
10852 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10853 Do not include ggc.h, but include vecprim.h for VEC(char).
10854 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10855 Explain why target.h is included.
10856 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10857 Explain why gimple.h is included.
10858 * c-ppoutput.c: Do not include tm.h.
10859 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
10860 * c-parses.c: Explain why rtl.h is included, and that this (and only
10861 this) is also why tm.h must be included.
10862 Do not include except.h.
10863 * c-lang.c: Do not include ggc.h.
10865 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
10867 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10869 2010-05-15 Joseph Myers <joseph@codesourcery.com>
10871 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10872 unions by default if those structs and unions have no tags. Do
10873 not condition anonymous struct and unions handling on flag_iso.
10874 Allow anonymous structs and unions for C1X.
10875 (finish_struct): Do not diagnose lack of named fields when
10876 anonymous structs and unions present for C1X. Accept flexible
10877 array members in structure with anonymous structs or unions but no
10878 directly named fields.
10879 * doc/extend.texi (Unnamed Fields): Update.
10881 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
10883 * gimple.h (compare_field_offset): Rename into...
10884 (gimple_compare_field_offset): ...this.
10885 * gimple.c (compare_field_offset): Rename into...
10886 (gimple_compare_field_offset): ...this. Compare the full access if
10887 the offset is self-referential.
10888 (gimple_types_compatible_p): Adjust for above renaming.
10889 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
10890 DECL_NONADDRESSABLE_P flag of fields before merging them.
10892 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
10894 * tree.h (ctor_to_list): Delete.
10895 * tree.c (ctor_to_list): Delete.
10897 2010-05-15 Jan Hubicka <jh@suse.cz>
10899 * ipa-reference.c: Include toplev.h
10900 (is_proper_for_analysis): Only add to all_module_statics
10901 if it is allocated.
10902 (write_node_summary_p, stream_out_bitmap,
10903 ipa_reference_write_optimization_summary,
10904 ipa_reference_read_optimization_summary): New.
10905 (struct ipa_opt_pass_d pass_ipa_reference): Add
10906 optimization summary streaming.
10907 * lto-cgraph.c (referenced_from_this_partition_p,
10908 reachable_from_this_partition_p): New functions.
10909 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10910 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10911 * opts.c (decode_options): Enable ipa_reference.
10912 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10913 * lto-streamer.h (referenced_from_this_partition_p,
10914 reachable_from_this_partition_p): Declare.
10916 2010-05-15 Richard Guenther <rguenther@suse.de>
10918 PR tree-optimization/44038
10919 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10920 taking the address of a V_C_E of a constant.
10922 2010-05-14 Jan Hubicka <jh@suse.cz>
10924 * tree.h (memory_identifier_string): Remove.
10925 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10926 (ipa_reference_global_vars_info_d): Remove statics_not_read and
10927 statics_not_written.
10928 (ipa_reference_optimization_summary_d): New structure.
10929 (ipa_reference_optimization_summary_t): New type and vector.
10930 (ipa_reference_vars_info_d): Embedd structures instead of using
10932 (reference_vars_to_consider): Remove out of GGC space.
10933 (module_statics_escape): Remove.
10934 (global_info_obstack): Rename to ...
10935 (optimization_summary_obstack): ... this one.
10936 (initialization_status_t): Remove.
10937 (memory_identifier_string): Remove.
10938 (get_reference_vars_info): Fix indenting.
10939 (set_reference_vars_info): Likewise.
10940 (get_reference_optimization_summary): New.
10941 (set_reference_optimization_summary): New.
10942 (get_global_reference_vars_info): Remove.
10943 (ipa_reference_get_read_global): Remove.
10944 (ipa_reference_get_written_global): Remove.
10945 (ipa_reference_get_not_read_global): Update.
10946 (ipa_reference_get_not_written_global): Update.
10947 (is_proper_for_analysis): Outlaw addressable.
10948 (propagate_bits): Update for new datastructures.
10949 (analyze_variable): Remove.
10950 (init_function_info): Update for new datastructures.
10951 (clean_function_local_data): Remove.
10952 (clean_function): Remove.
10953 (copy_global_bitmap): Use optimizations_summary_obstack.
10954 (duplicate_node_data): Duplicate optimization summary only.
10955 (remove_node_data): Remove optimization summary only.
10956 (generate_summary): Do not analyze variables; do not compute
10957 module_statics_escape; do not prune solutions by it.
10958 (read_write_all_from_decl): Fix typos in comments.
10959 (propagate): Doscover readonly and nonaddressable first;
10960 update for new datastructures; share global bitmaps.
10961 * ipa-reference.h (ipa_reference_get_read_global,
10962 ipa_reference_get_written_global): Remove.
10963 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10964 * Makefile.in: Remove ipa-refereference from GT files.
10966 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10969 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10970 for all SYMBOL_REF_DECLs.
10972 2010-05-14 Jan Hubicka <jh@suse.cz>
10974 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10975 (varpool_all_refs_explicit_p): New inline function.
10976 * ipa-reference.c: Update comment.
10977 (module_statics_written): Remove.
10978 (get_static_decl): Remove.
10979 (ipa_init): Do not initialize module_statics_written.
10980 (analyze_function): Likewise.
10981 (generate_summary): Likewise; do not compute module_statics_readonly
10982 and do not update variable flags.
10983 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10984 * ipa.c: Inlucde flags.h
10985 (cgraph_local_node_p): New.
10986 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10987 promote functions to local.
10988 (ipa_discover_readonly_nonaddressable_vars): New function.
10989 (function_and_variable_visibility): Use cgraph_local_node_p.
10990 * varpool.c (varpool_finalize_decl): Set force_output for
10991 DECL_PRESERVE_P vars.
10993 2010-05-14 Jan Hubicka <jh@suse.cz>
10995 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10997 2010-05-14 Richard Guenther <rguenther@suse.de>
10999 PR tree-optimization/44119
11000 * tree-ssa-pre.c (eliminate): Properly mark replacement of
11001 a PHI node necessary.
11003 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
11005 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
11007 2010-05-14 Jason Merrill <jason@redhat.com>
11010 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
11011 (gimple_call_set_nothrow): New.
11012 * gimple.c (gimple_build_call_from_tree): Call it.
11013 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
11016 * gimplify.c (gimplify_seq_add_stmt): No longer static.
11017 * gimple.h: Declare it.
11018 * gimple.c (gimple_build_eh_filter): No ops.
11020 2010-05-14 Jan Hubicka <jh@suse.cz>
11022 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
11023 nodes already in queue.
11024 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
11025 re-enqueueing node.
11027 2010-05-14 Jakub Jelinek <jakub@redhat.com>
11030 * cfgexpand.c (expand_debug_expr): If non-memory op0
11031 has BLKmode, return NULL.
11033 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
11035 * config.gcc: Add support for --with-cpu option for bdver1.
11036 * config/i386/i386.h (TARGET_BDVER1): New macro.
11037 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
11038 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11039 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
11040 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11041 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
11042 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
11043 (processor_type): Add PROCESSOR_BDVER1.
11044 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
11045 processor_type in config/i386/i386.h.
11046 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
11047 movaps <reg, reg> instead of movapd <reg, reg> when replacing
11048 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
11049 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
11050 to emit packed xor instead of packed double/packed integer
11051 xor for SSE and AVX when moving a zero value.
11052 * config/i386/sse.md: Add check for
11053 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
11054 movapd/movdqa for SSE and AVX.
11055 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
11056 single logical operations i.e and, or and xor instead of packed double
11057 logical operations for SSE and AVX.
11058 * config/i386/i386-c.c (ix86_target_macros_internal):
11059 Add PROCESSOR_BDVER1.
11060 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
11061 (has_fma4, has_xop): New.
11062 * config/i386/i386.c (bdver1_cost): New variable.
11063 (m_BDVER1): New macro.
11064 (m_AMD_MULTIPLE): Add m_BDVER1.
11065 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
11066 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
11067 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
11068 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
11069 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
11070 x86_tune_sse_partial_reg_dependency,
11071 x86_tune_sse_unaligned_load_optimal,
11072 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
11073 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
11074 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
11075 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
11076 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
11077 Enable/disable for bdver1.
11078 (processor_target_table): Add bdver1_cost.
11079 (cpu_names): Add bdver1.
11080 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
11081 processor_alias_table.
11082 (ix86_expand_vector_move_misalign): Change.
11083 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
11084 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
11085 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
11086 of movupd/movdqu for SSE and AVX.
11087 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
11088 (ix86_tune_adjust_cost): Add code for bdver1.
11089 (standard_sse_constant_opcode): Add check for
11090 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
11091 of packed double xor for SSE and AVX.
11093 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
11095 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
11096 result to unsigned.
11098 2010-05-14 Tristan Gingold <gingold@adacore.com>
11100 * toplev.c (default_debug_hooks): Remove this variable.
11101 (process_options): Remove assignments to default_debug_hooks.
11103 2010-05-14 Martin Jambor <mjambor@suse.cz>
11105 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
11106 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
11107 * langhooks.h (struct lang_hooks_for_decls): Removed field
11109 * tree.c (free_lang_data): Remove assignment to
11110 lang_hooks.fold_obj_type_ref.
11111 * tree.def (OBJ_TYPE_REF): Update comment.
11113 2010-05-14 Richard Guenther <rguenther@suse.de>
11115 PR tree-optimization/44124
11116 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
11118 2010-05-14 Alan Modra <amodra@gmail.com>
11121 * config/rs6000/rs6000.c (struct machine_function): Reorder
11122 fields for better packing. Add lr_save_state.
11123 (rs6000_ra_ever_killed): Return lr_save_state if set.
11124 (rs6000_emit_eh_reg_restore): Set lr_save_state.
11126 2010-05-13 Jan Hubicka <jh@suse.cz>
11128 * varpool.c (decide_is_variable_needed): Drop code checking
11129 TREE_SYMBOL_REFERENCED.
11131 2010-05-13 Jan Hubicka <jh@suse.cz>
11133 * final.c (output_addr_const): Do not call mark_decl_referenced.
11134 * cgraphunit.c (process_function_and_variable_attributes): Use
11135 mark_needed_node dirrectly.
11136 (assemble_thunk): Do not call mark_decl_referenced.
11138 2010-05-13 Anatoly Sokolov <aesok@post.ru>
11140 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
11142 2010-05-13 Jeff Law <law@redhat.com>
11144 * ira-conflicts.c (print_allocno_conflicts): New function broken out
11146 (print_conflicts): Call print_allocno_conflicts.
11148 2010-05-13 Jakub Jelinek <jakub@redhat.com>
11151 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
11154 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
11156 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
11157 t-mingw-w64 or t-mingw-w32 for multilib configuration.
11158 * config/i386/t-mingw-w32: New.
11159 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
11161 2010-05-13 Martin Jambor <mjambor@suse.cz>
11163 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
11165 * gimple-fold.c (get_base_binfo_for_type): New function.
11166 (gimple_get_relevant_ref_binfo): Likewise.
11167 (gimple_fold_obj_type_ref_known_binfo): Likewise.
11168 (gimple_fold_obj_type_ref): Likewise.
11169 (fold_gimple_call): Simplify condition for folding virtual calls
11170 and call gimple_fold_obj_type_ref.
11171 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
11172 (gimple_fold_obj_type_ref_known_binfo): Likewise.
11174 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
11176 * config/rs6000/rs6000-protos.h
11177 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
11178 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
11179 (rs6000_debug_mode_dependent_address)
11180 (rs6000_mode_dependent_address_ptr): Likewise.
11182 2010-05-13 Jakub Jelinek <jakub@redhat.com>
11185 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
11187 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
11188 * tree-sra.c (create_access_replacement): Call unshare_expr before
11189 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
11190 * dwarf2out.c: Include tree-flow.h.
11191 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
11192 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11193 Handle DW_OP_bit_piece.
11194 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
11195 construct_piece_list, adjust_piece_list): New functions.
11196 (add_var_loc_to_decl): Handle SRA optimized variables.
11197 Adjust for var_loc_note to loc field renaming.
11198 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
11199 in VAR_LOCATION note.
11200 (new_loc_descr_op_bit_piece): New function.
11201 (dw_sra_loc_expr): New function.
11202 (dw_loc_list): Use it. Don't handle the last range after the
11203 loop, handle it inside of the loop. Adjust for var_loc_note
11204 to loc field renaming.
11205 (add_location_or_const_value_attribute): Only special case
11206 single entry loc lists if loc is NOTE_P. Adjust for
11207 var_loc_note to loc field renaming.
11208 (dwarf2out_var_location): Don't set newloc->var_loc_note
11209 and newloc->next here.
11211 2010-05-12 Jan Hubicka <jh@suse.cz>
11213 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
11215 * cgraph.h (cgraph_only_called_directly_p,
11216 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
11217 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
11218 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
11220 * ipa.c (cgraph_remove_unreachable_nodes): Use
11221 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
11223 * tree-inline.c (copy_bb): Check address_taken flag.
11224 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
11225 externally_visible flag.
11227 2010-05-12 Jason Merrill <jason@redhat.com>
11231 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
11232 * sdbout.c (plain_type_1): Likewise.
11233 * dwarf2out.c (is_base_type): Likewise.
11234 (gen_type_die_with_usage): Likewise. Generate
11235 DW_TAG_unspecified_type for any LANG_TYPE.
11237 2010-05-12 Jan Hubicka <jh@suse.cz>
11239 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
11241 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
11242 (cgraph_clone_edge): Update.
11243 (cgraph_node_remove_callees): Remove indirect calls too.
11244 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
11245 (cgraph_create_indirect_edge): Update prototype.
11246 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
11247 is_proper_for_analysis.
11248 (add_new_function, visited_nodes, function_insertion_hook_holder,
11249 get_local_reference_vars_info, mark_address_taken, mark_address,
11250 mark_load, mark_store, check_asm_memory_clobber, check_call,
11251 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
11252 (ipa_init): Do not initialize visited_nodes;
11253 function_insertion_hook_holder.
11254 (analyze_variable): Rewrite.
11255 (analyze_function): Rewrite.
11256 (copy_local_bitmap): Remove.
11257 (duplicate_node_dat): Do not duplicate local info.
11258 (generate_summary): Simplify to only walk cgraph.
11259 (write_node_summary_p, ipa_reference_write_summary,
11260 ipa_reference_read_summary): Remove.
11261 (propagate): Do not remove function insertion;
11263 (pass_ipa_reference): NULLify summary handling fields.
11264 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
11265 (input_edge): Input ecf_flags.
11266 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
11267 (update_indirect_edges_after_inlining): Ignore edges with unknown
11270 2010-05-12 Sriraman Tallam <tmsriram@google.com>
11272 * implicit-zee.c: New file.
11273 * tree-pass.h (pass_implicit_zee): Declare.
11274 * passes.c (init_optimization_passes): Add zee pass.
11275 * common.opt (fzee): New flag.
11276 * timevar.def (TV_ZEE): Define.
11277 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
11279 * Makefile.in (implicit-zee.o): Add new build file.
11281 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11282 Nathan Froyd <froydnj@codesourcery.com>
11284 * c-common.c (sync_resolve_params): Remove write-only variable.
11286 2010-05-12 Anatoly Sokolov <aesok@post.ru>
11288 * target.h (struct gcc_target): Add mode_dependent_address_p field.
11289 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11290 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
11291 * targhooks.c (default_mode_dependent_address_p): New function.
11292 * targhooks.h (default_mode_dependent_address_p): Declare function.
11293 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11294 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
11295 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
11296 target hook. Change return type to bool.
11297 * recog.h (mode_dependent_address_p): Change return type to bool.
11299 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11300 Nathan Froyd <froydnj@codesourcery.com>
11302 * tree-mudflap.c (build_function_type_0, build_function_type_1,
11303 build_function_type_2, build_function_type_3): Remove.
11304 (mudflap_init): Use build_function_type_list.
11306 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11307 Nathan Froyd <froydnj@codesourcery.com>
11309 * coverage.c (build_fn_info_value): Call build_constructor instead of
11310 build_constructor_from_list.
11311 (build_ctr_info_value): Likewise.
11312 (build_gcov_info): Likewise.
11314 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
11316 * tree.c (build_constructor): Compute TREE_CONSTANT for the
11317 resultant constructor.
11318 (build_constructor_single): Don't set TREE_CONSTANT.
11319 (build_constructor_from_list): Don't compute TREE_CONSTANT.
11321 2010-05-12 Jan Hubicka <jh@suse.cz>
11323 * cgraph.h (struct varpool_node): Add aux.
11324 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
11325 * varpool.c (varpool_remove_node): Do not remove initializer.
11326 (varpool_reset_queue): Export.
11327 (varpool_finalize_decl): Volatile vars are forced to be output.
11328 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
11330 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
11331 process_references, varpool_can_remove_if_no_refs): New functions.
11332 (cgraph_remove_unreachable_nodes): Handle variables too.
11334 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
11337 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
11339 2010-05-12 Jakub Jelinek <jakub@redhat.com>
11341 PR middle-end/44085
11342 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
11343 change value of ORT_TASK.
11344 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
11345 (omp_notice_threadprivate_variable): New function.
11346 (omp_notice_variable): Call it for threadprivate variables.
11347 If enclosing ctx is a task, print enclosing task rather than
11348 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
11349 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
11350 if task has untied clause.
11353 * dwarf2out.c (base_type_die): Don't add name attribute here.
11354 (modified_type_die): Instead of sizetype use
11355 its underlying original type. If a DW_TAG_base_type doesn't
11356 have name added, add __unknown__.
11357 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
11358 always call force_type_die instead.
11360 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
11362 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
11363 for __stack_chk_guard.
11365 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11367 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
11368 don't call start_source_file debug hook here...
11369 (finish_options): ... but here, after outputting predefined and
11370 command line defines and undefs.
11372 PR middle-end/44071
11373 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
11375 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
11376 optimizing away empty bb with no successors, move over its
11377 footer chain to fallthru predecessor.
11378 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
11379 (rtl_split_edge): For asm goto call patch_jump_insn even if
11380 splitting fallthru edge.
11383 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
11384 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
11385 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11386 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
11390 * c-parser.c (c_parser_expression): Mark LHS of a comma
11391 expression as read if it is a decl, handled component or
11392 COMPOUND_EXPR with that on the RHS.
11393 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
11394 if it is a decl or handled component.
11396 2010-05-11 Jan Hubicka <jh@suse.cz>
11398 * lto-symtab.c (lto_symtab_free): New function.
11399 * lto-streamer.h (lto_symtab_free): Declare.
11401 2010-05-11 Jan Hubicka <jh@suse.cz>
11403 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
11404 that if function is needed it is reachable.
11405 (lto_output_node): See if it the function is reachable or referenced.
11406 (output_cgraph): Update call of lto_output_node.
11407 * lto-streamer.h (reachable_from_other_partition_p): Declare.
11409 2010-05-11 Jan Hubicka <jh@suse.cz>
11411 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
11414 2010-05-11 Jan Hubicka <jh@suse.cz>
11416 PR tree-optimize/44063
11417 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
11419 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
11421 (estimate_function_body_sizes): Compute sizes even when disregarding.
11423 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
11425 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
11427 2010-05-11 Jan Hubicka <jh@suse.cz>
11429 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
11430 into every boundary.
11432 2010-05-11 Jan Hubicka <jh@suse.cz>
11434 * matrix-reorg.c (matrix_reorg): Rebuild edges.
11436 2010-05-11 Jan Hubicka <jh@suse.cz>
11438 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
11439 lto_streamer_cache_delete): Put nodes into heap.
11440 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
11443 2010-05-11 Jan Hubicka <jh@suse.cz>
11445 * cgraphbuild.c (cgraph_rebuild_references): New.
11446 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
11447 out extern inlines.
11448 * cgraph.h (cgraph_rebuild_references): Declare.
11449 * tree-inline.c (tree_function_versioning): Use it.
11450 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
11452 2010-05-11 Jan Hubicka <jh@suse.cz>
11454 * cgraph.c: Include ipa-utils.h
11455 (cgraph_create_virtual_clone): Update references.
11456 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
11458 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11460 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
11461 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
11464 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11466 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
11468 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11470 * gcc.c (execute): For -### don't quote arguments that
11471 contain just alphanumerics and _/-. characters.
11472 * doc/invoke.texi: Document that change for -###.
11475 * df-problems.c (struct dead_debug): Add to_rescan field.
11476 (dead_debug_init): Clear to_rescan field.
11477 (dead_debug_finish): Rescan all debug insns in to_rescan
11478 bitmap and free the bitmap.
11479 (dead_debug_insert_before): Instead of rescanning debug insns
11480 immediately queue their rescanning until dead_debug_finish.
11481 (df_note_bb_compute): After dead_debug_add do continue instead
11484 2010-05-10 Jakub Jelinek <jakub@redhat.com>
11487 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
11488 clear also INSN_REG_USE_LIST.
11490 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11492 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
11494 2010-05-10 Jan Hubicka <jh@suse.cz>
11496 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
11499 2010-05-10 Jan Hubicka <jh@suse.cz>
11501 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
11503 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
11504 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
11505 (lto_streamer_cache_create): Init alloc pool.
11506 (lto_streamer_cache_delete): Free alloc pool.
11507 * lto-streamer.h: Include alloc pool.
11508 (lto_streamer_cache_d): Use alloc pool.
11509 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
11511 2010-05-10 Jan Hubicka <jh@suse.cz>
11513 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
11514 * cgraphbuild.c: Include except.h
11515 (record_type_list, record_eh_tables): New function.
11516 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
11518 2010-05-10 Jan Hubicka <jh@suse.cz>
11520 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
11521 __frame_dummy_init_array_entry, force_to_data): Attribute as used
11522 rather than unused.
11524 2010-05-10 Michael Matz <matz@suse.de>
11526 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
11527 (can_reassociate_p): Use FLOAT_TYPE_P.
11528 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
11529 (vect_force_simple_reduction): ... this.
11530 * tree-parloops.c (gather_scalar_reductions): Use
11531 vect_force_simple_reduction.
11532 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
11533 vect_is_simple_reduction, add modify argument, if true rewrite
11534 "a-b" into "a+(-b)".
11535 (vect_is_simple_reduction, vect_force_simple_reduction): New
11537 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
11539 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
11540 Vladimir Makarov <vmakarov@redhat.com>
11542 PR rtl-optimization/44012
11543 * ira-build.c (remove_unnecessary_allocnos): Nullify
11544 regno_allocno_map of the removed allocno.
11546 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11548 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
11550 * configure: Regenerate.
11552 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11554 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
11556 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
11557 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
11559 * configure: Regenerate.
11561 2010-05-10 Richard Guenther <rguenther@suse.de>
11563 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
11564 marked if the entry identifier is marked.
11566 2010-05-10 Richard Guenther <rguenther@suse.de>
11568 * c-common.c (struct c_common_attributes): Add fnspec attribute.
11569 (handle_fnspec_attribute): New function.
11570 * gimple.h (gimple_call_return_flags): Declare.
11571 (gimple_call_arg_flags): Likewise.
11572 * gimple.c (gimple_call_arg_flags): New function.
11573 (gimple_call_return_flags): Likewise.
11574 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
11575 New argument flags.
11576 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
11577 return value flags.
11578 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
11579 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
11581 (make_heapvar_for): ... this new function.
11582 (handle_rhs_call): Handle fnspec attribute argument specifiers.
11583 (handle_lhs_call): Likewise.
11584 (find_func_aliases): Adjust.
11586 2010-05-10 Richard Guenther <rguenther@suse.de>
11588 PR tree-optimization/44050
11589 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
11591 2010-05-10 Wei Guozhi <carrot@google.com>
11594 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
11596 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11599 * c-typeck.c (lookup_field): Take a type directly. Update
11601 (build_component_ref): Update call to lookup_field.
11602 (set_init_label): Use lookup_field to find initialized field.
11603 Handle returned list of fields like a sequence of designators.
11605 2010-05-09 Richard Guenther <rguenther@suse.de>
11607 PR middle-end/44024
11608 * fold-const.c (tree_single_nonzero_warnv_p): Properly
11609 handle &FUNCTION_DECL.
11611 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11614 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
11615 structures and unions recursively.
11616 (detect_field_duplicates): Move duplicate detection with a hash to
11617 detect_field_duplicates_hash. Always use a hash if anonymous
11618 structures or unions are present.
11619 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
11622 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
11625 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
11626 detect Atom, Core 2 and Core i7.
11628 2010-05-09 Richard Guenther <rguenther@suse.de>
11630 * gcc.c (store_arg): Handle temporary file deletion for
11633 2010-05-09 Richard Guenther <rguenther@suse.de>
11635 PR middle-end/44043
11636 * ipa-inline.c (estimate_function_body_sizes): Return after
11637 disregarding inline limits.
11639 2010-05-09 Richard Guenther <rguenther@suse.de>
11641 * gcc.c (store_arg): Revert last change.
11643 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
11645 PR middle-end/28685
11646 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
11647 (optimize_ops_list): Call it.
11649 2010-05-08 Richard Guenther <rguenther@suse.de>
11651 PR tree-optimization/44030
11652 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
11653 NECESSARY flag if we propagate from a inserted expression.
11655 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
11657 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11658 domain types as equal if they are both PLACEHOLDER_EXPRs.
11660 2010-05-08 Richard Guenther <rguenther@suse.de>
11662 * lto-wrapper.c (run_gcc): Remove linker output from
11663 command line for LTRANS invocation.
11665 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11667 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11668 lto-macho as lto_binary_reader.
11669 * target.h (struct gcc_target): New hooks lto_start and lto_end.
11670 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11671 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11672 in lto_start and lto_end calls.
11673 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
11675 (scan_prog_file): Update is_elf_or_coff call.
11676 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11678 * collect2.c (main): Fix enum comparison.
11680 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11682 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11683 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
11684 and TARGET_ASM_LTO_END.
11685 * darwin.c: Include obstack.h and lto-streamer.h.
11686 (lto_section_names_offset, lto_section_names_obstack,
11687 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11689 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11690 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
11691 to a temporary file.
11692 (darwin_asm_lto_end): New function. Restore asm_out_file.
11693 (darwin_asm_named_section): For LTO sections, replace the name with
11694 the offset of the section name in a string table, and build this
11696 (darwin_file_start): Initialize global vars for LTO support.
11697 (darwin_file_end): If output to asm_out_file was redirected, append it
11698 to the proper asm_out_file here. Add the section names section.
11700 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11702 * c-pragma.c (pending_weak_d, pending_weak): New.
11703 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11704 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11705 handle_pragma_weak): Update the uses of pending_weaks.
11707 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11709 PR documentation/44016
11710 * doc/standards.texi (Standards): Link to unversioned
11711 cxx0x_status.html page.
11713 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
11716 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11717 in addition to TREE_USED, to avoid "set but unused" warnings.
11719 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11721 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11722 (is_loop_prefetching_profitable): Do not insert prefetches
11723 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11724 times the prefetch ahead distance.
11726 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11728 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11729 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11730 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11733 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11735 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11736 a diagnostic info when the insn-to-mem ratio is too small.
11738 2010-05-07 Richard Guenther <rguenther@suse.de>
11740 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11742 (store_arg): Queue temp_filename for deletion instead of
11743 the whole argument.
11745 2010-05-07 Richard Guenther <rguenther@suse.de>
11747 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11748 (run_gcc): Handle LTRANS phase invocation.
11749 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11751 2010-05-07 Jakub Jelinek <jakub@redhat.com>
11753 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11754 this is also meaningful on PARM_DECLs and RESULT_DECLs.
11756 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11758 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11760 2010-05-07 Richard Guenther <rguenther@suse.de>
11762 PR tree-optimization/44020
11763 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11764 code when PRE is not yet initialized.
11766 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11768 * config/mips/dbxmdebug.h: Remove.
11769 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11771 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
11773 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11774 with null pointer and also warn about ordered comparison of zero with
11775 pointer if -Wextra.
11777 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11779 * graphite-blocking.c
11780 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11781 * graphite-clast-to-gimple.c
11782 (clast_to_gcc_expression): Same.
11783 (precision_for_value): Same.
11784 (precision_for_interval): Same.
11785 (gcc_type_for_interval): Same.
11786 (graphite_create_new_guard): Same.
11787 (compute_bounds_for_level): Same.
11788 (graphite_create_new_loop_guard): Same.
11789 * graphite-interchange.c
11790 (build_linearized_memory_access): Same.
11791 (pdr_stride_in_loop): Same.
11792 (memory_strides_in_loop_1): Same.
11793 (memory_strides_in_loop): Same.
11794 (extend_scattering): Same.
11795 (psct_scattering_dim_for_loop_depth): Same.
11796 (pbb_number_of_iterations): Same.
11798 (debug_iteration_domains): Same.
11800 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11801 (ppl_set_inhomogeneous_gmp): Same.
11802 (ppl_strip_loop): Same.
11803 (ppl_lexico_compare_linear_expressions): Same.
11804 (ppl_read_polyhedron_matrix): Same.
11805 (ppl_max_for_le_pointset): Same.
11807 (ppl_read_polyhedron_matrix): Same.
11808 (tree_int_to_gmp): Same.
11809 (gmp_cst_to_tree): Same.
11810 (ppl_set_inhomogeneous): Same.
11811 (ppl_set_inhomogeneous_tree): Same.
11812 (ppl_set_coef): Same.
11813 (ppl_set_coef_tree): Same.
11814 * graphite-sese-to-poly.c
11815 (build_pbb_scattering_polyhedrons): Same.
11816 (build_scop_scattering): Same.
11817 (scan_tree_for_params_right_scev): Same.
11818 (scan_tree_for_params): Same.
11819 (find_params_in_bb): Same.
11820 (find_scop_parameters): Same.
11821 (add_upper_bounds_from_estimated_nit): Same.
11822 (build_loop_iteration_domains): Same.
11823 (add_condition_to_domain): Same.
11824 (pdr_add_memory_accesses): Same.
11826 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11828 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11829 CLooG's value_* macros to their respective mpz_* counterparts.
11830 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11831 (graphite_create_new_loop_guard): Same.
11832 * graphite-interchange.c (build_linearized_memory_access): Same.
11833 (pdr_stride_in_loop): Same.
11834 (memory_strides_in_loop_1): Same.
11835 (1st_interchange_profitable_p): Same.
11836 * graphite-poly.c (extend_scattering): Same.
11837 (psct_scattering_dim_for_loop_depth): Same.
11838 (pbb_number_of_iterations): Same.
11839 (pbb_number_of_iterations_at_time): Same.
11840 * graphite-poly.h (new_1st_loop): Same.
11841 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11842 (oppose_constraint): Same.
11843 (insert_constraint_into_matrix): Same.
11844 (ppl_set_inhomogeneous_gmp): Same.
11845 (ppl_set_coef_gmp): Same.
11846 (ppl_strip_loop): Same.
11847 (ppl_lexico_compare_linear_expressions): Same.
11848 (ppl_max_for_le_pointset): Same.
11849 (ppl_min_for_le_pointset): Same.
11850 (ppl_build_realtion): Same.
11851 * graphite-ppl.h (gmp_cst_to_tree): Same.
11852 (ppl_set_inhomogeneous): Same.
11853 (ppl_set_inhomogeneous_tree): Same.
11854 (ppl_set_coef): Same.
11855 (ppl_set_coef_tree): Same.
11856 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11857 (build_scop_scattering): Same.
11858 (add_value_to_dim): Same.
11859 (scan_tree_for_params_right_scev): Same.
11860 (scan_tree_for_params_int): Same.
11861 (scan_tree_for_params): Same.
11862 (find_params_in_bb): Same.
11863 (find_scop_parameters): Same.
11864 (add_upper_bounds_from_estimated_nit): Same.
11865 (build_loop_iteration_domains): Same.
11866 (create_linear_expr_from_tree): Same.
11867 (add_condition_to_domain): Same.
11868 (pdr_add_memory_accesses): Same.
11870 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
11871 Jason Merrill <jason@redhat.com>
11873 * c-common.c (c_common_reswords): Add nullptr.
11874 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
11875 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11876 (gen_type_die_with_usage): Likewise.
11877 * dbxout.c (dbxout_type): Likewise.
11878 * sdbout.c (plain_type_1): Likewise.
11880 2010-05-06 Jason Merrill <jason@redhat.com>
11882 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11883 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
11885 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11887 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11888 stripping WITH_SIZE_EXPR.
11889 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11892 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11894 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11895 list of obsolete configurations.
11896 Disabled check for obsolete configurations.
11897 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11898 Removed support for previous versions.
11899 * config/mips/iris.h: Removed.
11900 * config/mips/iris5.h: Removed.
11901 * config/mips/iris6.h: Merged old iris.h contents.
11902 (TARGET_IRIX): Removed.
11903 (DRIVER_SELF_SPECS): Removed mabi=32.
11904 (IDENT_ASM_OP): Removed undef.
11905 (STARTFILE_SPEC): Removed mabi=32.
11906 (ENDFILE_SPEC): Likewise.
11907 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11908 (MACHINE_TYPE): Update for IRIX 6.5.
11909 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11910 TARGET_IRIX by TARGET_IRIX6.
11911 (mips_file_start): Likewise.
11912 (mips_output_external): Remove IRIX 5/6 O32 support.
11913 (mips_output_function_prologue): Likewise.
11914 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11916 (TARGET_CPU_CPP_BUILTINS): Likewise.
11917 (TARGET_IRIX): Removed.
11918 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11919 (MULTILIB_DIRNAMES): Removed 32.
11920 (MULTILIB_OSDIRNAMES): Removed ../lib.
11921 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11922 (Specific, mips-sgi-irix5): Document removal.
11923 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11924 Remove references to older IRIX 6 releases and the O32 ABI.
11926 2010-05-06 Jakub Jelinek <jakub@redhat.com>
11929 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11930 instead of DF_REF_REAL_REG.
11932 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
11935 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11936 handling to still return true for x64 targets.
11938 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11940 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11942 2010-05-06 Jan Hubicka <jh@suse.cz>
11944 PR tree-optimization/43791
11945 * ipa-inline.c (update_caller_keys): Remove bogus
11946 disregard_inline_limits check.
11948 2010-05-06 Michael Matz <matz@suse.de>
11950 PR tree-optimization/43984
11951 * tree-ssa-pre.c (inserted_phi_names): Remove.
11952 (inserted_exprs): Change to bitmap.
11953 (create_expression_by_pieces): Set bits, don't append to vector.
11954 (insert_into_preds_of_block): Don't handle inserted_phi_names.
11955 (eliminate): Don't look at inserted_phi_names, remove deleted
11956 insns from inserted_exprs.
11957 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11958 (init_pre, fini_pre): Allocate and free bitmaps.
11959 (execute_pre): Insert insns on edges before elimination.
11961 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11963 * tree.c (initializer_zerop): Handle STRING_CST.
11965 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11968 * doc/invoke.texi (Wimplicit): Document as C only.
11969 * opts.c (common_handle_option): Add argument kind.
11970 (handle_option): Rename as read_cmdline_option. Factor out code to...
11971 (handle_option): ... here. New.
11972 (handle_options): Rename as read_cmdline_options.
11973 (decode_options): Update call.
11974 (set_option): Use option index instead of option pointer. Classify
11975 diagnostics correctly.
11976 (enable_warning_as_error): Call handle_option.
11977 * opts.h (set_option): Update declaration.
11978 (handle_option): Declare.
11979 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11980 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11981 * c-opts.c (set_Wimplicit): Delete.
11982 (c_family_lang_mask): New static constant.
11983 (c_common_handle_option): Add argument kind. Use handle_option
11984 instead of set_Wimplicit.
11985 (c_common_post_options): warn_implicit and warn_implicit_int
11986 are disabled by default.
11987 * c-common.c (warn_implicit): Do not define here.
11988 * c-common.h (warn_implicit): Do not declare here.
11989 (c_common_handle_option): Update declaration.
11990 * lto-opts.c (lto_reissue_options): Update call to set_option.
11992 2010-05-06 Richard Guenther <rguenther@suse.de>
11994 PR tree-optimization/43571
11995 * domwalk.c (walk_dominator_tree): Walk the dominator
11996 sons in more optimal order.
11998 2010-05-06 Richard Guenther <rguenther@suse.de>
12000 PR tree-optimization/43934
12001 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
12002 (stmt_cost): Likewise.
12003 (extract_true_false_args_from_phi): New helper.
12004 (determine_max_movement): For PHI nodes verify we can hoist them
12005 and compute their cost.
12006 (determine_invariantness_stmt): Handle PHI nodes.
12007 (move_computations_stmt): Likewise. Hoist PHI nodes in
12008 if-converted form using COND_EXPRs.
12009 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
12010 (tree_ssa_lim): Likewise.
12011 * tree-flow.h (tree_ssa_lim): Adjust prototype.
12012 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
12014 2010-05-06 Richard Guenther <rguenther@suse.de>
12016 PR tree-optimization/43987
12017 * tree-ssa-structalias.c (could_have_pointers): For possibly
12018 address-taken variables force pointers to be recorded.
12019 (create_variable_info_for_1): Likewise.
12020 (push_fields_onto_fieldstack): Pass in wheter all fields
12021 must have pointers.
12022 (find_func_aliases): Query types instead of vars whether
12023 they contain pointers where appropriate.
12025 2010-05-06 Jan Hubicka <jh@suse.cz>
12027 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
12028 (record_reference, mark_address, mark_load, mark_store): Record
12030 (record_references_in_initializer): Update call of record_references.
12031 (rebuild_cgraph_edges): Remove all references before rebuiding.
12032 * cgraph.c (cgraph_create_node): Clear ref list.
12033 (cgraph_remove_node): Remove references.
12034 (dump_cgraph_node): Dump references.
12035 (cgraph_clone_node): Clone references.
12036 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
12037 (struct cgraph_node, varpool_node): Add ref_lst.
12038 * ipa-ref.c: New file.
12039 * ipa-ref.h: New file.
12040 * ipa-ref-inline.h: New file.
12041 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
12042 (referenced_from_other_partition_p): New function.
12043 (lto_output_varpool_node): Take set arugment; call
12044 referenced_from_other_partition.
12045 (lto_output_ref): New.
12046 (add_references): New.
12047 (output_refs): New.
12048 (output_cgraph): Compute boundary based on references; output refs.
12049 (output_varpool): Accept cgraph_node_set argument.
12052 (input_cgraph): Call input_refs.
12053 * lto-section-in.c (lto_section_name): Add refs.
12054 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
12055 (ipa-ref.o): New file.
12056 * varpool.c (varpool_node): Clear ipa ref list.
12057 (varpool_remove_node): Remove references.
12058 (dump_varpool_node): Dump references.
12059 (varpool_assemble_decl): Only compile finalized ones.
12060 (varpool_extra_name_alias): Initialize ref list.
12061 * lto-streamer.c (lto-get_section_name): Add .refs section.
12062 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
12063 (referenced_from_other_partition_p): Declared.
12065 2010-05-06 Ira Rosen <irar@il.ibm.com>
12067 PR tree-optimization/43901
12068 * tree-vect-stmts.c (vectorizable_call): Assert that vector
12069 type is not NULL if it's transformation phase, and return
12070 FALSE if it's analysis.
12071 (vectorizable_conversion, vectorizable_operation,
12072 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
12074 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
12076 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12078 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12080 * config/mips/mips-protos.h
12081 (mips_small_register_classes_for_mode_p): Delete prototype.
12083 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
12085 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
12086 * config/arm/arm.c (multiple_operation_profitable_p,
12087 compute_offset_order): New static functions.
12088 (load_multiple_sequence, store_multiple_sequence): Use them.
12089 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
12090 memory offsets, not register numbers.
12091 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
12093 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
12095 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
12096 (get_pending_sizes, put_pending_size, put_pending_sizes):
12097 Update the uses of pending_sizes.
12098 * c-decl.c (store_parm_decls): Likewise.
12099 * c-tree.h (struct c_arg_info): Likewise.
12100 * tree.h: Update the prototype for get_pending_sizes and
12103 2010-05-05 Jason Merrill <jason@redhat.com>
12106 * c-common.c (handle_aligned_attribute): Respect
12107 ATTR_FLAG_TYPE_IN_PLACE.
12110 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
12111 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12112 (TARGET_INITIALIZER): Use it.
12113 * c-common.c (attribute_takes_identifier_p): Call it.
12114 * c-common.h: Update prototype.
12115 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
12116 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12118 2010-05-05 Jakub Jelinek <jakub@redhat.com>
12121 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
12122 DW_ID_down_case for Fortran compilation units.
12124 2010-05-05 Jan Hubicka <jh@suse.cz>
12126 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
12129 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
12131 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
12132 a variable-sized RESULT_DECL.
12134 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
12136 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
12138 2010-05-05 Jason Merrill <jason@redhat.com>
12141 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
12143 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
12145 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
12146 Jakub Jelinek <jakub@redhat.com>
12149 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
12150 (dead_debug_init, dead_debug_finish): New functions.
12151 (dead_debug_add, dead_debug_insert_before): Likewise.
12152 (df_note_bb_compute): Initialize a dead_debug object, add dead
12153 debug uses to it, insert debug bind insns before death insns,
12154 reset debug insns that refer to pending uses at the end.
12155 * rtl.h (make_debug_expr_from_rtl): New prototype.
12156 * varasm.c (make_debug_expr_from_rtl): New function.
12158 2010-05-05 Jan Hubicka <jh@suse.cz>
12160 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
12161 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12162 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12163 lto_varpool_encoder_deref, lto_varpool_encoder_size,
12164 lto_varpool_encoder_encode_initializer_p,
12165 lto_set_varpool_encoder_encode_initializer): New functions.
12166 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
12167 call output_varpool.
12168 (input_varpool_node): Do not always set analyzed.
12169 (input_cgraph_1): Return vector of cgraph nodes.
12170 (input_varpool_1): Return vector of varpools.
12171 (input_cgraph): Free the vectors.
12172 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12173 output only initializers needed.
12174 (lto_output): Only call output_cgraph.
12175 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
12176 * lto-section-out.c (lto_new_out_decl_state): Initialize
12177 state->varpool_node_encoder.
12178 * lto-streamer.h (lto_varpool_encoder_d): New.
12179 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
12180 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
12181 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
12182 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12183 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
12185 (output_varpool, input_varpool): Remove declarations.
12187 2010-05-05 Jan Hubicka <jh@suse.cz>
12189 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
12190 with body can prevail.
12192 2010-05-05 Jan Hubicka <jh@suse.cz>
12194 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
12197 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12199 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
12201 * gengtype.h (erro_at_line): Constify pos argument.
12203 * gengtype.c: Include hashtab.h.
12204 (enum gc_used): Document GC_MAYBE_POINTED_TO.
12205 (error_at_line): Constify pos argument.
12206 (do_typedef): Initialize p->opt field.
12207 (get_file_gtfilename): Fix comment typo.
12208 (struct walk_type_data): Constify line field.
12209 (get_output_file_for_structure): New function.
12210 (write_local_func_for_structure): Constify orig_s argument.
12211 Use get_output_file_for_structure.
12212 (write_func_for_structure): Use get_output_file_for_structure.
12213 (INDENT): New define.
12214 (dump_pair, dump_type, dump_type_list, dump_typekind)
12215 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
12216 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
12218 (seen_types): New variable.
12219 (main): New variable do_dump. Process "-d" command line option.
12220 Call dump_everything if dump requested.
12222 2010-05-05 Jakub Jelinek <jakub@redhat.com>
12224 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
12225 in a temporary instead of invoking the macro multiple times.
12226 (track_expr_p): Likewise.
12228 2010-05-04 Neil Vachharajani <nvachhar@google.com>
12230 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
12232 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
12233 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
12234 conditions for printing notes.
12235 * common.opt (-Wcoverage-mismatch): Allow negative, default to
12236 true, update documentation.
12237 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
12239 2010-05-04 Jakub Jelinek <jakub@redhat.com>
12242 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
12245 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
12248 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
12249 (*sse_prologue_save_insn1): Likewise.
12250 (SSE prologue save splitter): Likewise.
12252 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
12254 * tree.c (free_lang_data_in_one_sizepos): New inline function.
12255 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
12256 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
12257 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
12258 all decls. Call it on DECL_FIELD_OFFSET of fields.
12259 (find_decls_types_r): Follow DECL_VALUE_EXPR.
12260 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
12262 2010-05-04 Martin Jambor <mjambor@suse.cz>
12264 * tree-sra.c (build_access_from_expr_1): The first parameter type
12265 changed to simple tree.
12266 (build_access_from_expr): Likewise, gsi parameter was eliminated.
12267 (scan_assign_result): Renamed to assignment_mod_result, enum elements
12269 (build_accesses_from_assign): Removed all parameters except for a
12270 simple gimple statement. Now returns a simple bool.
12271 (scan_function): All non-analysis parts moved to separate functions
12272 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
12273 parameters and updated both callers.
12274 (sra_modify_expr): Removed parameter data.
12275 (sra_modify_function_body): New function.
12276 (perform_intra_sra): Call sra_modify_function_body to modify the
12278 (replace_removed_params_ssa_names): Parameter data changed into
12279 adjustments vector.
12280 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
12281 changed the parameter dont_convert to convert with the opposite
12283 (sra_ipa_modify_assign): Parameter data changed into adjustments
12284 vector, return value changed to bool.
12285 (ipa_sra_modify_function_body): New function.
12286 (sra_ipa_reset_debug_stmts): Updated a comment.
12287 (modify_function): Use ipa_sra_modify_function_body to modify function
12290 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
12292 PR middle-end/43671
12293 * alias.c (true_dependence): Handle the same VALUE in x and mem.
12294 (canon_true_dependence): Likewise.
12295 (write_dependence_p): Likewise.
12297 2010-05-04 Jan Hubicka <jh@suse.cz>
12299 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
12300 * cgraphbuild.c: Include ipa-utils.h
12301 (record_reference_ctx): New struct.
12302 (record_reference): Simplify to work on initializers; not statements.
12303 (mark_address, mark_load, mark_store): New.
12304 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12305 walk PHI nodes too.
12306 (record_references_in_initializer): Update use of record_reference.
12307 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12308 walk PHI nodes too.
12310 2010-05-04 Jan Hubicka <jh@suse.cz>
12312 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
12313 node will be removed anyway.
12314 (lto_varpool_replace_node): Allow also unanalyzed nodes;
12315 relink aliases of node into prevailing node.
12316 * varpool.c (varpool_remove_node): Remove aliases properly;
12317 when removing node, remove all its aliases too; remove DECL_INITIAL
12318 of removed node; ggc_free the varpool node.
12320 2010-05-04 Richard Guenther <rguenther@suse.de>
12322 PR tree-optimization/43879
12323 * tree-ssa-structalias.c (alias_get_name): Use
12324 DECL_ASSEMBLER_NAME if available.
12325 (create_function_info_for): Return the varinfo node.
12326 (ipa_pta_execute): Associate same-body aliases and extra names
12327 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
12329 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12331 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
12333 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
12336 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12337 only if HONOR_REG_ALLOC_ORDER is not defined.
12339 2010-05-04 Richard Guenther <rguenther@suse.de>
12341 PR tree-optimization/43949
12342 * tree-vrp.c (extract_range_from_binary_expr): Only handle
12345 2010-04-26 Jason Merrill <jason@redhat.com>
12347 * c.opt (-fstrict-enums): New.
12348 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
12350 2010-05-03 David Ung <davidu@mips.com>
12351 James E. Wilson <wilson@codesourcery.com>
12353 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
12354 emit the trap instruction before the divide for TUNE_74K.
12356 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
12358 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
12359 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
12360 based on the above, for new target hook.
12362 * hooks.c (hook_bool_mode_true): New generic hook.
12363 * hooks.h (hook_bool_mode_true): Add prototype.
12365 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
12367 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
12368 target hook, set to hook_bool_mode_false.
12369 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
12370 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
12371 with targetm.small_register_classes_for_mode_p.
12372 (find_reusable_reload): Likewise.
12373 (combine_reloads): Likewise.
12374 * reload1.c (reload_as_needed): Likewise.
12375 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
12376 * ifcvt.c (noce_process_if_block, check_cond_move_block,
12377 dead_or_predicable): Likewise.
12378 * regmove.c (optimize_reg_copy_1): Likewise.
12379 * calls.c (prepare_call_address): Likewise.
12380 (precompute_register_parameters): Likewise.
12382 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
12384 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
12385 implementation of the hook that considers all register classes
12386 small except for SH64.
12387 (sh_override_options): Use the new hook.
12388 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
12391 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
12393 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
12394 implementation of the hook that considers all register classes
12396 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
12399 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
12401 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
12402 implementation of the hook that considers all register classes
12404 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
12407 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
12409 * config/m32c/m32c.h: Likewise.
12410 * config/pdp11/pdp11.h: Likewise.
12411 * config/avr/avr.h: Likewise.
12412 * config/xtensa/xtensa.h: Likewise.
12413 * config/m68hc11/m68hc11.h: Likewise.
12414 * config/mn10300/mn10300.h: Likewise.
12415 * config/mcore/mcore.h: Likewise.
12416 * config/h8300/h8300.h: Likewise.
12417 * config/bfin/bfin.h: Likewise.
12419 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
12420 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
12422 2010-05-03 Anatoly Sokolov <aesok@post.ru>
12424 * double-int.h (tree_to_double_int): Remove macro.
12425 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
12426 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12427 (tree_to_double_int): New function.
12428 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
12430 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12432 2010-05-03 Richard Guenther <rguenther@suse.de>
12434 PR tree-optimization/43971
12435 * tree-ssa-structalias.c (get_constraint_for_1): Fix
12436 constraints in the !flag_delete_null_pointer_checks case.
12438 2010-05-03 Jakub Jelinek <jakub@redhat.com>
12441 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
12442 result mode matches original rtl mode.
12444 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
12447 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
12449 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12451 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
12452 when processing flag options.
12454 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12456 * gcov-iov.c (main): Change format string placeholder
12457 from %#08x to 0x%08x.
12458 * genchecksum.c (dosum): Change format string placeholder
12459 from %#02x to 0x%02x.
12461 2010-05-02 Richard Guenther <rguenther@suse.de>
12463 PR tree-optimization/43879
12464 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
12466 2010-05-02 Bruno Haible <bruno@clisp.org>
12468 * doc/extend.texi (Function Attributes): Fix a typo.
12470 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12473 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
12474 placeholder from 0x%x to %#x.
12475 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12476 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12477 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12478 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12479 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12480 * config/i386/i386.c (ix86_target_string): Ditto.
12481 * config/i386/i386.c (output_pic_addr_const): Ditto.
12482 (print_operand): Ditto.
12484 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12486 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
12487 placeholder from 0x%x to %#x.
12488 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
12489 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
12490 (ASM_OUTPUT_DEBUG_DATA): Ditto.
12491 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
12492 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
12493 * optc-gen.awk: Ditto.
12494 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
12495 (HOST_WIDE_INT_PRINT_HEX): Ditto.
12496 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
12497 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12499 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12501 * target.h (struct calls): Add function_value_regno_p field.
12502 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12503 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
12504 * targhooks.c (default_function_value_regno_p): New function.
12505 * targhooks.h (default_function_value_regno_p): Declare function.
12506 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
12507 * builtins.c. (apply_result_size): (Ditto.).
12508 * combine.c. (likely_spilled_retval_p): (Ditto.).
12509 * mode-switching.c. Include 'target.h'.
12510 (create_pre_exit): Use function_value_regno_p hook.
12511 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
12512 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
12513 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
12515 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
12516 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
12517 (ix86_function_value_regno_p): Declare as static, change argument
12518 type to const unsigned int.
12519 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
12521 2010-05-01 Richard Guenther <rguenther@suse.de>
12523 PR tree-optimization/43949
12524 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
12526 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
12528 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12530 * rtl.h (CONST_DOUBLE_P): Define.
12531 (rtx_to_double_int): Declare.
12532 * emit-rtl.c (rtx_to_double_int): New function.
12533 * dwarf2out.c (insert_double): New function.
12534 (loc_descriptor, add_const_value_attribute): Clean up, use
12535 rtx_to_double_int and insert_double functions.
12537 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
12539 * doc/extend.texi (Inline): Add missing return keyword to examples.
12540 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
12543 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
12545 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
12546 the variable part of the offset as well. Use highest_pow2_factor for
12547 all alignment checks.
12549 2010-04-30 Richard Guenther <rguenther@suse.de>
12551 PR tree-optimization/43879
12552 * tree-ssa-structalias.c (type_could_have_pointers): Functions
12555 2010-04-30 Jan Hubicka <jh@suse.cz>
12557 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
12559 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
12561 2010-04-30 Jan Hubicka <jh@suse.cz>
12563 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
12565 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
12566 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
12567 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
12568 cgraph_node_set_needs_ltrans_p): Remove.
12570 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12572 * sdbout.c: Include vec.h, do not include varray.h.
12573 (deferred_global_decls, sdbout_global_decl,
12574 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
12575 * toplev.c: Do not include varray.h.
12576 (dump_memory_report): Do not dump VARRAY statistics.
12577 * gengtype.c (open_base_file): Ignore varray.h.
12578 * Makefile.in: Update for abovementioned changes.
12579 Remove all traces of varray.c and varray.h.
12580 * varray.c: Remove file.
12581 * varray.h: Remove file.
12583 2010-04-30 Jan Hubicka <jh@suse.cz>
12585 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
12588 2010-04-30 Jan Hubicka <jh@suse.cz>
12590 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
12593 2010-04-30 Richard Guenther <rguenther@suse.de>
12595 * tree-ssa-structalias.c (get_constraint_for_1): Generate
12596 constraints for CONSTRUCTOR.
12598 2010-04-30 Richard Guenther <rguenther@suse.de>
12601 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
12602 first after all lowering passes.
12604 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12606 * toplev.c: Include varray.h for statistics dumping.
12607 * tree.h: Do not declare varray_head_tag.
12608 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
12609 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
12610 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
12611 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
12612 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
12613 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
12614 c-common.c, c-common.h, reg-stack.c, basic-block.h,
12615 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
12617 * Makefile.in: Update for abovementioned changes.
12619 2010-04-30 Jakub Jelinek <jakub@redhat.com>
12622 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
12624 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
12626 * config/picochip/picochip.c (picochip_legitimize_address): Define.
12627 Use this function to do machine-specific conversion.
12628 (picochip_legitimize_reload_address): Likewise.
12629 (picochip_legitimate_address_p): Check valid base register only if
12631 (picochip_check_conditional_copy): Check for modw only if opnd is
12633 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
12634 to call the function in c.
12635 * config/picochip/picochip-protos.h
12636 (picochip_legitimize_reload_address): Define.
12637 * config/picochip/picochip.md (supported_compare1): Define.
12639 2010-04-30 Jan Hubicka <jh@suse.cz>
12641 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
12642 (cgraph_global_info): Remove inlined.
12643 (LTO_cgraph_tag_names): Remove.
12644 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
12645 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
12646 simplify cgraph tags and document.
12647 (lto_output_node): Use only LTO_cgraph_unavail_node and
12648 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12649 for_functions_valid, global info, process and output flags.
12650 (input_overwrite_node): Initialize estimated stack size and
12651 estimated growth. Do not read flags we no longer store.
12652 (input_node): Likewise do not read info no longer stored.
12653 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12656 2010-04-30 Richard Guenther <rguenther@suse.de>
12658 PR tree-optimization/43879
12659 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12660 handle non-zero initializers.
12662 2010-04-30 Richard Guenther <rguenther@suse.de>
12664 * builtins.c (fold_builtin_1): Delete free (0).
12666 2010-04-29 Jan Hubicka <jh@suse.cz>
12668 * gengtype.c (open_base_files): Add lto-streamer.h
12669 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12670 (pass_ipa_cp): GGC collect.
12671 * toplev. (compile_file): Do not output symbols.
12672 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12673 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12674 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12675 * lto-section-in.c: Include ggc.h
12676 (lto_new_in_decl_state): Alloc in GGC.
12677 (lto_delete_in_decl_state): Likewise.
12678 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12681 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12684 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12685 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
12686 (HONOR_REG_ALLOC_ORDER): Describe new macro.
12687 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12688 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12689 account only if HONOR_REG_ALLOC_ORDER is not defined.
12690 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12691 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12693 2010-04-29 Jon Grant <04@jguk.org>
12695 * collect2.c (vflag): Change type from int to bool.
12697 (helpflag): New global bool.
12698 (main): Set vflag and debug with boolean, not integer truth values.
12699 Accept new "--help" option and output usage text if found.
12700 * collect2.h (vflag): Update prototype.
12703 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12706 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12708 2010-04-29 Richard Guenther <rguenther@suse.de>
12711 * plugin.h (invoke_plugin_callbacks): Annotate arguments
12712 with ATTRIBUTE_UNUSED.
12714 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12717 * config/i386/i386.c (get_some_local_dynamic_name): Replace
12718 INSN_P with NONDEBUG_INSN_P.
12719 (distance_non_agu_define): Likewise.
12720 (distance_agu_use): Likewise.
12722 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12724 From Dominique d'Humieres <dominiq@lps.ens.fr>
12726 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12729 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
12731 * plugin.h (invoke_plugin_callbacks): New inline function.
12732 * plugin.c (flag_plugin_added): New global flag.
12733 (add_new_plugin): Initialize above flag.
12734 (invoke_plugin_callbacks): Rename to ...
12735 (invoke_plugin_callbacks_full): ... this.
12737 2010-04-28 Jan Hubicka <jh@suse.cz>
12739 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12740 (lto_varpool_replace_node): New.
12741 (lto_symtab_resolve_symbols): Resolve varpool nodes.
12742 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12743 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12744 * cgraph.h (varpool_node_ptr): New type.
12745 (varpool_node_ptr): New vector.
12746 (varpool_node_set_def): New structure.
12747 (varpool_node_set): New type.
12748 (varpool_node_set): New vector.
12749 (varpool_node_set_element_def): New structure.
12750 (varpool_node_set_element, const_varpool_node_set_element): New types.
12751 (varpool_node_set_iterator): New type.
12752 (varpool_node): Add prev pointers, add used_from_other_partition,
12753 in_other_partition.
12754 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12755 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12756 varpool_get_node, varpool_remove_node): Declare.
12757 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12758 varpool_node_set_size): New inlines.
12759 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12760 * tree-pass.h (varpool_node_set_def): Forward declare.
12761 (ipa_opt_pass_d): Summary writting takes vnode sets too.
12762 (ipa_write_optimization_summaries): Update prototype.
12763 * ipa-cp.c (ipcp_write_summary): Update.
12764 * ipa-reference.c (ipa_reference_write_summary): Update.
12765 * lto-cgraph.c (lto_output_varpool_node): New static function.
12766 (output_varpool): New function.
12767 (input_varpool_node): New static function.
12768 (input_varpool_1): New function.
12769 (input_cgraph): Input varpool.
12770 * ipa-pure-const.c (pure_const_write_summary): Update.
12771 * lto-streamer-out.c (lto_output): Update, output varpool too.
12772 (write_global_stream): Kill WPA hack.
12773 (produce_asm_for_decls): Update.
12774 (output_alias_pair_p): Handle variables.
12775 (output_unreferenced_globals): Output only needed partition of varpool.
12776 * ipa-inline.c (inline_write_summary): Update.
12777 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12779 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12780 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12781 varpool_node_set_new, varpool_node_set_add,
12782 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12783 debug_varpool_node_set): New functions.
12784 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12785 (execute_one_pass): Process new decls too.
12786 (ipa_write_summaries_2): Pass around vsets.
12787 (ipa_write_summaries_1): Likewise.
12788 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12790 (ipa_write_optimization_summaries_1): Pass around vsets.
12791 (ipa_write_optimization_summaries): Likewise.
12792 * varpool.c (varpool_get_node): New.
12793 (varpool_node): Update doubly linked lists.
12794 (varpool_remove_node): New.
12795 (dump_varpool_node): More dumping.
12796 (varpool_enqueue_needed_node): Update doubly linked lists.
12797 (decide_is_variable_needed): Kill ltrans hack.
12798 (varpool_finalize_decl): Kill lto hack.
12799 (varpool_assemble_decl): Skip decls in other partitions.
12800 (varpool_assemble_pending_decls): Update doubly linkes lists.
12801 (varpool_empty_needed_queue): Likewise.
12802 (varpool_extra_name_alias): Likewise.
12803 * lto-streamer.c (lto_get_section_name): Add vars section.
12804 * lto-streamer.h (lto_section_type): Update.
12805 (output_varpool, input_varpool): Declare.
12807 2010-04-28 Mike Stump <mikestump@comcast.net>
12809 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12811 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12813 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12814 record or union type with RECORD_OR_UNION_TYPE_P predicate.
12815 (lto_input_ts_type_tree_pointers): Likewise.
12816 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12817 (lto_output_ts_type_tree_pointers): Likewise.
12819 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12821 Uniquization of constants at the Tree level
12822 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12823 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12825 (tree_output_constant_def): Declare.
12826 * gimplify.c (gimplify_init_constructor): When using block copy, first
12827 uniquize the constant constructor on the RHS.
12828 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12829 DECL_IN_CONSTANT_POOL flag.
12830 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12831 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12833 (assemble_variable): Deal with symbols belonging to the tree constant
12835 (get_constant_section): Add ALIGN parameter and simplify.
12836 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12837 (assemble_constant_contents): Use the expression of the VAR_DECL.
12838 (output_constant_def_contents): Use the alignment of the VAR_DECL.
12839 (tree_output_constant_def): New global function.
12840 (mark_constant): Use the expression of the VAR_DECL.
12841 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12843 (output_object_block): Likewise and assemble the expression.
12845 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12847 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12848 hash_tree, eq_tree): New tree hash table.
12849 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12850 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12851 lto_orig_address_remove): Reimplement.
12853 2010-04-28 Xinliang David Li <davidxl@google.com>
12856 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12857 (compute_uninit_opnds_pos): New function.
12858 (is_non_loop_exit_postdominating): New function.
12859 (compute_control_dep_chain): New function.
12860 (find_pdom): New function.
12861 (convert_control_dep_chain_into_preds): New function.
12862 (find_predicates): New function.
12863 (find_control_equiv_block): New function.
12864 (collect_phi_def_edges): New function.
12865 (find_def_preds): New function.
12866 (find_dom): New function.
12867 (dump_predicates): New function.
12868 (get_cmp_code): New function.
12869 (is_value_included_in): New function.
12870 (find_matching_predicate_in_rest_chains): New function.
12871 (use_pred_not_overlap_with_undef_path_pred): New function.
12872 (is_use_properly_guarded): New function.
12873 (normalize_cond_1): New function.
12874 (is_and_or_or): New function.
12875 (normalize_cond): New function.
12876 (is_gcond_subset_of): New function.
12877 (is_subset_of_any): New function.
12878 (is_or_set_subset_of): New function.
12879 (is_and_set_subset_of): New function.
12880 (is_norm_cond_subset_of): New function.
12881 (is_pred_expr_subset_of): New function.
12882 (is_pred_chain_subset_of): New function.
12883 (is_included_in): New function.
12884 (is_superset_of): New function.
12885 (find_uninit_use): New function.
12886 (warn_uninitialized_phi): New function.
12887 (compute_possibly_undefined_names): New function.
12888 (ssa_undefined_value_p): New function.
12889 (execute_late_warn_uninitialized): New function.
12890 * tree-ssa.c (ssa_undefined_value_p): Removed.
12891 (warn_uninit): Changed to extern.
12892 (warn_uninitialized_phi): Removed.
12893 (warn_uninitialized_vars): Changed to extern.
12894 (execute_late_warn_uninitialized): Removed
12895 * tree-flow.h: Add new prototypes.
12896 * timevar.def: Add new time variable.
12897 * Makefile.in: Add new build file.
12899 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
12901 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12904 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12907 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12909 2010-04-28 Martin Jambor <mjambor@suse.cz>
12911 * cgraph.h (struct cgraph_node): New field indirect_calls.
12912 (struct cgraph_indirect_call_info): New type.
12913 (struct cgraph_edge): Removed field indirect_call. New fields
12914 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12915 (cgraph_create_indirect_edge): Declare.
12916 (cgraph_make_edge_direct): Likewise.
12917 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12918 * ipa-prop.h (struct ipa_param_call_note): Removed.
12919 (struct ipa_node_params): Removed field param_calls.
12920 (ipa_create_all_structures_for_iinln): Declare.
12921 * cgraph.c: Described indirect edges and uids in initial comment.
12922 (cgraph_add_edge_to_call_site_hash): New function.
12923 (cgraph_edge): Search also among the indirect edges, use
12924 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12925 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12926 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12928 (initialize_inline_failed): Assign a reason to indirect edges.
12929 (cgraph_create_edge_1): New function.
12930 (cgraph_create_edge): Moved some functionality to
12931 cgraph_create_edge_1.
12932 (cgraph_create_indirect_edge): New function.
12933 (cgraph_edge_remove_callee): Add an assert checking for
12935 (cgraph_edge_remove_caller): Special-case indirect edges.
12936 (cgraph_remove_edge): Likewise.
12937 (cgraph_set_edge_callee): New function.
12938 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12939 (cgraph_make_edge_direct): New function.
12940 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12941 the declaration of the call statement matches.
12942 (cgraph_node_remove_callees): Special-case indirect edges.
12943 (cgraph_clone_edge): Likewise.
12944 (cgraph_clone_node): Clone also the indirect edges.
12945 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12946 indirect_call, dump count of indirect_calls edges.
12947 * ipa-prop.c (iinlining_processed_edges): New variable.
12948 (ipa_note_param_call): Create indirect edges instead of
12949 creating notes. New parameter node.
12950 (ipa_analyze_call_uses): New parameter node, pass it on to
12951 ipa_note_param_call.
12952 (ipa_analyze_stmt_uses): Likewise.
12953 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12954 (print_edge_addition_message): Work on edges rather than on notes.
12955 (update_call_notes_after_inlining): Likewise, renamed to
12956 update_indirect_edges_after_inlining.
12957 (ipa_create_all_structures_for_iinln): New function.
12958 (ipa_free_node_params_substructures): Do not free notes.
12959 (ipa_edge_duplication_hook): Propagate bits within
12960 iinlining_processed_edges bitmap.
12961 (ipa_node_duplication_hook): Do not duplicate notes.
12962 (free_all_ipa_structures_after_ipa_cp): Renamed to
12963 ipa_free_all_structures_after_ipa_cp.
12964 (free_all_ipa_structures_after_iinln): Renamed to
12965 ipa_free_all_structures_after_iinln.
12966 (ipa_write_param_call_note): Removed.
12967 (ipa_read_param_call_note): Removed.
12968 (ipa_write_indirect_edge_info): New function.
12969 (ipa_read_indirect_edge_info): Likewise.
12970 (ipa_write_node_info): Do not stream notes, do stream information
12972 (ipa_read_node_info): Likewise.
12973 (lto_ipa_fixup_call_notes): Removed.
12974 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12975 * ipa-inline.c (pass_ipa_inline): Likewise.
12976 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12977 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12978 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12980 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12982 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12983 (output_cgraph): Stream also indirect edges.
12984 (lto_output_edge): Added capability to stream indirect edges.
12985 (input_edge): Likewise.
12986 (input_cgraph_1): Likewise.
12987 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12990 2010-04-28 Richard Guenther <rguenther@suse.de>
12992 PR tree-optimization/43879
12993 PR tree-optimization/43909
12994 * tree-ssa-structalias.c (struct variable_info): Add
12995 only_restrict_pointers flag.
12996 (new_var_info): Initialize it. Increment stats.total_vars here.
12997 (create_function_info_for): Do not increment stats.total_vars here.
12998 (get_function_part_constraint): Fix build with C++.
12999 (insert_into_field_list): Remove.
13000 (push_fields_onto_fieldstack): Properly merge fields.
13001 (create_variable_info_for): Split and simplify.
13002 (create_variable_info_for_1): New piece.
13003 (intra_create_variable_infos): Properly make restrict constraints
13006 2010-04-28 Richard Guenther <rguenther@suse.de>
13009 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
13011 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
13012 Jan Hubicka <hubicka@ucw.cz>
13014 * doc/invoke.texi (-Wsuggest-attribute=const,
13015 -Wsuggest-attribute=pure): Document.
13016 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
13017 (function_always_visible_to_compiler_p,
13018 suggest_attribute, warn_function_pure, warn_function_const):
13020 (check_call): Improve debug info.
13021 (analyze_function): Do not check availability.
13022 (add_new_function): Check availability.
13023 (propagate): Output warnings.
13024 (skip_function_for_local_pure_const): New function.
13025 (local_pure_const): Use it; output warnings.
13026 * common.opt (Wsuggest-attribute=const,
13027 Wsuggest-attribute=pure): New.
13029 2010-04-27 Jakub Jelinek <jakub@redhat.com>
13031 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
13032 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
13033 or DW_CFA_def_cfa_offset{,_sf}.
13035 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
13037 * tree.h: Fix truncated long macros.
13039 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
13041 * collect2.c (TARGET_64BIT): Redefine to target's default.
13042 * tlink.c: Likewise.
13043 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
13044 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
13045 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
13046 for underscoring __USER_LABEL_PREFIX__.
13047 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
13048 (SUB_LINK_ENTRY32): New.
13049 (SUB_LINK_ENTRY64): New.
13050 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
13051 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
13052 (SUB_LINK_ENTRY64): New.
13053 (SUB_LINK_ENTRY): New.
13054 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
13055 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
13056 x64 target is choosen.
13057 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
13058 * configure: Regenerated.
13059 * configure.ac (leading-mingw64-underscores): Option added.
13061 2010-04-27 Jan Hubicka <jh@suse.cz>
13063 * doc/invoke.texi (-fipa-profile): Document.
13064 * opts.c (decode_options): Enable ipa-profile at -O1.
13065 * timevar.def (TV_IPA_PROFILE): Define.
13066 * common.opt (fipa-profile): Add.
13067 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
13069 (cgraph_propagate_frequency): Handle only local ones.
13070 * tree-pass.h (pass_ipa_profile): Declare.
13071 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
13072 (pass_ipa_profile): Use TV_IPA_PROFILE.
13073 * ipa.c (ipa_profile): New function.
13074 (gate_ipa_profile): Likewise.
13075 (pass_ipa_profile): New global variable.
13076 * passes.c (pass_ipa_profile): New.
13078 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
13080 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
13082 2010-04-27 Martin Jambor <mjambor@suse.cz>
13084 PR middle-end/43812
13085 * ipa.c (dissolve_same_comdat_group_list): New function.
13086 (function_and_variable_visibility): Call
13087 dissolve_same_comdat_group_list when comdat group contains external or
13089 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
13090 lists are circular and that they contain only DECL_ONE_ONLY nodes.
13092 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
13094 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
13095 (const_hash_1) <VECTOR_CST>: New case.
13096 (compare_constant) <VECTOR_CST>: Likewise.
13097 <ADDR_EXPR>: Deal with LABEL_REFs.
13098 (copy_constant) <VECTOR_CST>: New case.
13100 2010-04-27 Jan Hubicka <jh@suse.cz>
13102 * cgraph.c (cgraph_propagate_frequency): New function.
13103 * cgraph.h (cgraph_propagate_frequency): Declare.
13104 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
13105 cgraph_propagate_frequency.
13107 2010-04-27 Jakub Jelinek <jakub@redhat.com>
13109 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
13111 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
13114 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
13115 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
13116 here to determine which regs to push and how much stack to reserve.
13118 2010-04-27 Jie Zhang <jie@codesourcery.com>
13120 * doc/gimple.texi (gimple_statement_with_ops): Remove
13121 addresses_taken field.
13122 (gimple_statement_with_memory_ops): Likewise.
13124 2010-04-27 Jan Hubicka <jh@suse.cz>
13126 * tree-inline.c (eni_inlining_weights): Remove.
13127 (estimate_num_insns): Special case more builtins.
13129 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
13132 * c-typeck.c (build_binary_op): Move forward check for comparison
13133 pointer with null pointer constant and adjust the diagnostic message.
13135 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
13138 * configure.ac (gcc_cv_as_section_has_align): Set if installed
13139 binutils supports extended .section directive needed by LTO, or
13140 warn if older binutils found.
13141 (LTO_BINARY_READER): New AC_SUBST'd variable.
13142 (LTO_USE_LIBELF): Likewise.
13143 * gcc/config.gcc (lto_binary_reader): New target-specific configure
13145 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
13146 (LTO_USE_LIBELF): Likewise.
13147 * configure: Regenerate.
13149 * collect2.c (is_elf): Rename from this ...
13150 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
13151 object files in addition to ELF-formatted ones.
13152 (scan_prog_file): Caller updated. Also allow for LTO info marker
13153 symbol to be prefixed or not by an extra underscore.
13155 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
13156 * config/i386/winnt.c: Also #include lto-streamer.h
13157 (i386_pe_asm_named_section): Specify 1-byte section alignment for
13158 LTO named sections.
13159 (i386_pe_asm_output_aligned_decl_common): Add comment.
13160 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
13162 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
13165 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
13166 Add missing earlyclobber for second alternative.
13168 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
13170 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
13171 bits for artificial defs at the top of the block.
13172 * fwprop.c (single_def_use_enter_block): Don't call it.
13174 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
13177 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
13178 instead of "$gcc_cv_objdump -T".
13179 Use "-undefined dynamic_lookup" on darwin.
13180 * gcc/configure: Regenerate.
13182 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13185 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
13187 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
13189 * c-parser.c (struct c_token): Move location field up.
13190 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
13191 (struct c_declspecs): Convert typespec_word, storage_class, and
13192 default_int_p into bitfields.
13193 (struct c_declarator): Move loc field up.
13195 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
13197 * cfgloop.h (struct loop): Move can_be_parallel field up.
13198 * ipa-prop.h (struct ip_node_params): Move bitfields up.
13199 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
13201 (struct iv_cand): Convert pos field into a bitfield.
13202 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
13204 (struct _stmt_vec_info): Shuffle fields for better packing.
13206 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
13208 * varasm.c (IN_NAMED_SECTION): Remove guard.
13209 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
13210 (IN_NAMED_SECTION_P): ...this.
13211 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
13212 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13214 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
13216 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
13217 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
13218 of shadowing it. Fix comments.
13220 2010-04-26 Jan Hubicka <jh@suse.cz>
13222 * cgraph.c (cgraph_create_node): Set node frequency to normal.
13223 (cgraph_clone_node): Copy function frequency.
13224 * cgraph.h (node_frequency): New enum
13225 (struct cgraph_node): Add.
13226 * final.c (rest_of_clean_state): Update.
13227 * lto-cgraph.c (lto_output_node): Output node frequency.
13228 (input_overwrite_node): Input node frequency.
13229 * tre-ssa-loop-ivopts (computation_cost): Update.
13230 * lto-streamer-out.c (output_function): Do not output function
13232 * predict.c (maybe_hot_frequency_p): Update and handle functions
13234 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
13236 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
13237 (compute_function_frequency): Set noreturn functions to be executed
13239 (choose_function_section): Update.
13240 * lto-streamer-in.c (input_function): Do not input function frequency.
13241 * function.c (allocate_struct_function): Do not initialize function
13243 * function.h (function_frequency): Remove.
13244 (struct function): Remove function frequency.
13245 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
13246 (try_update): Update.
13247 * tree-inline.c (initialize_cfun): Do not update function frequency.
13248 * passes.c (pass_init_dump_file): Update.
13249 * i386.c (ix86_compute_frame_layout): Update.
13250 (ix86_pad_returns): Update.
13252 2010-04-26 Jie Zhang <jie@codesourcery.com>
13254 PR tree-optimization/43833
13255 * tree-vrp.c (range_int_cst_p): New.
13256 (range_int_cst_singleton_p): New.
13257 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
13258 when both operands are constants. Use range_int_cst_p in
13261 2010-04-26 Jan Hubicka <jh@suse.cz>
13263 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
13265 2010-04-26 Richard Guenther <rguenther@suse.de>
13268 * gimple.c (gimple_decl_printable_name): Deal gracefully
13269 with a NULL DECL_NAME.
13271 2010-04-26 Richard Guenther <rguenther@suse.de>
13274 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
13275 if emitting debug information and it is either a function
13276 or a namespace decl.
13278 2010-04-26 Ira Rosen <irar@il.ibm.com>
13280 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
13281 determine if the statement is vectorizable, and a macro to access it.
13282 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13283 Skip statements that can't be vectorized. If the analysis fails,
13284 mark the statement as unvectorizable if vectorizing basic block.
13285 (vect_compute_data_refs_alignment): Likewise.
13286 (vect_verify_datarefs_alignment): Skip statements marked as
13287 unvectorizable. Add print.
13288 (vect_analyze_group_access): Skip statements that can't be
13289 vectorized. If the analysis fails, mark the statement as
13290 unvectorizable if vectorizing basic block.
13291 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
13292 * tree-vect-stmts.c (vectorizable_store): Fix the number of
13293 generated stmts for SLP.
13294 (new_stmt_vec_info): Initialize the new field.
13295 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
13296 statements marked as unvectorizable.
13298 2010-04-25 Joseph Myers <joseph@codesourcery.com>
13300 * c-common.c (flag_isoc1x): New.
13301 (flag_isoc99): Update comment.
13302 * c-common.h (flag_isoc1x): New.
13303 (flag_isoc99): Update comment.
13304 * c-cppbuiltin.c (builtin_define_float_constants): Also define
13305 __<type>_DECIMAL_DIG__.
13306 * c-opts.c (set_std_c1x): New.
13307 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
13308 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
13309 * c.opt (-std=c1x, -std=gnu1x): New options.
13310 * doc/cpp.texi: Mention -std=c1x.
13311 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
13312 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
13313 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
13314 * doc/standards.texi: Mention C1X.
13315 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
13316 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
13317 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13320 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
13322 * config/i386/gmon-sol2.c (_mcleanup): Change format string
13323 placeholder from 0x%x to %#x.
13324 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13325 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13326 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13327 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13328 * config/i386/i386.c (ix86_target_string): Ditto.
13329 (output_pic_addr_const): Ditto.
13330 (print_operand): Ditto.
13332 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
13334 * combine.c (find_split_point): Add third argument. Use it
13335 to find nested multiply-accumulate instructions. Adjust calls.
13336 (try_combine): Adjust call to find_split_point.
13338 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
13340 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
13342 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
13344 PR tree-optimization/41442
13345 * fold-const.c (merge_truthop_with_opposite_arm): New function.
13346 (fold_binary_loc): Call it.
13348 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13350 * toplev.c (general_init): Set default for fdiagnostics-show-option.
13351 * opts.c (common_handle_option): Allow disabling it.
13352 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
13354 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
13356 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
13357 between modes if both types are integral.
13359 2010-04-23 Richard Guenther <rguenther@suse.de>
13361 PR tree-optimization/43572
13362 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
13364 2010-04-23 Richard Guenther <rguenther@suse.de>
13367 * tree-inline.c (tree_can_inline_p): Also check compatibility
13370 2010-04-23 Martin Jambor <mjambor@suse.cz>
13372 PR tree-optimization/43846
13373 * tree-sra.c (struct access): New flag grp_assignment_read.
13374 (build_accesses_from_assign): Set grp_assignment_read.
13375 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
13376 (enum mark_read_status): New type.
13377 (analyze_access_subtree): Propagate grp_assignment_read, create
13378 accesses also if both direct_read and root->grp_assignment_read.
13380 2010-04-23 Martin Jambor <mjambor@suse.cz>
13382 PR middle-end/43835
13383 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
13384 function does not have type attributes.
13386 2010-04-23 Richard Guenther <rguenther@suse.de>
13389 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
13392 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13394 * sese.h (create_if_region_on_edge): Remove.
13396 * sese.c (create_if_region_on_edge): Make static.
13398 * tree-inline.c: Do not include ggc.h.
13400 * expr.c: Do not include ggc.h.
13402 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
13405 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
13408 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13409 in the middle of insns for casesi_worker_2.
13411 2010-04-22 David Edelsohn <edelsohn@gnu.org>
13413 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
13415 2010-04-22 Ira Rosen <irar@il.ibm.com>
13417 PR tree-optimization/43842
13418 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
13419 loop unrolling in update of exit phis. Fix comment.
13420 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
13421 least two reduction statements in the loop before starting SLP
13424 2010-04-22 Nick Clifton <nickc@redhat.com>
13426 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
13428 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
13430 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
13431 to simplify a + ~a.
13433 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13435 * tree-parloops.c (loop_parallel_p): New argument
13436 parloop_obstack. Pass it down.
13437 (parallelize_loops): New variable parloop_obstack. Initialize it,
13438 pass it down, free it.
13440 * tree-loop-linear.c (linear_transform_loops): Pass down
13443 * tree-data-ref.h (lambda_compute_access_matrices): New argument
13444 of type struct obstack *.
13446 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
13447 scratch_obstack. Initialize it, pass down, free it.
13449 * lambda.h (lambda_loop_new): Remove.
13450 (lambda_matrix_new, lambda_matrix_inverse)
13451 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
13452 argument of type struct obstack *.
13454 * lambda-trans.c (lambda_trans_matrix_new): New argument
13455 lambda_obstack. Pass it down, use obstack allocation for ret.
13456 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
13459 * lambda-mat.c (lambda_matrix_get_column)
13460 (lambda_matrix_project_to_null): Remove.
13461 (lambda_matrix_new): New argument lambda_obstack. Use obstack
13462 allocation for mat.
13463 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
13466 * lambda-code.c (lambda_loop_new): New function.
13467 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
13468 (lambda_compute_auxillary_space, lambda_compute_target_space)
13469 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
13470 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
13471 (build_access_matrix): New argument lambda_obstack. Use obstack
13473 (lambda_compute_step_signs, lambda_compute_access_matrices): New
13474 argument lambda_obstack. Pass it down.
13476 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13478 * optabs.h (expand_widening_mult): Declare.
13480 2010-04-22 Richard Guenther <rguenther@suse.de>
13482 PR tree-optimization/43845
13483 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
13484 lookup the CALL_EXPR function and arguments.
13486 2010-04-22 Nick Clifton <nickc@redhat.com>
13488 * config/stormy16/stormy16.c
13489 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
13490 * config/stormy16/stormy16.h: Tidy up formatting.
13491 (DONT_USE_BUILTIN_SETJMP): Remove definition.
13492 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
13493 (ineqbranchsi): Delete pattern.
13494 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
13495 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
13496 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13497 stormy16-lib2-ucmpsi2.c.
13499 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13501 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
13502 df_simulate_find_noclobber_defs as appropriate. Keep track of an
13503 extra set merge_set_noclobber, and use it to relax the final test
13505 * df.h (df_simulate_find_noclobber_defs): Declare.
13506 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
13508 (df_simulate_find_noclobber_defs): New function.
13510 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
13512 * config/i386/i386.md: Use {} around multi-line preparation statements.
13514 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13516 * c-tree.h (push_init_level, pop_init_level, set_init_index)
13517 (process_init_element): New argument of type struct obstack *.
13519 * c-typeck.c (push_init_level, pop_init_level, set_designator)
13520 (set_init_index, set_init_label, set_nonincremental_init)
13521 (set_nonincremental_init_from_string, find_init_member)
13522 (output_init_element, output_pending_init_elements)
13523 (process_init_element): New argument braced_init_obstack. Pass it
13525 (push_range_stack, add_pending_init): New argument
13526 braced_init_obstack. Use obstack allocation.
13528 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
13529 braced_init_obstack. Pass it down.
13530 (c_parser_braced_init): New variables ret, braced_init_obstack.
13531 Initialize obstack, pass it down and finally free it.
13533 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13535 PR middle-end/29274
13536 * tree-pass.h (pass_optimize_widening_mul): Declare.
13537 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
13538 gate_optimize_widening_mul): New static functions.
13539 (pass_optimize_widening_mul): New.
13540 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
13541 <case MULT_EXPR>: Remove support for widening multiplies.
13542 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
13543 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
13544 simplify_gen_unary rather than directly building extensions.
13545 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
13547 * expmed.c (expand_widening_mult): New function.
13548 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
13550 2010-04-21 Jan Hubicka <jh@suse.cz>
13552 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
13553 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
13554 * lto-wpa-fixup.c: Remove.
13555 * Makefile.in (lto-wpa-fixup.o): Remove.
13556 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
13557 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
13558 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
13560 2010-04-21 Jan Hubicka <jh@suse.cz>
13562 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
13563 add write_optimization_summary, read_optimization_summary.
13564 (ipa_write_summaries_of_cgraph_node_set): Remove.
13565 (ipa_write_optimization_summaries): Declare.
13566 (ipa_read_optimization_summaries): Declare.
13567 * ipa-cp.c (pass_ipa_cp): Update.
13568 * ipa-reference.c (pass_ipa_reference): Update.
13569 * ipa-pure-const.c (pass_ipa_pure_const): Update.
13570 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
13572 * ipa-inline.c (pass_ipa_inline): Update.
13573 * ipa.c (pass_ipa_whole_program): Update.
13574 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
13575 * passes.c (ipa_write_summaries_1): Do not test wpa.
13576 (ipa_write_optimization_summaries_1): New.
13577 (ipa_write_optimization_summaries): New.
13578 (ipa_read_summaries): Do not test ltrans.
13579 (ipa_read_optimization_summaries_1): New.
13580 (ipa_read_optimization_summaries): New.
13582 2010-04-21 Jan Hubicka <jh@suse.cz>
13584 * lto-cgraph.c (lto_output_node): Do not output comdat groups
13585 for boundary nodes.
13586 (output_cgraph): Do not arrange comdat groups for boundary nodes.
13588 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13591 * dwarf2out.c (add_name_and_src_coords_attributes): Add
13592 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
13594 2010-04-21 Jan Hubicka <jh@suse.cz>
13596 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
13598 2010-04-21 Jan Hubicka <jh@suse.cz>
13600 * varpool.c (decide_is_variable_needed): Variable is always needed
13603 2010-04-21 Jan Hubicka <jh@suse.cz>
13605 * opts.c (decode_options): Enable pure-const pass for whopr.
13607 2010-04-21 Jan Hubicka <jh@suse.cz>
13609 * cgraph.c (dump_cgraph_node): Dump also assembler name.
13610 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
13612 (cgraph_decide_inlining): Do not expect callee to be removed in all
13615 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
13617 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
13619 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13621 * config/i386/i386.md (x86_shrd): Add athlon_decode and
13622 amdfam10_decode attributes.
13624 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13626 PR middle-end/43570
13627 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
13628 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
13629 (lower_copyprivate_clauses): Use private var in outer
13630 context instead of original var. Make sure the types
13631 are correct for VLAs.
13633 2010-04-21 Richard Guenther <rguenther@suse.de>
13635 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
13636 to non-pointer objects.
13638 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13640 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
13641 last chain entry if it starts with the still current label.
13642 (add_location_or_const_value_attribute): Check that
13643 loc_list->first->next is NULL instead of comparing ->first with ->last.
13644 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
13645 to add_var_loc_to_decl.
13647 * dwarf2out.c (output_call_frame_info): For dw_cie_version
13648 >= 4 add also address size and segment size fields into CIE header.
13650 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13651 long as address size is the same as sizeof (void *) and
13653 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
13654 address size or segment size is unexpected, return DW_EH_PE_omit.
13655 (classify_object_over_fdes): If get_cie_encoding returned
13656 DW_EH_PE_omit, return -1.
13657 (init_object): If classify_object_over_fdes returned -1,
13658 pretend there were no FDEs at all.
13660 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13662 * config/i386/i386.md (bswap<mode>2): Macroize expander from
13663 bswap{si,di}2 using SWI48 mode iterator.
13664 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13665 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
13666 set modrm attribute of bswap insn to 0 and remove length attribute.
13667 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13668 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
13669 set mode attribute to <MODE> and remove length attribute.
13671 2010-04-20 James E. Wilson <wilson@codesourcery.com>
13673 PR rtl-optimization/43520
13674 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13675 zero available registers.
13677 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13679 * builtins.c (fold_builtin_cproj): Fold more cases.
13681 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13683 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13684 (fold_builtin_1): Fold builtin cproj.
13685 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13686 Use ATTR_CONST_NOTHROW_LIST.
13688 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
13690 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13691 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
13692 ffsi2_no_cmove for !TARGET_CMOVE.
13693 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
13694 (ffssi2): Remove expander.
13695 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13697 (ctz<mode>2): Ditto from ctz{si,di}2.
13698 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13700 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13703 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13705 * dwarf2out.c (AT_linkage_name): Define.
13706 (clone_as_declaration): Handle DW_AT_linkage_name.
13707 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13708 of DW_AT_MIPS_linkage_name.
13709 (move_linkage_attr): Likewise.
13710 (dwarf2out_finish): Likewise.
13712 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
13714 PR middle-end/41952
13715 * fold-const.c (fold_comparison): New folding rule.
13717 2010-04-20 Anatoly Sokolov <aesok@post.ru>
13719 * double-int.h (double_int_setbit): Declare.
13720 * double-int.c (double_int_setbit): New function.
13721 * rtl.h (immed_double_int_const): Declare.
13722 * emit-rtl.c (immed_double_int_const): New function.
13723 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13724 and immed_double_int_const functions.
13725 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13726 expand_copysign_bit): (Ditto.).
13727 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13728 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13729 * dojump.c (prefer_and_bit_test): (Ditto.).
13730 * expr.c (convert_modes, reduce_to_bit_field_precision,
13731 const_vector_from_tree): (Ditto.).
13732 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13734 2010-04-20 Jan Hubicka <jh@suse.cz>
13736 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13737 (dump_cgraph_node): Dump new flags.
13738 * cgraph.h (struct cgraph_node): Add flags
13739 reachable_from_other_partition and in_other_partition.
13740 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13741 other partition can not be removed.
13742 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13743 the other partition must be output; silence sanity checking on
13744 leaking functions bodies from other paritition.
13745 * lto-cgraph.c (reachable_from_other_partition_p): New function.
13746 (lto_output_node): Output new flags; do not sanity check that inline
13747 clones are output; drop lto_forced_extern_inline_p code; do not mock
13748 visibility flags at partition boundaries.
13749 (add_node_to): New function.
13750 (output_cgraph): Use it to sort functions so masters appear before
13752 (input_overwrite_node): Input new flags.
13753 * passes.c (ipa_write_summaries): Do not call
13754 lto_new_extern_inline_states.
13755 * lto-section-out.c (forced_extern_inline,
13756 lto_new_extern_inline_states lto_delete_extern_inline_states,
13757 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13758 * lto-streamer.h (lto_new_extern_inline_states,
13759 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13760 lto_forced_extern_inline_p): Kill.
13762 2010-04-20 Richard Guenther <rguenther@suse.de>
13764 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13765 from vars that can have pointers.
13766 (process_constraint): Dump useless constraints.
13768 2010-04-20 Richard Guenther <rguenther@suse.de>
13770 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13771 (dump_sa_points_to_info): Remove asserts.
13772 (init_base_vars): nothing_id isn't an escape point nor does it
13775 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13777 * tree.h (TYPE_REF_IS_RVALUE): Define.
13778 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13779 should_move_die_to_comdat, prune_unused_types_walk): Handle
13780 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13781 (modified_type_die, gen_reference_type_die): Emit
13782 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13783 if TYPE_REF_IS_RVALUE and -gdwarf-4.
13785 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13788 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13789 calls for -fpic -m31 if they have been sibcall optimized.
13791 2010-04-19 James E. Wilson <wilson@codesourcery.com>
13793 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13794 ar.lc fixed and call-used.
13796 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13798 2010-04-19 Jan Hubicka <jh@suse.cz>
13800 * opts.c (decode_options): Disable whpr incompatible passes.
13801 * lto/lto.c (lto_1_to_1_map): Skip clones.
13802 (read_cgraph_and_symbols): Do not mark everything as needed.
13803 (do_whole_program_analysis): Do map only after optimizing;
13804 set proper cgraph_state; use passmanager.
13806 2010-04-19 DJ Delorie <dj@redhat.com>
13808 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13809 POINTER_PLUS_EXPR and fix them.
13811 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
13813 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13814 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13815 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13816 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13817 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13818 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13819 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13820 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13821 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13822 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13823 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13825 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
13827 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13828 (check_cond_move_block): Likewise.
13829 (cond_move_process_if_block): Likewise.
13830 (noce_find_if_block): Improve formatting.
13831 (find_if_header): Pass 0 to memset and tweak conditions.
13832 (cond_exec_find_if_block): Fix long lines and tweak conditions.
13834 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13836 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13839 PR middle-end/43337
13840 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13841 with non-local decl doesn't need chain.
13843 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
13845 * ira-color.c (allocno_reload_assign): Avoid accumulating
13846 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13848 2010-04-19 Martin Jambor <mjambor@suse.cz>
13850 * gimple.h (create_tmp_reg): Declare.
13851 * gimplify.c (create_tmp_reg): New function.
13852 (gimplify_return_expr): Use create_tmp_reg.
13853 (gimplify_omp_atomic): Likewise.
13854 (gimple_regimplify_operands): Likewise.
13855 * tree-dfa.c (make_rename_temp): Likewise.
13856 * tree-predcom.c (predcom_tmp_var): Likewise.
13857 (reassociate_to_the_same_stmt): Likewise.
13858 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13859 (get_replaced_param_substitute): Likewise.
13860 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13861 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13862 * tree-ssa-pre.c (get_representative_for): Likewise.
13863 (create_expression_by_pieces): Likewise.
13864 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13865 (create_tailcall_accumulator): Likewise.
13867 2010-04-19 Martin Jambor <mjambor@suse.cz>
13869 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13871 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13873 2010-04-19 Richard Guenther <rguenther@suse.de>
13875 PR tree-optimization/43796
13876 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13877 from SCEV in the lattice.
13878 (vrp_visit_phi_node): Dump change.
13880 2010-04-19 Richard Guenther <rguenther@suse.de>
13882 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13883 * configure: Re-generated.
13885 2010-04-19 Richard Guenther <rguenther@suse.de>
13887 PR tree-optimization/43783
13888 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13889 constant ARRAY_REF operands two and three if possible.
13891 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
13894 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13896 2010-04-19 Jie Zhang <jie@codesourcery.com>
13899 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13901 2010-04-19 Ira Rosen <irar@il.ibm.com>
13903 PR tree-optimization/37027
13904 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13905 and macro to access it.
13906 (vectorizable_reduction): Add argument.
13907 (vect_get_slp_defs): Likewise.
13908 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13909 statements for possible use in SLP.
13910 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13911 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13912 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13914 (vectorizable_reduction): Likewise.
13915 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13917 (vectorizable_type_demotion, vectorizable_type_promotion,
13918 vectorizable_store): Likewise.
13919 (vect_analyze_stmt): Update call to vectorizable_reduction.
13920 (vect_transform_stmt): Likewise.
13921 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13922 (vect_build_slp_tree): Fix indentation. Check that there are no loads
13923 from different interleaving chains in same node.
13924 (vect_slp_rearrange_stmts): New function.
13925 (vect_supported_load_permutation_p): Allow load permutations for
13926 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13927 inside SLP nodes if necessary.
13928 (vect_analyze_slp_instance): Handle reductions.
13929 (vect_analyze_slp): Try to build SLP instances originating from groups
13931 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13932 (vect_get_constant_vectors): Create initial vectors for reductions
13933 according to reduction code. Add new argument.
13934 (vect_get_slp_defs): Add new argument, pass it to
13935 vect_get_constant_vectors.
13936 (vect_schedule_slp_instance): Remove SLP tree root statements.
13938 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13940 * tree.h (ENUM_IS_SCOPED): Define.
13941 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13942 for ENUM_IS_SCOPED enums.
13944 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
13946 * fold-const.c (fold_comparison): Use ssizetype.
13947 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13948 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13949 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13950 * tree-object-size.c (compute_object_sizes): Use size_type_node.
13952 * tree.h (initialize_sizetypes): Remove parameter.
13953 (build_common_tree_nodes): Remove second parameter.
13954 * stor-layout.c (initialize_sizetypes): Remove parameter.
13955 Always create an unsigned type.
13956 (set_sizetype): Assert that the passed type is unsigned and simplify.
13957 * tree.c (build_common_tree_nodes): Remove second parameter.
13958 Adjust call to initialize_sizetypes.
13959 * c-decl.c (c_init_decl_processing): Remove second argument in call to
13960 build_common_tree_nodes.
13962 2010-04-18 Matthias Klose <doko@ubuntu.com>
13964 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13966 2010-04-18 Ira Rosen <irar@il.ibm.com>
13968 PR tree-optimization/43771
13969 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13970 load permutation doesn't have gaps.
13972 2010-04-18 Jan Hubicka <jh@suse.cz>
13974 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13975 (sse_prologue_save_insn expander): Use new pattern.
13976 (sse_prologue_save_insn1): New pattern and splitter.
13977 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13979 * i386.c (setup_incoming_varargs_64): Do not compute jump
13981 (ix86_gimplify_va_arg): Update alignment needed.
13982 (ix86_local_alignment): Do not align all local arrays to 128bit.
13984 2010-04-17 Jan Hubicka <jh@suse.cz>
13986 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13988 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13990 * arm.md (negdi2): Remove redundant code to force values into a
13993 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13995 * arm/bpabi.S: Add EABI alignment attributes to objects.
13996 * arm/bpabi-v6m.S: Likewise.
13997 * arm/crti.asm: Likewise.
13998 * arm/crtn.asm: Likewise.
13999 * arm/lib1funcs.asm: Likewise.
14000 * arm/libunwind.S: Likewise.
14002 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14004 * arm-protos.h (tune_params): New structure.
14005 * arm.c (current_tune): New variable.
14006 (arm_constant_limit): Delete.
14007 (struct processors): Add pointer to the tune parameters.
14008 (arm_slowmul_tune): New tuning option.
14009 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
14010 (all_cores): Adjust to pick up the tuning model.
14011 (arm_constant_limit): New function.
14012 (arm_override_options): Select the appropriate tuning model. Delete
14013 initialization of arm_const_limit.
14014 (arm_split_constant): Use the new constant-limit model.
14015 (arm_rtx_costs): Pick up the current tuning model.
14016 * arm.md (is_strongarm, is_xscale): Delete.
14017 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
14018 for Xscale variant architectures.
14019 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
14021 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14023 * config/arm/arm.c (arm_gen_constant): Remove unused variable
14025 (arm_rtx_costs_1): Remove unused variable extra_cost.
14026 (arm_unwind_emit_set): Use variable offset.
14027 (thumb1_output_casesi): Remove unused variable flags.
14029 2010-04-16 Jeff Law <law@redhat.com>
14031 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
14032 needing assignment rather than doing a two-phase assignment. Remove
14033 unused variable 'm'.
14035 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14038 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
14040 2010-04-16 Doug Kwan <dougkwan@google.com>
14042 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
14043 (next_operand_entry_id): New static variable.
14044 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
14045 (add_to_ops_vec): Assigned unique ID to operand entry.
14046 (struct oecount_s): New field ID.
14047 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
14048 (undistribute_ops_list): Assign unique IDs to oecounts.
14049 (init_reassoc): reset next_operand_entry_id.
14051 2010-04-16 Doug Kwan <dougkwan@google.com>
14053 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
14054 missing left parenthesis.
14056 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
14058 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
14059 *btdi_rex64 using SWI48 mode iterator.
14060 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
14061 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
14062 *jcc_btdi_mask_rex64.
14064 2010-04-16 Anatoly Sokolov <aesok@post.ru>
14066 * double-int.h (tree_to_double_int): Convert to macro.
14067 * double-int.c (tree_to_double_int): Remove.
14069 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14072 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
14073 with want_address 2 and in case a single element list might be
14074 possible, call it again with want_address 0.
14076 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14078 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
14079 case 'W' print operands for HI mode.
14080 * config/h8300/h8300.h (Y0, Y2) : New constraints.
14081 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
14082 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
14083 * config/h8300/predicate.md (bit_register_indirect_operand): New.
14085 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
14087 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
14088 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
14089 #xx:3 and #xx:4 mode.
14091 * config/h8300/h8300.md (inverted load with HImode dest): Add
14092 support for H8300SX.
14094 * config/h8300/predicate.md (bit_operand): Allow immediate values that
14095 satisfy 'U' constraint.
14097 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14099 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
14100 * configure: Regenerate.
14101 * config.in: Regenerate.
14102 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
14105 2010-04-16 Richard Guenther <rguenther@suse.de>
14107 * tree.h (struct tree_decl_minimal): Move pt_uid ...
14108 (struct tree_decl_common): ... here.
14109 (DECL_PT_UID): Adjust.
14110 (SET_DECL_PT_UID): Likewise.
14111 (DECL_PT_UID_SET_P): Likewise.
14113 2010-04-16 Richard Guenther <rguenther@suse.de>
14115 PR tree-optimization/43572
14116 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
14117 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
14118 * tree-flow.h (is_call_clobbered): Remove.
14119 * tree-flow-inline.h (is_call_clobbered): Likewise.
14120 * tree-dfa.c (dump_variable): Do not dump call clobber state.
14121 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
14122 (execute_return_slot_opt): Adjust.
14123 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
14124 check for call clobbered vars here.
14125 (find_tail_calls): Move tailcall verification to the
14128 2010-04-16 Diego Novillo <dnovillo@google.com>
14130 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
14132 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
14135 * config/arm/arm.md (cbranchqi4): New pattern.
14136 * config/arm/predicates.md (const0_operand,
14137 cbranchqi4_comparison_operator): New predicates.
14139 2010-04-16 Richard Guenther <rguenther@suse.de>
14141 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
14142 (dump_gimple_stmt): Likewise.
14144 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
14146 * recog.h (struct recog_data): New field is_operator.
14147 (struct insn_operand_data): New field is_operator.
14148 * recog.c (extract_insn): Set recog_data.is_operator.
14149 * genoutput.c (output_operand_data): Emit code to set the
14151 * reload.c (find_reloads): Use it rather than testing for an
14152 empty constraint string.
14155 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
14156 If the previous insn is a cbranchsi4_insn with the same arguments,
14157 omit the compare instruction.
14159 * config/arm/arm.md (addsi3_cbranch): If destination is a high
14160 register, inputs must be low registers and we need a low register
14161 scratch. Handle alternative 2 like alternative 3.
14163 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14165 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
14166 don't call get_addr on both. If one expression is a VALUE and
14167 the other a REG, check VALUE's locs if the REG isn't among them.
14169 2010-04-16 Christian Bruel <christian.bruel@st.com>
14171 * config/sh/sh.h (sh_frame_pointer_required): New function.
14172 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
14173 (flag_omit_frame_pointer) Set.
14174 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
14175 (rounded_frame_size): Adjust size with outgoing_args_size.
14176 (sh_set_return_address): Must return from stack pointer.
14177 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
14178 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
14179 (ACCUMULATE_OUTGOING_ARGS): Define.
14180 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
14181 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
14183 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
14186 * config/sh/sh.c (sh_legitimize_reload_address): Use
14187 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
14188 Remove a unneeded check for offset_base.
14190 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
14192 * configure: Regenerated.
14194 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14196 * config/s390/s390.c (s390_call_save_register_used): Switch back
14197 to HARD_REGNO_NREGS.
14199 2010-04-15 Richard Guenther <rguenther@suse.de>
14201 * alias.c (alias_set_subset_of): Handle alias-set zero
14204 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
14205 Julian Brown <julian@codesourcery.com>
14207 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
14208 alternatives according to use of high and low regs.
14209 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14210 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
14211 optimizing for size on Thumb-2.
14213 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
14215 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
14217 2010-04-15 Richard Guenther <rguenther@suse.de>
14219 * tree-ssa-structalias.c (struct variable_info): Add
14221 (new_var_info): Initialize it.
14222 (dump_constraints): Support printing last added constraints.
14223 (debug_constraints): Adjust.
14224 (dump_constraint_graph): Likewise.
14225 (make_heapvar_for): Check for NULL cfun.
14226 (get_function_part_constraint): New function.
14227 (get_fi_for_callee): Likewise.
14228 (find_func_aliases): Properly implement IPA PTA constraints.
14229 (process_ipa_clobber): New function.
14230 (find_func_clobbers): Likewise.
14231 (insert_into_field_list_sorted): Remove.
14232 (create_function_info_for): Properly allocate vars for IPA mode.
14233 Do not use insert_into_field_list_sorted.
14234 (create_variable_info_for): Properly generate constraints for
14235 global vars in IPA mode.
14236 (dump_solution_for_var): Always dump the solution.
14237 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
14238 (find_what_var_points_to): Adjust.
14239 (pt_solution_set): Change.
14240 (pt_solution_ior_into): New function.
14241 (pt_solution_empty_p): Export.
14242 (pt_solution_includes_global): Adjust.
14243 (pt_solution_includes_1): Likewise.
14244 (pt_solutions_intersect_1): Likewise.
14245 (dump_sa_points_to_info): Check some invariants.
14246 (solve_constraints): Move constraint dumping ...
14247 (compute_points_to_sets): ... here.
14248 (ipa_pta_execute): ... and here.
14249 (compute_may_aliases): Do not re-compute points-to info
14250 locally if IPA info is available.
14251 (ipa_escaped_pt): New global var.
14252 (ipa_pta_execute): Properly implement IPA PTA.
14253 * tree-into-ssa.c (dump_decl_set): Support dumping
14254 decls not in referenced-vars.
14255 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
14256 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
14257 (dump_points_to_solution): Likewise.
14258 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
14259 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
14260 (remap_gimple_stmt): Reset call clobber/use information if necessary.
14261 (copy_decl_to_var): Copy DECL_PT_UID.
14262 (copy_result_decl_to_var): Likewise.
14263 * tree.c (make_node_stat): Initialize DECL_PT_UID.
14264 (copy_node_stat): Copy it.
14265 * tree.h (DECL_PT_UID): New macro.
14266 (SET_DECL_PT_UID): Likewise.
14267 (DECL_PT_UID_SET_P): Likewise.
14268 (struct tree_decl_minimal): Add pt_uid member.
14269 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
14270 (pt_solution_empty_p): Declare.
14271 (pt_solution_set): Adjust.
14272 (ipa_escaped_pt): Declare.
14273 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
14274 * gimple-pretty-print.c (pp_points_to_solution): New function.
14275 (dump_gimple_call): Dump call clobber/use information.
14276 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
14277 * tree-pass.h (TDF_ALIAS): New dump option.
14278 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
14279 * doc/invoke.texi (-fipa-pta): Update documentation.
14281 2010-04-15 Richard Guenther <rguenther@suse.de>
14283 * Makefile.in (OBJS-common): Add gimple-fold.o.
14284 (gimple-fold.o): New rule.
14285 * tree.h (maybe_fold_offset_to_reference,
14286 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
14288 * gimple.h: ... here.
14289 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
14290 may_propagate_address_into_dereference): Move prototypes ...
14291 * gimple.h: ... here.
14292 * tree-ssa-ccp.c (get_symbol_constant_value,
14293 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
14294 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
14295 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
14296 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
14297 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
14298 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
14299 gimplify_and_update_call_from_tree): Move ...
14300 * gimple-fold.c: ... here. New file.
14301 (ccp_fold_builtin): Rename to ...
14302 (gimple_fold_builtin): ... this.
14303 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
14305 2010-04-15 Richard Guenther <rguenther@suse.de>
14307 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
14308 fit_double_type, force_fit_type_double, add_double_with_sign,
14309 neg_double, mul_double_with_sign, lshift_double, rshift_double,
14310 lrotate_double, rrotate_double, div_and_round_double): Move ...
14311 * double-int.c: ... here.
14312 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
14313 add_double, neg_double, mul_double_with_sign, mul_double,
14314 lshift_double, rshift_double, lrotate_double, rrotate_double,
14315 div_and_round_double): Move prototypes ...
14316 * double-int.h: ... here.
14318 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
14321 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
14322 matching constraints to ensure inputs match the output.
14324 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
14327 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
14328 in an input-only operand.
14330 2010-04-15 Anatoly Sokolov <aesok@post.ru>
14332 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
14333 (double_int_not, double_int_lshift, double_int_rshift): Declare.
14334 (double_int_negative_p): Convert to static inline function.
14335 * double-int.c (double_int_lshift, double_int_lshift): New functions.
14336 (double_int_negative_p): Remove.
14337 * tree.h (lshift_double, rshift_double):
14338 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
14339 * fold-const.c (fold_convert_const_int_from_real,
14340 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
14341 (lshift_double): Change type of arith argument to bool.
14342 (rshift_double): Change type of arith argument to bool. Correct
14344 * expmed.c (mask_rtx, lshift_value): (Ditto.).
14346 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
14349 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
14350 at the start and end of the then/else blocks, and omit them from the
14352 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
14353 argument; all callers changed. Pass zero to old_insns_match_p instead.
14354 (flow_find_head_matching_sequence): New function.
14355 (old_insns_match_p): Check REG_EH_REGION notes for calls.
14356 * basic-block.h (flow_find_cross_jump,
14357 flow_find_head_matching_sequence): Declare functions.
14359 2010-04-14 Jason Merrill <jason@redhat.com>
14362 * c-common.c (attribute_takes_identifier_p): New fn.
14363 * c-common.h: Declare it.
14365 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14367 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
14368 splitter condition.
14369 (*udivmod<mode>4): Ditto.
14371 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14373 * config/i386/i386.md (maxmin_int): Rename code attribute from
14374 maxminiprefix and update all users.
14375 (maxmin_float): Ditto from maxminfprefix.
14376 (logic): Ditto from logicprefix.
14377 (absneg_mnemonic): Ditto from absnegprefix.
14378 * config/i386/mmx.md: Update all users of maxminiprefix,
14379 maxminfprefix and logicprefix for rename.
14380 * config/i386/sse.md: Ditto.
14381 * config/i386/sync.md (sync_<code><mode>): Update for
14382 logicprefix rename.
14384 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14387 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
14388 warnings converted to errors.
14390 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14392 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
14393 used insn_type variable.
14394 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
14395 to avoid set-but-not-used warning.
14397 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14399 * df-core.c (df_ref_debug): Change format string placeholder
14401 * dwarf2asm.c (dw2_asm_output_data_raw,
14402 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
14403 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
14404 * dwarf2out.c (output_cfi, output_cfi_directive,
14405 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
14406 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
14408 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
14409 * print-rtl.c (print_rtx): Ditto.
14411 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14413 PR middle-end/42694
14414 * builtins.c (expand_builtin_pow_root): New function to expand pow
14415 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
14416 series of sqrt and cbrt calls under -ffast-math.
14417 (expand_builtin_pow): Call it.
14419 2010-04-14 Michael Matz <matz@suse.de>
14421 PR tree-optimization/42963
14422 * tree-cfg.c (touched_switch_bbs): New static variable.
14423 (group_case_labels_stmt): New function broken out from ...
14424 (group_case_labels): ... here, use the above.
14425 (start_recording_case_labels): Allocate touched_switch_bbs.
14426 (end_recording_case_labels): Deallocate it, call
14427 group_case_labels_stmt.
14428 (gimple_redirect_edge_and_branch): Remember index of affected BB.
14430 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14432 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
14433 from insn template.
14435 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14437 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
14439 2010-04-13 Jan Hubicka <jh@suse.cz>
14441 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
14442 of optimized out static functions.
14443 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
14444 cost computation. Also sanity check for overflows.
14445 (update_caller_keys): Update cgraph_edge_badness call; properly
14446 update fibheap and sanity check that it is up to date.
14447 (add_new_edges_to_heap): Update cgraph_edge_badness.
14448 (cgraph_decide_inlining_of_small_function): Likewise;
14449 add sanity checking that badness in heap is up to date;
14450 improve dumping of reason; Update badness of calls to the
14451 offline copy of function currently inlined; dump badness
14452 of functions not inlined because of unit growth limits.
14454 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14456 PR middle-end/32628
14457 * c-common.c (pointer_int_sum): Disregard overflow that occured only
14458 because of sign-extension change when converting to sizetype here...
14459 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
14461 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
14462 the folding to constants. Remove redundant final conversion.
14463 (fold_binary) <associate>: Do not associate if the re-association of
14464 constants alone overflows.
14465 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
14466 to the end of the list.
14467 (multiple_of_p) <COND_EXPR>: New case.
14469 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14471 * opt-functions.awk (opt_sanitized_name): New.
14473 * optc-gen.awk: Use it
14474 * opth-gen.awk: Use it.
14476 2010-04-13 Martin Jambor <mjambor@suse.cz>
14478 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
14479 (sra_modify_assign): Delete stmts loading dead data even if racc has no
14480 children. Call replace_uses_with_default_def_ssa_name to handle
14483 2010-04-13 Michael Matz <matz@suse.de>
14485 PR middle-end/43730
14486 * builtins.c (expand_builtin_interclass_mathfn): Also create
14487 a register if the predicate doesn't match.
14489 2010-04-13 Diego Novillo <dnovillo@google.com>
14491 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
14492 * c-pch.c: Include timevar.h.
14493 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
14494 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
14495 * ggc-common.c: Include timevar.h.
14496 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
14497 * timevar.def (TV_PCH_SAVE): Define.
14498 (TV_PCH_CPP_SAVE): Define.
14499 (TV_PCH_PTR_REALLOC): Define.
14500 (TV_PCH_PTR_SORT): Define.
14501 (TV_PCH_RESTORE): Define.
14502 (TV_PCH_CPP_RESTORE): Define.
14504 2010-04-13 Michael Matz <matz@suse.de>
14506 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
14508 (can_reassociate_p): New function.
14509 (break_up_subtract_bb, reassociate_bb): Use it.
14511 2010-04-13 Richard Guenther <rguenther@suse.de>
14514 * builtins.c (c_readstr): Fix assert.
14516 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
14518 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
14519 when generating cltd insn.
14521 (*ashl<mode>3_1): Remove special handling for register operand 2.
14522 (*ashlsi3_1_zext): Ditto.
14523 (*ashlhi3_1): Ditto.
14524 (*ashlhi3_1_lea): Ditto.
14525 (*ashlqi3_1): Ditto.
14526 (*ashlqi3_1_lea): Ditto.
14527 (*<shiftrt_insn><mode>3_1): Ditto.
14528 (*<shiftrt_insn>si3_1_zext): Ditto.
14529 (*<shiftrt_insn>qi3_1_slp): Ditto.
14530 (*<rotate_insn><mode>3_1): Ditto.
14531 (*<rotate_insn>si3_1_zext): Ditto.
14532 (*<rotate_insn>qi3_1_slp): Ditto.
14534 2010-04-13 Richard Guenther <rguenther@suse.de>
14536 * tree-ssa-structalias.c (callused_id): Remove.
14537 (call_stmt_vars): New.
14538 (get_call_vi): Likewise.
14539 (lookup_call_use_vi): Likewise.
14540 (lookup_call_clobber_vi): Likewise.
14541 (get_call_use_vi): Likewise.
14542 (get_call_clobber_vi): Likewise.
14543 (make_transitive_closure_constraints): Likewise.
14544 (handle_const_call): Adjust to do per-call call-used handling.
14545 (handle_pure_call): Likewise.
14546 (find_what_var_points_to): Remove general callused handling.
14547 (init_base_vars): Likewise.
14548 (init_alias_vars): Initialize call_stmt_vars.
14549 (compute_points_to_sets): Process call-used and call-clobbered
14550 vars for call statements.
14551 (delete_points_to_sets): Free call_stmt_vars.
14553 2010-04-13 Richard Guenther <rguenther@suse.de>
14555 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14556 Only add RW dependence for dependence distance zero.
14557 Adjust maximal vectorization factor according to dependences.
14558 Move alignment handling ...
14559 (vect_find_same_alignment_drs): ... here. New function.
14560 (vect_analyze_data_ref_dependences): Adjust.
14561 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
14562 (vect_analyze_data_refs): Adjust minimal vectorization factor
14563 according to data references.
14564 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
14565 dependences before determining the vectorization factor.
14566 Analyze alignment after determining the vectorization factor.
14567 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
14568 dependences before alignment.
14569 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
14571 (vect_analyze_data_refs): Likewise.
14572 (MAX_VECTORIZATION_FACTOR): New define.
14574 2010-04-13 Duncan Sands <baldrick@free.fr>
14576 * except.h (lang_eh_type_covers): Remove.
14577 * except.c (lang_eh_type_covers): Likewise.
14579 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14580 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14582 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
14583 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
14584 UNITS_PER_LONG where it is ABI relevant.
14585 (s390_return_addr_rtx): Likewise.
14586 (s390_back_chain_rtx): Likewise.
14587 (s390_frame_area): Likewise.
14588 (s390_frame_info): Likewise.
14589 (s390_initial_elimination_offset): Likewise.
14590 (save_gprs): Likewise.
14591 (s390_emit_prologue): Likewise.
14592 (s390_emit_epilogue): Likewise.
14593 (s390_function_arg_advance): Likewise.
14594 (s390_function_arg): Likewise.
14595 (s390_va_start): Likewise.
14596 (s390_gimplify_va_arg): Likewise.
14597 (s390_function_profiler): Likewise.
14598 (s390_optimize_prologue): Likewise.
14599 (s390_rtx_costs): Likewise.
14600 (s390_secondary_reload): Likewise.
14601 (s390_promote_function_mode): Likewise.
14602 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
14603 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
14604 registers available.
14605 (s390_unwind_word_mode): New function.
14606 (s390_function_value): Split 64 bit values into register pair if
14607 used as return value.
14608 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
14609 function call parameters. Handle parallels.
14610 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
14611 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
14612 (DWARF_CIE_DATA_ALIGNMENT): New macro.
14613 (s390_expand_setmem): Remove unused variable src_addr.
14614 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
14615 deal with 64 bit registers.
14616 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
14617 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
14618 (UNITS_PER_LONG): New macro.
14619 * libjava/include/s390-signal.h: Define extended ucontext
14620 structure containing the upper halfs of the 64 bit registers.
14622 2010-04-13 Simon Baldwin <simonb@google.com>
14624 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
14626 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14628 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
14629 rvalue on the RHS if the LHS is of a non-renamable type.
14630 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
14632 2010-04-13 Matthias Klose <doko@ubuntu.com>
14634 * gcc.c (cc1_options): Handle -iplugindir before processing
14635 the cc1 spec. Only add -iplugindir once.
14636 (cpp_unique_options): Add -iplugindir option if -fplugin* options
14638 * common.opt (iplugindir): Remove `Separate' property, initialize.
14639 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
14641 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
14642 (distclean): Remove plugin dir.
14643 * doc/invoke.texi: Document -iplugindir.
14645 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
14647 * doc/plugins.texi (Loading Plugins): Document short
14648 -fplugin=foo option.
14649 (Plugin API): Mention default_plugin_dir_name function.
14651 * gcc.c (find_file_spec_function): Add new declaration.
14652 (static_spec_func): Use it for "find-file".
14653 (find_file_spec_function): Add new function.
14654 (cc1_options): Add -iplugindir option if -fplugin* options found.
14656 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14658 * plugin.c (add_new_plugin): Updated comment, and handle short
14660 (default_plugin_dir_name): Added new function.
14662 * common.opt (iplugindir): New option to set the plugin directory.
14664 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
14666 * config/i386/i386.md (any_rotate): New code iterator.
14667 (rotate_insn): New code attribute.
14669 (SWIM124): New mode iterator.
14670 (<rotate_insn>ti3): New expander.
14671 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14672 any_rotate code iterator.
14673 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14674 using any_rotate code iterator and SWIM124 mode iterator.
14675 (ix86_rotlti3): New insn_and_split pattern.
14676 (ix86_rotrti3): Ditto.
14677 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14678 ix86_rotl{di,ti}3 patterns.
14679 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14680 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14681 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14682 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14683 code iterator and SWI mode iterator.
14684 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14685 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14687 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14688 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14689 (bswap rotatert splitter): Add splitter.
14690 (bswap splitter): Macroize splitter using any_rotate code iterator.
14691 Add insn predicate to split only for TARGET_USE_XCHGB or when
14692 optimizing function for size.
14694 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14696 * config/pa/pa.c (emit_move_sequence): Remove use of
14697 deleted variable flag_argument_noalias.
14699 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14701 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14703 Add to unsupported targets list.
14704 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14705 sparc*-sun-solaris2.[567]* from target lists.
14706 * configure: Regenerate.
14707 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14709 Remove Solaris 7 patch references.
14710 (Specific, sparc-sun-solaris2.7): Removed.
14711 (sparc-sun-solaris2*): Update Solaris 7 example.
14712 (sparc64-*-solaris2*): Likewise.
14714 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14716 * config.build (alpha*-dec-osf4*): Remove.
14717 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14718 of obsolete configurations.
14719 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14721 * config/alpha/t-osf4: Renamed to ...
14722 * config/alpha/t-osf5: ... this.
14723 * config/alpha/osf.h: Renamed to ...
14724 * config/alpha/osf5.h: ... this.
14725 Merged old osf5.h contents.
14727 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14728 (EXTRA_SPECS): Removed.
14729 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14730 reflect removal of Tru64 UNIX V4.0/V5.0 support.
14733 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14735 * doc/contrib.texi (Contributors, Rainer Orth): Update.
14737 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
14740 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14741 __thiscall convention.
14743 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14745 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14747 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14749 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14751 * function.c (assign_parms_initialize_all): Add unused attribute
14754 2010-04-12 Richard Guenther <rguenther@suse.de>
14756 * gsstruct.def (GSS_CALL): New.
14757 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14758 * gimple.h: Include tree-ssa-alias.h.
14759 (struct gimple_statement_call): New.
14760 (union gimple_statement_struct_d): Add gimple_call member.
14761 (gimple_call_reset_alias_info): Declare.
14762 (gimple_call_use_set): New function.
14763 (gimple_call_clobber_set): Likewise.
14764 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14765 * gimple.c (gimple_call_reset_alias_info): New function.
14766 (gimple_build_call_1): Call it.
14767 * lto-streamer-in.c (input_gimple_stmt): Likewise.
14768 * tree-inline.c (remap_gimple_stmt): Likewise.
14769 (expand_call_inline): Remove callused handling.
14770 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14771 * tree-dfa.c (dump_variable): Likewise.
14772 * tree-parloops.c (parallelize_loops): Likewise.
14773 * tree-ssa.c (init_tree_ssa): Likewise.
14774 (delete_tree_ssa): Likewise.
14775 * tree-flow-inline.h (is_call_used): Remove.
14776 * tree-flow.h (struct gimple_df): Remove callused member.
14777 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14778 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14779 (ref_maybe_used_by_call_p_1): Simplify.
14780 (call_may_clobber_ref_p_1): Likewise.
14781 * tree-ssa-structalias.c (compute_points_to_sets): Set
14782 the call stmt used and clobbered sets.
14783 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14784 (find_tail_calls): Verify the tail call.
14786 2010-04-12 Richard Guenther <rguenther@suse.de>
14788 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14789 single-iteration always-inline inlining.
14790 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14791 (cgraph_decide_inlining): Do not handle always-inline specially.
14792 (try_inline): Remove always-inline cycle detection special case.
14793 Do not recurse on always-inlines.
14794 (cgraph_early_inlining): Do not iterate if not optimizing.
14795 (cgraph_gate_early_inlining): remove.
14796 (pass_early_inline): Run unconditionally.
14797 (gate_cgraph_decide_inlining): New function.
14798 (pass_ipa_inline): Use it. Do not run the IPA inliner if
14799 not inlining or optimizing.
14800 (cgraph_decide_inlining_of_small_functions): Also consider
14801 always-inline functions.
14802 (cgraph_default_inline_p): Return true for nodes which should
14803 disregard inline limits.
14804 (estimate_function_body_sizes): Assume zero size and time for
14805 nodes which are marked as disregarding inline limits.
14806 (cgraph_decide_recursive_inlining): Do not perform recursive
14807 inlining on always-inline nodes.
14809 2010-04-12 Jakub Jelinek <jakub@redhat.com>
14812 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14813 for exprs satisfying handled_component_p.
14815 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
14817 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14818 non-constant aggregate elements.
14820 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14821 is a real initialization.
14823 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
14826 * c-decl.c (start_function): Move forward check for nested function.
14828 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
14830 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14831 * config/sh/sh.c: Include reload.h.
14832 (sh_legitimize_reload_address): New.
14833 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14834 sh_legitimize_reload_address.
14836 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14838 * config/sh/sh.md (*movqi_pop): New insn pattern.
14839 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14841 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14843 * config/i386/i386.md (any_shiftrt): New code iterator.
14844 (shiftrt_insn): New code attribute.
14846 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14847 using any_shiftrt code iterator.
14848 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14849 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14850 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14851 pattern from corresponding peephole2 patterns.
14852 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14853 using any_shiftrt code iterator.
14854 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14855 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14856 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14857 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14858 *{ashr,lshr}<mode>3_cmp_zext.
14859 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14861 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14863 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14865 (*lshr<mode>3_cconly): Ditto.
14867 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14869 * config/i386/i386.md (lshr<mode>3): Macroize expander from
14870 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14871 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14872 pattern from *lshr{di,ti}3_1 and corresponding splitters using
14874 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14875 from corresponding peephole2 patterns.
14876 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14877 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14878 and *lshrdi3_1_rex64 using SWI mode iterator.
14879 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14880 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14881 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14882 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14883 and *lshrdi3_cmp_rex64 using SWI mode iterator.
14884 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14885 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14886 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14887 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14890 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
14892 * config/i386/i386.md (ashr<mode>3): Macroize expander from
14893 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14894 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14895 pattern from *ashr{di,ti}3_1 and corresponding splitters using
14897 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14898 from corresponding peephole2 patterns.
14899 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14900 (ashrsi3_cvt): Rename from ashrsi3_31.
14901 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14902 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14903 and x86_64_shift_adj_3 using SWI48 mode iterator.
14904 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14905 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14906 and *ashrdi3_1_rex64 using SWI mode iterator.
14907 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14908 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14909 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14910 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14911 and *ashrdi3_cmp_rex64 using SWI mode iterator.
14912 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14913 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14914 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14915 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14917 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14918 * config/i386/i386.c (ix86_split_ashr): Update for renamed
14919 x86_shift<mode>_adj_3 expanders.
14921 2010-04-10 Wei Guozhi <carrot@google.com>
14924 * config/arm/arm.c (arm_pic_static_addr): New function.
14925 (legitimize_pic_address): Call arm_pic_static_addr when it detects
14927 (arm_output_addr_const_extra): Output expression for new pattern.
14928 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14930 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
14932 * ira-costs.c (record_reg_classes): Ignore alternatives that are
14935 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14936 * web.c: Include "insn-config.h" and "recog.h".
14937 (union_match_dups): New function.
14938 (web_main): Call it.
14939 (union_defs): Don't try to recognize match_dups.
14941 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14942 if doing so would replace the entire pattern.
14944 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14948 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14949 and splitter pattern. Change splitter operand 1 predicate to
14952 2010-04-09 Martin Jambor <mjambor@suse.cz>
14954 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14955 lattices are addresses of CONST_DECLs with the same initial value.
14956 (ipcp_print_all_lattices): Print values of CONST_DECLs.
14957 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14959 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
14960 Bernd Schmidt <bernds@codesourcery.com>
14962 * loop-invariant.c (replace_uses): New static function.
14963 (move_invariant_reg): Use it to ensure we can replace the uses.
14965 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14967 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14969 (picochip_override_options): Enable section anchors only above -O1.
14970 (picochip_reorg): Fixed a couple of build warnings.
14972 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14974 * configure.ac (plugin -rdynamic test): Log result.
14975 * configure: Regenerate.
14976 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14977 (RDYNAMIC_SPEC): Define.
14978 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14980 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14982 * configure.ac: Determine Sun ld version numbers.
14983 (comdat_group): Restrict GNU ld version checks to gld.
14984 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14985 (enable_comdat): Support --enable-comdat.
14986 * configure: Regenerate.
14987 * doc/install.texi (Configuration): Document --enable-comdat.
14989 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14991 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14992 * config/sol2-gld.h: ... here.
14993 * config.gcc (sparc*-*-solaris2*): Reflect this.
14994 (i[34567]86-*-solaris2*): Use it.
14996 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14998 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
15000 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
15002 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15005 * diagnostic.c (diagnostic_initialize): Initialize
15006 some_warnings_are_errors.
15007 (diagnostic_finish): New.
15008 (diagnostic_action_after_output): Call it before exiting.
15009 (diagnostic_report_diagnostic): Do not print message here. Set
15010 some_warnings_are_errors.
15011 * diagnostic.h (diagnostic_context): Delete
15012 issue_warnings_are_errors_message. Add some_warnings_are_errors.
15013 (diagnostic_finish): Declare.
15014 * toplev.c (toplev_main): Call it before exit.
15016 2010-04-09 Jason Merrill <jason@redhat.com>
15019 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
15020 for incomplete type.
15023 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
15024 based on a warning flag.
15026 2010-04-09 Richard Guenther <rguenther@suse.de>
15028 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
15030 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
15033 * varasm.c (default_assemble_visibility): Wrap vars that are
15034 set, but unused, by targets without GAS.
15035 * config/rs6000/rs6000.c (paired_emit_vector_compare):
15036 Remove set, but unused, vars.
15037 (rs6000_legitimize_tls_address): Likewise.
15038 (altivec_expand_dst_builtin): Likewise.
15039 * config/darwin.c (machopic_classify_symbol): Likewise.
15040 (machopic_indirection_name): Likewise.
15042 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
15044 * config/i386/i386.md (DWI): New mode iterator.
15045 (S): New mode attribute.
15046 (shift_operand): Ditto.
15047 (shift_immediate_operand): Ditto.
15048 (ashl_input_operand): Ditto.
15049 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
15050 using SDWIM mode iterator.
15051 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
15052 pattern from *ashl{di,ti}3_1 and corresponding splitters using
15054 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
15055 from corresponding peephole2 patterns.
15056 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
15057 and x86_64_shift_adj_1 using SWI48 mode iterator.
15058 (x86_shift<mode>_adj_2): Ditto.
15059 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
15060 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
15061 using SWI48 mode iterator.
15062 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
15063 *ashldi3_cmp_rex64 using SWI mode iterator.
15064 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
15065 *ashldi3_cconly_rex64 using SWI mode iterator.
15066 * config/i386/i386.c (ix86_split_ashl): Update for renamed
15067 x86_shift<mode>_adj_{1,2}.
15068 (ix86_split_ashr): Ditto.
15069 (ix86_split_lshr): Ditto.
15071 2010-04-09 Richard Guenther <rguenther@suse.de>
15073 * target.h (builtin_conversion): Pass in input and output types.
15074 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
15075 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
15076 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
15077 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
15079 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
15081 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
15083 2010-04-09 Richard Guenther <rguenther@suse.de>
15086 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
15088 2010-04-09 Richard Guenther <rguenther@suse.de>
15090 * tree-vectorizer.h (struct _stmt_vec_info): Document
15091 that vectype is the type of the LHS.
15092 (supportable_widening_operation, supportable_narrowing_operation):
15093 Get both input and output vector types as arguments.
15094 (vect_is_simple_use_1): Declare.
15095 (get_same_sized_vectype): Likewise.
15096 * tree-vect-loop.c (vect_determine_vectorization_factor):
15097 Set STMT_VINFO_VECTYPE to the vector type of the def.
15098 (vectorizable_reduction): Adjust.
15099 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
15100 Adjust. Specify the output vector type.
15101 (vect_pattern_recog_1): Adjust.
15102 * tree-vect-stmts.c (get_same_sized_vectype): New function.
15103 (vectorizable_call): Adjust.
15104 (vectorizable_conversion): Likewise.
15105 (vectorizable_operation): Likewise.
15106 (vectorizable_type_demotion): Likewise.
15107 (vectorizable_type_promotion): Likewise.
15108 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
15110 (vect_is_simple_use_1): New function.
15111 (supportable_widening_operation): Get both input and output
15113 (supportable_narrowing_operation): Likewise.
15114 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
15116 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
15118 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
15119 __thiscall and _thiscall as predefined macros.
15120 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
15121 thiscall attribute handling.
15122 (ix86_comp_type_attributes): Likewise.
15123 (ix86_function_regparm): Likewise.
15124 (ix86_return_pops_args): Likewise.
15125 (init_cumulative_args): Likewise.
15126 (find_drap_reg): Likewise.
15127 (ix86_static_chain): Likewise.
15128 (x86_this_parameter): Likewise.
15129 (x86_output_mi_thunk): Likewise.
15130 (ix86_attribute_table): Add description for thiscall attribute.
15131 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
15132 * doc/extend.texi: Add documentation for thiscall.
15134 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15137 * c.opt (Wint-to-pointer-cast): Available in C++.
15138 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
15140 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
15142 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
15143 * calls.c (expand_call): Pass the function type to aggregate_value_p.
15144 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
15145 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
15146 function type instead. Reorder and simplify checks.
15148 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
15150 2010-04-08 Jing Yu <jingyu@google.com>
15151 Zdenek Dvorak <ook@ucw.cz>
15153 PR tree-optimization/42720
15154 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
15155 loop unswitch conditions here from ...
15156 (tree_unswitch_single_loop): ... here.
15158 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
15160 * tree-if-conv.c: Fix comments and simplify logic.
15162 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
15164 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
15165 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
15166 (main_tree_if_conversion): Update call to tree_if_conversion.
15168 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15171 * doc/invoke.texi (-b,-V): Delete.
15172 * doc/tm.texi: Do not mention -b.
15173 * gcc.c (display_help): Delete -b and -V.
15174 (process_command): Delete -b and -V.
15175 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
15177 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
15178 Wolfgang Gellerich <gellerich@de.ibm.com>
15180 Implement target hook for loop unrolling
15181 * target.h (loop_unroll_adjust): Add a new target hook function.
15182 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
15183 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
15184 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
15185 (s390_loop_unroll_adjust): Implement the new target hook for s390.
15186 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
15188 (decide_unroll_stupid): Likewise.
15190 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15193 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
15195 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15197 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
15198 (Specific, *-*-solaris2*): Likewise.
15199 Don't prefer Sun as over GNU as.
15201 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
15203 * config/s390/s390.c (override_options): Adjust the z10 defaults
15204 for max-unroll-times, max-completely-peeled-insns
15205 and max-completely-peel-times.
15207 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15209 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
15210 instructions for z10.
15211 (s390_expand_setmem): Likewise.
15212 (s390_expand_cmpmem): Likewise.
15214 2010-04-08 Richard Guenther <rguenther@suse.de>
15216 PR tree-optimization/43679
15217 * tree-ssa-pre.c (eliminate): Only propagate copies.
15219 2010-04-08 Jakub Jelinek <jakub@redhat.com>
15222 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
15223 set but not used variable warning.
15225 2010-04-08 Wei Guozhi <carrot@google.com>
15228 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
15229 (arm_size_rtx_costs): Call the new function when optimized for size.
15231 2010-04-08 Jakub Jelinek <jakub@redhat.com>
15234 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
15235 op0 is not a MEM, just return NULL instead of assertion
15237 (discover_nonconstant_array_refs): Don't walk debug stmts.
15239 2010-04-08 Doug Kwan <dougkwan@google.com>
15241 * configure.ac: Recognize gold and do not use its version number
15242 to test ld features.
15243 * configure: Regenerate.
15245 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
15247 PR middle-end/40815
15248 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
15249 (negate_value): Move code to push elements to broken_up_substracts ...
15250 (eliminate_plus_minus_pair): ... here. Push operands that have no
15251 negative pair to plus_negates.
15252 (repropagate_negates, init_reassoc, fini_reassoc): Update.
15254 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15256 * doc/install.texi (Configuration): Move description of
15257 --enable-lto, --with-libelf*, --enable-gold from Java section to
15260 * doc/generic.texi (Working with declarations)
15261 (Function Properties, C and C++ Trees): Fix typos.
15262 * doc/sourcebuild.texi (Top Level): Likewise.
15264 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15267 * tree.h (DECL_READ_P): Define.
15268 (struct tree_decl_common): Add decl_read_flag.
15269 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
15270 a set but not used warning.
15271 (merge_decls): Merge DECL_READ_P flag.
15272 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
15273 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
15274 * c-common.c (handle_used_attribute, handle_unused_attribute):
15276 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
15278 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
15280 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
15281 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
15282 c_parser_binary_expression, c_parser_cast_expression,
15283 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
15284 Call default_function_array_read_conversion instead of
15285 default_function_array_conversion where needed.
15286 (c_parser_unary_expression, c_parser_conditional_expression,
15287 c_parser_postfix_expression_after_primary, c_parser_initelt):
15288 Likewise. Call mark_exp_read where needed.
15289 (c_parser_statement_after_labels, c_parser_asm_operands,
15290 c_parser_typeof_specifier, c_parser_sizeof_expression,
15291 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
15293 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
15295 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
15296 (warn_unused_but_set_parameter): Default to warn_unused
15298 * doc/invoke.texi: Document -Wunused-but-set-variable and
15299 -Wunused-but-set-parameter.
15301 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
15302 used count variable.
15303 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
15304 when operandN variables aren't used in the body of the expander
15306 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
15307 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
15308 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
15309 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
15310 FOR_EACH_IMM_USE_ON_STMT): Likewise.
15311 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
15312 * tree.c (PROCESS_ARG): Likewise.
15314 2010-04-07 Simon Baldwin <simonb@google.com>
15316 * diagnostic.h (diagnostic_override_option_index): New macro to
15317 set a diagnostic's option_index.
15318 * c-tree.h (c_cpp_error): Add warning reason argument.
15319 * opts.c (_warning_as_error_callback): New.
15320 (register_warning_as_error_callback): Store callback for
15321 warnings enabled via enable_warning_as_error.
15322 (enable_warning_as_error): Call callback, minor code tidy.
15323 * opts.h (register_warning_as_error_callback): Declare.
15324 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
15325 response to -Werror=.
15326 (c_common_init_options): Register warning_as_error_callback in opts.c.
15327 * common.opt: Add -Wno-cpp option.
15328 * c-common.c (struct reason_option_codes_t): Map cpp warning
15329 reason codes to gcc option indexes.
15330 * (c_option_controlling_cpp_error): New function, lookup the gcc
15331 option index for a cpp warning reason code.
15332 * (c_cpp_error): Add warning reason argument, call
15333 c_option_controlling_cpp_error for diagnostic_override_option_index.
15334 * doc/invoke.texi: Document -Wno-cpp.
15336 2010-04-07 Richard Guenther <rguenther@suse.de>
15338 * ipa-reference.c (mark_load): Use get_base_address.
15339 (mark_store): Likewise.
15341 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
15342 inserting GIMPLE_NOPs into the IL.
15343 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15344 Explicitly strip handled components and indirect references.
15346 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
15347 folding address expressions.
15348 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
15349 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
15350 operand_equal_p to compare decls.
15351 (ptr_deref_may_alias_decl_p): Likewise.
15352 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
15353 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
15354 Handle reversed comparison ops.
15355 * tree-sra.c (asm_visit_addr): Use get_base_address.
15356 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
15357 * ipa-reference.c (mark_address): Use get_base_address.
15359 2010-04-07 Richard Guenther <rguenther@suse.de>
15361 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
15362 Propagate constants everywhere.
15364 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15367 * tree.c (MAX_INT_CACHED_PREC): Define.
15368 (nonstandard_integer_type_cache): New array.
15369 (build_nonstandard_integer_type): Cache results for precision
15370 <= MAX_INT_CACHED_PREC.
15372 2010-04-07 Richard Guenther <rguenther@suse.de>
15374 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
15375 -fargument-noalias-global, -fargument-noalias-anything): Remove.
15376 * common.opt: Likewise.
15377 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
15378 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
15379 (nonoverlapping_memrefs_p): Likewise.
15380 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15381 * opts.c (common_handle_option): Handle OPT_fargument_alias,
15382 OPT_fargument_noalias, OPT_fargument_noalias_anything and
15383 OPT_fargument_noalias_global for backward compatibility.
15385 2010-04-07 Richard Guenther <rguenther@suse.de>
15387 PR tree-optimization/43270
15388 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
15389 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
15390 * tree-ssa-pre.c (phi_translate_1): Adjust.
15391 (fully_constant_expression): Split out vn_reference handling to ...
15392 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
15393 Fold reads from constant strings.
15394 (vn_reference_lookup): Handle fully constant references.
15395 (vn_reference_lookup_pieces): Likewise.
15396 * Makefile.in (expmed.o-warn): Add -Wno-error.
15398 2010-04-07 Martin Jambor <mjambor@suse.cz>
15400 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
15402 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
15405 * gcc.c: Add -static-libstdc++ to list of recognized options.
15407 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15409 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
15411 2010-04-07 Richard Guenther <rguenther@suse.de>
15413 PR middle-end/42617
15414 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
15415 bases build simple mem attributes to retain points-to information.
15417 2010-04-07 Richard Guenther <rguenther@suse.de>
15419 PR middle-end/42617
15420 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
15421 preserve points-to related information.
15423 2010-04-07 Richard Guenther <rguenther@suse.de>
15425 PR middle-end/42617
15426 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
15427 discard plain indirect references.
15428 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
15429 * tree.c (tree_nop_conversion): Likewise.
15431 2010-04-07 Dodji Seketeli <dodji@redhat.com>
15434 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
15436 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
15438 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
15439 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
15441 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15443 * tree-if-conv.c: Fix indentation and comments.
15445 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15447 * tree-if-conv.c: Sort static functions in topological order.
15449 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15451 * tree-if-conv.c: Fix indentation and comments.
15453 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15455 PR middle-end/43519
15456 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
15457 lang_hooks.types.type_for_size instead of
15458 build_nonstandard_integer_type.
15459 When converting an unsigned type to signed, double its precision.
15460 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
15461 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
15462 (graphite_create_new_loop_guard): When ub + 1 wraps around,
15465 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15467 PR middle-end/43519
15468 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
15469 POINTER_PLUS_EXPR for pointer types.
15471 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15473 PR middle-end/43519
15474 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
15475 * graphite-clast-to-gimple.c: Include langhooks.h.
15476 (max_signed_precision_type): New.
15477 (max_precision_type): Takes two types as arguments.
15478 (precision_for_value): New.
15479 (precision_for_interval): New.
15480 (gcc_type_for_interval): New.
15481 (gcc_type_for_value): New.
15482 (gcc_type_for_clast_term): New.
15483 (gcc_type_for_clast_red): New.
15484 (gcc_type_for_clast_bin): New.
15485 (gcc_type_for_clast_expr): Split up into several functions.
15486 (gcc_type_for_clast_eq): Rewritten.
15487 (compute_bounds_for_level): New.
15488 (compute_type_for_level_1): New.
15489 (compute_type_for_level): New.
15490 (gcc_type_for_cloog_iv): Removed.
15491 (gcc_type_for_iv_of_clast_loop): Rewritten.
15492 (graphite_create_new_loop): Compute the lower and upper bound types
15493 with gcc_type_for_clast_expr.
15494 (graphite_create_new_loop_guard): Same.
15495 (find_cloog_iv_in_expr): Removed.
15496 (compute_cloog_iv_types_1): Removed.
15497 (compute_cloog_iv_types): Removed.
15498 (gloog): Do not call compute_cloog_iv_types.
15499 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
15500 GBB_CLOOG_IV_TYPES.
15501 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
15502 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
15503 (GBB_CLOOG_IV_TYPES): Removed.
15505 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15507 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
15508 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
15509 (detect_commutative_reduction): Same.
15511 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15513 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
15514 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
15516 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
15517 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
15518 (rewrite_commutative_reductions_out_of_ssa): Same.
15519 * passes.c (execute_function_todo): Call verify_ssa for every pass
15520 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
15521 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
15522 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
15523 with an extra argument.
15524 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
15525 verify_ssa only when the extra argument is true.
15526 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
15527 with an extra argument.
15528 (tree_transform_and_unroll_loop): Same.
15530 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15532 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
15533 for all the passes of the LNO having LOOP_CLOSED_SSA.
15534 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
15535 * tree-loop-distribution.c (pass_loop_distribution): Same.
15536 * tree-pass.h (TODO_verify_loops): Removed.
15537 * tree-ssa-loop.c (pass_tree_loop_init): Same.
15539 (pass_tree_unswitch): Same.
15540 (pass_predcom): Same.
15541 (pass_vectorize): Same.
15542 (pass_linear_transform): Same.
15543 (pass_graphite_transforms): Same.
15544 (pass_iv_canon): Same.
15545 (pass_complete_unroll): Same.
15546 (pass_complete_unrolli): Same.
15547 (pass_parallelize_loops): Same.
15548 (pass_loop_prefetch): Same.
15549 (pass_iv_optimize): Same.
15551 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
15553 PR middle-end/32824
15554 * passes.c (init_optimization_passes): Move pass_lim before
15555 pass_copy_prop and pass_dce_loop.
15557 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15560 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
15561 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
15562 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
15563 MULTI_* defines for 4 argument vpermil2p* builtins.
15565 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
15567 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
15568 * config/i386/i386.c (x86_maybe_negate_const_int): New.
15569 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
15570 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
15571 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
15572 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
15573 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
15574 Use x86_maybe_negate_const_int to output insn mnemonic.
15575 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
15576 check from instruction predicate. Update comments.
15577 * config/i386/sync.md (sync_add<mode>): Use
15578 x86_maybe_negate_const_int to output insn mnemonic.
15580 2010-04-06 Jan Hubicka <jh@suse.cz>
15582 PR tree-optimization/42906
15583 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
15584 IGNORE_SELF argument. Set visited_control_parents for fully
15586 (find_obviously_necessary_stmts): Update call of
15587 mark_control_dependent_edges_necessary.
15588 (propagate_necessity): Likewise. Handle PHI edges more curefully.
15590 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
15592 * config/i386/i386.md: Remove comment about 'e' and 'E'
15595 2010-04-06 Richard Guenther <rguenther@suse.de>
15597 PR tree-optimization/43627
15598 * tree-vrp.c (extract_range_from_unary_expr): Widenings
15599 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
15602 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15604 * BASE-VER: Change to 4.6.0.
15607 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
15610 2010-04-06 Richard Guenther <rguenther@suse.de>
15612 PR middle-end/43661
15613 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
15615 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15617 * doc/invoke.texi (Optimize Options): Document that LTO
15618 won't remove object access purely due to incompatible
15621 2010-04-04 Matthias Klose <doko@ubuntu.com>
15623 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
15624 Initialize variable.
15626 2010-04-03 Richard Guenther <rguenther@suse.de>
15628 PR middle-end/42509
15629 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
15630 require a non-NULL MEM_OFFSET.
15632 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
15634 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
15635 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
15636 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
15637 config/alpha/predicates.md, config/arm/arm.md,
15638 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
15639 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
15640 config/darwin9.h, config/darwin.c, config/darwin.h,
15641 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
15642 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
15643 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
15644 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
15645 config/mips/mips.md, config/mn10300/mn10300.c,
15646 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
15647 config/rs6000/aix.h, config/rs6000/dfp.md,
15648 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15649 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15650 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15651 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15652 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15653 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15654 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15655 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15656 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15657 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15658 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15659 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15660 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15661 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15662 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15663 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15664 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15665 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15666 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15667 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15668 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15669 opt-functions.awk, opth-gen.awk, params.def, passes.c,
15670 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15671 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15672 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15673 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15674 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15675 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15676 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15677 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15678 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15679 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15680 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15681 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15682 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15683 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15685 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15688 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15689 * aclocal.m4: Regenerate.
15691 2010-04-02 Richard Guenther <rguenther@suse.de>
15693 PR tree-optimization/43629
15694 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15695 if we have seen a constant value.
15697 2010-04-02 Joseph Myers <joseph@codesourcery.com>
15699 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15701 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
15704 * arm.c (legitimize_tls_address): Adjust call to
15705 gen_tls_load_dot_plus_four.
15706 (arm_note_pic_base): New function.
15707 (arm_cannot_copy_insn_p): Use it.
15708 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15711 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15716 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15718 * Makefile.in ($(out_object_file)): Depend on
15719 gt-$(basename $(notdir $(out_file))).h.
15721 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
15723 * config.gcc (lm32-*-rtems*): Add t-lm32.
15725 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
15727 * config.gcc: Add lm32-*-rtems*.
15728 * config/lm32/rtems.h: New file.
15730 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
15733 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15735 2010-04-01 Jakub Jelinek <jakub@redhat.com>
15737 * dwarf2out.c (output_compilation_unit_header): For
15738 -gdwarf-4 use version 4 instead of version 3.
15739 (output_line_info): For version 4 and above emit additional
15740 maximum ops per insn header field.
15741 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15743 * dwarf2out.c (is_c_family, is_java): Remove.
15744 (lower_bound_default): New function.
15745 (add_bound_info, gen_descr_array_type_die): Use it.
15747 2010-04-01 Dodji Seketeli <dodji@redhat.com>
15750 * dwarf2out.c (gen_variable_die): Allow debug info for variable
15751 re-declaration when it happens in a function.
15753 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
15755 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15756 (cgraph_remove_function_insertion_hook): Same.
15757 (cgraph_call_function_insertion_hooks): Same.
15759 2010-04-01 Richard Guenther <rguenther@suse.de>
15761 PR middle-end/43614
15762 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15763 and TREE_THIS_VOLATILE.
15764 (copy_ref_info): Likewise.
15765 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15766 * tree.c (build6_stat): Ignore side-effects of all but arg5
15767 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
15770 2010-04-01 Richard Guenther <rguenther@suse.de>
15772 PR tree-optimization/43607
15773 * ipa-type-escape.c (check_call): Do not access non-existing
15776 2010-04-01 Richard Guenther <rguenther@suse.de>
15778 PR middle-end/43602
15780 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15781 Jack Howarth <howarth@bromo.med.uc.edu>
15783 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15786 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15788 * doc/install.texi (Prerequisites): Document libelf usability on
15789 IRIX 5/6 and Solaris 2.
15790 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15791 Update GNU as, GNU ld requirements.
15792 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15793 Document Sun Studio compiler download.
15794 Update and simplify as, ld recommendations.
15795 (Specific, *-*-solaris2.7): Note obsoletion, removal.
15797 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15799 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15800 with_tune_32 to pentium4.
15802 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
15804 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15806 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15808 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15809 obsoletion, removal.
15811 Document GNU as requirement.
15812 Update configure requirements.
15813 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15814 Recomment IRIX 6.5.18+.
15815 Document IDF/IDL requirement.
15816 Document GNU as requirement.
15817 Document GNU ld bootstrap failure.
15818 Remove freeware.sgi.com reference.
15820 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15822 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15823 UNIX V4.0, V5.0 obsoletion, removal.
15824 Remove --with-gc=simple reference.
15825 Update VM requirements during bootstrap.
15826 Remove -oldas bootstrap description.
15827 Update binutils reference.
15828 Remove comparison failure note.
15830 2010-03-31 Richard Guenther <rguenther@suse.de>
15831 Zdenek Dvorak <ook@ucw.cz>
15832 Sebastian Pop <sebastian.pop@amd.com>
15834 PR middle-end/43464
15835 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15836 with multiple arguments.
15837 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15839 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15841 * graphite-dependences.c (print_pddr): Call print_pdr with an
15843 * graphite-poly.c (debug_pdr): Add an extra argument for the
15846 (print_pbb_domain): Same.
15848 (print_scop_context): Same.
15849 (print_scop): Same.
15850 (print_cloog): Same.
15851 (debug_pbb_domain): Same.
15853 (print_pdrs): Same.
15854 (debug_pdrs): Same.
15855 (debug_scop_context): Same.
15856 (debug_scop): Same.
15857 (debug_cloog): Same.
15858 (print_scop_params): Same.
15859 (debug_scop_params): Same.
15860 (print_iteration_domain): Same.
15861 (print_iteration_domains): Same.
15862 (debug_iteration_domain): Same.
15863 (debug_iteration_domains): Same.
15864 (print_scattering_function): Same.
15865 (print_scattering_functions): Same.
15866 (debug_scattering_function): Same.
15867 (debug_scattering_functions): Same.
15868 * graphite-poly.h (debug_pdr): Update declaration.
15870 (print_pbb_domain): Same.
15872 (print_scop_context): Same.
15873 (print_scop): Same.
15874 (print_cloog): Same.
15875 (debug_pbb_domain): Same.
15877 (print_pdrs): Same.
15878 (debug_pdrs): Same.
15879 (debug_scop_context): Same.
15880 (debug_scop): Same.
15881 (debug_cloog): Same.
15882 (print_scop_params): Same.
15883 (debug_scop_params): Same.
15884 (print_iteration_domain): Same.
15885 (print_iteration_domains): Same.
15886 (debug_iteration_domain): Same.
15887 (debug_iteration_domains): Same.
15888 (print_scattering_function): Same.
15889 (print_scattering_functions): Same.
15890 (debug_scattering_function): Same.
15891 (debug_scattering_functions): Same.
15893 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15895 * graphite-poly.c (print_scattering_function_1): New.
15896 (print_scattering_function): Call it.
15897 (print_scop_params): Remove spaces at the end of lines.
15898 (print_cloog): New.
15899 (debug_cloog): New.
15900 * graphite-poly.h (print_cloog): Declared.
15901 (debug_cloog): Declared.
15903 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15905 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15907 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15908 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15909 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15910 to switch between adding the IV bump in loop->latch or in loop->header.
15912 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15914 * graphite-poly.c (print_scattering_function): Pretty print following
15915 the scoplib format.
15917 (print_pbb_domain): Same.
15918 (dump_gbb_cases): Same.
15919 (dump_gbb_conditions): Same.
15920 (print_pdrs): Same.
15922 (print_scop_params): Same.
15923 (print_scop_context): Same.
15924 (print_scop): Same.
15925 (print_pbb_body): New.
15926 (lst_indent_to): New.
15927 (print_lst): Start new lines with a #.
15928 * graphite-poly.h (pbb_bb): New.
15929 (pbb_index): Use pbb_bb.
15930 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15932 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15934 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15936 * dwarf2out.c (size_of_die): For -gdwarf-4 use
15937 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15938 and 0 instead of 1 for dw_val_class_flag.
15939 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15940 dw_val_class_range_list, dw_val_class_loc_list,
15941 dw_val_class_lineptr and dw_val_class_macptr, use
15942 DW_FORM_flag_present for dw_val_class_flag and
15943 DW_FORM_exprloc for dw_val_class_loc.
15944 (output_die): For -gdwarf-4 print dw_val_class_loc
15945 size as uleb128 instead of 1 or 2 bytes and don't print
15946 anything for dw_val_class_flag.
15948 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15949 instead of cselib_lookup following by tweaking locs->setting_insn.
15952 * cselib.c (cselib_process_insn): Clear cselib_current_insn
15953 even before returning from label, setjmp call or volatile asm
15956 2010-03-31 Richard Guenther <rguenther@suse.de>
15958 PR middle-end/43600
15959 * cgraphunit.c (cgraph_output_in_order): Do not allocate
15960 temporary data on stack.
15962 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15964 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15965 (PUSHSECTION_ASM_OP): Remove.
15966 (POPSECTION_ASM_OP): Remove.
15967 (PUSHSECTION_FORMAT): Remove.
15968 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15969 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15970 * config/sol2.c (solaris_output_init_fini): Use it.
15972 2010-03-31 Jie Zhang <jie@codesourcery.com>
15975 * opt-functions.awk (var_type_struct): Use signed char type
15976 for simple variables.
15978 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15980 * config/sol2.c: Include output.h.
15981 (solaris_assemble_visibility): New function.
15982 * config/t-sol2 (sol2.o): Add output.h dependency.
15983 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15984 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15987 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15990 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15991 V2SImode or XFmode on PRE_DEC.
15994 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15997 2010-03-31 Jie Zhang <jie@codesourcery.com>
16000 * reload.h (caller_save_initialized_p): Declare.
16001 * toplev.c (backend_init_target): Don't call
16002 init_caller_save but set caller_save_initialized_p to false.
16003 * caller-save.c (caller_save_initialized_p): Define.
16004 (init_caller_save): Check caller_save_initialized_p.
16005 * ira.c (ira): Call init_caller_save if flag_caller_saves.
16007 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16010 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
16011 and soft-fp/t-softfp to tmake_file.
16012 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
16013 (LIBGCC2_TF_CEXT): Define.
16016 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
16019 * cselib.c (n_useless_values): Document handling of debug locs.
16020 (n_useless_debug_values, n_debug_values): New variables.
16021 (new_elt_loc_list): Don't add to debug values, keep count.
16022 (promote_debug_loc): New.
16023 (cselib_reset_table): Zero new variables.
16024 (entry_and_rtx_equal_p): Promote debug locs.
16025 (discard_useless_locs): Increment n_useless_debug_values for
16027 (remove_useless_values): Adjust n_useless_values and n_debug_values
16028 with n_useless_debug_values.
16029 (add_mem_for_addr): Promote debug locs.
16030 (cselib_lookup_mem): Likewise.
16031 (cselib_lookup_addr): Renamed to...
16032 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
16033 (cselib_log_lookup): ... this. Turn into...
16034 (cselib_lookup_addr): ... new wrapper.
16035 (cselib_lookup_from_insn): New.
16036 (cselib_invalidate_regno): Increment n_useless_debug_values for
16038 (cselib_invalidate_mem): Likewise.
16039 (cselib_process_insn): Take n_deleted and n_debug_values into
16040 account to guard remove_useless_value call.
16041 (cselib_finish): Zero n_useless_debug_values.
16042 * cselib.h (cselib_lookup_from_insn): Declare.
16043 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
16044 (sched_analyze_2): Likewise.
16046 2010-03-30 Jakub Jelinek <jakub@redhat.com>
16048 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
16050 (adjust_mems): Replace narrowing SUBREG of expression containing
16051 just PLUS, MINUS, MULT and ASHIFT of registers and constants
16052 with operations in the narrower mode.
16055 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
16056 regs_invalidated_by_call instead all call_used_reg_set registers.
16058 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
16060 PR middle-end/43430
16061 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
16062 pointer comparisons with types_compatible_p.
16063 * tree-vect-stmts.c (vectorizable_call): Same.
16064 (vectorizable_condition): Same.
16066 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16068 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
16069 stack check if the mask would be zero.
16071 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
16072 Jack Howarth <howarth@bromo.med.uc.edu>
16074 * tree-profile.c (tree_init_ic_make_global_vars): Make static
16077 2010-03-30 Joseph Myers <joseph@codesourcery.com>
16080 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
16082 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
16083 Include ___unordxf2 and ___unordtf2.
16084 * config/i386/libgcc-glibc.ver: Do not define inheritance from
16087 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
16089 * config/lm32/t-lm32: New file.
16090 * config.gcc: Use the above file when targetting lm32.
16092 2010-03-28 Duncan Sands <baldrick@free.fr>
16094 * Makefile.in (PLUGIN_HEADERS): Add except.h.
16096 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
16098 PR middle-end/43431
16099 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16100 Improve vectorization cost model diagnostic.
16102 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
16104 PR middle-end/43436
16105 * tree-vect-data-refs.c (vect_analyze_data_refs): When
16106 compute_data_dependences_for_loop returns false, early exit
16107 and output an extra diagnostic for the failed data reference
16110 2010-03-29 Richard Guenther <rguenther@suse.de>
16112 PR tree-optimization/43560
16113 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
16114 (can_sm_ref_p): Treat stores to readonly locations as trapping.
16116 2010-03-29 Jie Zhang <jie@codesourcery.com>
16119 * toplev.c (process_options): Set optimization_default_node
16120 and optimization_current_node.
16121 * opts.c (decode_options): Don't set optimization_default_node
16122 and optimization_current_node.
16124 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
16126 * config/rtems.h: Abandon -qrtems_debug.
16128 2010-03-28 Jan Hubicka <jh@suse.cz>
16130 PR tree-optimization/43505
16131 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
16132 map should not be copied.
16134 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16136 PR middle-end/41674
16137 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
16138 cdtors, set DECL_PRESERVE_P.
16139 * ipa.c (cgraph_externally_visible_p): Return true if declaration
16140 should be preseved.
16142 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
16144 PR tree-optimization/43528
16145 * stor-layout.c (place_field): Check that constant fits into
16146 unsigned HWI when skipping calculation of MS bitfield layout.
16148 2010-03-27 Jan Hubicka <jh@suse.cz>
16150 PR middle-end/43391
16151 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
16152 notice_global_symbol work.
16154 2010-03-27 Jakub Jelinek <jakub@redhat.com>
16156 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
16157 instead of dwarf2out_decl.
16158 (struct var_loc_node): Remove section_label field.
16159 (dwarf2out_function_decl): New function.
16160 (dwarf2out_var_location): Don't set section_label field.
16161 (dwarf2out_begin_function): Don't empty decl_loc_table here.
16163 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16165 PR tree-optimization/43544
16166 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16167 First argument for builtin vectorized function hook is now a
16168 tree to be able to distinguish between machine specific and
16170 * targhooks.c (default_builtin_vectorized_function): Ditto.
16171 * targhooks.h (default_builtin_vectorized_function): Ditto.
16172 * target.h (struct gcc_target): Ditto.
16173 * tree-vect-stmts.c (vectorizable_function): Ditto.
16174 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
16175 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
16178 2010-03-26 Joseph Myers <joseph@codesourcery.com>
16181 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
16182 nested binding iff it is a FUNCTION_DECL.
16183 (store_parm_decls_newstyle): Pass nested=true to bind for
16184 FUNCTION_DECLs amongst parameters.
16186 2010-03-26 Jakub Jelinek <jakub@redhat.com>
16188 * var-tracking.c (vt_expand_loc_callback): Don't run
16189 cselib_expand_value_rtx_cb in dummy mode if
16190 cselib_dummy_expand_value_rtx_cb returned false.
16192 * var-tracking.c (emit_note_insn_var_location): For one part
16193 notes with offset 0, don't add EXPR_LIST around the location.
16194 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
16195 add_location_or_const_value_attribute): Adjust for that change.
16198 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
16199 into first operand and location into second.
16200 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
16201 dw_cfi_oprnd_loc for DW_CFA_expression.
16202 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
16203 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
16204 assume first argument is regnum and second argument is location.
16206 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
16209 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
16210 of scratch register to DImode. Split to DImode comparison operator.
16211 Use SImode subreg of scratch register in the multiplication.
16212 (*cmp_sadd_sidi): Ditto.
16213 (*cmp_ssub_si): Ditto.
16214 (*cmp_ssub_sidi): Ditto.
16216 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
16219 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
16220 Remove invalid assert and wrong comment.
16222 2010-03-26 Jakub Jelinek <jakub@redhat.com>
16225 * flags.h (final_insns_dump_p): New extern.
16226 * final.c (final_insns_dump_p): New variable.
16227 (rest_of_clean_state): Set it before -fdump-final-insns=
16228 dumping, clear afterwards.
16229 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
16230 MEM_ALIAS_SET on MEMs.
16232 2010-03-26 David S. Miller <davem@davemloft.net>
16234 * configure.ac: Fix sparc GOTDATA_OP bug check.
16235 * configure: Rebuild.
16237 2010-03-26 Alan Modra <amodra@gmail.com>
16239 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
16241 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16243 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
16244 TLS_SECTION_ASM_FLAG.
16246 2010-03-25 Jakub Jelinek <jakub@redhat.com>
16249 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
16250 Clear first_function_block_is_cold.
16253 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
16254 argument if the argument is truth_value_p.
16256 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16258 * config/rs6000/constraints.md: Update copyright year for my changes.
16261 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
16262 used in reg+reg addressing, swap registers.
16264 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16267 * target.h (struct gcc_target): Add code_end hook.
16268 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
16269 if not yet defined.
16270 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
16271 * toplev.c (compile_file): Call targetm.asm_out.code_end
16272 hook before unwind info/debug info output.
16273 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
16274 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
16275 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16276 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
16277 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16278 * config/i386/i386.c (ix86_file_end): Renamed to...
16279 (ix86_code_end): ... this. Make static. Don't call
16280 file_end_indicate_exec_stack. Emit unwind info using
16281 final_start_function/final_end_function.
16282 (darwin_x86_file_end): Remove.
16283 (TARGET_ASM_CODE_END): Define.
16284 * config/i386/i386.h (TARGET_ASM_FILE_END,
16285 NEED_INDICATE_EXEC_STACK): Don't define.
16286 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
16287 (TARGET_ASM_FILE_END): Define to darwin_file_end.
16288 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
16289 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
16292 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
16293 at the beginning and final_end_function at the end.
16294 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16296 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16298 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
16299 and Sun as TLS syntax.
16300 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
16301 * configure: Regenerate.
16302 * config.in: Regenerate.
16303 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
16304 (default_elf_asm_named_section): Use it.
16305 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
16306 (i386_output_dwarf_dtprel): Likewise.
16307 (output_addr_const_extra): Likewise.
16308 (output_pic_addr_const): Lowercase @GOTTPOFF.
16309 (output_addr_const_extra): Likewise.
16310 (output_pic_addr_const): Lowercase @GOTNTPOFF.
16311 (output_addr_const_extra): Likewise.
16312 (output_pic_addr_const): Lowercase @INDNTPOFF.
16313 (output_addr_const_extra): Likewise.
16314 (output_pic_addr_const): Lowercase @NTPOFF.
16315 (output_addr_const_extra): Likewise.
16316 (output_pic_addr_const): Lowercase @TPOFF.
16317 (output_addr_const_extra): Likewise.
16318 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
16319 (*tls_global_dynamic_64): Likewise.
16320 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
16321 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
16323 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
16324 (ASM_OUTPUT_TLS_COMMON): Use it.
16325 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
16328 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
16329 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16330 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
16331 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
16332 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16333 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16335 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16337 * config/i386/i386.c (override_options): Don't accept
16338 -mtls-dialect=sun any longer.
16339 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
16340 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
16341 (*tls_local_dynamic_base_32_sun): Likewise.
16342 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16344 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16347 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16348 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
16351 * ira.c (adjust_cleared_regs): New function.
16352 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
16356 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
16358 * expr.c (expand_expr_real): Restore previous
16359 curr_insn_source_location and curr_insn_block after
16360 expand_expr_real_1 call.
16361 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
16362 instead of expand_expr_real_1.
16364 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
16366 PR rtl-optimization/43413
16367 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
16370 2010-03-22 James E. Wilson <wilson@codesourcery.com>
16373 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
16374 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
16376 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
16378 * config/i386/i386.c (ix86_target_string): Add -mfma.
16379 Fix a typo in comment.
16381 2010-03-22 Mike Stump <mikestump@comcast.net>
16384 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
16385 Don't overly align based upon packed packed fields.
16387 2010-03-22 Jason Merrill <jason@redhat.com>
16389 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
16390 Use () rather than [], and move before the element type.
16392 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16394 * doc/configfiles.texi (Configuration Files): Removed
16395 fixinc/Makefile*, intl/Makefile.*.
16396 * doc/makefile.texi: Fixed markup. Abstract from version
16397 control system used.
16398 (Makefile): Removed obsolete gcc/java/parse.y example.
16399 * doc/sourcebuild.texi: Likewise.
16400 (Top Level): Added config, gnattools, libdecnumber, libgcc,
16401 libgomp, libssp. Removed fastjar.
16402 (Miscellaneous Docs): Clarify location.
16403 Added COPYING3, COPYING3.LIB.
16404 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
16406 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16409 * config/i386/i386.c (x86_function_profiler)
16410 [!NO_PROFILE_COUNTERS]: Fix typo.
16411 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
16414 2010-03-22 Janis Johnson <janis187@us.ibm.com>
16415 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16417 * doc/sourcebuild.texi (Test Directives): Split into six
16418 subsections, with most of the current text in new subsections
16419 Directives, Selectors, and Final Actions.
16420 (Directives): Split list of test directives into multiple
16422 (Selectors): Describe use and syntax of selectors.
16423 (Effective-Target Keywords): Describe all existing keywords.
16424 (Add Options): Describe features for dg-add-options.
16425 (Require Support): Describe variants of dg-require-support.
16426 (Final Actions): Describe commands to use in dg-final.
16428 2010-03-22 Michael Matz <matz@suse.de>
16430 PR middle-end/43475
16431 * recog.c (validate_replace_rtx_group): Replace also in
16432 REG_EQUAL and REG_EQUIV notes.
16434 2010-03-22 Richard Guenther <rguenther@suse.de>
16436 PR tree-optimization/43390
16437 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
16438 sure vector extracts are type correct.
16440 2010-03-22 Richard Guenther <rguenther@suse.de>
16442 PR middle-end/40106
16443 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
16444 x * sqrt (x) even when optimizing for size if the target
16445 has native support for sqrt.
16447 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16449 * varasm.c (make_decl_rtl_for_debug): Also clear
16450 flag_mudflap for the duration of make_decl_rtl call.
16453 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
16454 locs from preserved VALUEs.
16456 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16458 PR middle-end/42718
16459 * pa.md (movmemsi): Set align to one if zero.
16460 (movmemdi): Likewise.
16462 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
16465 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
16466 with their corresponding prologue pushes.
16468 2010-03-20 Andrew Pinski <pinskia@gmail.com>
16471 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
16472 at the begining or end.
16473 (spu_expand_epilogue): Likewise.
16475 2010-03-20 Richard Guenther <rguenther@suse.de>
16477 PR rtl-optimization/43438
16478 * combine.c (make_extraction): Properly zero-/sign-extend an
16479 extraction of the low part of a CONST_INT. Also handle
16482 2010-03-19 Mike Stump <mikestump@comcast.net>
16484 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
16485 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
16486 (override_options): Use SUBTARGET32_DEFAULT_CPU.
16488 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16491 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
16494 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
16496 PR rtl-optimization/42258
16497 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
16498 use that may match DEF.
16501 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
16502 the cost of loading the constant rather than assuming
16504 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
16505 outer code is AND, do the same tests as the andsi3 expander and
16506 return COSTS_N_INSNS (1) if and is cheap.
16508 * optabs.c (avoid_expensive_constant): Fix formatting.
16510 2010-03-19 Michael Matz <matz@suse.de>
16513 * attribs.c (decl_attributes): When rebuilding a function pointer
16514 type use the same qualifiers as the original pointer type.
16516 2010-03-19 Martin Jambor <mjambor@suse.cz>
16518 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
16519 and is_gimple_ip_invariant_address.
16521 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16524 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16526 * config/arm/arm.c (arm_override_options): Turn off
16527 flag_dwarf2_cfi_asm for AAPCS variants.
16529 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16532 * config/arm/arm.c (emit_multi_reg_push): Update comments.
16533 Use PRE_MODIFY instead of PRE_DEC.
16534 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
16535 (vfp_emit_fstmd): Likewise.
16537 2010-03-19 Michael Matz <matz@suse.de>
16540 * builtins.c (expand_builtin_interclass_mathfn,
16541 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
16544 2010-03-19 Richard Guenther <rguenther@suse.de>
16546 PR tree-optimization/43415
16547 * tree-ssa-pre.c (phi_translate): Split out worker to ...
16548 (phi_translate_1): ... this.
16549 (phi_translate): Move all caching here. Cache all NARY
16550 and REFERENCE translations.
16552 2010-03-19 David S. Miller <davem@davemloft.net>
16554 With help from Eric Botcazou.
16555 * config/sparc/sparc.c: Include dwarf2out.h.
16556 (emit_pic_helper): Delete.
16557 (pic_helper_symbol_name): Delete.
16558 (pic_helper_emitted_p): Delete.
16559 (pic_helper_needed): New.
16560 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
16561 (get_pc_thunk_name): New.
16562 (load_pic_register): Remove 'delay_pic_helper' arg. Use
16563 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
16564 Set pic_helper_needed to true. Don't call emit_pic_helper.
16565 (sparc_expand_prologue): Update load_pic_register call.
16566 (sparc_output_mi_thunk): Likewise.
16567 (sparc_file_end): Emit a hidden comdat symbol for the PIC
16568 thunk if possible. Output CFI information as needed.
16570 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16571 Jack Howarth <howarth@bromo.med.uc.edu>
16574 * config/i386/i386.h: Fix ABI on darwin x86-32.
16576 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
16578 * tree.h: Declare make_decl_rtl_for_debug.
16579 * varasm.c (make_decl_rtl_for_debug): New.
16580 * dwarf2out.c (rtl_for_decl_location): Call it.
16581 * cfgexpand.c (expand_debug_expr): Call it.
16583 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16586 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
16590 * var-tracking.c (vt_init_cfa_base): Do nothing if
16591 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
16593 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
16596 * var-tracking.c (canonicalize_vars_star): New.
16597 (dataflow_post_merge_adjust): Use it.
16599 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16602 * var-tracking.c (non_suitable_const): New function.
16603 (add_uses): For DEBUG_INSNs with constants, don't record any
16604 value, instead just the constant value itself.
16605 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
16606 is not VAR_LOC_UNKNOWN_P, set var to the constant.
16607 (emit_notes_in_bb): Likewise.
16608 (emit_note_insn_var_location): For onepart variables if
16609 cur_loc is a VOIDmode constant, use DECL_MODE.
16611 2010-03-18 Martin Jambor <mjambor@suse.cz>
16613 PR middle-end/42450
16614 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
16615 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
16616 all non-clones. Moved call redirection...
16617 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
16618 (cgraph_materialize_all_clones): Dispose of all
16619 combined_args_to_skip bitmaps.
16620 (verify_cgraph_node): Do not check for edges pointing to wrong
16621 nodes in inline clones.
16622 * tree-inline.c (copy_bb): Call
16623 cgraph_redirect_edge_call_stmt_to_callee.
16624 * ipa.c (cgraph_remove_unreachable_nodes): Call
16625 cgraph_node_remove_callees even when there are used clones.
16627 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16629 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
16631 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16634 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
16637 2010-03-18 Michael Matz <matz@suse.de>
16639 PR middle-end/43419
16640 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
16641 into sqrt(x) if we need to preserve signed zeros.
16643 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
16644 Eric Botcazou <ebotcazou@adacore.com>
16646 PR rtl-optimization/43360
16647 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
16648 note if we don't know its invariant status.
16650 2010-03-18 Michael Matz <matz@suse.de>
16652 PR tree-optimization/43402
16653 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16654 PHI chains of ssa names registered for update.
16656 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
16659 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16660 non-offsettable and pre_modify update addressing.
16661 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16662 and "2" alternatives "#".
16663 (*movdd_softfloat32): Make all alternatives "#";
16664 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16665 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16666 (*movdf_softfloat32): Make all alternatives "#";
16667 (movdi): Use the new DIFD mode iterator to create a common splitter
16668 for movdi, movdf and movdd patterns.
16670 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
16672 * common.opt (dumpdir): Remove redundant tab.
16674 2010-03-17 Martin Jambor <mjambor@suse.cz>
16676 PR tree-optimization/43347
16677 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16678 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16680 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
16682 PR rtl-optimization/42216
16683 * regrename.c (create_new_chain): New function, broken out from...
16684 (scan_rtx_reg): ... here. Call it. Handle the case where we are
16685 appending a use to an empty chain.
16686 (build_def_use): Remove previous changes that convert OP_INOUT to
16687 OP_OUT operands; instead detect the case where an OP_INOUT operand
16688 uses a previously untracked register and create an empty chain for it.
16690 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16692 * doc/extend.texi (Function Attributes): Rewrite unfinished
16693 sentence in ms_abi documentation.
16695 2010-03-17 Alan Modra <amodra@gmail.com>
16697 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16698 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16699 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16700 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16702 2010-03-16 Richard Henderson <rth@redhat.com>
16704 PR middle-end/43365
16705 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16706 (lower_try_finally): Save and restore eh_seq around the expansion
16707 of the try-finally.
16709 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16711 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16712 statements before splitting block.
16714 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16716 * doc/sourcebuild.texi (Testsuites): Fix markup.
16717 Use pathnames relative to gcc/testsuite.
16718 (Test Directives): Move description of how timeout is determined.
16719 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16720 (C Tests): Correct gcc.misc-tests directory.
16721 Framework tests now live in gcc.test-framework.
16723 2010-03-16 Richard Guenther <rguenther@suse.de>
16725 PR middle-end/43379
16726 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16727 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16729 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16730 Alexandre Oliva <aoliva@redhat.com>
16732 PR tree-optimization/42917
16733 * lambda-code.c (remove_iv): Skip debug statements.
16734 (lambda_loopnest_to_gcc_loopnest): Likewise.
16735 (not_interesting_stmt): Debug statements are not interesting.
16737 2010-03-16 Jakub Jelinek <jakub@redhat.com>
16741 * cselib.c (cselib_preserve_constants,
16742 cfa_base_preserved_val): New static variables.
16743 (preserve_only_constants): New function.
16744 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16745 clear its REG_VALUES. If cselib_preserve_constants, don't
16746 empty the whole hash table, but preserve there VALUEs with constants,
16747 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16748 (cselib_preserve_cfa_base_value): New function.
16749 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16750 (cselib_init): Change argument to int bitfield. Set
16751 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16753 (cselib_finish): Clear cselib_preserve_constants and
16754 cfa_base_preserved_val.
16755 * cselib.h (enum cselib_record_what): New enum.
16756 (cselib_init): Change argument to int.
16757 (cselib_preserve_cfa_base_value): New prototype.
16758 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16759 * dse.c (dse_step1): Likewise.
16760 * cfgcleanup.c (thread_jump): Likewise.
16761 * sched-deps.c (sched_analyze): Likewise.
16762 * gcse.c (local_cprop_pass): Likewise.
16763 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16764 If FN is non-NULL, call the callback always and whenever it returns
16765 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
16766 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16767 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16768 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16769 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16770 * var-tracking.c: Include recog.h.
16771 (bb_stack_adjust_offset): Remove.
16772 (vt_stack_adjustments): Don't call it, instead just gather the
16773 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16774 (adjust_stack_reference): Remove.
16775 (compute_cfa_pointer): New function.
16776 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16777 (struct adjust_mem_data): New type.
16778 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16780 (get_address_mode): New function.
16781 (replace_expr_with_values): Use it.
16782 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16783 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
16784 (adjust_sets): Remove.
16785 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16786 Use get_address_mode.
16787 (get_adjusted_src): Remove.
16788 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
16789 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
16790 (add_with_sets): Don't call adjust_sets.
16791 (fp_setter, vt_init_cfa_base): New functions.
16792 (vt_initialize): Change return type to bool. Move most of pool etc.
16793 initialization to the beginning of the function from end. Pass
16794 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16795 If !frame_pointer_needed, call vt_stack_adjustment before mos
16796 vector is filled, call vt_init_cfa_base if argp/framep has been
16797 eliminated to sp. If frame_pointer_needed and argp/framep has
16798 been eliminated to hard frame pointer, set
16799 hard_frame_pointer_adjustment and call vt_init_cfa_base after
16800 encountering fp setter in the prologue. For MO_ADJUST, call
16801 log_op_type before pusing the op into mos vector, not afterwards.
16802 Call adjust_insn before cselib_process_insn/add_with_sets,
16803 call cancel_changes (0) afterwards.
16804 (variable_tracking_main_1): Adjust for vt_initialize calling
16805 vt_stack_adjustments and returning whether it succeeded or not.
16807 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
16809 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16812 2010-03-15 Jakub Jelinek <jakub@redhat.com>
16814 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16816 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16817 drap_reg has not been set.
16819 2010-03-15 Michael Matz <matz@suse.de>
16821 PR middle-end/43300
16822 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16823 use it to expand block copies.
16824 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16825 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16826 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16828 2010-03-15 Richard Guenther <rguenther@suse.de>
16830 PR tree-optimization/43367
16831 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16834 2010-03-15 Richard Guenther <rguenther@suse.de>
16836 PR tree-optimization/43317
16837 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16839 2010-03-15 Martin Jambor <mjambor@suse.cz>
16841 PR tree-optimization/43141
16842 * tree-sra.c (create_abstract_origin): New function.
16843 (modify_function): Call create_abstract_origin.
16845 2010-03-15 Chris Demetriou <cgd@google.com>
16847 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16850 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16852 PR middle-end/43354
16853 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16854 call insert_out_of_ssa_copy for default definitions.
16856 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16858 * graphite-clast-to-gimple.c (my_long_long): Defined.
16859 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16860 * graphite-sese-to-poly.c (my_long_long): Defined.
16861 (scop_ivs_can_be_represented): Use it.
16863 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16865 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16866 graphite-max-bbs-per-function, and loop-block-tile-size.
16867 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16869 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16871 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16873 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16874 forward declaration.
16875 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16876 (add_upper_bounds_from_estimated_nit): New.
16877 (build_loop_iteration_domains): Use it.
16879 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16881 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16883 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16885 PR middle-end/43306
16886 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16887 should be an INTEGER_CST. Also handle CASE_CONVERT.
16889 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16891 * graphite.c (graphite_initialize): To bound the number of bbs per
16892 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16893 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16894 * doc/invoke.texi: Document it.
16896 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16898 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16899 * graphite-sese-to-poly.h (build_poly_scop): Same.
16901 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16903 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16904 the number of parameters in the scop. Use as an upper bound
16905 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16906 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16907 * doc/invoke.texi: Document it.
16909 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
16911 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16912 * doc/c-tree.texi: Remove.
16913 * doc/generic.texi: Merge c-tree.texi here.
16914 * doc/gccint.texi (Trees): Remove menu entry.
16915 (c-tree.texi): Remove @include.
16916 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16917 * doc/languages.texi (Reading RTL): Ditto.
16919 2010-03-12 Steve Ellcey <sje@cup.hp.com>
16922 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16924 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16926 PR middle-end/42431
16927 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16928 code added to work around reload clobbering CONST insns.
16930 2010-03-12 Jakub Jelinek <jakub@redhat.com>
16932 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16933 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16934 (cselib_preserve_only_values): Remove retain argument, don't
16935 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16936 * cselib.h (cselib_preserve_only_values): Remove retain argument.
16937 * var-tracking.c (micro_operation): Move insn field before union.
16938 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16939 (struct variable_tracking_info_def): Remove n_mos field, change
16940 mos into a vector of micro_operations.
16941 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16942 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16943 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16944 changing into a vector.
16945 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
16946 come before all other uops generated by add_stores.
16947 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16949 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
16950 a vector. Run just one pass over the bbs instead of separate counting
16951 and computation phase.
16952 (vt_finalize): Free VTI (bb)->mos vector instead of array.
16955 * tree-inline.c (remap_decls): Put old_var rather than origin_var
16956 into *nonlocalized_list vector.
16957 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16958 even if origin is non-NULL.
16959 (gen_variable_die): Likewise.
16960 (process_scope_var): Don't change origin.
16961 (gen_decl_die): Likewise.
16962 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16963 before adding new edges instead of after it, fix moving over
16966 2010-03-11 David S. Miller <davem@davemloft.net>
16968 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16970 * configure: Rebuild.
16972 2010-03-11 Martin Jambor <mjambor@suse.cz>
16974 PR tree-optimization/43257
16975 * tree.c (assign_assembler_name_if_neeeded): New function.
16976 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16977 above new function.
16978 * tree.h (assign_assembler_name_if_neeeded): Declare.
16979 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16980 the function if needed.
16982 2010-03-11 Chris Demetriou <cgd@google.com>
16984 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16985 include/stdint-gcc.h, and include/stdint.h world-readable.
16987 2010-03-11 Richard Guenther <rguenther@suse.de>
16989 PR tree-optimization/43255
16990 * tree-vrp.c (process_assert_insertions_for): Do not insert
16991 asserts for trivial conditions.
16993 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16995 PR tree-optimization/43280
16996 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16997 generation. Move calculation of size out of the if branch.
16998 (find_bswap): Modify compare number generation.
17000 2010-03-11 Richard Guenther <rguenther@suse.de>
17003 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
17004 (input_gimple_stmt): Fixup handled component types during
17005 operand read. Also fix up decls in ADDR_EXPRs.
17007 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
17009 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
17010 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
17012 2010-03-10 Jan Hubicka <jh@suse.cz>
17015 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
17016 * varasm.c (get_variable_section): Don't do that here...
17017 (make_decl_rtl): ... and here.
17018 (do_assemble_alias): Produce decl RTL.
17019 (assemble_alias): Likewise.
17021 2010-03-10 Jakub Jelinek <jakub@redhat.com>
17024 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
17025 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
17027 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
17028 (based_loc_descr): Only express drap or vdrap regno based expressions
17029 using DW_OP_fbreg when not optimizing.
17030 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
17031 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
17032 REG_CFA_SET_VDRAP note.
17034 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
17036 PR tree-optimization/43236
17037 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
17038 error in calculation of base address in reverse iteration case.
17039 (generate_builtin): Take number of latch executions if the statement
17042 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
17044 PR middle-end/42859
17045 * tree-eh.c: Include pointer-set.h.
17046 (lower_eh_dispatch): Filter out duplicate case labels and
17047 remove the unneeded edge when the label is unused. Return
17048 true when some edges are removed.
17049 (execute_lower_eh_dispatch): When any lowering resulted in
17050 removing an edge, also delete unreachable blocks.
17052 2010-03-10 Jakub Jelinek <jakub@redhat.com>
17055 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17056 UNSPEC_MACHOPIC_OFFSET.
17058 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
17061 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
17062 (m68k_delegitimize_address): New function.
17064 2010-03-09 Jakub Jelinek <jakub@redhat.com>
17067 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
17070 * var-tracking.c (adjust_sets): New function.
17071 (count_with_sets, add_with_sets): Use it.
17072 (get_adjusted_src): New inline function.
17073 (add_stores): Use it.
17076 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
17077 call cselib_dummy_expand_value_rtx_cb instead of
17078 cselib_expand_value_rtx_cb.
17081 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
17082 * config/i386/i386.c: Include debug.h and dwarf2out.h.
17083 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
17084 and .cfi_endproc around the pic thunks.
17085 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
17086 all queued unwind info register saves are saved before the call.
17087 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
17088 considered as sp-=4 for unwind info and the pop as sp+=4 which
17089 also clobbers dest, but doesn't actually restore it.
17092 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
17093 RTX_FRAME_RELATED_P.
17095 2010-03-09 Jie Zhang <jie@codesourcery.com>
17097 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
17098 whitespaces in output template.
17100 2010-03-09 Jie Zhang <jie@codesourcery.com>
17102 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
17103 out array boundary.
17105 2010-03-08 Jakub Jelinek <jakub@redhat.com>
17107 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
17108 builtins.exp in a separate job.
17110 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17112 * graphite-sese-to-poly.c (add_param_constraints): Use
17113 lower_bound_in_type and upper_bound_in_type.
17115 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17117 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
17118 instead of unsigned_type_node.
17120 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17121 Reza Yazdani <reza.yazdani@amd.com>
17123 PR middle-end/43065
17124 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
17125 on pointer type parameters.
17127 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17129 PR middle-end/42644
17130 PR middle-end/42130
17131 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
17132 handle conversions from pointer to integers.
17133 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
17134 induction variable, to be able to work with code generated by CLooG.
17135 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
17136 (build_poly_scop): Bail out if we cannot codegen a loop.
17138 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17140 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
17141 code generation with gloog_error.
17143 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17145 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
17146 Call fold_convert on all the returned values.
17147 (expand_scalar_variables_expr): Pass to
17148 expand_scalar_variables_ssa_name the type of the resulting expression.
17150 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17152 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
17153 ppl_min_for_le_pointset.
17154 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
17155 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
17157 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17159 * graphite-dependences.c (map_into_dep_poly): Removed.
17160 (dependence_polyhedron_1): Use combine_context_id_scat.
17162 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17164 * graphite-poly.h (struct poly_scattering): Add layout documentation.
17165 (struct poly_bb): Same.
17166 (combine_context_id_scat): New.
17168 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17170 PR middle-end/42326
17171 * sese.c (name_defined_in_loop_p): Return false for default
17174 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17176 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
17177 and clean up the logic.
17179 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17181 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
17184 2010-03-08 Jakub Jelinek <jakub@redhat.com>
17186 * var-tracking.c (remove_cselib_value_chains): Define only for
17188 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
17189 delete_slot_part, emit_notes_for_differences_1): Don't call
17190 remove_cselib_value_chains here.
17191 (set_slot_part, emit_notes_for_differences_2): Don't call
17192 add_cselib_value_chains here.
17193 (preserved_values): New vector.
17194 (preserve_value): New function.
17195 (add_uses, add_stores, vt_add_function_parameters): Use it
17196 instead of cselib_preserve_value.
17197 (changed_values_stack): New vector.
17198 (check_changed_vars_0): New function.
17199 (check_changed_vars_1, check_changed_vars_2): Use it.
17200 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
17201 changed_values_stack VALUEs.
17202 (vt_emit_notes): For all preserved_values call
17203 add_cselib_value_chains. If ENABLE_CHECKING call
17204 remove_cselib_value_chains before verifying value_chains is empty.
17205 Initialize and free changed_values_stack.
17206 (vt_initialize): Initialize preserved_values.
17207 (vt_finalize): Free preserved_values.
17209 2010-03-08 Richard Guenther <rguenther@suse.de>
17211 PR tree-optimization/43269
17212 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
17215 2010-03-08 Martin Jambor <mjambor@suse.cz>
17217 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
17218 (ipa_is_param_called): Removed.
17219 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
17220 (ipa_print_node_params): Do not print the called flag.
17221 (ipa_write_node_info): Do not stream the called flag.
17222 (ipa_read_node_info): Likewise.
17224 2010-03-07 Jakub Jelinek <jakub@redhat.com>
17227 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
17228 * cselib.c (struct expand_value_data): Add dummy field.
17229 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
17231 (cselib_dummy_expand_value_rtx_cb): New function.
17232 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
17234 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
17235 * var-tracking.c: Include pointer-set.h.
17236 (variable): Change n_var_parts to char from int. Add
17237 cur_loc_changed and in_changed_variables fields.
17238 (variable_canonicalize): Remove.
17239 (shared_var_p): New inline function.
17240 (unshare_variable): Maintain cur_loc_changed and
17241 in_changed_variables fields. If var was in changed_variables,
17242 replace it there with new_var. Just copy cur_loc instead of
17243 resetting it to something else.
17244 (variable_union): Don't recompute cur_loc. Use shared_var_p.
17245 (dataflow_set_union): Don't call variable_canonicalize.
17246 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
17247 of their DEBUG_EXPR_TREE_DECLs.
17248 (canonicalize_loc_order_check): Verify that cur_loc is NULL
17249 and in_changed_variables and cur_loc_changed is false.
17250 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
17251 and cur_loc_changed. Don't update cur_loc here.
17252 (variable_merge_over_src): Don't call variable_canonicalize.
17253 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
17254 removing loc that is equal to cur_loc, clear cur_loc,
17255 set cur_loc_changed and ensure variable_was_changed is called.
17256 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
17257 compare pointers in cur_loc check, if it is equal to loc,
17258 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
17259 (variable_different_p): Remove compare_current_location argument,
17260 don't compare cur_loc.
17261 (dataflow_set_different_1): Adjust variable_different_p caller.
17262 (variable_was_changed): If dv had some var in changed_variables
17263 already, reset in_changed_variables flag for it and propagate
17264 cur_loc_changed over to the new variable. On empty var
17265 always set cur_loc_changed. Set in_changed_variables on whatever
17266 var is added to changed_variables.
17267 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
17268 Use shared_var_p. When removing loc that is equal to cur_loc,
17269 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
17270 end, don't set it to something else, just call variable_was_changed.
17271 (delete_slot_part): Use shared_var_p. When cur_loc equals to
17272 loc being removed, clear cur_loc and set cur_loc_changed.
17273 Set cur_loc_changed if all locations have been removed.
17274 (struct expand_loc_callback_data): New type.
17275 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
17276 allocated. Always create SUBREGs if simplify_subreg failed.
17277 Prefer to use cur_loc, when that fails and still in
17278 changed_variables (and seen first time) recompute it. Set
17279 cur_loc_changed of variables which had to change cur_loc and
17280 compute elcd->cur_loc_changed if any of the subexpressions used
17281 had to change cur_loc.
17282 (vt_expand_loc): Adjust to pass arguments in
17283 expand_loc_callback_data structure.
17284 (vt_expand_loc_dummy): New function.
17285 (emitted_notes): New variable.
17286 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
17287 that weren't used for any other decl in current
17288 emit_notes_for_changes call call vt_expand_loc_dummy to update
17289 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
17290 first loc_chain location if NULL before. Always use just
17291 cur_loc instead of first loc_chain location. When cur_loc_changed
17292 is false, when not --enable-checking=rtl just don't emit any note.
17293 When rtl checking, compute the note and assert it is the same
17294 as previous note. Clear cur_loc_changed and in_changed_variables
17295 at the end before removing from changed_variables.
17296 (check_changed_vars_3): New function.
17297 (emit_notes_for_changes): Traverse changed_vars to call
17298 check_changed_vars_3 on each changed var.
17299 (emit_notes_for_differences_1): Clear cur_loc_changed and
17300 in_changed_variables. Recompute cur_loc of new_var.
17301 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
17302 (vt_emit_notes): Initialize and destroy emitted_notes.
17304 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
17306 PR rtl-optimization/42220
17307 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
17308 Use verify_reg_tracked to determine if we should use OP_OUT rather
17310 (build_def_use): If we see an in-out operand for a register that we
17311 know nothing about, treat is an output if possible, fail the block if
17314 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17317 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
17320 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17323 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
17324 uses of relevant DEFs that are dead outside the loop too.
17326 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17328 * var-tracking.c (dataflow_set_merge): Swap src and src2.
17330 2010-01-13 Jakub Jelinek <jakub@redhat.com>
17332 * var-tracking.c (values_to_unmark): New variable.
17333 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17334 values_to_unmark vector. Moved body to...
17335 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17336 instead queue it into values_to_unmark vector.
17337 (vt_find_locations): Free values_to_unmark vector.
17339 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
17341 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
17342 (site.exp): Export them when plugins are enabled.
17344 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
17346 PR middle-end/42326
17347 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
17348 that contain scevs.
17349 (chrec_fold_multiply): Same.
17351 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
17354 * c-decl.c (build_compound_literal): Return early if init is
17355 an error_mark_node.
17357 2010-03-04 Martin Jambor <mjambor@suse.cz>
17359 PR tree-optimization/43164
17360 PR tree-optimization/43191
17361 * tree-sra.c (type_consists_of_records_p): Reject records with
17362 zero-size bit-fields at the end.
17364 2010-03-04 Mike Stump <mikestump@comcast.net>
17366 * Makefile.in (TAGS): Remove *.y.
17368 2010-03-04 Richard Guenther <rguenther@suse.de>
17370 PR tree-optimization/40761
17371 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
17373 (my_rev_post_order_compute): New function.
17374 (init_pre): Call it.
17376 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
17378 PR middle-end/43209
17379 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
17380 decrease the cost of an IV candidate when the cost is infinite.
17382 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17384 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
17385 Use '3DNow!' for the extension of that name, ensure normal space
17387 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
17389 2010-03-03 Jeff Law <law@redhat.com>
17391 * PR middle-end/32693
17392 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
17393 than gen_rtx_SUBREG.
17394 (extract_bit_field_1): Likewise.
17396 2010-03-03 Janis Johnson <janis187@us.ibm.com>
17398 * doc/sourcebuild.texi (Test directives): Document that arguments
17399 include-opts and exclude-opts are now optional for dg-skip-if,
17400 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
17402 2010-03-03 Jason Merrill <jason@redhat.com>
17405 * cgraph.h (varpool_node): Add extra_name field.
17406 * varpool.c (varpool_extra_name_alias): New.
17407 (varpool_assemble_decl): Emit extra name aliases.
17408 (varpool_mark_needed_node): Look past an extra name alias.
17409 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
17410 * lto-streamer-in.c (lto_input_tree): Read it.
17411 * lto-streamer-out.c (output_unreferenced_globals): Write it.
17413 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
17415 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
17416 (sparc*-*-solaris2*): ...this.
17418 2010-03-03 Jakub Jelinek <jakub@redhat.com>
17421 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
17422 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
17423 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
17424 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
17427 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
17428 fallthrough to default handling, just with want_address 0 instead of 2.
17429 For single element lists, add_AT_loc directly, otherwise create an
17430 artificial variable DIE and stick location list to it.
17433 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
17434 (VAL_EXPR_HAS_REVERSE): Define.
17435 (reverse_op): New function.
17436 (add_stores): For reversible operations add an extra MO_VAL_USE.
17438 2010-03-02 Jason Merrill <jason@redhat.com>
17440 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
17442 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
17444 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
17445 (sparc64-*-linux*): Likewise.
17446 (sparc64-*-solaris2*): Include assembler files before linker ones.
17447 (sparc-*-solaris2*): Simplify and reorder to match previous case.
17448 * config/sparc/gas.h: Delete.
17449 * config/sparc/sol2-64.h: Add copyright notice.
17450 * config/sparc/sol2-gas-bi.h: Likewise.
17451 * config/sparc/sol2-gld.h: Likewise.
17452 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
17453 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
17454 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
17455 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
17456 (sparc_elf_asm_named_section): Rename into...
17457 (sparc_solaris_elf_asm_named_section): ...this. Always define.
17459 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
17461 * config/alpha/alpha.c (override_options): Fix -mtune error message.
17463 2010-03-02 Jeff Law <law@redhat.com>
17465 PR middle-end/42431
17466 * reload1.c (rtx_p, substitute_stack): Declare.
17467 (substitute): Record addresses of changed rtxs.
17468 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
17469 Restore the original rtx when complete.
17470 (reload): Free subsitute_stack when complete.
17472 2010-03-02 Janis Johnson <janis187@us.ibm.com>
17474 * doc/gccint.texi (menu): Add Testsuites as a chapter.
17475 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
17477 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
17478 LTO Testing, gcov Testing, profopt Testing, compat Testing,
17479 Torture Tests): Change from subsection to section.
17481 2010-03-02 Jakub Jelinek <jakub@redhat.com>
17482 Steven Bosscher <steven@gcc.gnu.org>
17484 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
17487 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
17489 PR middle-end/42640
17490 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
17491 the assignment from the new induction variable to the assignment
17492 of the value from the original loop PHI function.
17494 2010-03-01 Janis Johnson <janis187@us.ibm.com>
17495 Daniel Jacobowitz <dan@codesourcery.com>
17497 * doc/sourcebuild.texi (Test directives): Clarify options to
17500 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17502 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
17503 Disable cfi directives unless GCC and gas agree on using read-only
17504 .eh_frame sections for 64-bit.
17505 * configure: Regenerate.
17507 2010-03-01 Richard Guenther <rguenther@suse.de>
17509 PR tree-optimization/43220
17510 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
17511 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
17513 2010-03-01 Richard Guenther <rguenther@suse.de>
17514 Martin Jambor <mjambor@suse.cz>
17516 PR middle-end/41250
17517 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
17518 gimplified parameters.
17520 2010-03-01 Christian Bruel <christian.bruel@st.com>
17522 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
17524 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17526 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
17528 2010-03-01 Richard Guenther <rguenther@suse.de>
17530 PR middle-end/43213
17531 * expr.c (expand_assignment): Use the alias-oracle to tell
17532 if the rhs aliases the result decl.
17534 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17537 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
17538 to sol_gt_pch_get_address.
17539 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
17540 64-bit, SPARC and x86.
17541 (sol_gt_pch_get_address): New function.
17543 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
17545 * toplev.h (inform_n, error_n): Declare.
17546 * diagnostic.c (inform_n, error_n): New function.
17548 2010-03-01 Jakub Jelinek <jakub@redhat.com>
17550 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
17551 has no rtl yet when processing local_decls, queue it and recheck
17552 if deferred stack allocation hasn't assigned it rtl.
17554 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
17556 * config/sh/sh.c (unspec_bbr_uid): New.
17557 (gen_block_redirect): Use it instead of INSN_UID.
17558 (gen_far_branch): Likewise.
17560 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
17562 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
17563 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
17565 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17567 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
17568 (Warning Options): -Wno-conversion-null is valid for
17569 Objective-C++ as well.
17570 * doc/tm.texi (Named Address Spaces): Likewise.
17571 * doc/plugins.texi (Plugins): Replace TABs with spaces.
17572 * doc/tree-ssa.texi (Tree SSA): Likewise.
17574 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17577 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
17578 by default. Don't set the default arch for
17579 i[34567]86-*-darwin*|x86_64-*-darwin*.
17581 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17584 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
17585 default. Set the default 32bit/64bit archs with $with_arch
17586 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
17588 2010-02-27 Richard Guenther <rguenther@suse.de>
17590 PR tree-optimization/43186
17591 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
17592 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
17593 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
17594 unroller iterations.
17596 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17598 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
17599 required and i[34567]86-*-* targets don't support 64bit ISA.
17601 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
17604 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17605 the same alias set.
17607 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17609 * config.gcc: Set the default arch at least to Prescott for
17610 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
17611 if SSE math is enabled.
17613 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17615 * diagnostic.c (diagnostic_initialize): Update.
17616 (diagnostic_report_diagnostic): Test inhibit_notes_p for
17618 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
17619 (diagnostic_inhibit_notes): New.
17620 * toplev.c (process_options): inhibit notes with -fcompare-debug.
17622 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17625 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
17626 * doc/standards.texi: Likewise.
17627 * doc/extend.texi: Likewise.
17628 * doc/trouble.texi: Likewise.
17629 * doc/cppopts.texi: Likewise.
17630 * doc/install.texi: Likewise.
17631 * c.opt (std=c90,std=gnu90): New options.
17632 * c-opts.c (c_common_handle_option): Handle them.
17634 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17637 * c-decl.c (undeclared_variable): Use an informative note.
17639 2010-02-26 Richard Guenther <rguenther@suse.de>
17641 PR tree-optimization/43186
17642 * gimple.h (gimple_fold): Remove.
17643 * gimple.c (gimple_fold): Remove. Inline into single user ...
17644 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
17645 Try harder for conditions.
17647 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17650 * function.c (used_types_insert): Don't skip through named pointer
17651 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
17652 and it is different from the main variant's type.
17654 2010-02-26 Nick Clifton <nickc@redhat.com>
17656 * config/rx/rx.md (sminsi3): Remove bogus alternative.
17658 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17660 * config.gcc: Support --with-fpmath=sse for x86.
17662 * config/i386/ssemath.h: New.
17664 * doc/install.texi (--with-fpmath=sse): Documented.
17666 2010-02-26 Richard Guenther <rguenther@suse.de>
17668 PR tree-optimization/43188
17669 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17670 vector types of over-aligned element type.
17672 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
17675 * config/i386/i386.c (expand_vec_perm_blend): Use correct
17676 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
17678 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
17680 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17682 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17684 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17685 * var-tracking.c: Include diagnostic.h.
17686 (debug_dv): New function.
17687 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17690 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17691 (add_value_chain, add_value_chains, remove_value_chain,
17692 remove_value_chains): Handle DEBUG_EXPRs.
17693 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17696 * regcprop.c (struct queued_debug_insn_change): New type.
17697 (struct value_data_entry): Add debug_insn_changes field.
17698 (struct value_data): Add n_debug_insn_changes field.
17699 (debug_insn_changes_pool): New variable.
17700 (free_debug_insn_changes, apply_debug_insn_changes,
17701 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17702 (kill_value_one_regno): Call free_debug_insn_changes if needed.
17703 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17705 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17707 (copyprop_hardreg_forward_1): Don't call apply_change_group for
17708 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
17709 changes, call cprop_find_used_regs via note_stores.
17710 (copyprop_hardreg_forward): When copying vd from predecessor
17711 which has any queued DEBUG_INSN changes, make sure the pointers are
17712 cleared. At the end call df_analyze and then if there are any
17713 DEBUG_INSN changes queued at the end of some basic block for still
17714 live registers, apply them.
17715 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17717 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
17719 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17722 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
17724 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17725 targets. Set the default with_cpu/with_arch from arch/cpu.
17726 Allow x86-64 and native for with_cpu/with_arch.
17728 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
17730 * ebitmap.c: Change calls to verify_popcount with calls to
17731 sbitmap_verify_popcount.
17732 (ebitmap_clear_bit): Fixed map->cacheindex test and
17733 map>cache update when bit clearing results in an empty
17736 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17739 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17740 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17741 and support both V2DF and V2DI modes.
17742 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17743 support both V2DF and V2DI modes.
17744 (general): Delete trailing whitespace from a few patterns.
17746 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17747 V2DF/V2DI interleave high/low builtins.
17749 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17752 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17753 interleave high/low functions.
17755 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17757 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17758 #pragma extern_prefix.
17760 2010-02-25 Jakub Jelinek <jakub@redhat.com>
17763 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17764 BLKmode, assert op0 is a MEM and just adjust its mode.
17767 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17768 if bitpos isn't multiple of mode's bitsize.
17770 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17772 * c.opt (-ftemplate-depth=): New.
17773 (-ftemplate-depth-): Deprecate.
17774 * optc-gen.awk: Handle -ftemplate-depth=.
17775 * opth-gen.awk: Likewise.
17776 * c-opts.c (c_common_handle_option): Likewise.
17777 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17779 2010-02-24 Jason Merrill <jason@redhat.com>
17781 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17783 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17785 * cfg.c (alloc_aux_for_block): Remove inline.
17786 (alloc_aux_for_edge): Likewise.
17788 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17790 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17792 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17794 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17795 * config/i386/sol2-gas.h: New file.
17796 * config.gcc (i[34567]86-*-solaris2*): Use it.
17798 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17801 * c-typeck.c (ep_convert_and_check): New.
17802 (build_conditional_expr): Use it.
17803 (build_binary_op): Likewise.
17805 2010-02-24 Jakub Jelinek <jakub@redhat.com>
17807 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17810 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17811 bounds even for -O+.
17812 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17813 expr needs to have DECL_NAME set.
17815 2010-02-24 Nick Clifton <nickc@redhat.com>
17817 * config/mep/mep.c: Include gimple.h.
17818 (mep_function_uses_sp): Delete unused function.
17819 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17820 parameters. Use unsigned integers to count args. Return a
17821 NULL_RTX instead of an error_mark_node. Toidy up formatting.
17823 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17826 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17827 greater or equal to nelt instead of 2 * nelt.
17828 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17831 2010-02-23 Jason Merrill <jason@redhat.com>
17834 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17835 in cfun->local_decls even if they have register types.
17838 * stor-layout.c (place_field): Don't warn about unnecessary
17839 DECL_PACKED if the type is packed.
17841 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17844 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17845 GOTOFF relocs, even when the base reg isn't pic pointer.
17847 2010-02-23 Michael Matz <matz@suse.de>
17850 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17851 (expand_gimple_basic_block): Generate and use debug temps if there
17852 are debug uses left after the last real use of TERed ssa names.
17853 Unlink debug immediate uses when they are expanded.
17855 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
17858 * config/i386/i386.c (override_options): Reorganise to provide
17859 better error messages.
17861 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17863 PR middle-end/43083
17864 * graphite-scop-detection.c (create_single_exit_edge): Move
17865 the call to find_single_exit_edge to....
17866 (create_sese_edges): ...here. Don't handle multiple edges
17867 exiting the function.
17868 (build_graphite_scops): Don't handle multiple edges
17869 exiting the function.
17871 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17873 PR middle-end/43097
17874 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17875 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17877 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17879 PR middle-end/43026
17880 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17882 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
17885 * c-typeck.c (convert_arguments): Print declaration location.
17886 * c-common.c (validate_nargs): Rename as
17887 builtin_function_validate_nargs.
17888 (check_builtin_function_arguments): Update.
17890 2010-02-22 Richard Guenther <rguenther@suse.de>
17893 * tree-inline.c (declare_return_variable): Use the type of
17894 the call stmt lhs if available.
17896 2010-02-22 Duncan Sands <baldrick@free.fr>
17898 * passes.c (register_pass): Always consider all pass lists when
17899 ref_pass_instance_number is zero.
17901 2010-02-22 Richard Guenther <rguenther@suse.de>
17903 PR tree-optimization/42749
17904 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17905 parameter. Do arithmetic in the original type.
17906 (update_accumulator_with_ops): Likewise.
17907 (adjust_accumulator_values): Adjust.
17909 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17911 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17912 (QI to BLKmode splitter): New splitter.
17914 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
17916 * config/i386/i386.c (initial_ix86_tune_features): Turn on
17917 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17919 2010-02-22 Richard Guenther <rguenther@suse.de>
17921 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17923 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
17925 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17926 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17927 ($(T)crti.o, $(T)crtn.o): Remove rules.
17929 2010-02-21 Tobias Burnus <burnus@net-b.de>
17932 * doc/invoke.texi (-fassociative-math): Document that this
17933 option is automatically enabled for Fortran.
17935 2010-02-20 David S. Miller <davem@davemloft.net>
17937 * configure.ac: Test if linker and assembler properly support
17938 GOTDATA_OP relocations.
17939 * configure: Rebuild.
17940 * config.in: Likewise.
17941 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17942 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17943 (movsi_high_pic): Likewise.
17944 (movdi_lo_sum_pic): Likewise.
17945 (movdi_high_pic): Likewise.
17946 (movsi_pic_gotdata_op): New pattern.
17947 (movdi_pic_gotdata_op): Likewise.
17948 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17949 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17951 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
17954 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17955 attribute to ssemul.
17956 (xop_mulv2div2di3_high): Ditto.
17958 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17961 * c.opt (Wconversion-null): New option.
17962 * doc/invoke.texi (Wconversion-null): Document.
17964 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17966 * common.opt (Wlarger-than-): Add Undocumented.
17968 2010-02-19 Mike Stump <mikestump@comcast.net>
17970 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17972 2010-02-19 Jason Merrill <jason@redhat.com>
17975 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17976 * configure: Likewise.
17978 2010-02-20 Alan Modra <amodra@gmail.com>
17980 PR middle-end/42344
17981 * cgraph.h (cgraph_make_decl_local): Declare.
17982 * cgraph.c (cgraph_make_decl_local): New function.
17983 (cgraph_make_node_local): Use it.
17984 * cgraphunit.c (cgraph_function_versioning): Likewise.
17985 * ipa.c (function_and_variable_visibility): Likewise.
17987 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17990 * except.c (sjlj_emit_function_enter): Don't call
17991 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17993 * rtl.h (add_reg_br_prob_note): Remove prototype.
17995 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17998 * c-common.c (conversion_warning): Remove widening conversions
17999 before checking the conversion of integers to reals.
18001 2010-02-19 Mike Stump <mikestump@comcast.net>
18003 PR middle-end/43125
18004 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
18007 * cgraphunit.c (process_function_and_variable_attributes): Check
18008 DECL_PRESERVE_P instead of looking up attribute "used".
18009 * ipa-pure-const.c (check_decl): Likewise.
18010 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
18011 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
18012 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
18013 instead of attribute "used".
18014 * config/sol2-c.c (solaris_pragma_init): Likewise.
18015 (solaris_pragma_fini): Likewise.
18017 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18019 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
18020 Use XCNEW instead of xcalloc.
18021 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
18022 XNEW instead of xmalloc.
18023 (get_fields): Use XNEWVEC instead of xmalloc.
18026 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
18027 populate vars array.
18028 (create_new_general_access): For debug stmts just reset value.
18029 (get_stmt_accesses): For accesses within debug stmts just record them
18030 using add_access_to_acc_sites instead of preventing the peeling or
18031 counting them as accesses.
18033 PR middle-end/42233
18034 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
18036 2010-02-19 Richard Guenther <rguenther@suse.de>
18038 PR tree-optimization/42916
18039 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
18042 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
18044 * configure.ac: Replace all uses of changequote in macro arguments
18045 with proper quoting.
18047 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18049 PR middle-end/42233
18050 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
18052 2010-02-19 Richard Guenther <rguenther@suse.de>
18054 PR tree-optimization/42944
18055 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
18056 test for aliasing with errno.
18058 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18060 PR middle-end/42233
18061 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
18062 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
18063 * dojump.c: Include output.h.
18064 (inv): New inline function.
18065 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
18066 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
18067 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
18068 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
18069 argument, pass it down to other calls.
18070 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
18071 add REG_BR_PROB note to the conditional jump.
18072 * cfgexpand.c (add_reg_br_prob_note): Removed.
18073 (expand_gimple_cond): Don't call it, add the probability
18074 as last argument to jumpif_1/jumpifnot_1.
18075 * Makefile.in (dojump.o): Depend on output.h.
18076 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
18078 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
18079 * stmt.c (do_jump_if_equal): Likewise.
18080 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
18081 * loop-unswitch.c (compare_and_jump_seq): Likewise.
18082 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
18084 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
18085 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
18086 jumpifnot_1 callers.
18087 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
18089 (store_expr): Adjust jumpifnot caller.
18090 (store_constructor): Adjust jumpif caller.
18092 PR middle-end/42233
18093 * gimplify.c (gimple_boolify): For __builtin_expect call
18094 gimple_boolify also on its first argument.
18096 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
18098 * configure.ac (gnu-unique-object): Wrap regexps using [] in
18100 (__stack_chk_fail): Ditto. Remove quadrigraphs.
18101 * configure: Regenerated.
18103 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18105 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
18106 lang_hooks.types_compatible_p instead of comptypes.
18108 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18110 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
18111 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
18112 if __prefer_thumb__ is defined.
18114 2010-02-18 Martin Jambor <mjambor@suse.cz>
18116 PR tree-optimization/43066
18117 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
18118 array with zero-sized element type.
18120 2010-02-18 Jakub Jelinek <jakub@redhat.com>
18122 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
18123 rtx, allocate struct var_loc_node here and return it to the
18124 caller, and only if it is actually needed.
18125 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
18126 move it earlier and return immediately if it returns NULL.
18128 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
18130 * config/sparc/gas.h: New file. Restore
18131 TARGET_ASM_NAMED_SECTION to its ELF default.
18132 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
18133 check !HAVE_GNU_AS.
18134 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18135 Likewise. Add ATTRIBUTE_UNUSED to prototype.
18136 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
18137 after sparc/sysv4.h.
18139 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
18141 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
18143 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
18145 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
18146 patterns from predicated pattern.
18148 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
18151 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
18152 for insn mnemonic suffix.
18154 2010-02-17 Richard Guenther <rguenther@suse.de>
18156 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
18159 2010-02-17 Jakub Jelinek <jakub@redhat.com>
18162 * caller-save.c (save_call_clobbered_regs): If BB ends with
18163 a DEBUG_INSN, move any notes in between last real insn and the last
18164 DEBUG_INSN after the last DEBUG_INSN.
18166 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
18168 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
18169 Fix return type. Fix argument type. Explain meaning of return value.
18171 2010-02-16 Richard Guenther <rguenther@suse.de>
18173 PR tree-optimization/41043
18174 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
18175 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
18177 (vrp_visit_phi_node): ... but only for loop PHI nodes.
18179 2010-02-16 Ira Rosen <irar@il.ibm.com>
18181 PR tree-optimization/43074
18182 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
18183 * tree-vect-loop.c (vect_analyze_loop_operations): Add
18184 vectorizable cycles in hybrid SLP check.
18185 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
18187 2010-02-16 Richard Guenther <rguenther@suse.de>
18189 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
18190 (true_dependence): If memrefs_conflict_p computes must-alias
18191 trust it. Move TBAA check after offset-based disambiguation.
18192 (canon_true_dependence): Likewise.
18194 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
18196 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
18197 * doc/invoke.texi: Document it.
18198 * var-tracking.c: Include toplev.h and params.h.
18199 (vt_find_locations): Return bool indicating success. Compute
18200 hash sizes unconditionally. Check new parameter, report.
18201 (variable_tracking_main_1): Check vt_find_locations results and
18202 retry. Renamed from...
18203 (variable_tracking_main): ... this. New wrapper to preserve
18204 flag_var_tracking_assignments.
18205 * Makefile.in (var-tracking.o): Adjust dependencies.
18207 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
18208 Jakub Jelinek <jakub@redhat.com>
18211 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
18212 if weak_import attribute is present.
18213 * config/darwin.c (machopic_select_section): Likewise.
18215 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
18217 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
18218 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
18219 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
18220 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
18222 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
18225 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18226 Fix argument types.
18228 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
18229 Rewrite text to refer to the names.
18231 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
18233 * config/i386/i386-builtin-types.def
18234 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
18235 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
18236 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
18237 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
18238 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
18239 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
18240 IX86_BUILTIN_VPERMIL2PS256.
18241 (MULTI_ARG_4_DF2_DI_I): Defined.
18242 (MULTI_ARG_4_DF2_DI_I1): Defined.
18243 (MULTI_ARG_4_SF2_SI_I): Defined.
18244 (MULTI_ARG_4_SF2_SI_I1): Defined.
18245 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
18246 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
18247 __builtin_ia32_vpermil2ps256.
18248 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18249 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18250 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
18251 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18252 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18253 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
18254 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
18255 CODE_FOR_xop_vpermil2v8sf3.
18256 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
18257 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
18258 * config/i386/xopintrin.h (_mm_permute2_pd): New.
18259 (_mm256_permute2_pd): New.
18260 (_mm_permute2_ps): New.
18261 (_mm256_permute2_ps): New.
18263 2010-02-15 Nick Clifton <nickc@redhat.com>
18265 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
18266 boolean parameters. Use emit_jump_insn when emitting a pop
18267 instruction containing a return insn.
18268 (push): Use 'true' rather than '1' as second parameter to F.
18269 (h8300_expand_prologue): Likewise.
18270 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
18271 (h8300_expand_epilogue): Likewise.
18273 2010-02-15 Richard Guenther <rguenther@suse.de>
18275 PR middle-end/43068
18276 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
18279 2010-02-15 Nick Clifton <nickc@redhat.com>
18281 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
18284 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
18286 * intl.c (fake_ngettext): New function.
18287 * intl.h (fake_ngettext): Declare.
18288 (ngettext): Define macro.
18289 * collect2.c (notice_translated): New function.
18290 (main): Use notice_translated and ngettext.
18291 * collect2.h (notice_translated): Declare.
18293 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
18295 * reorg.c (delete_computation): Comment fixes.
18296 * caller-save.c (setup_save_areas): Idem.
18297 * sel-sched-dump.c (dump_lv_set): Idem.
18300 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18302 * config/s390/s390.c (s390_sched_init): New function.
18303 (TARGET_SCHED_INIT): Target hook defined.
18305 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
18306 Jack Howarth <howarth@bromo.med.uc.edu>
18307 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18310 Partial revert of unintended change in fix for PR41605.
18311 * config/darwin.h: Fix typo.
18312 * config/darwin9.h: Same.
18314 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18316 * c-pch.c (pch_init): Clear v.
18318 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18320 PR middle-end/42930
18321 * graphite-scop-detection.c (graphite_can_represent_scev): Call
18322 graphite_can_represent_init for MULT_EXPR.
18324 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18326 PR middle-end/42914
18327 PR middle-end/42530
18328 * graphite-sese-to-poly.c (remove_phi): New.
18329 (translate_scalar_reduction_to_array): Call remove_phi.
18331 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18333 PR middle-end/42771
18334 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18335 * graphite-clast-to-gimple.h (gloog): Update declaration.
18336 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18337 * graphite-poly.h (struct poly_bb): Add missing comments.
18338 (struct scop): Add poly_scop_p field.
18339 (POLY_SCOP_P): New.
18340 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
18341 * graphite.c (graphite_transform_loops): Build the polyhedral
18342 representation for each scop before code generation.
18343 * sese.c (rename_variables_in_operand): Removed.
18344 (rename_variables_in_expr): Return the renamed expression.
18345 (rename_sese_parameters): New.
18346 * sese.h (rename_sese_parameters): Declared.
18348 2010-02-11 Richard Guenther <rguenther@suse.de>
18350 PR tree-optimization/42998
18351 * tree-ssa-pre.c (create_expression_by_pieces): Treat
18352 POINTER_PLUS_EXPR properly.
18354 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18355 Changpeng Fang <changpeng.fang@amd.com>
18357 PR middle-end/40886
18358 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
18359 the cost of an IV candidate when the IV is used in a test against zero.
18361 * gcc.dg/tree-ssa/ivopts-3.c: New.
18363 2010-02-11 Richard Guenther <rguenther@suse.de>
18366 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
18367 pointer-vs-decl case by swapping refs. Handle some cases
18368 of pointer-vs-decl disambiguations more conservatively.
18369 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
18370 to false after expanding.
18372 2010-02-11 Richard Guenther <rguenther@suse.de>
18375 * gcc.c (process_command): Handle LTO file@offset case more
18378 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18380 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
18381 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
18383 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
18385 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
18386 if MEM's mode size isn't DWARF2_ADDR_SIZE.
18387 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
18388 Optimize eq/ne comparisons when both arguments are known to be
18390 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
18391 Don't mask operands unnecessarily if they are known to be already
18394 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
18396 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
18399 2010-02-10 Richard Guenther <rguenther@suse.de>
18401 PR tree-optimization/43017
18402 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
18403 for wrapping signed arithmetic.
18405 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18408 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
18409 if no debug info should be emitted for it.
18411 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
18413 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
18414 note when flag_exceptions is set.
18416 2010-02-10 Duncan Sands <baldrick@free.fr>
18418 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
18420 2010-02-10 Richard Guenther <rguenther@suse.de>
18423 * tree.c (get_unwidened): Handle constants.
18424 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
18426 2010-02-10 Martin Jambor <mjambor@suse.cz>
18429 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
18430 check for variable argument counts independently.
18432 2010-02-10 Christian Bruel <christian.bruel@st.com>
18435 * config/sh/sh.c (find_barrier): Increase length for non delayed
18436 conditional branches.
18438 2010-02-10 Christian Bruel <christian.bruel@st.com>
18440 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
18442 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18444 * builtins.c (set_builtin_user_assembler_name): Also handle
18445 ffs if int is smaller than word.
18447 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
18449 PR middle-end/42973
18450 * ira-conflicts.c (get_dup): Remove.
18451 (process_reg_shuffles): Add new parameter. Use it as an
18452 additional guard for copy generation.
18453 (add_insn_allocno_copies): Rewrite.
18455 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
18457 * common.opt (fsched2-use-traces): Preserved for backward
18459 * doc/invoke.texi: Remove the documentation about option
18460 -fsched2-use-traces.
18461 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
18462 flag_sched2_use_traces.
18463 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
18464 the backward compatibility flag section.
18466 2010-02-09 Richard Guenther <rguenther@suse.de>
18468 PR tree-optimization/43008
18469 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
18470 make HEAP variables initialized from global memory if they
18471 are not known builtin functions.
18472 (find_func_aliases): Adjust.
18474 2010-02-09 Richard Guenther <rguenther@suse.de>
18476 PR tree-optimization/43000
18477 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
18478 arithmetic manually.
18480 2010-02-08 Jakub Jelinek <jakub@redhat.com>
18482 PR tree-optimization/42931
18483 * tree-loop-linear.c (try_interchange_loops): Don't call
18484 double_int_mul if estimated_loop_iterations failed.
18486 2010-02-08 Martin Jambor <mjambor@suse.cz>
18488 PR middle-end/42898
18489 * tree-sra.c (build_accesses_from_assign): Do not mark in
18490 should_scalarize_away_bitmap if stmt has volatile ops.
18491 (sra_modify_assign): Do not process assigns piecemeal if if stmt
18494 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
18496 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
18498 2010-02-07 Adam Nemet <adambnmet@gmail.com>
18500 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
18501 before the pattern.
18503 2010-02-07 Andrew Pinski <pinskia@gmail.com>
18505 PR middle-end/42946
18506 * df-core.c (df_finish_pass): Change type of saved_flags to int.
18508 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
18510 PR middle-end/42988
18511 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
18512 to unknown_dependence.
18513 (graphite_legal_transform_dr): Handle the unknown_dependence.
18514 (graphite_carried_dependence_level_k): Same.
18516 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
18518 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
18520 2010-02-07 Richard Guenther <rguenther@suse.de>
18522 PR middle-end/42991
18523 * expr.c (get_inner_reference): Always initialize *pbitsize.
18525 2010-02-07 Richard Guenther <rguenther@suse.de>
18527 PR middle-end/42956
18528 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
18529 new ARRAY_REFs on variable size element or minimal index arrays.
18531 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
18532 gimple_fold_indirect_ref.
18534 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
18537 * arm.c (arm_override_options): Just return if the user has specified
18538 an invalid fpu name.
18540 2010-02-03 Jason Merrill <jason@redhat.com>
18543 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
18544 i386_pe_maybe_record_exported_symbol.
18546 2010-02-05 Steve Ellcey <sje@cup.hp.com>
18549 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18550 (pa_delegitimize_address): New function.
18552 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
18554 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
18555 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
18557 2010-02-05 Richard Guenther <rguenther@suse.de>
18560 * lto-streamer-in.c (get_resolution): Deal with references
18561 to undefined functions.
18563 2010-02-05 Richard Guenther <rguenther@suse.de>
18565 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
18566 (fold_const_aggregate_ref): Likewise.
18567 (ccp_fold_stmt): Substitute loads.
18568 (maybe_fold_reference): Verify types before substituting.
18570 (fold_gimple_assign): Unshare properly.
18571 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
18573 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
18575 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
18576 for rs6000_gen_cell_microcode.
18578 2010-02-04 Richard Guenther <rguenther@suse.de>
18580 PR rtl-optimization/42952
18581 * dse.c (const_or_frame_p): Remove MEM handling.
18583 2010-02-04 Nick Clifton <nickc@redhat.com>
18585 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18586 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18587 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
18588 (mn10300_asm_output_mi_thunk): New function.
18589 (mn10300_can_output_mu_thunk): New function.
18590 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
18591 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
18592 (FUNCTION_ARG): Delete incorrect comment.
18594 2010-02-03 Jason Merrill <jason@redhat.com>
18597 * fold-const.c (operand_equal_p): Handle erroneous types.
18599 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18601 * config/h8300/h8300.md (can_delay): Fix attibute condition.
18603 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
18605 PR rtl-optimization/42941
18606 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
18609 2010-02-03 Jason Merrill <jason@redhat.com>
18612 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
18614 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
18617 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
18618 (cselib_reset_table): Renamed from...
18619 (cselib_reset_table_with_next_value): ... this.
18620 (cselib_get_next_uid): Renamed from...
18621 (cselib_get_next_unknown_value): ... this.
18622 * cselib.c (next_uid): Renamed from...
18623 (next_unknown_value): ... this.
18624 (cselib_clear_table): Adjust.
18625 (cselib_reset_table): Adjust. Renamed from...
18626 (cselib_reset_table_with_next_value): ... this.
18627 (cselib_get_next_uid): Adjust. Renamed from...
18628 (cselib_get_next_unknown_value): ... this.
18629 (get_value_hash): Use hash.
18630 (cselib_hash_rtx): Likewise.
18631 (new_cselib_val): Adjust. Set and dump uid.
18632 (cselib_lookup_mem): Pass next_uid as hash.
18633 (cselib_subst_to_values): Likewise.
18634 (cselib_log_lookup): Dump uid.
18635 (cselib_lookup): Pass next_uid as hash. Adjust.
18636 (cselib_process_insn): Adjust.
18637 (cselib_init): Initialize next_uid.
18638 (cselib_finish): Adjust.
18639 (dump_cselib_table): Likewise.
18640 * dse.c (canon_address): Dump value uid.
18641 * print-rtl.c (print_rtx): Print value uid.
18642 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
18644 (dv_uid): New function, sort of renamed from...
18645 (dv_htab_hash): ... this, reimplemented in terms of it and...
18646 (dv_uid2hash): ... this. New.
18647 (variable_htab_eq): Drop excess assertions.
18648 (tie_break_pointers): Removed.
18649 (canon_value_cmp): Compare uids.
18650 (variable_post_merge_New_vals): Print uids.
18651 (vt_add_function_parameters): Adjust.
18652 (vt_initialize): Reset table. Adjust.
18654 2010-02-03 Richard Guenther <rguenther@suse.de>
18656 PR tree-optimization/42944
18657 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18658 (call_may_clobber_ref_p_1): Likewise. Properly handle
18659 malloc and calloc clobbering errno.
18661 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
18663 * doc/invoke.texi: Fix name of sched1 dump.
18665 * opts.c (decode_options): Set flag_tree_switch_conversion
18666 only conditionally on optimize >= 2.
18668 * gcse.c: Assorted comment fixes in pass description.
18670 2010-02-03 Anthony Green <green@moxielogic.com>
18672 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18673 nop padding in order to maintain alignment of storage location of
18674 target function address.
18675 (moxie_trampoline_init): Store target function address at newly
18677 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18679 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18681 2010-02-03 Richard Guenther <rguenther@suse.de>
18683 PR middle-end/42927
18684 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18686 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18688 * config.gcc: Reenable check for obsolete targets.
18689 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18690 mips-sgi-irix6.[0-4]*.
18692 2010-02-02 Nick Clifton <nickc@redhat.com>
18694 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18695 constant size of 4 as being the same as 0.
18696 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18697 can take values in the range 0..4.
18699 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
18702 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18703 as _darwin10_Unwind_FindEnclosingFunction().
18704 * libgcc-libsystem.ver: New.
18706 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
18709 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18710 implicitly set registers.
18712 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
18714 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18715 (arm_override_options): Allow automatic selection of the thread
18716 pointer register if thumb2.
18717 (legitimize_pic_address): Improve code sequences for Thumb2.
18718 (arm_call_tls_get_addr): Likewise.
18719 (legitimize_tls_address): Likewise.
18720 * arm.md (pic_load_addr_arm): Delete. Replace with ...
18721 (pic_load_addr_32bit): ... this. New named pattern.
18722 * thumb2.md (pic_load_addr_thumb2): Delete.
18723 (pic_load_dot_plus_four): Delete.
18724 (tls_load_dot_plus_four): New named pattern.
18726 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18729 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18730 Document fix for TLS bug.
18732 2010-01-31 Richard Guenther <rguenther@suse.de>
18734 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18735 conservatively correct.
18737 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18741 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18743 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18745 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18747 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18749 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
18751 * config.gcc: Adjust order of makefile fragments for mingw targets.
18753 2010-01-31 Richard Guenther <rguenther@suse.de>
18755 PR middle-end/42898
18756 * gimplify.c (gimplify_init_constructor): For volatile LHS
18757 initialize a temporary.
18759 2010-01-31 Matthias Klose <doko@ubuntu.com>
18761 * configure.ac: Fix __stack_chk_fail check for cross builds configured
18763 * configure: Regenerate.
18765 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
18767 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18768 the same alias set and their sizes different constantness.
18769 (aliasing_component_refs_p): Revert 2009-10-24 change.
18771 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18773 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18776 2010-01-29 Richard Guenther <rguenther@suse.de>
18778 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18779 Assert we successfully updated the call.
18781 2010-01-29 Jakub Jelinek <jakub@redhat.com>
18783 PR rtl-optimization/42889
18784 * df.h (df_set_bb_dirty_nonlr): New prototype.
18785 * df-core.c (df_set_bb_dirty_nonlr): New function.
18786 * df-scan.c (df_insn_rescan): Call it instead of
18787 df_set_bb_dirty for DEBUG_INSNs.
18789 2010-01-29 Richard Guenther <rguenther@suse.de>
18791 PR middle-end/37448
18792 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18793 quadratic behavior in most cases.
18795 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
18798 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18799 in the call to gen_x86_movsicc_0_m1.
18801 2010-01-28 Richard Guenther <rguenther@suse.de>
18803 PR tree-optimization/42871
18804 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18806 2010-01-28 Richard Guenther <rguenther@suse.de>
18808 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18809 into call arguments.
18811 2010-01-28 Richard Guenther <rguenther@suse.de>
18813 PR middle-end/42883
18814 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18815 the forwarder if the destination is an EH landing pad.
18817 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
18819 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18820 block list passed to gimple_duplicate_sese_tail.
18821 (parallelize_loops): Avoid parallelization when the function
18822 has_nonlocal_label.
18823 Avoid parallelization when the preheader is IRREDUCIBLE.
18824 Try to optimize when estimated_loop_iterations_int is unresolved.
18825 Add the loop's location to the dump file.
18826 * tree-cfg.c (add_phi_args_after_redirect): Remove.
18827 (gimple_duplicate_sese_tail): Remove the check for the latch.
18828 Redirect nexits to the exit block.
18829 Remove handling of the incoming edges to the latch.
18830 Redirect the backedge from the copied latch to the exit bb.
18832 2010-01-28 Michael Matz <matz@suse.de>
18835 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18836 Wrap force_reg into a sequence, emit it before user.
18838 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
18840 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18842 (arm_legacy_rev): Likewise.
18843 (thumb_legacy_rev): Likewise.
18845 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18847 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18848 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
18849 on MEM's address failed, try avoid_constant_pool_reference and
18850 recurse if it returned something different.
18851 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18852 address, try avoid_constant_pool_reference and recurse if it
18853 returned something different.
18854 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18855 address and avoid_constant_pool_reference returned something
18856 different, don't set have_address.
18858 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
18861 * var-tracking.c (val_store): Add modified argument, obey it.
18863 (count_uses): Move down logging of main.
18864 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18865 don't need resolution.
18866 (emit_notes_in_bb): Likewise.
18868 2010-01-27 Richard Guenther <rguenther@suse.de>
18870 PR middle-end/42878
18871 * tree-inline.c (remap_decl): Delay remapping of SSA name
18872 default definitions until we need them.
18874 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18876 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18877 (rs6000_delegitimize_address): New function.
18879 * config/s390/s390.c (s390_delegitimize_address): Call
18880 delegitimize_mem_from_attrs.
18882 PR middle-end/42874
18883 * tree-inline.c (cannot_copy_type_1): Removed.
18884 (copy_forbidden): Don't forbid copying of functions containing
18885 records/unions with variable length fields.
18887 2010-01-27 Christian Bruel <christian.bruel@st.com>
18891 * config/sh/sh.c (find_barrier): Increase length for non delayed
18892 conditional branches.
18894 2010-01-27 Matthias Klose <doko@ubuntu.com>
18896 * configure.ac (gnu-unique-object): Fix ldd version check.
18897 * configure: Regenerate.
18899 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18901 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18903 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18904 Test for HAVE_GNU_AS value.
18906 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18908 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18909 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18910 INT64_TYPE): Define.
18911 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18912 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18913 INT_LEAST64_TYPE): Define.
18914 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18915 UINT_LEAST64_TYPE): Define.
18916 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18917 INT_FAST64_TYPE): Define.
18918 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18919 UINT_FAST64_TYPE): Define.
18920 (INTMAX_TYPE, UINTMAX_TYPE): Define.
18921 (INTPTR_TYPE, UINTPTR_TYPE): Define.
18922 (SIG_ATOMIC_TYPE): Define.
18924 2010-01-26 Richard Guenther <rguenther@suse.de>
18926 * df-scan.c (df_scan_set_bb_info): Remove assert.
18927 (df_insn_rescan_debug_internal): Merge asserts.
18928 (df_install_ref): Likewise.
18929 (df_mark_reg): Use bitmap_set_range.
18930 (df_hard_reg_used_p): Remove assert.
18931 (df_hard_reg_used_count): Likewise.
18933 2010-01-26 Richard Guenther <rguenther@suse.de>
18935 PR rtl-optimization/42685
18936 * web.c (web_main): Ignore DEBUG_INSNs.
18938 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
18940 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18942 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18943 Fix types of fndecl and arglist parameters.
18945 2010-01-26 Richard Guenther <rguenther@suse.de>
18947 PR middle-end/42806
18948 * tree-eh.c (unsplit_eh): Skip debug insns.
18950 2010-01-26 Richard Guenther <rguenther@suse.de>
18952 PR tree-optimization/42250
18953 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18955 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18958 * omp-low.c (expand_omp_sections): Only use single_pred if
18959 l2_bb is single_pred_p.
18961 2010-01-25 Christian Bruel <christian.bruel@st.com>
18964 * config/sh/sh.c (find_barrier): Increase length for non delayed
18965 conditional branches.
18966 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18968 2010-01-24 David S. Miller <davem@davemloft.net>
18970 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18971 define if not using GAS.
18972 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18973 Likewise. Delete SECTION_MERGE code, which is only applicable
18976 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18979 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18980 mangling of va_list in system headers.
18982 2010-01-23 Toon Moene <toon@moene.org>
18984 * tree-predcom.c (combine_chains): Return NULL, not false.
18986 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18988 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18989 initialization of variable res to agree with return type.
18991 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18993 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18994 * tree-sra.c: Add include of expr.h.
18996 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18998 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18999 insert the debug stmt on the single non-EH edge from the stmt.
19001 2010-01-22 Richard Henderson <rth@redhat.com>
19004 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
19005 the RHS until after generate_subtree_copies has insertted its
19006 code before the current statement.
19008 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
19010 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
19012 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
19014 2010-01-21 Martin Jambor <mjambor@suse.cz>
19016 PR tree-optimization/42585
19017 * tree-sra.c (struct access): New field grp_total_scalarization.
19018 (dump_access): Dump the new field.
19019 (should_scalarize_away_bitmap): New variable.
19020 (cannot_scalarize_away_bitmap): Likewise.
19021 (sra_initialize): Allocate new bitmaps.
19022 (sra_deinitialize): Free new bitmaps.
19023 (create_access_1): New function.
19024 (create_access): Parts moved to create_access_1.
19025 (type_consists_of_records_p): New function.
19026 (completely_scalarize_record): Likewise.
19027 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
19028 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
19029 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
19031 (analyze_all_variable_accesses): Completely scalarize small eligible
19034 2010-01-21 Martin Jambor <mjambor@suse.cz>
19036 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
19038 2010-01-21 Andrew Haley <aph@redhat.com>
19040 * gcc.c (process_command): Move lang_specific_driver before
19041 setting cc_libexec_prefix.
19043 2010-01-21 Richard Guenther <rguenther@suse.de>
19045 PR middle-end/19988
19046 * fold-const.c (negate_expr_p): Pretend only negative
19047 real constants are easily negatable.
19049 2010-01-20 Janis Johnson <janis187@us.ibm.com>
19050 Jason Merrill <jason@redhat.com>
19052 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
19053 (TYPE_TRANSPARENT_AGGR): this, for union and record.
19054 * calls.c (initialize argument_information): Handle it.
19055 * c-common.c (handle_transparent_union_attribute): Use new name.
19056 * c-decl.c (finish_struct): Ditto.
19057 * c-typeck.c (type_lists_compatible_p): Ditto.
19058 (convert_for_assignment): Use new name and also handle record.
19059 * function.c (aggregate_value_p): Handle it.
19060 (pass_by_reference): Ditto.
19061 (assign_parm_data_types): Ditto.
19062 * print-tree.c (print_node): Ditto.
19063 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
19064 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
19065 * tree.c (first_field): New fn.
19067 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
19070 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
19071 even when linking statically, for now.
19073 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
19076 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
19077 without a cselib val.
19078 (count_uses): Accept MO_VAL_SET with no val on stores.
19079 (add_stores): Likewise.
19081 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19083 * var-tracking.c (check_value_val): Add a compile time assertion.
19084 (dv_is_decl_p): Simplify.
19085 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
19086 gcc_assert if ENABLE_CHECKING.
19088 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
19091 * var-tracking.c: Include tree-flow.h.
19092 (mem_dies_at_call): New.
19093 (dataflow_set_preserve_mem_locs): Use it.
19094 (dataflow_set_remove_mem_locs): Likewise.
19095 (dump_var): Renamed from dump_variable. Adjust all callers.
19096 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
19097 * Makefile.in (var-tracking.o): Adjust deps.
19099 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
19101 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
19103 2010-01-20 Richard Guenther <rguenther@suse.de>
19105 PR tree-optimization/42717
19106 * tree-ssa-dce.c (get_live_post_dom): Remove.
19107 (forward_edge_to_pdom): Take an arbitrary edge to copy
19108 degenerate PHI args from.
19109 (remove_dead_stmt): Use the first post-dominator even if it
19110 does not contain live statements as redirection destination.
19112 2010-01-20 Richard Guenther <rguenther@suse.de>
19114 * tree-inline.c (estimate_num_insns): Handle EH builtins.
19116 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19118 * sel-sched.c (create_speculation_check): Remove set but not used
19120 (try_transformation_cache): Remove set but not used variable ds.
19121 (calculate_privileged_insns): Remove set but not used variables
19122 cur_insn and min_spec_insn.
19123 (find_best_expr): Remove set but not used variable avail_n.
19124 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
19126 * cgraphunit.c (assemble_thunk): Remove set but not used variable
19128 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
19129 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
19130 new_scop_exit_edge.
19132 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
19135 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
19136 cpu types. Add support for *-sse3 cpu types.
19137 (x86_64-*-*): Ditto.
19139 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19141 PR middle-end/42803
19142 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
19143 argument, call initializer_constant_valid_p_1 instead of
19144 initializer_constant_valid_p, pass CACHE to it, return NULL
19145 immediately if first call returns NULL.
19146 (initializer_constant_valid_p_1): New function.
19147 (initializer_constant_valid_p): Use it.
19149 2010-01-20 Thomas Quinot <quinot@adacore.com>
19151 * tree.def (PLACEHOLDER_EXPR): Fix comment.
19153 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19155 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
19156 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
19157 (loc_list_from_tree): Don't handle unsigned division. Handle
19158 signed modulo using DW_OP_{over,over,div,mul,minus}.
19159 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
19160 modulo instead of signed.
19162 2010-01-20 DJ Delorie <dj@redhat.com>
19164 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
19166 (h8300_emit_stack_adjustment): Propogate it.
19168 (h8300_expand_prologue): Likewise.
19169 (h8300_expand_epilogue): Likewise.
19171 2010-01-19 Michael Matz <matz@suse.de>
19173 PR tree-optimization/41783
19174 * tree-data-ref.c (toplevel): Include flags.h.
19175 (dump_data_dependence_relation): Also dump the inputs if the
19176 result will be unknown.
19177 (split_constant_offset_1): Look through some conversions.
19178 * tree-predcom.c (determine_roots_comp): Restart a new chain if
19179 the offset from last element is too large.
19180 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
19181 (reassociate_to_the_same_stmt): Handle vector registers.
19182 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
19183 (e.g. conversions).
19184 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
19185 wide_prolog_niters argument, emit widening instructions.
19186 (vect_do_peeling_for_alignment): Adjust caller, use widened
19187 variant of the iteration cound.
19188 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
19190 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19193 * config/arm/neon-testgen.m (emit_automatics): New parameter
19194 features. Adjust for Fixed_return_reg feature.
19195 (test_intrinsic): Call emit_automatics with new feature.
19196 * config/arm/neon.ml: Update copyright years.
19197 (features): New Fixed_return_reg feature.
19198 (ops): Update feature for Vget_low.
19200 2010-01-19 Jakub Jelinek <jakub@redhat.com>
19202 PR tree-optimization/42719
19203 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
19207 * fwprop.c (all_uses_available_at): Return false if def_set dest
19208 is a REG that is used in def_insn.
19210 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
19212 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
19214 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
19215 Add argument names.
19217 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
19219 * target.h (struct gcc_target) <secondary_reload>: Change type
19220 of last argument to secondary_reload_info *.
19222 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
19225 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
19226 memory references with unaligned offsets. Remove CQImode handling.
19227 (unaligned_memory_operand): Return 1 for memory references with
19228 unaligned offsets. Remove CQImode handling.
19230 2010-01-18 Richard Guenther <rguenther@suse.de>
19232 PR middle-end/39954
19233 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
19236 2010-01-18 Richard Guenther <rguenther@suse.de>
19238 PR tree-optimization/42781
19239 * tree-ssa-structalias.c (find_what_var_points_to): Skip
19240 restrict processing only if the original variable was artificial.
19242 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
19244 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
19245 find number of popped argument bytes.
19247 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
19248 Fix the text that describes the return value for invalid insns.
19250 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
19252 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
19253 Clarify what 'cost of the -dependence' is. Fix quoting.
19255 * toplev.c (default_get_pch_validity): Rename argument to "sz".
19256 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
19258 2010-01-17 Jakub Jelinek <jakub@redhat.com>
19260 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19261 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
19263 2010-01-17 Richard Guenther <rguenther@suse.de>
19265 PR middle-end/42248
19266 * function.c (split_complex_args): Take a VEC to modify.
19267 (assign_parms_augmented_arg_list): Build a VEC instead of
19268 a chain of PARM_DECLs.
19269 (assign_parms_unsplit_complex): Take a VEC of arguments.
19270 Do not fixup unmodified parms.
19271 (assign_parms): Deal with the VEC.
19272 (gimplify_parameters): Likewise.
19274 2010-01-17 Richard Guenther <rguenther@suse.de>
19276 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
19277 node existence check.
19278 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
19279 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
19280 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19281 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
19282 (gimple_execute_on_growing_pred): Likewise.
19284 2010-01-17 Richard Guenther <rguenther@suse.de>
19286 PR tree-optimization/42773
19287 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
19288 (compute_antic_aux): Likewise.
19289 (compute_partial_antic_aux): Likewise.
19291 2010-01-17 Jie Zhang <jie.zhang@analog.com>
19294 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
19297 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
19299 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
19302 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
19303 Fix markup for strict argument.
19305 (TARGET_SCHED_REORDER2): Fix argument types.
19307 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
19308 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
19310 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
19311 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
19313 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
19316 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
19317 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
19318 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
19319 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
19320 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
19322 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
19324 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
19326 (TARGET_ASM_RELOC_RW_MASK): Add return type.
19327 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
19329 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
19331 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
19334 (TARGET_ASM_NAMED_SECTION): Fix argument list.
19336 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19337 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
19339 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
19341 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
19343 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
19344 referring to it. Fix language.
19346 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
19348 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
19350 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
19352 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
19354 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
19355 '@var{stream}. Remove stray 'and'.
19357 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
19359 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
19361 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
19363 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
19364 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
19366 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
19367 Fix description of return value.
19368 Rename argument "sz" to "len."
19370 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
19371 Clarify meaning of 'true' return value.
19373 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
19375 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
19376 rep_mode versus mode_rep.
19378 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
19380 (TARGET_BUILTIN_DECL): Fix name.
19382 (TARGET_COMMUTATIVE_P): Fix type of first argument.
19384 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
19386 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
19388 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
19390 (TARGET_RELAXED_ORDERING): Use @deftypevr.
19392 (TARGET_GET_DRAP_RTX): Note that this is a hook.
19395 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
19396 Rename argument tm_fn to md_fn.
19398 (TARGET_OPTION_PRINT): Fix argument list.
19400 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
19403 * config/i386/i386.c (ix86_fixup_binary_operands):
19404 Revert FMA4 fixup of operands.
19406 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19409 * Makefile.in (write_entries_to_file, install-plugin):
19410 Use \012 instead of \n with tr.
19412 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
19414 * configure.ac (HAVE_AS_REF): New C macro.
19415 * configure: Regenerate.
19416 * config.in: Likewise.
19417 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
19419 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
19422 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
19424 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
19426 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
19428 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
19430 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
19432 (TARGET_IN_SMALL_DATA_P): Fix argument type.
19434 (TARGET_BINDS_LOCAL_P): Fix argument type.
19436 (TARGET_ASM_FILE_END): Use prototype.
19438 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
19440 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
19442 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
19444 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
19446 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
19447 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
19449 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
19450 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
19452 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
19453 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
19454 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
19455 (TARGET_ADDR_SPACE_CONVERT): Likewise.
19457 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
19459 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
19461 (TARGET_INIT_BUILTINS): Use prototype.
19463 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
19464 Put 'const char *' in braces. Fix parameter types.
19465 (TARGET_INVALID_CONVERSION): Fix parameter types.
19466 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
19467 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
19469 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
19472 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
19474 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
19476 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
19478 * doc/tm.texi (TARGET_HELP): Fix return type.
19480 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
19481 in braces. Fix argument types.
19483 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
19485 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
19487 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
19489 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
19490 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
19492 (TARGET_MANGLE_TYPE): Fix argument types.
19494 (TARGET_IRA_COVER_CLASSES): Use prototype.
19496 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
19498 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
19500 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
19502 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
19504 (TARGET_CALLEE_COPIES): Fix argument types.
19506 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
19508 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
19510 (TARGET_FUNCTION_VALUE): Fix argument types.
19512 (TARGET_RETURN_IN_MSB): Fix argument type.
19514 (TARGET_RETURN_IN_MEMORY): Fix argument types.
19516 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
19518 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
19520 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
19521 agree with return type.
19523 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
19525 2010-01-15 Jing Yu <jingyu@google.com>
19527 PR rtl-optimization/42691
19528 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
19529 a pseudo to a constant and are merged, and adjust comments.
19531 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
19533 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
19535 2010-01-15 Richard Guenther <rguenther@suse.de>
19537 PR middle-end/42739
19538 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
19539 labels of computed or non-local gotos to the destination.
19540 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
19541 landing pad label is the first label.
19543 2010-01-15 Richard Guenther <rguenther@suse.de>
19545 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
19547 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19550 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
19551 to allow generation of the xssqrtdp instruction on power7.
19552 (sqrtdf2_fpr): Ditto.
19554 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19556 PR middle-end/42674
19557 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
19558 functions with noreturn attribute.
19561 * varasm.c (declare_weak): Add weak attribute to decl if it
19562 doesn't have one already.
19563 (assemble_external): Only add decls to weak_decls if they also
19564 have weak attribute.
19566 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
19568 * var-tracking.c (var_reg_delete): Don't delete the association
19569 between REGs and values or one-part variables if the register
19572 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19575 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
19576 because its first operand is a non-localized variable.
19578 2010-01-14 Martin Jambor <mjambor@suse.cz>
19580 PR tree-optimization/42706
19581 * tree-sra.c (encountered_recursive_call): New variable.
19582 (encountered_unchangable_recursive_call): Likewise.
19583 (sra_initialize): Initialize both new variables.
19584 (callsite_has_enough_arguments_p): New function.
19585 (scan_function): Call decl and flags check only for IPA-SRA, check
19586 whether there is a recursive call and whether it has enough arguments.
19587 (all_callers_have_enough_arguments_p): New function.
19588 (convert_callers): Look for recursive calls only when
19589 encountered_recursive_call is set.
19590 (ipa_early_sra): Bail out either if
19591 !all_callers_have_enough_arguments_p or
19592 encountered_unchangable_recursive_call.
19594 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19596 * sel-sched.c: Add 2010 to copyright years.
19597 * sel-sched-ir.c: Likewise.
19598 * sel-sched-ir.h: Likewise.
19600 2010-01-14 Martin Jambor <mjambor@suse.cz>
19602 PR tree-optimization/42714
19603 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
19604 constructors specially.
19606 2010-01-14 Andi Kleen <ak@linux.intel.com>
19608 * config/i386/drivers-i386.c (detect_caches_intel):
19609 Add l2sizekb parameter and fill in.
19610 (host_detect_local_cpu): Add l2sizekb, fill in.
19611 Add Atom small cache heuristic.
19613 2010-01-14 Andi Kleen <ak@linux.intel.com>
19615 * config/i386/drivers-i386.c (detect_caches_cpuid4):
19616 Add level3 parameter and fill in.
19617 (detect_caches_intel): Handle level3 cache.
19619 2010-01-14 Andi Kleen <ak@linux.intel.com>
19621 * config/i386/drivers-i386.c (host_detect_local_cpu):
19622 Fix core duo detection.
19624 2010-01-14 Andi Kleen <ak@linux.intel.com>
19626 * config/i386/drivers-i386.c (host_detect_local_cpu):
19627 Fix Atom detection.
19629 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19631 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
19632 (rs6000_variable_issue_1): this. Use...
19633 (rs6000_variable_issue): here. Reimplement. Print debug info.
19635 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19637 * sel-sched-ir.c (sel_restore_other_notes): Rename to
19638 sel_restore_notes. Update all callers. Call reemit_notes
19641 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19643 PR rtl-optimization/42246
19644 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
19647 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19649 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19650 all successors is the same as number of successors in current region.
19652 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19654 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19655 to rename is not separable. Otherwise check that its LHS is not NULL.
19657 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19659 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
19661 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19663 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19664 available registers when failed to discover LHS register class.
19665 Fix indentation. Update comment.
19667 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19668 Alexander Monakov <amonakov@ispras.ru>
19670 PR rtl-optimization/42389
19671 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19673 (advance_state_on_fence): Likewise.
19674 (sel_target_adjust_priority): Print debug output only when
19675 sched_verbose >= 4, not 2.
19676 (get_expr_cost): Do not issue all unique insns on the next cycle.
19677 (fill_insns): Initialize can_issue_more from the value saved
19679 * sel-sched-ir.c (flist_add): New parameter issue_more.
19680 Init FENCE_ISSUE_MORE with it.
19681 (merge_fences): Likewise.
19682 (init_fences): Update call to flist_add.
19683 (add_to_fences, add_clean_fence_to_fences)
19684 (add_dirty_fence_to_fences): Likewise.
19685 (move_fence_to_fences): Update call to merge_fences.
19686 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19688 * sel-sched-ir.h (struct _fence): New field issue_more.
19689 (FENCE_ISSUE_MORE): New accessor macro.
19691 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19693 PR rtl-optimization/42388
19694 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19695 that have no predecessors nor successors. Do not call move_bb_info
19696 for empty blocks outside of current region.
19698 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19700 PR rtl-optimization/42294
19701 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19702 * sel-sched.c (move_exprs_to_boundary): Transitively add all
19703 originators' originators.
19705 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19707 PR rtl-optimization/39453
19708 PR rtl-optimization/42246
19709 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19711 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19713 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19714 Alexander Monakov <amonakov@ispras.ru>
19716 PR middle-end/42245
19717 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
19718 (maybe_tidy_empty_bb): ... here. Make static. Add new
19719 argument. Update all callers.
19720 (tidy_control_flow): ... and here. Recompute topological order
19721 of basic blocks in region if necessary.
19722 (sel_redirect_edge_and_branch): Change return type. Return true
19723 if topological order might have been invalidated.
19724 (purge_empty_blocks): Export and move from...
19725 * sel-sched.c (purge_empty_blocks): ... here.
19726 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19727 (maybe_tidy_empty_bb): Delete prototype.
19728 (purge_empty_blocks): Declare.
19730 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19732 PR rtl-optimization/42249
19733 * sel-sched.c (try_replace_dest_reg): When chosen register
19734 and original register is the same, do not bail out early, but
19735 still check all original insns for validity of replacing destination
19736 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19739 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19742 Port from no-undefined-overflow branch:
19743 2009-03-09 Richard Guenther <rguenther@suse.de>
19745 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19747 2010-01-14 Richard Guenther <rguenther@suse.de>
19750 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19752 2010-01-14 Ira Rosen <irar@il.ibm.com>
19754 PR tree-optimization/42709
19755 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19756 as scalar type in creation of constant vector operand.
19758 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19761 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19762 (check-parallel-%): Match `testsuite' directory component only
19765 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
19767 PR translation/39521
19768 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19771 2010-01-13 Richard Guenther <rguenther@suse.de>
19773 PR tree-optimization/42730
19774 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19777 2010-01-13 Steve Ellcey <sje@cup.hp.com>
19780 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19781 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19784 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
19786 * config/bfin/libgcc-bfin.ver: Regenerate based on current
19787 libgcc-std.ver. Add entries for ___smulsi3_highpart and
19788 ___umulsi3_highpart.
19790 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19791 rather than schedule_insns if the pass is enabled.
19793 2010-01-13 Martin Jambor <mjambor@suse.cz>
19795 PR tree-optimization/42704
19796 * tree-sra.c (sra_modify_assign): Do not delete assignments to
19799 2010-01-13 Martin Jambor <mjambor@suse.cz>
19801 PR tree-optimization/42703
19802 * tree-sra.c (analyze_access_subtree): Check that we can build a
19803 reference to the original data within the aggregate.
19805 2010-01-13 Richard Guenther <rguenther@suse.de>
19807 PR tree-optimization/42705
19808 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19810 2010-01-13 Richard Guenther <rguenther@suse.de>
19812 PR middle-end/42716
19813 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19815 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19818 * var-tracking.c (values_to_unmark): New variable.
19819 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19820 values_to_unmark vector. Moved body to...
19821 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19822 instead queue it into values_to_unmark vector.
19823 (vt_find_locations): Free values_to_unmark vector.
19825 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
19827 * config/s390/s390.c (override_options): Set
19828 default of max-pending-list-length to 256
19830 2010-01-13 Richard Guenther <rguenther@suse.de>
19833 * tree-pass.h (PROP_gimple_lcx): New.
19834 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19835 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19836 before the final cleanup_eh.
19837 (dump_properties): Dump PROP_gimple_lcx.
19838 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19839 (tree_lower_complex_O0): Remove.
19840 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19841 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
19842 tree_lower_complex, schedule TODO_update_ssa.
19843 * lto-streamer-out.c (output_function): Stream the functions
19845 * lto-streamer-in.c (input_function): Likewise.
19846 (lto_read_body): Do not override them here.
19848 2010-01-12 Joseph Myers <joseph@codesourcery.com>
19851 * c-typeck.c (build_c_cast): Fold value cast to union type before
19852 wrapping it in a CONSTRUCTOR.
19854 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19856 PR rtl-optimization/42699
19857 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19860 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19862 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19863 SUBTARGET_WARN_UNUSED_SPEC): Move ...
19864 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19865 SUBTARGET_WARN_UNUSED_SPEC): ... here
19866 * config/mips/iris5.h (LIBGCC_SPEC): Define.
19868 2010-01-12 Julian Brown <julian@codesourcery.com>
19870 * config/arm/neon-schedgen.ml (Utils): Don't try to
19871 open missing module.
19872 (find_with_result): New.
19874 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19877 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19878 sharing when canonicalizing ({lt,ge}u (plus a b) b).
19880 PR tree-optimization/42645
19881 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
19882 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19883 decl_map, set processing_debug_stmt to -1 and return name without
19886 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
19888 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19889 binutils version, and reword target configuration description.
19891 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19893 * config/avr/avr.h (LINKER_NAME): Remove.
19895 2010-01-11 Janis Johnson <janis187@us.ibm.com>
19898 * config/rs6000/rs6000.c (rs6000_override_options): On targets
19899 that support VSX, warn for -mno-altivec if vsx is not disabled,
19902 2010-01-11 Joseph Myers <joseph@codesourcery.com>
19903 Shujing Zhao <pearly.zhao@oracle.com>
19905 PR translation/42469
19906 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19907 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19908 character between option name and help text.
19909 * c.opt (imultilib): Likewise.
19911 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
19913 * lto-streamer-out.c (output_unreferenced_globals): Output static
19916 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
19918 PR rtl-optimization/42621
19919 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19920 optimizing for size.
19921 (duplicate_computed_gotos): Remove now-redundant check.
19923 2010-01-10 Steve Ellcey <sje@cup.hp.com>
19926 * configure.ac: Save and restore LDFLAGS and LIBS
19927 * configure: Regenerate.
19929 2010-01-10 Richard Guenther <rguenther@suse.de>
19931 PR middle-end/42667
19932 * builtins.c (fold_builtin_strlen): Add type argument and
19933 convert the resulting length to it.
19934 (fold_builtin_1): Adjust.
19936 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19938 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19939 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19941 (num_insns_constant_wide): Adjust for that change.
19943 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19946 * web.c (union_defs): Add used argument, to combine uses of
19947 uninitialized regs.
19948 (entry_register): Adjust type and tests of used argument.
19949 (web_main): Widen used for new use. Pass it to union_defs.
19950 * df.h (union_defs): Adjust prototype.
19952 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19955 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19956 uses in new incoming argument. Free body.
19957 (reset_debug_uses_in_loop): New.
19958 (analyze_insn_to_expand_var): Call the latter if the former found
19959 anything. Fix whitespace. Reject invalid dest overlaps before
19960 going through all insns in the loop.
19962 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19965 * haifa-sched.c (dying_use_p): Debug insns don't count.
19967 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19969 PR middle-end/42363
19970 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19971 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19972 (verify_gimple_call): Reject LHS in noreturn calls.
19974 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19978 * tree-vect-loop-manip.c (adjust_info): New type.
19979 (adjust_vec): New pointer to vector.
19980 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19981 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19982 (slpeel_update_phis_for_duplicate_loop): Use them.
19983 (slpeel_update_phi_nodes_for_guard1): Likewise.
19984 (slpeel_update_phi_nodes_for_guard2): Likewise.
19985 (slpeel_tree_peel_loop_to_edge): Likewise.
19986 (vect_update_ivs_after_vectorizer): Likewise.
19988 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19990 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19991 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19993 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19995 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19996 bogus uninitialized warning.
19998 2010-01-09 Richard Guenther <rguenther@suse.de>
20000 PR middle-end/42512
20001 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
20002 the evolution is compatible with the initial condition.
20004 2010-01-09 Jakub Jelinek <jakub@redhat.com>
20006 * gcc.c (process_command): Update copyright notice dates.
20007 * gcov.c (print_version): Likewise.
20008 * gcov-dump.c (print_version): Likewise.
20009 * mips-tfile.c (main): Likewise.
20010 * mips-tdump.c (main): Likewise.
20012 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
20015 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
20017 (rotlhi3_8): Delete.
20019 (rotlsi3_8): Delete.
20020 (rotlsi3_16): Delete.
20021 (rotlsi3_24): Delete.
20022 (rotl<mode>3): New.
20023 (*rotw<mode>3): New.
20024 (*rotb<mode>3): New.
20025 * config/avr/avr.c (avr_rotate_bytes): New function.
20026 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
20028 2010-01-08 Steve Ellcey <sje@cup.hp.com>
20031 * configure.ac: Modify -rdynamic check.
20032 * configure: Regenerate.
20034 2010-01-08 DJ Delorie <dj@redhat.com>
20036 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
20037 register popping order.
20039 2010-01-08 Richard Guenther <rguenther@suse.de>
20042 * c.opt (fsigned-char): Also let LTO handle this option.
20043 (funsigned-char): Likewise.
20045 2010-01-07 Richard Guenther <rguenther@suse.de>
20047 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
20048 (gimple_op): Likewise.
20049 (gimple_op_ptr): Likewise.
20050 (gimple_assign_set_lhs): Remove gcc_assert.
20051 (gimple_assign_set_rhs1): Likewise.
20052 (gimple_assign_set_rhs2): Likewise.
20053 (gimple_call_set_lhs): Likewise.
20054 (gimple_call_set_fn): Likewise.
20055 (gimple_call_set_fndecl): Likewise.
20056 (gimple_call_fndecl): Likewise.
20057 (gimple_call_return_type): Likewise.
20058 (gimple_call_set_chain): Likewise.
20059 (gimple_call_num_args): Likewise.
20060 (gimple_call_set_arg): Likewise.
20061 (gimple_cond_set_code): Likewise.
20062 (gimple_cond_set_lhs): Likewise.
20063 (gimple_cond_set_rhs): Likewise.
20064 (gimple_cond_set_true_label): Likewise.
20065 (gimple_cond_set_false_label): Likewise.
20066 (gimple_label_set_label): Likewise.
20067 (gimple_goto_set_dest): Likewise.
20068 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
20069 (gimple_debug_bind_get_value): Likewise.
20070 (gimple_debug_bind_get_value_ptr): Likewise.
20071 (gimple_debug_bind_set_var): Likewise.
20072 (gimple_debug_bind_set_value): Likewise.
20073 (gimple_debug_bind_reset_value): Likewise.
20074 (gimple_debug_bind_has_value_p): Likewise.
20075 (gimple_return_retval_ptr): Remove gcc_assert.
20076 (gimple_return_retval): Likewise.
20077 (gimple_return_set_retval): Likewise.
20078 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
20079 (safe_referenced_var_iterator): Remove.
20080 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
20081 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
20082 (fill_referenced_var_vec): Remove.
20083 (first_readonly_imm_use): Remove redundant gcc_assert.
20084 (phi_arg_index_from_use): Combine gcc_asserts.
20085 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
20086 (first_imm_use_stmt): Remove redundant gcc_assert.
20087 * tree-cfg.c (verify_gimple_call): Verify function and chain
20088 operands. Verify arguments.
20089 (verify_types_in_gimple_stmt): Verify condition code and labels.
20091 2010-01-07 Richard Guenther <rguenther@suse.de>
20093 PR tree-optimization/42641
20094 * sese.c (rename_map_elt_info): Use the SSA name version, do
20097 2010-01-07 Jakub Jelinek <jakub@redhat.com>
20099 PR tree-optimization/42625
20100 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
20101 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
20103 2010-01-07 Duncan Sands <baldrick@free.fr>
20105 * Makefile.in (PLUGIN_HEADERS): Add version.h.
20107 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
20110 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
20111 note itself is not function_invariant_p.
20113 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
20115 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
20116 Do not add the DF_NOTE problem.
20117 * store-motion.c (execute_rtl_store_motion): Likewise.
20119 2010-01-07 Martin Jambor <mjambor@suse.cz>
20121 PR tree-optimization/42157
20122 * tree-sra.c (compare_access_positions): Stabilize sort if both
20123 accesses have integer types, return zero immediately if they are the
20126 2010-01-06 Richard Henderson <rth@redhat.com>
20128 PR middle-end/41883
20129 * haifa-sched.c (add_to_note_list): Merge into ...
20130 (concat_note_lists): ... here, and ...
20131 (unlink_other_notes, rm_other_notes): Merge into...
20132 (remove_notes): ... here. Create REG_SAVE_NOTEs for
20133 NOTE_INSN_EPILOGUE_BEG.
20135 2010-01-06 Richard Guenther <rguenther@suse.de>
20137 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
20138 not inline regular functions into always-inline functions.
20140 2010-01-06 Nick Clifton <nickc@redhat.com>
20142 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
20143 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
20145 (OVERRIDE_OPTIONS): Delete.
20146 (OPTIMIZATION_OPTIONS): Define.
20147 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
20148 * config/rx/rx.c (rx_handle_option): Issue an error message if
20149 -mcpu=rx200 and -fpu are used together.
20150 (rx_set_optimization_options): New function. Issue an error
20151 message if an optimization attribute attempts to reset the FPU/
20152 math optimization pairing.
20153 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
20154 * config/rx/rx.opt: Set the default to 32-bit doubles.
20155 * config/rx/t-rx: Add multilibs for -nofpu option.
20156 * doc/invoke.texi: Update documentation of RX options.
20158 2010-01-06 Richard Guenther <rguenther@suse.de>
20160 * tree-ssa-pre.c (name_to_id): New global.
20161 (alloc_expression_id): Simplify SSA name handling.
20162 (lookup_expression_id): Likewise.
20163 (init_pre): Zero name_to_id.
20164 (fini_pre): Free it.
20166 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
20168 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
20170 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
20173 * config/i386/sse.md (smaxv2di3): New.
20174 (umaxv2di3): Likewise.
20175 (sminv2di3): Likewise.
20176 (uminv2di3): Likewise.
20178 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
20181 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
20182 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
20183 (legitimize_tls_address): Likewise.
20184 (sparc_tls_referenced_p): Likewise.
20185 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
20186 and adjust calls to legitimize_pic_address.
20187 (legitimate_constant_p) Use sparc_tls_referenced_p.
20188 (legitimate_pic_operand_p): Likewise.
20189 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
20190 (sparc_tls_symbol_ref_1): Delete.
20191 (sparc_tls_referenced_p): Make static, recognize specific patterns.
20192 (legitimize_tls_address): Make static, handle CONST patterns.
20193 (legitimize_pic_address): Make static, remove unused parameter and
20194 adjust recursive calls.
20195 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
20196 and adjust call to legitimize_pic_address.
20197 (sparc_output_mi_thunk): Likewise.
20199 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
20200 H.J. Lu <hongjiu.lu@intel.com>
20203 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
20204 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
20205 operands to make them signed.
20208 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20211 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20212 GTU to GT for V4SI and V2DI.
20214 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20215 (umin<mode>3): Removed.
20217 (uminv4si3): Likewise.
20219 2010-01-05 Martin Jambor <mjambor@suse.cz>
20221 PR tree-optimization/42462
20222 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
20223 current_function_decl to helper functions and macros.
20225 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20228 * flags.h: Don't include real.h.
20229 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
20230 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
20231 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
20232 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
20233 * dominance.c: Update copyright.
20234 * gimple.c (walk_gimple_op): Remove inline.
20235 * tree-ssa-reassoc.c: Include real.h.
20236 * Makefile.in (FLAGS_H): Remove $(REAL_H).
20237 (tree-ssa-reassoc.o): Depend on $(REAL_H).
20239 2010-01-05 Nick Clifton <nickc@redhat.com>
20241 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
20242 register to push into the stack frame when the accumulator has to
20243 be saved during interrupts.
20245 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
20247 * doc/invoke.texi: Remove the documentation about option
20248 -Wunreachable-code.
20249 * common.opt (Wunreachable-code): Preserved for backward
20251 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
20252 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
20253 the backward compatibility flag section.
20255 2010-01-05 Richard Guenther <rguenther@suse.de>
20257 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
20259 2010-01-05 Jakub Jelinek <jakub@redhat.com>
20262 * cfgexpand.c (expand_one_var): Diagnose too large variables.
20264 PR tree-optimization/42508
20265 * tree-sra.c (convert_callers): Check for recursive call
20266 by comparing cgraph nodes instead of decls.
20267 (modify_function): Call ipa_modify_formal_parameters also
20268 on all same_body aliases.
20270 * cgraphunit.c (cgraph_materialize_all_clones): Compare
20271 cgraph nodes when checking for same_body aliases.
20273 2010-01-05 Richard Guenther <rguenther@suse.de>
20275 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
20276 allocation and lookup.
20277 (get_or_alloc_expr_for_constant): Likewise.
20278 (phi_translate): Sink allocation.
20280 2010-01-04 Richard Guenther <rguenther@suse.de>
20282 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
20283 a new entry only if needed.
20284 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
20285 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
20287 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
20289 (phi_translate): Handle CONSTANTs early.
20291 2010-01-04 Martin Jambor <mjambor@suse.cz>
20293 PR tree-optimization/42398
20294 * tree-sra.c (struct access): Removed flag grp_different_types.
20295 (dump_access): Do not dump the removed flag.
20296 (sort_and_splice_var_accesses): Do not set the removed flag.
20297 (sra_modify_expr): Check for type compatibility directly.
20299 2010-01-04 Martin Jambor <mjambor@suse.cz>
20301 PR tree-optimization/42366
20302 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
20303 edges with variable number of parameters.
20304 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
20305 flag instead of asserting it.
20306 (ipa_read_node_info): Read uses_analysis_done flag.
20308 2010-01-04 Richard Guenther <rguenther@suse.de>
20310 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
20311 iterative_hash_* as intended.
20312 (vn_reference_compute_hash): Likewise. Simplify hashing
20314 (vn_reference_lookup_2): Likewise.
20315 (vn_nary_op_compute_hash): Likewise.
20316 (vn_phi_compute_hash): Likewise.
20317 (expressions_equal_p): Remove strange code.
20318 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
20319 (pre_expr_hash): Likewise. Simplify hashing SSA names.
20320 (bitmap_insert_into_set_1): Take value-id as parameter.
20321 (add_to_value): Pass it.
20322 (bitmap_insert_into_set): Likewise.
20323 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
20325 2010-01-04 Jakub Jelinek <jakub@redhat.com>
20328 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
20329 (do_self_spec): For switches with SWITCH_IGNORE set set also
20330 SWITCH_IGNORE_PERMANENTLY.
20331 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
20334 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
20336 * lto-streamer-out.c (output_unreferenced_globals): Output the full
20337 tree of an unreferenced global var.
20339 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20342 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20343 GTU to GT for V4SI and V2DI.
20345 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20346 (umin<mode>3): Removed.
20348 (uminv4si3): Likewise.
20350 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20353 * collect2.c (main): Turn on trace in collect2 if -v is passed
20356 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
20358 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
20359 description of expression operand.
20361 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
20363 * configure.ac: Add install-html to target_list for Make-hooks.
20364 * configure: Regenerate.
20365 * fortran/Make-lang.in (F95_HTMLFILES): New.
20366 (fortran.html): Use it.
20367 (fortran.install-html): New.
20368 * Makefile.in (install-html): Add lang.install-html.
20369 * java/Make-lang.in (JAVA_HTMLFILES): New.
20370 (java.html): Use it.
20371 (java.install-html): New.
20372 * objc/Make-lang.in (objc.install-html): New.
20373 * objcp/Make-lang.in (obj-c++.install-html): New.
20374 * cp/Make-lang.in (c++.install-html): New.
20375 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
20376 * lto/Make-lang.in (lto.install-html): New.
20378 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20381 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
20383 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
20385 PR rtl-optimization/41862
20386 * store-motion.c (store_killed_in_insn, compute_store_table,
20387 remove_reachable_equiv_notes, replace_store_insn,
20388 build_store_vectors): Ignore all DEBUG_INSNs.
20390 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20393 * common.opt: Add dumpdir.
20395 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
20397 (option_map): Add --dumpdir.
20399 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
20401 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
20403 * opts.c (decode_options): Try dump_dir_name first if
20404 dump_base_name isn't an absolute path.
20405 (common_handle_option): Handle OPT_dumpdir.
20407 * toplev.c (dump_dir_name): New.
20408 (print_switch_values): Also ignore -dumpdir.
20410 * toplev.h (dump_dir_name): New.
20412 2010-01-03 Richard Guenther <rguenther@suse.de>
20414 PR tree-optimization/42589
20415 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
20416 double-word expansion of bswap32.
20418 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
20420 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
20421 with BLOCK_FOR_INSN.
20422 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
20423 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
20424 noce_process_if_block): Likewise.
20425 * gcse.c (compute_local_properties, insert_expr_in_table,
20426 insert_set_in_table, canon_list_insert, find_avail_set,
20427 pre_insert_copy_insn): Likewise.
20429 * basic-block.h (BLOCK_NUM): Move from here...
20430 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
20432 2010-01-03 Richard Guenther <rguenther@suse.de>
20434 PR tree-optimization/42438
20435 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
20436 contains_may_not_return_call flag.
20437 (BB_MAY_NOTRETURN): New.
20438 (valid_in_sets): Trapping nary operations are not valid
20439 in blocks that may not return.
20440 (insert_into_preds_of_block): Remove check for trapping expressions.
20441 (compute_avail): Compute also BB_MAY_NOTRETURN.
20443 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
20445 * doc/invoke.texi: Add 2010 to copyright years.
20447 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
20449 * config/sparc/sparc.c: Fix formatting nits.
20451 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
20452 Alexander Monakov <amonakov@ispras.ru>
20454 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
20456 2010-01-02 Richard Guenther <rguenther@suse.de>
20458 PR middle-end/42577
20459 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
20460 (simplify_switch_using_ranges): Mark to be removed edges
20463 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20465 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20467 * collect2.c (scan_libraries): Add missing argument in call to
20470 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
20473 * config/alpha/predicates.md (aligned_memory_operand): Return false
20475 (unaligned_memory_operand): Return true for CQImode.
20476 * config/alpha/alpha.c (get_aligned_mem): Assert that location
20477 doesn not cross aligned SImode word boundary.
20479 2010-01-02 Anatoly Sokolov <aesok@post.ru>
20481 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
20483 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
20484 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
20486 2010-01-02 Richard Guenther <rguenther@suse.de>
20489 * toplev.c (compile_file): Emit LTO marker properly. Change
20490 it to __gnu_lto_v1.
20491 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
20493 2010-01-01 Richard Guenther <rguenther@suse.de>
20496 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
20498 2010-01-01 Richard Guenther <rguenther@suse.de>
20501 * c-decl.c (grokdeclarator): For zero-size arrays force
20502 structural equality checks as layout_type does.
20504 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
20506 * builtins.c: Update copyright to 2010.
20508 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
20511 * lto-streamer-out.c (produce_asm): Revert the last change.
20512 (copy_function): Likewise.
20514 * lto-streamer.c (lto_get_section_name): Skip any leading
20517 2010-01-01 Richard Guenther <rguenther@suse.de>
20519 PR middle-end/42559
20520 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
20524 Copyright (C) 2010 Free Software Foundation, Inc.
20526 Copying and distribution of this file, with or without modification,
20527 are permitted in any medium without royalty provided the copyright
20528 notice and this notice are preserved.