1 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
4 than 2 predecessors or more than 2 successors.
6 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9 of loops in which the data dependence analysis fails.
11 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
13 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
15 (tree_if_conversion): Same.
17 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
19 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
21 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23 * tree-if-conv.c: Update copyright years. Fix comments.
26 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
28 * builtin-types.def (BT_INT128): New primitive type.
29 (BT_UINT128): Likewise.
30 * c-common.c (c_common_r): Add __int128 keyword.
31 (c_common_type_for_size): Handle __int128.
32 (c_common_type_for_mode): Likewise.
33 (c_common_signed_or_unsigned_type): Likewise.
34 (c_common_nodes_and_builtins): Add builtin type
35 if target supports 128-bit integer scalar.
36 * c-common.h (enum rid): Add RID_INT128.
37 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
38 if target supports 128-bit integer scalar.
39 * c-decl.c (declspecs_add_type): Handle new keyword
41 (finish_declspecs): Likewise.
42 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
43 (c_token_starts_declspecs): Likewise.
44 (c_parser_declspecs): Likewise.
45 (c_parser_attributes): Likewise.
46 (c_parser_objc_selector): Likewise.
47 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
48 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
49 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
50 * tree.c (make_or_reuse_type): Likewise.
51 (make_unsigned_type): Likewise.
52 (build_common_tree_nodes_2): Likewise.
53 * tree.h (enum integer_type_kind): Add itk_int128 and
55 (int128_integer_type_node): New define..
56 (int128_unsigned_type_node): New define.
57 * cp/cp-tree.h (cp_decl_specifier_seq): Add new bifield
59 * cp/decl.c (grokdeclarator): Handle __int128.
60 * cp/parser.c (cp_lexer_next_token_is_decl_specifier_ke): Likewise.
61 (cp_parser_simple_type_specifier): Likewise.
62 * cp/rtti.c (emit_support_tinfos): Add int128 nodes for rtti.
63 * cp/typeck.c (cp_common_type): Handle __int128.
64 * cp/mangle.c (integer_type_codes): Add itk_int128 and
66 * doc/extend.texi: Add documentation about __int128 type.
68 2010-05-26 Richard Guenther <rguenther@suse.de>
70 * tree-ssa-sccvn.c (copy_nary): Adjust.
71 (copy_phis): Rename to ...
72 (copy_phi): ... this. Adjust.
73 (copy_references): Rename to ...
74 (copy_reference): ... this. Adjust.
75 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
76 result into the valid table.
78 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
80 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
81 insn-config.h, insn-codes.h, recog.h, and optabs.h.
83 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
85 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic):
88 2010-05-26 Richard Guenther <rguenther@suse.de>
90 * opts.c (common_handle_option): Handle OPT_Ofast.
92 2010-05-26 Joseph Myers <joseph@codesourcery.com>
94 * diagnostic.c: Don't include opts.h.
95 (permissive_error_option): Define.
96 (diagnostic_initialize): Take n_opts parameter. Allocate memory
97 for classify_diagnostic. Don't use memset for
98 classify_diagnostic. Initialize new and recently added fields.
99 (diagnostic_classify_diagnostic): Use context->n_opts instead of
101 (diagnostic_report_diagnostic): Pass context parameter to
102 diagnostic_report_warnings_p. Use option_enabled and option_name
104 (emit_diagnostic): Use permissive_error_option.
105 (permerror): Likewise.
106 * diagnostic.h: Don't include options.h.
107 (struct diagnostic_context): Add n_opts, opt_permissive,
108 inhibit_warnings, warn_system_headers, option_enabled and
109 option_name fields. Change classify_diagnostic to a pointer.
110 * opts-diagnostic.h: New file.
111 * opts.c: Include opts-diagnostic.h.
112 (common_handle_option): Set global_dc fields for -Wfatal-errors,
113 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
114 (option_name): New function.
115 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
116 (c_common_handle_option): Set global_dc->permissive for
118 * c-common.c (c_cpp_error): Save and restore
119 global_dc->warn_system_headers, not variable warn_system_headers.
120 * toplev.c: Include opts-diagnostic.h.
121 (general_init): Update call to diagnostic_initialize. Set
122 global_dc->show_column, global_dc->option_enabled and
123 global_dc->option_name.
124 (process_options): Don't set global_dc fields here.
125 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
126 (diagnostic.o, opts.o, toplev.o): Update dependencies.
128 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
130 * config/picochip/picochip.md (movsi): Split a movsi from a
133 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
135 * ggc-zone.c: Update copyright year.
136 (poison_region): Mark memory for Valgrind as undefined before
137 memset () call and inaccessible afterwards.
138 (ggc_pch_total_size): Change type of i to int.
140 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
142 * ggc-common.c (ggc_free_overhead): Allow empty slot.
144 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
146 * ggc-common.c: Update copyright year.
147 (ggc_rlimit_bound): Remove prototype. Compile only if
148 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
149 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
150 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
151 (ggc_min_heapsize_heuristic): Likewise.
153 2010-05-26 Richard Guenther <rguenther@suse.de>
155 PR rtl-optimization/44164
156 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
157 no-common access-path disambiguation.
158 (indirect_ref_may_alias_decl_p): Adjust.
159 (indirect_refs_may_alias_p): Likewise.
160 (refs_may_alias_p_1): Likewise.
162 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
164 * c-typeck.c: Do not include expr.h.
166 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
168 * rtl.h (decl_default_tls_model): Move prototype from here...
169 * output.h: ...to here.
170 * c-decl.c: Do not include rtl.h.
171 * c-pragma.c: Likewise.
172 * c-parser.c: Likewise.
173 * c-gimplify.c: Likewise. And also not hard-reg-set.
174 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
175 FIXME note for it. Add a FIXME note for expr.h.
176 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
177 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
180 2010-05-26 Jakub Jelinek <jakub@redhat.com>
183 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
184 or total_size is larger than red zone size for non-V4 ABI, emit a
185 stack_tie resp. frame_tie insn before stack pointer restore.
186 * config/rs6000/rs6000.md (frame_tie): New insn.
188 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
190 * function.h (struct function): Add can_throw_non_call_exceptions bit.
191 * lto-streamer-in.c (input_function): Stream it in.
192 * lto-streamer-out.c (output_function): Stream it out.
193 * function.c (allocate_struct_function): Set it.
194 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
195 for flag_non_call_exceptions.
196 * cfgbuild.c (control_flow_insn_p): Likewise.
197 (make_edges): Likewise.
198 * cfgexpand.c (expand_stack_alignment): Likewise.
199 * combine.c (distribute_notes): Likewise.
200 * cse.c (cse_extended_basic_block): Likewise.
201 * except.c (insn_could_throw_p): Likewise.
202 * gcse.c (simple_mem): Likewise.
203 * ipa-pure-const.c (check_call): Likewise.
204 (check_stmt ): Likewise.
205 * lower-subreg.c (lower-subreg.c): Likewise.
206 * optabs.c (emit_libcall_block): Likewise.
207 (prepare_cmp_insn): Likewise.
208 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
209 * postreload.c (rest_of_handle_postreload): Likewise.
210 * reload1.c (reload_as_needed): Likewise.
211 (emit_input_reload_insns): Likewise.
212 (emit_output_reload_insns): Likewise.
213 (fixup_abnormal_edges): Likewise.
214 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
215 * store-motion.c (find_moveable_store): Likewise.
216 * tree-eh.c (stmt_could_throw_p): Likewise.
217 (tree_could_throw_p): Likewise.
218 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
219 * config/arm/arm.c (arm_expand_prologue): Likewise.
220 (thumb1_expand_prologue): Likewise.
221 * config/rx/rx.md (cbranchsf4): Likewise.
223 * config/s390/s390.c (s390_emit_prologue): Likewise.
224 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
225 (inline_forbidden_into_p): New predicate.
226 (expand_call_inline): Use it to forbid inlining.
227 (tree_can_inline_p): Likewise.
229 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
231 * config/i386/i386-c.c: Do not include rtl.h.
232 * config/i386/t-i386: Update dependencies.
234 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
236 * attribs.c: Do not include rtl.h.
237 * Makefile.in: Update dependencies.
239 2010-05-25 Anatoly Sokolov <aesok@post.ru>
241 * double-int.h (double_int_and): New.
242 * combine.c (try_combine): Clean up, use double_int_* and
243 immed_double_int_const functions.
245 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
247 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
248 stderr to /dev/null instead of grep -q.
249 * configure: Regenerate.
251 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
253 * Makefile.in (EXCEPT_H): Fix typo.
255 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
257 * ira-build.c (update_conflict_hard_reg_costs): New.
258 (ira_build): Call update_conflict_hard_reg_costs.
260 2010-05-25 Jakub Jelinek <jakub@redhat.com>
263 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
265 (intersect_loc_chains): Walk the s2var's loc_chain together
266 with s1node chain as long as the locations are equal, don't
267 call find_loc_in_1pdv in that case.
270 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
271 (copy_bind_expr): ... instead of here.
272 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
273 if the block hasn't been remapped.
274 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
275 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
277 2010-05-25 Richard Guenther <rguenther@suse.de>
280 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
281 out-of-bounds array accesses.
283 2010-05-25 Richard Guenther <rguenther@suse.de>
285 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
286 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
287 (run_gcc): Re-organize to make cleanup easier.
289 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
291 * config/s390/s390.c (optimization_options): Fix and move the
292 flag_prefetch_loop_arrays override ...
293 (override_options): ... here.
295 2010-05-25 Joseph Myers <joseph@codesourcery.com>
297 * diagnostic.c: Don't include plugin.h.
298 (diagnostic_report_diagnostic): Don't handle plugins specially
299 here. Pass context to internal_error callback.
300 * diagnostic.h (struct diagnostic_context): Add context parameter
301 to internal_error callback.
302 * plugin.c (warn_if_plugins, plugins_internal_error_function):
304 * plugin.h (struct diagnostic_context): Declare.
305 (warn_if_plugins, plugins_internal_error_function): Declare.
306 * toplev.c (general_init): Set global_dc->internal_error.
307 * Makefile.in (diagnostic.o): Update dependencies.
309 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
311 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
312 * config/rs6000/t-darwin64: New.
313 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
316 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
319 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
320 match the original (and intended) behaviour before r159557. This
321 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
324 2010-05-25 Richard Guenther <rguenther@suse.de>
326 * doc/invoke.texi: Document -Ofast.
327 * target.h (struct gcc_target): Add handle_ofast.
328 * target-def.h (TARGET_HANDLE_OFAST): Add.
329 (TARGET_INITIALIZER): Adjust.
330 * opts.c (decode_options): Handle -Ofast. Enable
332 * common.opt (Ofast): Add.
334 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
336 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
337 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
339 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
342 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
343 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
344 false_rtx. Use false_rtx to compute the correct *ptest for reversed
345 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
347 2010-05-25 Jakub Jelinek <jakub@redhat.com>
349 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
350 DW_OP_minus with negated offset instead of DW_OP_plus.
351 (loc_list_from_tree): Don't test whether second operand is
354 2010-05-25 Wei Guozhi <carrot@google.com>
356 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
357 tst instruction and a new alternative.
358 * config/arm/constraints.md (Pu): New constraint.
360 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
362 * function.c (assign_stack_local_1): Initialize variable
363 to avoid warning when bootstrapping at -O3.
365 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
367 * configure.ac (all_lang_makefiles): Remove everything related to it.
368 * configure: Regenerate.
369 * Makefile.in: Fix reference to ada Make-lang.in.
370 Remove support for LANG_MAKEFILES.
372 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
373 Sandra Loosemore <sandra@codesourcery.com>
375 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
376 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
377 description. Add arm_neon_fp16_ok.
378 (Add Options): Add arm_neon and arm_neon_fp16.
380 2010-05-24 Joseph Myers <joseph@codesourcery.com>
382 * diagnostic.c: Don't include flags.h.
383 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
384 context parameters. Check flags in the context passed as a
386 (diagnostic_build_prefix): Add context parameter. Check
387 show_column flag in context.
388 (diagnostic_action_after_output): Check fatal_errors flag in
390 (diagnostic_report_current_module): Check show_column flag in
392 (default_diagnostic_starter): Update call to
393 diagnostic_build_prefix.
394 (diagnostic_report_diagnostic): Pass context to
395 pedantic_warning_kind.
396 (emit_diagnostic): Pass context to permissive_error_kind.
397 (permerror): Pass context to permissive_error_kind.
398 * diagnostic.h (struct diagnostic_context): Add show_column,
399 pedantic_errors, permissive and fatal_errors fields.
400 (diagnostic_build_prefix): Update prototype.
402 * toplev.c (process_options): Set flags in global_dc from
403 flag_show_column, flag_pedantic_errors, flag_permissive,
405 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
406 to diagnostic_build_prefix.
407 * Makefile.in (diagnostic.o): Update dependencies.
409 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
411 * config/i386/ia32intrin.h (__crc32q): Define only if
412 __SSE4_2__ is defined.
414 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
418 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
419 DECL_VISIBILITY_SPECIFIED.
420 (emutls_decl): Set DECL_PRESERVE_P and copy
421 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
422 (emutls_finalize_control_var): New callback.
423 (emutls_finish): Finalize emutls control variables.
424 * toplev.c (compile_file): Move the call to emutls_finish ()
425 before varpool_assemble_pending_decls ().
427 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
429 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
430 added to the preprocessor condition.
432 2010-05-24 Paul Brook <paul@codesourcery.com>
434 * gengtype-lex.l: Add HARD_REG_SET.
435 * expr.c (expand_expr_real_1): Record writes to hard registers.
436 * function.c (rtl_data): Add asm_clobbers.
437 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
438 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
439 Use crtl->asm_clobbers.
441 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
443 * doc/makefile.texi (Makefile): Mention stages 'profile'
444 and 'feedback' for profiledbootstrap.
446 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
449 * config/i386/i386.c (def_builtin): Properly check
450 OPTION_MASK_ISA_64BIT.
452 2010-05-23 Joseph Myers <joseph@codesourcery.com>
454 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
455 typedefs with different but compatible types. Allow duplicate
456 typedefs with the same type except for pedantic non-C1X, but give
457 warning for variably modified types.
458 * c-typeck.c (tagged_types_tu_compatible_p,
459 function_types_compatible_p, type_lists_compatible_p,
460 comptypes_internal): Add parameter different_types_p; set
461 *different_types_p for different but compatible types. All
463 (comptypes_check_different_types): New.
464 * c-tree.h (comptypes_check_different_types): Declare.
466 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
468 * regs.h: Do not include obstack.h, basic-block.h.
470 * jump.c: Include basic-block.h.
471 * profile.c: Likewise.
472 * tree-profile.c: Likewise.
473 * coverage.c: Likewise.
474 * basic-block.h (optimize_function_for_size_p): Move to function.h.
475 (optimize_function_for_speed_p): Likewise.
476 * function.h (optimize_function_for_size_p,
477 optimize_function_for_speed_p): Moved here from basic-block.h.
478 * Makefile.in: Update dependencies.
480 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
482 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
483 before calling make; allow override through $MAKE.
484 * doc/invoke.texi (Optimize Options): Document override.
486 2010-05-23 Anatoly Sokolov <aesok@post.ru>
488 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
489 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
490 (rs6000_mode_dependent_address_ptr): Make static.
491 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
492 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
495 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
498 * config/i386/i386.c: Make sure that the correct regparm is passed.
500 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
502 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
503 * sbitmap.c: ...to here to internalize sbitmap element access.
504 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
505 Explain why basic-block.h is included.
506 * function.h: Include tm.h for CUMULATIVE_ARGS.
507 * Makefile.in: Update dependencies.
509 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
511 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
513 * sbitmap.h (struct sbitmap_def): Do not typedef here.
514 * sbitmap.c: Include sbitmap.h.
515 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
516 hard-reg-set.h. Split everything related to regsets out from here...
517 * regset.h: ...to here. New file.
518 * df.h: Include regset.h and sbitmap.h.
519 * tree-flow.h: Likewise.
520 * cfgloop.h: Likewise.
521 * except.h: Do not include sbitmap.h. Include hashtab.h.
522 * cgraph.h: Include vec.h and function.h.
523 * reload.h (struct insn_chain): Change types of live_throughout
524 and dead_or_set from regset_head to bitmap_head.
525 (compute_use_by_pseudos): Be defined also if regset.h is not included.
526 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
527 spilled_regs from regset_head to bitmap_head to avoid dependency
529 * sel-sched-ir.h: Include regset.h.
530 * reload.c: Include df.h before reload.h.
531 * caller-save.c: Likewise.
532 * reload1.c: Likewise.
534 (mark_elimination): Update type of r to bitmap, consistent with
536 * dominance.c: Include bitmap.h.
537 * modulo-sched.c: Include df.h.
538 * cfganal.c: Include bitmap.h and sbitmap.h.
539 * cfgbuild.c: Include sbitmap.h.
540 * lcm.c: Include sbitmap.h.
541 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
542 * domwalk.c: Include sbitmap.h, exclude ggc.h.
543 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
544 * cselib.c: Include bitmap.h.
545 * tree-optimize.c: Include regset.h.
546 * stmt.c: Include bitmap.h.
547 * Makefile.in: Update dependencies.
549 2010-05-22 Jan Hubicka <jh@suse.cz>
551 * cgraph.h (struct varpool_node): Add same_comdat_group.
552 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
554 (output_varpool): Update call of lto_output_varpool_node.
555 (input_varpool): Read same_comdat_group pointer.
556 (input_varpool_1): Fixup same_comdat_group pointer.
557 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
558 group is needed, all are.
559 * varpool.c (varpool_remove_node): Remove node from same comdat group
561 (varpool_analyze_pending_decls): Walk same comdat groups.
563 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
565 * rtl.h (union rtunion_def): Remove rt_bit member.
566 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
567 * print-rtl (print_rtx): Do not print the member.
568 * gengtype.c (adjust_field_rtx_def): Do not handle it.
569 * gengenrtl.c (type_from_format): Likewise.
570 (accessor_from_format): Likewise.
572 2010-05-22 Joseph Myers <joseph@codesourcery.com>
574 * dbgcnt.c: Include toplev.h instead of errors.h.
575 * ira-emit.c: Don't include errors.h.
576 * ira.c: Include toplev.h instead of errors.h.
577 * lto-compress.c: Include toplev.h instead of errors.h.
578 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
579 ira.o, dbgcnt.o): Update dependencies.
581 2010-05-22 Richard Guenther <rguenther@suse.de>
583 * gimple.c (gimple_types_compatible_p): Check type qualifications
584 before merging pointer to complete and pointer to incomplete type.
585 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
586 we use our own resolution algorithm. The gold linker plugin
587 doesn't do the job we want it to do here.
589 2010-05-22 Anatoly Sokolov <aesok@post.ru>
591 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
592 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
593 (sparc_mode_dependent_address_p): New function.
595 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
597 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
599 * timevar.c: Do not include any core headers.
600 (timevar_print): De-i18n-ize.
601 (print_time): Likewise.
602 * timevar.h (timevar_push, timevar_pop): Make inline functions.
604 2010-05-21 Joseph Myers <joseph@codesourcery.com>
606 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
608 (diagnostic_initialize): Initialize x_data not last_function.
609 (diagnostic_report_current_function): Move to tree-diagnostic.c.
610 (default_diagnostic_starter): Call
611 diagnostic_report_current_module not
612 diagnostic_report_current_function.
613 (diagnostic_report_diagnostic): Initialize x_data not
615 (verbatim): Likewise.
616 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
618 (struct diagnostic_context): Change last_function to x_data.
619 (diagnostic_auxiliary_data): Replace with
620 diagnostic_context_auxiliary_data and
621 diagnostic_info_auxiliary_data.
622 (diagnostic_last_function_changed, diagnostic_set_last_function,
623 diagnostic_report_current_function): Move to tree-diagnostic.h.
624 (print_declaration, dump_generic_node, print_generic_stmt,
625 print_generic_stmt_indented, print_generic_expr,
626 print_generic_decl, debug_c_tree, dump_omp_clauses,
627 print_call_name, debug_generic_expr, debug_generic_stmt,
628 debug_tree_chain, default_tree_printer): Move to
630 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
631 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
632 gimple-pretty-print.h.
633 * pretty-print.c: Don't include tree.h
634 (pp_base_format): Don't handle %K here.
635 (pp_base_tree_identifier): Move to tree-pretty-print.c.
636 * pretty-print.h (text_info): Change abstract_origin to x_data.
637 (pp_tree_identifier, pp_unsupported_tree,
638 pp_base_tree_identifier): Move to tree-pretty-print.h.
639 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
640 tree-pretty-print.h: New files.
641 * tree-pretty-print.c: Include tree-pretty-print.h.
642 (percent_K_format): New. Moved from pretty-print.c.
643 (pp_base_tree_identifier): Move from pretty-print.c.
644 * c-objc-common.c: Include tree-pretty-print.h.
645 (c_tree_printer): Handle %K here.
646 * langhooks.c: Include tree-diagnostic.h.
647 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
648 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
649 (default_tree_printer): Handle %K using percent_K_format.
650 (general_init): Use default_tree_diagnostic_starter.
651 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
652 (free_lang_data): Use default_tree_diagnostic_starter.
653 * c-pretty-print.c: Include tree-pretty-print.h.
654 * cfgexpand.c: Include tree-pretty-print.h and
655 gimple-pretty-print.h.
656 * cgraphunit.c: Include tree-pretty-print.h and
657 gimple-pretty-print.h.
658 * dwarf2out.c: Include tree-pretty-print.h.
659 * except.c: Include tree-pretty-print.h.
660 * gimple-pretty-print.c: Include tree-pretty-print.h and
661 gimple-pretty-print.h.
662 * gimplify.c: Include tree-pretty-print.h.
663 * graphite-poly.c: Include tree-pretty-print.h and
664 gimple-pretty-print.h.
665 * ipa-cp.c: Include tree-pretty-print.h.
666 * ipa-inline.c: Include gimple-pretty-print.h.
667 * ipa-prop.c: Include tree-pretty-print.h and
668 gimple-pretty-print.h.
669 * ipa-pure-const.c: Include gimple-pretty-print.h.
670 * ipa-struct-reorg.c: Include tree-pretty-print.h and
671 gimple-pretty-print.h.
672 * ipa-type-escape.c: Include tree-pretty-print.h.
673 * print-rtl.c: Include tree-pretty-print.h.
674 * print-tree.c: Include gimple-pretty-print.h.
675 * sese.c: Include tree-pretty-print.h.
676 * tree-affine.c: Include tree-pretty-print.h.
677 * tree-browser.c: Include tree-pretty-print.h.
678 * tree-call-cdce.c: Include gimple-pretty-print.h.
679 * tree-cfg.c: Include tree-pretty-print.h and
680 gimple-pretty-print.h.
681 * tree-chrec.c: Include tree-pretty-print.h.
682 * tree-data-ref.c: Include tree-pretty-print.h and
683 gimple-pretty-print.h.
684 * tree-dfa.c: Include tree-pretty-print.h.
685 * tree-if-conv.c: Include tree-pretty-print.h and
686 gimple-pretty-print.h.
687 * tree-inline.c: Include tree-pretty-print.h.
688 * tree-into-ssa.c: Include tree-pretty-print.h and
689 gimple-pretty-print.h.
690 * tree-nrv.c: Include tree-pretty-print.h.
691 * tree-object-size.c: Include tree-pretty-print.h and
692 gimple-pretty-print.h.
693 * tree-outof-ssa.c: Include tree-pretty-print.h and
694 gimple-pretty-print.h.
695 * tree-parloops.c: Include tree-pretty-print.h and
696 gimple-pretty-print.h.
697 * tree-predcom.c: Include tree-pretty-print.h and
698 gimple-pretty-print.h.
699 * tree-scalar-evolution.c: Include tree-pretty-print.h and
700 gimple-pretty-print.h.
701 * tree-sra.c: Include tree-pretty-print.h.
702 * tree-ssa-address.c: Include tree-pretty-print.h.
703 * tree-ssa-alias.c: Include tree-pretty-print.h.
704 * tree-ssa-ccp.c: Include tree-pretty-print.h and
705 gimple-pretty-print.h.
706 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
707 * tree-ssa-copy.c: Include tree-pretty-print.h and
708 gimple-pretty-print.h.
709 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
710 * tree-ssa-dce.c: Include tree-pretty-print.h and
711 gimple-pretty-print.h.
712 * tree-ssa-dom.c: Include tree-pretty-print.h and
713 gimple-pretty-print.h.
714 * tree-ssa-dse.c: Include gimple-pretty-print.h.
715 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
716 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
717 * tree-ssa-live.c: Include tree-pretty-print.h and
718 gimple-pretty-print.h.
719 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
720 gimple-pretty-print.h.
721 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
722 gimple-pretty-print.h.
723 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
724 gimple-pretty-print.h.
725 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
726 gimple-pretty-print.h.
727 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
728 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
729 * tree-ssa-operands.c: Include tree-pretty-print.h and
730 gimple-pretty-print.h.
731 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
732 gimple-pretty-print.h.
733 * tree-ssa-pre.c: Include tree-pretty-print.h and
734 gimple-pretty-print.h.
735 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
736 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
737 gimple-pretty-print.h.
738 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
739 gimple-pretty-print.h.
740 * tree-ssa-sink.c: Include gimple-pretty-print.h.
741 * tree-ssa-ter.c: Include tree-pretty-print.h and
742 gimple-pretty-print.h.
743 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
744 * tree-ssa.c: Include tree-pretty-print.h and
745 gimple-pretty-print.h.
746 * tree-stdarg.c: Include gimple-pretty-print.h.
747 * tree-switch-conversion.c: Include gimple-pretty-print.h.
748 * tree-tailcall.c: Include tree-pretty-print.h and
749 gimple-pretty-print.h.
750 * tree-vect-data-refs.c: Include tree-pretty-print.h and
751 gimple-pretty-print.h.
752 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
753 gimple-pretty-print.h.
754 * tree-vect-loop.c: Include tree-pretty-print.h and
755 gimple-pretty-print.h.
756 * tree-vect-patterns.c: Include gimple-pretty-print.h.
757 * tree-vect-slp.c: Include tree-pretty-print.h and
758 gimple-pretty-print.h.
759 * tree-vect-stmts.c: Include tree-pretty-print.h and
760 gimple-pretty-print.h.
761 * tree-vectorizer.c: Include tree-pretty-print.h.
762 * tree-vrp.c: Include tree-pretty-print.h and
763 gimple-pretty-print.h.
764 * value-prof.c: Include tree-pretty-print.h and
765 gimple-pretty-print.h.
766 * var-tracking.c: Include tree-pretty-print.h.
767 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
768 (tree-diagnostic.o): New dependencies.
769 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
770 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
771 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
772 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
773 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
774 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
775 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
776 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
777 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
778 tree-ssa-address.o, tree-ssa-loop-niter.o,
779 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
780 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
781 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
782 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
783 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
784 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
785 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
786 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
787 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
788 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
789 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
790 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
791 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
792 tree-switch-conversion.o, var-tracking.o, value-prof.o,
793 cfgexpand.o, pretty-print.o): Update dependencies.
795 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
797 * tree-ssa-structalias.c: Remove tm_p.h from include.
799 2010-05-21 Jeff Law <law@redhat.com>
801 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
803 2010-05-21 Jason Merrill <jason@redhat.com>
805 * tree-eh.c (cleanup_is_dead_in): New.
806 (lower_try_finally): Don't generate a dead cleanup region.
807 (lower_cleanup): Likewise.
809 2010-05-21 Jakub Jelinek <jakub@redhat.com>
812 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
813 unchain each use from the cyclic next_regno_use chain first.
815 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
817 * real: Do not include gmp.h, mpfr.h, and mpc.h.
818 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
819 (real_value_negate, real_value_abs): New prototypes.
820 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
821 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
822 new include file for interface between MPFR and REAL_VALUE_TYPE.
823 * real.c: Include realmpfr.h.
824 (real_arithmetic2): Remove legacy function.
825 (real_value_negate): New.
826 (real_value_abs): New.
827 (mfpr_from_real, real_from_mpfr): Move from here...
828 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
829 * builtins.c: Include realmpfr.h.
830 * fold-const.c: Include realmpfr.h.
831 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
832 (fold_negate_const): Likewise.
833 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
834 * toplev.c: Include realmpfr.h.
835 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
836 and real_value_negate.
837 * fixed-value.c (check_real_for_fixed_mode): Likewise.
838 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
839 (vfp3_const_double_index): Likewise.
840 (arm_print_operand): Likewise.
841 * Makefile.in: Update dependencies.
843 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
845 * config/s390/s390.c (override_options): Increase the default
846 of max-completely-peel-times.
848 2010-05-21 Julian Brown <julian@codesourcery.com>
849 Mark Mitchell <mark@codesourcery.com>
851 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
852 sibling calls for Thumb-1.
853 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
854 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
856 (*call_insn, *call_value_insn): Don't use for Thumb-2.
857 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
859 (return): New expander.
860 (*arm_return): New name for ARM return insn.
861 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
863 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
865 * config.gcc (sparc64-*-rtems*): New target.
867 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
869 * tree.c (build_function_decl_skip_args): Fix grammar.
870 (build_function_type_list_1): Fix typos, adjust formatting.
872 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
874 * tree.h: Include real.h and fixed-value.h as basic datatypes.
875 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
876 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
877 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
878 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
879 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
880 tree-pretty-print.c, tree-loop-distribution.c,
881 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
882 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
883 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
884 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
885 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
886 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
887 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
888 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
889 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
890 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
891 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
892 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
893 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
894 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
895 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
896 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
897 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
898 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
899 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
900 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
901 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
902 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
903 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
904 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
905 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
906 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
907 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
908 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
909 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
910 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
911 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
912 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
913 config/score/score7.c, config/score/score.c, config/arm/arm.c,
914 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
915 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
917 Clean up redundant includes.
918 * Makefile.in: Update accordingly.
920 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
923 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
924 statement has no arguments.
926 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
929 * varasm.c (emutls_decl): Merge attributes to new decl.
931 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
934 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
935 around the uniquized constructor if its type requires a conversion.
937 2010-05-21 Jakub Jelinek <jakub@redhat.com>
940 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
941 at -O0 goto_locus of any of the incoming edges differs from
942 goto_locus of outgoing edge, or gimple_location of any of the
945 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
947 * ira.c (ira_non_ordered_class_hard_regs): Define.
948 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
949 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
950 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
951 cost of unaligned hard regs when allocating multi-reg pseudos.
953 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
955 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
956 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
958 * config/mips/mips.c (mips_file_start): Expand conditional expression
959 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
960 (mips_override_options): Move -mno-float override -msoft-float and
962 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
963 Condition(TARGET_SUPPORTS_NO_FLOAT).
964 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
965 __mips_no_float here.
966 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
967 (TARGET_SUPPORTS_NO_FLOAT): Define.
968 * config/mips/sdemtk.opt: Delete.
970 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
972 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail
975 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
978 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
979 * configure: Regenerate.
980 * config.in: Regenerate.
981 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
982 instead of sahf only for 64bit targets.
984 2010-05-20 Jakub Jelinek <jakub@redhat.com>
987 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
988 setup_ref_regs for DEBUG_INSNs.
990 2010-05-20 Jan Hubicka <jh@suse.cz>
993 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
995 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
998 * df-scan.c (df_ref_compare): Stabilize sort.
1000 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1002 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1003 argument. Don't use DW_OP_piece if offset is non-zero,
1004 put offset into second DW_OP_bit_piece argument.
1005 (dw_sra_loc_expr): Adjust callers. For memory expressions
1008 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
1011 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1012 settings for 16-bit-constant "addo" alternative.
1014 2010-05-19 James E. Wilson <wilson@codesourcery.com>
1016 * config/mips/mips-dsp.md (add<DSPV:mode>3,
1017 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1020 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
1021 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1024 2010-05-19 Joseph Myers <joseph@codesourcery.com>
1026 * diagnostic.c (FLOAT, FFS): Don't undefine.
1027 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1028 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1031 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1033 * combine.c (propagate_for_debug): Call make_compound_operation
1034 on the source value.
1035 (try_combine): When implementing a split chosen by find_split_point,
1036 either copy i2src or set it to null. Assert that i2src is not null
1037 before substituting into CALL_INSN_FUNCTION_USAGE.
1039 2010-05-19 Anatoly Sokolov <aesok@post.ru>
1041 * double-int.h (double_int_ior): New function.
1042 * tree.h (build_int_cst_wide_type): Remove.
1043 * tree.c (build_int_cst_wide_type): Remove.
1044 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1045 of build_int_cst_wide_type.
1046 * stor-layout.c (set_sizetype): (Ditto.).
1047 * dojump.c (do_jump): Use build_int_cstu instead of
1048 build_int_cst_wide_type.
1050 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
1052 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1053 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1054 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1055 * gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1056 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
1057 propagate the 'data' argument to copy_tree_r.
1058 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1059 Propagate 'data' argument to walk_tree.
1060 (copy_if_shared): New function.
1061 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1062 (unmark_visited): New function.
1063 (unshare_body): Call copy_if_shared instead of doing it manually.
1064 (unvisit_body): Call unmark_visited instead of doing it manually.
1066 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
1068 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1069 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
1070 * hooks.c: Likewise.
1071 * target-def.h (TARGET_FOLD_BUILTIN): Define to
1072 hook_tree_tree_int_treep_bool_null.
1073 * target.h: (struct gcc_target): Update signature of fold_builtin
1075 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
1076 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
1077 instead of the call expression.
1078 (fold_builtin_call_array): Pass n and argarray directly.
1079 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
1081 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
1082 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
1083 `i' and use it in place of `arity'.
1084 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
1085 Dereference `args' directly.
1086 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
1088 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1092 (Directives): Document optional dg-require-effective-target
1095 2010-05-19 Richard Guenther <rguenther@suse.de>
1098 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1100 2010-05-19 Richard Guenther <rguenther@suse.de>
1102 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
1103 * common.opt (fwhopr=): New.
1104 * opts.c (common_handle_option): Handle OPT_fwhopr.
1105 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
1106 * collect2.c (main): Match -fwhopr*.
1107 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
1108 Execute ltrans stage in parallel when jobs is bigger than 1.
1110 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1112 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1113 pentiumpro on Solaris 8/x86 with Sun as.
1114 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1116 (gcc_cv_as_ix86_quad): Check for .quad directive.
1117 * configure: Regenerate.
1118 * config.in: Regenerate.
1119 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1121 2010-05-19 Martin Jambor <mjambor@suse.cz>
1123 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
1124 also for indirect edges. Actual printing moved...
1125 (ipa_print_node_jump_functions_for_edge): ...here.
1126 (ipa_compute_jump_functions): Renamed to
1127 ipa_compute_jump_functions_for_edge and made static.
1128 (ipa_compute_jump_functions): New function.
1129 (make_edge_direct_to_target): Check if the number of arguments on
1130 the newly direct edge is the same as the number of parametrs of
1132 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
1133 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
1134 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1135 analysis functions unconditionally, call the new
1136 ipa_analyze_params_uses on the node instead of every edge.
1138 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
1140 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
1142 (dump_mem_ref): Adopt debug code to handle a tree as step. This
1143 also checks for a constant int vs. non-constant but
1144 loop-invariant steps.
1145 (find_or_create_group): Change the sort algorithm to only consider
1146 steps that are constant ints.
1147 (idx_analyze_ref): Adopt code to handle a tree instead of a
1148 HOST_WIDE_INT for step.
1149 (gather_memory_references_ref): Handle tree instead of int and be
1150 prepared to see a NULL_TREE.
1151 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
1152 prefetches if the step cannot be calculated at compile time.
1153 (issue_prefetch_ref): Issue prefetches for non-constant but
1154 loop-invariant steps.
1156 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1159 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1161 * tree.h (build_call_list): Remove.
1162 * tree.c (build_call_list): Remove.
1164 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1166 * tree.h (build_call_list): Remove.
1167 * tree.c (build_call_list): Remove.
1169 2010-05-18 Jan Hubicka <jh@suse.cz>
1171 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
1173 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
1175 PR rtl-optimization/43332
1176 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
1178 2010-05-18 Anatoly Sokolov <aesok@post.ru>
1180 * tree.h (build_int_cstu): Implement as static inline.
1181 * tree.c (build_int_cstu): Remove function.
1182 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
1185 2010-05-18 Richard Guenther <rguenther@suse.de>
1188 * lto-wrapper.c (verbose): New variable. Initialize from -v.
1189 (debug): Initialize from -save-temps.
1190 (collect_execute): Print command-line when verbose.
1191 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
1192 for ltrans invocation. Produce -dumpbase flag again.
1193 (process_args): Remove.
1195 * collect2.c (maybe_run_lto_and_relink): Only pass object
1196 files to lto-wrapper.
1197 * gcc.c (LINK_COMMAND_SPEC): Likewise.
1199 2010-05-18 Jan Hubicka <jh@suse.cz>
1201 * opts.c (decode_options): Do not disable whopr at ipa_cp.
1202 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
1204 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1207 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1209 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1212 2010-05-18 Jakub Jelinek <jakub@redhat.com>
1215 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
1218 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1220 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
1221 lto-macho as lto_binary_reader.
1223 * darwin.c (darwin_asm_named_section): Do not add assembler comment
1224 after .section directive; just print it before the directive instead.
1226 2010-05-17 Jan Hubicka <jh@suse.cz>
1228 * cgraph.c (cgraph_create_virtual_clone): Only check
1229 versionable_function_p when not in wpa and checking is enabled.
1230 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
1231 there are no more functions to materialize.
1233 2010-05-17 Jan Hubicka <jh@suse.cz>
1235 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
1236 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
1238 (output_cgraph): Call output_cgraph_opt_summary.
1239 (input_cgrpah): Call input_cgraph_opt_summary.
1240 (output_cgraph_opt_summary_p, output_node_opt_summary,
1241 input_node_opt_summary, input_cgraph_opt_section): New functions.
1242 * lto-section-in.c (lto_section_name): Add cgraphopt.
1243 * tree-inline.c (tree_function_versioning): Handle parm_num.
1244 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
1245 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
1247 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1249 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
1250 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
1251 the insn to prefetch ratio heuristic to loops with known trip count.
1253 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1255 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
1256 (schedule_prefetches): Do not generate a prefetch if the unroll factor
1257 is far from what is required by the prefetch.
1259 2010-05-17 Jan Hubicka <jh@suse.cz>
1261 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
1262 (ipcp_estimate_growth): Likewise.
1263 (ipcp_const_param_count): Likewise.
1264 (ipcp_insert_stage): Likewise.
1265 * ipa-prop.c (visit_load_for_mod_analysis): New function.
1266 (visit_store_addr_for_mod_analysis): Set used flag.
1267 (ipa_detect_param_modifications): Set used flag for SSE params;
1268 update use of walk_stmt_load_store_addr_ops.
1269 (ipa_print_node_params): Print used flag.
1270 (ipa_write_node_info): Stream used flag.
1271 (ipa_read_node_info): Likewise.
1272 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
1273 (ipa_is_param_used): New function.
1274 (lto_ipa_fixup_call_notes): Remove unused declaration.
1276 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1279 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1280 * configure: Regenerate.
1281 * config.in: Regenerate.
1282 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
1283 !HAVE_AS_IX86_REP_LOCK_PREFIX.
1284 Don't emit whitespace.
1285 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1286 (*rep_movsi): Likewise.
1287 (*rep_movsi_rex64): Likewise.
1288 (*rep_movqi): Likewise.
1289 (*rep_movqi_rex64): Likewise.
1290 (*rep_stosdi_rex64): Likewise.
1291 (*rep_stossi): Likewise.
1292 (*rep_stossi_rex64): Likewise.
1293 (*rep_stosqi): Likewise.
1294 (*rep_stosqi_rex64): Likewise.
1295 (*cmpstrnqi_nz_1): Use {%;} after repz.
1296 (*cmpstrnqi_nz_rex_1): Likewise.
1297 (*cmpstrnqi_1): Likewise.
1298 (*cmpstrnqi_rex_1): Likewise.
1299 (*strlenqi_1): Use {%;} after repnz.
1300 (*strlenqi_rex_1): Likewise.
1301 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
1302 (*sync_compare_and_swap<mode>): Likewise.
1303 (sync_double_compare_and_swap<mode>): Likewise.
1304 (*sync_double_compare_and_swapdi_pic): Likewise.
1305 (sync_old_add<mode>): Likewise.
1306 (sync_add<mode>): Likewise.
1307 (sync_sub<mode>): Likewise.
1308 (sync_<code><mode>): Likewise.
1310 2010-05-17 Martin Jambor <mjambor@suse.cz>
1312 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
1313 otr_token and polymorphic.
1314 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
1315 (cgraph_clone_edge): Copy the above fields.
1316 * tree.c (get_binfo_at_offset): New function.
1317 * tree.h (get_binfo_at_offset): Declare.
1318 * ipa-prop.h (enum jump_func_type): Added known_type jump function
1319 type, reordered items, updated comments.
1320 (union jump_func_value): Added base_type field, reordered fields.
1321 (enum ipa_lattice_type): Moved down in the file.
1322 (struct ipa_param_descriptor): New field polymorphic.
1323 (ipa_is_param_polymorphic): New function.
1324 * ipa-prop.c: Include gimple.h and gimple-fold.h.
1325 (ipa_print_node_jump_functions): Print known type jump functions.
1326 (compute_complex_pass_through): Renamed to...
1327 (compute_complex_assign_jump_func): this.
1328 (compute_complex_ancestor_jump_func): New function.
1329 (compute_known_type_jump_func): Likewise.
1330 (compute_scalar_jump_functions): Create known type and complex ancestor
1332 (ipa_note_param_call): New parameter polymorphic, set the corresponding
1333 flag in the call note accordingly.
1334 (ipa_analyze_call_uses): Renamed to...
1335 (ipa_analyze_indirect_call_uses): this. New parameter target, define
1336 variable var only in the block where it is used.
1337 (ipa_analyze_virtual_call_uses): New function.
1338 (ipa_analyze_call_uses): Likewise.
1339 (combine_known_type_and_ancestor_jfs): Likewise.
1340 (update_jump_functions_after_inlining): Implemented handling of a
1341 number of new jump function types combination.
1342 (print_edge_addition_message): Removed.
1343 (make_edge_direct_to_target): New function.
1344 (try_make_edge_direct_simple_call): Likewise.
1345 (try_make_edge_direct_virtual_call): Likewise.
1346 (update_call_notes_after_inlining): Renamed to...
1347 (update_indirect_edges_after_inlining): this. Moved edge creation for
1348 indirect calls to try_make_edge_direct_simple_call, also calls
1349 try_make_edge_direct_virtual_call for virtual calls.
1350 (ipa_print_node_params): Changed the header message.
1351 (ipa_write_jump_function): Stream also known type jump functions.
1352 (ipa_read_jump_function): Likewise.
1353 (ipa_write_indirect_edge_info): Stream new fields in
1354 cgraph_indirect_call_info.
1355 (ipa_read_indirect_edge_info): Likewise.
1356 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
1359 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1361 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
1363 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
1365 * tree.h (CALL_EXPR_ARGS): Delete.
1366 (call_expr_arglist): Delete.
1367 * tree.c (call_expr_arglist): Delete.
1368 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
1369 targetm.fold_builtin.
1370 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
1371 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
1372 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
1373 arglist parameter. Use CALL_EXPR_ARG.
1374 (picochip_expand_builtin_3op): Likewise.
1375 (picochip_expand_builtin_2opvoid): Likewise.
1376 (picochip_expand_array_get): Likewise.
1377 (picochip_expand_array_put): Likewise.
1378 (picochip_expand_array_testport): Likewise.
1379 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
1380 rather than arglist.
1381 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
1383 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
1384 than TREE_VALUE and TREE_CHAIN.
1385 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1386 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
1389 2010-05-17 Jakub Jelinek <jakub@redhat.com>
1392 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
1393 to have no fallthru edge.
1396 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
1397 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
1398 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
1399 add BARRIER after previous bb if needed.
1401 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
1403 * tree.c (build_function_type_list_1): Remove bogus assert condition.
1405 2010-05-17 Alan Modra <amodra@gmail.com>
1407 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
1408 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
1409 with copy_reg rtx param.
1410 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
1411 Correct cases where code for ABI_V4 did not initialise the reg
1412 used to access frame. Also leave frame_reg_rtx as sp for large
1413 frames that save no regs.
1415 2010-05-17 Martin Jambor <mjambor@suse.cz>
1418 * tree-sra.c (create_access_replacement): New parameter rename, mark
1419 the replaement for renaming only when it is true.
1420 (get_access_replacement): Pass true in the rename parameter of
1421 create_access_replacement.
1422 (get_unrenamed_access_replacement): New function.
1423 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
1424 replacement declaration from it.
1426 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
1428 * function.c (try_fit_stack_local, add_frame_space): New static
1430 (assign_stack_local_1): Use them. Look for opportunities to use
1431 space previously wasted on alignment.
1432 * function.h (struct frame_space): New.
1433 (struct rtl_data): Add FRAME_SPACE_LIST member.
1434 * reload1.c (something_was_spilled): New static variable.
1435 (alter_reg): Set it.
1436 (reload): Test it in addition to testing if the frame size changed.
1438 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
1440 * config/s390/s390.c: Define sane prefetch settings and activate
1441 flag_prefetch_loop_arrays on -O3.
1442 * config/s390/s390.h: Declare that read can use write prefetch.
1444 2010-05-17 Jakub Jelinek <jakub@redhat.com>
1446 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
1449 2010-05-16 Jan Hubicka <jh@suse.cz>
1451 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
1452 function body; do not check stdarg field of struct function.
1454 2010-05-16 Jan Hubicka <jh@suse.cz>
1456 * cgraph.c (dump_cgraph_node): Dump versionable flag.
1457 * cgraph.h (cgraph_local_info): Add versionable flag.
1458 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
1459 (ipcp_versionable_function_p): Use it.
1460 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
1463 2010-05-16 Jan Hubicka <jh@suse.cz>
1465 * cgraph.c (cgraph_clone_node): Take decl argument and insert
1466 clone into hash when it is different from orig.
1467 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
1468 * cgraph.h (cgraph_clone_node): Update prototype.
1469 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
1470 (lto_cgraph_encoder_delete): Delete body map.
1471 (lto_cgraph_encoder_size): Move to header.
1472 (lto_cgraph_encoder_encode_body_p,
1473 lto_set_cgraph_encoder_encode_body): New.
1474 (lto_output_node): Do not take written_decls argument; output clone_of
1476 (add_node_to): Add include_body_argument; call
1477 lto_set_cgraph_encoder_encode_body on master of the clone.
1478 (add_references): Update use of add_node_to.
1479 (compute_ltrans_boundary): Likewise.
1480 (output_cgraph): Do not create written_decls bitmap.
1481 (input_node): Take nodes argument; stream in clone_of correctly.
1482 (input_cgraph_1): Update use of input_node.
1483 * lto-streamer-out.c (lto_output): Use encoder info to decide
1484 what bodies to output.
1485 * ipa-inline.c (cgraph_clone_inlined_nodes,
1486 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
1487 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
1488 (lto_cgraph_encoder_size): Define here.
1489 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
1492 2010-05-16 Richard Guenther <rguenther@suse.de>
1494 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
1496 * ipa-type-escape.c (gate_type_escape_vars): Run when
1497 -fipa-struct-reorg runs.
1498 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
1499 * common.opt (fipa-type-escape): Remove.
1501 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
1503 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
1504 (decode_options): Likewise.
1505 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
1507 2010-05-16 Jan Hubicka <jh@suse.cz>
1509 * ipa.c (function_and_variable_visibility): Also bring local all
1512 2010-05-16 Richard Guenther <rguenther@suse.de>
1514 * alias.c (nonoverlapping_memrefs_p): Remove use of
1515 IPA type-escape information.
1517 2010-05-16 Joseph Myers <joseph@codesourcery.com>
1519 * c-common.c (c_common_reswords): Add _Static_assert for C.
1520 * c-parser.c (c_token_starts_declaration,
1521 c_parser_next_token_starts_declaration,
1522 c_parser_static_assert_declaration_no_semi,
1523 c_parser_static_assert_declaration): New.
1524 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
1525 Handle static assertions if static_assert_ok.
1526 (c_parser_external_declaration, c_parser_declaration_or_fndef,
1527 c_parser_compound_statement_nostart, c_parser_label,
1528 c_parser_for_statement, c_parser_objc_methodprotolist,
1529 c_parser_omp_for_loop): All callers of
1530 c_parser_declaration_or_fndef changed.
1531 (c_parser_struct_declaration): Handle static assertions.
1532 (c_parser_compound_statement_nostart): Use
1533 c_parser_next_token_starts_declaration and
1534 c_token_starts_declaration to detect start of declarations.
1535 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
1538 2010-05-16 Anatoly Sokolov <aesok@post.ru>
1540 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1541 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1542 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1543 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1544 (mmix_function_outgoing_value): Rename to...
1545 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
1546 (mmix_function_value_regno_p): Make static.
1547 (mmix_libcall_value): New function.
1548 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
1549 mmix_function_value_regno_p): Remove declaration.
1551 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
1553 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
1554 BUILT_IN_ALLOCA if stack checking is enabled.
1556 2010-05-16 Richard Guenther <rguenther@suse.de>
1558 * var-tracking.c (vars_copy_1): Inline ...
1559 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
1560 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
1561 (variable_merge_over_cur): Adjust. Merge asserts.
1562 (variable_merge_over_src): Likewise.
1563 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
1564 (variable_post_merge_new_vals): Merge asserts.
1565 (variable_post_merge_perm_vals): Likewise.
1566 (find_mem_expr_in_1pdv): Likewise.
1567 (dataflow_set_different_value): Remove.
1568 (onepart_variable_different_p): Merge asserts.
1569 (variable_different_p): Likewise.
1570 (dataflow_set_different_1): Inline ...
1571 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
1572 (emit_notes_for_differences_1): Merge asserts.
1574 2010-05-16 Richard Guenther <rguenther@suse.de>
1576 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
1577 * optabs.c (libfunc_decl_hash): Likewise.
1578 * varasm.c (emutls_decl): Likewise.
1580 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
1582 * c-decl.c: Don't include gimple.h.
1583 (merge_decls): Do not copy gimple_body.
1585 2010-05-15 Jason Merrill <jason@redhat.com>
1587 * c.opt: Add -fnothrow-opt.
1589 2010-05-15 Jan Hubicka <jh@suse.cz>
1591 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
1593 * passes.c (ipa_write_summaries): Write all analyzed nodes.
1595 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
1597 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
1598 * Makefile.in: Add it.
1599 Fix all other Makefile dependencies for changes below.
1600 * tree.h: Include it instead of defining VEC primitives here.
1601 * gimple.h: Likewise.
1603 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
1604 * except.h: Include vecir.h, break dependence on tree.h.
1606 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
1608 * tree-iterator.c: ...to here.
1609 * tree-iterator.h: Fix file introduction comment. Add extern markers.
1611 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
1613 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
1614 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
1615 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
1616 tree-mudflap.h, and target.h.
1617 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
1618 predict.h, tree-inline.h, gimple.h, and langhooks.h.
1619 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
1620 Add FIXME for why gimple.h is still included (should be unnecessary
1621 since GCC 4.5 gimplification unit-at-a-time).
1622 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
1623 * c-pragma.c: Add FIXME for why function.h needs to be included just
1624 for cfun, at front-end level.
1625 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
1626 Do not include ggc.h, but include vecprim.h for VEC(char).
1627 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
1628 Explain why target.h is included.
1629 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
1630 Explain why gimple.h is included.
1631 * c-ppoutput.c: Do not include tm.h.
1632 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
1633 * c-parses.c: Explain why rtl.h is included, and that this (and only
1634 this) is also why tm.h must be included.
1635 Do not include except.h.
1636 * c-lang.c: Do not include ggc.h.
1638 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
1640 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
1642 2010-05-15 Joseph Myers <joseph@codesourcery.com>
1644 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
1645 unions by default if those structs and unions have no tags. Do
1646 not condition anonymous struct and unions handling on flag_iso.
1647 Allow anonymous structs and unions for C1X.
1648 (finish_struct): Do not diagnose lack of named fields when
1649 anonymous structs and unions present for C1X. Accept flexible
1650 array members in structure with anonymous structs or unions but no
1651 directly named fields.
1652 * doc/extend.texi (Unnamed Fields): Update.
1654 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
1656 * gimple.h (compare_field_offset): Rename into...
1657 (gimple_compare_field_offset): ...this.
1658 * gimple.c (compare_field_offset): Rename into...
1659 (gimple_compare_field_offset): ...this. Compare the full access if
1660 the offset is self-referential.
1661 (gimple_types_compatible_p): Adjust for above renaming.
1662 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
1663 DECL_NONADDRESSABLE_P flag of fields before merging them.
1665 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
1667 * tree.h (ctor_to_list): Delete.
1668 * tree.c (ctor_to_list): Delete.
1670 2010-05-15 Jan Hubicka <jh@suse.cz>
1672 * ipa-reference.c: Include toplev.h
1673 (is_proper_for_analysis): Only add to all_module_statics
1675 (write_node_summary_p, stream_out_bitmap,
1676 ipa_reference_write_optimization_summary,
1677 ipa_reference_read_optimization_summary): New.
1678 (struct ipa_opt_pass_d pass_ipa_reference): Add
1679 optimization summary streaming.
1680 * lto-cgraph.c (referenced_from_this_partition_p,
1681 reachable_from_this_partition_p): New functions.
1682 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1683 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
1684 * opts.c (decode_options): Enable ipa_reference.
1685 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
1686 * lto-streamer.h (referenced_from_this_partition_p,
1687 reachable_from_this_partition_p): Declare.
1689 2010-05-15 Richard Guenther <rguenther@suse.de>
1691 PR tree-optimization/44038
1692 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
1693 taking the address of a V_C_E of a constant.
1695 2010-05-14 Jan Hubicka <jh@suse.cz>
1697 * tree.h (memory_identifier_string): Remove.
1698 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
1699 (ipa_reference_global_vars_info_d): Remove statics_not_read and
1700 statics_not_written.
1701 (ipa_reference_optimization_summary_d): New structure.
1702 (ipa_reference_optimization_summary_t): New type and vector.
1703 (ipa_reference_vars_info_d): Embedd structures instead of using
1705 (reference_vars_to_consider): Remove out of GGC space.
1706 (module_statics_escape): Remove.
1707 (global_info_obstack): Rename to ...
1708 (optimization_summary_obstack): ... this one.
1709 (initialization_status_t): Remove.
1710 (memory_identifier_string): Remove.
1711 (get_reference_vars_info): Fix indenting.
1712 (set_reference_vars_info): Likewise.
1713 (get_reference_optimization_summary): New.
1714 (set_reference_optimization_summary): New.
1715 (get_global_reference_vars_info): Remove.
1716 (ipa_reference_get_read_global): Remove.
1717 (ipa_reference_get_written_global): Remove.
1718 (ipa_reference_get_not_read_global): Update.
1719 (ipa_reference_get_not_written_global): Update.
1720 (is_proper_for_analysis): Outlaw addressable.
1721 (propagate_bits): Update for new datastructures.
1722 (analyze_variable): Remove.
1723 (init_function_info): Update for new datastructures.
1724 (clean_function_local_data): Remove.
1725 (clean_function): Remove.
1726 (copy_global_bitmap): Use optimizations_summary_obstack.
1727 (duplicate_node_data): Duplicate optimization summary only.
1728 (remove_node_data): Remove optimization summary only.
1729 (generate_summary): Do not analyze variables; do not compute
1730 module_statics_escape; do not prune solutions by it.
1731 (read_write_all_from_decl): Fix typos in comments.
1732 (propagate): Doscover readonly and nonaddressable first;
1733 update for new datastructures; share global bitmaps.
1734 * ipa-reference.h (ipa_reference_get_read_global,
1735 ipa_reference_get_written_global): Remove.
1736 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
1737 * Makefile.in: Remove ipa-refereference from GT files.
1739 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1742 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
1743 for all SYMBOL_REF_DECLs.
1745 2010-05-14 Jan Hubicka <jh@suse.cz>
1747 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
1748 (varpool_all_refs_explicit_p): New inline function.
1749 * ipa-reference.c: Update comment.
1750 (module_statics_written): Remove.
1751 (get_static_decl): Remove.
1752 (ipa_init): Do not initialize module_statics_written.
1753 (analyze_function): Likewise.
1754 (generate_summary): Likewise; do not compute module_statics_readonly
1755 and do not update variable flags.
1756 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
1757 * ipa.c: Inlucde flags.h
1758 (cgraph_local_node_p): New.
1759 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
1760 promote functions to local.
1761 (ipa_discover_readonly_nonaddressable_vars): New function.
1762 (function_and_variable_visibility): Use cgraph_local_node_p.
1763 * varpool.c (varpool_finalize_decl): Set force_output for
1764 DECL_PRESERVE_P vars.
1766 2010-05-14 Jan Hubicka <jh@suse.cz>
1768 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
1770 2010-05-14 Richard Guenther <rguenther@suse.de>
1772 PR tree-optimization/44119
1773 * tree-ssa-pre.c (eliminate): Properly mark replacement of
1774 a PHI node necessary.
1776 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
1778 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
1780 2010-05-14 Jason Merrill <jason@redhat.com>
1783 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
1784 (gimple_call_set_nothrow): New.
1785 * gimple.c (gimple_build_call_from_tree): Call it.
1786 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
1789 * gimplify.c (gimplify_seq_add_stmt): No longer static.
1790 * gimple.h: Declare it.
1791 * gimple.c (gimple_build_eh_filter): No ops.
1793 2010-05-14 Jan Hubicka <jh@suse.cz>
1795 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
1796 nodes already in queue.
1797 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
1800 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1803 * cfgexpand.c (expand_debug_expr): If non-memory op0
1804 has BLKmode, return NULL.
1806 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
1808 * config.gcc: Add support for --with-cpu option for bdver1.
1809 * config/i386/i386.h (TARGET_BDVER1): New macro.
1810 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
1811 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1812 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
1813 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1814 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
1815 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
1816 (processor_type): Add PROCESSOR_BDVER1.
1817 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
1818 processor_type in config/i386/i386.h.
1819 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
1820 movaps <reg, reg> instead of movapd <reg, reg> when replacing
1821 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
1822 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
1823 to emit packed xor instead of packed double/packed integer
1824 xor for SSE and AVX when moving a zero value.
1825 * config/i386/sse.md: Add check for
1826 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
1827 movapd/movdqa for SSE and AVX.
1828 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
1829 single logical operations i.e and, or and xor instead of packed double
1830 logical operations for SSE and AVX.
1831 * config/i386/i386-c.c (ix86_target_macros_internal):
1832 Add PROCESSOR_BDVER1.
1833 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
1834 (has_fma4, has_xop): New.
1835 * config/i386/i386.c (bdver1_cost): New variable.
1836 (m_BDVER1): New macro.
1837 (m_AMD_MULTIPLE): Add m_BDVER1.
1838 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
1839 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
1840 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
1841 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
1842 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
1843 x86_tune_sse_partial_reg_dependency,
1844 x86_tune_sse_unaligned_load_optimal,
1845 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
1846 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
1847 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
1848 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
1849 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
1850 Enable/disable for bdver1.
1851 (processor_target_table): Add bdver1_cost.
1852 (cpu_names): Add bdver1.
1853 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
1854 processor_alias_table.
1855 (ix86_expand_vector_move_misalign): Change.
1856 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
1857 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
1858 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
1859 of movupd/movdqu for SSE and AVX.
1860 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
1861 (ix86_tune_adjust_cost): Add code for bdver1.
1862 (standard_sse_constant_opcode): Add check for
1863 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
1864 of packed double xor for SSE and AVX.
1866 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
1868 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
1871 2010-05-14 Tristan Gingold <gingold@adacore.com>
1873 * toplev.c (default_debug_hooks): Remove this variable.
1874 (process_options): Remove assignments to default_debug_hooks.
1876 2010-05-14 Martin Jambor <mjambor@suse.cz>
1878 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
1879 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
1880 * langhooks.h (struct lang_hooks_for_decls): Removed field
1882 * tree.c (free_lang_data): Remove assignment to
1883 lang_hooks.fold_obj_type_ref.
1884 * tree.def (OBJ_TYPE_REF): Update comment.
1886 2010-05-14 Richard Guenther <rguenther@suse.de>
1888 PR tree-optimization/44124
1889 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
1891 2010-05-14 Alan Modra <amodra@gmail.com>
1894 * config/rs6000/rs6000.c (struct machine_function): Reorder
1895 fields for better packing. Add lr_save_state.
1896 (rs6000_ra_ever_killed): Return lr_save_state if set.
1897 (rs6000_emit_eh_reg_restore): Set lr_save_state.
1899 2010-05-13 Jan Hubicka <jh@suse.cz>
1901 * varpool.c (decide_is_variable_needed): Drop code checking
1902 TREE_SYMBOL_REFERENCED.
1904 2010-05-13 Jan Hubicka <jh@suse.cz>
1906 * final.c (output_addr_const): Do not call mark_decl_referenced.
1907 * cgraphunit.c (process_function_and_variable_attributes): Use
1908 mark_needed_node dirrectly.
1909 (assemble_thunk): Do not call mark_decl_referenced.
1911 2010-05-13 Anatoly Sokolov <aesok@post.ru>
1913 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
1915 2010-05-13 Jeff Law <law@redhat.com>
1917 * ira-conflicts.c (print_allocno_conflicts): New function broken out
1919 (print_conflicts): Call print_allocno_conflicts.
1921 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1924 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
1927 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
1929 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
1930 t-mingw-w64 or t-mingw-w32 for multilib configuration.
1931 * config/i386/t-mingw-w32: New.
1932 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
1934 2010-05-13 Martin Jambor <mjambor@suse.cz>
1936 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
1938 * gimple-fold.c (get_base_binfo_for_type): New function.
1939 (gimple_get_relevant_ref_binfo): Likewise.
1940 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1941 (gimple_fold_obj_type_ref): Likewise.
1942 (fold_gimple_call): Simplify condition for folding virtual calls
1943 and call gimple_fold_obj_type_ref.
1944 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
1945 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1947 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
1949 * config/rs6000/rs6000-protos.h
1950 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
1951 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
1952 (rs6000_debug_mode_dependent_address)
1953 (rs6000_mode_dependent_address_ptr): Likewise.
1955 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1958 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
1960 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
1961 * tree-sra.c (create_access_replacement): Call unshare_expr before
1962 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
1963 * dwarf2out.c: Include tree-flow.h.
1964 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
1965 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
1966 Handle DW_OP_bit_piece.
1967 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
1968 construct_piece_list, adjust_piece_list): New functions.
1969 (add_var_loc_to_decl): Handle SRA optimized variables.
1970 Adjust for var_loc_note to loc field renaming.
1971 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
1972 in VAR_LOCATION note.
1973 (new_loc_descr_op_bit_piece): New function.
1974 (dw_sra_loc_expr): New function.
1975 (dw_loc_list): Use it. Don't handle the last range after the
1976 loop, handle it inside of the loop. Adjust for var_loc_note
1977 to loc field renaming.
1978 (add_location_or_const_value_attribute): Only special case
1979 single entry loc lists if loc is NOTE_P. Adjust for
1980 var_loc_note to loc field renaming.
1981 (dwarf2out_var_location): Don't set newloc->var_loc_note
1982 and newloc->next here.
1984 2010-05-12 Jan Hubicka <jh@suse.cz>
1986 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
1988 * cgraph.h (cgraph_only_called_directly_p,
1989 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
1990 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
1991 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
1993 * ipa.c (cgraph_remove_unreachable_nodes): Use
1994 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
1996 * tree-inline.c (copy_bb): Check address_taken flag.
1997 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
1998 externally_visible flag.
2000 2010-05-12 Jason Merrill <jason@redhat.com>
2004 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2005 * sdbout.c (plain_type_1): Likewise.
2006 * dwarf2out.c (is_base_type): Likewise.
2007 (gen_type_die_with_usage): Likewise. Generate
2008 DW_TAG_unspecified_type for any LANG_TYPE.
2010 2010-05-12 Jan Hubicka <jh@suse.cz>
2012 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2014 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2015 (cgraph_clone_edge): Update.
2016 (cgraph_node_remove_callees): Remove indirect calls too.
2017 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2018 (cgraph_create_indirect_edge): Update prototype.
2019 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2020 is_proper_for_analysis.
2021 (add_new_function, visited_nodes, function_insertion_hook_holder,
2022 get_local_reference_vars_info, mark_address_taken, mark_address,
2023 mark_load, mark_store, check_asm_memory_clobber, check_call,
2024 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2025 (ipa_init): Do not initialize visited_nodes;
2026 function_insertion_hook_holder.
2027 (analyze_variable): Rewrite.
2028 (analyze_function): Rewrite.
2029 (copy_local_bitmap): Remove.
2030 (duplicate_node_dat): Do not duplicate local info.
2031 (generate_summary): Simplify to only walk cgraph.
2032 (write_node_summary_p, ipa_reference_write_summary,
2033 ipa_reference_read_summary): Remove.
2034 (propagate): Do not remove function insertion;
2036 (pass_ipa_reference): NULLify summary handling fields.
2037 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2038 (input_edge): Input ecf_flags.
2039 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2040 (update_indirect_edges_after_inlining): Ignore edges with unknown
2043 2010-05-12 Sriraman Tallam <tmsriram@google.com>
2045 * implicit-zee.c: New file.
2046 * tree-pass.h (pass_implicit_zee): Declare.
2047 * passes.c (init_optimization_passes): Add zee pass.
2048 * common.opt (fzee): New flag.
2049 * timevar.def (TV_ZEE): Define.
2050 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2052 * Makefile.in (implicit-zee.o): Add new build file.
2054 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2055 Nathan Froyd <froydnj@codesourcery.com>
2057 * c-common.c (sync_resolve_params): Remove write-only variable.
2059 2010-05-12 Anatoly Sokolov <aesok@post.ru>
2061 * target.h (struct gcc_target): Add mode_dependent_address_p field.
2062 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2063 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2064 * targhooks.c (default_mode_dependent_address_p): New function.
2065 * targhooks.h (default_mode_dependent_address_p): Declare function.
2066 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2067 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2068 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
2069 target hook. Change return type to bool.
2070 * recog.h: (mode_dependent_address_p): Change return type to bool.
2072 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2073 Nathan Froyd <froydnj@codesourcery.com>
2075 * tree-mudflap.c (build_function_type_0, build_function_type_1,
2076 build_function_type_2, build_function_type_3): Remove.
2077 (mudflap_init): Use build_function_type_list.
2079 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2080 Nathan Froyd <froydnj@codesourcery.com>
2082 * coverage.c (build_fn_info_value): Call build_constructor instead of
2083 build_constructor_from_list.
2084 (build_ctr_info_value): Likewise.
2085 (build_gcov_info): Likewise.
2087 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
2089 * tree.c (build_constructor): Compute TREE_CONSTANT for the
2090 resultant constructor.
2091 (build_constructor_single): Don't set TREE_CONSTANT.
2092 (build_constructor_from_list): Don't compute TREE_CONSTANT.
2094 2010-05-12 Jan Hubicka <jh@suse.cz>
2096 * cgraph.h (struct varpool_node): Add aux.
2097 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
2098 * varpool.c (varpool_remove_node): Do not remove initializer.
2099 (varpool_reset_queue): Export.
2100 (varpool_finalize_decl): Volatile vars are forced to be output.
2101 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
2103 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
2104 process_references, varpool_can_remove_if_no_refs): New functions.
2105 (cgraph_remove_unreachable_nodes): Handle variables too.
2107 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
2110 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
2112 2010-05-12 Jakub Jelinek <jakub@redhat.com>
2115 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
2116 change value of ORT_TASK.
2117 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
2118 (omp_notice_threadprivate_variable): New function.
2119 (omp_notice_variable): Call it for threadprivate variables.
2120 If enclosing ctx is a task, print enclosing task rather than
2121 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
2122 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
2123 if task has untied clause.
2126 * dwarf2out.c (base_type_die): Don't add name attribute here.
2127 (modified_type_die): Instead of sizetype use
2128 its underlying original type. If a DW_TAG_base_type doesn't
2129 have name added, add __unknown__.
2130 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
2131 always call force_type_die instead.
2133 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
2135 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
2136 for __stack_chk_guard.
2138 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2140 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
2141 don't call start_source_file debug hook here...
2142 (finish_options): ... but here, after outputting predefined and
2143 command line defines and undefs.
2146 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
2148 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
2149 optimizing away empty bb with no successors, move over its
2150 footer chain to fallthru predecessor.
2151 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
2152 (rtl_split_edge): For asm goto call patch_jump_insn even if
2153 splitting fallthru edge.
2156 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
2157 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
2158 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2159 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
2163 * c-parser.c (c_parser_expression): Mark LHS of a comma
2164 expression as read if it is a decl, handled component or
2165 COMPOUND_EXPR with that on the RHS.
2166 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
2167 if it is a decl or handled component.
2169 2010-05-11 Jan Hubicka <jh@suse.cz>
2171 * lto-symtab.c (lto_symtab_free): New function.
2172 * lto-streamer.h (lto_symtab_free): Declare.
2174 2010-05-11 Jan Hubicka <jh@suse.cz>
2176 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
2177 that if function is needed it is reachable.
2178 (lto_output_node): See if it the function is reachable or referenced.
2179 (output_cgraph): Update call of lto_output_node.
2180 * lto-streamer.h (reachable_from_other_partition_p): Declare.
2182 2010-05-11 Jan Hubicka <jh@suse.cz>
2184 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
2187 2010-05-11 Jan Hubicka <jh@suse.cz>
2189 PR tree-optimize/44063
2190 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
2192 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
2194 (estimate_function_body_sizes): Compute sizes even when disregarding.
2196 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
2198 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
2200 2010-05-11 Jan Hubicka <jh@suse.cz>
2202 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
2203 into every boundary.
2205 2010-05-11 Jan Hubicka <jh@suse.cz>
2207 * matrix-reorg.c (matrix_reorg): Rebuild edges.
2209 2010-05-11 Jan Hubicka <jh@suse.cz>
2211 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
2212 lto_streamer_cache_delete): Put nodes into heap.
2213 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
2216 2010-05-11 Jan Hubicka <jh@suse.cz>
2218 * cgraphbuild.c (cgraph_rebuild_references): New.
2219 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
2221 * cgraph.h (cgraph_rebuild_references): Declare.
2222 * tree-inline.c (tree_function_versioning): Use it.
2223 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
2225 2010-05-11 Jan Hubicka <jh@suse.cz>
2227 * cgraph.c: Include ipa-utils.h
2228 (cgraph_create_virtual_clone): Update references.
2229 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
2231 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2233 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
2234 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
2237 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2239 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
2241 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2243 * gcc.c (execute): For -### don't quote arguments that
2244 contain just alphanumerics and _/-. characters.
2245 * doc/invoke.texi: Document that change for -###.
2248 * df-problems.c (struct dead_debug): Add to_rescan field.
2249 (dead_debug_init): Clear to_rescan field.
2250 (dead_debug_finish): Rescan all debug insns in to_rescan
2251 bitmap and free the bitmap.
2252 (dead_debug_insert_before): Instead of rescanning debug insns
2253 immediately queue their rescanning until dead_debug_finish.
2254 (df_note_bb_compute): After dead_debug_add do continue instead
2257 2010-05-10 Jakub Jelinek <jakub@redhat.com>
2260 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
2261 clear also INSN_REG_USE_LIST.
2263 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2265 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
2267 2010-05-10 Jan Hubicka <jh@suse.cz>
2269 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
2272 2010-05-10 Jan Hubicka <jh@suse.cz>
2274 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
2276 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
2277 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
2278 (lto_streamer_cache_create): Init alloc pool.
2279 (lto_streamer_cache_delete): Free alloc pool.
2280 * lto-streamer.h: Include alloc pool.
2281 (lto_streamer_cache_d): Use alloc pool.
2282 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
2284 2010-05-10 Jan Hubicka <jh@suse.cz>
2286 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
2287 * cgraphbuild.c: Include except.h
2288 (record_type_list, record_eh_tables): New function.
2289 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
2291 2010-05-10 Jan Hubicka <jh@suse.cz>
2293 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
2294 __frame_dummy_init_array_entry, force_to_data): Attribute as used
2297 2010-05-10 Michael Matz <matz@suse.de>
2299 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
2300 (can_reassociate_p): Use FLOAT_TYPE_P.
2301 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
2302 (vect_force_simple_reduction): ... this.
2303 * tree-parloops.c (gather_scalar_reductions): Use
2304 vect_force_simple_reduction.
2305 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
2306 vect_is_simple_reduction, add modify argument, if true rewrite
2307 "a-b" into "a+(-b)".
2308 (vect_is_simple_reduction, vect_force_simple_reduction): New
2310 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
2312 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
2313 Vladimir Makarov <vmakarov@redhat.com>
2315 PR rtl-optimization/44012
2316 * ira-build.c (remove_unnecessary_allocnos): Nullify
2317 regno_allocno_map of the removed allocno.
2319 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2321 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
2323 * configure: Regenerate.
2325 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2327 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
2329 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
2330 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
2332 * configure: Regenerate.
2334 2010-05-10 Richard Guenther <rguenther@suse.de>
2336 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
2337 marked if the entry identifier is marked.
2339 2010-05-10 Richard Guenther <rguenther@suse.de>
2341 * c-common.c (struct c_common_attributes): Add fnspec attribute.
2342 (handle_fnspec_attribute): New function.
2343 * gimple.h (gimple_call_return_flags): Declare.
2344 (gimple_call_arg_flags): Likewise.
2345 * gimple.c (gimple_call_arg_flags): New function.
2346 (gimple_call_return_flags): Likewise.
2347 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
2349 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
2351 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
2352 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
2354 (make_heapvar_for): ... this new function.
2355 (handle_rhs_call): Handle fnspec attribute argument specifiers.
2356 (handle_lhs_call): Likewise.
2357 (find_func_aliases): Adjust.
2359 2010-05-10 Richard Guenther <rguenther@suse.de>
2361 PR tree-optimization/44050
2362 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
2364 2010-05-10 Wei Guozhi <carrot@google.com>
2367 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
2369 2010-05-09 Joseph Myers <joseph@codesourcery.com>
2372 * c-typeck.c (lookup_field): Take a type directly. Update
2374 (build_component_ref): Update call to lookup_field.
2375 (set_init_label): Use lookup_field to find initialized field.
2376 Handle returned list of fields like a sequence of designators.
2378 2010-05-09 Richard Guenther <rguenther@suse.de>
2381 * fold-const.c (tree_single_nonzero_warnv_p): Properly
2382 handle &FUNCTION_DECL.
2384 2010-05-09 Joseph Myers <joseph@codesourcery.com>
2387 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
2388 structures and unions recursively.
2389 (detect_field_duplicates): Move duplicate detection with a hash to
2390 detect_field_duplicates_hash. Always use a hash if anonymous
2391 structures or unions are present.
2392 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
2395 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
2398 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
2399 detect Atom, Core 2 and Core i7.
2401 2010-05-09 Richard Guenther <rguenther@suse.de>
2403 * gcc.c (store_arg): Handle temporary file deletion for
2406 2010-05-09 Richard Guenther <rguenther@suse.de>
2409 * ipa-inline.c (estimate_function_body_sizes): Return after
2410 disregarding inline limits.
2412 2010-05-09 Richard Guenther <rguenther@suse.de>
2414 * gcc.c (store_arg): Revert last change.
2416 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
2419 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
2420 (optimize_ops_list): Call it.
2422 2010-05-08 Richard Guenther <rguenther@suse.de>
2424 PR tree-optimization/44030
2425 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
2426 NECESSARY flag if we propagate from a inserted expression.
2428 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
2430 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
2431 domain types as equal if they are both PLACEHOLDER_EXPRs.
2433 2010-05-08 Richard Guenther <rguenther@suse.de>
2435 * lto-wrapper.c (run_gcc): Remove linker output from
2436 command line for LTRANS invocation.
2438 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
2440 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2441 lto-macho as lto_binary_reader.
2442 * target.h (struct gcc_target): New hooks lto_start and lto_end.
2443 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
2444 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
2445 in lto_start and lto_end calls.
2446 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
2448 (scan_prog_file): Update is_elf_or_coff call.
2449 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
2451 * collect2.c (main): Fix enum comparison.
2453 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
2455 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
2456 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
2457 and TARGET_ASM_LTO_END.
2458 * darwin.c: Include obstack.h and lto-streamer.h.
2459 (lto_section_names_offset, lto_section_names_obstack,
2460 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
2462 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
2463 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
2464 to a temporary file.
2465 (darwin_asm_lto_end): New function. Restore asm_out_file.
2466 (darwin_asm_named_section): For LTO sections, replace the name with
2467 the offset of the section name in a string table, and build this
2469 (darwin_file_start): Initialize global vars for LTO support.
2470 (darwin_file_end): If output to asm_out_file was redirected, append it
2471 to the proper asm_out_file here. Add the section names section.
2473 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
2475 * c-pragma.c (pending_weak_d, pending_weak): New.
2476 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
2477 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
2478 handle_pragma_weak): Update the uses of pending_weaks.
2480 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2482 PR documentation/44016
2483 * doc/standards.texi (Standards): Link to unversioned
2484 cxx0x_status.html page.
2486 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
2489 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
2490 in addition to TREE_USED, to avoid "set but unused" warnings.
2492 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
2494 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
2495 (is_loop_prefetching_profitable): Do not insert prefetches
2496 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
2497 times the prefetch ahead distance.
2499 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
2501 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
2502 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
2503 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
2506 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
2508 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
2509 a diagnostic info when the insn-to-mem ratio is too small.
2511 2010-05-07 Richard Guenther <rguenther@suse.de>
2513 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
2515 (store_arg): Queue temp_filename for deletion instead of
2518 2010-05-07 Richard Guenther <rguenther@suse.de>
2520 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
2521 (run_gcc): Handle LTRANS phase invocation.
2522 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
2524 2010-05-07 Jakub Jelinek <jakub@redhat.com>
2526 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
2527 this is also meaningful on PARM_DECLs and RESULT_DECLs.
2529 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2531 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
2533 2010-05-07 Richard Guenther <rguenther@suse.de>
2535 PR tree-optimization/44020
2536 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
2537 code when PRE is not yet initialized.
2539 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2541 * config/mips/dbxmdebug.h: Remove.
2542 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
2544 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
2546 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
2547 with null pointer and also warn about ordered comparison of zero with
2550 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2552 * graphite-blocking.c
2553 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
2554 * graphite-clast-to-gimple.c
2555 (clast_to_gcc_expression): Same.
2556 (precision_for_value): Same.
2557 (precision_for_interval): Same.
2558 (gcc_type_for_interval): Same.
2559 (graphite_create_new_guard): Same.
2560 (compute_bounds_for_level): Same.
2561 (graphite_create_new_loop_guard): Same.
2562 * graphite-interchange.c
2563 (build_linearized_memory_access): Same.
2564 (pdr_stride_in_loop): Same.
2565 (memory_strides_in_loop_1): Same.
2566 (memory_strides_in_loop): Same.
2567 (extend_scattering): Same.
2568 (psct_scattering_dim_for_loop_depth): Same.
2569 (pbb_number_of_iterations): Same.
2571 (debug_iteration_domains): Same.
2573 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2574 (ppl_set_inhomogeneous_gmp): Same.
2575 (ppl_strip_loop): Same.
2576 (ppl_lexico_compare_linear_expressions): Same.
2577 (ppl_read_polyhedron_matrix): Same.
2578 (ppl_max_for_le_pointset): Same.
2580 (ppl_read_polyhedron_matrix): Same.
2581 (tree_int_to_gmp): Same.
2582 (gmp_cst_to_tree): Same.
2583 (ppl_set_inhomogeneous): Same.
2584 (ppl_set_inhomogeneous_tree): Same.
2585 (ppl_set_coef): Same.
2586 (ppl_set_coef_tree): Same.
2587 * graphite-sese-to-poly.c
2588 (build_pbb_scattering_polyhedrons): Same.
2589 (build_scop_scattering): Same.
2590 (scan_tree_for_params_right_scev): Same.
2591 (scan_tree_for_params): Same.
2592 (find_params_in_bb): Same.
2593 (find_scop_parameters): Same.
2594 (add_upper_bounds_from_estimated_nit): Same.
2595 (build_loop_iteration_domains): Same.
2596 (add_condition_to_domain): Same.
2597 (pdr_add_memory_accesses): Same.
2599 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2601 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
2602 CLooG's value_* macros to their respective mpz_* counterparts.
2603 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
2604 (graphite_create_new_loop_guard): Same.
2605 * graphite-interchange.c (build_linearized_memory_access): Same.
2606 (pdr_stride_in_loop): Same.
2607 (memory_strides_in_loop_1): Same.
2608 (1st_interchange_profitable_p): Same.
2609 * graphite-poly.c (extend_scattering): Same.
2610 (psct_scattering_dim_for_loop_depth): Same.
2611 (pbb_number_of_iterations): Same.
2612 (pbb_number_of_iterations_at_time): Same.
2613 * graphite-poly.h (new_1st_loop): Same.
2614 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
2615 (oppose_constraint): Same.
2616 (insert_constraint_into_matrix): Same.
2617 (ppl_set_inhomogeneous_gmp): Same.
2618 (ppl_set_coef_gmp): Same.
2619 (ppl_strip_loop): Same.
2620 (ppl_lexico_compare_linear_expressions): Same.
2621 (ppl_max_for_le_pointset): Same.
2622 (ppl_min_for_le_pointset): Same.
2623 (ppl_build_realtion): Same.
2624 * graphite-ppl.h (gmp_cst_to_tree): Same.
2625 (ppl_set_inhomogeneous): Same.
2626 (ppl_set_inhomogeneous_tree): Same.
2627 (ppl_set_coef): Same.
2628 (ppl_set_coef_tree): Same.
2629 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2630 (build_scop_scattering): Same.
2631 (add_value_to_dim): Same.
2632 (scan_tree_for_params_right_scev): Same.
2633 (scan_tree_for_params_int): Same.
2634 (scan_tree_for_params): Same.
2635 (find_params_in_bb): Same.
2636 (find_scop_parameters): Same.
2637 (add_upper_bounds_from_estimated_nit): Same.
2638 (build_loop_iteration_domains): Same.
2639 (create_linear_expr_from_tree): Same.
2640 (add_condition_to_domain): Same.
2641 (pdr_add_memory_accesses): Same.
2643 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
2644 Jason Merrill <jason@redhat.com>
2646 * c-common.c (c_common_reswords): Add nullptr.
2647 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
2648 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
2649 (gen_type_die_with_usage): Likewise.
2650 * dbxout.c (dbxout_type): Likewise.
2651 * sdbout.c (plain_type_1): Likewise.
2653 2010-05-06 Jason Merrill <jason@redhat.com>
2655 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
2656 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
2658 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
2660 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
2661 stripping WITH_SIZE_EXPR.
2662 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
2665 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2667 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
2668 list of obsolete configurations.
2669 Disabled check for obsolete configurations.
2670 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
2671 Removed support for previous versions.
2672 * config/mips/iris.h: Removed.
2673 * config/mips/iris5.h: Removed.
2674 * config/mips/iris6.h: Merged old iris.h contents.
2675 (TARGET_IRIX): Removed.
2676 (DRIVER_SELF_SPECS): Removed mabi=32.
2677 (IDENT_ASM_OP): Removed undef.
2678 (STARTFILE_SPEC): Removed mabi=32.
2679 (ENDFILE_SPEC): Likewise.
2680 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
2681 (MACHINE_TYPE): Update for IRIX 6.5.
2682 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
2683 TARGET_IRIX by TARGET_IRIX6.
2684 (mips_file_start): Likewise.
2685 (mips_output_external): Remove IRIX 5/6 O32 support.
2686 (mips_output_function_prologue): Likewise.
2687 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
2689 (TARGET_CPU_CPP_BUILTINS): Likewise.
2690 (TARGET_IRIX): Removed.
2691 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
2692 (MULTILIB_DIRNAMES): Removed 32.
2693 (MULTILIB_OSDIRNAMES): Removed ../lib.
2694 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
2695 (Specific, mips-sgi-irix5): Document removal.
2696 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
2697 Remove references to older IRIX 6 releases and the O32 ABI.
2699 2010-05-06 Jakub Jelinek <jakub@redhat.com>
2702 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
2703 instead of DF_REF_REAL_REG.
2705 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
2708 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
2709 handling to still return true for x64 targets.
2711 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2713 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
2715 2010-05-06 Jan Hubicka <jh@suse.cz>
2717 PR tree-optimization/43791
2718 * ipa-inline.c (update_caller_keys): Remove bogus
2719 disregard_inline_limits check.
2721 2010-05-06 Michael Matz <matz@suse.de>
2723 PR tree-optimization/43984
2724 * tree-ssa-pre.c (inserted_phi_names): Remove.
2725 (inserted_exprs): Change to bitmap.
2726 (create_expression_by_pieces): Set bits, don't append to vector.
2727 (insert_into_preds_of_block): Don't handle inserted_phi_names.
2728 (eliminate): Don't look at inserted_phi_names, remove deleted
2729 insns from inserted_exprs.
2730 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
2731 (init_pre, fini_pre): Allocate and free bitmaps.
2732 (execute_pre): Insert insns on edges before elimination.
2734 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2736 * tree.c (initializer_zerop): Handle STRING_CST.
2738 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2741 * doc/invoke.texi (Wimplicit): Document as C only.
2742 * opts.c (common_handle_option): Add argument kind.
2743 (handle_option): Rename as read_cmdline_option. Factor out code to...
2744 (handle_option): ... here. New.
2745 (handle_options): Rename as read_cmdline_options.
2746 (decode_options): Update call.
2747 (set_option): Use option index instead of option pointer. Classify
2748 diagnostics correctly.
2749 (enable_warning_as_error): Call handle_option.
2750 * opts.h (set_option): Update declaration.
2751 (handle_option): Declare.
2752 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
2753 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
2754 * c-opts.c (set_Wimplicit): Delete.
2755 (c_family_lang_mask): New static constant.
2756 (c_common_handle_option): Add argument kind. Use handle_option
2757 instead of set_Wimplicit.
2758 (c_common_post_options): warn_implicit and warn_implicit_int
2759 are disabled by default.
2760 * c-common.c (warn_implicit): Do not define here.
2761 * c-common.h (warn_implicit): Do not declare here.
2762 (c_common_handle_option): Update declaration.
2763 * lto-opts.c (lto_reissue_options): Update call to set_option.
2765 2010-05-06 Richard Guenther <rguenther@suse.de>
2767 PR tree-optimization/43571
2768 * domwalk.c (walk_dominator_tree): Walk the dominator
2769 sons in more optimal order.
2771 2010-05-06 Richard Guenther <rguenther@suse.de>
2773 PR tree-optimization/43934
2774 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
2775 (stmt_cost): Likewise.
2776 (extract_true_false_args_from_phi): New helper.
2777 (determine_max_movement): For PHI nodes verify we can hoist them
2778 and compute their cost.
2779 (determine_invariantness_stmt): Handle PHI nodes.
2780 (move_computations_stmt): Likewise. Hoist PHI nodes in
2781 if-converted form using COND_EXPRs.
2782 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
2783 (tree_ssa_lim): Likewise.
2784 * tree-flow.h (tree_ssa_lim): Adjust prototype.
2785 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
2787 2010-05-06 Richard Guenther <rguenther@suse.de>
2789 PR tree-optimization/43987
2790 * tree-ssa-structalias.c (could_have_pointers): For possibly
2791 address-taken variables force pointers to be recorded.
2792 (create_variable_info_for_1): Likewise.
2793 (push_fields_onto_fieldstack): Pass in wheter all fields
2795 (find_func_aliases): Query types instead of vars whether
2796 they contain pointers where appropriate.
2798 2010-05-06 Jan Hubicka <jh@suse.cz>
2800 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
2801 (record_reference, mark_address, mark_load, mark_store): Record
2803 (record_references_in_initializer): Update call of record_references.
2804 (rebuild_cgraph_edges): Remove all references before rebuiding.
2805 * cgraph.c (cgraph_create_node): Clear ref list.
2806 (cgraph_remove_node): Remove references.
2807 (dump_cgraph_node): Dump references.
2808 (cgraph_clone_node): Clone references.
2809 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
2810 (struct cgraph_node, varpool_node): Add ref_lst.
2811 * ipa-ref.c: New file.
2812 * ipa-ref.h: New file.
2813 * ipa-ref-inline.h: New file.
2814 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
2815 (referenced_from_other_partition_p): New function.
2816 (lto_output_varpool_node): Take set arugment; call
2817 referenced_from_other_partition.
2818 (lto_output_ref): New.
2819 (add_references): New.
2821 (output_cgraph): Compute boundary based on references; output refs.
2822 (output_varpool): Accept cgraph_node_set argument.
2825 (input_cgraph): Call input_refs.
2826 * lto-section-in.c (lto_section_name): Add refs.
2827 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
2828 (ipa-ref.o): New file.
2829 * varpool.c (varpool_node): Clear ipa ref list.
2830 (varpool_remove_node): Remove references.
2831 (dump_varpool_node): Dump references.
2832 (varpool_assemble_decl): Only compile finalized ones.
2833 (varpool_extra_name_alias): Initialize ref list.
2834 * lto-streamer.c (lto-get_section_name): Add .refs section.
2835 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
2836 (referenced_from_other_partition_p): Declared.
2838 2010-05-06 Ira Rosen <irar@il.ibm.com>
2840 PR tree-optimization/43901
2841 * tree-vect-stmts.c (vectorizable_call): Assert that vector
2842 type is not NULL if it's transformation phase, and return
2843 FALSE if it's analysis.
2844 (vectorizable_conversion, vectorizable_operation,
2845 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
2847 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2849 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2851 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2853 * config/mips/mips-protos.h
2854 (mips_small_register_classes_for_mode_p): Delete prototype.
2856 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
2858 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
2859 * config/arm/arm.c (multiple_operation_profitable_p,
2860 compute_offset_order): New static functions.
2861 (load_multiple_sequence, store_multiple_sequence): Use them.
2862 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
2863 memory offsets, not register numbers.
2864 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
2866 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
2868 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
2869 (get_pending_sizes, put_pending_size, put_pending_sizes):
2870 Update the uses of pending_sizes.
2871 * c-decl.c (store_parm_decls): Likewise.
2872 * c-tree.h (struct c_arg_info): Likewise.
2873 * tree.h: Update the prototype for get_pending_sizes and
2876 2010-05-05 Jason Merrill <jason@redhat.com>
2879 * c-common.c (handle_aligned_attribute): Respect
2880 ATTR_FLAG_TYPE_IN_PLACE.
2883 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
2884 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2885 (TARGET_INITIALIZER): Use it.
2886 * c-common.c (attribute_takes_identifier_p): Call it.
2887 * c-common.h: Update prototype.
2888 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
2889 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2891 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2894 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
2895 DW_ID_down_case for Fortran compilation units.
2897 2010-05-05 Jan Hubicka <jh@suse.cz>
2899 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
2902 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
2904 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
2905 a variable-sized RESULT_DECL.
2907 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
2909 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
2911 2010-05-05 Jason Merrill <jason@redhat.com>
2914 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
2916 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
2918 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
2919 Jakub Jelinek <jakub@redhat.com>
2922 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
2923 (dead_debug_init, dead_debug_finish): New functions.
2924 (dead_debug_add, dead_debug_insert_before): Likewise.
2925 (df_note_bb_compute): Initialize a dead_debug object, add dead
2926 debug uses to it, insert debug bind insns before death insns,
2927 reset debug insns that refer to pending uses at the end.
2928 * rtl.h (make_debug_expr_from_rtl): New prototype.
2929 * varasm.c (make_debug_expr_from_rtl): New function.
2931 2010-05-05 Jan Hubicka <jh@suse.cz>
2933 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
2934 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
2935 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
2936 lto_varpool_encoder_deref, lto_varpool_encoder_size,
2937 lto_varpool_encoder_encode_initializer_p,
2938 lto_set_varpool_encoder_encode_initializer): New functions.
2939 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
2940 call output_varpool.
2941 (input_varpool_node): Do not always set analyzed.
2942 (input_cgraph_1): Return vector of cgraph nodes.
2943 (input_varpool_1): Return vector of varpools.
2944 (input_cgraph): Free the vectors.
2945 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2946 output only initializers needed.
2947 (lto_output): Only call output_cgraph.
2948 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
2949 * lto-section-out.c (lto_new_out_decl_state): Initialize
2950 state->varpool_node_encoder.
2951 * lto-streamer.h (lto_varpool_encoder_d): New.
2952 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
2953 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
2954 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
2955 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
2956 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
2958 (output_varpool, input_varpool): Remove declarations.
2960 2010-05-05 Jan Hubicka <jh@suse.cz>
2962 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
2963 with body can prevail.
2965 2010-05-05 Jan Hubicka <jh@suse.cz>
2967 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
2970 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2972 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
2974 * gengtype.h (erro_at_line): Constify pos argument.
2976 * gengtype.c: Include hashtab.h.
2977 (enum gc_used): Document GC_MAYBE_POINTED_TO.
2978 (error_at_line): Constify pos argument.
2979 (do_typedef): Initialize p->opt field.
2980 (get_file_gtfilename): Fix comment typo.
2981 (struct walk_type_data): Constify line field.
2982 (get_output_file_for_structure): New function.
2983 (write_local_func_for_structure): Constify orig_s argument.
2984 Use get_output_file_for_structure.
2985 (write_func_for_structure): Use get_output_file_for_structure.
2986 (INDENT): New define.
2987 (dump_pair, dump_type, dump_type_list, dump_typekind)
2988 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
2989 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
2991 (seen_types): New variable.
2992 (main): New variable do_dump. Process "-d" command line option.
2993 Call dump_everything if dump requested.
2995 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2997 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
2998 in a temporary instead of invoking the macro multiple times.
2999 (track_expr_p): Likewise.
3001 2010-05-04 Neil Vachharajani <nvachhar@google.com>
3003 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3005 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3006 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
3007 conditions for printing notes.
3008 * common.opt (-Wcoverage-mismatch): Allow negative, default to
3009 true, update documentation.
3010 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3012 2010-05-04 Jakub Jelinek <jakub@redhat.com>
3015 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3018 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3021 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3022 (*sse_prologue_save_insn1): Likewise.
3023 (SSE prologue save splitter): Likewise.
3025 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
3027 * tree.c (free_lang_data_in_one_sizepos): New inline function.
3028 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3029 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3030 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3031 all decls. Call it on DECL_FIELD_OFFSET of fields.
3032 (find_decls_types_r): Follow DECL_VALUE_EXPR.
3033 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3035 2010-05-04 Martin Jambor <mjambor@suse.cz>
3037 * tree-sra.c (build_access_from_expr_1): The first parameter type
3038 changed to simple tree.
3039 (build_access_from_expr): Likewise, gsi parameter was eliminated.
3040 (scan_assign_result): Renamed to assignment_mod_result, enum elements
3042 (build_accesses_from_assign): Removed all parameters except for a
3043 simple gimple statement. Now returns a simple bool.
3044 (scan_function): All non-analysis parts moved to separate functions
3045 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
3046 parameters and updated both callers.
3047 (sra_modify_expr): Removed parameter data.
3048 (sra_modify_function_body): New function.
3049 (perform_intra_sra): Call sra_modify_function_body to modify the
3051 (replace_removed_params_ssa_names): Parameter data changed into
3053 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
3054 changed the parameter dont_convert to convert with the opposite
3056 (sra_ipa_modify_assign): Parameter data changed into adjustments
3057 vector, return value changed to bool.
3058 (ipa_sra_modify_function_body): New function.
3059 (sra_ipa_reset_debug_stmts): Updated a comment.
3060 (modify_function): Use ipa_sra_modify_function_body to modify function
3063 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3066 * alias.c (true_dependence): Handle the same VALUE in x and mem.
3067 (canon_true_dependence): Likewise.
3068 (write_dependence_p): Likewise.
3070 2010-05-04 Jan Hubicka <jh@suse.cz>
3072 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
3073 * cgraphbuild.c: Include ipa-utils.h
3074 (record_reference_ctx): New struct.
3075 (record_reference): Simplify to work on initializers; not statements.
3076 (mark_address, mark_load, mark_store): New.
3077 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3079 (record_references_in_initializer): Update use of record_reference.
3080 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3083 2010-05-04 Jan Hubicka <jh@suse.cz>
3085 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
3086 node will be removed anyway.
3087 (lto_varpool_replace_node): Allow also unanalyzed nodes;
3088 relink aliases of node into prevailing node.
3089 * varpool.c (varpool_remove_node): Remove aliases properly;
3090 when removing node, remove all its aliases too; remove DECL_INITIAL
3091 of removed node; ggc_free the varpool node.
3093 2010-05-04 Richard Guenther <rguenther@suse.de>
3095 PR tree-optimization/43879
3096 * tree-ssa-structalias.c (alias_get_name): Use
3097 DECL_ASSEMBLER_NAME if available.
3098 (create_function_info_for): Return the varinfo node.
3099 (ipa_pta_execute): Associate same-body aliases and extra names
3100 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
3102 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
3104 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
3106 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
3109 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
3110 only if HONOR_REG_ALLOC_ORDER is not defined.
3112 2010-05-04 Richard Guenther <rguenther@suse.de>
3114 PR tree-optimization/43949
3115 * tree-vrp.c (extract_range_from_binary_expr): Only handle
3118 2010-04-26 Jason Merrill <jason@redhat.com>
3120 * c.opt (-fstrict-enums): New.
3121 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
3123 2010-05-03 David Ung <davidu@mips.com>
3124 James E. Wilson <wilson@codesourcery.com>
3126 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
3127 emit the trap instruction before the divide for TUNE_74K.
3129 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
3131 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
3132 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
3133 based on the above, for new target hook.
3135 * hooks.c (hook_bool_mode_true): New generic hook.
3136 * hooks.h (hook_bool_mode_true): Add prototype.
3138 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
3140 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
3141 target hook, set to hook_bool_mode_false.
3142 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
3143 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
3144 with targetm.small_register_classes_for_mode_p.
3145 (find_reusable_reload): Likewise.
3146 (combine_reloads): Likewise.
3147 * reload1.c (reload_as_needed): Likewise.
3148 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
3149 * ifcvt.c (noce_process_if_block, check_cond_move_block,
3150 dead_or_predicable): Likewise.
3151 * regmove.c (optimize_reg_copy_1): Likewise.
3152 * calls.c (prepare_call_address): Likewise.
3153 (precompute_register_parameters): Likewise.
3155 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
3157 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
3158 implementation of the hook that considers all register classes
3159 small except for SH64.
3160 (sh_override_options): Use the new hook.
3161 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
3164 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
3166 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
3167 implementation of the hook that considers all register classes
3169 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
3172 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
3174 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
3175 implementation of the hook that considers all register classes
3177 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
3180 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
3182 * config/m32c/m32c.h: Likewise.
3183 * config/pdp11/pdp11.h: Likewise.
3184 * config/avr/avr.h: Likewise.
3185 * config/xtensa/xtensa.h: Likewise.
3186 * config/m68hc11/m68hc11.h: Likewise.
3187 * config/mn10300/mn10300.h: Likewise.
3188 * config/mcore/mcore.h: Likewise.
3189 * config/h8300/h8300.h: Likewise.
3190 * config/bfin/bfin.h: Likewise.
3192 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
3193 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
3195 2010-05-03 Anatoly Sokolov <aesok@post.ru>
3197 * double-int.h (tree_to_double_int): Remove macro.
3198 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
3199 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3200 (tree_to_double_int): New function.
3201 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
3203 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3205 2010-05-03 Richard Guenther <rguenther@suse.de>
3207 PR tree-optimization/43971
3208 * tree-ssa-structalias.c (get_constraint_for_1): Fix
3209 constraints in the !flag_delete_null_pointer_checks case.
3211 2010-05-03 Jakub Jelinek <jakub@redhat.com>
3214 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
3215 result mode matches original rtl mode.
3217 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
3220 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
3222 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3224 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
3225 when processing flag options.
3227 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3229 * gcov-iov.c (main): Change format string placeholder
3230 from %#08x to 0x%08x.
3231 * genchecksum.c (dosum): Change format string placeholder
3232 from %#02x to 0x%02x.
3234 2010-05-02 Richard Guenther <rguenther@suse.de>
3236 PR tree-optimization/43879
3237 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
3239 2010-05-02 Bruno Haible <bruno@clisp.org>
3241 * doc/extend.texi (Function Attributes): Fix a typo.
3243 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3246 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
3247 placeholder from 0x%x to %#x.
3248 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3249 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3250 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3251 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3252 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3253 * config/i386/i386.c (ix86_target_string): Ditto.
3254 * config/i386/i386.c (output_pic_addr_const): Ditto.
3255 (print_operand): Ditto.
3257 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3259 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
3260 placeholder from 0x%x to %#x.
3261 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
3262 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
3263 (ASM_OUTPUT_DEBUG_DATA): Ditto.
3264 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
3265 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
3266 * optc-gen.awk: Ditto.
3267 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
3268 (HOST_WIDE_INT_PRINT_HEX): Ditto.
3269 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
3270 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3272 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3274 * target.h (struct calls): Add function_value_regno_p field.
3275 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3276 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
3277 * targhooks.c (default_function_value_regno_p): New function.
3278 * targhooks.h (default_function_value_regno_p): Declare function.
3279 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
3280 * builtins.c. (apply_result_size): (Ditto.).
3281 * combine.c. (likely_spilled_retval_p): (Ditto.).
3282 * mode-switching.c. Include 'target.h'.
3283 (create_pre_exit): Use function_value_regno_p hook.
3284 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
3285 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
3286 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
3288 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
3289 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
3290 (ix86_function_value_regno_p): Declare as static, change argument
3291 type to const unsigned int.
3292 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
3294 2010-05-01 Richard Guenther <rguenther@suse.de>
3296 PR tree-optimization/43949
3297 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
3299 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
3301 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3303 * rtl.h (CONST_DOUBLE_P): Define.
3304 (rtx_to_double_int): Declare.
3305 * emit-rtl.c (rtx_to_double_int): New function.
3306 * dwarf2out.c (insert_double): New function.
3307 (loc_descriptor, add_const_value_attribute): Clean up, use
3308 rtx_to_double_int and insert_double functions.
3310 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
3312 * doc/extend.texi (Inline): Add missing return keyword to examples.
3313 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
3316 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
3318 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
3319 the variable part of the offset as well. Use highest_pow2_factor for
3320 all alignment checks.
3322 2010-04-30 Richard Guenther <rguenther@suse.de>
3324 PR tree-optimization/43879
3325 * tree-ssa-structalias.c (type_could_have_pointers): Functions
3328 2010-04-30 Jan Hubicka <jh@suse.cz>
3330 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
3332 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
3334 2010-04-30 Jan Hubicka <jh@suse.cz>
3336 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
3338 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
3339 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
3340 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
3341 cgraph_node_set_needs_ltrans_p): Remove.
3343 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
3345 * sdbout.c: Include vec.h, do not include varray.h.
3346 (deferred_global_decls, sdbout_global_decl,
3347 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
3348 * toplev.c: Do not include varray.h.
3349 (dump_memory_report): Do not dump VARRAY statistics.
3350 * gengtype.c (open_base_file): Ignore varray.h.
3351 * Makefile.in: Update for abovementioned changes.
3352 Remove all traces of varray.c and varray.h.
3353 * varray.c: Remove file.
3354 * varray.h: Remove file.
3356 2010-04-30 Jan Hubicka <jh@suse.cz>
3358 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
3361 2010-04-30 Jan Hubicka <jh@suse.cz>
3363 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
3366 2010-04-30 Richard Guenther <rguenther@suse.de>
3368 * tree-ssa-structalias.c (get_constraint_for_1): Generate
3369 constraints for CONSTRUCTOR.
3371 2010-04-30 Richard Guenther <rguenther@suse.de>
3374 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
3375 first after all lowering passes.
3377 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
3379 * toplev.c: Include varray.h for statistics dumping.
3380 * tree.h: Do not declare varray_head_tag.
3381 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
3382 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
3383 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
3384 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
3385 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
3386 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
3387 c-common.c, c-common.h, reg-stack.c, basic-block.h,
3388 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
3390 * Makefile.in: Update for abovementioned changes.
3392 2010-04-30 Jakub Jelinek <jakub@redhat.com>
3395 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
3397 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
3399 * config/picochip/picochip.c (picochip_legitimize_address): Define.
3400 Use this function to do machine-specific conversion.
3401 (picochip_legitimize_reload_address): Likewise.
3402 (picochip_legitimate_address_p): Check valid base register only if
3404 (picochip_check_conditional_copy): Check for modw only if opnd is
3406 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
3407 to call the function in c.
3408 * config/picochip/picochip-protos.h
3409 (picochip_legitimize_reload_address): Define.
3410 * config/picochip/picochip.md (supported_compare1): Define.
3412 2010-04-30 Jan Hubicka <jh@suse.cz>
3414 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
3415 (cgraph_global_info): Remove inlined.
3416 (LTO_cgraph_tag_names): Remove.
3417 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
3418 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
3419 simplify cgraph tags and document.
3420 (lto_output_node): Use only LTO_cgraph_unavail_node and
3421 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
3422 for_functions_valid, global info, process and output flags.
3423 (input_overwrite_node): Initialize estimated stack size and
3424 estimated growth. Do not read flags we no longer store.
3425 (input_node): Likewise do not read info no longer stored.
3426 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
3429 2010-04-30 Richard Guenther <rguenther@suse.de>
3431 PR tree-optimization/43879
3432 * tree-ssa-structalias.c (get_constraint_for_1): Properly
3433 handle non-zero initializers.
3435 2010-04-30 Richard Guenther <rguenther@suse.de>
3437 * builtins.c (fold_builtin_1): Delete free (0).
3439 2010-04-29 Jan Hubicka <jh@suse.cz>
3441 * gengtype.c (open_base_files): Add lto-streamer.h
3442 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
3443 (pass_ipa_cp): GGC collect.
3444 * toplev. (compile_file): Do not output symbols.
3445 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
3446 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
3447 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
3448 * lto-section-in.c: Include ggc.h
3449 (lto_new_in_decl_state): Alloc in GGC.
3450 (lto_delete_in_decl_state): Likewise.
3451 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
3454 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
3457 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
3458 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
3459 (HONOR_REG_ALLOC_ORDER): Describe new macro.
3460 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
3461 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
3462 account only if HONOR_REG_ALLOC_ORDER is not defined.
3463 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
3464 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
3466 2010-04-29 Jon Grant <04@jguk.org>
3468 * collect2.c (vflag): Change type from int to bool.
3470 (helpflag): New global bool.
3471 (main): Set vflag and debug with boolean, not integer truth values.
3472 Accept new "--help" option and output usage text if found.
3473 * collect2.h (vflag): Update prototype.
3476 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
3479 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
3481 2010-04-29 Richard Guenther <rguenther@suse.de>
3484 * plugin.h (invoke_plugin_callbacks): Annotate arguments
3485 with ATTRIBUTE_UNUSED.
3487 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
3490 * config/i386/i386.c (get_some_local_dynamic_name): Replace
3491 INSN_P with NONDEBUG_INSN_P.
3492 (distance_non_agu_define): Likewise.
3493 (distance_agu_use): Likewise.
3495 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
3497 From Dominique d'Humieres <dominiq@lps.ens.fr>
3499 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
3502 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
3504 * plugin.h (invoke_plugin_callbacks): New inline function.
3505 * plugin.c (flag_plugin_added): New global flag.
3506 (add_new_plugin): Initialize above flag.
3507 (invoke_plugin_callbacks): Rename to ...
3508 (invoke_plugin_callbacks_full): ... this.
3510 2010-04-28 Jan Hubicka <jh@suse.cz>
3512 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
3513 (lto_varpool_replace_node): New.
3514 (lto_symtab_resolve_symbols): Resolve varpool nodes.
3515 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
3516 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
3517 * cgraph.h (varpool_node_ptr): New type.
3518 (varpool_node_ptr): New vector.
3519 (varpool_node_set_def): New structure.
3520 (varpool_node_set): New type.
3521 (varpool_node_set): New vector.
3522 (varpool_node_set_element_def): New structure.
3523 (varpool_node_set_element, const_varpool_node_set_element): New types.
3524 (varpool_node_set_iterator): New type.
3525 (varpool_node): Add prev pointers, add used_from_other_partition,
3527 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
3528 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
3529 varpool_get_node, varpool_remove_node): Declare.
3530 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
3531 varpool_node_set_size): New inlines.
3532 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
3533 * tree-pass.h (varpool_node_set_def): Forward declare.
3534 (ipa_opt_pass_d): Summary writting takes vnode sets too.
3535 (ipa_write_optimization_summaries): Update prototype.
3536 * ipa-cp.c (ipcp_write_summary): Update.
3537 * ipa-reference.c (ipa_reference_write_summary): Update.
3538 * lto-cgraph.c (lto_output_varpool_node): New static function.
3539 (output_varpool): New function.
3540 (input_varpool_node): New static function.
3541 (input_varpool_1): New function.
3542 (input_cgraph): Input varpool.
3543 * ipa-pure-const.c (pure_const_write_summary): Update.
3544 * lto-streamer-out.c (lto_output): Update, output varpool too.
3545 (write_global_stream): Kill WPA hack.
3546 (produce_asm_for_decls): Update.
3547 (output_alias_pair_p): Handle variables.
3548 (output_unreferenced_globals): Output only needed partition of varpool.
3549 * ipa-inline.c (inline_write_summary): Update.
3550 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
3552 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
3553 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
3554 varpool_node_set_new, varpool_node_set_add,
3555 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
3556 debug_varpool_node_set): New functions.
3557 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
3558 (execute_one_pass): Process new decls too.
3559 (ipa_write_summaries_2): Pass around vsets.
3560 (ipa_write_summaries_1): Likewise.
3561 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
3563 (ipa_write_optimization_summaries_1): Pass around vsets.
3564 (ipa_write_optimization_summaries): Likewise.
3565 * varpool.c (varpool_get_node): New.
3566 (varpool_node): Update doubly linked lists.
3567 (varpool_remove_node): New.
3568 (dump_varpool_node): More dumping.
3569 (varpool_enqueue_needed_node): Update doubly linked lists.
3570 (decide_is_variable_needed): Kill ltrans hack.
3571 (varpool_finalize_decl): Kill lto hack.
3572 (varpool_assemble_decl): Skip decls in other partitions.
3573 (varpool_assemble_pending_decls): Update doubly linkes lists.
3574 (varpool_empty_needed_queue): Likewise.
3575 (varpool_extra_name_alias): Likewise.
3576 * lto-streamer.c (lto_get_section_name): Add vars section.
3577 * lto-streamer.h (lto_section_type): Update.
3578 (output_varpool, input_varpool): Declare.
3580 2010-04-28 Mike Stump <mikestump@comcast.net>
3582 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
3584 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3586 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
3587 record or union type with RECORD_OR_UNION_TYPE_P predicate.
3588 (lto_input_ts_type_tree_pointers): Likewise.
3589 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
3590 (lto_output_ts_type_tree_pointers): Likewise.
3592 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3594 Uniquization of constants at the Tree level
3595 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
3596 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
3598 (tree_output_constant_def): Declare.
3599 * gimplify.c (gimplify_init_constructor): When using block copy, first
3600 uniquize the constant constructor on the RHS.
3601 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
3602 DECL_IN_CONSTANT_POOL flag.
3603 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
3604 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
3606 (assemble_variable): Deal with symbols belonging to the tree constant
3608 (get_constant_section): Add ALIGN parameter and simplify.
3609 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
3610 (assemble_constant_contents): Use the expression of the VAR_DECL.
3611 (output_constant_def_contents): Use the alignment of the VAR_DECL.
3612 (tree_output_constant_def): New global function.
3613 (mark_constant): Use the expression of the VAR_DECL.
3614 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
3616 (output_object_block): Likewise and assemble the expression.
3618 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3620 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
3621 hash_tree, eq_tree): New tree hash table.
3622 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
3623 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
3624 lto_orig_address_remove): Reimplement.
3626 2010-04-28 Xinliang David Li <davidxl@google.com>
3629 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
3630 (compute_uninit_opnds_pos): New function.
3631 (is_non_loop_exit_postdominating): New function.
3632 (compute_control_dep_chain): New function.
3633 (find_pdom): New function.
3634 (convert_control_dep_chain_into_preds): New function.
3635 (find_predicates): New function.
3636 (find_control_equiv_block): New function.
3637 (collect_phi_def_edges): New function.
3638 (find_def_preds): New function.
3639 (find_dom): New function.
3640 (dump_predicates): New function.
3641 (get_cmp_code): New function.
3642 (is_value_included_in): New function.
3643 (find_matching_predicate_in_rest_chains): New function.
3644 (use_pred_not_overlap_with_undef_path_pred): New function.
3645 (is_use_properly_guarded): New function.
3646 (normalize_cond_1): New function.
3647 (is_and_or_or): New function.
3648 (normalize_cond): New function.
3649 (is_gcond_subset_of): New function.
3650 (is_subset_of_any): New function.
3651 (is_or_set_subset_of): New function.
3652 (is_and_set_subset_of): New function.
3653 (is_norm_cond_subset_of): New function.
3654 (is_pred_expr_subset_of): New function.
3655 (is_pred_chain_subset_of): New function.
3656 (is_included_in): New function.
3657 (is_superset_of): New function.
3658 (find_uninit_use): New function.
3659 (warn_uninitialized_phi): New function.
3660 (compute_possibly_undefined_names): New function.
3661 (ssa_undefined_value_p): New function.
3662 (execute_late_warn_uninitialized): New function.
3663 * tree-ssa.c (ssa_undefined_value_p): Removed.
3664 (warn_uninit): Changed to extern.
3665 (warn_uninitialized_phi): Removed.
3666 (warn_uninitialized_vars): Changed to extern.
3667 (execute_late_warn_uninitialized): Removed
3668 * tree-flow.h: Add new prototypes.
3669 * timevar.def: Add new time variable.
3670 * Makefile.in: Add new build file.
3672 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
3674 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
3677 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3680 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
3682 2010-04-28 Martin Jambor <mjambor@suse.cz>
3684 * cgraph.h (struct cgraph_node): New field indirect_calls.
3685 (struct cgraph_indirect_call_info): New type.
3686 (struct cgraph_edge): Removed field indirect_call. New fields
3687 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
3688 (cgraph_create_indirect_edge): Declare.
3689 (cgraph_make_edge_direct): Likewise.
3690 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
3691 * ipa-prop.h (struct ipa_param_call_note): Removed.
3692 (struct ipa_node_params): Removed field param_calls.
3693 (ipa_create_all_structures_for_iinln): Declare.
3694 * cgraph.c: Described indirect edges and uids in initial comment.
3695 (cgraph_add_edge_to_call_site_hash): New function.
3696 (cgraph_edge): Search also among the indirect edges, use
3697 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
3698 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
3699 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
3701 (initialize_inline_failed): Assign a reason to indirect edges.
3702 (cgraph_create_edge_1): New function.
3703 (cgraph_create_edge): Moved some functionality to
3704 cgraph_create_edge_1.
3705 (cgraph_create_indirect_edge): New function.
3706 (cgraph_edge_remove_callee): Add an assert checking for
3708 (cgraph_edge_remove_caller): Special-case indirect edges.
3709 (cgraph_remove_edge): Likewise.
3710 (cgraph_set_edge_callee): New function.
3711 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
3712 (cgraph_make_edge_direct): New function.
3713 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
3714 the declaration of the call statement matches.
3715 (cgraph_node_remove_callees): Special-case indirect edges.
3716 (cgraph_clone_edge): Likewise.
3717 (cgraph_clone_node): Clone also the indirect edges.
3718 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
3719 indirect_call, dump count of indirect_calls edges.
3720 * ipa-prop.c (iinlining_processed_edges): New variable.
3721 (ipa_note_param_call): Create indirect edges instead of
3722 creating notes. New parameter node.
3723 (ipa_analyze_call_uses): New parameter node, pass it on to
3724 ipa_note_param_call.
3725 (ipa_analyze_stmt_uses): Likewise.
3726 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
3727 (print_edge_addition_message): Work on edges rather than on notes.
3728 (update_call_notes_after_inlining): Likewise, renamed to
3729 update_indirect_edges_after_inlining.
3730 (ipa_create_all_structures_for_iinln): New function.
3731 (ipa_free_node_params_substructures): Do not free notes.
3732 (ipa_edge_duplication_hook): Propagate bits within
3733 iinlining_processed_edges bitmap.
3734 (ipa_node_duplication_hook): Do not duplicate notes.
3735 (free_all_ipa_structures_after_ipa_cp): Renamed to
3736 ipa_free_all_structures_after_ipa_cp.
3737 (free_all_ipa_structures_after_iinln): Renamed to
3738 ipa_free_all_structures_after_iinln.
3739 (ipa_write_param_call_note): Removed.
3740 (ipa_read_param_call_note): Removed.
3741 (ipa_write_indirect_edge_info): New function.
3742 (ipa_read_indirect_edge_info): Likewise.
3743 (ipa_write_node_info): Do not stream notes, do stream information
3745 (ipa_read_node_info): Likewise.
3746 (lto_ipa_fixup_call_notes): Removed.
3747 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
3748 * ipa-inline.c (pass_ipa_inline): Likewise.
3749 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
3750 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
3751 * tree-inline.c (copy_bb): Removed an unnecessary double check for
3753 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
3755 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
3756 (output_cgraph): Stream also indirect edges.
3757 (lto_output_edge): Added capability to stream indirect edges.
3758 (input_edge): Likewise.
3759 (input_cgraph_1): Likewise.
3760 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
3763 2010-04-28 Richard Guenther <rguenther@suse.de>
3765 PR tree-optimization/43879
3766 PR tree-optimization/43909
3767 * tree-ssa-structalias.c (struct variable_info): Add
3768 only_restrict_pointers flag.
3769 (new_var_info): Initialize it. Increment stats.total_vars here.
3770 (create_function_info_for): Do not increment stats.total_vars here.
3771 (get_function_part_constraint): Fix build with C++.
3772 (insert_into_field_list): Remove.
3773 (push_fields_onto_fieldstack): Properly merge fields.
3774 (create_variable_info_for): Split and simplify.
3775 (create_variable_info_for_1): New piece.
3776 (intra_create_variable_infos): Properly make restrict constraints
3779 2010-04-28 Richard Guenther <rguenther@suse.de>
3782 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
3784 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
3785 Jan Hubicka <hubicka@ucw.cz>
3787 * doc/invoke.texi (-Wsuggest-attribute=const,
3788 -Wsuggest-attribute=pure): Document.
3789 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
3790 (function_always_visible_to_compiler_p,
3791 suggest_attribute, warn_function_pure, warn_function_const):
3793 (check_call): Improve debug info.
3794 (analyze_function): Do not check availability.
3795 (add_new_function): Check availability.
3796 (propagate): Output warnings.
3797 (skip_function_for_local_pure_const): New function.
3798 (local_pure_const): Use it; output warnings.
3799 * common.opt (Wsuggest-attribute=const,
3800 Wsuggest-attribute=pure): New.
3802 2010-04-27 Jakub Jelinek <jakub@redhat.com>
3804 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
3805 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
3806 or DW_CFA_def_cfa_offset{,_sf}.
3808 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
3810 * tree.h: Fix truncated long macros.
3812 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
3814 * collect2.c (TARGET_64BIT): Redefine to target's default.
3815 * tlink.c: Likewise.
3816 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
3817 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
3818 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
3819 for underscoring __USER_LABEL_PREFIX__.
3820 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
3821 (SUB_LINK_ENTRY32): New.
3822 (SUB_LINK_ENTRY64): New.
3823 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
3824 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
3825 (SUB_LINK_ENTRY64): New.
3826 (SUB_LINK_ENTRY): New.
3827 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
3828 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
3829 x64 target is choosen.
3830 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
3831 * configure: Regenerated.
3832 * configure.ac (leading-mingw64-underscores): Option added.
3834 2010-04-27 Jan Hubicka <jh@suse.cz>
3836 * doc/invoke.texi (-fipa-profile): Document.
3837 * opts.c (decode_options): Enable ipa-profile at -O1.
3838 * timevar.def (TV_IPA_PROFILE): Define.
3839 * common.opt (fipa-profile): Add.
3840 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
3842 (cgraph_propagate_frequency): Handle only local ones.
3843 * tree-pass.h (pass_ipa_profile): Declare.
3844 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
3845 (pass_ipa_profile): Use TV_IPA_PROFILE.
3846 * ipa.c (ipa_profile): New function.
3847 (gate_ipa_profile): Likewise.
3848 (pass_ipa_profile): New global variable.
3849 * passes.c (pass_ipa_profile): New.
3851 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
3853 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
3855 2010-04-27 Martin Jambor <mjambor@suse.cz>
3858 * ipa.c (dissolve_same_comdat_group_list): New function.
3859 (function_and_variable_visibility): Call
3860 dissolve_same_comdat_group_list when comdat group contains external or
3862 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
3863 lists are circular and that they contain only DECL_ONE_ONLY nodes.
3865 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
3867 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
3868 (const_hash_1) <VECTOR_CST>: New case.
3869 (compare_constant) <VECTOR_CST>: Likewise.
3870 <ADDR_EXPR>: Deal with LABEL_REFs.
3871 (copy_constant) <VECTOR_CST>: New case.
3873 2010-04-27 Jan Hubicka <jh@suse.cz>
3875 * cgraph.c (cgraph_propagate_frequency): New function.
3876 * cgraph.h (cgraph_propagate_frequency): Declare.
3877 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
3878 cgraph_propagate_frequency.
3880 2010-04-27 Jakub Jelinek <jakub@redhat.com>
3882 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
3884 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
3887 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
3888 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
3889 here to determine which regs to push and how much stack to reserve.
3891 2010-04-27 Jie Zhang <jie@codesourcery.com>
3893 * doc/gimple.texi (gimple_statement_with_ops): Remove
3894 addresses_taken field.
3895 (gimple_statement_with_memory_ops): Likewise.
3897 2010-04-27 Jan Hubicka <jh@suse.cz>
3899 * tree-inline.c (eni_inlining_weights): Remove.
3900 (estimate_num_insns): Special case more builtins.
3902 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
3905 * c-typeck.c (build_binary_op): Move forward check for comparison
3906 pointer with null pointer constant and adjust the diagnostic message.
3908 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
3911 * configure.ac (gcc_cv_as_section_has_align): Set if installed
3912 binutils supports extended .section directive needed by LTO, or
3913 warn if older binutils found.
3914 (LTO_BINARY_READER): New AC_SUBST'd variable.
3915 (LTO_USE_LIBELF): Likewise.
3916 * gcc/config.gcc (lto_binary_reader): New target-specific configure
3918 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
3919 (LTO_USE_LIBELF): Likewise.
3920 * configure: Regenerate.
3922 * collect2.c (is_elf): Rename from this ...
3923 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
3924 object files in addition to ELF-formatted ones.
3925 (scan_prog_file): Caller updated. Also allow for LTO info marker
3926 symbol to be prefixed or not by an extra underscore.
3928 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
3929 * config/i386/winnt.c: Also #include lto-streamer.h
3930 (i386_pe_asm_named_section): Specify 1-byte section alignment for
3932 (i386_pe_asm_output_aligned_decl_common): Add comment.
3933 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
3935 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
3938 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
3939 Add missing earlyclobber for second alternative.
3941 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
3943 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
3944 bits for artificial defs at the top of the block.
3945 * fwprop.c (single_def_use_enter_block): Don't call it.
3947 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
3950 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
3951 instead of "$gcc_cv_objdump -T".
3952 Use "-undefined dynamic_lookup" on darwin.
3953 * gcc/configure: Regenerate.
3955 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3958 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
3960 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3962 * c-parser.c (struct c_token): Move location field up.
3963 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
3964 (struct c_declspecs): Convert typespec_word, storage_class, and
3965 default_int_p into bitfields.
3966 (struct c_declarator): Move loc field up.
3968 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3970 * cfgloop.h (struct loop): Move can_be_parallel field up.
3971 * ipa-prop.h (struct ip_node_params): Move bitfields up.
3972 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
3974 (struct iv_cand): Convert pos field into a bitfield.
3975 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
3977 (struct _stmt_vec_info): Shuffle fields for better packing.
3979 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3981 * varasm.c (IN_NAMED_SECTION): Remove guard.
3982 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
3983 (IN_NAMED_SECTION_P): ...this.
3984 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
3985 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3987 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3989 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
3990 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
3991 of shadowing it. Fix comments.
3993 2010-04-26 Jan Hubicka <jh@suse.cz>
3995 * cgraph.c (cgraph_create_node): Set node frequency to normal.
3996 (cgraph_clone_node): Copy function frequency.
3997 * cgraph.h (node_frequency): New enum
3998 (struct cgraph_node): Add.
3999 * final.c (rest_of_clean_state): Update.
4000 * lto-cgraph.c (lto_output_node): Output node frequency.
4001 (input_overwrite_node): Input node frequency.
4002 * tre-ssa-loop-ivopts (computation_cost): Update.
4003 * lto-streamer-out.c (output_function): Do not output function
4005 * predict.c (maybe_hot_frequency_p): Update and handle functions
4007 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4009 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4010 (compute_function_frequency): Set noreturn functions to be executed
4012 (choose_function_section): Update.
4013 * lto-streamer-in.c (input_function): Do not input function frequency.
4014 * function.c (allocate_struct_function): Do not initialize function
4016 * function.h (function_frequency): Remove.
4017 (struct function): Remove function frequency.
4018 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4019 (try_update): Update.
4020 * tree-inline.c (initialize_cfun): Do not update function frequency.
4021 * passes.c (pass_init_dump_file): Update.
4022 * i386.c (ix86_compute_frame_layout): Update.
4023 (ix86_pad_returns): Update.
4025 2010-04-26 Jie Zhang <jie@codesourcery.com>
4027 PR tree-optimization/43833
4028 * tree-vrp.c (range_int_cst_p): New.
4029 (range_int_cst_singleton_p): New.
4030 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4031 when both operands are constants. Use range_int_cst_p in
4034 2010-04-26 Jan Hubicka <jh@suse.cz>
4036 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4038 2010-04-26 Richard Guenther <rguenther@suse.de>
4041 * gimple.c (gimple_decl_printable_name): Deal gracefully
4042 with a NULL DECL_NAME.
4044 2010-04-26 Richard Guenther <rguenther@suse.de>
4047 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4048 if emitting debug information and it is either a function
4049 or a namespace decl.
4051 2010-04-26 Ira Rosen <irar@il.ibm.com>
4053 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4054 determine if the statement is vectorizable, and a macro to access it.
4055 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4056 Skip statements that can't be vectorized. If the analysis fails,
4057 mark the statement as unvectorizable if vectorizing basic block.
4058 (vect_compute_data_refs_alignment): Likewise.
4059 (vect_verify_datarefs_alignment): Skip statements marked as
4060 unvectorizable. Add print.
4061 (vect_analyze_group_access): Skip statements that can't be
4062 vectorized. If the analysis fails, mark the statement as
4063 unvectorizable if vectorizing basic block.
4064 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4065 * tree-vect-stmts.c (vectorizable_store): Fix the number of
4066 generated stmts for SLP.
4067 (new_stmt_vec_info): Initialize the new field.
4068 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4069 statements marked as unvectorizable.
4071 2010-04-25 Joseph Myers <joseph@codesourcery.com>
4073 * c-common.c (flag_isoc1x): New.
4074 (flag_isoc99): Update comment.
4075 * c-common.h (flag_isoc1x): New.
4076 (flag_isoc99): Update comment.
4077 * c-cppbuiltin.c (builtin_define_float_constants): Also define
4078 __<type>_DECIMAL_DIG__.
4079 * c-opts.c (set_std_c1x): New.
4080 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
4081 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
4082 * c.opt (-std=c1x, -std=gnu1x): New options.
4083 * doc/cpp.texi: Mention -std=c1x.
4084 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
4085 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
4086 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
4087 * doc/standards.texi: Mention C1X.
4088 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
4089 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
4090 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4093 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
4095 * config/i386/gmon-sol2.c (_mcleanup): Change format string
4096 placeholder from 0x%x to %#x.
4097 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4098 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4099 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4100 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4101 * config/i386/i386.c (ix86_target_string): Ditto.
4102 (output_pic_addr_const): Ditto.
4103 (print_operand): Ditto.
4105 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
4107 * combine.c (find_split_point): Add third argument. Use it
4108 to find nested multiply-accumulate instructions. Adjust calls.
4109 (try_combine): Adjust call to find_split_point.
4111 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4113 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
4115 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
4117 PR tree-optimization/41442
4118 * fold-const.c (merge_truthop_with_opposite_arm): New function.
4119 (fold_binary_loc): Call it.
4121 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4123 * toplev.c (general_init): Set default for fdiagnostics-show-option.
4124 * opts.c (common_handle_option): Allow disabling it.
4125 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
4127 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
4129 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
4130 between modes if both types are integral.
4132 2010-04-23 Richard Guenther <rguenther@suse.de>
4134 PR tree-optimization/43572
4135 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
4137 2010-04-23 Richard Guenther <rguenther@suse.de>
4140 * tree-inline.c (tree_can_inline_p): Also check compatibility
4143 2010-04-23 Martin Jambor <mjambor@suse.cz>
4145 PR tree-optimization/43846
4146 * tree-sra.c (struct access): New flag grp_assignment_read.
4147 (build_accesses_from_assign): Set grp_assignment_read.
4148 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
4149 (enum mark_read_status): New type.
4150 (analyze_access_subtree): Propagate grp_assignment_read, create
4151 accesses also if both direct_read and root->grp_assignment_read.
4153 2010-04-23 Martin Jambor <mjambor@suse.cz>
4156 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
4157 function does not have type attributes.
4159 2010-04-23 Richard Guenther <rguenther@suse.de>
4162 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
4165 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4167 * sese.h (create_if_region_on_edge): Remove.
4169 * sese.c (create_if_region_on_edge): Make static.
4171 * tree-inline.c: Do not include ggc.h.
4173 * expr.c: Do not include ggc.h.
4175 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
4178 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
4181 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4182 in the middle of insns for casesi_worker_2.
4184 2010-04-22 David Edelsohn <edelsohn@gnu.org>
4186 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
4188 2010-04-22 Ira Rosen <irar@il.ibm.com>
4190 PR tree-optimization/43842
4191 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4192 loop unrolling in update of exit phis. Fix comment.
4193 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
4194 least two reduction statements in the loop before starting SLP
4197 2010-04-22 Nick Clifton <nickc@redhat.com>
4199 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
4201 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
4203 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
4206 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4208 * tree-parloops.c (loop_parallel_p): New argument
4209 parloop_obstack. Pass it down.
4210 (parallelize_loops): New variable parloop_obstack. Initialize it,
4211 pass it down, free it.
4213 * tree-loop-linear.c (linear_transform_loops): Pass down
4216 * tree-data-ref.h (lambda_compute_access_matrices): New argument
4217 of type struct obstack *.
4219 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
4220 scratch_obstack. Initialize it, pass down, free it.
4222 * lambda.h (lambda_loop_new): Remove.
4223 (lambda_matrix_new, lambda_matrix_inverse)
4224 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
4225 argument of type struct obstack *.
4227 * lambda-trans.c (lambda_trans_matrix_new): New argument
4228 lambda_obstack. Pass it down, use obstack allocation for ret.
4229 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
4232 * lambda-mat.c (lambda_matrix_get_column)
4233 (lambda_matrix_project_to_null): Remove.
4234 (lambda_matrix_new): New argument lambda_obstack. Use obstack
4236 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
4239 * lambda-code.c (lambda_loop_new): New function.
4240 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
4241 (lambda_compute_auxillary_space, lambda_compute_target_space)
4242 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
4243 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
4244 (build_access_matrix): New argument lambda_obstack. Use obstack
4246 (lambda_compute_step_signs, lambda_compute_access_matrices): New
4247 argument lambda_obstack. Pass it down.
4249 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4251 * optabs.h (expand_widening_mult): Declare.
4253 2010-04-22 Richard Guenther <rguenther@suse.de>
4255 PR tree-optimization/43845
4256 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
4257 lookup the CALL_EXPR function and arguments.
4259 2010-04-22 Nick Clifton <nickc@redhat.com>
4261 * config/stormy16/stormy16.c
4262 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
4263 * config/stormy16/stormy16.h: Tidy up formatting.
4264 (DONT_USE_BUILTIN_SETJMP): Remove definition.
4265 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
4266 (ineqbranchsi): Delete pattern.
4267 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
4268 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
4269 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4270 stormy16-lib2-ucmpsi2.c.
4272 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4274 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
4275 df_simulate_find_noclobber_defs as appropriate. Keep track of an
4276 extra set merge_set_noclobber, and use it to relax the final test
4278 * df.h (df_simulate_find_noclobber_defs): Declare.
4279 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
4281 (df_simulate_find_noclobber_defs): New function.
4283 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
4285 * config/i386/i386.md: Use {} around multi-line preparation statements.
4287 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4289 * c-tree.h (push_init_level, pop_init_level, set_init_index)
4290 (process_init_element): New argument of type struct obstack *.
4292 * c-typeck.c (push_init_level, pop_init_level, set_designator)
4293 (set_init_index, set_init_label, set_nonincremental_init)
4294 (set_nonincremental_init_from_string, find_init_member)
4295 (output_init_element, output_pending_init_elements)
4296 (process_init_element): New argument braced_init_obstack. Pass it
4298 (push_range_stack, add_pending_init): New argument
4299 braced_init_obstack. Use obstack allocation.
4301 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
4302 braced_init_obstack. Pass it down.
4303 (c_parser_braced_init): New variables ret, braced_init_obstack.
4304 Initialize obstack, pass it down and finally free it.
4306 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4309 * tree-pass.h (pass_optimize_widening_mul): Declare.
4310 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
4311 gate_optimize_widening_mul): New static functions.
4312 (pass_optimize_widening_mul): New.
4313 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
4314 <case MULT_EXPR>: Remove support for widening multiplies.
4315 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
4316 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
4317 simplify_gen_unary rather than directly building extensions.
4318 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
4320 * expmed.c (expand_widening_mult): New function.
4321 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
4323 2010-04-21 Jan Hubicka <jh@suse.cz>
4325 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
4326 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
4327 * lto-wpa-fixup.c: Remove.
4328 * Makefile.in (lto-wpa-fixup.o): Remove.
4329 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
4330 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
4331 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
4333 2010-04-21 Jan Hubicka <jh@suse.cz>
4335 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
4336 add write_optimization_summary, read_optimization_summary.
4337 (ipa_write_summaries_of_cgraph_node_set): Remove.
4338 (ipa_write_optimization_summaries): Declare.
4339 (ipa_read_optimization_summaries): Declare.
4340 * ipa-cp.c (pass_ipa_cp): Update.
4341 * ipa-reference.c (pass_ipa_reference): Update.
4342 * ipa-pure-const.c (pass_ipa_pure_const): Update.
4343 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
4345 * ipa-inline.c (pass_ipa_inline): Update.
4346 * ipa.c (pass_ipa_whole_program): Update.
4347 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
4348 * passes.c (ipa_write_summaries_1): Do not test wpa.
4349 (ipa_write_optimization_summaries_1): New.
4350 (ipa_write_optimization_summaries): New.
4351 (ipa_read_summaries): Do not test ltrans.
4352 (ipa_read_optimization_summaries_1): New.
4353 (ipa_read_optimization_summaries): New.
4355 2010-04-21 Jan Hubicka <jh@suse.cz>
4357 * lto-cgraph.c (lto_output_node): Do not output comdat groups
4359 (output_cgraph): Do not arrange comdat groups for boundary nodes.
4361 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4364 * dwarf2out.c (add_name_and_src_coords_attributes): Add
4365 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
4367 2010-04-21 Jan Hubicka <jh@suse.cz>
4369 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
4371 2010-04-21 Jan Hubicka <jh@suse.cz>
4373 * varpool.c (decide_is_variable_needed): Variable is always needed
4376 2010-04-21 Jan Hubicka <jh@suse.cz>
4378 * opts.c (decode_options): Enable pure-const pass for whopr.
4380 2010-04-21 Jan Hubicka <jh@suse.cz>
4382 * cgraph.c (dump_cgraph_node): Dump also assembler name.
4383 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
4385 (cgraph_decide_inlining): Do not expect callee to be removed in all
4388 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
4390 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
4392 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
4394 * config/i386/i386.md (x86_shrd): Add athlon_decode and
4395 amdfam10_decode attributes.
4397 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4400 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
4401 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
4402 (lower_copyprivate_clauses): Use private var in outer
4403 context instead of original var. Make sure the types
4404 are correct for VLAs.
4406 2010-04-21 Richard Guenther <rguenther@suse.de>
4408 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
4409 to non-pointer objects.
4411 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4413 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
4414 last chain entry if it starts with the still current label.
4415 (add_location_or_const_value_attribute): Check that
4416 loc_list->first->next is NULL instead of comparing ->first with ->last.
4417 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
4418 to add_var_loc_to_decl.
4420 * dwarf2out.c (output_call_frame_info): For dw_cie_version
4421 >= 4 add also address size and segment size fields into CIE header.
4423 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
4424 long as address size is the same as sizeof (void *) and
4426 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
4427 address size or segment size is unexpected, return DW_EH_PE_omit.
4428 (classify_object_over_fdes): If get_cie_encoding returned
4429 DW_EH_PE_omit, return -1.
4430 (init_object): If classify_object_over_fdes returned -1,
4431 pretend there were no FDEs at all.
4433 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
4435 * config/i386/i386.md (bswap<mode>2): Macroize expander from
4436 bswap{si,di}2 using SWI48 mode iterator.
4437 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
4438 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
4439 set modrm attribute of bswap insn to 0 and remove length attribute.
4440 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
4441 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
4442 set mode attribute to <MODE> and remove length attribute.
4444 2010-04-20 James E. Wilson <wilson@codesourcery.com>
4446 PR rtl-optimization/43520
4447 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
4448 zero available registers.
4450 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4452 * builtins.c (fold_builtin_cproj): Fold more cases.
4454 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4456 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
4457 (fold_builtin_1): Fold builtin cproj.
4458 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
4459 Use ATTR_CONST_NOTHROW_LIST.
4461 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
4463 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
4464 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
4465 ffsi2_no_cmove for !TARGET_CMOVE.
4466 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
4467 (ffssi2): Remove expander.
4468 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
4470 (ctz<mode>2): Ditto from ctz{si,di}2.
4471 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
4473 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
4476 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4478 * dwarf2out.c (AT_linkage_name): Define.
4479 (clone_as_declaration): Handle DW_AT_linkage_name.
4480 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
4481 of DW_AT_MIPS_linkage_name.
4482 (move_linkage_attr): Likewise.
4483 (dwarf2out_finish): Likewise.
4485 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
4488 * fold-const.c (fold_comparison): New folding rule.
4490 2010-04-20 Anatoly Sokolov <aesok@post.ru>
4492 * double-int.h (double_int_setbit): Declare.
4493 * double-int.c (double_int_setbit): New function.
4494 * rtl.h (immed_double_int_const): Declare.
4495 * emit-rtl.c (immed_double_int_const): New function.
4496 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
4497 and immed_double_int_const functions.
4498 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
4499 expand_copysign_bit): (Ditto.).
4500 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
4501 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
4502 * dojump.c (prefer_and_bit_test): (Ditto.).
4503 * expr.c (convert_modes, reduce_to_bit_field_precision,
4504 const_vector_from_tree): (Ditto.).
4505 * expmed.c (mask_rtx, lshift_value): (Ditto.).
4507 2010-04-20 Jan Hubicka <jh@suse.cz>
4509 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
4510 (dump_cgraph_node): Dump new flags.
4511 * cgraph.h (struct cgraph_node): Add flags
4512 reachable_from_other_partition and in_other_partition.
4513 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
4514 other partition can not be removed.
4515 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
4516 the other partition must be output; silence sanity checking on
4517 leaking functions bodies from other paritition.
4518 * lto-cgraph.c (reachable_from_other_partition_p): New function.
4519 (lto_output_node): Output new flags; do not sanity check that inline
4520 clones are output; drop lto_forced_extern_inline_p code; do not mock
4521 visibility flags at partition boundaries.
4522 (add_node_to): New function.
4523 (output_cgraph): Use it to sort functions so masters appear before
4525 (input_overwrite_node): Input new flags.
4526 * passes.c (ipa_write_summaries): Do not call
4527 lto_new_extern_inline_states.
4528 * lto-section-out.c (forced_extern_inline,
4529 lto_new_extern_inline_states lto_delete_extern_inline_states,
4530 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
4531 * lto-streamer.h (lto_new_extern_inline_states,
4532 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
4533 lto_forced_extern_inline_p): Kill.
4535 2010-04-20 Richard Guenther <rguenther@suse.de>
4537 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
4538 from vars that can have pointers.
4539 (process_constraint): Dump useless constraints.
4541 2010-04-20 Richard Guenther <rguenther@suse.de>
4543 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
4544 (dump_sa_points_to_info): Remove asserts.
4545 (init_base_vars): nothing_id isn't an escape point nor does it
4548 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4550 * tree.h (TYPE_REF_IS_RVALUE): Define.
4551 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
4552 should_move_die_to_comdat, prune_unused_types_walk): Handle
4553 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
4554 (modified_type_die, gen_reference_type_die): Emit
4555 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
4556 if TYPE_REF_IS_RVALUE and -gdwarf-4.
4558 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4561 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
4562 calls for -fpic -m31 if they have been sibcall optimized.
4564 2010-04-19 James E. Wilson <wilson@codesourcery.com>
4566 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
4567 ar.lc fixed and call-used.
4569 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
4571 2010-04-19 Jan Hubicka <jh@suse.cz>
4573 * opts.c (decode_options): Disable whpr incompatible passes.
4574 * lto/lto.c (lto_1_to_1_map): Skip clones.
4575 (read_cgraph_and_symbols): Do not mark everything as needed.
4576 (do_whole_program_analysis): Do map only after optimizing;
4577 set proper cgraph_state; use passmanager.
4579 2010-04-19 DJ Delorie <dj@redhat.com>
4581 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
4582 POINTER_PLUS_EXPR and fix them.
4584 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
4586 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
4587 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
4588 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
4589 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
4590 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
4591 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
4592 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
4593 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
4594 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
4595 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
4596 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
4598 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
4600 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
4601 (check_cond_move_block): Likewise.
4602 (cond_move_process_if_block): Likewise.
4603 (noce_find_if_block): Improve formatting.
4604 (find_if_header): Pass 0 to memset and tweak conditions.
4605 (cond_exec_find_if_block): Fix long lines and tweak conditions.
4607 2010-04-19 Jakub Jelinek <jakub@redhat.com>
4609 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
4613 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
4614 with non-local decl doesn't need chain.
4616 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
4618 * ira-color.c (allocno_reload_assign): Avoid accumulating
4619 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
4621 2010-04-19 Martin Jambor <mjambor@suse.cz>
4623 * gimple.h (create_tmp_reg): Declare.
4624 * gimplify.c (create_tmp_reg): New function.
4625 (gimplify_return_expr): Use create_tmp_reg.
4626 (gimplify_omp_atomic): Likewise.
4627 (gimple_regimplify_operands): Likewise.
4628 * tree-dfa.c (make_rename_temp): Likewise.
4629 * tree-predcom.c (predcom_tmp_var): Likewise.
4630 (reassociate_to_the_same_stmt): Likewise.
4631 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
4632 (get_replaced_param_substitute): Likewise.
4633 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4634 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
4635 * tree-ssa-pre.c (get_representative_for): Likewise.
4636 (create_expression_by_pieces): Likewise.
4637 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
4638 (create_tailcall_accumulator): Likewise.
4640 2010-04-19 Martin Jambor <mjambor@suse.cz>
4642 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
4644 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
4646 2010-04-19 Richard Guenther <rguenther@suse.de>
4648 PR tree-optimization/43796
4649 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
4650 from SCEV in the lattice.
4651 (vrp_visit_phi_node): Dump change.
4653 2010-04-19 Richard Guenther <rguenther@suse.de>
4655 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
4656 * configure: Re-generated.
4658 2010-04-19 Richard Guenther <rguenther@suse.de>
4660 PR tree-optimization/43783
4661 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
4662 constant ARRAY_REF operands two and three if possible.
4664 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
4667 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
4669 2010-04-19 Jie Zhang <jie@codesourcery.com>
4672 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
4674 2010-04-19 Ira Rosen <irar@il.ibm.com>
4676 PR tree-optimization/37027
4677 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
4678 and macro to access it.
4679 (vectorizable_reduction): Add argument.
4680 (vect_get_slp_defs): Likewise.
4681 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
4682 statements for possible use in SLP.
4683 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
4684 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
4685 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
4687 (vectorizable_reduction): Likewise.
4688 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
4690 (vectorizable_type_demotion, vectorizable_type_promotion,
4691 vectorizable_store): Likewise.
4692 (vect_analyze_stmt): Update call to vectorizable_reduction.
4693 (vect_transform_stmt): Likewise.
4694 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
4695 (vect_build_slp_tree): Fix indentation. Check that there are no loads
4696 from different interleaving chains in same node.
4697 (vect_slp_rearrange_stmts): New function.
4698 (vect_supported_load_permutation_p): Allow load permutations for
4699 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
4700 inside SLP nodes if necessary.
4701 (vect_analyze_slp_instance): Handle reductions.
4702 (vect_analyze_slp): Try to build SLP instances originating from groups
4704 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
4705 (vect_get_constant_vectors): Create initial vectors for reductions
4706 according to reduction code. Add new argument.
4707 (vect_get_slp_defs): Add new argument, pass it to
4708 vect_get_constant_vectors.
4709 (vect_schedule_slp_instance): Remove SLP tree root statements.
4711 2010-04-19 Jakub Jelinek <jakub@redhat.com>
4713 * tree.h (ENUM_IS_SCOPED): Define.
4714 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
4715 for ENUM_IS_SCOPED enums.
4717 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
4719 * fold-const.c (fold_comparison): Use ssizetype.
4720 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4721 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
4722 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
4723 * tree-object-size.c (compute_object_sizes): Use size_type_node.
4725 * tree.h (initialize_sizetypes): Remove parameter.
4726 (build_common_tree_nodes): Remove second parameter.
4727 * stor-layout.c (initialize_sizetypes): Remove parameter.
4728 Always create an unsigned type.
4729 (set_sizetype): Assert that the passed type is unsigned and simplify.
4730 * tree.c (build_common_tree_nodes): Remove second parameter.
4731 Adjust call to initialize_sizetypes.
4732 * c-decl.c (c_init_decl_processing): Remove second argument in call to
4733 build_common_tree_nodes.
4735 2010-04-18 Matthias Klose <doko@ubuntu.com>
4737 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
4739 2010-04-18 Ira Rosen <irar@il.ibm.com>
4741 PR tree-optimization/43771
4742 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
4743 load permutation doesn't have gaps.
4745 2010-04-18 Jan Hubicka <jh@suse.cz>
4747 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
4748 (sse_prologue_save_insn expander): Use new pattern.
4749 (sse_prologue_save_insn1): New pattern and splitter.
4750 (sse_prologue_save_insn): Update to deal also with 64bit aligned
4752 * i386.c (setup_incoming_varargs_64): Do not compute jump
4754 (ix86_gimplify_va_arg): Update alignment needed.
4755 (ix86_local_alignment): Do not align all local arrays to 128bit.
4757 2010-04-17 Jan Hubicka <jh@suse.cz>
4759 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
4761 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4763 * arm.md (negdi2): Remove redundant code to force values into a
4766 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4768 * arm/bpabi.S: Add EABI alignment attributes to objects.
4769 * arm/bpabi-v6m.S: Likewise.
4770 * arm/crti.asm: Likewise.
4771 * arm/crtn.asm: Likewise.
4772 * arm/lib1funcs.asm: Likewise.
4773 * arm/libunwind.S: Likewise.
4775 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4777 * arm-protos.h (tune_params): New structure.
4778 * arm.c (current_tune): New variable.
4779 (arm_constant_limit): Delete.
4780 (struct processors): Add pointer to the tune parameters.
4781 (arm_slowmul_tune): New tuning option.
4782 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
4783 (all_cores): Adjust to pick up the tuning model.
4784 (arm_constant_limit): New function.
4785 (arm_override_options): Select the appropriate tuning model. Delete
4786 initialization of arm_const_limit.
4787 (arm_split_constant): Use the new constant-limit model.
4788 (arm_rtx_costs): Pick up the current tuning model.
4789 * arm.md (is_strongarm, is_xscale): Delete.
4790 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
4791 for Xscale variant architectures.
4792 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
4794 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4796 * config/arm/arm.c (arm_gen_constant): Remove unused variable
4798 (arm_rtx_costs_1): Remove unused variable extra_cost.
4799 (arm_unwind_emit_set): Use variable offset.
4800 (thumb1_output_casesi): Remove unused variable flags.
4802 2010-04-16 Jeff Law <law@redhat.com>
4804 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
4805 needing assignment rather than doing a two-phase assignment. Remove
4806 unused variable 'm'.
4808 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4811 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
4813 2010-04-16 Doug Kwan <dougkwan@google.com>
4815 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
4816 (next_operand_entry_id): New static variable.
4817 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
4818 (add_to_ops_vec): Assigned unique ID to operand entry.
4819 (struct oecount_s): New field ID.
4820 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
4821 (undistribute_ops_list): Assign unique IDs to oecounts.
4822 (init_reassoc): reset next_operand_entry_id.
4824 2010-04-16 Doug Kwan <dougkwan@google.com>
4826 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
4827 missing left parenthesis.
4829 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
4831 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
4832 *btdi_rex64 using SWI48 mode iterator.
4833 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
4834 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
4835 *jcc_btdi_mask_rex64.
4837 2010-04-16 Anatoly Sokolov <aesok@post.ru>
4839 * double-int.h (tree_to_double_int): Convert to macro.
4840 * double-int.c (tree_to_double_int): Remove.
4842 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4845 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
4846 with want_address 2 and in case a single element list might be
4847 possible, call it again with want_address 0.
4849 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4851 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
4852 case 'W' print operands for HI mode.
4853 * config/h8300/h8300.h (Y0, Y2) : New constraints.
4854 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
4855 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
4856 * config/h8300/predicate.md (bit_register_indirect_operand): New.
4858 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
4860 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
4861 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
4862 #xx:3 and #xx:4 mode.
4864 * config/h8300/h8300.md (inverted load with HImode dest): Add
4865 support for H8300SX.
4867 * config/h8300/predicate.md (bit_operand): Allow immediate values that
4868 satisfy 'U' constraint.
4870 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4872 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
4873 * configure: Regenerate.
4874 * config.in: Regenerate.
4875 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
4878 2010-04-16 Richard Guenther <rguenther@suse.de>
4880 * tree.h (struct tree_decl_minimal): Move pt_uid ...
4881 (struct tree_decl_common): ... here.
4882 (DECL_PT_UID): Adjust.
4883 (SET_DECL_PT_UID): Likewise.
4884 (DECL_PT_UID_SET_P): Likewise.
4886 2010-04-16 Richard Guenther <rguenther@suse.de>
4888 PR tree-optimization/43572
4889 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
4890 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
4891 * tree-flow.h (is_call_clobbered): Remove.
4892 * tree-flow-inline.h (is_call_clobbered): Likewise.
4893 * tree-dfa.c (dump_variable): Do not dump call clobber state.
4894 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
4895 (execute_return_slot_opt): Adjust.
4896 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
4897 check for call clobbered vars here.
4898 (find_tail_calls): Move tailcall verification to the
4901 2010-04-16 Diego Novillo <dnovillo@google.com>
4903 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
4905 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4908 * config/arm/arm.md (cbranchqi4): New pattern.
4909 * config/arm/predicates.md (const0_operand,
4910 cbranchqi4_comparison_operator): New predicates.
4912 2010-04-16 Richard Guenther <rguenther@suse.de>
4914 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
4915 (dump_gimple_stmt): Likewise.
4917 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4919 * recog.h (struct recog_data): New field is_operator.
4920 (struct insn_operand_data): New field is_operator.
4921 * recog.c (extract_insn): Set recog_data.is_operator.
4922 * genoutput.c (output_operand_data): Emit code to set the
4924 * reload.c (find_reloads): Use it rather than testing for an
4925 empty constraint string.
4928 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
4929 If the previous insn is a cbranchsi4_insn with the same arguments,
4930 omit the compare instruction.
4932 * config/arm/arm.md (addsi3_cbranch): If destination is a high
4933 register, inputs must be low registers and we need a low register
4934 scratch. Handle alternative 2 like alternative 3.
4936 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4938 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
4939 don't call get_addr on both. If one expression is a VALUE and
4940 the other a REG, check VALUE's locs if the REG isn't among them.
4942 2010-04-16 Christian Bruel <christian.bruel@st.com>
4944 * config/sh/sh.h (sh_frame_pointer_required): New function.
4945 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
4946 (flag_omit_frame_pointer) Set.
4947 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
4948 (rounded_frame_size): Adjust size with outgoing_args_size.
4949 (sh_set_return_address): Must return from stack pointer.
4950 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
4951 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
4952 (ACCUMULATE_OUTGOING_ARGS): Define.
4953 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
4954 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
4956 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
4959 * config/sh/sh.c (sh_legitimize_reload_address): Use
4960 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
4961 Remove a unneeded check for offset_base.
4963 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
4965 * configure: Regenerated.
4967 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4969 * config/s390/s390.c (s390_call_save_register_used): Switch back
4970 to HARD_REGNO_NREGS.
4972 2010-04-15 Richard Guenther <rguenther@suse.de>
4974 * alias.c (alias_set_subset_of): Handle alias-set zero
4977 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
4978 Julian Brown <julian@codesourcery.com>
4980 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
4981 alternatives according to use of high and low regs.
4982 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4983 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
4984 optimizing for size on Thumb-2.
4986 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
4988 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
4990 2010-04-15 Richard Guenther <rguenther@suse.de>
4992 * tree-ssa-structalias.c (struct variable_info): Add
4994 (new_var_info): Initialize it.
4995 (dump_constraints): Support printing last added constraints.
4996 (debug_constraints): Adjust.
4997 (dump_constraint_graph): Likewise.
4998 (make_heapvar_for): Check for NULL cfun.
4999 (get_function_part_constraint): New function.
5000 (get_fi_for_callee): Likewise.
5001 (find_func_aliases): Properly implement IPA PTA constraints.
5002 (process_ipa_clobber): New function.
5003 (find_func_clobbers): Likewise.
5004 (insert_into_field_list_sorted): Remove.
5005 (create_function_info_for): Properly allocate vars for IPA mode.
5006 Do not use insert_into_field_list_sorted.
5007 (create_variable_info_for): Properly generate constraints for
5008 global vars in IPA mode.
5009 (dump_solution_for_var): Always dump the solution.
5010 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5011 (find_what_var_points_to): Adjust.
5012 (pt_solution_set): Change.
5013 (pt_solution_ior_into): New function.
5014 (pt_solution_empty_p): Export.
5015 (pt_solution_includes_global): Adjust.
5016 (pt_solution_includes_1): Likewise.
5017 (pt_solutions_intersect_1): Likewise.
5018 (dump_sa_points_to_info): Check some invariants.
5019 (solve_constraints): Move constraint dumping ...
5020 (compute_points_to_sets): ... here.
5021 (ipa_pta_execute): ... and here.
5022 (compute_may_aliases): Do not re-compute points-to info
5023 locally if IPA info is available.
5024 (ipa_escaped_pt): New global var.
5025 (ipa_pta_execute): Properly implement IPA PTA.
5026 * tree-into-ssa.c (dump_decl_set): Support dumping
5027 decls not in referenced-vars.
5028 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5029 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5030 (dump_points_to_solution): Likewise.
5031 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5032 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5033 (remap_gimple_stmt): Reset call clobber/use information if necessary.
5034 (copy_decl_to_var): Copy DECL_PT_UID.
5035 (copy_result_decl_to_var): Likewise.
5036 * tree.c (make_node_stat): Initialize DECL_PT_UID.
5037 (copy_node_stat): Copy it.
5038 * tree.h (DECL_PT_UID): New macro.
5039 (SET_DECL_PT_UID): Likewise.
5040 (DECL_PT_UID_SET_P): Likewise.
5041 (struct tree_decl_minimal): Add pt_uid member.
5042 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5043 (pt_solution_empty_p): Declare.
5044 (pt_solution_set): Adjust.
5045 (ipa_escaped_pt): Declare.
5046 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5047 * gimple-pretty-print.c (pp_points_to_solution): New function.
5048 (dump_gimple_call): Dump call clobber/use information.
5049 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5050 * tree-pass.h (TDF_ALIAS): New dump option.
5051 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5052 * doc/invoke.texi (-fipa-pta): Update documentation.
5054 2010-04-15 Richard Guenther <rguenther@suse.de>
5056 * Makefile.in (OBJS-common): Add gimple-fold.o.
5057 (gimple-fold.o): New rule.
5058 * tree.h (maybe_fold_offset_to_reference,
5059 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5061 * gimple.h: ... here.
5062 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5063 may_propagate_address_into_dereference): Move prototypes ...
5064 * gimple.h: ... here.
5065 * tree-ssa-ccp.c (get_symbol_constant_value,
5066 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5067 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5068 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5069 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5070 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
5071 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
5072 gimplify_and_update_call_from_tree): Move ...
5073 * gimple-fold.c: ... here. New file.
5074 (ccp_fold_builtin): Rename to ...
5075 (gimple_fold_builtin): ... this.
5076 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
5078 2010-04-15 Richard Guenther <rguenther@suse.de>
5080 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
5081 fit_double_type, force_fit_type_double, add_double_with_sign,
5082 neg_double, mul_double_with_sign, lshift_double, rshift_double,
5083 lrotate_double, rrotate_double, div_and_round_double): Move ...
5084 * double-int.c: ... here.
5085 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
5086 add_double, neg_double, mul_double_with_sign, mul_double,
5087 lshift_double, rshift_double, lrotate_double, rrotate_double,
5088 div_and_round_double): Move prototypes ...
5089 * double-int.h: ... here.
5091 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
5094 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
5095 matching constraints to ensure inputs match the output.
5097 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5100 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
5101 in an input-only operand.
5103 2010-04-15 Anatoly Sokolov <aesok@post.ru>
5105 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
5106 (double_int_not, double_int_lshift, double_int_rshift): Declare.
5107 (double_int_negative_p): Convert to static inline function.
5108 * double-int.c (double_int_lshift, double_int_lshift): New functions.
5109 (double_int_negative_p): Remove.
5110 * tree.h (lshift_double, rshift_double):
5111 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
5112 * fold-const.c (fold_convert_const_int_from_real,
5113 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
5114 (lshift_double): Change type of arith argument to bool.
5115 (rshift_double): Change type of arith argument to bool. Correct
5117 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5119 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
5122 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
5123 at the start and end of the then/else blocks, and omit them from the
5125 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
5126 argument; all callers changed. Pass zero to old_insns_match_p instead.
5127 (flow_find_head_matching_sequence): New function.
5128 (old_insns_match_p): Check REG_EH_REGION notes for calls.
5129 * basic-block.h (flow_find_cross_jump,
5130 flow_find_head_matching_sequence): Declare functions.
5132 2010-04-14 Jason Merrill <jason@redhat.com>
5135 * c-common.c (attribute_takes_identifier_p): New fn.
5136 * c-common.h: Declare it.
5138 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5140 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
5142 (*udivmod<mode>4): Ditto.
5144 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5146 * config/i386/i386.md (maxmin_int): Rename code attribute from
5147 maxminiprefix and update all users.
5148 (maxmin_float): Ditto from maxminfprefix.
5149 (logic): Ditto from logicprefix.
5150 (absneg_mnemonic): Ditto from absnegprefix.
5151 * config/i386/mmx.md: Update all users of maxminiprefix,
5152 maxminfprefix and logicprefix for rename.
5153 * config/i386/sse.md: Ditto.
5154 * config/i386/sync.md (sync_<code><mode>): Update for
5157 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5160 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
5161 warnings converted to errors.
5163 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5165 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
5166 used insn_type variable.
5167 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
5168 to avoid set-but-not-used warning.
5170 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5172 * df-core.c (df_ref_debug): Change format string placeholder
5174 * dwarf2asm.c (dw2_asm_output_data_raw,
5175 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
5176 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
5177 * dwarf2out.c (output_cfi, output_cfi_directive,
5178 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
5179 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
5181 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
5182 * print-rtl.c (print_rtx): Ditto.
5184 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5187 * builtins.c (expand_builtin_pow_root): New function to expand pow
5188 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
5189 series of sqrt and cbrt calls under -ffast-math.
5190 (expand_builtin_pow): Call it.
5192 2010-04-14 Michael Matz <matz@suse.de>
5194 PR tree-optimization/42963
5195 * tree-cfg.c (touched_switch_bbs): New static variable.
5196 (group_case_labels_stmt): New function broken out from ...
5197 (group_case_labels): ... here, use the above.
5198 (start_recording_case_labels): Allocate touched_switch_bbs.
5199 (end_recording_case_labels): Deallocate it, call
5200 group_case_labels_stmt.
5201 (gimple_redirect_edge_and_branch): Remember index of affected BB.
5203 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5205 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
5208 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5210 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
5212 2010-04-13 Jan Hubicka <jh@suse.cz>
5214 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
5215 of optimized out static functions.
5216 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
5217 cost computation. Also sanity check for overflows.
5218 (update_caller_keys): Update cgraph_edge_badness call; properly
5219 update fibheap and sanity check that it is up to date.
5220 (add_new_edges_to_heap): Update cgraph_edge_badness.
5221 (cgraph_decide_inlining_of_small_function): Likewise;
5222 add sanity checking that badness in heap is up to date;
5223 improve dumping of reason; Update badness of calls to the
5224 offline copy of function currently inlined; dump badness
5225 of functions not inlined because of unit growth limits.
5227 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5230 * c-common.c (pointer_int_sum): Disregard overflow that occured only
5231 because of sign-extension change when converting to sizetype here...
5232 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
5234 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
5235 the folding to constants. Remove redundant final conversion.
5236 (fold_binary) <associate>: Do not associate if the re-association of
5237 constants alone overflows.
5238 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
5239 to the end of the list.
5240 (multiple_of_p) <COND_EXPR>: New case.
5242 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5244 * opt-functions.awk (opt_sanitized_name): New.
5246 * optc-gen.awk: Use it
5247 * opth-gen.awk: Use it.
5249 2010-04-13 Martin Jambor <mjambor@suse.cz>
5251 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
5252 (sra_modify_assign): Delete stmts loading dead data even if racc has no
5253 children. Call replace_uses_with_default_def_ssa_name to handle
5256 2010-04-13 Michael Matz <matz@suse.de>
5259 * builtins.c (expand_builtin_interclass_mathfn): Also create
5260 a register if the predicate doesn't match.
5262 2010-04-13 Diego Novillo <dnovillo@google.com>
5264 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
5265 * c-pch.c: Include timevar.h.
5266 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
5267 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
5268 * ggc-common.c: Include timevar.h.
5269 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
5270 * timevar.def (TV_PCH_SAVE): Define.
5271 (TV_PCH_CPP_SAVE): Define.
5272 (TV_PCH_PTR_REALLOC): Define.
5273 (TV_PCH_PTR_SORT): Define.
5274 (TV_PCH_RESTORE): Define.
5275 (TV_PCH_CPP_RESTORE): Define.
5277 2010-04-13 Michael Matz <matz@suse.de>
5279 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
5281 (can_reassociate_p): New function.
5282 (break_up_subtract_bb, reassociate_bb): Use it.
5284 2010-04-13 Richard Guenther <rguenther@suse.de>
5287 * builtins.c (c_readstr): Fix assert.
5289 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
5291 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
5292 when generating cltd insn.
5294 (*ashl<mode>3_1): Remove special handling for register operand 2.
5295 (*ashlsi3_1_zext): Ditto.
5296 (*ashlhi3_1): Ditto.
5297 (*ashlhi3_1_lea): Ditto.
5298 (*ashlqi3_1): Ditto.
5299 (*ashlqi3_1_lea): Ditto.
5300 (*<shiftrt_insn><mode>3_1): Ditto.
5301 (*<shiftrt_insn>si3_1_zext): Ditto.
5302 (*<shiftrt_insn>qi3_1_slp): Ditto.
5303 (*<rotate_insn><mode>3_1): Ditto.
5304 (*<rotate_insn>si3_1_zext): Ditto.
5305 (*<rotate_insn>qi3_1_slp): Ditto.
5307 2010-04-13 Richard Guenther <rguenther@suse.de>
5309 * tree-ssa-structalias.c (callused_id): Remove.
5310 (call_stmt_vars): New.
5311 (get_call_vi): Likewise.
5312 (lookup_call_use_vi): Likewise.
5313 (lookup_call_clobber_vi): Likewise.
5314 (get_call_use_vi): Likewise.
5315 (get_call_clobber_vi): Likewise.
5316 (make_transitive_closure_constraints): Likewise.
5317 (handle_const_call): Adjust to do per-call call-used handling.
5318 (handle_pure_call): Likewise.
5319 (find_what_var_points_to): Remove general callused handling.
5320 (init_base_vars): Likewise.
5321 (init_alias_vars): Initialize call_stmt_vars.
5322 (compute_points_to_sets): Process call-used and call-clobbered
5323 vars for call statements.
5324 (delete_points_to_sets): Free call_stmt_vars.
5326 2010-04-13 Richard Guenther <rguenther@suse.de>
5328 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5329 Only add RW dependence for dependence distance zero.
5330 Adjust maximal vectorization factor according to dependences.
5331 Move alignment handling ...
5332 (vect_find_same_alignment_drs): ... here. New function.
5333 (vect_analyze_data_ref_dependences): Adjust.
5334 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
5335 (vect_analyze_data_refs): Adjust minimal vectorization factor
5336 according to data references.
5337 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
5338 dependences before determining the vectorization factor.
5339 Analyze alignment after determining the vectorization factor.
5340 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
5341 dependences before alignment.
5342 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
5344 (vect_analyze_data_refs): Likewise.
5345 (MAX_VECTORIZATION_FACTOR): New define.
5347 2010-04-13 Duncan Sands <baldrick@free.fr>
5349 * except.h (lang_eh_type_covers): Remove.
5350 * except.c (lang_eh_type_covers): Likewise.
5352 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5353 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5355 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
5356 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
5357 UNITS_PER_LONG where it is ABI relevant.
5358 (s390_return_addr_rtx): Likewise.
5359 (s390_back_chain_rtx): Likewise.
5360 (s390_frame_area): Likewise.
5361 (s390_frame_info): Likewise.
5362 (s390_initial_elimination_offset): Likewise.
5363 (save_gprs): Likewise.
5364 (s390_emit_prologue): Likewise.
5365 (s390_emit_epilogue): Likewise.
5366 (s390_function_arg_advance): Likewise.
5367 (s390_function_arg): Likewise.
5368 (s390_va_start): Likewise.
5369 (s390_gimplify_va_arg): Likewise.
5370 (s390_function_profiler): Likewise.
5371 (s390_optimize_prologue): Likewise.
5372 (s390_rtx_costs): Likewise.
5373 (s390_secondary_reload): Likewise.
5374 (s390_promote_function_mode): Likewise.
5375 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
5376 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
5377 registers available.
5378 (s390_unwind_word_mode): New function.
5379 (s390_function_value): Split 64 bit values into register pair if
5380 used as return value.
5381 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
5382 function call parameters. Handle parallels.
5383 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
5384 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
5385 (DWARF_CIE_DATA_ALIGNMENT): New macro.
5386 (s390_expand_setmem): Remove unused variable src_addr.
5387 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
5388 deal with 64 bit registers.
5389 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
5390 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
5391 (UNITS_PER_LONG): New macro.
5392 * libjava/include/s390-signal.h: Define extended ucontext
5393 structure containing the upper halfs of the 64 bit registers.
5395 2010-04-13 Simon Baldwin <simonb@google.com>
5397 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
5399 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5401 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
5402 rvalue on the RHS if the LHS is of a non-renamable type.
5403 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
5405 2010-04-13 Matthias Klose <doko@ubuntu.com>
5407 * gcc.c (cc1_options): Handle -iplugindir before processing
5408 the cc1 spec. Only add -iplugindir once.
5409 (cpp_unique_options): Add -iplugindir option if -fplugin* options
5411 * common.opt (iplugindir): Remove `Separate' property, initialize.
5412 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
5414 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
5415 (distclean): Remove plugin dir.
5416 * doc/invoke.texi: Document -iplugindir.
5418 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
5420 * doc/plugins.texi (Loading Plugins): Document short
5421 -fplugin=foo option.
5422 (Plugin API): Mention default_plugin_dir_name function.
5424 * gcc.c (find_file_spec_function): Add new declaration.
5425 (static_spec_func): Use it for "find-file".
5426 (find_file_spec_function): Add new function.
5427 (cc1_options): Add -iplugindir option if -fplugin* options found.
5429 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
5431 * plugin.c (add_new_plugin): Updated comment, and handle short
5433 (default_plugin_dir_name): Added new function.
5435 * common.opt (iplugindir): New option to set the plugin directory.
5437 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
5439 * config/i386/i386.md (any_rotate): New code iterator.
5440 (rotate_insn): New code attribute.
5442 (SWIM124): New mode iterator.
5443 (<rotate_insn>ti3): New expander.
5444 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
5445 any_rotate code iterator.
5446 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
5447 using any_rotate code iterator and SWIM124 mode iterator.
5448 (ix86_rotlti3): New insn_and_split pattern.
5449 (ix86_rotrti3): Ditto.
5450 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
5451 ix86_rotl{di,ti}3 patterns.
5452 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
5453 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
5454 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
5455 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
5456 code iterator and SWI mode iterator.
5457 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
5458 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
5460 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
5461 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
5462 (bswap rotatert splitter): Add splitter.
5463 (bswap splitter): Macroize splitter using any_rotate code iterator.
5464 Add insn predicate to split only for TARGET_USE_XCHGB or when
5465 optimizing function for size.
5467 2010-04-12 Steve Ellcey <sje@cup.hp.com>
5469 * config/pa/pa.c (emit_move_sequence): Remove use of
5470 deleted variable flag_argument_noalias.
5472 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5474 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
5476 Add to unsupported targets list.
5477 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
5478 sparc*-sun-solaris2.[567]* from target lists.
5479 * configure: Regenerate.
5480 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
5482 Remove Solaris 7 patch references.
5483 (Specific, sparc-sun-solaris2.7): Removed.
5484 (sparc-sun-solaris2*): Update Solaris 7 example.
5485 (sparc64-*-solaris2*): Likewise.
5487 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5489 * config.build (alpha*-dec-osf4*): Remove.
5490 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
5491 of obsolete configurations.
5492 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
5494 * config/alpha/t-osf4: Renamed to ...
5495 * config/alpha/t-osf5: ... this.
5496 * config/alpha/osf.h: Renamed to ...
5497 * config/alpha/osf5.h: ... this.
5498 Merged old osf5.h contents.
5500 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
5501 (EXTRA_SPECS): Removed.
5502 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
5503 reflect removal of Tru64 UNIX V4.0/V5.0 support.
5506 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5508 * doc/contrib.texi (Contributors, Rainer Orth): Update.
5510 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
5513 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
5514 __thiscall convention.
5516 2010-04-12 Steve Ellcey <sje@cup.hp.com>
5518 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
5520 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
5522 2010-04-12 Steve Ellcey <sje@cup.hp.com>
5524 * function.c (assign_parms_initialize_all): Add unused attribute
5527 2010-04-12 Richard Guenther <rguenther@suse.de>
5529 * gsstruct.def (GSS_CALL): New.
5530 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
5531 * gimple.h: Include tree-ssa-alias.h.
5532 (struct gimple_statement_call): New.
5533 (union gimple_statement_struct_d): Add gimple_call member.
5534 (gimple_call_reset_alias_info): Declare.
5535 (gimple_call_use_set): New function.
5536 (gimple_call_clobber_set): Likewise.
5537 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
5538 * gimple.c (gimple_call_reset_alias_info): New function.
5539 (gimple_build_call_1): Call it.
5540 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5541 * tree-inline.c (remap_gimple_stmt): Likewise.
5542 (expand_call_inline): Remove callused handling.
5543 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
5544 * tree-dfa.c (dump_variable): Likewise.
5545 * tree-parloops.c (parallelize_loops): Likewise.
5546 * tree-ssa.c (init_tree_ssa): Likewise.
5547 (delete_tree_ssa): Likewise.
5548 * tree-flow-inline.h (is_call_used): Remove.
5549 * tree-flow.h (struct gimple_df): Remove callused member.
5550 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
5551 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
5552 (ref_maybe_used_by_call_p_1): Simplify.
5553 (call_may_clobber_ref_p_1): Likewise.
5554 * tree-ssa-structalias.c (compute_points_to_sets): Set
5555 the call stmt used and clobbered sets.
5556 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
5557 (find_tail_calls): Verify the tail call.
5559 2010-04-12 Richard Guenther <rguenther@suse.de>
5561 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
5562 single-iteration always-inline inlining.
5563 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
5564 (cgraph_decide_inlining): Do not handle always-inline specially.
5565 (try_inline): Remove always-inline cycle detection special case.
5566 Do not recurse on always-inlines.
5567 (cgraph_early_inlining): Do not iterate if not optimizing.
5568 (cgraph_gate_early_inlining): remove.
5569 (pass_early_inline): Run unconditionally.
5570 (gate_cgraph_decide_inlining): New function.
5571 (pass_ipa_inline): Use it. Do not run the IPA inliner if
5572 not inlining or optimizing.
5573 (cgraph_decide_inlining_of_small_functions): Also consider
5574 always-inline functions.
5575 (cgraph_default_inline_p): Return true for nodes which should
5576 disregard inline limits.
5577 (estimate_function_body_sizes): Assume zero size and time for
5578 nodes which are marked as disregarding inline limits.
5579 (cgraph_decide_recursive_inlining): Do not perform recursive
5580 inlining on always-inline nodes.
5582 2010-04-12 Jakub Jelinek <jakub@redhat.com>
5585 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
5586 for exprs satisfying handled_component_p.
5588 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
5590 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
5591 non-constant aggregate elements.
5593 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
5594 is a real initialization.
5596 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
5599 * c-decl.c (start_function): Move forward check for nested function.
5601 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
5603 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
5604 * config/sh/sh.c: Include reload.h.
5605 (sh_legitimize_reload_address): New.
5606 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
5607 sh_legitimize_reload_address.
5609 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5611 * config/sh/sh.md (*movqi_pop): New insn pattern.
5612 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
5614 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5616 * config/i386/i386.md (any_shiftrt): New code iterator.
5617 (shiftrt_insn): New code attribute.
5619 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
5620 using any_shiftrt code iterator.
5621 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
5622 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
5623 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
5624 pattern from corresponding peephole2 patterns.
5625 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
5626 using any_shiftrt code iterator.
5627 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
5628 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
5629 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
5630 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
5631 *{ashr,lshr}<mode>3_cmp_zext.
5632 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
5634 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5636 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
5638 (*lshr<mode>3_cconly): Ditto.
5640 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5642 * config/i386/i386.md (lshr<mode>3): Macroize expander from
5643 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
5644 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
5645 pattern from *lshr{di,ti}3_1 and corresponding splitters using
5647 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
5648 from corresponding peephole2 patterns.
5649 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
5650 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
5651 and *lshrdi3_1_rex64 using SWI mode iterator.
5652 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
5653 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
5654 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
5655 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
5656 and *lshrdi3_cmp_rex64 using SWI mode iterator.
5657 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
5658 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
5659 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
5660 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
5663 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
5665 * config/i386/i386.md (ashr<mode>3): Macroize expander from
5666 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
5667 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
5668 pattern from *ashr{di,ti}3_1 and corresponding splitters using
5670 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
5671 from corresponding peephole2 patterns.
5672 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
5673 (ashrsi3_cvt): Rename from ashrsi3_31.
5674 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
5675 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
5676 and x86_64_shift_adj_3 using SWI48 mode iterator.
5677 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
5678 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
5679 and *ashrdi3_1_rex64 using SWI mode iterator.
5680 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
5681 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
5682 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
5683 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
5684 and *ashrdi3_cmp_rex64 using SWI mode iterator.
5685 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
5686 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
5687 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
5688 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
5690 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
5691 * config/i386/i386.c (ix86_split_ashr): Update for renamed
5692 x86_shift<mode>_adj_3 expanders.
5694 2010-04-10 Wei Guozhi <carrot@google.com>
5697 * config/arm/arm.c (arm_pic_static_addr): New function.
5698 (legitimize_pic_address): Call arm_pic_static_addr when it detects
5700 (arm_output_addr_const_extra): Output expression for new pattern.
5701 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
5703 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
5705 * ira-costs.c (record_reg_classes): Ignore alternatives that are
5708 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
5709 * web.c: Include "insn-config.h" and "recog.h".
5710 (union_match_dups): New function.
5711 (web_main): Call it.
5712 (union_defs): Don't try to recognize match_dups.
5714 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
5715 if doing so would replace the entire pattern.
5717 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
5721 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
5722 and splitter pattern. Change splitter operand 1 predicate to
5725 2010-04-09 Martin Jambor <mjambor@suse.cz>
5727 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
5728 lattices are addresses of CONST_DECLs with the same initial value.
5729 (ipcp_print_all_lattices): Print values of CONST_DECLs.
5730 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
5732 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5733 Bernd Schmidt <bernds@codesourcery.com>
5735 * loop-invariant.c (replace_uses): New static function.
5736 (move_invariant_reg): Use it to ensure we can replace the uses.
5738 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5740 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
5742 (picochip_override_options): Enable section anchors only above -O1.
5743 (picochip_reorg): Fixed a couple of build warnings.
5745 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5747 * configure.ac (plugin -rdynamic test): Log result.
5748 * configure: Regenerate.
5749 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
5750 (RDYNAMIC_SPEC): Define.
5751 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
5753 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5755 * configure.ac: Determine Sun ld version numbers.
5756 (comdat_group): Restrict GNU ld version checks to gld.
5757 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
5758 (enable_comdat): Support --enable-comdat.
5759 * configure: Regenerate.
5760 * doc/install.texi (Configuration): Document --enable-comdat.
5762 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5764 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
5765 * config/sol2-gld.h: ... here.
5766 * config.gcc (sparc*-*-solaris2*): Reflect this.
5767 (i[34567]86-*-solaris2*): Use it.
5769 2010-04-09 Steve Ellcey <sje@cup.hp.com>
5771 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
5773 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
5775 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5778 * diagnostic.c (diagnostic_initialize): Initialize
5779 some_warnings_are_errors.
5780 (diagnostic_finish): New.
5781 (diagnostic_action_after_output): Call it before exiting.
5782 (diagnostic_report_diagnostic): Do not print message here. Set
5783 some_warnings_are_errors.
5784 * diagnostic.h (diagnostic_context): Delete
5785 issue_warnings_are_errors_message. Add some_warnings_are_errors.
5786 (diagnostic_finish): Declare.
5787 * toplev.c (toplev_main): Call it before exit.
5789 2010-04-09 Jason Merrill <jason@redhat.com>
5792 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
5793 for incomplete type.
5796 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
5797 based on a warning flag.
5799 2010-04-09 Richard Guenther <rguenther@suse.de>
5801 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
5803 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
5806 * varasm.c (default_assemble_visibility): Wrap vars that are
5807 set, but unused, by targets without GAS.
5808 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
5809 Remove set, but unused, vars.
5810 (rs6000_legitimize_tls_address): Likewise.
5811 (altivec_expand_dst_builtin): Likewise.
5812 * config/darwin.c (machopic_classify_symbol): Likewise.
5813 (machopic_indirection_name): Likewise.
5815 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
5817 * config/i386/i386.md (DWI): New mode iterator.
5818 (S): New mode attribute.
5819 (shift_operand): Ditto.
5820 (shift_immediate_operand): Ditto.
5821 (ashl_input_operand): Ditto.
5822 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
5823 using SDWIM mode iterator.
5824 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
5825 pattern from *ashl{di,ti}3_1 and corresponding splitters using
5827 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
5828 from corresponding peephole2 patterns.
5829 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
5830 and x86_64_shift_adj_1 using SWI48 mode iterator.
5831 (x86_shift<mode>_adj_2): Ditto.
5832 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
5833 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
5834 using SWI48 mode iterator.
5835 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
5836 *ashldi3_cmp_rex64 using SWI mode iterator.
5837 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
5838 *ashldi3_cconly_rex64 using SWI mode iterator.
5839 * config/i386/i386.c (ix86_split_ashl): Update for renamed
5840 x86_shift<mode>_adj_{1,2}.
5841 (ix86_split_ashr): Ditto.
5842 (ix86_split_lshr): Ditto.
5844 2010-04-09 Richard Guenther <rguenther@suse.de>
5846 * target.h (builtin_conversion): Pass in input and output types.
5847 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
5848 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
5849 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
5850 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
5852 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
5854 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
5856 2010-04-09 Richard Guenther <rguenther@suse.de>
5859 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
5861 2010-04-09 Richard Guenther <rguenther@suse.de>
5863 * tree-vectorizer.h (struct _stmt_vec_info): Document
5864 that vectype is the type of the LHS.
5865 (supportable_widening_operation, supportable_narrowing_operation):
5866 Get both input and output vector types as arguments.
5867 (vect_is_simple_use_1): Declare.
5868 (get_same_sized_vectype): Likewise.
5869 * tree-vect-loop.c (vect_determine_vectorization_factor):
5870 Set STMT_VINFO_VECTYPE to the vector type of the def.
5871 (vectorizable_reduction): Adjust.
5872 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
5873 Adjust. Specify the output vector type.
5874 (vect_pattern_recog_1): Adjust.
5875 * tree-vect-stmts.c (get_same_sized_vectype): New function.
5876 (vectorizable_call): Adjust.
5877 (vectorizable_conversion): Likewise.
5878 (vectorizable_operation): Likewise.
5879 (vectorizable_type_demotion): Likewise.
5880 (vectorizable_type_promotion): Likewise.
5881 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
5883 (vect_is_simple_use_1): New function.
5884 (supportable_widening_operation): Get both input and output
5886 (supportable_narrowing_operation): Likewise.
5887 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
5889 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
5891 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
5892 __thiscall and _thiscall as predefined macros.
5893 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
5894 thiscall attribute handling.
5895 (ix86_comp_type_attributes): Likewise.
5896 (ix86_function_regparm): Likewise.
5897 (ix86_return_pops_args): Likewise.
5898 (init_cumulative_args): Likewise.
5899 (find_drap_reg): Likewise.
5900 (ix86_static_chain): Likewise.
5901 (x86_this_parameter): Likewise.
5902 (x86_output_mi_thunk): Likewise.
5903 (ix86_attribute_table): Add description for thiscall attribute.
5904 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
5905 * doc/extend.texi: Add documentation for thiscall.
5907 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5910 * c.opt (Wint-to-pointer-cast): Available in C++.
5911 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
5913 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
5915 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
5916 * calls.c (expand_call): Pass the function type to aggregate_value_p.
5917 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
5918 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
5919 function type instead. Reorder and simplify checks.
5921 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
5923 2010-04-08 Jing Yu <jingyu@google.com>
5924 Zdenek Dvorak <ook@ucw.cz>
5926 PR tree-optimization/42720
5927 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
5928 loop unswitch conditions here from ...
5929 (tree_unswitch_single_loop): ... here.
5931 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5933 * tree-if-conv.c: Fix comments and simplify logic.
5935 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5937 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
5938 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
5939 (main_tree_if_conversion): Update call to tree_if_conversion.
5941 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5944 * doc/invoke.texi (-b,-V): Delete.
5945 * doc/tm.texi: Do not mention -b.
5946 * gcc.c (display_help): Delete -b and -V.
5947 (process_command): Delete -b and -V.
5948 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
5950 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
5951 Wolfgang Gellerich <gellerich@de.ibm.com>
5953 Implement target hook for loop unrolling
5954 * target.h (loop_unroll_adjust): Add a new target hook function.
5955 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
5956 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
5957 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
5958 (s390_loop_unroll_adjust): Implement the new target hook for s390.
5959 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
5961 (decide_unroll_stupid): Likewise.
5963 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5966 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
5968 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5970 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
5971 (Specific, *-*-solaris2*): Likewise.
5972 Don't prefer Sun as over GNU as.
5974 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
5976 * config/s390/s390.c (override_options): Adjust the z10 defaults
5977 for max-unroll-times, max-completely-peeled-insns
5978 and max-completely-peel-times.
5980 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5982 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
5983 instructions for z10.
5984 (s390_expand_setmem): Likewise.
5985 (s390_expand_cmpmem): Likewise.
5987 2010-04-08 Richard Guenther <rguenther@suse.de>
5989 PR tree-optimization/43679
5990 * tree-ssa-pre.c (eliminate): Only propagate copies.
5992 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5995 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
5996 set but not used variable warning.
5998 2010-04-08 Wei Guozhi <carrot@google.com>
6001 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6002 (arm_size_rtx_costs): Call the new function when optimized for size.
6004 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6007 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6008 op0 is not a MEM, just return NULL instead of assertion
6010 (discover_nonconstant_array_refs): Don't walk debug stmts.
6012 2010-04-08 Doug Kwan <dougkwan@google.com>
6014 * configure.ac: Recognize gold and do not use its version number
6015 to test ld features.
6016 * configure: Regenerate.
6018 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
6021 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6022 (negate_value): Move code to push elements to broken_up_substracts ...
6023 (eliminate_plus_minus_pair): ... here. Push operands that have no
6024 negative pair to plus_negates.
6025 (repropagate_negates, init_reassoc, fini_reassoc): Update.
6027 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6029 * doc/install.texi (Configuration): Move description of
6030 --enable-lto, --with-libelf*, --enable-gold from Java section to
6033 * doc/generic.texi (Working with declarations)
6034 (Function Properties, C and C++ Trees): Fix typos.
6035 * doc/sourcebuild.texi (Top Level): Likewise.
6037 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6040 * tree.h (DECL_READ_P): Define.
6041 (struct tree_decl_common): Add decl_read_flag.
6042 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6043 a set but not used warning.
6044 (merge_decls): Merge DECL_READ_P flag.
6045 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6046 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6047 * c-common.c (handle_used_attribute, handle_unused_attribute):
6049 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6051 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6053 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6054 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6055 c_parser_binary_expression, c_parser_cast_expression,
6056 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6057 Call default_function_array_read_conversion instead of
6058 default_function_array_conversion where needed.
6059 (c_parser_unary_expression, c_parser_conditional_expression,
6060 c_parser_postfix_expression_after_primary, c_parser_initelt):
6061 Likewise. Call mark_exp_read where needed.
6062 (c_parser_statement_after_labels, c_parser_asm_operands,
6063 c_parser_typeof_specifier, c_parser_sizeof_expression,
6064 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
6066 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6068 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6069 (warn_unused_but_set_parameter): Default to warn_unused
6071 * doc/invoke.texi: Document -Wunused-but-set-variable and
6072 -Wunused-but-set-parameter.
6074 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
6075 used count variable.
6076 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
6077 when operandN variables aren't used in the body of the expander
6079 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
6080 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
6081 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
6082 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
6083 FOR_EACH_IMM_USE_ON_STMT): Likewise.
6084 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
6085 * tree.c (PROCESS_ARG): Likewise.
6087 2010-04-07 Simon Baldwin <simonb@google.com>
6089 * diagnostic.h (diagnostic_override_option_index): New macro to
6090 set a diagnostic's option_index.
6091 * c-tree.h (c_cpp_error): Add warning reason argument.
6092 * opts.c (_warning_as_error_callback): New.
6093 (register_warning_as_error_callback): Store callback for
6094 warnings enabled via enable_warning_as_error.
6095 (enable_warning_as_error): Call callback, minor code tidy.
6096 * opts.h (register_warning_as_error_callback): Declare.
6097 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
6098 response to -Werror=.
6099 (c_common_init_options): Register warning_as_error_callback in opts.c.
6100 * common.opt: Add -Wno-cpp option.
6101 * c-common.c (struct reason_option_codes_t): Map cpp warning
6102 reason codes to gcc option indexes.
6103 * (c_option_controlling_cpp_error): New function, lookup the gcc
6104 option index for a cpp warning reason code.
6105 * (c_cpp_error): Add warning reason argument, call
6106 c_option_controlling_cpp_error for diagnostic_override_option_index.
6107 * doc/invoke.texi: Document -Wno-cpp.
6109 2010-04-07 Richard Guenther <rguenther@suse.de>
6111 * ipa-reference.c (mark_load): Use get_base_address.
6112 (mark_store): Likewise.
6114 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
6115 inserting GIMPLE_NOPs into the IL.
6116 * tree-ssa-structalias.c (get_constraint_for_component_ref):
6117 Explicitly strip handled components and indirect references.
6119 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
6120 folding address expressions.
6121 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
6122 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
6123 operand_equal_p to compare decls.
6124 (ptr_deref_may_alias_decl_p): Likewise.
6125 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
6126 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
6127 Handle reversed comparison ops.
6128 * tree-sra.c (asm_visit_addr): Use get_base_address.
6129 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
6130 * ipa-reference.c (mark_address): Use get_base_address.
6132 2010-04-07 Richard Guenther <rguenther@suse.de>
6134 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
6135 Propagate constants everywhere.
6137 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6140 * tree.c (MAX_INT_CACHED_PREC): Define.
6141 (nonstandard_integer_type_cache): New array.
6142 (build_nonstandard_integer_type): Cache results for precision
6143 <= MAX_INT_CACHED_PREC.
6145 2010-04-07 Richard Guenther <rguenther@suse.de>
6147 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
6148 -fargument-noalias-global, -fargument-noalias-anything): Remove.
6149 * common.opt: Likewise.
6150 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
6151 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
6152 (nonoverlapping_memrefs_p): Likewise.
6153 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6154 * opts.c (common_handle_option): Handle OPT_fargument_alias,
6155 OPT_fargument_noalias, OPT_fargument_noalias_anything and
6156 OPT_fargument_noalias_global for backward compatibility.
6158 2010-04-07 Richard Guenther <rguenther@suse.de>
6160 PR tree-optimization/43270
6161 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
6162 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
6163 * tree-ssa-pre.c (phi_translate_1): Adjust.
6164 (fully_constant_expression): Split out vn_reference handling to ...
6165 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
6166 Fold reads from constant strings.
6167 (vn_reference_lookup): Handle fully constant references.
6168 (vn_reference_lookup_pieces): Likewise.
6169 * Makefile.in (expmed.o-warn): Add -Wno-error.
6171 2010-04-07 Martin Jambor <mjambor@suse.cz>
6173 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
6175 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
6178 * gcc.c: Add -static-libstdc++ to list of recognized options.
6180 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6182 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
6184 2010-04-07 Richard Guenther <rguenther@suse.de>
6187 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
6188 bases build simple mem attributes to retain points-to information.
6190 2010-04-07 Richard Guenther <rguenther@suse.de>
6193 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
6194 preserve points-to related information.
6196 2010-04-07 Richard Guenther <rguenther@suse.de>
6199 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
6200 discard plain indirect references.
6201 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
6202 * tree.c (tree_nop_conversion): Likewise.
6204 2010-04-07 Dodji Seketeli <dodji@redhat.com>
6207 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
6209 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
6211 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
6212 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
6214 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6216 * tree-if-conv.c: Fix indentation and comments.
6218 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6220 * tree-if-conv.c: Sort static functions in topological order.
6222 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6224 * tree-if-conv.c: Fix indentation and comments.
6226 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6229 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
6230 lang_hooks.types.type_for_size instead of
6231 build_nonstandard_integer_type.
6232 When converting an unsigned type to signed, double its precision.
6233 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
6234 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
6235 (graphite_create_new_loop_guard): When ub + 1 wraps around,
6238 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6241 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6242 POINTER_PLUS_EXPR for pointer types.
6244 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6247 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
6248 * graphite-clast-to-gimple.c: Include langhooks.h.
6249 (max_signed_precision_type): New.
6250 (max_precision_type): Takes two types as arguments.
6251 (precision_for_value): New.
6252 (precision_for_interval): New.
6253 (gcc_type_for_interval): New.
6254 (gcc_type_for_value): New.
6255 (gcc_type_for_clast_term): New.
6256 (gcc_type_for_clast_red): New.
6257 (gcc_type_for_clast_bin): New.
6258 (gcc_type_for_clast_expr): Split up into several functions.
6259 (gcc_type_for_clast_eq): Rewritten.
6260 (compute_bounds_for_level): New.
6261 (compute_type_for_level_1): New.
6262 (compute_type_for_level): New.
6263 (gcc_type_for_cloog_iv): Removed.
6264 (gcc_type_for_iv_of_clast_loop): Rewritten.
6265 (graphite_create_new_loop): Compute the lower and upper bound types
6266 with gcc_type_for_clast_expr.
6267 (graphite_create_new_loop_guard): Same.
6268 (find_cloog_iv_in_expr): Removed.
6269 (compute_cloog_iv_types_1): Removed.
6270 (compute_cloog_iv_types): Removed.
6271 (gloog): Do not call compute_cloog_iv_types.
6272 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
6274 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
6275 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
6276 (GBB_CLOOG_IV_TYPES): Removed.
6278 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6280 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
6281 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
6282 (detect_commutative_reduction): Same.
6284 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6286 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
6287 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
6289 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
6290 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
6291 (rewrite_commutative_reductions_out_of_ssa): Same.
6292 * passes.c (execute_function_todo): Call verify_ssa for every pass
6293 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
6294 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
6295 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
6296 with an extra argument.
6297 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
6298 verify_ssa only when the extra argument is true.
6299 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
6300 with an extra argument.
6301 (tree_transform_and_unroll_loop): Same.
6303 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6305 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
6306 for all the passes of the LNO having LOOP_CLOSED_SSA.
6307 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
6308 * tree-loop-distribution.c (pass_loop_distribution): Same.
6309 * tree-pass.h (TODO_verify_loops): Removed.
6310 * tree-ssa-loop.c (pass_tree_loop_init): Same.
6312 (pass_tree_unswitch): Same.
6313 (pass_predcom): Same.
6314 (pass_vectorize): Same.
6315 (pass_linear_transform): Same.
6316 (pass_graphite_transforms): Same.
6317 (pass_iv_canon): Same.
6318 (pass_complete_unroll): Same.
6319 (pass_complete_unrolli): Same.
6320 (pass_parallelize_loops): Same.
6321 (pass_loop_prefetch): Same.
6322 (pass_iv_optimize): Same.
6324 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
6327 * passes.c (init_optimization_passes): Move pass_lim before
6328 pass_copy_prop and pass_dce_loop.
6330 2010-04-06 Jakub Jelinek <jakub@redhat.com>
6333 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
6334 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
6335 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
6336 MULTI_* defines for 4 argument vpermil2p* builtins.
6338 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
6340 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
6341 * config/i386/i386.c (x86_maybe_negate_const_int): New.
6342 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
6343 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
6344 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
6345 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
6346 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
6347 Use x86_maybe_negate_const_int to output insn mnemonic.
6348 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
6349 check from instruction predicate. Update comments.
6350 * config/i386/sync.md (sync_add<mode>): Use
6351 x86_maybe_negate_const_int to output insn mnemonic.
6353 2010-04-06 Jan Hubicka <jh@suse.cz>
6355 PR tree-optimization/42906
6356 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
6357 IGNORE_SELF argument. Set visited_control_parents for fully
6359 (find_obviously_necessary_stmts): Update call of
6360 mark_control_dependent_edges_necessary.
6361 (propagate_necessity): Likewise. Handle PHI edges more curefully.
6363 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
6365 * config/i386/i386.md: Remove comment about 'e' and 'E'
6368 2010-04-06 Richard Guenther <rguenther@suse.de>
6370 PR tree-optimization/43627
6371 * tree-vrp.c (extract_range_from_unary_expr): Widenings
6372 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
6375 2010-04-06 Jakub Jelinek <jakub@redhat.com>
6377 * BASE-VER: Change to 4.6.0.
6380 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
6383 2010-04-06 Richard Guenther <rguenther@suse.de>
6386 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
6388 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6390 * doc/invoke.texi (Optimize Options): Document that LTO
6391 won't remove object access purely due to incompatible
6394 2010-04-04 Matthias Klose <doko@ubuntu.com>
6396 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
6397 Initialize variable.
6399 2010-04-03 Richard Guenther <rguenther@suse.de>
6402 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
6403 require a non-NULL MEM_OFFSET.
6405 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
6407 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
6408 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
6409 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
6410 config/alpha/predicates.md, config/arm/arm.md,
6411 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
6412 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
6413 config/darwin9.h, config/darwin.c, config/darwin.h,
6414 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
6415 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
6416 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
6417 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
6418 config/mips/mips.md, config/mn10300/mn10300.c,
6419 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
6420 config/rs6000/aix.h, config/rs6000/dfp.md,
6421 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
6422 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
6423 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
6424 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
6425 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
6426 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
6427 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
6428 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
6429 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
6430 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
6431 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
6432 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
6433 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
6434 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
6435 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
6436 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
6437 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
6438 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
6439 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
6440 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
6441 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
6442 opt-functions.awk, opth-gen.awk, params.def, passes.c,
6443 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
6444 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
6445 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
6446 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
6447 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
6448 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6449 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
6450 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
6451 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6452 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
6453 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
6454 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
6455 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
6456 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
6458 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6461 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
6462 * aclocal.m4: Regenerate.
6464 2010-04-02 Richard Guenther <rguenther@suse.de>
6466 PR tree-optimization/43629
6467 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
6468 if we have seen a constant value.
6470 2010-04-02 Joseph Myers <joseph@codesourcery.com>
6472 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
6474 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
6477 * arm.c (legitimize_tls_address): Adjust call to
6478 gen_tls_load_dot_plus_four.
6479 (arm_note_pic_base): New function.
6480 (arm_cannot_copy_insn_p): Use it.
6481 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
6484 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6489 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6491 * Makefile.in ($(out_object_file)): Depend on
6492 gt-$(basename $(notdir $(out_file))).h.
6494 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
6496 * config.gcc (lm32-*-rtems*): Add t-lm32.
6498 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
6500 * config.gcc: Add lm32-*-rtems*.
6501 * config/lm32/rtems.h: New file.
6503 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
6506 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
6508 2010-04-01 Jakub Jelinek <jakub@redhat.com>
6510 * dwarf2out.c (output_compilation_unit_header): For
6511 -gdwarf-4 use version 4 instead of version 3.
6512 (output_line_info): For version 4 and above emit additional
6513 maximum ops per insn header field.
6514 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
6516 * dwarf2out.c (is_c_family, is_java): Remove.
6517 (lower_bound_default): New function.
6518 (add_bound_info, gen_descr_array_type_die): Use it.
6520 2010-04-01 Dodji Seketeli <dodji@redhat.com>
6523 * dwarf2out.c (gen_variable_die): Allow debug info for variable
6524 re-declaration when it happens in a function.
6526 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
6528 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
6529 (cgraph_remove_function_insertion_hook): Same.
6530 (cgraph_call_function_insertion_hooks): Same.
6532 2010-04-01 Richard Guenther <rguenther@suse.de>
6535 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
6536 and TREE_THIS_VOLATILE.
6537 (copy_ref_info): Likewise.
6538 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
6539 * tree.c (build6_stat): Ignore side-effects of all but arg5
6540 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
6543 2010-04-01 Richard Guenther <rguenther@suse.de>
6545 PR tree-optimization/43607
6546 * ipa-type-escape.c (check_call): Do not access non-existing
6549 2010-04-01 Richard Guenther <rguenther@suse.de>
6553 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
6554 Jack Howarth <howarth@bromo.med.uc.edu>
6556 * tree-profile.c (tree_init_ic_make_global_vars): Make static
6559 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6561 * doc/install.texi (Prerequisites): Document libelf usability on
6562 IRIX 5/6 and Solaris 2.
6563 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
6564 Update GNU as, GNU ld requirements.
6565 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
6566 Document Sun Studio compiler download.
6567 Update and simplify as, ld recommendations.
6568 (Specific, *-*-solaris2.7): Note obsoletion, removal.
6570 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6572 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
6573 with_tune_32 to pentium4.
6575 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
6577 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
6579 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6581 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
6582 obsoletion, removal.
6584 Document GNU as requirement.
6585 Update configure requirements.
6586 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
6587 Recomment IRIX 6.5.18+.
6588 Document IDF/IDL requirement.
6589 Document GNU as requirement.
6590 Document GNU ld bootstrap failure.
6591 Remove freeware.sgi.com reference.
6593 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6595 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
6596 UNIX V4.0, V5.0 obsoletion, removal.
6597 Remove --with-gc=simple reference.
6598 Update VM requirements during bootstrap.
6599 Remove -oldas bootstrap description.
6600 Update binutils reference.
6601 Remove comparison failure note.
6603 2010-03-31 Richard Guenther <rguenther@suse.de>
6604 Zdenek Dvorak <ook@ucw.cz>
6605 Sebastian Pop <sebastian.pop@amd.com>
6608 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
6609 with multiple arguments.
6610 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
6612 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6614 * graphite-dependences.c (print_pddr): Call print_pdr with an
6616 * graphite-poly.c (debug_pdr): Add an extra argument for the
6619 (print_pbb_domain): Same.
6621 (print_scop_context): Same.
6623 (print_cloog): Same.
6624 (debug_pbb_domain): Same.
6628 (debug_scop_context): Same.
6630 (debug_cloog): Same.
6631 (print_scop_params): Same.
6632 (debug_scop_params): Same.
6633 (print_iteration_domain): Same.
6634 (print_iteration_domains): Same.
6635 (debug_iteration_domain): Same.
6636 (debug_iteration_domains): Same.
6637 (print_scattering_function): Same.
6638 (print_scattering_functions): Same.
6639 (debug_scattering_function): Same.
6640 (debug_scattering_functions): Same.
6641 * graphite-poly.h (debug_pdr): Update declaration.
6643 (print_pbb_domain): Same.
6645 (print_scop_context): Same.
6647 (print_cloog): Same.
6648 (debug_pbb_domain): Same.
6652 (debug_scop_context): Same.
6654 (debug_cloog): Same.
6655 (print_scop_params): Same.
6656 (debug_scop_params): Same.
6657 (print_iteration_domain): Same.
6658 (print_iteration_domains): Same.
6659 (debug_iteration_domain): Same.
6660 (debug_iteration_domains): Same.
6661 (print_scattering_function): Same.
6662 (print_scattering_functions): Same.
6663 (debug_scattering_function): Same.
6664 (debug_scattering_functions): Same.
6666 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6668 * graphite-poly.c (print_scattering_function_1): New.
6669 (print_scattering_function): Call it.
6670 (print_scop_params): Remove spaces at the end of lines.
6673 * graphite-poly.h (print_cloog): Declared.
6674 (debug_cloog): Declared.
6676 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6678 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
6680 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
6681 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
6682 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
6683 to switch between adding the IV bump in loop->latch or in loop->header.
6685 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6687 * graphite-poly.c (print_scattering_function): Pretty print following
6690 (print_pbb_domain): Same.
6691 (dump_gbb_cases): Same.
6692 (dump_gbb_conditions): Same.
6695 (print_scop_params): Same.
6696 (print_scop_context): Same.
6698 (print_pbb_body): New.
6699 (lst_indent_to): New.
6700 (print_lst): Start new lines with a #.
6701 * graphite-poly.h (pbb_bb): New.
6702 (pbb_index): Use pbb_bb.
6703 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
6705 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
6707 2010-03-31 Jakub Jelinek <jakub@redhat.com>
6709 * dwarf2out.c (size_of_die): For -gdwarf-4 use
6710 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
6711 and 0 instead of 1 for dw_val_class_flag.
6712 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
6713 dw_val_class_range_list, dw_val_class_loc_list,
6714 dw_val_class_lineptr and dw_val_class_macptr, use
6715 DW_FORM_flag_present for dw_val_class_flag and
6716 DW_FORM_exprloc for dw_val_class_loc.
6717 (output_die): For -gdwarf-4 print dw_val_class_loc
6718 size as uleb128 instead of 1 or 2 bytes and don't print
6719 anything for dw_val_class_flag.
6721 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
6722 instead of cselib_lookup following by tweaking locs->setting_insn.
6725 * cselib.c (cselib_process_insn): Clear cselib_current_insn
6726 even before returning from label, setjmp call or volatile asm
6729 2010-03-31 Richard Guenther <rguenther@suse.de>
6732 * cgraphunit.c (cgraph_output_in_order): Do not allocate
6733 temporary data on stack.
6735 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6737 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
6738 (PUSHSECTION_ASM_OP): Remove.
6739 (POPSECTION_ASM_OP): Remove.
6740 (PUSHSECTION_FORMAT): Remove.
6741 * config/sol2.h (PUSHSECTION_FORMAT): Define.
6742 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
6743 * config/sol2.c (solaris_output_init_fini): Use it.
6745 2010-03-31 Jie Zhang <jie@codesourcery.com>
6748 * opt-functions.awk (var_type_struct): Use signed char type
6749 for simple variables.
6751 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6753 * config/sol2.c: Include output.h.
6754 (solaris_assemble_visibility): New function.
6755 * config/t-sol2 (sol2.o): Add output.h dependency.
6756 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
6757 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
6760 2010-03-31 Jakub Jelinek <jakub@redhat.com>
6763 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
6764 V2SImode or XFmode on PRE_DEC.
6767 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
6770 2010-03-31 Jie Zhang <jie@codesourcery.com>
6773 * reload.h (caller_save_initialized_p): Declare.
6774 * toplev.c (backend_init_target): Don't call
6775 init_caller_save but set caller_save_initialized_p to false.
6776 * caller-save.c (caller_save_initialized_p): Define.
6777 (init_caller_save): Check caller_save_initialized_p.
6778 * ira.c (ira): Call init_caller_save if flag_caller_saves.
6780 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6783 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
6784 and soft-fp/t-softfp to tmake_file.
6785 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
6786 (LIBGCC2_TF_CEXT): Define.
6789 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
6792 * cselib.c (n_useless_values): Document handling of debug locs.
6793 (n_useless_debug_values, n_debug_values): New variables.
6794 (new_elt_loc_list): Don't add to debug values, keep count.
6795 (promote_debug_loc): New.
6796 (cselib_reset_table): Zero new variables.
6797 (entry_and_rtx_equal_p): Promote debug locs.
6798 (discard_useless_locs): Increment n_useless_debug_values for
6800 (remove_useless_values): Adjust n_useless_values and n_debug_values
6801 with n_useless_debug_values.
6802 (add_mem_for_addr): Promote debug locs.
6803 (cselib_lookup_mem): Likewise.
6804 (cselib_lookup_addr): Renamed to...
6805 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
6806 (cselib_log_lookup): ... this. Turn into...
6807 (cselib_lookup_addr): ... new wrapper.
6808 (cselib_lookup_from_insn): New.
6809 (cselib_invalidate_regno): Increment n_useless_debug_values for
6811 (cselib_invalidate_mem): Likewise.
6812 (cselib_process_insn): Take n_deleted and n_debug_values into
6813 account to guard remove_useless_value call.
6814 (cselib_finish): Zero n_useless_debug_values.
6815 * cselib.h (cselib_lookup_from_insn): Declare.
6816 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
6817 (sched_analyze_2): Likewise.
6819 2010-03-30 Jakub Jelinek <jakub@redhat.com>
6821 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
6823 (adjust_mems): Replace narrowing SUBREG of expression containing
6824 just PLUS, MINUS, MULT and ASHIFT of registers and constants
6825 with operations in the narrower mode.
6828 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
6829 regs_invalidated_by_call instead all call_used_reg_set registers.
6831 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
6834 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
6835 pointer comparisons with types_compatible_p.
6836 * tree-vect-stmts.c (vectorizable_call): Same.
6837 (vectorizable_condition): Same.
6839 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6841 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
6842 stack check if the mask would be zero.
6844 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
6845 Jack Howarth <howarth@bromo.med.uc.edu>
6847 * tree-profile.c (tree_init_ic_make_global_vars): Make static
6850 2010-03-30 Joseph Myers <joseph@codesourcery.com>
6853 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
6855 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
6856 Include ___unordxf2 and ___unordtf2.
6857 * config/i386/libgcc-glibc.ver: Do not define inheritance from
6860 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
6862 * config/lm32/t-lm32: New file.
6863 * config.gcc: Use the above file when targetting lm32.
6865 2010-03-28 Duncan Sands <baldrick@free.fr>
6867 * Makefile.in (PLUGIN_HEADERS): Add except.h.
6869 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
6872 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
6873 Improve vectorization cost model diagnostic.
6875 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
6878 * tree-vect-data-refs.c (vect_analyze_data_refs): When
6879 compute_data_dependences_for_loop returns false, early exit
6880 and output an extra diagnostic for the failed data reference
6883 2010-03-29 Richard Guenther <rguenther@suse.de>
6885 PR tree-optimization/43560
6886 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
6887 (can_sm_ref_p): Treat stores to readonly locations as trapping.
6889 2010-03-29 Jie Zhang <jie@codesourcery.com>
6892 * toplev.c (process_options): Set optimization_default_node
6893 and optimization_current_node.
6894 * opts.c (decode_options): Don't set optimization_default_node
6895 and optimization_current_node.
6897 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
6899 * config/rtems.h: Abandon -qrtems_debug.
6901 2010-03-28 Jan Hubicka <jh@suse.cz>
6903 PR tree-optimization/43505
6904 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
6905 map should not be copied.
6907 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6910 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
6911 cdtors, set DECL_PRESERVE_P.
6912 * ipa.c (cgraph_externally_visible_p): Return true if declaration
6915 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
6917 PR tree-optimization/43528
6918 * stor-layout.c (place_field): Check that constant fits into
6919 unsigned HWI when skipping calculation of MS bitfield layout.
6921 2010-03-27 Jan Hubicka <jh@suse.cz>
6924 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
6925 notice_global_symbol work.
6927 2010-03-27 Jakub Jelinek <jakub@redhat.com>
6929 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
6930 instead of dwarf2out_decl.
6931 (struct var_loc_node): Remove section_label field.
6932 (dwarf2out_function_decl): New function.
6933 (dwarf2out_var_location): Don't set section_label field.
6934 (dwarf2out_begin_function): Don't empty decl_loc_table here.
6936 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6938 PR tree-optimization/43544
6939 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
6940 First argument for builtin vectorized function hook is now a
6941 tree to be able to distinguish between machine specific and
6943 * targhooks.c (default_builtin_vectorized_function): Ditto.
6944 * targhooks.h (default_builtin_vectorized_function): Ditto.
6945 * target.h (struct gcc_target): Ditto.
6946 * tree-vect-stmts.c (vectorizable_function): Ditto.
6947 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
6948 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6951 2010-03-26 Joseph Myers <joseph@codesourcery.com>
6954 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
6955 nested binding iff it is a FUNCTION_DECL.
6956 (store_parm_decls_newstyle): Pass nested=true to bind for
6957 FUNCTION_DECLs amongst parameters.
6959 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6961 * var-tracking.c (vt_expand_loc_callback): Don't run
6962 cselib_expand_value_rtx_cb in dummy mode if
6963 cselib_dummy_expand_value_rtx_cb returned false.
6965 * var-tracking.c (emit_note_insn_var_location): For one part
6966 notes with offset 0, don't add EXPR_LIST around the location.
6967 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
6968 add_location_or_const_value_attribute): Adjust for that change.
6971 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
6972 into first operand and location into second.
6973 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
6974 dw_cfi_oprnd_loc for DW_CFA_expression.
6975 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
6976 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
6977 assume first argument is regnum and second argument is location.
6979 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6982 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
6983 of scratch register to DImode. Split to DImode comparison operator.
6984 Use SImode subreg of scratch register in the multiplication.
6985 (*cmp_sadd_sidi): Ditto.
6986 (*cmp_ssub_si): Ditto.
6987 (*cmp_ssub_sidi): Ditto.
6989 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6992 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
6993 Remove invalid assert and wrong comment.
6995 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6998 * flags.h (final_insns_dump_p): New extern.
6999 * final.c (final_insns_dump_p): New variable.
7000 (rest_of_clean_state): Set it before -fdump-final-insns=
7001 dumping, clear afterwards.
7002 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7003 MEM_ALIAS_SET on MEMs.
7005 2010-03-26 David S. Miller <davem@davemloft.net>
7007 * configure.ac: Fix sparc GOTDATA_OP bug check.
7008 * configure: Rebuild.
7010 2010-03-26 Alan Modra <amodra@gmail.com>
7012 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7014 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7016 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7017 TLS_SECTION_ASM_FLAG.
7019 2010-03-25 Jakub Jelinek <jakub@redhat.com>
7022 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7023 Clear first_function_block_is_cold.
7026 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7027 argument if the argument is truth_value_p.
7029 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7031 * config/rs6000/constraints.md: Update copyright year for my changes.
7034 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7035 used in reg+reg addressing, swap registers.
7037 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7040 * target.h (struct gcc_target): Add code_end hook.
7041 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7043 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7044 * toplev.c (compile_file): Call targetm.asm_out.code_end
7045 hook before unwind info/debug info output.
7046 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7047 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7048 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7049 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7050 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7051 * config/i386/i386.c (ix86_file_end): Renamed to...
7052 (ix86_code_end): ... this. Make static. Don't call
7053 file_end_indicate_exec_stack. Emit unwind info using
7054 final_start_function/final_end_function.
7055 (darwin_x86_file_end): Remove.
7056 (TARGET_ASM_CODE_END): Define.
7057 * config/i386/i386.h (TARGET_ASM_FILE_END,
7058 NEED_INDICATE_EXEC_STACK): Don't define.
7059 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7060 (TARGET_ASM_FILE_END): Define to darwin_file_end.
7061 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7062 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7065 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
7066 at the beginning and final_end_function at the end.
7067 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7069 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7071 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
7072 and Sun as TLS syntax.
7073 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
7074 * configure: Regenerate.
7075 * config.in: Regenerate.
7076 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
7077 (default_elf_asm_named_section): Use it.
7078 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
7079 (i386_output_dwarf_dtprel): Likewise.
7080 (output_addr_const_extra): Likewise.
7081 (output_pic_addr_const): Lowercase @GOTTPOFF.
7082 (output_addr_const_extra): Likewise.
7083 (output_pic_addr_const): Lowercase @GOTNTPOFF.
7084 (output_addr_const_extra): Likewise.
7085 (output_pic_addr_const): Lowercase @INDNTPOFF.
7086 (output_addr_const_extra): Likewise.
7087 (output_pic_addr_const): Lowercase @NTPOFF.
7088 (output_addr_const_extra): Likewise.
7089 (output_pic_addr_const): Lowercase @TPOFF.
7090 (output_addr_const_extra): Likewise.
7091 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
7092 (*tls_global_dynamic_64): Likewise.
7093 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
7094 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
7096 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
7097 (ASM_OUTPUT_TLS_COMMON): Use it.
7098 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
7101 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
7102 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7103 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
7104 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
7105 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7106 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
7108 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7110 * config/i386/i386.c (override_options): Don't accept
7111 -mtls-dialect=sun any longer.
7112 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
7113 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
7114 (*tls_local_dynamic_base_32_sun): Likewise.
7115 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7117 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7120 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7121 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
7124 * ira.c (adjust_cleared_regs): New function.
7125 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
7129 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
7131 * expr.c (expand_expr_real): Restore previous
7132 curr_insn_source_location and curr_insn_block after
7133 expand_expr_real_1 call.
7134 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
7135 instead of expand_expr_real_1.
7137 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
7139 PR rtl-optimization/43413
7140 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
7143 2010-03-22 James E. Wilson <wilson@codesourcery.com>
7146 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
7147 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
7149 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
7151 * config/i386/i386.c (ix86_target_string): Add -mfma.
7152 Fix a typo in comment.
7154 2010-03-22 Mike Stump <mikestump@comcast.net>
7157 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
7158 Don't overly align based upon packed packed fields.
7160 2010-03-22 Jason Merrill <jason@redhat.com>
7162 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
7163 Use () rather than [], and move before the element type.
7165 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7167 * doc/configfiles.texi (Configuration Files): Removed
7168 fixinc/Makefile*, intl/Makefile.*.
7169 * doc/makefile.texi: Fixed markup. Abstract from version
7170 control system used.
7171 (Makefile): Removed obsolete gcc/java/parse.y example.
7172 * doc/sourcebuild.texi: Likewise.
7173 (Top Level): Added config, gnattools, libdecnumber, libgcc,
7174 libgomp, libssp. Removed fastjar.
7175 (Miscellaneous Docs): Clarify location.
7176 Added COPYING3, COPYING3.LIB.
7177 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
7179 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7182 * config/i386/i386.c (x86_function_profiler)
7183 [!NO_PROFILE_COUNTERS]: Fix typo.
7184 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
7187 2010-03-22 Janis Johnson <janis187@us.ibm.com>
7188 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7190 * doc/sourcebuild.texi (Test Directives): Split into six
7191 subsections, with most of the current text in new subsections
7192 Directives, Selectors, and Final Actions.
7193 (Directives): Split list of test directives into multiple
7195 (Selectors): Describe use and syntax of selectors.
7196 (Effective-Target Keywords): Describe all existing keywords.
7197 (Add Options): Describe features for dg-add-options.
7198 (Require Support): Describe variants of dg-require-support.
7199 (Final Actions): Describe commands to use in dg-final.
7201 2010-03-22 Michael Matz <matz@suse.de>
7204 * recog.c (validate_replace_rtx_group): Replace also in
7205 REG_EQUAL and REG_EQUIV notes.
7207 2010-03-22 Richard Guenther <rguenther@suse.de>
7209 PR tree-optimization/43390
7210 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
7211 sure vector extracts are type correct.
7213 2010-03-22 Richard Guenther <rguenther@suse.de>
7216 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
7217 x * sqrt (x) even when optimizing for size if the target
7218 has native support for sqrt.
7220 2010-03-22 Jakub Jelinek <jakub@redhat.com>
7222 * varasm.c (make_decl_rtl_for_debug): Also clear
7223 flag_mudflap for the duration of make_decl_rtl call.
7226 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
7227 locs from preserved VALUEs.
7229 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7232 * pa.md (movmemsi): Set align to one if zero.
7233 (movmemdi): Likewise.
7235 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
7238 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
7239 with their corresponding prologue pushes.
7241 2010-03-20 Andrew Pinski <pinskia@gmail.com>
7244 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
7245 at the begining or end.
7246 (spu_expand_epilogue): Likewise.
7248 2010-03-20 Richard Guenther <rguenther@suse.de>
7250 PR rtl-optimization/43438
7251 * combine.c (make_extraction): Properly zero-/sign-extend an
7252 extraction of the low part of a CONST_INT. Also handle
7255 2010-03-19 Mike Stump <mikestump@comcast.net>
7257 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
7258 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
7259 (override_options): Use SUBTARGET32_DEFAULT_CPU.
7261 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
7264 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
7267 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
7269 PR rtl-optimization/42258
7270 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
7271 use that may match DEF.
7274 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
7275 the cost of loading the constant rather than assuming
7277 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
7278 outer code is AND, do the same tests as the andsi3 expander and
7279 return COSTS_N_INSNS (1) if and is cheap.
7281 * optabs.c (avoid_expensive_constant): Fix formatting.
7283 2010-03-19 Michael Matz <matz@suse.de>
7286 * attribs.c (decl_attributes): When rebuilding a function pointer
7287 type use the same qualifiers as the original pointer type.
7289 2010-03-19 Martin Jambor <mjambor@suse.cz>
7291 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
7292 and is_gimple_ip_invariant_address.
7294 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7297 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7299 * config/arm/arm.c (arm_override_options): Turn off
7300 flag_dwarf2_cfi_asm for AAPCS variants.
7302 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7305 * config/arm/arm.c (emit_multi_reg_push): Update comments.
7306 Use PRE_MODIFY instead of PRE_DEC.
7307 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
7308 (vfp_emit_fstmd): Likewise.
7310 2010-03-19 Michael Matz <matz@suse.de>
7313 * builtins.c (expand_builtin_interclass_mathfn,
7314 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
7317 2010-03-19 Richard Guenther <rguenther@suse.de>
7319 PR tree-optimization/43415
7320 * tree-ssa-pre.c (phi_translate): Split out worker to ...
7321 (phi_translate_1): ... this.
7322 (phi_translate): Move all caching here. Cache all NARY
7323 and REFERENCE translations.
7325 2010-03-19 David S. Miller <davem@davemloft.net>
7327 With help from Eric Botcazou.
7328 * config/sparc/sparc.c: Include dwarf2out.h.
7329 (emit_pic_helper): Delete.
7330 (pic_helper_symbol_name): Delete.
7331 (pic_helper_emitted_p): Delete.
7332 (pic_helper_needed): New.
7333 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
7334 (get_pc_thunk_name): New.
7335 (load_pic_register): Remove 'delay_pic_helper' arg. Use
7336 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
7337 Set pic_helper_needed to true. Don't call emit_pic_helper.
7338 (sparc_expand_prologue): Update load_pic_register call.
7339 (sparc_output_mi_thunk): Likewise.
7340 (sparc_file_end): Emit a hidden comdat symbol for the PIC
7341 thunk if possible. Output CFI information as needed.
7343 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7344 Jack Howarth <howarth@bromo.med.uc.edu>
7347 * config/i386/i386.h: Fix ABI on darwin x86-32.
7349 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
7351 * tree.h: Declare make_decl_rtl_for_debug.
7352 * varasm.c (make_decl_rtl_for_debug): New.
7353 * dwarf2out.c (rtl_for_decl_location): Call it.
7354 * cfgexpand.c (expand_debug_expr): Call it.
7356 2010-03-18 Jakub Jelinek <jakub@redhat.com>
7359 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
7363 * var-tracking.c (vt_init_cfa_base): Do nothing if
7364 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
7366 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
7369 * var-tracking.c (canonicalize_vars_star): New.
7370 (dataflow_post_merge_adjust): Use it.
7372 2010-03-18 Jakub Jelinek <jakub@redhat.com>
7375 * var-tracking.c (non_suitable_const): New function.
7376 (add_uses): For DEBUG_INSNs with constants, don't record any
7377 value, instead just the constant value itself.
7378 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
7379 is not VAR_LOC_UNKNOWN_P, set var to the constant.
7380 (emit_notes_in_bb): Likewise.
7381 (emit_note_insn_var_location): For onepart variables if
7382 cur_loc is a VOIDmode constant, use DECL_MODE.
7384 2010-03-18 Martin Jambor <mjambor@suse.cz>
7387 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
7388 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
7389 all non-clones. Moved call redirection...
7390 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
7391 (cgraph_materialize_all_clones): Dispose of all
7392 combined_args_to_skip bitmaps.
7393 (verify_cgraph_node): Do not check for edges pointing to wrong
7394 nodes in inline clones.
7395 * tree-inline.c (copy_bb): Call
7396 cgraph_redirect_edge_call_stmt_to_callee.
7397 * ipa.c (cgraph_remove_unreachable_nodes): Call
7398 cgraph_node_remove_callees even when there are used clones.
7400 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
7402 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
7404 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
7407 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
7410 2010-03-18 Michael Matz <matz@suse.de>
7413 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
7414 into sqrt(x) if we need to preserve signed zeros.
7416 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
7417 Eric Botcazou <ebotcazou@adacore.com>
7419 PR rtl-optimization/43360
7420 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
7421 note if we don't know its invariant status.
7423 2010-03-18 Michael Matz <matz@suse.de>
7425 PR tree-optimization/43402
7426 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
7427 PHI chains of ssa names registered for update.
7429 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
7432 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
7433 non-offsettable and pre_modify update addressing.
7434 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
7435 and "2" alternatives "#".
7436 (*movdd_softfloat32): Make all alternatives "#";
7437 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
7438 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
7439 (*movdf_softfloat32): Make all alternatives "#";
7440 (movdi): Use the new DIFD mode iterator to create a common splitter
7441 for movdi, movdf and movdd patterns.
7443 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
7445 * common.opt (dumpdir): Remove redundant tab.
7447 2010-03-17 Martin Jambor <mjambor@suse.cz>
7449 PR tree-optimization/43347
7450 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
7451 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
7453 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
7455 PR rtl-optimization/42216
7456 * regrename.c (create_new_chain): New function, broken out from...
7457 (scan_rtx_reg): ... here. Call it. Handle the case where we are
7458 appending a use to an empty chain.
7459 (build_def_use): Remove previous changes that convert OP_INOUT to
7460 OP_OUT operands; instead detect the case where an OP_INOUT operand
7461 uses a previously untracked register and create an empty chain for it.
7463 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7465 * doc/extend.texi (Function Attributes): Rewrite unfinished
7466 sentence in ms_abi documentation.
7468 2010-03-17 Alan Modra <amodra@gmail.com>
7470 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
7471 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
7472 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
7473 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
7475 2010-03-16 Richard Henderson <rth@redhat.com>
7478 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
7479 (lower_try_finally): Save and restore eh_seq around the expansion
7482 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
7484 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
7485 statements before splitting block.
7487 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7489 * doc/sourcebuild.texi (Testsuites): Fix markup.
7490 Use pathnames relative to gcc/testsuite.
7491 (Test Directives): Move description of how timeout is determined.
7492 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
7493 (C Tests): Correct gcc.misc-tests directory.
7494 Framework tests now live in gcc.test-framework.
7496 2010-03-16 Richard Guenther <rguenther@suse.de>
7499 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
7500 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
7502 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
7503 Alexandre Oliva <aoliva@redhat.com>
7505 PR tree-optimization/42917
7506 * lambda-code.c (remove_iv): Skip debug statements.
7507 (lambda_loopnest_to_gcc_loopnest): Likewise.
7508 (not_interesting_stmt): Debug statements are not interesting.
7510 2010-03-16 Jakub Jelinek <jakub@redhat.com>
7514 * cselib.c (cselib_preserve_constants,
7515 cfa_base_preserved_val): New static variables.
7516 (preserve_only_constants): New function.
7517 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
7518 clear its REG_VALUES. If cselib_preserve_constants, don't
7519 empty the whole hash table, but preserve there VALUEs with constants,
7520 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
7521 (cselib_preserve_cfa_base_value): New function.
7522 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
7523 (cselib_init): Change argument to int bitfield. Set
7524 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
7526 (cselib_finish): Clear cselib_preserve_constants and
7527 cfa_base_preserved_val.
7528 * cselib.h (enum cselib_record_what): New enum.
7529 (cselib_init): Change argument to int.
7530 (cselib_preserve_cfa_base_value): New prototype.
7531 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
7532 * dse.c (dse_step1): Likewise.
7533 * cfgcleanup.c (thread_jump): Likewise.
7534 * sched-deps.c (sched_analyze): Likewise.
7535 * gcse.c (local_cprop_pass): Likewise.
7536 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
7537 If FN is non-NULL, call the callback always and whenever it returns
7538 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
7539 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
7540 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
7541 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
7542 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
7543 * var-tracking.c: Include recog.h.
7544 (bb_stack_adjust_offset): Remove.
7545 (vt_stack_adjustments): Don't call it, instead just gather the
7546 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
7547 (adjust_stack_reference): Remove.
7548 (compute_cfa_pointer): New function.
7549 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
7550 (struct adjust_mem_data): New type.
7551 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
7553 (get_address_mode): New function.
7554 (replace_expr_with_values): Use it.
7555 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
7556 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
7557 (adjust_sets): Remove.
7558 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
7559 Use get_address_mode.
7560 (get_adjusted_src): Remove.
7561 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
7562 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
7563 (add_with_sets): Don't call adjust_sets.
7564 (fp_setter, vt_init_cfa_base): New functions.
7565 (vt_initialize): Change return type to bool. Move most of pool etc.
7566 initialization to the beginning of the function from end. Pass
7567 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
7568 If !frame_pointer_needed, call vt_stack_adjustment before mos
7569 vector is filled, call vt_init_cfa_base if argp/framep has been
7570 eliminated to sp. If frame_pointer_needed and argp/framep has
7571 been eliminated to hard frame pointer, set
7572 hard_frame_pointer_adjustment and call vt_init_cfa_base after
7573 encountering fp setter in the prologue. For MO_ADJUST, call
7574 log_op_type before pusing the op into mos vector, not afterwards.
7575 Call adjust_insn before cselib_process_insn/add_with_sets,
7576 call cancel_changes (0) afterwards.
7577 (variable_tracking_main_1): Adjust for vt_initialize calling
7578 vt_stack_adjustments and returning whether it succeeded or not.
7580 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
7582 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
7585 2010-03-15 Jakub Jelinek <jakub@redhat.com>
7587 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
7589 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
7590 drap_reg has not been set.
7592 2010-03-15 Michael Matz <matz@suse.de>
7595 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
7596 use it to expand block copies.
7597 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
7598 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
7599 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
7601 2010-03-15 Richard Guenther <rguenther@suse.de>
7603 PR tree-optimization/43367
7604 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
7607 2010-03-15 Richard Guenther <rguenther@suse.de>
7609 PR tree-optimization/43317
7610 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
7612 2010-03-15 Martin Jambor <mjambor@suse.cz>
7614 PR tree-optimization/43141
7615 * tree-sra.c (create_abstract_origin): New function.
7616 (modify_function): Call create_abstract_origin.
7618 2010-03-15 Chris Demetriou <cgd@google.com>
7620 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
7623 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7626 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
7627 call insert_out_of_ssa_copy for default definitions.
7629 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7631 * graphite-clast-to-gimple.c (my_long_long): Defined.
7632 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
7633 * graphite-sese-to-poly.c (my_long_long): Defined.
7634 (scop_ivs_can_be_represented): Use it.
7636 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7638 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
7639 graphite-max-bbs-per-function, and loop-block-tile-size.
7640 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
7642 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
7644 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7646 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
7647 forward declaration.
7648 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
7649 (add_upper_bounds_from_estimated_nit): New.
7650 (build_loop_iteration_domains): Use it.
7652 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7654 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
7656 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7659 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
7660 should be an INTEGER_CST. Also handle CASE_CONVERT.
7662 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7664 * graphite.c (graphite_initialize): To bound the number of bbs per
7665 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7666 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
7667 * doc/invoke.texi: Document it.
7669 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7671 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
7672 * graphite-sese-to-poly.h (build_poly_scop): Same.
7674 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7676 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
7677 the number of parameters in the scop. Use as an upper bound
7678 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
7679 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
7680 * doc/invoke.texi: Document it.
7682 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
7684 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
7685 * doc/c-tree.texi: Remove.
7686 * doc/generic.texi: Merge c-tree.texi here.
7687 * doc/gccint.texi (Trees): Remove menu entry.
7688 (c-tree.texi): Remove @include.
7689 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
7690 * doc/languages.texi (Reading RTL): Ditto.
7692 2010-03-12 Steve Ellcey <sje@cup.hp.com>
7695 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
7697 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7700 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
7701 code added to work around reload clobbering CONST insns.
7703 2010-03-12 Jakub Jelinek <jakub@redhat.com>
7705 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
7706 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
7707 (cselib_preserve_only_values): Remove retain argument, don't
7708 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
7709 * cselib.h (cselib_preserve_only_values): Remove retain argument.
7710 * var-tracking.c (micro_operation): Move insn field before union.
7711 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
7712 (struct variable_tracking_info_def): Remove n_mos field, change
7713 mos into a vector of micro_operations.
7714 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
7715 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
7716 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
7717 changing into a vector.
7718 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
7719 come before all other uops generated by add_stores.
7720 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
7722 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
7723 a vector. Run just one pass over the bbs instead of separate counting
7724 and computation phase.
7725 (vt_finalize): Free VTI (bb)->mos vector instead of array.
7728 * tree-inline.c (remap_decls): Put old_var rather than origin_var
7729 into *nonlocalized_list vector.
7730 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
7731 even if origin is non-NULL.
7732 (gen_variable_die): Likewise.
7733 (process_scope_var): Don't change origin.
7734 (gen_decl_die): Likewise.
7735 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
7736 before adding new edges instead of after it, fix moving over
7739 2010-03-11 David S. Miller <davem@davemloft.net>
7741 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
7743 * configure: Rebuild.
7745 2010-03-11 Martin Jambor <mjambor@suse.cz>
7747 PR tree-optimization/43257
7748 * tree.c (assign_assembler_name_if_neeeded): New function.
7749 (free_lang_data_in_cgraph): Assembler name assignment moved to the
7751 * tree.h (assign_assembler_name_if_neeeded): Declare.
7752 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
7753 the function if needed.
7755 2010-03-11 Chris Demetriou <cgd@google.com>
7757 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
7758 include/stdint-gcc.h, and include/stdint.h world-readable.
7760 2010-03-11 Richard Guenther <rguenther@suse.de>
7762 PR tree-optimization/43255
7763 * tree-vrp.c (process_assert_insertions_for): Do not insert
7764 asserts for trivial conditions.
7766 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7768 PR tree-optimization/43280
7769 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
7770 generation. Move calculation of size out of the if branch.
7771 (find_bswap): Modify compare number generation.
7773 2010-03-11 Richard Guenther <rguenther@suse.de>
7776 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
7777 (input_gimple_stmt): Fixup handled component types during
7778 operand read. Also fix up decls in ADDR_EXPRs.
7780 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
7782 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
7783 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
7785 2010-03-10 Jan Hubicka <jh@suse.cz>
7788 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
7789 * varasm.c (get_variable_section): Don't do that here...
7790 (make_decl_rtl): ... and here.
7791 (do_assemble_alias): Produce decl RTL.
7792 (assemble_alias): Likewise.
7794 2010-03-10 Jakub Jelinek <jakub@redhat.com>
7797 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
7798 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
7800 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
7801 (based_loc_descr): Only express drap or vdrap regno based expressions
7802 using DW_OP_fbreg when not optimizing.
7803 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
7804 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
7805 REG_CFA_SET_VDRAP note.
7807 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
7809 PR tree-optimization/43236
7810 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
7811 error in calculation of base address in reverse iteration case.
7812 (generate_builtin): Take number of latch executions if the statement
7815 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
7818 * tree-eh.c: Include pointer-set.h.
7819 (lower_eh_dispatch): Filter out duplicate case labels and
7820 remove the unneeded edge when the label is unused. Return
7821 true when some edges are removed.
7822 (execute_lower_eh_dispatch): When any lowering resulted in
7823 removing an edge, also delete unreachable blocks.
7825 2010-03-10 Jakub Jelinek <jakub@redhat.com>
7828 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7829 UNSPEC_MACHOPIC_OFFSET.
7831 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
7834 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7835 (m68k_delegitimize_address): New function.
7837 2010-03-09 Jakub Jelinek <jakub@redhat.com>
7840 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
7843 * var-tracking.c (adjust_sets): New function.
7844 (count_with_sets, add_with_sets): Use it.
7845 (get_adjusted_src): New inline function.
7846 (add_stores): Use it.
7849 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
7850 call cselib_dummy_expand_value_rtx_cb instead of
7851 cselib_expand_value_rtx_cb.
7854 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
7855 * config/i386/i386.c: Include debug.h and dwarf2out.h.
7856 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
7857 and .cfi_endproc around the pic thunks.
7858 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
7859 all queued unwind info register saves are saved before the call.
7860 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
7861 considered as sp-=4 for unwind info and the pop as sp+=4 which
7862 also clobbers dest, but doesn't actually restore it.
7865 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
7866 RTX_FRAME_RELATED_P.
7868 2010-03-09 Jie Zhang <jie@codesourcery.com>
7870 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
7871 whitespaces in output template.
7873 2010-03-09 Jie Zhang <jie@codesourcery.com>
7875 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
7878 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7880 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
7881 builtins.exp in a separate job.
7883 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7885 * graphite-sese-to-poly.c (add_param_constraints): Use
7886 lower_bound_in_type and upper_bound_in_type.
7888 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7890 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
7891 instead of unsigned_type_node.
7893 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7894 Reza Yazdani <reza.yazdani@amd.com>
7897 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
7898 on pointer type parameters.
7900 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7904 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
7905 handle conversions from pointer to integers.
7906 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
7907 induction variable, to be able to work with code generated by CLooG.
7908 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
7909 (build_poly_scop): Bail out if we cannot codegen a loop.
7911 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7913 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
7914 code generation with gloog_error.
7916 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7918 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
7919 Call fold_convert on all the returned values.
7920 (expand_scalar_variables_expr): Pass to
7921 expand_scalar_variables_ssa_name the type of the resulting expression.
7923 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7925 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
7926 ppl_min_for_le_pointset.
7927 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
7928 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
7930 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7932 * graphite-dependences.c (map_into_dep_poly): Removed.
7933 (dependence_polyhedron_1): Use combine_context_id_scat.
7935 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7937 * graphite-poly.h (struct poly_scattering): Add layout documentation.
7938 (struct poly_bb): Same.
7939 (combine_context_id_scat): New.
7941 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7944 * sese.c (name_defined_in_loop_p): Return false for default
7947 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7949 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
7950 and clean up the logic.
7952 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7954 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
7957 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7959 * var-tracking.c (remove_cselib_value_chains): Define only for
7961 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
7962 delete_slot_part, emit_notes_for_differences_1): Don't call
7963 remove_cselib_value_chains here.
7964 (set_slot_part, emit_notes_for_differences_2): Don't call
7965 add_cselib_value_chains here.
7966 (preserved_values): New vector.
7967 (preserve_value): New function.
7968 (add_uses, add_stores, vt_add_function_parameters): Use it
7969 instead of cselib_preserve_value.
7970 (changed_values_stack): New vector.
7971 (check_changed_vars_0): New function.
7972 (check_changed_vars_1, check_changed_vars_2): Use it.
7973 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
7974 changed_values_stack VALUEs.
7975 (vt_emit_notes): For all preserved_values call
7976 add_cselib_value_chains. If ENABLE_CHECKING call
7977 remove_cselib_value_chains before verifying value_chains is empty.
7978 Initialize and free changed_values_stack.
7979 (vt_initialize): Initialize preserved_values.
7980 (vt_finalize): Free preserved_values.
7982 2010-03-08 Richard Guenther <rguenther@suse.de>
7984 PR tree-optimization/43269
7985 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
7988 2010-03-08 Martin Jambor <mjambor@suse.cz>
7990 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
7991 (ipa_is_param_called): Removed.
7992 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
7993 (ipa_print_node_params): Do not print the called flag.
7994 (ipa_write_node_info): Do not stream the called flag.
7995 (ipa_read_node_info): Likewise.
7997 2010-03-07 Jakub Jelinek <jakub@redhat.com>
8000 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8001 * cselib.c (struct expand_value_data): Add dummy field.
8002 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8004 (cselib_dummy_expand_value_rtx_cb): New function.
8005 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8007 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8008 * var-tracking.c: Include pointer-set.h.
8009 (variable): Change n_var_parts to char from int. Add
8010 cur_loc_changed and in_changed_variables fields.
8011 (variable_canonicalize): Remove.
8012 (shared_var_p): New inline function.
8013 (unshare_variable): Maintain cur_loc_changed and
8014 in_changed_variables fields. If var was in changed_variables,
8015 replace it there with new_var. Just copy cur_loc instead of
8016 resetting it to something else.
8017 (variable_union): Don't recompute cur_loc. Use shared_var_p.
8018 (dataflow_set_union): Don't call variable_canonicalize.
8019 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8020 of their DEBUG_EXPR_TREE_DECLs.
8021 (canonicalize_loc_order_check): Verify that cur_loc is NULL
8022 and in_changed_variables and cur_loc_changed is false.
8023 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8024 and cur_loc_changed. Don't update cur_loc here.
8025 (variable_merge_over_src): Don't call variable_canonicalize.
8026 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
8027 removing loc that is equal to cur_loc, clear cur_loc,
8028 set cur_loc_changed and ensure variable_was_changed is called.
8029 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
8030 compare pointers in cur_loc check, if it is equal to loc,
8031 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
8032 (variable_different_p): Remove compare_current_location argument,
8033 don't compare cur_loc.
8034 (dataflow_set_different_1): Adjust variable_different_p caller.
8035 (variable_was_changed): If dv had some var in changed_variables
8036 already, reset in_changed_variables flag for it and propagate
8037 cur_loc_changed over to the new variable. On empty var
8038 always set cur_loc_changed. Set in_changed_variables on whatever
8039 var is added to changed_variables.
8040 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8041 Use shared_var_p. When removing loc that is equal to cur_loc,
8042 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
8043 end, don't set it to something else, just call variable_was_changed.
8044 (delete_slot_part): Use shared_var_p. When cur_loc equals to
8045 loc being removed, clear cur_loc and set cur_loc_changed.
8046 Set cur_loc_changed if all locations have been removed.
8047 (struct expand_loc_callback_data): New type.
8048 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8049 allocated. Always create SUBREGs if simplify_subreg failed.
8050 Prefer to use cur_loc, when that fails and still in
8051 changed_variables (and seen first time) recompute it. Set
8052 cur_loc_changed of variables which had to change cur_loc and
8053 compute elcd->cur_loc_changed if any of the subexpressions used
8054 had to change cur_loc.
8055 (vt_expand_loc): Adjust to pass arguments in
8056 expand_loc_callback_data structure.
8057 (vt_expand_loc_dummy): New function.
8058 (emitted_notes): New variable.
8059 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8060 that weren't used for any other decl in current
8061 emit_notes_for_changes call call vt_expand_loc_dummy to update
8062 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
8063 first loc_chain location if NULL before. Always use just
8064 cur_loc instead of first loc_chain location. When cur_loc_changed
8065 is false, when not --enable-checking=rtl just don't emit any note.
8066 When rtl checking, compute the note and assert it is the same
8067 as previous note. Clear cur_loc_changed and in_changed_variables
8068 at the end before removing from changed_variables.
8069 (check_changed_vars_3): New function.
8070 (emit_notes_for_changes): Traverse changed_vars to call
8071 check_changed_vars_3 on each changed var.
8072 (emit_notes_for_differences_1): Clear cur_loc_changed and
8073 in_changed_variables. Recompute cur_loc of new_var.
8074 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
8075 (vt_emit_notes): Initialize and destroy emitted_notes.
8077 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
8079 PR rtl-optimization/42220
8080 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
8081 Use verify_reg_tracked to determine if we should use OP_OUT rather
8083 (build_def_use): If we see an in-out operand for a register that we
8084 know nothing about, treat is an output if possible, fail the block if
8087 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8090 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
8093 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8096 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
8097 uses of relevant DEFs that are dead outside the loop too.
8099 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8101 * var-tracking.c (dataflow_set_merge): Swap src and src2.
8103 2010-01-13 Jakub Jelinek <jakub@redhat.com>
8105 * var-tracking.c (values_to_unmark): New variable.
8106 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8107 values_to_unmark vector. Moved body to...
8108 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
8109 instead queue it into values_to_unmark vector.
8110 (vt_find_locations): Free values_to_unmark vector.
8112 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
8114 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
8115 (site.exp): Export them when plugins are enabled.
8117 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
8120 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
8122 (chrec_fold_multiply): Same.
8124 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8127 * c-decl.c (build_compound_literal): Return early if init is
8130 2010-03-04 Martin Jambor <mjambor@suse.cz>
8132 PR tree-optimization/43164
8133 PR tree-optimization/43191
8134 * tree-sra.c (type_consists_of_records_p): Reject records with
8135 zero-size bit-fields at the end.
8137 2010-03-04 Mike Stump <mikestump@comcast.net>
8139 * Makefile.in (TAGS): Remove *.y.
8141 2010-03-04 Richard Guenther <rguenther@suse.de>
8143 PR tree-optimization/40761
8144 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
8146 (my_rev_post_order_compute): New function.
8147 (init_pre): Call it.
8149 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
8152 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
8153 decrease the cost of an IV candidate when the cost is infinite.
8155 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8157 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
8158 Use '3DNow!' for the extension of that name, ensure normal space
8160 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
8162 2010-03-03 Jeff Law <law@redhat.com>
8164 * PR middle-end/32693
8165 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
8166 than gen_rtx_SUBREG.
8167 (extract_bit_field_1): Likewise.
8169 2010-03-03 Janis Johnson <janis187@us.ibm.com>
8171 * doc/sourcebuild.texi (Test directives): Document that arguments
8172 include-opts and exclude-opts are now optional for dg-skip-if,
8173 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
8175 2010-03-03 Jason Merrill <jason@redhat.com>
8178 * cgraph.h (varpool_node): Add extra_name field.
8179 * varpool.c (varpool_extra_name_alias): New.
8180 (varpool_assemble_decl): Emit extra name aliases.
8181 (varpool_mark_needed_node): Look past an extra name alias.
8182 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
8183 * lto-streamer-in.c (lto_input_tree): Read it.
8184 * lto-streamer-out.c (output_unreferenced_globals): Write it.
8186 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
8188 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
8189 (sparc*-*-solaris2*): ...this.
8191 2010-03-03 Jakub Jelinek <jakub@redhat.com>
8194 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
8195 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
8196 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
8197 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
8200 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
8201 fallthrough to default handling, just with want_address 0 instead of 2.
8202 For single element lists, add_AT_loc directly, otherwise create an
8203 artificial variable DIE and stick location list to it.
8206 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
8207 (VAL_EXPR_HAS_REVERSE): Define.
8208 (reverse_op): New function.
8209 (add_stores): For reversible operations add an extra MO_VAL_USE.
8211 2010-03-02 Jason Merrill <jason@redhat.com>
8213 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
8215 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
8217 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
8218 (sparc64-*-linux*): Likewise.
8219 (sparc64-*-solaris2*): Include assembler files before linker ones.
8220 (sparc-*-solaris2*): Simplify and reorder to match previous case.
8221 * config/sparc/gas.h: Delete.
8222 * config/sparc/sol2-64.h: Add copyright notice.
8223 * config/sparc/sol2-gas-bi.h: Likewise.
8224 * config/sparc/sol2-gld.h: Likewise.
8225 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
8226 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
8227 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
8228 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
8229 (sparc_elf_asm_named_section): Rename into...
8230 (sparc_solaris_elf_asm_named_section): ...this. Always define.
8232 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
8234 * config/alpha/alpha.c (override_options): Fix -mtune error message.
8236 2010-03-02 Jeff Law <law@redhat.com>
8239 * reload1.c (rtx_p, substitute_stack): Declare.
8240 (substitute): Record addresses of changed rtxs.
8241 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
8242 Restore the original rtx when complete.
8243 (reload): Free subsitute_stack when complete.
8245 2010-03-02 Janis Johnson <janis187@us.ibm.com>
8247 * doc/gccint.texi (menu): Add Testsuites as a chapter.
8248 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
8250 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
8251 LTO Testing, gcov Testing, profopt Testing, compat Testing,
8252 Torture Tests): Change from subsection to section.
8254 2010-03-02 Jakub Jelinek <jakub@redhat.com>
8255 Steven Bosscher <steven@gcc.gnu.org>
8257 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
8260 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
8263 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
8264 the assignment from the new induction variable to the assignment
8265 of the value from the original loop PHI function.
8267 2010-03-01 Janis Johnson <janis187@us.ibm.com>
8268 Daniel Jacobowitz <dan@codesourcery.com>
8270 * doc/sourcebuild.texi (Test directives): Clarify options to
8273 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8275 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
8276 Disable cfi directives unless GCC and gas agree on using read-only
8277 .eh_frame sections for 64-bit.
8278 * configure: Regenerate.
8280 2010-03-01 Richard Guenther <rguenther@suse.de>
8282 PR tree-optimization/43220
8283 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
8284 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
8286 2010-03-01 Richard Guenther <rguenther@suse.de>
8287 Martin Jambor <mjambor@suse.cz>
8290 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
8291 gimplified parameters.
8293 2010-03-01 Christian Bruel <christian.bruel@st.com>
8295 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
8297 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8299 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
8301 2010-03-01 Richard Guenther <rguenther@suse.de>
8304 * expr.c (expand_assignment): Use the alias-oracle to tell
8305 if the rhs aliases the result decl.
8307 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8310 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
8311 to sol_gt_pch_get_address.
8312 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
8313 64-bit, SPARC and x86.
8314 (sol_gt_pch_get_address): New function.
8316 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
8318 * toplev.h (inform_n, error_n): Declare.
8319 * diagnostic.c (inform_n, error_n): New function.
8321 2010-03-01 Jakub Jelinek <jakub@redhat.com>
8323 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
8324 has no rtl yet when processing local_decls, queue it and recheck
8325 if deferred stack allocation hasn't assigned it rtl.
8327 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
8329 * config/sh/sh.c (unspec_bbr_uid): New.
8330 (gen_block_redirect): Use it instead of INSN_UID.
8331 (gen_far_branch): Likewise.
8333 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
8335 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
8336 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
8338 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8340 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
8341 (Warning Options): -Wno-conversion-null is valid for
8342 Objective-C++ as well.
8343 * doc/tm.texi (Named Address Spaces): Likewise.
8344 * doc/plugins.texi (Plugins): Replace TABs with spaces.
8345 * doc/tree-ssa.texi (Tree SSA): Likewise.
8347 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8350 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
8351 by default. Don't set the default arch for
8352 i[34567]86-*-darwin*|x86_64-*-darwin*.
8354 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8357 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
8358 default. Set the default 32bit/64bit archs with $with_arch
8359 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
8361 2010-02-27 Richard Guenther <rguenther@suse.de>
8363 PR tree-optimization/43186
8364 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
8365 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
8366 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
8367 unroller iterations.
8369 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8371 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
8372 required and i[34567]86-*-* targets don't support 64bit ISA.
8374 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
8377 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8380 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
8382 * config.gcc: Set the default arch at least to Prescott for
8383 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
8384 if SSE math is enabled.
8386 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8388 * diagnostic.c (diagnostic_initialize): Update.
8389 (diagnostic_report_diagnostic): Test inhibit_notes_p for
8391 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
8392 (diagnostic_inhibit_notes): New.
8393 * toplev.c (process_options): inhibit notes with -fcompare-debug.
8395 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8398 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
8399 * doc/standards.texi: Likewise.
8400 * doc/extend.texi: Likewise.
8401 * doc/trouble.texi: Likewise.
8402 * doc/cppopts.texi: Likewise.
8403 * doc/install.texi: Likewise.
8404 * c.opt (std=c90,std=gnu90): New options.
8405 * c-opts.c (c_common_handle_option): Handle them.
8407 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8410 * c-decl.c (undeclared_variable): Use an informative note.
8412 2010-02-26 Richard Guenther <rguenther@suse.de>
8414 PR tree-optimization/43186
8415 * gimple.h (gimple_fold): Remove.
8416 * gimple.c (gimple_fold): Remove. Inline into single user ...
8417 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
8418 Try harder for conditions.
8420 2010-02-26 Jakub Jelinek <jakub@redhat.com>
8423 * function.c (used_types_insert): Don't skip through named pointer
8424 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
8425 and it is different from the main variant's type.
8427 2010-02-26 Nick Clifton <nickc@redhat.com>
8429 * config/rx/rx.md (sminsi3): Remove bogus alternative.
8431 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
8433 * config.gcc: Support --with-fpmath=sse for x86.
8435 * config/i386/ssemath.h: New.
8437 * doc/install.texi (--with-fpmath=sse): Documented.
8439 2010-02-26 Richard Guenther <rguenther@suse.de>
8441 PR tree-optimization/43188
8442 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
8443 vector types of over-aligned element type.
8445 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
8448 * config/i386/i386.c (expand_vec_perm_blend): Use correct
8449 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
8451 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8453 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
8455 2010-02-26 Jakub Jelinek <jakub@redhat.com>
8457 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
8458 * var-tracking.c: Include diagnostic.h.
8459 (debug_dv): New function.
8460 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
8463 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
8464 (add_value_chain, add_value_chains, remove_value_chain,
8465 remove_value_chains): Handle DEBUG_EXPRs.
8466 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
8469 * regcprop.c (struct queued_debug_insn_change): New type.
8470 (struct value_data_entry): Add debug_insn_changes field.
8471 (struct value_data): Add n_debug_insn_changes field.
8472 (debug_insn_changes_pool): New variable.
8473 (free_debug_insn_changes, apply_debug_insn_changes,
8474 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
8475 (kill_value_one_regno): Call free_debug_insn_changes if needed.
8476 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
8478 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
8480 (copyprop_hardreg_forward_1): Don't call apply_change_group for
8481 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
8482 changes, call cprop_find_used_regs via note_stores.
8483 (copyprop_hardreg_forward): When copying vd from predecessor
8484 which has any queued DEBUG_INSN changes, make sure the pointers are
8485 cleared. At the end call df_analyze and then if there are any
8486 DEBUG_INSN changes queued at the end of some basic block for still
8487 live registers, apply them.
8488 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
8490 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
8492 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
8495 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
8497 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
8498 targets. Set the default with_cpu/with_arch from arch/cpu.
8499 Allow x86-64 and native for with_cpu/with_arch.
8501 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
8503 * ebitmap.c: Change calls to verify_popcount with calls to
8504 sbitmap_verify_popcount.
8505 (ebitmap_clear_bit): Fixed map->cacheindex test and
8506 map>cache update when bit clearing results in an empty
8509 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
8512 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
8513 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
8514 and support both V2DF and V2DI modes.
8515 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
8516 support both V2DF and V2DI modes.
8517 (general): Delete trailing whitespace from a few patterns.
8519 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8520 V2DF/V2DI interleave high/low builtins.
8522 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
8525 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
8526 interleave high/low functions.
8528 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
8530 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
8531 #pragma extern_prefix.
8533 2010-02-25 Jakub Jelinek <jakub@redhat.com>
8536 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
8537 BLKmode, assert op0 is a MEM and just adjust its mode.
8540 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
8541 if bitpos isn't multiple of mode's bitsize.
8543 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8545 * c.opt (-ftemplate-depth=): New.
8546 (-ftemplate-depth-): Deprecate.
8547 * optc-gen.awk: Handle -ftemplate-depth=.
8548 * opth-gen.awk: Likewise.
8549 * c-opts.c (c_common_handle_option): Likewise.
8550 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
8552 2010-02-24 Jason Merrill <jason@redhat.com>
8554 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
8556 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8558 * cfg.c (alloc_aux_for_block): Remove inline.
8559 (alloc_aux_for_edge): Likewise.
8561 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8563 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
8565 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8567 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
8568 * config/i386/sol2-gas.h: New file.
8569 * config.gcc (i[34567]86-*-solaris2*): Use it.
8571 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8574 * c-typeck.c (ep_convert_and_check): New.
8575 (build_conditional_expr): Use it.
8576 (build_binary_op): Likewise.
8578 2010-02-24 Jakub Jelinek <jakub@redhat.com>
8580 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
8583 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
8584 bounds even for -O+.
8585 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
8586 expr needs to have DECL_NAME set.
8588 2010-02-24 Nick Clifton <nickc@redhat.com>
8590 * config/mep/mep.c: Include gimple.h.
8591 (mep_function_uses_sp): Delete unused function.
8592 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
8593 parameters. Use unsigned integers to count args. Return a
8594 NULL_RTX instead of an error_mark_node. Toidy up formatting.
8596 2010-02-23 Jakub Jelinek <jakub@redhat.com>
8599 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
8600 greater or equal to nelt instead of 2 * nelt.
8601 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
8604 2010-02-23 Jason Merrill <jason@redhat.com>
8607 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
8608 in cfun->local_decls even if they have register types.
8611 * stor-layout.c (place_field): Don't warn about unnecessary
8612 DECL_PACKED if the type is packed.
8614 2010-02-23 Jakub Jelinek <jakub@redhat.com>
8617 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
8618 GOTOFF relocs, even when the base reg isn't pic pointer.
8620 2010-02-23 Michael Matz <matz@suse.de>
8623 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
8624 (expand_gimple_basic_block): Generate and use debug temps if there
8625 are debug uses left after the last real use of TERed ssa names.
8626 Unlink debug immediate uses when they are expanded.
8628 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8631 * config/i386/i386.c (override_options): Reorganise to provide
8632 better error messages.
8634 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8637 * graphite-scop-detection.c (create_single_exit_edge): Move
8638 the call to find_single_exit_edge to....
8639 (create_sese_edges): ...here. Don't handle multiple edges
8640 exiting the function.
8641 (build_graphite_scops): Don't handle multiple edges
8642 exiting the function.
8644 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8647 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
8648 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
8650 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8653 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
8655 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8658 * c-typeck.c (convert_arguments): Print declaration location.
8659 * c-common.c (validate_nargs): Rename as
8660 builtin_function_validate_nargs.
8661 (check_builtin_function_arguments): Update.
8663 2010-02-22 Richard Guenther <rguenther@suse.de>
8666 * tree-inline.c (declare_return_variable): Use the type of
8667 the call stmt lhs if available.
8669 2010-02-22 Duncan Sands <baldrick@free.fr>
8671 * passes.c (register_pass): Always consider all pass lists when
8672 ref_pass_instance_number is zero.
8674 2010-02-22 Richard Guenther <rguenther@suse.de>
8676 PR tree-optimization/42749
8677 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
8678 parameter. Do arithmetic in the original type.
8679 (update_accumulator_with_ops): Likewise.
8680 (adjust_accumulator_values): Adjust.
8682 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8684 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
8685 (QI to BLKmode splitter): New splitter.
8687 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
8689 * config/i386/i386.c (initial_ix86_tune_features): Turn on
8690 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
8692 2010-02-22 Richard Guenther <rguenther@suse.de>
8694 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
8696 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
8698 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
8699 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
8700 ($(T)crti.o, $(T)crtn.o): Remove rules.
8702 2010-02-21 Tobias Burnus <burnus@net-b.de>
8705 * doc/invoke.texi (-fassociative-math): Document that this
8706 option is automatically enabled for Fortran.
8708 2010-02-20 David S. Miller <davem@davemloft.net>
8710 * configure.ac: Test if linker and assembler properly support
8711 GOTDATA_OP relocations.
8712 * configure: Rebuild.
8713 * config.in: Likewise.
8714 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
8715 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
8716 (movsi_high_pic): Likewise.
8717 (movdi_lo_sum_pic): Likewise.
8718 (movdi_high_pic): Likewise.
8719 (movsi_pic_gotdata_op): New pattern.
8720 (movdi_pic_gotdata_op): Likewise.
8721 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
8722 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
8724 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
8727 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
8728 attribute to ssemul.
8729 (xop_mulv2div2di3_high): Ditto.
8731 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8734 * c.opt (Wconversion-null): New option.
8735 * doc/invoke.texi (Wconversion-null): Document.
8737 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8739 * common.opt (Wlarger-than-): Add Undocumented.
8741 2010-02-19 Mike Stump <mikestump@comcast.net>
8743 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
8745 2010-02-19 Jason Merrill <jason@redhat.com>
8748 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
8749 * configure: Likewise.
8751 2010-02-20 Alan Modra <amodra@gmail.com>
8754 * cgraph.h (cgraph_make_decl_local): Declare.
8755 * cgraph.c (cgraph_make_decl_local): New function.
8756 (cgraph_make_node_local): Use it.
8757 * cgraphunit.c (cgraph_function_versioning): Likewise.
8758 * ipa.c (function_and_variable_visibility): Likewise.
8760 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8763 * except.c (sjlj_emit_function_enter): Don't call
8764 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
8766 * rtl.h (add_reg_br_prob_note): Remove prototype.
8768 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8771 * c-common.c (conversion_warning): Remove widening conversions
8772 before checking the conversion of integers to reals.
8774 2010-02-19 Mike Stump <mikestump@comcast.net>
8777 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
8780 * cgraphunit.c (process_function_and_variable_attributes): Check
8781 DECL_PRESERVE_P instead of looking up attribute "used".
8782 * ipa-pure-const.c (check_decl): Likewise.
8783 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
8784 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
8785 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
8786 instead of attribute "used".
8787 * config/sol2-c.c (solaris_pragma_init): Likewise.
8788 (solaris_pragma_fini): Likewise.
8790 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8792 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
8793 Use XCNEW instead of xcalloc.
8794 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
8795 XNEW instead of xmalloc.
8796 (get_fields): Use XNEWVEC instead of xmalloc.
8799 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
8800 populate vars array.
8801 (create_new_general_access): For debug stmts just reset value.
8802 (get_stmt_accesses): For accesses within debug stmts just record them
8803 using add_access_to_acc_sites instead of preventing the peeling or
8804 counting them as accesses.
8807 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
8809 2010-02-19 Richard Guenther <rguenther@suse.de>
8811 PR tree-optimization/42916
8812 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
8815 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
8817 * configure.ac: Replace all uses of changequote in macro arguments
8818 with proper quoting.
8820 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8823 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
8825 2010-02-19 Richard Guenther <rguenther@suse.de>
8827 PR tree-optimization/42944
8828 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
8829 test for aliasing with errno.
8831 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8834 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
8835 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
8836 * dojump.c: Include output.h.
8837 (inv): New inline function.
8838 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
8839 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
8840 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
8841 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
8842 argument, pass it down to other calls.
8843 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
8844 add REG_BR_PROB note to the conditional jump.
8845 * cfgexpand.c (add_reg_br_prob_note): Removed.
8846 (expand_gimple_cond): Don't call it, add the probability
8847 as last argument to jumpif_1/jumpifnot_1.
8848 * Makefile.in (dojump.o): Depend on output.h.
8849 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
8851 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
8852 * stmt.c (do_jump_if_equal): Likewise.
8853 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
8854 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8855 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
8857 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
8858 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
8859 jumpifnot_1 callers.
8860 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
8862 (store_expr): Adjust jumpifnot caller.
8863 (store_constructor): Adjust jumpif caller.
8866 * gimplify.c (gimple_boolify): For __builtin_expect call
8867 gimple_boolify also on its first argument.
8869 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
8871 * configure.ac (gnu-unique-object): Wrap regexps using [] in
8873 (__stack_chk_fail): Ditto. Remove quadrigraphs.
8874 * configure: Regenerated.
8876 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8878 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
8879 lang_hooks.types_compatible_p instead of comptypes.
8881 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8883 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
8884 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
8885 if __prefer_thumb__ is defined.
8887 2010-02-18 Martin Jambor <mjambor@suse.cz>
8889 PR tree-optimization/43066
8890 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
8891 array with zero-sized element type.
8893 2010-02-18 Jakub Jelinek <jakub@redhat.com>
8895 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
8896 rtx, allocate struct var_loc_node here and return it to the
8897 caller, and only if it is actually needed.
8898 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
8899 move it earlier and return immediately if it returns NULL.
8901 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
8903 * config/sparc/gas.h: New file. Restore
8904 TARGET_ASM_NAMED_SECTION to its ELF default.
8905 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
8907 * config/sparc/sparc.c (sparc_elf_asm_named_section):
8908 Likewise. Add ATTRIBUTE_UNUSED to prototype.
8909 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
8910 after sparc/sysv4.h.
8912 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
8914 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
8916 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
8918 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
8919 patterns from predicated pattern.
8921 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
8924 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
8925 for insn mnemonic suffix.
8927 2010-02-17 Richard Guenther <rguenther@suse.de>
8929 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
8932 2010-02-17 Jakub Jelinek <jakub@redhat.com>
8935 * caller-save.c (save_call_clobbered_regs): If BB ends with
8936 a DEBUG_INSN, move any notes in between last real insn and the last
8937 DEBUG_INSN after the last DEBUG_INSN.
8939 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
8941 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
8942 Fix return type. Fix argument type. Explain meaning of return value.
8944 2010-02-16 Richard Guenther <rguenther@suse.de>
8946 PR tree-optimization/41043
8947 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
8948 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
8950 (vrp_visit_phi_node): ... but only for loop PHI nodes.
8952 2010-02-16 Ira Rosen <irar@il.ibm.com>
8954 PR tree-optimization/43074
8955 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
8956 * tree-vect-loop.c (vect_analyze_loop_operations): Add
8957 vectorizable cycles in hybrid SLP check.
8958 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
8960 2010-02-16 Richard Guenther <rguenther@suse.de>
8962 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
8963 (true_dependence): If memrefs_conflict_p computes must-alias
8964 trust it. Move TBAA check after offset-based disambiguation.
8965 (canon_true_dependence): Likewise.
8967 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
8969 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
8970 * doc/invoke.texi: Document it.
8971 * var-tracking.c: Include toplev.h and params.h.
8972 (vt_find_locations): Return bool indicating success. Compute
8973 hash sizes unconditionally. Check new parameter, report.
8974 (variable_tracking_main_1): Check vt_find_locations results and
8975 retry. Renamed from...
8976 (variable_tracking_main): ... this. New wrapper to preserve
8977 flag_var_tracking_assignments.
8978 * Makefile.in (var-tracking.o): Adjust dependencies.
8980 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
8981 Jakub Jelinek <jakub@redhat.com>
8984 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
8985 if weak_import attribute is present.
8986 * config/darwin.c (machopic_select_section): Likewise.
8988 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
8990 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
8991 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
8992 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
8993 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
8995 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
8998 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9001 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9002 Rewrite text to refer to the names.
9004 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
9006 * config/i386/i386-builtin-types.def
9007 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9008 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9009 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9010 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9011 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9012 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9013 IX86_BUILTIN_VPERMIL2PS256.
9014 (MULTI_ARG_4_DF2_DI_I): Defined.
9015 (MULTI_ARG_4_DF2_DI_I1): Defined.
9016 (MULTI_ARG_4_SF2_SI_I): Defined.
9017 (MULTI_ARG_4_SF2_SI_I1): Defined.
9018 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9019 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9020 __builtin_ia32_vpermil2ps256.
9021 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9022 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9023 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
9024 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9025 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9026 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
9027 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9028 CODE_FOR_xop_vpermil2v8sf3.
9029 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9030 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9031 * config/i386/xopintrin.h (_mm_permute2_pd): New.
9032 (_mm256_permute2_pd): New.
9033 (_mm_permute2_ps): New.
9034 (_mm256_permute2_ps): New.
9036 2010-02-15 Nick Clifton <nickc@redhat.com>
9038 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9039 boolean parameters. Use emit_jump_insn when emitting a pop
9040 instruction containing a return insn.
9041 (push): Use 'true' rather than '1' as second parameter to F.
9042 (h8300_expand_prologue): Likewise.
9043 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9044 (h8300_expand_epilogue): Likewise.
9046 2010-02-15 Richard Guenther <rguenther@suse.de>
9049 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9052 2010-02-15 Nick Clifton <nickc@redhat.com>
9054 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9057 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
9059 * intl.c (fake_ngettext): New function.
9060 * intl.h (fake_ngettext): Declare.
9061 (ngettext): Define macro.
9062 * collect2.c (notice_translated): New function.
9063 (main): Use notice_translated and ngettext.
9064 * collect2.h (notice_translated): Declare.
9066 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
9068 * reorg.c (delete_computation): Comment fixes.
9069 * caller-save.c (setup_save_areas): Idem.
9070 * sel-sched-dump.c (dump_lv_set): Idem.
9073 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9075 * config/s390/s390.c (s390_sched_init): New function.
9076 (TARGET_SCHED_INIT): Target hook defined.
9078 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
9079 Jack Howarth <howarth@bromo.med.uc.edu>
9080 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9083 Partial revert of unintended change in fix for PR41605.
9084 * config/darwin.h: Fix typo.
9085 * config/darwin9.h: Same.
9087 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9089 * c-pch.c (pch_init): Clear v.
9091 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9094 * graphite-scop-detection.c (graphite_can_represent_scev): Call
9095 graphite_can_represent_init for MULT_EXPR.
9097 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9101 * graphite-sese-to-poly.c (remove_phi): New.
9102 (translate_scalar_reduction_to_array): Call remove_phi.
9104 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9107 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
9108 * graphite-clast-to-gimple.h (gloog): Update declaration.
9109 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
9110 * graphite-poly.h (struct poly_bb): Add missing comments.
9111 (struct scop): Add poly_scop_p field.
9113 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
9114 * graphite.c (graphite_transform_loops): Build the polyhedral
9115 representation for each scop before code generation.
9116 * sese.c (rename_variables_in_operand): Removed.
9117 (rename_variables_in_expr): Return the renamed expression.
9118 (rename_sese_parameters): New.
9119 * sese.h (rename_sese_parameters): Declared.
9121 2010-02-11 Richard Guenther <rguenther@suse.de>
9123 PR tree-optimization/42998
9124 * tree-ssa-pre.c (create_expression_by_pieces): Treat
9125 POINTER_PLUS_EXPR properly.
9127 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9128 Changpeng Fang <changpeng.fang@amd.com>
9131 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
9132 the cost of an IV candidate when the IV is used in a test against zero.
9134 * gcc.dg/tree-ssa/ivopts-3.c: New.
9136 2010-02-11 Richard Guenther <rguenther@suse.de>
9139 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
9140 pointer-vs-decl case by swapping refs. Handle some cases
9141 of pointer-vs-decl disambiguations more conservatively.
9142 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
9143 to false after expanding.
9145 2010-02-11 Richard Guenther <rguenther@suse.de>
9148 * gcc.c (process_command): Handle LTO file@offset case more
9151 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9153 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
9154 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
9156 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
9158 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
9159 if MEM's mode size isn't DWARF2_ADDR_SIZE.
9160 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
9161 Optimize eq/ne comparisons when both arguments are known to be
9163 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
9164 Don't mask operands unnecessarily if they are known to be already
9167 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
9169 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
9172 2010-02-10 Richard Guenther <rguenther@suse.de>
9174 PR tree-optimization/43017
9175 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
9176 for wrapping signed arithmetic.
9178 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9181 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
9182 if no debug info should be emitted for it.
9184 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
9186 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
9187 note when flag_exceptions is set.
9189 2010-02-10 Duncan Sands <baldrick@free.fr>
9191 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
9193 2010-02-10 Richard Guenther <rguenther@suse.de>
9196 * tree.c (get_unwidened): Handle constants.
9197 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
9199 2010-02-10 Martin Jambor <mjambor@suse.cz>
9202 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
9203 check for variable argument counts independently.
9205 2010-02-10 Christian Bruel <christian.bruel@st.com>
9208 * config/sh/sh.c (find_barrier): Increase length for non delayed
9209 conditional branches.
9211 2010-02-10 Christian Bruel <christian.bruel@st.com>
9213 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
9215 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9217 * builtins.c (set_builtin_user_assembler_name): Also handle
9218 ffs if int is smaller than word.
9220 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
9223 * ira-conflicts.c (get_dup): Remove.
9224 (process_reg_shuffles): Add new parameter. Use it as an
9225 additional guard for copy generation.
9226 (add_insn_allocno_copies): Rewrite.
9228 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
9230 * common.opt (fsched2-use-traces): Preserved for backward
9232 * doc/invoke.texi: Remove the documentation about option
9233 -fsched2-use-traces.
9234 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
9235 flag_sched2_use_traces.
9236 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
9237 the backward compatibility flag section.
9239 2010-02-09 Richard Guenther <rguenther@suse.de>
9241 PR tree-optimization/43008
9242 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
9243 make HEAP variables initialized from global memory if they
9244 are not known builtin functions.
9245 (find_func_aliases): Adjust.
9247 2010-02-09 Richard Guenther <rguenther@suse.de>
9249 PR tree-optimization/43000
9250 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
9251 arithmetic manually.
9253 2010-02-08 Jakub Jelinek <jakub@redhat.com>
9255 PR tree-optimization/42931
9256 * tree-loop-linear.c (try_interchange_loops): Don't call
9257 double_int_mul if estimated_loop_iterations failed.
9259 2010-02-08 Martin Jambor <mjambor@suse.cz>
9262 * tree-sra.c (build_accesses_from_assign): Do not mark in
9263 should_scalarize_away_bitmap if stmt has volatile ops.
9264 (sra_modify_assign): Do not process assigns piecemeal if if stmt
9267 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
9269 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
9271 2010-02-07 Adam Nemet <adambnmet@gmail.com>
9273 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
9276 2010-02-07 Andrew Pinski <pinskia@gmail.com>
9279 * df-core.c (df_finish_pass): Change type of saved_flags to int.
9281 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9284 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
9285 to unknown_dependence.
9286 (graphite_legal_transform_dr): Handle the unknown_dependence.
9287 (graphite_carried_dependence_level_k): Same.
9289 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9291 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
9293 2010-02-07 Richard Guenther <rguenther@suse.de>
9296 * expr.c (get_inner_reference): Always initialize *pbitsize.
9298 2010-02-07 Richard Guenther <rguenther@suse.de>
9301 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
9302 new ARRAY_REFs on variable size element or minimal index arrays.
9304 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
9305 gimple_fold_indirect_ref.
9307 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
9310 * arm.c (arm_override_options): Just return if the user has specified
9311 an invalid fpu name.
9313 2010-02-03 Jason Merrill <jason@redhat.com>
9316 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
9317 i386_pe_maybe_record_exported_symbol.
9319 2010-02-05 Steve Ellcey <sje@cup.hp.com>
9322 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9323 (pa_delegitimize_address): New function.
9325 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
9327 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
9328 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
9330 2010-02-05 Richard Guenther <rguenther@suse.de>
9333 * lto-streamer-in.c (get_resolution): Deal with references
9334 to undefined functions.
9336 2010-02-05 Richard Guenther <rguenther@suse.de>
9338 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
9339 (fold_const_aggregate_ref): Likewise.
9340 (ccp_fold_stmt): Substitute loads.
9341 (maybe_fold_reference): Verify types before substituting.
9343 (fold_gimple_assign): Unshare properly.
9344 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
9346 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
9348 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
9349 for rs6000_gen_cell_microcode.
9351 2010-02-04 Richard Guenther <rguenther@suse.de>
9353 PR rtl-optimization/42952
9354 * dse.c (const_or_frame_p): Remove MEM handling.
9356 2010-02-04 Nick Clifton <nickc@redhat.com>
9358 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9359 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9360 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
9361 (mn10300_asm_output_mi_thunk): New function.
9362 (mn10300_can_output_mu_thunk): New function.
9363 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
9364 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
9365 (FUNCTION_ARG): Delete incorrect comment.
9367 2010-02-03 Jason Merrill <jason@redhat.com>
9370 * fold-const.c (operand_equal_p): Handle erroneous types.
9372 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9374 * config/h8300/h8300.md (can_delay): Fix attibute condition.
9376 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
9378 PR rtl-optimization/42941
9379 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
9382 2010-02-03 Jason Merrill <jason@redhat.com>
9385 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
9387 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
9390 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
9391 (cselib_reset_table): Renamed from...
9392 (cselib_reset_table_with_next_value): ... this.
9393 (cselib_get_next_uid): Renamed from...
9394 (cselib_get_next_unknown_value): ... this.
9395 * cselib.c (next_uid): Renamed from...
9396 (next_unknown_value): ... this.
9397 (cselib_clear_table): Adjust.
9398 (cselib_reset_table): Adjust. Renamed from...
9399 (cselib_reset_table_with_next_value): ... this.
9400 (cselib_get_next_uid): Adjust. Renamed from...
9401 (cselib_get_next_unknown_value): ... this.
9402 (get_value_hash): Use hash.
9403 (cselib_hash_rtx): Likewise.
9404 (new_cselib_val): Adjust. Set and dump uid.
9405 (cselib_lookup_mem): Pass next_uid as hash.
9406 (cselib_subst_to_values): Likewise.
9407 (cselib_log_lookup): Dump uid.
9408 (cselib_lookup): Pass next_uid as hash. Adjust.
9409 (cselib_process_insn): Adjust.
9410 (cselib_init): Initialize next_uid.
9411 (cselib_finish): Adjust.
9412 (dump_cselib_table): Likewise.
9413 * dse.c (canon_address): Dump value uid.
9414 * print-rtl.c (print_rtx): Print value uid.
9415 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
9417 (dv_uid): New function, sort of renamed from...
9418 (dv_htab_hash): ... this, reimplemented in terms of it and...
9419 (dv_uid2hash): ... this. New.
9420 (variable_htab_eq): Drop excess assertions.
9421 (tie_break_pointers): Removed.
9422 (canon_value_cmp): Compare uids.
9423 (variable_post_merge_New_vals): Print uids.
9424 (vt_add_function_parameters): Adjust.
9425 (vt_initialize): Reset table. Adjust.
9427 2010-02-03 Richard Guenther <rguenther@suse.de>
9429 PR tree-optimization/42944
9430 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
9431 (call_may_clobber_ref_p_1): Likewise. Properly handle
9432 malloc and calloc clobbering errno.
9434 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
9436 * doc/invoke.texi: Fix name of sched1 dump.
9438 * opts.c (decode_options): Set flag_tree_switch_conversion
9439 only conditionally on optimize >= 2.
9441 * gcse.c: Assorted comment fixes in pass description.
9443 2010-02-03 Anthony Green <green@moxielogic.com>
9445 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
9446 nop padding in order to maintain alignment of storage location of
9447 target function address.
9448 (moxie_trampoline_init): Store target function address at newly
9450 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
9452 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
9454 2010-02-03 Richard Guenther <rguenther@suse.de>
9457 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
9459 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9461 * config.gcc: Reenable check for obsolete targets.
9462 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
9463 mips-sgi-irix6.[0-4]*.
9465 2010-02-02 Nick Clifton <nickc@redhat.com>
9467 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
9468 constant size of 4 as being the same as 0.
9469 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
9470 can take values in the range 0..4.
9472 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
9475 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
9476 as _darwin10_Unwind_FindEnclosingFunction().
9477 * libgcc-libsystem.ver: New.
9479 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
9482 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
9483 implicitly set registers.
9485 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
9487 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
9488 (arm_override_options): Allow automatic selection of the thread
9489 pointer register if thumb2.
9490 (legitimize_pic_address): Improve code sequences for Thumb2.
9491 (arm_call_tls_get_addr): Likewise.
9492 (legitimize_tls_address): Likewise.
9493 * arm.md (pic_load_addr_arm): Delete. Replace with ...
9494 (pic_load_addr_32bit): ... this. New named pattern.
9495 * thumb2.md (pic_load_addr_thumb2): Delete.
9496 (pic_load_dot_plus_four): Delete.
9497 (tls_load_dot_plus_four): New named pattern.
9499 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9502 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
9503 Document fix for TLS bug.
9505 2010-01-31 Richard Guenther <rguenther@suse.de>
9507 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
9508 conservatively correct.
9510 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9514 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9516 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9518 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9520 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
9522 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
9524 * config.gcc: Adjust order of makefile fragments for mingw targets.
9526 2010-01-31 Richard Guenther <rguenther@suse.de>
9529 * gimplify.c (gimplify_init_constructor): For volatile LHS
9530 initialize a temporary.
9532 2010-01-31 Matthias Klose <doko@ubuntu.com>
9534 * configure.ac: Fix __stack_chk_fail check for cross builds configured
9536 * configure: Regenerate.
9538 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
9540 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9541 the same alias set and their sizes different constantness.
9542 (aliasing_component_refs_p): Revert 2009-10-24 change.
9544 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9546 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
9549 2010-01-29 Richard Guenther <rguenther@suse.de>
9551 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
9552 Assert we successfully updated the call.
9554 2010-01-29 Jakub Jelinek <jakub@redhat.com>
9556 PR rtl-optimization/42889
9557 * df.h (df_set_bb_dirty_nonlr): New prototype.
9558 * df-core.c (df_set_bb_dirty_nonlr): New function.
9559 * df-scan.c (df_insn_rescan): Call it instead of
9560 df_set_bb_dirty for DEBUG_INSNs.
9562 2010-01-29 Richard Guenther <rguenther@suse.de>
9565 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
9566 quadratic behavior in most cases.
9568 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
9571 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
9572 in the call to gen_x86_movsicc_0_m1.
9574 2010-01-28 Richard Guenther <rguenther@suse.de>
9576 PR tree-optimization/42871
9577 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
9579 2010-01-28 Richard Guenther <rguenther@suse.de>
9581 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
9582 into call arguments.
9584 2010-01-28 Richard Guenther <rguenther@suse.de>
9587 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
9588 the forwarder if the destination is an EH landing pad.
9590 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
9592 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
9593 block list passed to gimple_duplicate_sese_tail.
9594 (parallelize_loops): Avoid parallelization when the function
9596 Avoid parallelization when the preheader is IRREDUCIBLE.
9597 Try to optimize when estimated_loop_iterations_int is unresolved.
9598 Add the loop's location to the dump file.
9599 * tree-cfg.c (add_phi_args_after_redirect): Remove.
9600 (gimple_duplicate_sese_tail): Remove the check for the latch.
9601 Redirect nexits to the exit block.
9602 Remove handling of the incoming edges to the latch.
9603 Redirect the backedge from the copied latch to the exit bb.
9605 2010-01-28 Michael Matz <matz@suse.de>
9608 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
9609 Wrap force_reg into a sequence, emit it before user.
9611 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
9613 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
9615 (arm_legacy_rev): Likewise.
9616 (thumb_legacy_rev): Likewise.
9618 2010-01-27 Jakub Jelinek <jakub@redhat.com>
9620 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
9621 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
9622 on MEM's address failed, try avoid_constant_pool_reference and
9623 recurse if it returned something different.
9624 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
9625 address, try avoid_constant_pool_reference and recurse if it
9626 returned something different.
9627 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
9628 address and avoid_constant_pool_reference returned something
9629 different, don't set have_address.
9631 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
9634 * var-tracking.c (val_store): Add modified argument, obey it.
9636 (count_uses): Move down logging of main.
9637 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
9638 don't need resolution.
9639 (emit_notes_in_bb): Likewise.
9641 2010-01-27 Richard Guenther <rguenther@suse.de>
9644 * tree-inline.c (remap_decl): Delay remapping of SSA name
9645 default definitions until we need them.
9647 2010-01-27 Jakub Jelinek <jakub@redhat.com>
9649 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9650 (rs6000_delegitimize_address): New function.
9652 * config/s390/s390.c (s390_delegitimize_address): Call
9653 delegitimize_mem_from_attrs.
9656 * tree-inline.c (cannot_copy_type_1): Removed.
9657 (copy_forbidden): Don't forbid copying of functions containing
9658 records/unions with variable length fields.
9660 2010-01-27 Christian Bruel <christian.bruel@st.com>
9664 * config/sh/sh.c (find_barrier): Increase length for non delayed
9665 conditional branches.
9667 2010-01-27 Matthias Klose <doko@ubuntu.com>
9669 * configure.ac (gnu-unique-object): Fix ldd version check.
9670 * configure: Regenerate.
9672 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9674 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
9676 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
9677 Test for HAVE_GNU_AS value.
9679 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9681 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
9682 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
9683 INT64_TYPE): Define.
9684 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
9685 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9686 INT_LEAST64_TYPE): Define.
9687 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
9688 UINT_LEAST64_TYPE): Define.
9689 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
9690 INT_FAST64_TYPE): Define.
9691 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9692 UINT_FAST64_TYPE): Define.
9693 (INTMAX_TYPE, UINTMAX_TYPE): Define.
9694 (INTPTR_TYPE, UINTPTR_TYPE): Define.
9695 (SIG_ATOMIC_TYPE): Define.
9697 2010-01-26 Richard Guenther <rguenther@suse.de>
9699 * df-scan.c (df_scan_set_bb_info): Remove assert.
9700 (df_insn_rescan_debug_internal): Merge asserts.
9701 (df_install_ref): Likewise.
9702 (df_mark_reg): Use bitmap_set_range.
9703 (df_hard_reg_used_p): Remove assert.
9704 (df_hard_reg_used_count): Likewise.
9706 2010-01-26 Richard Guenther <rguenther@suse.de>
9708 PR rtl-optimization/42685
9709 * web.c (web_main): Ignore DEBUG_INSNs.
9711 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
9713 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
9715 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
9716 Fix types of fndecl and arglist parameters.
9718 2010-01-26 Richard Guenther <rguenther@suse.de>
9721 * tree-eh.c (unsplit_eh): Skip debug insns.
9723 2010-01-26 Richard Guenther <rguenther@suse.de>
9725 PR tree-optimization/42250
9726 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
9728 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9731 * omp-low.c (expand_omp_sections): Only use single_pred if
9732 l2_bb is single_pred_p.
9734 2010-01-25 Christian Bruel <christian.bruel@st.com>
9737 * config/sh/sh.c (find_barrier): Increase length for non delayed
9738 conditional branches.
9739 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
9741 2010-01-24 David S. Miller <davem@davemloft.net>
9743 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
9744 define if not using GAS.
9745 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9746 Likewise. Delete SECTION_MERGE code, which is only applicable
9749 2010-01-24 Mark Mitchell <mark@codesourcery.com>
9752 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
9753 mangling of va_list in system headers.
9755 2010-01-23 Toon Moene <toon@moene.org>
9757 * tree-predcom.c (combine_chains): Return NULL, not false.
9759 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
9761 * tree-loop-distribution.c (distribute_loop): Fix declaration and
9762 initialization of variable res to agree with return type.
9764 2010-01-22 Steve Ellcey <sje@cup.hp.com>
9766 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
9767 * tree-sra.c: Add include of expr.h.
9769 2010-01-22 Jakub Jelinek <jakub@redhat.com>
9771 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
9772 insert the debug stmt on the single non-EH edge from the stmt.
9774 2010-01-22 Richard Henderson <rth@redhat.com>
9777 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
9778 the RHS until after generate_subtree_copies has insertted its
9779 code before the current statement.
9781 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
9783 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
9785 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
9787 2010-01-21 Martin Jambor <mjambor@suse.cz>
9789 PR tree-optimization/42585
9790 * tree-sra.c (struct access): New field grp_total_scalarization.
9791 (dump_access): Dump the new field.
9792 (should_scalarize_away_bitmap): New variable.
9793 (cannot_scalarize_away_bitmap): Likewise.
9794 (sra_initialize): Allocate new bitmaps.
9795 (sra_deinitialize): Free new bitmaps.
9796 (create_access_1): New function.
9797 (create_access): Parts moved to create_access_1.
9798 (type_consists_of_records_p): New function.
9799 (completely_scalarize_record): Likewise.
9800 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
9801 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
9802 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
9804 (analyze_all_variable_accesses): Completely scalarize small eligible
9807 2010-01-21 Martin Jambor <mjambor@suse.cz>
9809 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
9811 2010-01-21 Andrew Haley <aph@redhat.com>
9813 * gcc.c (process_command): Move lang_specific_driver before
9814 setting cc_libexec_prefix.
9816 2010-01-21 Richard Guenther <rguenther@suse.de>
9819 * fold-const.c (negate_expr_p): Pretend only negative
9820 real constants are easily negatable.
9822 2010-01-20 Janis Johnson <janis187@us.ibm.com>
9823 Jason Merrill <jason@redhat.com>
9825 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
9826 (TYPE_TRANSPARENT_AGGR): this, for union and record.
9827 * calls.c (initialize argument_information): Handle it.
9828 * c-common.c (handle_transparent_union_attribute): Use new name.
9829 * c-decl.c (finish_struct): Ditto.
9830 * c-typeck.c (type_lists_compatible_p): Ditto.
9831 (convert_for_assignment): Use new name and also handle record.
9832 * function.c (aggregate_value_p): Handle it.
9833 (pass_by_reference): Ditto.
9834 (assign_parm_data_types): Ditto.
9835 * print-tree.c (print_node): Ditto.
9836 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
9837 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
9838 * tree.c (first_field): New fn.
9840 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
9843 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
9844 even when linking statically, for now.
9846 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
9849 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
9850 without a cselib val.
9851 (count_uses): Accept MO_VAL_SET with no val on stores.
9852 (add_stores): Likewise.
9854 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9856 * var-tracking.c (check_value_val): Add a compile time assertion.
9857 (dv_is_decl_p): Simplify.
9858 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
9859 gcc_assert if ENABLE_CHECKING.
9861 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
9864 * var-tracking.c: Include tree-flow.h.
9865 (mem_dies_at_call): New.
9866 (dataflow_set_preserve_mem_locs): Use it.
9867 (dataflow_set_remove_mem_locs): Likewise.
9868 (dump_var): Renamed from dump_variable. Adjust all callers.
9869 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
9870 * Makefile.in (var-tracking.o): Adjust deps.
9872 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
9874 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
9876 2010-01-20 Richard Guenther <rguenther@suse.de>
9878 PR tree-optimization/42717
9879 * tree-ssa-dce.c (get_live_post_dom): Remove.
9880 (forward_edge_to_pdom): Take an arbitrary edge to copy
9881 degenerate PHI args from.
9882 (remove_dead_stmt): Use the first post-dominator even if it
9883 does not contain live statements as redirection destination.
9885 2010-01-20 Richard Guenther <rguenther@suse.de>
9887 * tree-inline.c (estimate_num_insns): Handle EH builtins.
9889 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9891 * sel-sched.c (create_speculation_check): Remove set but not used
9893 (try_transformation_cache): Remove set but not used variable ds.
9894 (calculate_privileged_insns): Remove set but not used variables
9895 cur_insn and min_spec_insn.
9896 (find_best_expr): Remove set but not used variable avail_n.
9897 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
9899 * cgraphunit.c (assemble_thunk): Remove set but not used variable
9901 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
9902 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
9905 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
9908 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
9909 cpu types. Add support for *-sse3 cpu types.
9910 (x86_64-*-*): Ditto.
9912 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9915 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
9916 argument, call initializer_constant_valid_p_1 instead of
9917 initializer_constant_valid_p, pass CACHE to it, return NULL
9918 immediately if first call returns NULL.
9919 (initializer_constant_valid_p_1): New function.
9920 (initializer_constant_valid_p): Use it.
9922 2010-01-20 Thomas Quinot <quinot@adacore.com>
9924 * tree.def (PLACEHOLDER_EXPR): Fix comment.
9926 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9928 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
9929 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
9930 (loc_list_from_tree): Don't handle unsigned division. Handle
9931 signed modulo using DW_OP_{over,over,div,mul,minus}.
9932 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
9933 modulo instead of signed.
9935 2010-01-20 DJ Delorie <dj@redhat.com>
9937 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
9939 (h8300_emit_stack_adjustment): Propogate it.
9941 (h8300_expand_prologue): Likewise.
9942 (h8300_expand_epilogue): Likewise.
9944 2010-01-19 Michael Matz <matz@suse.de>
9946 PR tree-optimization/41783
9947 * tree-data-ref.c (toplevel): Include flags.h.
9948 (dump_data_dependence_relation): Also dump the inputs if the
9949 result will be unknown.
9950 (split_constant_offset_1): Look through some conversions.
9951 * tree-predcom.c (determine_roots_comp): Restart a new chain if
9952 the offset from last element is too large.
9953 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
9954 (reassociate_to_the_same_stmt): Handle vector registers.
9955 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
9957 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
9958 wide_prolog_niters argument, emit widening instructions.
9959 (vect_do_peeling_for_alignment): Adjust caller, use widened
9960 variant of the iteration cound.
9961 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
9963 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9966 * config/arm/neon-testgen.m (emit_automatics): New parameter
9967 features. Adjust for Fixed_return_reg feature.
9968 (test_intrinsic): Call emit_automatics with new feature.
9969 * config/arm/neon.ml: Update copyright years.
9970 (features): New Fixed_return_reg feature.
9971 (ops): Update feature for Vget_low.
9973 2010-01-19 Jakub Jelinek <jakub@redhat.com>
9975 PR tree-optimization/42719
9976 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
9980 * fwprop.c (all_uses_available_at): Return false if def_set dest
9981 is a REG that is used in def_insn.
9983 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
9985 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
9987 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
9990 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
9992 * target.h (struct gcc_target) <secondary_reload>: Change type
9993 of last argument to secondary_reload_info *.
9995 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
9998 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
9999 memory references with unaligned offsets. Remove CQImode handling.
10000 (unaligned_memory_operand): Return 1 for memory references with
10001 unaligned offsets. Remove CQImode handling.
10003 2010-01-18 Richard Guenther <rguenther@suse.de>
10005 PR middle-end/39954
10006 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10009 2010-01-18 Richard Guenther <rguenther@suse.de>
10011 PR tree-optimization/42781
10012 * tree-ssa-structalias.c (find_what_var_points_to): Skip
10013 restrict processing only if the original variable was artificial.
10015 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
10017 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10018 find number of popped argument bytes.
10020 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10021 Fix the text that describes the return value for invalid insns.
10023 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
10025 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10026 Clarify what 'cost of the -dependence' is. Fix quoting.
10028 * toplev.c (default_get_pch_validity): Rename argument to "sz".
10029 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10031 2010-01-17 Jakub Jelinek <jakub@redhat.com>
10033 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10034 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10036 2010-01-17 Richard Guenther <rguenther@suse.de>
10038 PR middle-end/42248
10039 * function.c (split_complex_args): Take a VEC to modify.
10040 (assign_parms_augmented_arg_list): Build a VEC instead of
10041 a chain of PARM_DECLs.
10042 (assign_parms_unsplit_complex): Take a VEC of arguments.
10043 Do not fixup unmodified parms.
10044 (assign_parms): Deal with the VEC.
10045 (gimplify_parameters): Likewise.
10047 2010-01-17 Richard Guenther <rguenther@suse.de>
10049 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10050 node existence check.
10051 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10052 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10053 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10054 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10055 (gimple_execute_on_growing_pred): Likewise.
10057 2010-01-17 Richard Guenther <rguenther@suse.de>
10059 PR tree-optimization/42773
10060 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10061 (compute_antic_aux): Likewise.
10062 (compute_partial_antic_aux): Likewise.
10064 2010-01-17 Jie Zhang <jie.zhang@analog.com>
10067 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10070 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
10072 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
10075 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
10076 Fix markup for strict argument.
10078 (TARGET_SCHED_REORDER2): Fix argument types.
10080 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
10081 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
10083 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
10084 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
10086 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
10089 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
10090 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
10091 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
10092 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
10093 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
10095 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
10097 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
10099 (TARGET_ASM_RELOC_RW_MASK): Add return type.
10100 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
10102 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
10104 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
10107 (TARGET_ASM_NAMED_SECTION): Fix argument list.
10109 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
10110 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
10112 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
10114 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
10116 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
10117 referring to it. Fix language.
10119 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
10121 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
10123 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
10125 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
10127 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
10128 '@var{stream}. Remove stray 'and'.
10130 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
10132 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
10134 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
10136 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
10137 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
10139 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
10140 Fix description of return value.
10141 Rename argument "sz" to "len."
10143 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
10144 Clarify meaning of 'true' return value.
10146 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
10148 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
10149 rep_mode versus mode_rep.
10151 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
10153 (TARGET_BUILTIN_DECL): Fix name.
10155 (TARGET_COMMUTATIVE_P): Fix type of first argument.
10157 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
10159 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
10161 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
10163 (TARGET_RELAXED_ORDERING): Use @deftypevr.
10165 (TARGET_GET_DRAP_RTX): Note that this is a hook.
10168 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
10169 Rename argument tm_fn to md_fn.
10171 (TARGET_OPTION_PRINT): Fix argument list.
10173 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
10176 * config/i386/i386.c (ix86_fixup_binary_operands):
10177 Revert FMA4 fixup of operands.
10179 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10182 * Makefile.in (write_entries_to_file, install-plugin):
10183 Use \012 instead of \n with tr.
10185 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
10187 * configure.ac (HAVE_AS_REF): New C macro.
10188 * configure: Regenerate.
10189 * config.in: Likewise.
10190 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
10192 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
10195 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
10197 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
10199 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
10201 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
10203 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
10205 (TARGET_IN_SMALL_DATA_P): Fix argument type.
10207 (TARGET_BINDS_LOCAL_P): Fix argument type.
10209 (TARGET_ASM_FILE_END): Use prototype.
10211 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
10213 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
10215 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
10217 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
10219 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
10220 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
10222 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
10223 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
10225 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
10226 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
10227 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
10228 (TARGET_ADDR_SPACE_CONVERT): Likewise.
10230 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
10232 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
10234 (TARGET_INIT_BUILTINS): Use prototype.
10236 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
10237 Put 'const char *' in braces. Fix parameter types.
10238 (TARGET_INVALID_CONVERSION): Fix parameter types.
10239 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
10240 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
10242 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
10245 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
10247 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
10249 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
10251 * doc/tm.texi (TARGET_HELP): Fix return type.
10253 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
10254 in braces. Fix argument types.
10256 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
10258 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
10260 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
10262 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
10263 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
10265 (TARGET_MANGLE_TYPE): Fix argument types.
10267 (TARGET_IRA_COVER_CLASSES): Use prototype.
10269 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
10271 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
10273 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
10275 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
10277 (TARGET_CALLEE_COPIES): Fix argument types.
10279 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
10281 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
10283 (TARGET_FUNCTION_VALUE): Fix argument types.
10285 (TARGET_RETURN_IN_MSB): Fix argument type.
10287 (TARGET_RETURN_IN_MEMORY): Fix argument types.
10289 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
10291 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
10293 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
10294 agree with return type.
10296 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
10298 2010-01-15 Jing Yu <jingyu@google.com>
10300 PR rtl-optimization/42691
10301 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
10302 a pseudo to a constant and are merged, and adjust comments.
10304 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
10306 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
10308 2010-01-15 Richard Guenther <rguenther@suse.de>
10310 PR middle-end/42739
10311 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
10312 labels of computed or non-local gotos to the destination.
10313 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
10314 landing pad label is the first label.
10316 2010-01-15 Richard Guenther <rguenther@suse.de>
10318 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
10320 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10323 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
10324 to allow generation of the xssqrtdp instruction on power7.
10325 (sqrtdf2_fpr): Ditto.
10327 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10329 PR middle-end/42674
10330 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
10331 functions with noreturn attribute.
10334 * varasm.c (declare_weak): Add weak attribute to decl if it
10335 doesn't have one already.
10336 (assemble_external): Only add decls to weak_decls if they also
10337 have weak attribute.
10339 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
10341 * var-tracking.c (var_reg_delete): Don't delete the association
10342 between REGs and values or one-part variables if the register
10345 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10348 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
10349 because its first operand is a non-localized variable.
10351 2010-01-14 Martin Jambor <mjambor@suse.cz>
10353 PR tree-optimization/42706
10354 * tree-sra.c (encountered_recursive_call): New variable.
10355 (encountered_unchangable_recursive_call): Likewise.
10356 (sra_initialize): Initialize both new variables.
10357 (callsite_has_enough_arguments_p): New function.
10358 (scan_function): Call decl and flags check only for IPA-SRA, check
10359 whether there is a recursive call and whether it has enough arguments.
10360 (all_callers_have_enough_arguments_p): New function.
10361 (convert_callers): Look for recursive calls only when
10362 encountered_recursive_call is set.
10363 (ipa_early_sra): Bail out either if
10364 !all_callers_have_enough_arguments_p or
10365 encountered_unchangable_recursive_call.
10367 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10369 * sel-sched.c: Add 2010 to copyright years.
10370 * sel-sched-ir.c: Likewise.
10371 * sel-sched-ir.h: Likewise.
10373 2010-01-14 Martin Jambor <mjambor@suse.cz>
10375 PR tree-optimization/42714
10376 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
10377 constructors specially.
10379 2010-01-14 Andi Kleen <ak@linux.intel.com>
10381 * config/i386/drivers-i386.c (detect_caches_intel):
10382 Add l2sizekb parameter and fill in.
10383 (host_detect_local_cpu): Add l2sizekb, fill in.
10384 Add Atom small cache heuristic.
10386 2010-01-14 Andi Kleen <ak@linux.intel.com>
10388 * config/i386/drivers-i386.c (detect_caches_cpuid4):
10389 Add level3 parameter and fill in.
10390 (detect_caches_intel): Handle level3 cache.
10392 2010-01-14 Andi Kleen <ak@linux.intel.com>
10394 * config/i386/drivers-i386.c (host_detect_local_cpu):
10395 Fix core duo detection.
10397 2010-01-14 Andi Kleen <ak@linux.intel.com>
10399 * config/i386/drivers-i386.c (host_detect_local_cpu):
10400 Fix Atom detection.
10402 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10404 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
10405 (rs6000_variable_issue_1): this. Use...
10406 (rs6000_variable_issue): here. Reimplement. Print debug info.
10408 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10410 * sel-sched-ir.c (sel_restore_other_notes): Rename to
10411 sel_restore_notes. Update all callers. Call reemit_notes
10414 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10416 PR rtl-optimization/42246
10417 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
10420 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10422 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
10423 all successors is the same as number of successors in current region.
10425 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10427 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
10428 to rename is not separable. Otherwise check that its LHS is not NULL.
10430 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10432 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
10434 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10436 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
10437 available registers when failed to discover LHS register class.
10438 Fix indentation. Update comment.
10440 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10441 Alexander Monakov <amonakov@ispras.ru>
10443 PR rtl-optimization/42389
10444 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
10446 (advance_state_on_fence): Likewise.
10447 (sel_target_adjust_priority): Print debug output only when
10448 sched_verbose >= 4, not 2.
10449 (get_expr_cost): Do not issue all unique insns on the next cycle.
10450 (fill_insns): Initialize can_issue_more from the value saved
10452 * sel-sched-ir.c (flist_add): New parameter issue_more.
10453 Init FENCE_ISSUE_MORE with it.
10454 (merge_fences): Likewise.
10455 (init_fences): Update call to flist_add.
10456 (add_to_fences, add_clean_fence_to_fences)
10457 (add_dirty_fence_to_fences): Likewise.
10458 (move_fence_to_fences): Update call to merge_fences.
10459 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
10461 * sel-sched-ir.h (struct _fence): New field issue_more.
10462 (FENCE_ISSUE_MORE): New accessor macro.
10464 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10466 PR rtl-optimization/42388
10467 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
10468 that have no predecessors nor successors. Do not call move_bb_info
10469 for empty blocks outside of current region.
10471 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10473 PR rtl-optimization/42294
10474 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
10475 * sel-sched.c (move_exprs_to_boundary): Transitively add all
10476 originators' originators.
10478 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10480 PR rtl-optimization/39453
10481 PR rtl-optimization/42246
10482 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
10484 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
10486 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10487 Alexander Monakov <amonakov@ispras.ru>
10489 PR middle-end/42245
10490 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
10491 (maybe_tidy_empty_bb): ... here. Make static. Add new
10492 argument. Update all callers.
10493 (tidy_control_flow): ... and here. Recompute topological order
10494 of basic blocks in region if necessary.
10495 (sel_redirect_edge_and_branch): Change return type. Return true
10496 if topological order might have been invalidated.
10497 (purge_empty_blocks): Export and move from...
10498 * sel-sched.c (purge_empty_blocks): ... here.
10499 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
10500 (maybe_tidy_empty_bb): Delete prototype.
10501 (purge_empty_blocks): Declare.
10503 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10505 PR rtl-optimization/42249
10506 * sel-sched.c (try_replace_dest_reg): When chosen register
10507 and original register is the same, do not bail out early, but
10508 still check all original insns for validity of replacing destination
10509 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
10512 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10515 Port from no-undefined-overflow branch:
10516 2009-03-09 Richard Guenther <rguenther@suse.de>
10518 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
10520 2010-01-14 Richard Guenther <rguenther@suse.de>
10523 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
10525 2010-01-14 Ira Rosen <irar@il.ibm.com>
10527 PR tree-optimization/42709
10528 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
10529 as scalar type in creation of constant vector operand.
10531 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10534 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
10535 (check-parallel-%): Match `testsuite' directory component only
10538 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
10540 PR translation/39521
10541 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
10544 2010-01-13 Richard Guenther <rguenther@suse.de>
10546 PR tree-optimization/42730
10547 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
10550 2010-01-13 Steve Ellcey <sje@cup.hp.com>
10553 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
10554 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
10557 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
10559 * config/bfin/libgcc-bfin.ver: Regenerate based on current
10560 libgcc-std.ver. Add entries for ___smulsi3_highpart and
10561 ___umulsi3_highpart.
10563 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
10564 rather than schedule_insns if the pass is enabled.
10566 2010-01-13 Martin Jambor <mjambor@suse.cz>
10568 PR tree-optimization/42704
10569 * tree-sra.c (sra_modify_assign): Do not delete assignments to
10572 2010-01-13 Martin Jambor <mjambor@suse.cz>
10574 PR tree-optimization/42703
10575 * tree-sra.c (analyze_access_subtree): Check that we can build a
10576 reference to the original data within the aggregate.
10578 2010-01-13 Richard Guenther <rguenther@suse.de>
10580 PR tree-optimization/42705
10581 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
10583 2010-01-13 Richard Guenther <rguenther@suse.de>
10585 PR middle-end/42716
10586 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
10588 2010-01-13 Jakub Jelinek <jakub@redhat.com>
10591 * var-tracking.c (values_to_unmark): New variable.
10592 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
10593 values_to_unmark vector. Moved body to...
10594 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
10595 instead queue it into values_to_unmark vector.
10596 (vt_find_locations): Free values_to_unmark vector.
10598 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
10600 * config/s390/s390.c (override_options): Set
10601 default of max-pending-list-length to 256
10603 2010-01-13 Richard Guenther <rguenther@suse.de>
10606 * tree-pass.h (PROP_gimple_lcx): New.
10607 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
10608 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
10609 before the final cleanup_eh.
10610 (dump_properties): Dump PROP_gimple_lcx.
10611 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
10612 (tree_lower_complex_O0): Remove.
10613 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
10614 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
10615 tree_lower_complex, schedule TODO_update_ssa.
10616 * lto-streamer-out.c (output_function): Stream the functions
10618 * lto-streamer-in.c (input_function): Likewise.
10619 (lto_read_body): Do not override them here.
10621 2010-01-12 Joseph Myers <joseph@codesourcery.com>
10624 * c-typeck.c (build_c_cast): Fold value cast to union type before
10625 wrapping it in a CONSTRUCTOR.
10627 2010-01-12 Jakub Jelinek <jakub@redhat.com>
10629 PR rtl-optimization/42699
10630 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
10633 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10635 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
10636 SUBTARGET_WARN_UNUSED_SPEC): Move ...
10637 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
10638 SUBTARGET_WARN_UNUSED_SPEC): ... here
10639 * config/mips/iris5.h (LIBGCC_SPEC): Define.
10641 2010-01-12 Julian Brown <julian@codesourcery.com>
10643 * config/arm/neon-schedgen.ml (Utils): Don't try to
10644 open missing module.
10645 (find_with_result): New.
10647 2010-01-12 Jakub Jelinek <jakub@redhat.com>
10650 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
10651 sharing when canonicalizing ({lt,ge}u (plus a b) b).
10653 PR tree-optimization/42645
10654 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
10655 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
10656 decl_map, set processing_debug_stmt to -1 and return name without
10659 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
10661 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
10662 binutils version, and reword target configuration description.
10664 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
10666 * config/avr/avr.h (LINKER_NAME): Remove.
10668 2010-01-11 Janis Johnson <janis187@us.ibm.com>
10671 * config/rs6000/rs6000.c (rs6000_override_options): On targets
10672 that support VSX, warn for -mno-altivec if vsx is not disabled,
10675 2010-01-11 Joseph Myers <joseph@codesourcery.com>
10676 Shujing Zhao <pearly.zhao@oracle.com>
10678 PR translation/42469
10679 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
10680 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
10681 character between option name and help text.
10682 * c.opt (imultilib): Likewise.
10684 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
10686 * lto-streamer-out.c (output_unreferenced_globals): Output static
10689 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
10691 PR rtl-optimization/42621
10692 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
10693 optimizing for size.
10694 (duplicate_computed_gotos): Remove now-redundant check.
10696 2010-01-10 Steve Ellcey <sje@cup.hp.com>
10699 * configure.ac: Save and restore LDFLAGS and LIBS
10700 * configure: Regenerate.
10702 2010-01-10 Richard Guenther <rguenther@suse.de>
10704 PR middle-end/42667
10705 * builtins.c (fold_builtin_strlen): Add type argument and
10706 convert the resulting length to it.
10707 (fold_builtin_1): Adjust.
10709 2010-01-09 Jakub Jelinek <jakub@redhat.com>
10711 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
10712 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
10714 (num_insns_constant_wide): Adjust for that change.
10716 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10719 * web.c (union_defs): Add used argument, to combine uses of
10720 uninitialized regs.
10721 (entry_register): Adjust type and tests of used argument.
10722 (web_main): Widen used for new use. Pass it to union_defs.
10723 * df.h (union_defs): Adjust prototype.
10725 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10728 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
10729 uses in new incoming argument. Free body.
10730 (reset_debug_uses_in_loop): New.
10731 (analyze_insn_to_expand_var): Call the latter if the former found
10732 anything. Fix whitespace. Reject invalid dest overlaps before
10733 going through all insns in the loop.
10735 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10738 * haifa-sched.c (dying_use_p): Debug insns don't count.
10740 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10742 PR middle-end/42363
10743 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
10744 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
10745 (verify_gimple_call): Reject LHS in noreturn calls.
10747 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10751 * tree-vect-loop-manip.c (adjust_info): New type.
10752 (adjust_vec): New pointer to vector.
10753 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
10754 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
10755 (slpeel_update_phis_for_duplicate_loop): Use them.
10756 (slpeel_update_phi_nodes_for_guard1): Likewise.
10757 (slpeel_update_phi_nodes_for_guard2): Likewise.
10758 (slpeel_tree_peel_loop_to_edge): Likewise.
10759 (vect_update_ivs_after_vectorizer): Likewise.
10761 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10763 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
10764 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
10766 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10768 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
10769 bogus uninitialized warning.
10771 2010-01-09 Richard Guenther <rguenther@suse.de>
10773 PR middle-end/42512
10774 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
10775 the evolution is compatible with the initial condition.
10777 2010-01-09 Jakub Jelinek <jakub@redhat.com>
10779 * gcc.c (process_command): Update copyright notice dates.
10780 * gcov.c (print_version): Likewise.
10781 * gcov-dump.c (print_version): Likewise.
10782 * mips-tfile.c (main): Likewise.
10783 * mips-tdump.c (main): Likewise.
10785 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
10788 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
10790 (rotlhi3_8): Delete.
10792 (rotlsi3_8): Delete.
10793 (rotlsi3_16): Delete.
10794 (rotlsi3_24): Delete.
10795 (rotl<mode>3): New.
10796 (*rotw<mode>3): New.
10797 (*rotb<mode>3): New.
10798 * config/avr/avr.c (avr_rotate_bytes): New function.
10799 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
10801 2010-01-08 Steve Ellcey <sje@cup.hp.com>
10804 * configure.ac: Modify -rdynamic check.
10805 * configure: Regenerate.
10807 2010-01-08 DJ Delorie <dj@redhat.com>
10809 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
10810 register popping order.
10812 2010-01-08 Richard Guenther <rguenther@suse.de>
10815 * c.opt (fsigned-char): Also let LTO handle this option.
10816 (funsigned-char): Likewise.
10818 2010-01-07 Richard Guenther <rguenther@suse.de>
10820 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
10821 (gimple_op): Likewise.
10822 (gimple_op_ptr): Likewise.
10823 (gimple_assign_set_lhs): Remove gcc_assert.
10824 (gimple_assign_set_rhs1): Likewise.
10825 (gimple_assign_set_rhs2): Likewise.
10826 (gimple_call_set_lhs): Likewise.
10827 (gimple_call_set_fn): Likewise.
10828 (gimple_call_set_fndecl): Likewise.
10829 (gimple_call_fndecl): Likewise.
10830 (gimple_call_return_type): Likewise.
10831 (gimple_call_set_chain): Likewise.
10832 (gimple_call_num_args): Likewise.
10833 (gimple_call_set_arg): Likewise.
10834 (gimple_cond_set_code): Likewise.
10835 (gimple_cond_set_lhs): Likewise.
10836 (gimple_cond_set_rhs): Likewise.
10837 (gimple_cond_set_true_label): Likewise.
10838 (gimple_cond_set_false_label): Likewise.
10839 (gimple_label_set_label): Likewise.
10840 (gimple_goto_set_dest): Likewise.
10841 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
10842 (gimple_debug_bind_get_value): Likewise.
10843 (gimple_debug_bind_get_value_ptr): Likewise.
10844 (gimple_debug_bind_set_var): Likewise.
10845 (gimple_debug_bind_set_value): Likewise.
10846 (gimple_debug_bind_reset_value): Likewise.
10847 (gimple_debug_bind_has_value_p): Likewise.
10848 (gimple_return_retval_ptr): Remove gcc_assert.
10849 (gimple_return_retval): Likewise.
10850 (gimple_return_set_retval): Likewise.
10851 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
10852 (safe_referenced_var_iterator): Remove.
10853 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
10854 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
10855 (fill_referenced_var_vec): Remove.
10856 (first_readonly_imm_use): Remove redundant gcc_assert.
10857 (phi_arg_index_from_use): Combine gcc_asserts.
10858 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
10859 (first_imm_use_stmt): Remove redundant gcc_assert.
10860 * tree-cfg.c (verify_gimple_call): Verify function and chain
10861 operands. Verify arguments.
10862 (verify_types_in_gimple_stmt): Verify condition code and labels.
10864 2010-01-07 Richard Guenther <rguenther@suse.de>
10866 PR tree-optimization/42641
10867 * sese.c (rename_map_elt_info): Use the SSA name version, do
10870 2010-01-07 Jakub Jelinek <jakub@redhat.com>
10872 PR tree-optimization/42625
10873 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
10874 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
10876 2010-01-07 Duncan Sands <baldrick@free.fr>
10878 * Makefile.in (PLUGIN_HEADERS): Add version.h.
10880 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
10883 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
10884 note itself is not function_invariant_p.
10886 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
10888 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
10889 Do not add the DF_NOTE problem.
10890 * store-motion.c (execute_rtl_store_motion): Likewise.
10892 2010-01-07 Martin Jambor <mjambor@suse.cz>
10894 PR tree-optimization/42157
10895 * tree-sra.c (compare_access_positions): Stabilize sort if both
10896 accesses have integer types, return zero immediately if they are the
10899 2010-01-06 Richard Henderson <rth@redhat.com>
10901 PR middle-end/41883
10902 * haifa-sched.c (add_to_note_list): Merge into ...
10903 (concat_note_lists): ... here, and ...
10904 (unlink_other_notes, rm_other_notes): Merge into...
10905 (remove_notes): ... here. Create REG_SAVE_NOTEs for
10906 NOTE_INSN_EPILOGUE_BEG.
10908 2010-01-06 Richard Guenther <rguenther@suse.de>
10910 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
10911 not inline regular functions into always-inline functions.
10913 2010-01-06 Nick Clifton <nickc@redhat.com>
10915 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
10916 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
10918 (OVERRIDE_OPTIONS): Delete.
10919 (OPTIMIZATION_OPTIONS): Define.
10920 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
10921 * config/rx/rx.c (rx_handle_option): Issue an error message if
10922 -mcpu=rx200 and -fpu are used together.
10923 (rx_set_optimization_options): New function. Issue an error
10924 message if an optimization attribute attempts to reset the FPU/
10925 math optimization pairing.
10926 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
10927 * config/rx/rx.opt: Set the default to 32-bit doubles.
10928 * config/rx/t-rx: Add multilibs for -nofpu option.
10929 * doc/invoke.texi: Update documentation of RX options.
10931 2010-01-06 Richard Guenther <rguenther@suse.de>
10933 * tree-ssa-pre.c (name_to_id): New global.
10934 (alloc_expression_id): Simplify SSA name handling.
10935 (lookup_expression_id): Likewise.
10936 (init_pre): Zero name_to_id.
10937 (fini_pre): Free it.
10939 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
10941 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
10943 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
10946 * config/i386/sse.md (smaxv2di3): New.
10947 (umaxv2di3): Likewise.
10948 (sminv2di3): Likewise.
10949 (uminv2di3): Likewise.
10951 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
10954 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
10955 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
10956 (legitimize_tls_address): Likewise.
10957 (sparc_tls_referenced_p): Likewise.
10958 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
10959 and adjust calls to legitimize_pic_address.
10960 (legitimate_constant_p) Use sparc_tls_referenced_p.
10961 (legitimate_pic_operand_p): Likewise.
10962 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
10963 (sparc_tls_symbol_ref_1): Delete.
10964 (sparc_tls_referenced_p): Make static, recognize specific patterns.
10965 (legitimize_tls_address): Make static, handle CONST patterns.
10966 (legitimize_pic_address): Make static, remove unused parameter and
10967 adjust recursive calls.
10968 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
10969 and adjust call to legitimize_pic_address.
10970 (sparc_output_mi_thunk): Likewise.
10972 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
10973 H.J. Lu <hongjiu.lu@intel.com>
10976 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
10977 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
10978 operands to make them signed.
10981 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10984 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10985 GTU to GT for V4SI and V2DI.
10987 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10988 (umin<mode>3): Removed.
10990 (uminv4si3): Likewise.
10992 2010-01-05 Martin Jambor <mjambor@suse.cz>
10994 PR tree-optimization/42462
10995 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
10996 current_function_decl to helper functions and macros.
10998 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11001 * flags.h: Don't include real.h.
11002 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11003 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11004 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11005 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11006 * dominance.c: Update copyright.
11007 * gimple.c (walk_gimple_op): Remove inline.
11008 * tree-ssa-reassoc.c: Include real.h.
11009 * Makefile.in (FLAGS_H): Remove $(REAL_H).
11010 (tree-ssa-reassoc.o): Depend on $(REAL_H).
11012 2010-01-05 Nick Clifton <nickc@redhat.com>
11014 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11015 register to push into the stack frame when the accumulator has to
11016 be saved during interrupts.
11018 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
11020 * doc/invoke.texi: Remove the documentation about option
11021 -Wunreachable-code.
11022 * common.opt (Wunreachable-code): Preserved for backward
11024 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11025 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11026 the backward compatibility flag section.
11028 2010-01-05 Richard Guenther <rguenther@suse.de>
11030 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11032 2010-01-05 Jakub Jelinek <jakub@redhat.com>
11035 * cfgexpand.c (expand_one_var): Diagnose too large variables.
11037 PR tree-optimization/42508
11038 * tree-sra.c (convert_callers): Check for recursive call
11039 by comparing cgraph nodes instead of decls.
11040 (modify_function): Call ipa_modify_formal_parameters also
11041 on all same_body aliases.
11043 * cgraphunit.c (cgraph_materialize_all_clones): Compare
11044 cgraph nodes when checking for same_body aliases.
11046 2010-01-05 Richard Guenther <rguenther@suse.de>
11048 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11049 allocation and lookup.
11050 (get_or_alloc_expr_for_constant): Likewise.
11051 (phi_translate): Sink allocation.
11053 2010-01-04 Richard Guenther <rguenther@suse.de>
11055 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11056 a new entry only if needed.
11057 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11058 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11060 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11062 (phi_translate): Handle CONSTANTs early.
11064 2010-01-04 Martin Jambor <mjambor@suse.cz>
11066 PR tree-optimization/42398
11067 * tree-sra.c (struct access): Removed flag grp_different_types.
11068 (dump_access): Do not dump the removed flag.
11069 (sort_and_splice_var_accesses): Do not set the removed flag.
11070 (sra_modify_expr): Check for type compatibility directly.
11072 2010-01-04 Martin Jambor <mjambor@suse.cz>
11074 PR tree-optimization/42366
11075 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
11076 edges with variable number of parameters.
11077 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
11078 flag instead of asserting it.
11079 (ipa_read_node_info): Read uses_analysis_done flag.
11081 2010-01-04 Richard Guenther <rguenther@suse.de>
11083 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
11084 iterative_hash_* as intended.
11085 (vn_reference_compute_hash): Likewise. Simplify hashing
11087 (vn_reference_lookup_2): Likewise.
11088 (vn_nary_op_compute_hash): Likewise.
11089 (vn_phi_compute_hash): Likewise.
11090 (expressions_equal_p): Remove strange code.
11091 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
11092 (pre_expr_hash): Likewise. Simplify hashing SSA names.
11093 (bitmap_insert_into_set_1): Take value-id as parameter.
11094 (add_to_value): Pass it.
11095 (bitmap_insert_into_set): Likewise.
11096 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
11098 2010-01-04 Jakub Jelinek <jakub@redhat.com>
11101 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
11102 (do_self_spec): For switches with SWITCH_IGNORE set set also
11103 SWITCH_IGNORE_PERMANENTLY.
11104 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
11107 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
11109 * lto-streamer-out.c (output_unreferenced_globals): Output the full
11110 tree of an unreferenced global var.
11112 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11115 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11116 GTU to GT for V4SI and V2DI.
11118 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11119 (umin<mode>3): Removed.
11121 (uminv4si3): Likewise.
11123 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11126 * collect2.c (main): Turn on trace in collect2 if -v is passed
11129 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
11131 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
11132 description of expression operand.
11134 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
11136 * configure.ac: Add install-html to target_list for Make-hooks.
11137 * configure: Regenerate.
11138 * fortran/Make-lang.in (F95_HTMLFILES): New.
11139 (fortran.html): Use it.
11140 (fortran.install-html): New.
11141 * Makefile.in (install-html): Add lang.install-html.
11142 * java/Make-lang.in (JAVA_HTMLFILES): New.
11143 (java.html): Use it.
11144 (java.install-html): New.
11145 * objc/Make-lang.in (objc.install-html): New.
11146 * objcp/Make-lang.in (obj-c++.install-html): New.
11147 * cp/Make-lang.in (c++.install-html): New.
11148 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
11149 * lto/Make-lang.in (lto.install-html): New.
11151 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11154 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
11156 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
11158 PR rtl-optimization/41862
11159 * store-motion.c (store_killed_in_insn, compute_store_table,
11160 remove_reachable_equiv_notes, replace_store_insn,
11161 build_store_vectors): Ignore all DEBUG_INSNs.
11163 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11166 * common.opt: Add dumpdir.
11168 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
11170 (option_map): Add --dumpdir.
11172 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
11174 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
11176 * opts.c (decode_options): Try dump_dir_name first if
11177 dump_base_name isn't an absolute path.
11178 (common_handle_option): Handle OPT_dumpdir.
11180 * toplev.c (dump_dir_name): New.
11181 (print_switch_values): Also ignore -dumpdir.
11183 * toplev.h (dump_dir_name): New.
11185 2010-01-03 Richard Guenther <rguenther@suse.de>
11187 PR tree-optimization/42589
11188 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
11189 double-word expansion of bswap32.
11191 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
11193 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
11194 with BLOCK_FOR_INSN.
11195 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
11196 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
11197 noce_process_if_block): Likewise.
11198 * gcse.c (compute_local_properties, insert_expr_in_table,
11199 insert_set_in_table, canon_list_insert, find_avail_set,
11200 pre_insert_copy_insn): Likewise.
11202 * basic-block.h (BLOCK_NUM): Move from here...
11203 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
11205 2010-01-03 Richard Guenther <rguenther@suse.de>
11207 PR tree-optimization/42438
11208 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
11209 contains_may_not_return_call flag.
11210 (BB_MAY_NOTRETURN): New.
11211 (valid_in_sets): Trapping nary operations are not valid
11212 in blocks that may not return.
11213 (insert_into_preds_of_block): Remove check for trapping expressions.
11214 (compute_avail): Compute also BB_MAY_NOTRETURN.
11216 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
11218 * doc/invoke.texi: Add 2010 to copyright years.
11220 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
11222 * config/sparc/sparc.c: Fix formatting nits.
11224 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11225 Alexander Monakov <amonakov@ispras.ru>
11227 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
11229 2010-01-02 Richard Guenther <rguenther@suse.de>
11231 PR middle-end/42577
11232 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
11233 (simplify_switch_using_ranges): Mark to be removed edges
11236 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11238 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11240 * collect2.c (scan_libraries): Add missing argument in call to
11243 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
11246 * config/alpha/predicates.md (aligned_memory_operand): Return false
11248 (unaligned_memory_operand): Return true for CQImode.
11249 * config/alpha/alpha.c (get_aligned_mem): Assert that location
11250 doesn not cross aligned SImode word boundary.
11252 2010-01-02 Anatoly Sokolov <aesok@post.ru>
11254 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
11256 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
11257 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
11259 2010-01-02 Richard Guenther <rguenther@suse.de>
11262 * toplev.c (compile_file): Emit LTO marker properly. Change
11263 it to __gnu_lto_v1.
11264 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
11266 2010-01-01 Richard Guenther <rguenther@suse.de>
11269 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
11271 2010-01-01 Richard Guenther <rguenther@suse.de>
11274 * c-decl.c (grokdeclarator): For zero-size arrays force
11275 structural equality checks as layout_type does.
11277 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11279 * builtins.c: Update copyright to 2010.
11281 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11284 * lto-streamer-out.c (produce_asm): Revert the last change.
11285 (copy_function): Likewise.
11287 * lto-streamer.c (lto_get_section_name): Skip any leading
11290 2010-01-01 Richard Guenther <rguenther@suse.de>
11292 PR middle-end/42559
11293 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
11297 Copyright (C) 2010 Free Software Foundation, Inc.
11299 Copying and distribution of this file, with or without modification,
11300 are permitted in any medium without royalty provided the copyright
11301 notice and this notice are preserved.