1 2010-05-26 Richard Guenther <rguenther@suse.de>
3 * tree-ssa-sccvn.c (copy_nary): Adjust.
4 (copy_phis): Rename to ...
5 (copy_phi): ... this. Adjust.
6 (copy_references): Rename to ...
7 (copy_reference): ... this. Adjust.
8 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9 result into the valid table.
11 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
13 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
14 insn-config.h, insn-codes.h, recog.h, and optabs.h.
16 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic):
21 2010-05-26 Richard Guenther <rguenther@suse.de>
23 * opts.c (common_handle_option): Handle OPT_Ofast.
25 2010-05-26 Joseph Myers <joseph@codesourcery.com>
27 * diagnostic.c: Don't include opts.h.
28 (permissive_error_option): Define.
29 (diagnostic_initialize): Take n_opts parameter. Allocate memory
30 for classify_diagnostic. Don't use memset for
31 classify_diagnostic. Initialize new and recently added fields.
32 (diagnostic_classify_diagnostic): Use context->n_opts instead of
34 (diagnostic_report_diagnostic): Pass context parameter to
35 diagnostic_report_warnings_p. Use option_enabled and option_name
37 (emit_diagnostic): Use permissive_error_option.
38 (permerror): Likewise.
39 * diagnostic.h: Don't include options.h.
40 (struct diagnostic_context): Add n_opts, opt_permissive,
41 inhibit_warnings, warn_system_headers, option_enabled and
42 option_name fields. Change classify_diagnostic to a pointer.
43 * opts-diagnostic.h: New file.
44 * opts.c: Include opts-diagnostic.h.
45 (common_handle_option): Set global_dc fields for -Wfatal-errors,
46 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
47 (option_name): New function.
48 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
49 (c_common_handle_option): Set global_dc->permissive for
51 * c-common.c (c_cpp_error): Save and restore
52 global_dc->warn_system_headers, not variable warn_system_headers.
53 * toplev.c: Include opts-diagnostic.h.
54 (general_init): Update call to diagnostic_initialize. Set
55 global_dc->show_column, global_dc->option_enabled and
56 global_dc->option_name.
57 (process_options): Don't set global_dc fields here.
58 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
59 (diagnostic.o, opts.o, toplev.o): Update dependencies.
61 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
63 * config/picochip/picochip.md (movsi): Split a movsi from a
66 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
68 * ggc-zone.c: Update copyright year.
69 (poison_region): Mark memory for Valgrind as undefined before
70 memset () call and inaccessible afterwards.
71 (ggc_pch_total_size): Change type of i to int.
73 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
75 * ggc-common.c (ggc_free_overhead): Allow empty slot.
77 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
79 * ggc-common.c: Update copyright year.
80 (ggc_rlimit_bound): Remove prototype. Compile only if
81 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
82 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
83 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
84 (ggc_min_heapsize_heuristic): Likewise.
86 2010-05-26 Richard Guenther <rguenther@suse.de>
88 PR rtl-optimization/44164
89 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
90 no-common access-path disambiguation.
91 (indirect_ref_may_alias_decl_p): Adjust.
92 (indirect_refs_may_alias_p): Likewise.
93 (refs_may_alias_p_1): Likewise.
95 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
97 * c-typeck.c: Do not include expr.h.
99 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
101 * rtl.h (decl_default_tls_model): Move prototype from here...
102 * output.h: ...to here.
103 * c-decl.c: Do not include rtl.h.
104 * c-pragma.c: Likewise.
105 * c-parser.c: Likewise.
106 * c-gimplify.c: Likewise. And also not hard-reg-set.
107 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
108 FIXME note for it. Add a FIXME note for expr.h.
109 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
110 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
113 2010-05-26 Jakub Jelinek <jakub@redhat.com>
116 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
117 or total_size is larger than red zone size for non-V4 ABI, emit a
118 stack_tie resp. frame_tie insn before stack pointer restore.
119 * config/rs6000/rs6000.md (frame_tie): New insn.
121 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
123 * function.h (struct function): Add can_throw_non_call_exceptions bit.
124 * lto-streamer-in.c (input_function): Stream it in.
125 * lto-streamer-out.c (output_function): Stream it out.
126 * function.c (allocate_struct_function): Set it.
127 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
128 for flag_non_call_exceptions.
129 * cfgbuild.c (control_flow_insn_p): Likewise.
130 (make_edges): Likewise.
131 * cfgexpand.c (expand_stack_alignment): Likewise.
132 * combine.c (distribute_notes): Likewise.
133 * cse.c (cse_extended_basic_block): Likewise.
134 * except.c (insn_could_throw_p): Likewise.
135 * gcse.c (simple_mem): Likewise.
136 * ipa-pure-const.c (check_call): Likewise.
137 (check_stmt ): Likewise.
138 * lower-subreg.c (lower-subreg.c): Likewise.
139 * optabs.c (emit_libcall_block): Likewise.
140 (prepare_cmp_insn): Likewise.
141 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
142 * postreload.c (rest_of_handle_postreload): Likewise.
143 * reload1.c (reload_as_needed): Likewise.
144 (emit_input_reload_insns): Likewise.
145 (emit_output_reload_insns): Likewise.
146 (fixup_abnormal_edges): Likewise.
147 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
148 * store-motion.c (find_moveable_store): Likewise.
149 * tree-eh.c (stmt_could_throw_p): Likewise.
150 (tree_could_throw_p): Likewise.
151 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
152 * config/arm/arm.c (arm_expand_prologue): Likewise.
153 (thumb1_expand_prologue): Likewise.
154 * config/rx/rx.md (cbranchsf4): Likewise.
156 * config/s390/s390.c (s390_emit_prologue): Likewise.
157 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
158 (inline_forbidden_into_p): New predicate.
159 (expand_call_inline): Use it to forbid inlining.
160 (tree_can_inline_p): Likewise.
162 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
164 * config/i386/i386-c.c: Do not include rtl.h.
165 * config/i386/t-i386: Update dependencies.
167 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
169 * attribs.c: Do not include rtl.h.
170 * Makefile.in: Update dependencies.
172 2010-05-25 Anatoly Sokolov <aesok@post.ru>
174 * double-int.h (double_int_and): New.
175 * combine.c (try_combine): Clean up, use double_int_* and
176 immed_double_int_const functions.
178 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
181 stderr to /dev/null instead of grep -q.
182 * configure: Regenerate.
184 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
186 * Makefile.in (EXCEPT_H): Fix typo.
188 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
190 * ira-build.c (update_conflict_hard_reg_costs): New.
191 (ira_build): Call update_conflict_hard_reg_costs.
193 2010-05-25 Jakub Jelinek <jakub@redhat.com>
196 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
198 (intersect_loc_chains): Walk the s2var's loc_chain together
199 with s1node chain as long as the locations are equal, don't
200 call find_loc_in_1pdv in that case.
203 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
204 (copy_bind_expr): ... instead of here.
205 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
206 if the block hasn't been remapped.
207 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
208 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
210 2010-05-25 Richard Guenther <rguenther@suse.de>
213 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
214 out-of-bounds array accesses.
216 2010-05-25 Richard Guenther <rguenther@suse.de>
218 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
219 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
220 (run_gcc): Re-organize to make cleanup easier.
222 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
224 * config/s390/s390.c (optimization_options): Fix and move the
225 flag_prefetch_loop_arrays override ...
226 (override_options): ... here.
228 2010-05-25 Joseph Myers <joseph@codesourcery.com>
230 * diagnostic.c: Don't include plugin.h.
231 (diagnostic_report_diagnostic): Don't handle plugins specially
232 here. Pass context to internal_error callback.
233 * diagnostic.h (struct diagnostic_context): Add context parameter
234 to internal_error callback.
235 * plugin.c (warn_if_plugins, plugins_internal_error_function):
237 * plugin.h (struct diagnostic_context): Declare.
238 (warn_if_plugins, plugins_internal_error_function): Declare.
239 * toplev.c (general_init): Set global_dc->internal_error.
240 * Makefile.in (diagnostic.o): Update dependencies.
242 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
244 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
245 * config/rs6000/t-darwin64: New.
246 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
249 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
252 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
253 match the original (and intended) behaviour before r159557. This
254 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
257 2010-05-25 Richard Guenther <rguenther@suse.de>
259 * doc/invoke.texi: Document -Ofast.
260 * target.h (struct gcc_target): Add handle_ofast.
261 * target-def.h (TARGET_HANDLE_OFAST): Add.
262 (TARGET_INITIALIZER): Adjust.
263 * opts.c (decode_options): Handle -Ofast. Enable
265 * common.opt (Ofast): Add.
267 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
269 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
270 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
272 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
275 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
276 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
277 false_rtx. Use false_rtx to compute the correct *ptest for reversed
278 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
280 2010-05-25 Jakub Jelinek <jakub@redhat.com>
282 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
283 DW_OP_minus with negated offset instead of DW_OP_plus.
284 (loc_list_from_tree): Don't test whether second operand is
287 2010-05-25 Wei Guozhi <carrot@google.com>
289 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
290 tst instruction and a new alternative.
291 * config/arm/constraints.md (Pu): New constraint.
293 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
295 * function.c (assign_stack_local_1): Initialize variable
296 to avoid warning when bootstrapping at -O3.
298 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
300 * configure.ac (all_lang_makefiles): Remove everything related to it.
301 * configure: Regenerate.
302 * Makefile.in: Fix reference to ada Make-lang.in.
303 Remove support for LANG_MAKEFILES.
305 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
306 Sandra Loosemore <sandra@codesourcery.com>
308 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
309 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
310 description. Add arm_neon_fp16_ok.
311 (Add Options): Add arm_neon and arm_neon_fp16.
313 2010-05-24 Joseph Myers <joseph@codesourcery.com>
315 * diagnostic.c: Don't include flags.h.
316 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
317 context parameters. Check flags in the context passed as a
319 (diagnostic_build_prefix): Add context parameter. Check
320 show_column flag in context.
321 (diagnostic_action_after_output): Check fatal_errors flag in
323 (diagnostic_report_current_module): Check show_column flag in
325 (default_diagnostic_starter): Update call to
326 diagnostic_build_prefix.
327 (diagnostic_report_diagnostic): Pass context to
328 pedantic_warning_kind.
329 (emit_diagnostic): Pass context to permissive_error_kind.
330 (permerror): Pass context to permissive_error_kind.
331 * diagnostic.h (struct diagnostic_context): Add show_column,
332 pedantic_errors, permissive and fatal_errors fields.
333 (diagnostic_build_prefix): Update prototype.
335 * toplev.c (process_options): Set flags in global_dc from
336 flag_show_column, flag_pedantic_errors, flag_permissive,
338 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
339 to diagnostic_build_prefix.
340 * Makefile.in (diagnostic.o): Update dependencies.
342 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
344 * config/i386/ia32intrin.h (__crc32q): Define only if
345 __SSE4_2__ is defined.
347 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
351 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
352 DECL_VISIBILITY_SPECIFIED.
353 (emutls_decl): Set DECL_PRESERVE_P and copy
354 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
355 (emutls_finalize_control_var): New callback.
356 (emutls_finish): Finalize emutls control variables.
357 * toplev.c (compile_file): Move the call to emutls_finish ()
358 before varpool_assemble_pending_decls ().
360 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
362 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
363 added to the preprocessor condition.
365 2010-05-24 Paul Brook <paul@codesourcery.com>
367 * gengtype-lex.l: Add HARD_REG_SET.
368 * expr.c (expand_expr_real_1): Record writes to hard registers.
369 * function.c (rtl_data): Add asm_clobbers.
370 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
371 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
372 Use crtl->asm_clobbers.
374 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
376 * doc/makefile.texi (Makefile): Mention stages 'profile'
377 and 'feedback' for profiledbootstrap.
379 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
382 * config/i386/i386.c (def_builtin): Properly check
383 OPTION_MASK_ISA_64BIT.
385 2010-05-23 Joseph Myers <joseph@codesourcery.com>
387 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
388 typedefs with different but compatible types. Allow duplicate
389 typedefs with the same type except for pedantic non-C1X, but give
390 warning for variably modified types.
391 * c-typeck.c (tagged_types_tu_compatible_p,
392 function_types_compatible_p, type_lists_compatible_p,
393 comptypes_internal): Add parameter different_types_p; set
394 *different_types_p for different but compatible types. All
396 (comptypes_check_different_types): New.
397 * c-tree.h (comptypes_check_different_types): Declare.
399 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
401 * regs.h: Do not include obstack.h, basic-block.h.
403 * jump.c: Include basic-block.h.
404 * profile.c: Likewise.
405 * tree-profile.c: Likewise.
406 * coverage.c: Likewise.
407 * basic-block.h (optimize_function_for_size_p): Move to function.h.
408 (optimize_function_for_speed_p): Likewise.
409 * function.h (optimize_function_for_size_p,
410 optimize_function_for_speed_p): Moved here from basic-block.h.
411 * Makefile.in: Update dependencies.
413 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
415 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
416 before calling make; allow override through $MAKE.
417 * doc/invoke.texi (Optimize Options): Document override.
419 2010-05-23 Anatoly Sokolov <aesok@post.ru>
421 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
422 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
423 (rs6000_mode_dependent_address_ptr): Make static.
424 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
425 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
428 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
431 * config/i386/i386.c: Make sure that the correct regparm is passed.
433 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
435 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
436 * sbitmap.c: ...to here to internalize sbitmap element access.
437 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
438 Explain why basic-block.h is included.
439 * function.h: Include tm.h for CUMULATIVE_ARGS.
440 * Makefile.in: Update dependencies.
442 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
444 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
446 * sbitmap.h (struct sbitmap_def): Do not typedef here.
447 * sbitmap.c: Include sbitmap.h.
448 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
449 hard-reg-set.h. Split everything related to regsets out from here...
450 * regset.h: ...to here. New file.
451 * df.h: Include regset.h and sbitmap.h.
452 * tree-flow.h: Likewise.
453 * cfgloop.h: Likewise.
454 * except.h: Do not include sbitmap.h. Include hashtab.h.
455 * cgraph.h: Include vec.h and function.h.
456 * reload.h (struct insn_chain): Change types of live_throughout
457 and dead_or_set from regset_head to bitmap_head.
458 (compute_use_by_pseudos): Be defined also if regset.h is not included.
459 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
460 spilled_regs from regset_head to bitmap_head to avoid dependency
462 * sel-sched-ir.h: Include regset.h.
463 * reload.c: Include df.h before reload.h.
464 * caller-save.c: Likewise.
465 * reload1.c: Likewise.
467 (mark_elimination): Update type of r to bitmap, consistent with
469 * dominance.c: Include bitmap.h.
470 * modulo-sched.c: Include df.h.
471 * cfganal.c: Include bitmap.h and sbitmap.h.
472 * cfgbuild.c: Include sbitmap.h.
473 * lcm.c: Include sbitmap.h.
474 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
475 * domwalk.c: Include sbitmap.h, exclude ggc.h.
476 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
477 * cselib.c: Include bitmap.h.
478 * tree-optimize.c: Include regset.h.
479 * stmt.c: Include bitmap.h.
480 * Makefile.in: Update dependencies.
482 2010-05-22 Jan Hubicka <jh@suse.cz>
484 * cgraph.h (struct varpool_node): Add same_comdat_group.
485 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
487 (output_varpool): Update call of lto_output_varpool_node.
488 (input_varpool): Read same_comdat_group pointer.
489 (input_varpool_1): Fixup same_comdat_group pointer.
490 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
491 group is needed, all are.
492 * varpool.c (varpool_remove_node): Remove node from same comdat group
494 (varpool_analyze_pending_decls): Walk same comdat groups.
496 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
498 * rtl.h (union rtunion_def): Remove rt_bit member.
499 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
500 * print-rtl (print_rtx): Do not print the member.
501 * gengtype.c (adjust_field_rtx_def): Do not handle it.
502 * gengenrtl.c (type_from_format): Likewise.
503 (accessor_from_format): Likewise.
505 2010-05-22 Joseph Myers <joseph@codesourcery.com>
507 * dbgcnt.c: Include toplev.h instead of errors.h.
508 * ira-emit.c: Don't include errors.h.
509 * ira.c: Include toplev.h instead of errors.h.
510 * lto-compress.c: Include toplev.h instead of errors.h.
511 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
512 ira.o, dbgcnt.o): Update dependencies.
514 2010-05-22 Richard Guenther <rguenther@suse.de>
516 * gimple.c (gimple_types_compatible_p): Check type qualifications
517 before merging pointer to complete and pointer to incomplete type.
518 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
519 we use our own resolution algorithm. The gold linker plugin
520 doesn't do the job we want it to do here.
522 2010-05-22 Anatoly Sokolov <aesok@post.ru>
524 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
525 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
526 (sparc_mode_dependent_address_p): New function.
528 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
530 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
532 * timevar.c: Do not include any core headers.
533 (timevar_print): De-i18n-ize.
534 (print_time): Likewise.
535 * timevar.h (timevar_push, timevar_pop): Make inline functions.
537 2010-05-21 Joseph Myers <joseph@codesourcery.com>
539 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
541 (diagnostic_initialize): Initialize x_data not last_function.
542 (diagnostic_report_current_function): Move to tree-diagnostic.c.
543 (default_diagnostic_starter): Call
544 diagnostic_report_current_module not
545 diagnostic_report_current_function.
546 (diagnostic_report_diagnostic): Initialize x_data not
548 (verbatim): Likewise.
549 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
551 (struct diagnostic_context): Change last_function to x_data.
552 (diagnostic_auxiliary_data): Replace with
553 diagnostic_context_auxiliary_data and
554 diagnostic_info_auxiliary_data.
555 (diagnostic_last_function_changed, diagnostic_set_last_function,
556 diagnostic_report_current_function): Move to tree-diagnostic.h.
557 (print_declaration, dump_generic_node, print_generic_stmt,
558 print_generic_stmt_indented, print_generic_expr,
559 print_generic_decl, debug_c_tree, dump_omp_clauses,
560 print_call_name, debug_generic_expr, debug_generic_stmt,
561 debug_tree_chain, default_tree_printer): Move to
563 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
564 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
565 gimple-pretty-print.h.
566 * pretty-print.c: Don't include tree.h
567 (pp_base_format): Don't handle %K here.
568 (pp_base_tree_identifier): Move to tree-pretty-print.c.
569 * pretty-print.h (text_info): Change abstract_origin to x_data.
570 (pp_tree_identifier, pp_unsupported_tree,
571 pp_base_tree_identifier): Move to tree-pretty-print.h.
572 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
573 tree-pretty-print.h: New files.
574 * tree-pretty-print.c: Include tree-pretty-print.h.
575 (percent_K_format): New. Moved from pretty-print.c.
576 (pp_base_tree_identifier): Move from pretty-print.c.
577 * c-objc-common.c: Include tree-pretty-print.h.
578 (c_tree_printer): Handle %K here.
579 * langhooks.c: Include tree-diagnostic.h.
580 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
581 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
582 (default_tree_printer): Handle %K using percent_K_format.
583 (general_init): Use default_tree_diagnostic_starter.
584 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
585 (free_lang_data): Use default_tree_diagnostic_starter.
586 * c-pretty-print.c: Include tree-pretty-print.h.
587 * cfgexpand.c: Include tree-pretty-print.h and
588 gimple-pretty-print.h.
589 * cgraphunit.c: Include tree-pretty-print.h and
590 gimple-pretty-print.h.
591 * dwarf2out.c: Include tree-pretty-print.h.
592 * except.c: Include tree-pretty-print.h.
593 * gimple-pretty-print.c: Include tree-pretty-print.h and
594 gimple-pretty-print.h.
595 * gimplify.c: Include tree-pretty-print.h.
596 * graphite-poly.c: Include tree-pretty-print.h and
597 gimple-pretty-print.h.
598 * ipa-cp.c: Include tree-pretty-print.h.
599 * ipa-inline.c: Include gimple-pretty-print.h.
600 * ipa-prop.c: Include tree-pretty-print.h and
601 gimple-pretty-print.h.
602 * ipa-pure-const.c: Include gimple-pretty-print.h.
603 * ipa-struct-reorg.c: Include tree-pretty-print.h and
604 gimple-pretty-print.h.
605 * ipa-type-escape.c: Include tree-pretty-print.h.
606 * print-rtl.c: Include tree-pretty-print.h.
607 * print-tree.c: Include gimple-pretty-print.h.
608 * sese.c: Include tree-pretty-print.h.
609 * tree-affine.c: Include tree-pretty-print.h.
610 * tree-browser.c: Include tree-pretty-print.h.
611 * tree-call-cdce.c: Include gimple-pretty-print.h.
612 * tree-cfg.c: Include tree-pretty-print.h and
613 gimple-pretty-print.h.
614 * tree-chrec.c: Include tree-pretty-print.h.
615 * tree-data-ref.c: Include tree-pretty-print.h and
616 gimple-pretty-print.h.
617 * tree-dfa.c: Include tree-pretty-print.h.
618 * tree-if-conv.c: Include tree-pretty-print.h and
619 gimple-pretty-print.h.
620 * tree-inline.c: Include tree-pretty-print.h.
621 * tree-into-ssa.c: Include tree-pretty-print.h and
622 gimple-pretty-print.h.
623 * tree-nrv.c: Include tree-pretty-print.h.
624 * tree-object-size.c: Include tree-pretty-print.h and
625 gimple-pretty-print.h.
626 * tree-outof-ssa.c: Include tree-pretty-print.h and
627 gimple-pretty-print.h.
628 * tree-parloops.c: Include tree-pretty-print.h and
629 gimple-pretty-print.h.
630 * tree-predcom.c: Include tree-pretty-print.h and
631 gimple-pretty-print.h.
632 * tree-scalar-evolution.c: Include tree-pretty-print.h and
633 gimple-pretty-print.h.
634 * tree-sra.c: Include tree-pretty-print.h.
635 * tree-ssa-address.c: Include tree-pretty-print.h.
636 * tree-ssa-alias.c: Include tree-pretty-print.h.
637 * tree-ssa-ccp.c: Include tree-pretty-print.h and
638 gimple-pretty-print.h.
639 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
640 * tree-ssa-copy.c: Include tree-pretty-print.h and
641 gimple-pretty-print.h.
642 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
643 * tree-ssa-dce.c: Include tree-pretty-print.h and
644 gimple-pretty-print.h.
645 * tree-ssa-dom.c: Include tree-pretty-print.h and
646 gimple-pretty-print.h.
647 * tree-ssa-dse.c: Include gimple-pretty-print.h.
648 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
649 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
650 * tree-ssa-live.c: Include tree-pretty-print.h and
651 gimple-pretty-print.h.
652 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
653 gimple-pretty-print.h.
654 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
655 gimple-pretty-print.h.
656 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
657 gimple-pretty-print.h.
658 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
659 gimple-pretty-print.h.
660 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
661 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
662 * tree-ssa-operands.c: Include tree-pretty-print.h and
663 gimple-pretty-print.h.
664 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
665 gimple-pretty-print.h.
666 * tree-ssa-pre.c: Include tree-pretty-print.h and
667 gimple-pretty-print.h.
668 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
669 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
670 gimple-pretty-print.h.
671 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
672 gimple-pretty-print.h.
673 * tree-ssa-sink.c: Include gimple-pretty-print.h.
674 * tree-ssa-ter.c: Include tree-pretty-print.h and
675 gimple-pretty-print.h.
676 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
677 * tree-ssa.c: Include tree-pretty-print.h and
678 gimple-pretty-print.h.
679 * tree-stdarg.c: Include gimple-pretty-print.h.
680 * tree-switch-conversion.c: Include gimple-pretty-print.h.
681 * tree-tailcall.c: Include tree-pretty-print.h and
682 gimple-pretty-print.h.
683 * tree-vect-data-refs.c: Include tree-pretty-print.h and
684 gimple-pretty-print.h.
685 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
686 gimple-pretty-print.h.
687 * tree-vect-loop.c: Include tree-pretty-print.h and
688 gimple-pretty-print.h.
689 * tree-vect-patterns.c: Include gimple-pretty-print.h.
690 * tree-vect-slp.c: Include tree-pretty-print.h and
691 gimple-pretty-print.h.
692 * tree-vect-stmts.c: Include tree-pretty-print.h and
693 gimple-pretty-print.h.
694 * tree-vectorizer.c: Include tree-pretty-print.h.
695 * tree-vrp.c: Include tree-pretty-print.h and
696 gimple-pretty-print.h.
697 * value-prof.c: Include tree-pretty-print.h and
698 gimple-pretty-print.h.
699 * var-tracking.c: Include tree-pretty-print.h.
700 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
701 (tree-diagnostic.o): New dependencies.
702 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
703 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
704 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
705 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
706 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
707 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
708 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
709 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
710 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
711 tree-ssa-address.o, tree-ssa-loop-niter.o,
712 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
713 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
714 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
715 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
716 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
717 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
718 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
719 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
720 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
721 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
722 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
723 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
724 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
725 tree-switch-conversion.o, var-tracking.o, value-prof.o,
726 cfgexpand.o, pretty-print.o): Update dependencies.
728 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
730 * tree-ssa-structalias.c: Remove tm_p.h from include.
732 2010-05-21 Jeff Law <law@redhat.com>
734 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
736 2010-05-21 Jason Merrill <jason@redhat.com>
738 * tree-eh.c (cleanup_is_dead_in): New.
739 (lower_try_finally): Don't generate a dead cleanup region.
740 (lower_cleanup): Likewise.
742 2010-05-21 Jakub Jelinek <jakub@redhat.com>
745 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
746 unchain each use from the cyclic next_regno_use chain first.
748 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
750 * real: Do not include gmp.h, mpfr.h, and mpc.h.
751 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
752 (real_value_negate, real_value_abs): New prototypes.
753 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
754 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
755 new include file for interface between MPFR and REAL_VALUE_TYPE.
756 * real.c: Include realmpfr.h.
757 (real_arithmetic2): Remove legacy function.
758 (real_value_negate): New.
759 (real_value_abs): New.
760 (mfpr_from_real, real_from_mpfr): Move from here...
761 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
762 * builtins.c: Include realmpfr.h.
763 * fold-const.c: Include realmpfr.h.
764 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
765 (fold_negate_const): Likewise.
766 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
767 * toplev.c: Include realmpfr.h.
768 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
769 and real_value_negate.
770 * fixed-value.c (check_real_for_fixed_mode): Likewise.
771 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
772 (vfp3_const_double_index): Likewise.
773 (arm_print_operand): Likewise.
774 * Makefile.in: Update dependencies.
776 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
778 * config/s390/s390.c (override_options): Increase the default
779 of max-completely-peel-times.
781 2010-05-21 Julian Brown <julian@codesourcery.com>
782 Mark Mitchell <mark@codesourcery.com>
784 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
785 sibling calls for Thumb-1.
786 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
787 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
789 (*call_insn, *call_value_insn): Don't use for Thumb-2.
790 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
792 (return): New expander.
793 (*arm_return): New name for ARM return insn.
794 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
796 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
798 * config.gcc (sparc64-*-rtems*): New target.
800 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
802 * tree.c (build_function_decl_skip_args): Fix grammar.
803 (build_function_type_list_1): Fix typos, adjust formatting.
805 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
807 * tree.h: Include real.h and fixed-value.h as basic datatypes.
808 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
809 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
810 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
811 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
812 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
813 tree-pretty-print.c, tree-loop-distribution.c,
814 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
815 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
816 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
817 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
818 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
819 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
820 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
821 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
822 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
823 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
824 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
825 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
826 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
827 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
828 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
829 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
830 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
831 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
832 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
833 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
834 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
835 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
836 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
837 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
838 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
839 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
840 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
841 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
842 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
843 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
844 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
845 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
846 config/score/score7.c, config/score/score.c, config/arm/arm.c,
847 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
848 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
850 Clean up redundant includes.
851 * Makefile.in: Update accordingly.
853 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
856 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
857 statement has no arguments.
859 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
862 * varasm.c (emutls_decl): Merge attributes to new decl.
864 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
867 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
868 around the uniquized constructor if its type requires a conversion.
870 2010-05-21 Jakub Jelinek <jakub@redhat.com>
873 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
874 at -O0 goto_locus of any of the incoming edges differs from
875 goto_locus of outgoing edge, or gimple_location of any of the
878 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
880 * ira.c (ira_non_ordered_class_hard_regs): Define.
881 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
882 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
883 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
884 cost of unaligned hard regs when allocating multi-reg pseudos.
886 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
888 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
889 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
891 * config/mips/mips.c (mips_file_start): Expand conditional expression
892 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
893 (mips_override_options): Move -mno-float override -msoft-float and
895 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
896 Condition(TARGET_SUPPORTS_NO_FLOAT).
897 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
898 __mips_no_float here.
899 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
900 (TARGET_SUPPORTS_NO_FLOAT): Define.
901 * config/mips/sdemtk.opt: Delete.
903 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
905 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail
908 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
911 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
912 * configure: Regenerate.
913 * config.in: Regenerate.
914 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
915 instead of sahf only for 64bit targets.
917 2010-05-20 Jakub Jelinek <jakub@redhat.com>
920 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
921 setup_ref_regs for DEBUG_INSNs.
923 2010-05-20 Jan Hubicka <jh@suse.cz>
926 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
928 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
931 * df-scan.c (df_ref_compare): Stabilize sort.
933 2010-05-20 Jakub Jelinek <jakub@redhat.com>
935 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
936 argument. Don't use DW_OP_piece if offset is non-zero,
937 put offset into second DW_OP_bit_piece argument.
938 (dw_sra_loc_expr): Adjust callers. For memory expressions
941 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
944 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
945 settings for 16-bit-constant "addo" alternative.
947 2010-05-19 James E. Wilson <wilson@codesourcery.com>
949 * config/mips/mips-dsp.md (add<DSPV:mode>3,
950 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
953 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
954 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
957 2010-05-19 Joseph Myers <joseph@codesourcery.com>
959 * diagnostic.c (FLOAT, FFS): Don't undefine.
960 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
961 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
964 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
966 * combine.c (propagate_for_debug): Call make_compound_operation
968 (try_combine): When implementing a split chosen by find_split_point,
969 either copy i2src or set it to null. Assert that i2src is not null
970 before substituting into CALL_INSN_FUNCTION_USAGE.
972 2010-05-19 Anatoly Sokolov <aesok@post.ru>
974 * double-int.h (double_int_ior): New function.
975 * tree.h (build_int_cst_wide_type): Remove.
976 * tree.c (build_int_cst_wide_type): Remove.
977 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
978 of build_int_cst_wide_type.
979 * stor-layout.c (set_sizetype): (Ditto.).
980 * dojump.c (do_jump): Use build_int_cstu instead of
981 build_int_cst_wide_type.
983 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
985 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
986 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
987 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
988 * gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
989 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
990 propagate the 'data' argument to copy_tree_r.
991 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
992 Propagate 'data' argument to walk_tree.
993 (copy_if_shared): New function.
994 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
995 (unmark_visited): New function.
996 (unshare_body): Call copy_if_shared instead of doing it manually.
997 (unvisit_body): Call unmark_visited instead of doing it manually.
999 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
1001 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1002 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
1003 * hooks.c: Likewise.
1004 * target-def.h (TARGET_FOLD_BUILTIN): Define to
1005 hook_tree_tree_int_treep_bool_null.
1006 * target.h: (struct gcc_target): Update signature of fold_builtin
1008 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
1009 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
1010 instead of the call expression.
1011 (fold_builtin_call_array): Pass n and argarray directly.
1012 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
1014 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
1015 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
1016 `i' and use it in place of `arity'.
1017 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
1018 Dereference `args' directly.
1019 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
1021 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1023 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1025 (Directives): Document optional dg-require-effective-target
1028 2010-05-19 Richard Guenther <rguenther@suse.de>
1031 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1033 2010-05-19 Richard Guenther <rguenther@suse.de>
1035 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
1036 * common.opt (fwhopr=): New.
1037 * opts.c (common_handle_option): Handle OPT_fwhopr.
1038 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
1039 * collect2.c (main): Match -fwhopr*.
1040 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
1041 Execute ltrans stage in parallel when jobs is bigger than 1.
1043 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1045 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1046 pentiumpro on Solaris 8/x86 with Sun as.
1047 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1049 (gcc_cv_as_ix86_quad): Check for .quad directive.
1050 * configure: Regenerate.
1051 * config.in: Regenerate.
1052 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1054 2010-05-19 Martin Jambor <mjambor@suse.cz>
1056 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
1057 also for indirect edges. Actual printing moved...
1058 (ipa_print_node_jump_functions_for_edge): ...here.
1059 (ipa_compute_jump_functions): Renamed to
1060 ipa_compute_jump_functions_for_edge and made static.
1061 (ipa_compute_jump_functions): New function.
1062 (make_edge_direct_to_target): Check if the number of arguments on
1063 the newly direct edge is the same as the number of parametrs of
1065 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
1066 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
1067 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1068 analysis functions unconditionally, call the new
1069 ipa_analyze_params_uses on the node instead of every edge.
1071 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
1073 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
1075 (dump_mem_ref): Adopt debug code to handle a tree as step. This
1076 also checks for a constant int vs. non-constant but
1077 loop-invariant steps.
1078 (find_or_create_group): Change the sort algorithm to only consider
1079 steps that are constant ints.
1080 (idx_analyze_ref): Adopt code to handle a tree instead of a
1081 HOST_WIDE_INT for step.
1082 (gather_memory_references_ref): Handle tree instead of int and be
1083 prepared to see a NULL_TREE.
1084 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
1085 prefetches if the step cannot be calculated at compile time.
1086 (issue_prefetch_ref): Issue prefetches for non-constant but
1087 loop-invariant steps.
1089 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1092 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1094 * tree.h (build_call_list): Remove.
1095 * tree.c (build_call_list): Remove.
1097 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1099 * tree.h (build_call_list): Remove.
1100 * tree.c (build_call_list): Remove.
1102 2010-05-18 Jan Hubicka <jh@suse.cz>
1104 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
1106 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
1108 PR rtl-optimization/43332
1109 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
1111 2010-05-18 Anatoly Sokolov <aesok@post.ru>
1113 * tree.h (build_int_cstu): Implement as static inline.
1114 * tree.c (build_int_cstu): Remove function.
1115 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
1118 2010-05-18 Richard Guenther <rguenther@suse.de>
1121 * lto-wrapper.c (verbose): New variable. Initialize from -v.
1122 (debug): Initialize from -save-temps.
1123 (collect_execute): Print command-line when verbose.
1124 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
1125 for ltrans invocation. Produce -dumpbase flag again.
1126 (process_args): Remove.
1128 * collect2.c (maybe_run_lto_and_relink): Only pass object
1129 files to lto-wrapper.
1130 * gcc.c (LINK_COMMAND_SPEC): Likewise.
1132 2010-05-18 Jan Hubicka <jh@suse.cz>
1134 * opts.c (decode_options): Do not disable whopr at ipa_cp.
1135 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
1137 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1140 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1142 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1145 2010-05-18 Jakub Jelinek <jakub@redhat.com>
1148 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
1151 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1153 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
1154 lto-macho as lto_binary_reader.
1156 * darwin.c (darwin_asm_named_section): Do not add assembler comment
1157 after .section directive; just print it before the directive instead.
1159 2010-05-17 Jan Hubicka <jh@suse.cz>
1161 * cgraph.c (cgraph_create_virtual_clone): Only check
1162 versionable_function_p when not in wpa and checking is enabled.
1163 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
1164 there are no more functions to materialize.
1166 2010-05-17 Jan Hubicka <jh@suse.cz>
1168 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
1169 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
1171 (output_cgraph): Call output_cgraph_opt_summary.
1172 (input_cgrpah): Call input_cgraph_opt_summary.
1173 (output_cgraph_opt_summary_p, output_node_opt_summary,
1174 input_node_opt_summary, input_cgraph_opt_section): New functions.
1175 * lto-section-in.c (lto_section_name): Add cgraphopt.
1176 * tree-inline.c (tree_function_versioning): Handle parm_num.
1177 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
1178 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
1180 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1182 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
1183 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
1184 the insn to prefetch ratio heuristic to loops with known trip count.
1186 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1188 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
1189 (schedule_prefetches): Do not generate a prefetch if the unroll factor
1190 is far from what is required by the prefetch.
1192 2010-05-17 Jan Hubicka <jh@suse.cz>
1194 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
1195 (ipcp_estimate_growth): Likewise.
1196 (ipcp_const_param_count): Likewise.
1197 (ipcp_insert_stage): Likewise.
1198 * ipa-prop.c (visit_load_for_mod_analysis): New function.
1199 (visit_store_addr_for_mod_analysis): Set used flag.
1200 (ipa_detect_param_modifications): Set used flag for SSE params;
1201 update use of walk_stmt_load_store_addr_ops.
1202 (ipa_print_node_params): Print used flag.
1203 (ipa_write_node_info): Stream used flag.
1204 (ipa_read_node_info): Likewise.
1205 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
1206 (ipa_is_param_used): New function.
1207 (lto_ipa_fixup_call_notes): Remove unused declaration.
1209 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1212 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1213 * configure: Regenerate.
1214 * config.in: Regenerate.
1215 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
1216 !HAVE_AS_IX86_REP_LOCK_PREFIX.
1217 Don't emit whitespace.
1218 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1219 (*rep_movsi): Likewise.
1220 (*rep_movsi_rex64): Likewise.
1221 (*rep_movqi): Likewise.
1222 (*rep_movqi_rex64): Likewise.
1223 (*rep_stosdi_rex64): Likewise.
1224 (*rep_stossi): Likewise.
1225 (*rep_stossi_rex64): Likewise.
1226 (*rep_stosqi): Likewise.
1227 (*rep_stosqi_rex64): Likewise.
1228 (*cmpstrnqi_nz_1): Use {%;} after repz.
1229 (*cmpstrnqi_nz_rex_1): Likewise.
1230 (*cmpstrnqi_1): Likewise.
1231 (*cmpstrnqi_rex_1): Likewise.
1232 (*strlenqi_1): Use {%;} after repnz.
1233 (*strlenqi_rex_1): Likewise.
1234 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
1235 (*sync_compare_and_swap<mode>): Likewise.
1236 (sync_double_compare_and_swap<mode>): Likewise.
1237 (*sync_double_compare_and_swapdi_pic): Likewise.
1238 (sync_old_add<mode>): Likewise.
1239 (sync_add<mode>): Likewise.
1240 (sync_sub<mode>): Likewise.
1241 (sync_<code><mode>): Likewise.
1243 2010-05-17 Martin Jambor <mjambor@suse.cz>
1245 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
1246 otr_token and polymorphic.
1247 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
1248 (cgraph_clone_edge): Copy the above fields.
1249 * tree.c (get_binfo_at_offset): New function.
1250 * tree.h (get_binfo_at_offset): Declare.
1251 * ipa-prop.h (enum jump_func_type): Added known_type jump function
1252 type, reordered items, updated comments.
1253 (union jump_func_value): Added base_type field, reordered fields.
1254 (enum ipa_lattice_type): Moved down in the file.
1255 (struct ipa_param_descriptor): New field polymorphic.
1256 (ipa_is_param_polymorphic): New function.
1257 * ipa-prop.c: Include gimple.h and gimple-fold.h.
1258 (ipa_print_node_jump_functions): Print known type jump functions.
1259 (compute_complex_pass_through): Renamed to...
1260 (compute_complex_assign_jump_func): this.
1261 (compute_complex_ancestor_jump_func): New function.
1262 (compute_known_type_jump_func): Likewise.
1263 (compute_scalar_jump_functions): Create known type and complex ancestor
1265 (ipa_note_param_call): New parameter polymorphic, set the corresponding
1266 flag in the call note accordingly.
1267 (ipa_analyze_call_uses): Renamed to...
1268 (ipa_analyze_indirect_call_uses): this. New parameter target, define
1269 variable var only in the block where it is used.
1270 (ipa_analyze_virtual_call_uses): New function.
1271 (ipa_analyze_call_uses): Likewise.
1272 (combine_known_type_and_ancestor_jfs): Likewise.
1273 (update_jump_functions_after_inlining): Implemented handling of a
1274 number of new jump function types combination.
1275 (print_edge_addition_message): Removed.
1276 (make_edge_direct_to_target): New function.
1277 (try_make_edge_direct_simple_call): Likewise.
1278 (try_make_edge_direct_virtual_call): Likewise.
1279 (update_call_notes_after_inlining): Renamed to...
1280 (update_indirect_edges_after_inlining): this. Moved edge creation for
1281 indirect calls to try_make_edge_direct_simple_call, also calls
1282 try_make_edge_direct_virtual_call for virtual calls.
1283 (ipa_print_node_params): Changed the header message.
1284 (ipa_write_jump_function): Stream also known type jump functions.
1285 (ipa_read_jump_function): Likewise.
1286 (ipa_write_indirect_edge_info): Stream new fields in
1287 cgraph_indirect_call_info.
1288 (ipa_read_indirect_edge_info): Likewise.
1289 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
1292 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1294 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
1296 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
1298 * tree.h (CALL_EXPR_ARGS): Delete.
1299 (call_expr_arglist): Delete.
1300 * tree.c (call_expr_arglist): Delete.
1301 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
1302 targetm.fold_builtin.
1303 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
1304 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
1305 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
1306 arglist parameter. Use CALL_EXPR_ARG.
1307 (picochip_expand_builtin_3op): Likewise.
1308 (picochip_expand_builtin_2opvoid): Likewise.
1309 (picochip_expand_array_get): Likewise.
1310 (picochip_expand_array_put): Likewise.
1311 (picochip_expand_array_testport): Likewise.
1312 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
1313 rather than arglist.
1314 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
1316 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
1317 than TREE_VALUE and TREE_CHAIN.
1318 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1319 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
1322 2010-05-17 Jakub Jelinek <jakub@redhat.com>
1325 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
1326 to have no fallthru edge.
1329 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
1330 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
1331 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
1332 add BARRIER after previous bb if needed.
1334 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
1336 * tree.c (build_function_type_list_1): Remove bogus assert condition.
1338 2010-05-17 Alan Modra <amodra@gmail.com>
1340 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
1341 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
1342 with copy_reg rtx param.
1343 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
1344 Correct cases where code for ABI_V4 did not initialise the reg
1345 used to access frame. Also leave frame_reg_rtx as sp for large
1346 frames that save no regs.
1348 2010-05-17 Martin Jambor <mjambor@suse.cz>
1351 * tree-sra.c (create_access_replacement): New parameter rename, mark
1352 the replaement for renaming only when it is true.
1353 (get_access_replacement): Pass true in the rename parameter of
1354 create_access_replacement.
1355 (get_unrenamed_access_replacement): New function.
1356 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
1357 replacement declaration from it.
1359 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
1361 * function.c (try_fit_stack_local, add_frame_space): New static
1363 (assign_stack_local_1): Use them. Look for opportunities to use
1364 space previously wasted on alignment.
1365 * function.h (struct frame_space): New.
1366 (struct rtl_data): Add FRAME_SPACE_LIST member.
1367 * reload1.c (something_was_spilled): New static variable.
1368 (alter_reg): Set it.
1369 (reload): Test it in addition to testing if the frame size changed.
1371 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
1373 * config/s390/s390.c: Define sane prefetch settings and activate
1374 flag_prefetch_loop_arrays on -O3.
1375 * config/s390/s390.h: Declare that read can use write prefetch.
1377 2010-05-17 Jakub Jelinek <jakub@redhat.com>
1379 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
1382 2010-05-16 Jan Hubicka <jh@suse.cz>
1384 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
1385 function body; do not check stdarg field of struct function.
1387 2010-05-16 Jan Hubicka <jh@suse.cz>
1389 * cgraph.c (dump_cgraph_node): Dump versionable flag.
1390 * cgraph.h (cgraph_local_info): Add versionable flag.
1391 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
1392 (ipcp_versionable_function_p): Use it.
1393 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
1396 2010-05-16 Jan Hubicka <jh@suse.cz>
1398 * cgraph.c (cgraph_clone_node): Take decl argument and insert
1399 clone into hash when it is different from orig.
1400 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
1401 * cgraph.h (cgraph_clone_node): Update prototype.
1402 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
1403 (lto_cgraph_encoder_delete): Delete body map.
1404 (lto_cgraph_encoder_size): Move to header.
1405 (lto_cgraph_encoder_encode_body_p,
1406 lto_set_cgraph_encoder_encode_body): New.
1407 (lto_output_node): Do not take written_decls argument; output clone_of
1409 (add_node_to): Add include_body_argument; call
1410 lto_set_cgraph_encoder_encode_body on master of the clone.
1411 (add_references): Update use of add_node_to.
1412 (compute_ltrans_boundary): Likewise.
1413 (output_cgraph): Do not create written_decls bitmap.
1414 (input_node): Take nodes argument; stream in clone_of correctly.
1415 (input_cgraph_1): Update use of input_node.
1416 * lto-streamer-out.c (lto_output): Use encoder info to decide
1417 what bodies to output.
1418 * ipa-inline.c (cgraph_clone_inlined_nodes,
1419 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
1420 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
1421 (lto_cgraph_encoder_size): Define here.
1422 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
1425 2010-05-16 Richard Guenther <rguenther@suse.de>
1427 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
1429 * ipa-type-escape.c (gate_type_escape_vars): Run when
1430 -fipa-struct-reorg runs.
1431 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
1432 * common.opt (fipa-type-escape): Remove.
1434 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
1436 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
1437 (decode_options): Likewise.
1438 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
1440 2010-05-16 Jan Hubicka <jh@suse.cz>
1442 * ipa.c (function_and_variable_visibility): Also bring local all
1445 2010-05-16 Richard Guenther <rguenther@suse.de>
1447 * alias.c (nonoverlapping_memrefs_p): Remove use of
1448 IPA type-escape information.
1450 2010-05-16 Joseph Myers <joseph@codesourcery.com>
1452 * c-common.c (c_common_reswords): Add _Static_assert for C.
1453 * c-parser.c (c_token_starts_declaration,
1454 c_parser_next_token_starts_declaration,
1455 c_parser_static_assert_declaration_no_semi,
1456 c_parser_static_assert_declaration): New.
1457 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
1458 Handle static assertions if static_assert_ok.
1459 (c_parser_external_declaration, c_parser_declaration_or_fndef,
1460 c_parser_compound_statement_nostart, c_parser_label,
1461 c_parser_for_statement, c_parser_objc_methodprotolist,
1462 c_parser_omp_for_loop): All callers of
1463 c_parser_declaration_or_fndef changed.
1464 (c_parser_struct_declaration): Handle static assertions.
1465 (c_parser_compound_statement_nostart): Use
1466 c_parser_next_token_starts_declaration and
1467 c_token_starts_declaration to detect start of declarations.
1468 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
1471 2010-05-16 Anatoly Sokolov <aesok@post.ru>
1473 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1474 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1475 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1476 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1477 (mmix_function_outgoing_value): Rename to...
1478 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
1479 (mmix_function_value_regno_p): Make static.
1480 (mmix_libcall_value): New function.
1481 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
1482 mmix_function_value_regno_p): Remove declaration.
1484 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
1486 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
1487 BUILT_IN_ALLOCA if stack checking is enabled.
1489 2010-05-16 Richard Guenther <rguenther@suse.de>
1491 * var-tracking.c (vars_copy_1): Inline ...
1492 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
1493 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
1494 (variable_merge_over_cur): Adjust. Merge asserts.
1495 (variable_merge_over_src): Likewise.
1496 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
1497 (variable_post_merge_new_vals): Merge asserts.
1498 (variable_post_merge_perm_vals): Likewise.
1499 (find_mem_expr_in_1pdv): Likewise.
1500 (dataflow_set_different_value): Remove.
1501 (onepart_variable_different_p): Merge asserts.
1502 (variable_different_p): Likewise.
1503 (dataflow_set_different_1): Inline ...
1504 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
1505 (emit_notes_for_differences_1): Merge asserts.
1507 2010-05-16 Richard Guenther <rguenther@suse.de>
1509 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
1510 * optabs.c (libfunc_decl_hash): Likewise.
1511 * varasm.c (emutls_decl): Likewise.
1513 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
1515 * c-decl.c: Don't include gimple.h.
1516 (merge_decls): Do not copy gimple_body.
1518 2010-05-15 Jason Merrill <jason@redhat.com>
1520 * c.opt: Add -fnothrow-opt.
1522 2010-05-15 Jan Hubicka <jh@suse.cz>
1524 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
1526 * passes.c (ipa_write_summaries): Write all analyzed nodes.
1528 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
1530 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
1531 * Makefile.in: Add it.
1532 Fix all other Makefile dependencies for changes below.
1533 * tree.h: Include it instead of defining VEC primitives here.
1534 * gimple.h: Likewise.
1536 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
1537 * except.h: Include vecir.h, break dependence on tree.h.
1539 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
1541 * tree-iterator.c: ...to here.
1542 * tree-iterator.h: Fix file introduction comment. Add extern markers.
1544 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
1546 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
1547 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
1548 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
1549 tree-mudflap.h, and target.h.
1550 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
1551 predict.h, tree-inline.h, gimple.h, and langhooks.h.
1552 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
1553 Add FIXME for why gimple.h is still included (should be unnecessary
1554 since GCC 4.5 gimplification unit-at-a-time).
1555 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
1556 * c-pragma.c: Add FIXME for why function.h needs to be included just
1557 for cfun, at front-end level.
1558 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
1559 Do not include ggc.h, but include vecprim.h for VEC(char).
1560 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
1561 Explain why target.h is included.
1562 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
1563 Explain why gimple.h is included.
1564 * c-ppoutput.c: Do not include tm.h.
1565 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
1566 * c-parses.c: Explain why rtl.h is included, and that this (and only
1567 this) is also why tm.h must be included.
1568 Do not include except.h.
1569 * c-lang.c: Do not include ggc.h.
1571 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
1573 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
1575 2010-05-15 Joseph Myers <joseph@codesourcery.com>
1577 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
1578 unions by default if those structs and unions have no tags. Do
1579 not condition anonymous struct and unions handling on flag_iso.
1580 Allow anonymous structs and unions for C1X.
1581 (finish_struct): Do not diagnose lack of named fields when
1582 anonymous structs and unions present for C1X. Accept flexible
1583 array members in structure with anonymous structs or unions but no
1584 directly named fields.
1585 * doc/extend.texi (Unnamed Fields): Update.
1587 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
1589 * gimple.h (compare_field_offset): Rename into...
1590 (gimple_compare_field_offset): ...this.
1591 * gimple.c (compare_field_offset): Rename into...
1592 (gimple_compare_field_offset): ...this. Compare the full access if
1593 the offset is self-referential.
1594 (gimple_types_compatible_p): Adjust for above renaming.
1595 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
1596 DECL_NONADDRESSABLE_P flag of fields before merging them.
1598 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
1600 * tree.h (ctor_to_list): Delete.
1601 * tree.c (ctor_to_list): Delete.
1603 2010-05-15 Jan Hubicka <jh@suse.cz>
1605 * ipa-reference.c: Include toplev.h
1606 (is_proper_for_analysis): Only add to all_module_statics
1608 (write_node_summary_p, stream_out_bitmap,
1609 ipa_reference_write_optimization_summary,
1610 ipa_reference_read_optimization_summary): New.
1611 (struct ipa_opt_pass_d pass_ipa_reference): Add
1612 optimization summary streaming.
1613 * lto-cgraph.c (referenced_from_this_partition_p,
1614 reachable_from_this_partition_p): New functions.
1615 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1616 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
1617 * opts.c (decode_options): Enable ipa_reference.
1618 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
1619 * lto-streamer.h (referenced_from_this_partition_p,
1620 reachable_from_this_partition_p): Declare.
1622 2010-05-15 Richard Guenther <rguenther@suse.de>
1624 PR tree-optimization/44038
1625 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
1626 taking the address of a V_C_E of a constant.
1628 2010-05-14 Jan Hubicka <jh@suse.cz>
1630 * tree.h (memory_identifier_string): Remove.
1631 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
1632 (ipa_reference_global_vars_info_d): Remove statics_not_read and
1633 statics_not_written.
1634 (ipa_reference_optimization_summary_d): New structure.
1635 (ipa_reference_optimization_summary_t): New type and vector.
1636 (ipa_reference_vars_info_d): Embedd structures instead of using
1638 (reference_vars_to_consider): Remove out of GGC space.
1639 (module_statics_escape): Remove.
1640 (global_info_obstack): Rename to ...
1641 (optimization_summary_obstack): ... this one.
1642 (initialization_status_t): Remove.
1643 (memory_identifier_string): Remove.
1644 (get_reference_vars_info): Fix indenting.
1645 (set_reference_vars_info): Likewise.
1646 (get_reference_optimization_summary): New.
1647 (set_reference_optimization_summary): New.
1648 (get_global_reference_vars_info): Remove.
1649 (ipa_reference_get_read_global): Remove.
1650 (ipa_reference_get_written_global): Remove.
1651 (ipa_reference_get_not_read_global): Update.
1652 (ipa_reference_get_not_written_global): Update.
1653 (is_proper_for_analysis): Outlaw addressable.
1654 (propagate_bits): Update for new datastructures.
1655 (analyze_variable): Remove.
1656 (init_function_info): Update for new datastructures.
1657 (clean_function_local_data): Remove.
1658 (clean_function): Remove.
1659 (copy_global_bitmap): Use optimizations_summary_obstack.
1660 (duplicate_node_data): Duplicate optimization summary only.
1661 (remove_node_data): Remove optimization summary only.
1662 (generate_summary): Do not analyze variables; do not compute
1663 module_statics_escape; do not prune solutions by it.
1664 (read_write_all_from_decl): Fix typos in comments.
1665 (propagate): Doscover readonly and nonaddressable first;
1666 update for new datastructures; share global bitmaps.
1667 * ipa-reference.h (ipa_reference_get_read_global,
1668 ipa_reference_get_written_global): Remove.
1669 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
1670 * Makefile.in: Remove ipa-refereference from GT files.
1672 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1675 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
1676 for all SYMBOL_REF_DECLs.
1678 2010-05-14 Jan Hubicka <jh@suse.cz>
1680 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
1681 (varpool_all_refs_explicit_p): New inline function.
1682 * ipa-reference.c: Update comment.
1683 (module_statics_written): Remove.
1684 (get_static_decl): Remove.
1685 (ipa_init): Do not initialize module_statics_written.
1686 (analyze_function): Likewise.
1687 (generate_summary): Likewise; do not compute module_statics_readonly
1688 and do not update variable flags.
1689 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
1690 * ipa.c: Inlucde flags.h
1691 (cgraph_local_node_p): New.
1692 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
1693 promote functions to local.
1694 (ipa_discover_readonly_nonaddressable_vars): New function.
1695 (function_and_variable_visibility): Use cgraph_local_node_p.
1696 * varpool.c (varpool_finalize_decl): Set force_output for
1697 DECL_PRESERVE_P vars.
1699 2010-05-14 Jan Hubicka <jh@suse.cz>
1701 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
1703 2010-05-14 Richard Guenther <rguenther@suse.de>
1705 PR tree-optimization/44119
1706 * tree-ssa-pre.c (eliminate): Properly mark replacement of
1707 a PHI node necessary.
1709 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
1711 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
1713 2010-05-14 Jason Merrill <jason@redhat.com>
1716 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
1717 (gimple_call_set_nothrow): New.
1718 * gimple.c (gimple_build_call_from_tree): Call it.
1719 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
1722 * gimplify.c (gimplify_seq_add_stmt): No longer static.
1723 * gimple.h: Declare it.
1724 * gimple.c (gimple_build_eh_filter): No ops.
1726 2010-05-14 Jan Hubicka <jh@suse.cz>
1728 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
1729 nodes already in queue.
1730 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
1733 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1736 * cfgexpand.c (expand_debug_expr): If non-memory op0
1737 has BLKmode, return NULL.
1739 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
1741 * config.gcc: Add support for --with-cpu option for bdver1.
1742 * config/i386/i386.h (TARGET_BDVER1): New macro.
1743 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
1744 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1745 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
1746 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1747 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
1748 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
1749 (processor_type): Add PROCESSOR_BDVER1.
1750 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
1751 processor_type in config/i386/i386.h.
1752 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
1753 movaps <reg, reg> instead of movapd <reg, reg> when replacing
1754 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
1755 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
1756 to emit packed xor instead of packed double/packed integer
1757 xor for SSE and AVX when moving a zero value.
1758 * config/i386/sse.md: Add check for
1759 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
1760 movapd/movdqa for SSE and AVX.
1761 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
1762 single logical operations i.e and, or and xor instead of packed double
1763 logical operations for SSE and AVX.
1764 * config/i386/i386-c.c (ix86_target_macros_internal):
1765 Add PROCESSOR_BDVER1.
1766 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
1767 (has_fma4, has_xop): New.
1768 * config/i386/i386.c (bdver1_cost): New variable.
1769 (m_BDVER1): New macro.
1770 (m_AMD_MULTIPLE): Add m_BDVER1.
1771 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
1772 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
1773 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
1774 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
1775 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
1776 x86_tune_sse_partial_reg_dependency,
1777 x86_tune_sse_unaligned_load_optimal,
1778 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
1779 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
1780 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
1781 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
1782 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
1783 Enable/disable for bdver1.
1784 (processor_target_table): Add bdver1_cost.
1785 (cpu_names): Add bdver1.
1786 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
1787 processor_alias_table.
1788 (ix86_expand_vector_move_misalign): Change.
1789 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
1790 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
1791 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
1792 of movupd/movdqu for SSE and AVX.
1793 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
1794 (ix86_tune_adjust_cost): Add code for bdver1.
1795 (standard_sse_constant_opcode): Add check for
1796 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
1797 of packed double xor for SSE and AVX.
1799 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
1801 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
1804 2010-05-14 Tristan Gingold <gingold@adacore.com>
1806 * toplev.c (default_debug_hooks): Remove this variable.
1807 (process_options): Remove assignments to default_debug_hooks.
1809 2010-05-14 Martin Jambor <mjambor@suse.cz>
1811 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
1812 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
1813 * langhooks.h (struct lang_hooks_for_decls): Removed field
1815 * tree.c (free_lang_data): Remove assignment to
1816 lang_hooks.fold_obj_type_ref.
1817 * tree.def (OBJ_TYPE_REF): Update comment.
1819 2010-05-14 Richard Guenther <rguenther@suse.de>
1821 PR tree-optimization/44124
1822 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
1824 2010-05-14 Alan Modra <amodra@gmail.com>
1827 * config/rs6000/rs6000.c (struct machine_function): Reorder
1828 fields for better packing. Add lr_save_state.
1829 (rs6000_ra_ever_killed): Return lr_save_state if set.
1830 (rs6000_emit_eh_reg_restore): Set lr_save_state.
1832 2010-05-13 Jan Hubicka <jh@suse.cz>
1834 * varpool.c (decide_is_variable_needed): Drop code checking
1835 TREE_SYMBOL_REFERENCED.
1837 2010-05-13 Jan Hubicka <jh@suse.cz>
1839 * final.c (output_addr_const): Do not call mark_decl_referenced.
1840 * cgraphunit.c (process_function_and_variable_attributes): Use
1841 mark_needed_node dirrectly.
1842 (assemble_thunk): Do not call mark_decl_referenced.
1844 2010-05-13 Anatoly Sokolov <aesok@post.ru>
1846 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
1848 2010-05-13 Jeff Law <law@redhat.com>
1850 * ira-conflicts.c (print_allocno_conflicts): New function broken out
1852 (print_conflicts): Call print_allocno_conflicts.
1854 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1857 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
1860 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
1862 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
1863 t-mingw-w64 or t-mingw-w32 for multilib configuration.
1864 * config/i386/t-mingw-w32: New.
1865 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
1867 2010-05-13 Martin Jambor <mjambor@suse.cz>
1869 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
1871 * gimple-fold.c (get_base_binfo_for_type): New function.
1872 (gimple_get_relevant_ref_binfo): Likewise.
1873 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1874 (gimple_fold_obj_type_ref): Likewise.
1875 (fold_gimple_call): Simplify condition for folding virtual calls
1876 and call gimple_fold_obj_type_ref.
1877 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
1878 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1880 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
1882 * config/rs6000/rs6000-protos.h
1883 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
1884 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
1885 (rs6000_debug_mode_dependent_address)
1886 (rs6000_mode_dependent_address_ptr): Likewise.
1888 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1891 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
1893 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
1894 * tree-sra.c (create_access_replacement): Call unshare_expr before
1895 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
1896 * dwarf2out.c: Include tree-flow.h.
1897 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
1898 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
1899 Handle DW_OP_bit_piece.
1900 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
1901 construct_piece_list, adjust_piece_list): New functions.
1902 (add_var_loc_to_decl): Handle SRA optimized variables.
1903 Adjust for var_loc_note to loc field renaming.
1904 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
1905 in VAR_LOCATION note.
1906 (new_loc_descr_op_bit_piece): New function.
1907 (dw_sra_loc_expr): New function.
1908 (dw_loc_list): Use it. Don't handle the last range after the
1909 loop, handle it inside of the loop. Adjust for var_loc_note
1910 to loc field renaming.
1911 (add_location_or_const_value_attribute): Only special case
1912 single entry loc lists if loc is NOTE_P. Adjust for
1913 var_loc_note to loc field renaming.
1914 (dwarf2out_var_location): Don't set newloc->var_loc_note
1915 and newloc->next here.
1917 2010-05-12 Jan Hubicka <jh@suse.cz>
1919 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
1921 * cgraph.h (cgraph_only_called_directly_p,
1922 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
1923 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
1924 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
1926 * ipa.c (cgraph_remove_unreachable_nodes): Use
1927 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
1929 * tree-inline.c (copy_bb): Check address_taken flag.
1930 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
1931 externally_visible flag.
1933 2010-05-12 Jason Merrill <jason@redhat.com>
1937 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
1938 * sdbout.c (plain_type_1): Likewise.
1939 * dwarf2out.c (is_base_type): Likewise.
1940 (gen_type_die_with_usage): Likewise. Generate
1941 DW_TAG_unspecified_type for any LANG_TYPE.
1943 2010-05-12 Jan Hubicka <jh@suse.cz>
1945 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
1947 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
1948 (cgraph_clone_edge): Update.
1949 (cgraph_node_remove_callees): Remove indirect calls too.
1950 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
1951 (cgraph_create_indirect_edge): Update prototype.
1952 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
1953 is_proper_for_analysis.
1954 (add_new_function, visited_nodes, function_insertion_hook_holder,
1955 get_local_reference_vars_info, mark_address_taken, mark_address,
1956 mark_load, mark_store, check_asm_memory_clobber, check_call,
1957 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
1958 (ipa_init): Do not initialize visited_nodes;
1959 function_insertion_hook_holder.
1960 (analyze_variable): Rewrite.
1961 (analyze_function): Rewrite.
1962 (copy_local_bitmap): Remove.
1963 (duplicate_node_dat): Do not duplicate local info.
1964 (generate_summary): Simplify to only walk cgraph.
1965 (write_node_summary_p, ipa_reference_write_summary,
1966 ipa_reference_read_summary): Remove.
1967 (propagate): Do not remove function insertion;
1969 (pass_ipa_reference): NULLify summary handling fields.
1970 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
1971 (input_edge): Input ecf_flags.
1972 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
1973 (update_indirect_edges_after_inlining): Ignore edges with unknown
1976 2010-05-12 Sriraman Tallam <tmsriram@google.com>
1978 * implicit-zee.c: New file.
1979 * tree-pass.h (pass_implicit_zee): Declare.
1980 * passes.c (init_optimization_passes): Add zee pass.
1981 * common.opt (fzee): New flag.
1982 * timevar.def (TV_ZEE): Define.
1983 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
1985 * Makefile.in (implicit-zee.o): Add new build file.
1987 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1988 Nathan Froyd <froydnj@codesourcery.com>
1990 * c-common.c (sync_resolve_params): Remove write-only variable.
1992 2010-05-12 Anatoly Sokolov <aesok@post.ru>
1994 * target.h (struct gcc_target): Add mode_dependent_address_p field.
1995 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1996 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
1997 * targhooks.c (default_mode_dependent_address_p): New function.
1998 * targhooks.h (default_mode_dependent_address_p): Declare function.
1999 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2000 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2001 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
2002 target hook. Change return type to bool.
2003 * recog.h: (mode_dependent_address_p): Change return type to bool.
2005 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2006 Nathan Froyd <froydnj@codesourcery.com>
2008 * tree-mudflap.c (build_function_type_0, build_function_type_1,
2009 build_function_type_2, build_function_type_3): Remove.
2010 (mudflap_init): Use build_function_type_list.
2012 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2013 Nathan Froyd <froydnj@codesourcery.com>
2015 * coverage.c (build_fn_info_value): Call build_constructor instead of
2016 build_constructor_from_list.
2017 (build_ctr_info_value): Likewise.
2018 (build_gcov_info): Likewise.
2020 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
2022 * tree.c (build_constructor): Compute TREE_CONSTANT for the
2023 resultant constructor.
2024 (build_constructor_single): Don't set TREE_CONSTANT.
2025 (build_constructor_from_list): Don't compute TREE_CONSTANT.
2027 2010-05-12 Jan Hubicka <jh@suse.cz>
2029 * cgraph.h (struct varpool_node): Add aux.
2030 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
2031 * varpool.c (varpool_remove_node): Do not remove initializer.
2032 (varpool_reset_queue): Export.
2033 (varpool_finalize_decl): Volatile vars are forced to be output.
2034 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
2036 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
2037 process_references, varpool_can_remove_if_no_refs): New functions.
2038 (cgraph_remove_unreachable_nodes): Handle variables too.
2040 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
2043 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
2045 2010-05-12 Jakub Jelinek <jakub@redhat.com>
2048 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
2049 change value of ORT_TASK.
2050 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
2051 (omp_notice_threadprivate_variable): New function.
2052 (omp_notice_variable): Call it for threadprivate variables.
2053 If enclosing ctx is a task, print enclosing task rather than
2054 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
2055 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
2056 if task has untied clause.
2059 * dwarf2out.c (base_type_die): Don't add name attribute here.
2060 (modified_type_die): Instead of sizetype use
2061 its underlying original type. If a DW_TAG_base_type doesn't
2062 have name added, add __unknown__.
2063 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
2064 always call force_type_die instead.
2066 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
2068 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
2069 for __stack_chk_guard.
2071 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2073 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
2074 don't call start_source_file debug hook here...
2075 (finish_options): ... but here, after outputting predefined and
2076 command line defines and undefs.
2079 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
2081 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
2082 optimizing away empty bb with no successors, move over its
2083 footer chain to fallthru predecessor.
2084 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
2085 (rtl_split_edge): For asm goto call patch_jump_insn even if
2086 splitting fallthru edge.
2089 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
2090 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
2091 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2092 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
2096 * c-parser.c (c_parser_expression): Mark LHS of a comma
2097 expression as read if it is a decl, handled component or
2098 COMPOUND_EXPR with that on the RHS.
2099 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
2100 if it is a decl or handled component.
2102 2010-05-11 Jan Hubicka <jh@suse.cz>
2104 * lto-symtab.c (lto_symtab_free): New function.
2105 * lto-streamer.h (lto_symtab_free): Declare.
2107 2010-05-11 Jan Hubicka <jh@suse.cz>
2109 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
2110 that if function is needed it is reachable.
2111 (lto_output_node): See if it the function is reachable or referenced.
2112 (output_cgraph): Update call of lto_output_node.
2113 * lto-streamer.h (reachable_from_other_partition_p): Declare.
2115 2010-05-11 Jan Hubicka <jh@suse.cz>
2117 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
2120 2010-05-11 Jan Hubicka <jh@suse.cz>
2122 PR tree-optimize/44063
2123 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
2125 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
2127 (estimate_function_body_sizes): Compute sizes even when disregarding.
2129 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
2131 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
2133 2010-05-11 Jan Hubicka <jh@suse.cz>
2135 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
2136 into every boundary.
2138 2010-05-11 Jan Hubicka <jh@suse.cz>
2140 * matrix-reorg.c (matrix_reorg): Rebuild edges.
2142 2010-05-11 Jan Hubicka <jh@suse.cz>
2144 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
2145 lto_streamer_cache_delete): Put nodes into heap.
2146 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
2149 2010-05-11 Jan Hubicka <jh@suse.cz>
2151 * cgraphbuild.c (cgraph_rebuild_references): New.
2152 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
2154 * cgraph.h (cgraph_rebuild_references): Declare.
2155 * tree-inline.c (tree_function_versioning): Use it.
2156 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
2158 2010-05-11 Jan Hubicka <jh@suse.cz>
2160 * cgraph.c: Include ipa-utils.h
2161 (cgraph_create_virtual_clone): Update references.
2162 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
2164 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2166 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
2167 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
2170 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2172 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
2174 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2176 * gcc.c (execute): For -### don't quote arguments that
2177 contain just alphanumerics and _/-. characters.
2178 * doc/invoke.texi: Document that change for -###.
2181 * df-problems.c (struct dead_debug): Add to_rescan field.
2182 (dead_debug_init): Clear to_rescan field.
2183 (dead_debug_finish): Rescan all debug insns in to_rescan
2184 bitmap and free the bitmap.
2185 (dead_debug_insert_before): Instead of rescanning debug insns
2186 immediately queue their rescanning until dead_debug_finish.
2187 (df_note_bb_compute): After dead_debug_add do continue instead
2190 2010-05-10 Jakub Jelinek <jakub@redhat.com>
2193 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
2194 clear also INSN_REG_USE_LIST.
2196 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2198 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
2200 2010-05-10 Jan Hubicka <jh@suse.cz>
2202 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
2205 2010-05-10 Jan Hubicka <jh@suse.cz>
2207 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
2209 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
2210 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
2211 (lto_streamer_cache_create): Init alloc pool.
2212 (lto_streamer_cache_delete): Free alloc pool.
2213 * lto-streamer.h: Include alloc pool.
2214 (lto_streamer_cache_d): Use alloc pool.
2215 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
2217 2010-05-10 Jan Hubicka <jh@suse.cz>
2219 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
2220 * cgraphbuild.c: Include except.h
2221 (record_type_list, record_eh_tables): New function.
2222 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
2224 2010-05-10 Jan Hubicka <jh@suse.cz>
2226 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
2227 __frame_dummy_init_array_entry, force_to_data): Attribute as used
2230 2010-05-10 Michael Matz <matz@suse.de>
2232 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
2233 (can_reassociate_p): Use FLOAT_TYPE_P.
2234 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
2235 (vect_force_simple_reduction): ... this.
2236 * tree-parloops.c (gather_scalar_reductions): Use
2237 vect_force_simple_reduction.
2238 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
2239 vect_is_simple_reduction, add modify argument, if true rewrite
2240 "a-b" into "a+(-b)".
2241 (vect_is_simple_reduction, vect_force_simple_reduction): New
2243 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
2245 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
2246 Vladimir Makarov <vmakarov@redhat.com>
2248 PR rtl-optimization/44012
2249 * ira-build.c (remove_unnecessary_allocnos): Nullify
2250 regno_allocno_map of the removed allocno.
2252 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2254 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
2256 * configure: Regenerate.
2258 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2260 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
2262 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
2263 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
2265 * configure: Regenerate.
2267 2010-05-10 Richard Guenther <rguenther@suse.de>
2269 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
2270 marked if the entry identifier is marked.
2272 2010-05-10 Richard Guenther <rguenther@suse.de>
2274 * c-common.c (struct c_common_attributes): Add fnspec attribute.
2275 (handle_fnspec_attribute): New function.
2276 * gimple.h (gimple_call_return_flags): Declare.
2277 (gimple_call_arg_flags): Likewise.
2278 * gimple.c (gimple_call_arg_flags): New function.
2279 (gimple_call_return_flags): Likewise.
2280 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
2282 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
2284 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
2285 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
2287 (make_heapvar_for): ... this new function.
2288 (handle_rhs_call): Handle fnspec attribute argument specifiers.
2289 (handle_lhs_call): Likewise.
2290 (find_func_aliases): Adjust.
2292 2010-05-10 Richard Guenther <rguenther@suse.de>
2294 PR tree-optimization/44050
2295 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
2297 2010-05-10 Wei Guozhi <carrot@google.com>
2300 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
2302 2010-05-09 Joseph Myers <joseph@codesourcery.com>
2305 * c-typeck.c (lookup_field): Take a type directly. Update
2307 (build_component_ref): Update call to lookup_field.
2308 (set_init_label): Use lookup_field to find initialized field.
2309 Handle returned list of fields like a sequence of designators.
2311 2010-05-09 Richard Guenther <rguenther@suse.de>
2314 * fold-const.c (tree_single_nonzero_warnv_p): Properly
2315 handle &FUNCTION_DECL.
2317 2010-05-09 Joseph Myers <joseph@codesourcery.com>
2320 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
2321 structures and unions recursively.
2322 (detect_field_duplicates): Move duplicate detection with a hash to
2323 detect_field_duplicates_hash. Always use a hash if anonymous
2324 structures or unions are present.
2325 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
2328 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
2331 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
2332 detect Atom, Core 2 and Core i7.
2334 2010-05-09 Richard Guenther <rguenther@suse.de>
2336 * gcc.c (store_arg): Handle temporary file deletion for
2339 2010-05-09 Richard Guenther <rguenther@suse.de>
2342 * ipa-inline.c (estimate_function_body_sizes): Return after
2343 disregarding inline limits.
2345 2010-05-09 Richard Guenther <rguenther@suse.de>
2347 * gcc.c (store_arg): Revert last change.
2349 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
2352 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
2353 (optimize_ops_list): Call it.
2355 2010-05-08 Richard Guenther <rguenther@suse.de>
2357 PR tree-optimization/44030
2358 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
2359 NECESSARY flag if we propagate from a inserted expression.
2361 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
2363 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
2364 domain types as equal if they are both PLACEHOLDER_EXPRs.
2366 2010-05-08 Richard Guenther <rguenther@suse.de>
2368 * lto-wrapper.c (run_gcc): Remove linker output from
2369 command line for LTRANS invocation.
2371 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
2373 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2374 lto-macho as lto_binary_reader.
2375 * target.h (struct gcc_target): New hooks lto_start and lto_end.
2376 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
2377 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
2378 in lto_start and lto_end calls.
2379 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
2381 (scan_prog_file): Update is_elf_or_coff call.
2382 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
2384 * collect2.c (main): Fix enum comparison.
2386 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
2388 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
2389 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
2390 and TARGET_ASM_LTO_END.
2391 * darwin.c: Include obstack.h and lto-streamer.h.
2392 (lto_section_names_offset, lto_section_names_obstack,
2393 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
2395 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
2396 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
2397 to a temporary file.
2398 (darwin_asm_lto_end): New function. Restore asm_out_file.
2399 (darwin_asm_named_section): For LTO sections, replace the name with
2400 the offset of the section name in a string table, and build this
2402 (darwin_file_start): Initialize global vars for LTO support.
2403 (darwin_file_end): If output to asm_out_file was redirected, append it
2404 to the proper asm_out_file here. Add the section names section.
2406 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
2408 * c-pragma.c (pending_weak_d, pending_weak): New.
2409 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
2410 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
2411 handle_pragma_weak): Update the uses of pending_weaks.
2413 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2415 PR documentation/44016
2416 * doc/standards.texi (Standards): Link to unversioned
2417 cxx0x_status.html page.
2419 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
2422 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
2423 in addition to TREE_USED, to avoid "set but unused" warnings.
2425 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
2427 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
2428 (is_loop_prefetching_profitable): Do not insert prefetches
2429 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
2430 times the prefetch ahead distance.
2432 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
2434 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
2435 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
2436 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
2439 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
2441 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
2442 a diagnostic info when the insn-to-mem ratio is too small.
2444 2010-05-07 Richard Guenther <rguenther@suse.de>
2446 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
2448 (store_arg): Queue temp_filename for deletion instead of
2451 2010-05-07 Richard Guenther <rguenther@suse.de>
2453 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
2454 (run_gcc): Handle LTRANS phase invocation.
2455 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
2457 2010-05-07 Jakub Jelinek <jakub@redhat.com>
2459 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
2460 this is also meaningful on PARM_DECLs and RESULT_DECLs.
2462 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2464 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
2466 2010-05-07 Richard Guenther <rguenther@suse.de>
2468 PR tree-optimization/44020
2469 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
2470 code when PRE is not yet initialized.
2472 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2474 * config/mips/dbxmdebug.h: Remove.
2475 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
2477 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
2479 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
2480 with null pointer and also warn about ordered comparison of zero with
2483 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2485 * graphite-blocking.c
2486 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
2487 * graphite-clast-to-gimple.c
2488 (clast_to_gcc_expression): Same.
2489 (precision_for_value): Same.
2490 (precision_for_interval): Same.
2491 (gcc_type_for_interval): Same.
2492 (graphite_create_new_guard): Same.
2493 (compute_bounds_for_level): Same.
2494 (graphite_create_new_loop_guard): Same.
2495 * graphite-interchange.c
2496 (build_linearized_memory_access): Same.
2497 (pdr_stride_in_loop): Same.
2498 (memory_strides_in_loop_1): Same.
2499 (memory_strides_in_loop): Same.
2500 (extend_scattering): Same.
2501 (psct_scattering_dim_for_loop_depth): Same.
2502 (pbb_number_of_iterations): Same.
2504 (debug_iteration_domains): Same.
2506 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2507 (ppl_set_inhomogeneous_gmp): Same.
2508 (ppl_strip_loop): Same.
2509 (ppl_lexico_compare_linear_expressions): Same.
2510 (ppl_read_polyhedron_matrix): Same.
2511 (ppl_max_for_le_pointset): Same.
2513 (ppl_read_polyhedron_matrix): Same.
2514 (tree_int_to_gmp): Same.
2515 (gmp_cst_to_tree): Same.
2516 (ppl_set_inhomogeneous): Same.
2517 (ppl_set_inhomogeneous_tree): Same.
2518 (ppl_set_coef): Same.
2519 (ppl_set_coef_tree): Same.
2520 * graphite-sese-to-poly.c
2521 (build_pbb_scattering_polyhedrons): Same.
2522 (build_scop_scattering): Same.
2523 (scan_tree_for_params_right_scev): Same.
2524 (scan_tree_for_params): Same.
2525 (find_params_in_bb): Same.
2526 (find_scop_parameters): Same.
2527 (add_upper_bounds_from_estimated_nit): Same.
2528 (build_loop_iteration_domains): Same.
2529 (add_condition_to_domain): Same.
2530 (pdr_add_memory_accesses): Same.
2532 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2534 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
2535 CLooG's value_* macros to their respective mpz_* counterparts.
2536 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
2537 (graphite_create_new_loop_guard): Same.
2538 * graphite-interchange.c (build_linearized_memory_access): Same.
2539 (pdr_stride_in_loop): Same.
2540 (memory_strides_in_loop_1): Same.
2541 (1st_interchange_profitable_p): Same.
2542 * graphite-poly.c (extend_scattering): Same.
2543 (psct_scattering_dim_for_loop_depth): Same.
2544 (pbb_number_of_iterations): Same.
2545 (pbb_number_of_iterations_at_time): Same.
2546 * graphite-poly.h (new_1st_loop): Same.
2547 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
2548 (oppose_constraint): Same.
2549 (insert_constraint_into_matrix): Same.
2550 (ppl_set_inhomogeneous_gmp): Same.
2551 (ppl_set_coef_gmp): Same.
2552 (ppl_strip_loop): Same.
2553 (ppl_lexico_compare_linear_expressions): Same.
2554 (ppl_max_for_le_pointset): Same.
2555 (ppl_min_for_le_pointset): Same.
2556 (ppl_build_realtion): Same.
2557 * graphite-ppl.h (gmp_cst_to_tree): Same.
2558 (ppl_set_inhomogeneous): Same.
2559 (ppl_set_inhomogeneous_tree): Same.
2560 (ppl_set_coef): Same.
2561 (ppl_set_coef_tree): Same.
2562 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2563 (build_scop_scattering): Same.
2564 (add_value_to_dim): Same.
2565 (scan_tree_for_params_right_scev): Same.
2566 (scan_tree_for_params_int): Same.
2567 (scan_tree_for_params): Same.
2568 (find_params_in_bb): Same.
2569 (find_scop_parameters): Same.
2570 (add_upper_bounds_from_estimated_nit): Same.
2571 (build_loop_iteration_domains): Same.
2572 (create_linear_expr_from_tree): Same.
2573 (add_condition_to_domain): Same.
2574 (pdr_add_memory_accesses): Same.
2576 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
2577 Jason Merrill <jason@redhat.com>
2579 * c-common.c (c_common_reswords): Add nullptr.
2580 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
2581 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
2582 (gen_type_die_with_usage): Likewise.
2583 * dbxout.c (dbxout_type): Likewise.
2584 * sdbout.c (plain_type_1): Likewise.
2586 2010-05-06 Jason Merrill <jason@redhat.com>
2588 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
2589 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
2591 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
2593 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
2594 stripping WITH_SIZE_EXPR.
2595 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
2598 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2600 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
2601 list of obsolete configurations.
2602 Disabled check for obsolete configurations.
2603 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
2604 Removed support for previous versions.
2605 * config/mips/iris.h: Removed.
2606 * config/mips/iris5.h: Removed.
2607 * config/mips/iris6.h: Merged old iris.h contents.
2608 (TARGET_IRIX): Removed.
2609 (DRIVER_SELF_SPECS): Removed mabi=32.
2610 (IDENT_ASM_OP): Removed undef.
2611 (STARTFILE_SPEC): Removed mabi=32.
2612 (ENDFILE_SPEC): Likewise.
2613 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
2614 (MACHINE_TYPE): Update for IRIX 6.5.
2615 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
2616 TARGET_IRIX by TARGET_IRIX6.
2617 (mips_file_start): Likewise.
2618 (mips_output_external): Remove IRIX 5/6 O32 support.
2619 (mips_output_function_prologue): Likewise.
2620 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
2622 (TARGET_CPU_CPP_BUILTINS): Likewise.
2623 (TARGET_IRIX): Removed.
2624 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
2625 (MULTILIB_DIRNAMES): Removed 32.
2626 (MULTILIB_OSDIRNAMES): Removed ../lib.
2627 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
2628 (Specific, mips-sgi-irix5): Document removal.
2629 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
2630 Remove references to older IRIX 6 releases and the O32 ABI.
2632 2010-05-06 Jakub Jelinek <jakub@redhat.com>
2635 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
2636 instead of DF_REF_REAL_REG.
2638 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
2641 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
2642 handling to still return true for x64 targets.
2644 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2646 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
2648 2010-05-06 Jan Hubicka <jh@suse.cz>
2650 PR tree-optimization/43791
2651 * ipa-inline.c (update_caller_keys): Remove bogus
2652 disregard_inline_limits check.
2654 2010-05-06 Michael Matz <matz@suse.de>
2656 PR tree-optimization/43984
2657 * tree-ssa-pre.c (inserted_phi_names): Remove.
2658 (inserted_exprs): Change to bitmap.
2659 (create_expression_by_pieces): Set bits, don't append to vector.
2660 (insert_into_preds_of_block): Don't handle inserted_phi_names.
2661 (eliminate): Don't look at inserted_phi_names, remove deleted
2662 insns from inserted_exprs.
2663 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
2664 (init_pre, fini_pre): Allocate and free bitmaps.
2665 (execute_pre): Insert insns on edges before elimination.
2667 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2669 * tree.c (initializer_zerop): Handle STRING_CST.
2671 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2674 * doc/invoke.texi (Wimplicit): Document as C only.
2675 * opts.c (common_handle_option): Add argument kind.
2676 (handle_option): Rename as read_cmdline_option. Factor out code to...
2677 (handle_option): ... here. New.
2678 (handle_options): Rename as read_cmdline_options.
2679 (decode_options): Update call.
2680 (set_option): Use option index instead of option pointer. Classify
2681 diagnostics correctly.
2682 (enable_warning_as_error): Call handle_option.
2683 * opts.h (set_option): Update declaration.
2684 (handle_option): Declare.
2685 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
2686 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
2687 * c-opts.c (set_Wimplicit): Delete.
2688 (c_family_lang_mask): New static constant.
2689 (c_common_handle_option): Add argument kind. Use handle_option
2690 instead of set_Wimplicit.
2691 (c_common_post_options): warn_implicit and warn_implicit_int
2692 are disabled by default.
2693 * c-common.c (warn_implicit): Do not define here.
2694 * c-common.h (warn_implicit): Do not declare here.
2695 (c_common_handle_option): Update declaration.
2696 * lto-opts.c (lto_reissue_options): Update call to set_option.
2698 2010-05-06 Richard Guenther <rguenther@suse.de>
2700 PR tree-optimization/43571
2701 * domwalk.c (walk_dominator_tree): Walk the dominator
2702 sons in more optimal order.
2704 2010-05-06 Richard Guenther <rguenther@suse.de>
2706 PR tree-optimization/43934
2707 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
2708 (stmt_cost): Likewise.
2709 (extract_true_false_args_from_phi): New helper.
2710 (determine_max_movement): For PHI nodes verify we can hoist them
2711 and compute their cost.
2712 (determine_invariantness_stmt): Handle PHI nodes.
2713 (move_computations_stmt): Likewise. Hoist PHI nodes in
2714 if-converted form using COND_EXPRs.
2715 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
2716 (tree_ssa_lim): Likewise.
2717 * tree-flow.h (tree_ssa_lim): Adjust prototype.
2718 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
2720 2010-05-06 Richard Guenther <rguenther@suse.de>
2722 PR tree-optimization/43987
2723 * tree-ssa-structalias.c (could_have_pointers): For possibly
2724 address-taken variables force pointers to be recorded.
2725 (create_variable_info_for_1): Likewise.
2726 (push_fields_onto_fieldstack): Pass in wheter all fields
2728 (find_func_aliases): Query types instead of vars whether
2729 they contain pointers where appropriate.
2731 2010-05-06 Jan Hubicka <jh@suse.cz>
2733 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
2734 (record_reference, mark_address, mark_load, mark_store): Record
2736 (record_references_in_initializer): Update call of record_references.
2737 (rebuild_cgraph_edges): Remove all references before rebuiding.
2738 * cgraph.c (cgraph_create_node): Clear ref list.
2739 (cgraph_remove_node): Remove references.
2740 (dump_cgraph_node): Dump references.
2741 (cgraph_clone_node): Clone references.
2742 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
2743 (struct cgraph_node, varpool_node): Add ref_lst.
2744 * ipa-ref.c: New file.
2745 * ipa-ref.h: New file.
2746 * ipa-ref-inline.h: New file.
2747 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
2748 (referenced_from_other_partition_p): New function.
2749 (lto_output_varpool_node): Take set arugment; call
2750 referenced_from_other_partition.
2751 (lto_output_ref): New.
2752 (add_references): New.
2754 (output_cgraph): Compute boundary based on references; output refs.
2755 (output_varpool): Accept cgraph_node_set argument.
2758 (input_cgraph): Call input_refs.
2759 * lto-section-in.c (lto_section_name): Add refs.
2760 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
2761 (ipa-ref.o): New file.
2762 * varpool.c (varpool_node): Clear ipa ref list.
2763 (varpool_remove_node): Remove references.
2764 (dump_varpool_node): Dump references.
2765 (varpool_assemble_decl): Only compile finalized ones.
2766 (varpool_extra_name_alias): Initialize ref list.
2767 * lto-streamer.c (lto-get_section_name): Add .refs section.
2768 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
2769 (referenced_from_other_partition_p): Declared.
2771 2010-05-06 Ira Rosen <irar@il.ibm.com>
2773 PR tree-optimization/43901
2774 * tree-vect-stmts.c (vectorizable_call): Assert that vector
2775 type is not NULL if it's transformation phase, and return
2776 FALSE if it's analysis.
2777 (vectorizable_conversion, vectorizable_operation,
2778 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
2780 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2782 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2784 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2786 * config/mips/mips-protos.h
2787 (mips_small_register_classes_for_mode_p): Delete prototype.
2789 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
2791 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
2792 * config/arm/arm.c (multiple_operation_profitable_p,
2793 compute_offset_order): New static functions.
2794 (load_multiple_sequence, store_multiple_sequence): Use them.
2795 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
2796 memory offsets, not register numbers.
2797 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
2799 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
2801 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
2802 (get_pending_sizes, put_pending_size, put_pending_sizes):
2803 Update the uses of pending_sizes.
2804 * c-decl.c (store_parm_decls): Likewise.
2805 * c-tree.h (struct c_arg_info): Likewise.
2806 * tree.h: Update the prototype for get_pending_sizes and
2809 2010-05-05 Jason Merrill <jason@redhat.com>
2812 * c-common.c (handle_aligned_attribute): Respect
2813 ATTR_FLAG_TYPE_IN_PLACE.
2816 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
2817 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2818 (TARGET_INITIALIZER): Use it.
2819 * c-common.c (attribute_takes_identifier_p): Call it.
2820 * c-common.h: Update prototype.
2821 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
2822 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2824 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2827 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
2828 DW_ID_down_case for Fortran compilation units.
2830 2010-05-05 Jan Hubicka <jh@suse.cz>
2832 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
2835 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
2837 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
2838 a variable-sized RESULT_DECL.
2840 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
2842 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
2844 2010-05-05 Jason Merrill <jason@redhat.com>
2847 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
2849 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
2851 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
2852 Jakub Jelinek <jakub@redhat.com>
2855 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
2856 (dead_debug_init, dead_debug_finish): New functions.
2857 (dead_debug_add, dead_debug_insert_before): Likewise.
2858 (df_note_bb_compute): Initialize a dead_debug object, add dead
2859 debug uses to it, insert debug bind insns before death insns,
2860 reset debug insns that refer to pending uses at the end.
2861 * rtl.h (make_debug_expr_from_rtl): New prototype.
2862 * varasm.c (make_debug_expr_from_rtl): New function.
2864 2010-05-05 Jan Hubicka <jh@suse.cz>
2866 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
2867 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
2868 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
2869 lto_varpool_encoder_deref, lto_varpool_encoder_size,
2870 lto_varpool_encoder_encode_initializer_p,
2871 lto_set_varpool_encoder_encode_initializer): New functions.
2872 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
2873 call output_varpool.
2874 (input_varpool_node): Do not always set analyzed.
2875 (input_cgraph_1): Return vector of cgraph nodes.
2876 (input_varpool_1): Return vector of varpools.
2877 (input_cgraph): Free the vectors.
2878 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2879 output only initializers needed.
2880 (lto_output): Only call output_cgraph.
2881 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
2882 * lto-section-out.c (lto_new_out_decl_state): Initialize
2883 state->varpool_node_encoder.
2884 * lto-streamer.h (lto_varpool_encoder_d): New.
2885 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
2886 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
2887 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
2888 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
2889 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
2891 (output_varpool, input_varpool): Remove declarations.
2893 2010-05-05 Jan Hubicka <jh@suse.cz>
2895 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
2896 with body can prevail.
2898 2010-05-05 Jan Hubicka <jh@suse.cz>
2900 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
2903 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2905 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
2907 * gengtype.h (erro_at_line): Constify pos argument.
2909 * gengtype.c: Include hashtab.h.
2910 (enum gc_used): Document GC_MAYBE_POINTED_TO.
2911 (error_at_line): Constify pos argument.
2912 (do_typedef): Initialize p->opt field.
2913 (get_file_gtfilename): Fix comment typo.
2914 (struct walk_type_data): Constify line field.
2915 (get_output_file_for_structure): New function.
2916 (write_local_func_for_structure): Constify orig_s argument.
2917 Use get_output_file_for_structure.
2918 (write_func_for_structure): Use get_output_file_for_structure.
2919 (INDENT): New define.
2920 (dump_pair, dump_type, dump_type_list, dump_typekind)
2921 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
2922 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
2924 (seen_types): New variable.
2925 (main): New variable do_dump. Process "-d" command line option.
2926 Call dump_everything if dump requested.
2928 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2930 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
2931 in a temporary instead of invoking the macro multiple times.
2932 (track_expr_p): Likewise.
2934 2010-05-04 Neil Vachharajani <nvachhar@google.com>
2936 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
2938 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
2939 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
2940 conditions for printing notes.
2941 * common.opt (-Wcoverage-mismatch): Allow negative, default to
2942 true, update documentation.
2943 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
2945 2010-05-04 Jakub Jelinek <jakub@redhat.com>
2948 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
2951 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
2954 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
2955 (*sse_prologue_save_insn1): Likewise.
2956 (SSE prologue save splitter): Likewise.
2958 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
2960 * tree.c (free_lang_data_in_one_sizepos): New inline function.
2961 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
2962 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
2963 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
2964 all decls. Call it on DECL_FIELD_OFFSET of fields.
2965 (find_decls_types_r): Follow DECL_VALUE_EXPR.
2966 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
2968 2010-05-04 Martin Jambor <mjambor@suse.cz>
2970 * tree-sra.c (build_access_from_expr_1): The first parameter type
2971 changed to simple tree.
2972 (build_access_from_expr): Likewise, gsi parameter was eliminated.
2973 (scan_assign_result): Renamed to assignment_mod_result, enum elements
2975 (build_accesses_from_assign): Removed all parameters except for a
2976 simple gimple statement. Now returns a simple bool.
2977 (scan_function): All non-analysis parts moved to separate functions
2978 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
2979 parameters and updated both callers.
2980 (sra_modify_expr): Removed parameter data.
2981 (sra_modify_function_body): New function.
2982 (perform_intra_sra): Call sra_modify_function_body to modify the
2984 (replace_removed_params_ssa_names): Parameter data changed into
2986 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
2987 changed the parameter dont_convert to convert with the opposite
2989 (sra_ipa_modify_assign): Parameter data changed into adjustments
2990 vector, return value changed to bool.
2991 (ipa_sra_modify_function_body): New function.
2992 (sra_ipa_reset_debug_stmts): Updated a comment.
2993 (modify_function): Use ipa_sra_modify_function_body to modify function
2996 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
2999 * alias.c (true_dependence): Handle the same VALUE in x and mem.
3000 (canon_true_dependence): Likewise.
3001 (write_dependence_p): Likewise.
3003 2010-05-04 Jan Hubicka <jh@suse.cz>
3005 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
3006 * cgraphbuild.c: Include ipa-utils.h
3007 (record_reference_ctx): New struct.
3008 (record_reference): Simplify to work on initializers; not statements.
3009 (mark_address, mark_load, mark_store): New.
3010 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3012 (record_references_in_initializer): Update use of record_reference.
3013 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3016 2010-05-04 Jan Hubicka <jh@suse.cz>
3018 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
3019 node will be removed anyway.
3020 (lto_varpool_replace_node): Allow also unanalyzed nodes;
3021 relink aliases of node into prevailing node.
3022 * varpool.c (varpool_remove_node): Remove aliases properly;
3023 when removing node, remove all its aliases too; remove DECL_INITIAL
3024 of removed node; ggc_free the varpool node.
3026 2010-05-04 Richard Guenther <rguenther@suse.de>
3028 PR tree-optimization/43879
3029 * tree-ssa-structalias.c (alias_get_name): Use
3030 DECL_ASSEMBLER_NAME if available.
3031 (create_function_info_for): Return the varinfo node.
3032 (ipa_pta_execute): Associate same-body aliases and extra names
3033 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
3035 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
3037 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
3039 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
3042 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
3043 only if HONOR_REG_ALLOC_ORDER is not defined.
3045 2010-05-04 Richard Guenther <rguenther@suse.de>
3047 PR tree-optimization/43949
3048 * tree-vrp.c (extract_range_from_binary_expr): Only handle
3051 2010-04-26 Jason Merrill <jason@redhat.com>
3053 * c.opt (-fstrict-enums): New.
3054 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
3056 2010-05-03 David Ung <davidu@mips.com>
3057 James E. Wilson <wilson@codesourcery.com>
3059 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
3060 emit the trap instruction before the divide for TUNE_74K.
3062 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
3064 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
3065 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
3066 based on the above, for new target hook.
3068 * hooks.c (hook_bool_mode_true): New generic hook.
3069 * hooks.h (hook_bool_mode_true): Add prototype.
3071 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
3073 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
3074 target hook, set to hook_bool_mode_false.
3075 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
3076 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
3077 with targetm.small_register_classes_for_mode_p.
3078 (find_reusable_reload): Likewise.
3079 (combine_reloads): Likewise.
3080 * reload1.c (reload_as_needed): Likewise.
3081 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
3082 * ifcvt.c (noce_process_if_block, check_cond_move_block,
3083 dead_or_predicable): Likewise.
3084 * regmove.c (optimize_reg_copy_1): Likewise.
3085 * calls.c (prepare_call_address): Likewise.
3086 (precompute_register_parameters): Likewise.
3088 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
3090 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
3091 implementation of the hook that considers all register classes
3092 small except for SH64.
3093 (sh_override_options): Use the new hook.
3094 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
3097 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
3099 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
3100 implementation of the hook that considers all register classes
3102 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
3105 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
3107 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
3108 implementation of the hook that considers all register classes
3110 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
3113 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
3115 * config/m32c/m32c.h: Likewise.
3116 * config/pdp11/pdp11.h: Likewise.
3117 * config/avr/avr.h: Likewise.
3118 * config/xtensa/xtensa.h: Likewise.
3119 * config/m68hc11/m68hc11.h: Likewise.
3120 * config/mn10300/mn10300.h: Likewise.
3121 * config/mcore/mcore.h: Likewise.
3122 * config/h8300/h8300.h: Likewise.
3123 * config/bfin/bfin.h: Likewise.
3125 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
3126 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
3128 2010-05-03 Anatoly Sokolov <aesok@post.ru>
3130 * double-int.h (tree_to_double_int): Remove macro.
3131 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
3132 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3133 (tree_to_double_int): New function.
3134 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
3136 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3138 2010-05-03 Richard Guenther <rguenther@suse.de>
3140 PR tree-optimization/43971
3141 * tree-ssa-structalias.c (get_constraint_for_1): Fix
3142 constraints in the !flag_delete_null_pointer_checks case.
3144 2010-05-03 Jakub Jelinek <jakub@redhat.com>
3147 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
3148 result mode matches original rtl mode.
3150 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
3153 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
3155 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3157 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
3158 when processing flag options.
3160 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3162 * gcov-iov.c (main): Change format string placeholder
3163 from %#08x to 0x%08x.
3164 * genchecksum.c (dosum): Change format string placeholder
3165 from %#02x to 0x%02x.
3167 2010-05-02 Richard Guenther <rguenther@suse.de>
3169 PR tree-optimization/43879
3170 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
3172 2010-05-02 Bruno Haible <bruno@clisp.org>
3174 * doc/extend.texi (Function Attributes): Fix a typo.
3176 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3179 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
3180 placeholder from 0x%x to %#x.
3181 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3182 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3183 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3184 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3185 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3186 * config/i386/i386.c (ix86_target_string): Ditto.
3187 * config/i386/i386.c (output_pic_addr_const): Ditto.
3188 (print_operand): Ditto.
3190 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3192 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
3193 placeholder from 0x%x to %#x.
3194 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
3195 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
3196 (ASM_OUTPUT_DEBUG_DATA): Ditto.
3197 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
3198 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
3199 * optc-gen.awk: Ditto.
3200 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
3201 (HOST_WIDE_INT_PRINT_HEX): Ditto.
3202 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
3203 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3205 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3207 * target.h (struct calls): Add function_value_regno_p field.
3208 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3209 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
3210 * targhooks.c (default_function_value_regno_p): New function.
3211 * targhooks.h (default_function_value_regno_p): Declare function.
3212 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
3213 * builtins.c. (apply_result_size): (Ditto.).
3214 * combine.c. (likely_spilled_retval_p): (Ditto.).
3215 * mode-switching.c. Include 'target.h'.
3216 (create_pre_exit): Use function_value_regno_p hook.
3217 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
3218 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
3219 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
3221 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
3222 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
3223 (ix86_function_value_regno_p): Declare as static, change argument
3224 type to const unsigned int.
3225 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
3227 2010-05-01 Richard Guenther <rguenther@suse.de>
3229 PR tree-optimization/43949
3230 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
3232 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
3234 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3236 * rtl.h (CONST_DOUBLE_P): Define.
3237 (rtx_to_double_int): Declare.
3238 * emit-rtl.c (rtx_to_double_int): New function.
3239 * dwarf2out.c (insert_double): New function.
3240 (loc_descriptor, add_const_value_attribute): Clean up, use
3241 rtx_to_double_int and insert_double functions.
3243 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
3245 * doc/extend.texi (Inline): Add missing return keyword to examples.
3246 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
3249 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
3251 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
3252 the variable part of the offset as well. Use highest_pow2_factor for
3253 all alignment checks.
3255 2010-04-30 Richard Guenther <rguenther@suse.de>
3257 PR tree-optimization/43879
3258 * tree-ssa-structalias.c (type_could_have_pointers): Functions
3261 2010-04-30 Jan Hubicka <jh@suse.cz>
3263 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
3265 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
3267 2010-04-30 Jan Hubicka <jh@suse.cz>
3269 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
3271 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
3272 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
3273 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
3274 cgraph_node_set_needs_ltrans_p): Remove.
3276 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
3278 * sdbout.c: Include vec.h, do not include varray.h.
3279 (deferred_global_decls, sdbout_global_decl,
3280 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
3281 * toplev.c: Do not include varray.h.
3282 (dump_memory_report): Do not dump VARRAY statistics.
3283 * gengtype.c (open_base_file): Ignore varray.h.
3284 * Makefile.in: Update for abovementioned changes.
3285 Remove all traces of varray.c and varray.h.
3286 * varray.c: Remove file.
3287 * varray.h: Remove file.
3289 2010-04-30 Jan Hubicka <jh@suse.cz>
3291 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
3294 2010-04-30 Jan Hubicka <jh@suse.cz>
3296 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
3299 2010-04-30 Richard Guenther <rguenther@suse.de>
3301 * tree-ssa-structalias.c (get_constraint_for_1): Generate
3302 constraints for CONSTRUCTOR.
3304 2010-04-30 Richard Guenther <rguenther@suse.de>
3307 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
3308 first after all lowering passes.
3310 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
3312 * toplev.c: Include varray.h for statistics dumping.
3313 * tree.h: Do not declare varray_head_tag.
3314 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
3315 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
3316 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
3317 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
3318 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
3319 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
3320 c-common.c, c-common.h, reg-stack.c, basic-block.h,
3321 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
3323 * Makefile.in: Update for abovementioned changes.
3325 2010-04-30 Jakub Jelinek <jakub@redhat.com>
3328 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
3330 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
3332 * config/picochip/picochip.c (picochip_legitimize_address): Define.
3333 Use this function to do machine-specific conversion.
3334 (picochip_legitimize_reload_address): Likewise.
3335 (picochip_legitimate_address_p): Check valid base register only if
3337 (picochip_check_conditional_copy): Check for modw only if opnd is
3339 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
3340 to call the function in c.
3341 * config/picochip/picochip-protos.h
3342 (picochip_legitimize_reload_address): Define.
3343 * config/picochip/picochip.md (supported_compare1): Define.
3345 2010-04-30 Jan Hubicka <jh@suse.cz>
3347 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
3348 (cgraph_global_info): Remove inlined.
3349 (LTO_cgraph_tag_names): Remove.
3350 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
3351 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
3352 simplify cgraph tags and document.
3353 (lto_output_node): Use only LTO_cgraph_unavail_node and
3354 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
3355 for_functions_valid, global info, process and output flags.
3356 (input_overwrite_node): Initialize estimated stack size and
3357 estimated growth. Do not read flags we no longer store.
3358 (input_node): Likewise do not read info no longer stored.
3359 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
3362 2010-04-30 Richard Guenther <rguenther@suse.de>
3364 PR tree-optimization/43879
3365 * tree-ssa-structalias.c (get_constraint_for_1): Properly
3366 handle non-zero initializers.
3368 2010-04-30 Richard Guenther <rguenther@suse.de>
3370 * builtins.c (fold_builtin_1): Delete free (0).
3372 2010-04-29 Jan Hubicka <jh@suse.cz>
3374 * gengtype.c (open_base_files): Add lto-streamer.h
3375 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
3376 (pass_ipa_cp): GGC collect.
3377 * toplev. (compile_file): Do not output symbols.
3378 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
3379 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
3380 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
3381 * lto-section-in.c: Include ggc.h
3382 (lto_new_in_decl_state): Alloc in GGC.
3383 (lto_delete_in_decl_state): Likewise.
3384 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
3387 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
3390 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
3391 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
3392 (HONOR_REG_ALLOC_ORDER): Describe new macro.
3393 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
3394 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
3395 account only if HONOR_REG_ALLOC_ORDER is not defined.
3396 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
3397 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
3399 2010-04-29 Jon Grant <04@jguk.org>
3401 * collect2.c (vflag): Change type from int to bool.
3403 (helpflag): New global bool.
3404 (main): Set vflag and debug with boolean, not integer truth values.
3405 Accept new "--help" option and output usage text if found.
3406 * collect2.h (vflag): Update prototype.
3409 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
3412 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
3414 2010-04-29 Richard Guenther <rguenther@suse.de>
3417 * plugin.h (invoke_plugin_callbacks): Annotate arguments
3418 with ATTRIBUTE_UNUSED.
3420 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
3423 * config/i386/i386.c (get_some_local_dynamic_name): Replace
3424 INSN_P with NONDEBUG_INSN_P.
3425 (distance_non_agu_define): Likewise.
3426 (distance_agu_use): Likewise.
3428 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
3430 From Dominique d'Humieres <dominiq@lps.ens.fr>
3432 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
3435 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
3437 * plugin.h (invoke_plugin_callbacks): New inline function.
3438 * plugin.c (flag_plugin_added): New global flag.
3439 (add_new_plugin): Initialize above flag.
3440 (invoke_plugin_callbacks): Rename to ...
3441 (invoke_plugin_callbacks_full): ... this.
3443 2010-04-28 Jan Hubicka <jh@suse.cz>
3445 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
3446 (lto_varpool_replace_node): New.
3447 (lto_symtab_resolve_symbols): Resolve varpool nodes.
3448 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
3449 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
3450 * cgraph.h (varpool_node_ptr): New type.
3451 (varpool_node_ptr): New vector.
3452 (varpool_node_set_def): New structure.
3453 (varpool_node_set): New type.
3454 (varpool_node_set): New vector.
3455 (varpool_node_set_element_def): New structure.
3456 (varpool_node_set_element, const_varpool_node_set_element): New types.
3457 (varpool_node_set_iterator): New type.
3458 (varpool_node): Add prev pointers, add used_from_other_partition,
3460 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
3461 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
3462 varpool_get_node, varpool_remove_node): Declare.
3463 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
3464 varpool_node_set_size): New inlines.
3465 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
3466 * tree-pass.h (varpool_node_set_def): Forward declare.
3467 (ipa_opt_pass_d): Summary writting takes vnode sets too.
3468 (ipa_write_optimization_summaries): Update prototype.
3469 * ipa-cp.c (ipcp_write_summary): Update.
3470 * ipa-reference.c (ipa_reference_write_summary): Update.
3471 * lto-cgraph.c (lto_output_varpool_node): New static function.
3472 (output_varpool): New function.
3473 (input_varpool_node): New static function.
3474 (input_varpool_1): New function.
3475 (input_cgraph): Input varpool.
3476 * ipa-pure-const.c (pure_const_write_summary): Update.
3477 * lto-streamer-out.c (lto_output): Update, output varpool too.
3478 (write_global_stream): Kill WPA hack.
3479 (produce_asm_for_decls): Update.
3480 (output_alias_pair_p): Handle variables.
3481 (output_unreferenced_globals): Output only needed partition of varpool.
3482 * ipa-inline.c (inline_write_summary): Update.
3483 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
3485 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
3486 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
3487 varpool_node_set_new, varpool_node_set_add,
3488 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
3489 debug_varpool_node_set): New functions.
3490 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
3491 (execute_one_pass): Process new decls too.
3492 (ipa_write_summaries_2): Pass around vsets.
3493 (ipa_write_summaries_1): Likewise.
3494 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
3496 (ipa_write_optimization_summaries_1): Pass around vsets.
3497 (ipa_write_optimization_summaries): Likewise.
3498 * varpool.c (varpool_get_node): New.
3499 (varpool_node): Update doubly linked lists.
3500 (varpool_remove_node): New.
3501 (dump_varpool_node): More dumping.
3502 (varpool_enqueue_needed_node): Update doubly linked lists.
3503 (decide_is_variable_needed): Kill ltrans hack.
3504 (varpool_finalize_decl): Kill lto hack.
3505 (varpool_assemble_decl): Skip decls in other partitions.
3506 (varpool_assemble_pending_decls): Update doubly linkes lists.
3507 (varpool_empty_needed_queue): Likewise.
3508 (varpool_extra_name_alias): Likewise.
3509 * lto-streamer.c (lto_get_section_name): Add vars section.
3510 * lto-streamer.h (lto_section_type): Update.
3511 (output_varpool, input_varpool): Declare.
3513 2010-04-28 Mike Stump <mikestump@comcast.net>
3515 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
3517 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3519 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
3520 record or union type with RECORD_OR_UNION_TYPE_P predicate.
3521 (lto_input_ts_type_tree_pointers): Likewise.
3522 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
3523 (lto_output_ts_type_tree_pointers): Likewise.
3525 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3527 Uniquization of constants at the Tree level
3528 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
3529 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
3531 (tree_output_constant_def): Declare.
3532 * gimplify.c (gimplify_init_constructor): When using block copy, first
3533 uniquize the constant constructor on the RHS.
3534 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
3535 DECL_IN_CONSTANT_POOL flag.
3536 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
3537 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
3539 (assemble_variable): Deal with symbols belonging to the tree constant
3541 (get_constant_section): Add ALIGN parameter and simplify.
3542 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
3543 (assemble_constant_contents): Use the expression of the VAR_DECL.
3544 (output_constant_def_contents): Use the alignment of the VAR_DECL.
3545 (tree_output_constant_def): New global function.
3546 (mark_constant): Use the expression of the VAR_DECL.
3547 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
3549 (output_object_block): Likewise and assemble the expression.
3551 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3553 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
3554 hash_tree, eq_tree): New tree hash table.
3555 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
3556 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
3557 lto_orig_address_remove): Reimplement.
3559 2010-04-28 Xinliang David Li <davidxl@google.com>
3562 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
3563 (compute_uninit_opnds_pos): New function.
3564 (is_non_loop_exit_postdominating): New function.
3565 (compute_control_dep_chain): New function.
3566 (find_pdom): New function.
3567 (convert_control_dep_chain_into_preds): New function.
3568 (find_predicates): New function.
3569 (find_control_equiv_block): New function.
3570 (collect_phi_def_edges): New function.
3571 (find_def_preds): New function.
3572 (find_dom): New function.
3573 (dump_predicates): New function.
3574 (get_cmp_code): New function.
3575 (is_value_included_in): New function.
3576 (find_matching_predicate_in_rest_chains): New function.
3577 (use_pred_not_overlap_with_undef_path_pred): New function.
3578 (is_use_properly_guarded): New function.
3579 (normalize_cond_1): New function.
3580 (is_and_or_or): New function.
3581 (normalize_cond): New function.
3582 (is_gcond_subset_of): New function.
3583 (is_subset_of_any): New function.
3584 (is_or_set_subset_of): New function.
3585 (is_and_set_subset_of): New function.
3586 (is_norm_cond_subset_of): New function.
3587 (is_pred_expr_subset_of): New function.
3588 (is_pred_chain_subset_of): New function.
3589 (is_included_in): New function.
3590 (is_superset_of): New function.
3591 (find_uninit_use): New function.
3592 (warn_uninitialized_phi): New function.
3593 (compute_possibly_undefined_names): New function.
3594 (ssa_undefined_value_p): New function.
3595 (execute_late_warn_uninitialized): New function.
3596 * tree-ssa.c (ssa_undefined_value_p): Removed.
3597 (warn_uninit): Changed to extern.
3598 (warn_uninitialized_phi): Removed.
3599 (warn_uninitialized_vars): Changed to extern.
3600 (execute_late_warn_uninitialized): Removed
3601 * tree-flow.h: Add new prototypes.
3602 * timevar.def: Add new time variable.
3603 * Makefile.in: Add new build file.
3605 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
3607 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
3610 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3613 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
3615 2010-04-28 Martin Jambor <mjambor@suse.cz>
3617 * cgraph.h (struct cgraph_node): New field indirect_calls.
3618 (struct cgraph_indirect_call_info): New type.
3619 (struct cgraph_edge): Removed field indirect_call. New fields
3620 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
3621 (cgraph_create_indirect_edge): Declare.
3622 (cgraph_make_edge_direct): Likewise.
3623 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
3624 * ipa-prop.h (struct ipa_param_call_note): Removed.
3625 (struct ipa_node_params): Removed field param_calls.
3626 (ipa_create_all_structures_for_iinln): Declare.
3627 * cgraph.c: Described indirect edges and uids in initial comment.
3628 (cgraph_add_edge_to_call_site_hash): New function.
3629 (cgraph_edge): Search also among the indirect edges, use
3630 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
3631 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
3632 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
3634 (initialize_inline_failed): Assign a reason to indirect edges.
3635 (cgraph_create_edge_1): New function.
3636 (cgraph_create_edge): Moved some functionality to
3637 cgraph_create_edge_1.
3638 (cgraph_create_indirect_edge): New function.
3639 (cgraph_edge_remove_callee): Add an assert checking for
3641 (cgraph_edge_remove_caller): Special-case indirect edges.
3642 (cgraph_remove_edge): Likewise.
3643 (cgraph_set_edge_callee): New function.
3644 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
3645 (cgraph_make_edge_direct): New function.
3646 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
3647 the declaration of the call statement matches.
3648 (cgraph_node_remove_callees): Special-case indirect edges.
3649 (cgraph_clone_edge): Likewise.
3650 (cgraph_clone_node): Clone also the indirect edges.
3651 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
3652 indirect_call, dump count of indirect_calls edges.
3653 * ipa-prop.c (iinlining_processed_edges): New variable.
3654 (ipa_note_param_call): Create indirect edges instead of
3655 creating notes. New parameter node.
3656 (ipa_analyze_call_uses): New parameter node, pass it on to
3657 ipa_note_param_call.
3658 (ipa_analyze_stmt_uses): Likewise.
3659 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
3660 (print_edge_addition_message): Work on edges rather than on notes.
3661 (update_call_notes_after_inlining): Likewise, renamed to
3662 update_indirect_edges_after_inlining.
3663 (ipa_create_all_structures_for_iinln): New function.
3664 (ipa_free_node_params_substructures): Do not free notes.
3665 (ipa_edge_duplication_hook): Propagate bits within
3666 iinlining_processed_edges bitmap.
3667 (ipa_node_duplication_hook): Do not duplicate notes.
3668 (free_all_ipa_structures_after_ipa_cp): Renamed to
3669 ipa_free_all_structures_after_ipa_cp.
3670 (free_all_ipa_structures_after_iinln): Renamed to
3671 ipa_free_all_structures_after_iinln.
3672 (ipa_write_param_call_note): Removed.
3673 (ipa_read_param_call_note): Removed.
3674 (ipa_write_indirect_edge_info): New function.
3675 (ipa_read_indirect_edge_info): Likewise.
3676 (ipa_write_node_info): Do not stream notes, do stream information
3678 (ipa_read_node_info): Likewise.
3679 (lto_ipa_fixup_call_notes): Removed.
3680 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
3681 * ipa-inline.c (pass_ipa_inline): Likewise.
3682 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
3683 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
3684 * tree-inline.c (copy_bb): Removed an unnecessary double check for
3686 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
3688 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
3689 (output_cgraph): Stream also indirect edges.
3690 (lto_output_edge): Added capability to stream indirect edges.
3691 (input_edge): Likewise.
3692 (input_cgraph_1): Likewise.
3693 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
3696 2010-04-28 Richard Guenther <rguenther@suse.de>
3698 PR tree-optimization/43879
3699 PR tree-optimization/43909
3700 * tree-ssa-structalias.c (struct variable_info): Add
3701 only_restrict_pointers flag.
3702 (new_var_info): Initialize it. Increment stats.total_vars here.
3703 (create_function_info_for): Do not increment stats.total_vars here.
3704 (get_function_part_constraint): Fix build with C++.
3705 (insert_into_field_list): Remove.
3706 (push_fields_onto_fieldstack): Properly merge fields.
3707 (create_variable_info_for): Split and simplify.
3708 (create_variable_info_for_1): New piece.
3709 (intra_create_variable_infos): Properly make restrict constraints
3712 2010-04-28 Richard Guenther <rguenther@suse.de>
3715 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
3717 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
3718 Jan Hubicka <hubicka@ucw.cz>
3720 * doc/invoke.texi (-Wsuggest-attribute=const,
3721 -Wsuggest-attribute=pure): Document.
3722 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
3723 (function_always_visible_to_compiler_p,
3724 suggest_attribute, warn_function_pure, warn_function_const):
3726 (check_call): Improve debug info.
3727 (analyze_function): Do not check availability.
3728 (add_new_function): Check availability.
3729 (propagate): Output warnings.
3730 (skip_function_for_local_pure_const): New function.
3731 (local_pure_const): Use it; output warnings.
3732 * common.opt (Wsuggest-attribute=const,
3733 Wsuggest-attribute=pure): New.
3735 2010-04-27 Jakub Jelinek <jakub@redhat.com>
3737 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
3738 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
3739 or DW_CFA_def_cfa_offset{,_sf}.
3741 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
3743 * tree.h: Fix truncated long macros.
3745 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
3747 * collect2.c (TARGET_64BIT): Redefine to target's default.
3748 * tlink.c: Likewise.
3749 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
3750 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
3751 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
3752 for underscoring __USER_LABEL_PREFIX__.
3753 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
3754 (SUB_LINK_ENTRY32): New.
3755 (SUB_LINK_ENTRY64): New.
3756 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
3757 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
3758 (SUB_LINK_ENTRY64): New.
3759 (SUB_LINK_ENTRY): New.
3760 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
3761 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
3762 x64 target is choosen.
3763 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
3764 * configure: Regenerated.
3765 * configure.ac (leading-mingw64-underscores): Option added.
3767 2010-04-27 Jan Hubicka <jh@suse.cz>
3769 * doc/invoke.texi (-fipa-profile): Document.
3770 * opts.c (decode_options): Enable ipa-profile at -O1.
3771 * timevar.def (TV_IPA_PROFILE): Define.
3772 * common.opt (fipa-profile): Add.
3773 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
3775 (cgraph_propagate_frequency): Handle only local ones.
3776 * tree-pass.h (pass_ipa_profile): Declare.
3777 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
3778 (pass_ipa_profile): Use TV_IPA_PROFILE.
3779 * ipa.c (ipa_profile): New function.
3780 (gate_ipa_profile): Likewise.
3781 (pass_ipa_profile): New global variable.
3782 * passes.c (pass_ipa_profile): New.
3784 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
3786 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
3788 2010-04-27 Martin Jambor <mjambor@suse.cz>
3791 * ipa.c (dissolve_same_comdat_group_list): New function.
3792 (function_and_variable_visibility): Call
3793 dissolve_same_comdat_group_list when comdat group contains external or
3795 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
3796 lists are circular and that they contain only DECL_ONE_ONLY nodes.
3798 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
3800 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
3801 (const_hash_1) <VECTOR_CST>: New case.
3802 (compare_constant) <VECTOR_CST>: Likewise.
3803 <ADDR_EXPR>: Deal with LABEL_REFs.
3804 (copy_constant) <VECTOR_CST>: New case.
3806 2010-04-27 Jan Hubicka <jh@suse.cz>
3808 * cgraph.c (cgraph_propagate_frequency): New function.
3809 * cgraph.h (cgraph_propagate_frequency): Declare.
3810 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
3811 cgraph_propagate_frequency.
3813 2010-04-27 Jakub Jelinek <jakub@redhat.com>
3815 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
3817 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
3820 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
3821 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
3822 here to determine which regs to push and how much stack to reserve.
3824 2010-04-27 Jie Zhang <jie@codesourcery.com>
3826 * doc/gimple.texi (gimple_statement_with_ops): Remove
3827 addresses_taken field.
3828 (gimple_statement_with_memory_ops): Likewise.
3830 2010-04-27 Jan Hubicka <jh@suse.cz>
3832 * tree-inline.c (eni_inlining_weights): Remove.
3833 (estimate_num_insns): Special case more builtins.
3835 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
3838 * c-typeck.c (build_binary_op): Move forward check for comparison
3839 pointer with null pointer constant and adjust the diagnostic message.
3841 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
3844 * configure.ac (gcc_cv_as_section_has_align): Set if installed
3845 binutils supports extended .section directive needed by LTO, or
3846 warn if older binutils found.
3847 (LTO_BINARY_READER): New AC_SUBST'd variable.
3848 (LTO_USE_LIBELF): Likewise.
3849 * gcc/config.gcc (lto_binary_reader): New target-specific configure
3851 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
3852 (LTO_USE_LIBELF): Likewise.
3853 * configure: Regenerate.
3855 * collect2.c (is_elf): Rename from this ...
3856 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
3857 object files in addition to ELF-formatted ones.
3858 (scan_prog_file): Caller updated. Also allow for LTO info marker
3859 symbol to be prefixed or not by an extra underscore.
3861 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
3862 * config/i386/winnt.c: Also #include lto-streamer.h
3863 (i386_pe_asm_named_section): Specify 1-byte section alignment for
3865 (i386_pe_asm_output_aligned_decl_common): Add comment.
3866 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
3868 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
3871 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
3872 Add missing earlyclobber for second alternative.
3874 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
3876 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
3877 bits for artificial defs at the top of the block.
3878 * fwprop.c (single_def_use_enter_block): Don't call it.
3880 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
3883 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
3884 instead of "$gcc_cv_objdump -T".
3885 Use "-undefined dynamic_lookup" on darwin.
3886 * gcc/configure: Regenerate.
3888 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3891 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
3893 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3895 * c-parser.c (struct c_token): Move location field up.
3896 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
3897 (struct c_declspecs): Convert typespec_word, storage_class, and
3898 default_int_p into bitfields.
3899 (struct c_declarator): Move loc field up.
3901 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3903 * cfgloop.h (struct loop): Move can_be_parallel field up.
3904 * ipa-prop.h (struct ip_node_params): Move bitfields up.
3905 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
3907 (struct iv_cand): Convert pos field into a bitfield.
3908 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
3910 (struct _stmt_vec_info): Shuffle fields for better packing.
3912 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3914 * varasm.c (IN_NAMED_SECTION): Remove guard.
3915 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
3916 (IN_NAMED_SECTION_P): ...this.
3917 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
3918 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3920 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3922 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
3923 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
3924 of shadowing it. Fix comments.
3926 2010-04-26 Jan Hubicka <jh@suse.cz>
3928 * cgraph.c (cgraph_create_node): Set node frequency to normal.
3929 (cgraph_clone_node): Copy function frequency.
3930 * cgraph.h (node_frequency): New enum
3931 (struct cgraph_node): Add.
3932 * final.c (rest_of_clean_state): Update.
3933 * lto-cgraph.c (lto_output_node): Output node frequency.
3934 (input_overwrite_node): Input node frequency.
3935 * tre-ssa-loop-ivopts (computation_cost): Update.
3936 * lto-streamer-out.c (output_function): Do not output function
3938 * predict.c (maybe_hot_frequency_p): Update and handle functions
3940 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
3942 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
3943 (compute_function_frequency): Set noreturn functions to be executed
3945 (choose_function_section): Update.
3946 * lto-streamer-in.c (input_function): Do not input function frequency.
3947 * function.c (allocate_struct_function): Do not initialize function
3949 * function.h (function_frequency): Remove.
3950 (struct function): Remove function frequency.
3951 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
3952 (try_update): Update.
3953 * tree-inline.c (initialize_cfun): Do not update function frequency.
3954 * passes.c (pass_init_dump_file): Update.
3955 * i386.c (ix86_compute_frame_layout): Update.
3956 (ix86_pad_returns): Update.
3958 2010-04-26 Jie Zhang <jie@codesourcery.com>
3960 PR tree-optimization/43833
3961 * tree-vrp.c (range_int_cst_p): New.
3962 (range_int_cst_singleton_p): New.
3963 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
3964 when both operands are constants. Use range_int_cst_p in
3967 2010-04-26 Jan Hubicka <jh@suse.cz>
3969 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
3971 2010-04-26 Richard Guenther <rguenther@suse.de>
3974 * gimple.c (gimple_decl_printable_name): Deal gracefully
3975 with a NULL DECL_NAME.
3977 2010-04-26 Richard Guenther <rguenther@suse.de>
3980 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
3981 if emitting debug information and it is either a function
3982 or a namespace decl.
3984 2010-04-26 Ira Rosen <irar@il.ibm.com>
3986 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
3987 determine if the statement is vectorizable, and a macro to access it.
3988 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3989 Skip statements that can't be vectorized. If the analysis fails,
3990 mark the statement as unvectorizable if vectorizing basic block.
3991 (vect_compute_data_refs_alignment): Likewise.
3992 (vect_verify_datarefs_alignment): Skip statements marked as
3993 unvectorizable. Add print.
3994 (vect_analyze_group_access): Skip statements that can't be
3995 vectorized. If the analysis fails, mark the statement as
3996 unvectorizable if vectorizing basic block.
3997 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
3998 * tree-vect-stmts.c (vectorizable_store): Fix the number of
3999 generated stmts for SLP.
4000 (new_stmt_vec_info): Initialize the new field.
4001 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4002 statements marked as unvectorizable.
4004 2010-04-25 Joseph Myers <joseph@codesourcery.com>
4006 * c-common.c (flag_isoc1x): New.
4007 (flag_isoc99): Update comment.
4008 * c-common.h (flag_isoc1x): New.
4009 (flag_isoc99): Update comment.
4010 * c-cppbuiltin.c (builtin_define_float_constants): Also define
4011 __<type>_DECIMAL_DIG__.
4012 * c-opts.c (set_std_c1x): New.
4013 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
4014 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
4015 * c.opt (-std=c1x, -std=gnu1x): New options.
4016 * doc/cpp.texi: Mention -std=c1x.
4017 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
4018 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
4019 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
4020 * doc/standards.texi: Mention C1X.
4021 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
4022 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
4023 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4026 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
4028 * config/i386/gmon-sol2.c (_mcleanup): Change format string
4029 placeholder from 0x%x to %#x.
4030 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4031 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4032 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4033 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4034 * config/i386/i386.c (ix86_target_string): Ditto.
4035 (output_pic_addr_const): Ditto.
4036 (print_operand): Ditto.
4038 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
4040 * combine.c (find_split_point): Add third argument. Use it
4041 to find nested multiply-accumulate instructions. Adjust calls.
4042 (try_combine): Adjust call to find_split_point.
4044 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4046 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
4048 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
4050 PR tree-optimization/41442
4051 * fold-const.c (merge_truthop_with_opposite_arm): New function.
4052 (fold_binary_loc): Call it.
4054 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4056 * toplev.c (general_init): Set default for fdiagnostics-show-option.
4057 * opts.c (common_handle_option): Allow disabling it.
4058 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
4060 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
4062 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
4063 between modes if both types are integral.
4065 2010-04-23 Richard Guenther <rguenther@suse.de>
4067 PR tree-optimization/43572
4068 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
4070 2010-04-23 Richard Guenther <rguenther@suse.de>
4073 * tree-inline.c (tree_can_inline_p): Also check compatibility
4076 2010-04-23 Martin Jambor <mjambor@suse.cz>
4078 PR tree-optimization/43846
4079 * tree-sra.c (struct access): New flag grp_assignment_read.
4080 (build_accesses_from_assign): Set grp_assignment_read.
4081 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
4082 (enum mark_read_status): New type.
4083 (analyze_access_subtree): Propagate grp_assignment_read, create
4084 accesses also if both direct_read and root->grp_assignment_read.
4086 2010-04-23 Martin Jambor <mjambor@suse.cz>
4089 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
4090 function does not have type attributes.
4092 2010-04-23 Richard Guenther <rguenther@suse.de>
4095 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
4098 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4100 * sese.h (create_if_region_on_edge): Remove.
4102 * sese.c (create_if_region_on_edge): Make static.
4104 * tree-inline.c: Do not include ggc.h.
4106 * expr.c: Do not include ggc.h.
4108 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
4111 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
4114 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4115 in the middle of insns for casesi_worker_2.
4117 2010-04-22 David Edelsohn <edelsohn@gnu.org>
4119 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
4121 2010-04-22 Ira Rosen <irar@il.ibm.com>
4123 PR tree-optimization/43842
4124 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4125 loop unrolling in update of exit phis. Fix comment.
4126 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
4127 least two reduction statements in the loop before starting SLP
4130 2010-04-22 Nick Clifton <nickc@redhat.com>
4132 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
4134 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
4136 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
4139 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4141 * tree-parloops.c (loop_parallel_p): New argument
4142 parloop_obstack. Pass it down.
4143 (parallelize_loops): New variable parloop_obstack. Initialize it,
4144 pass it down, free it.
4146 * tree-loop-linear.c (linear_transform_loops): Pass down
4149 * tree-data-ref.h (lambda_compute_access_matrices): New argument
4150 of type struct obstack *.
4152 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
4153 scratch_obstack. Initialize it, pass down, free it.
4155 * lambda.h (lambda_loop_new): Remove.
4156 (lambda_matrix_new, lambda_matrix_inverse)
4157 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
4158 argument of type struct obstack *.
4160 * lambda-trans.c (lambda_trans_matrix_new): New argument
4161 lambda_obstack. Pass it down, use obstack allocation for ret.
4162 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
4165 * lambda-mat.c (lambda_matrix_get_column)
4166 (lambda_matrix_project_to_null): Remove.
4167 (lambda_matrix_new): New argument lambda_obstack. Use obstack
4169 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
4172 * lambda-code.c (lambda_loop_new): New function.
4173 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
4174 (lambda_compute_auxillary_space, lambda_compute_target_space)
4175 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
4176 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
4177 (build_access_matrix): New argument lambda_obstack. Use obstack
4179 (lambda_compute_step_signs, lambda_compute_access_matrices): New
4180 argument lambda_obstack. Pass it down.
4182 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4184 * optabs.h (expand_widening_mult): Declare.
4186 2010-04-22 Richard Guenther <rguenther@suse.de>
4188 PR tree-optimization/43845
4189 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
4190 lookup the CALL_EXPR function and arguments.
4192 2010-04-22 Nick Clifton <nickc@redhat.com>
4194 * config/stormy16/stormy16.c
4195 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
4196 * config/stormy16/stormy16.h: Tidy up formatting.
4197 (DONT_USE_BUILTIN_SETJMP): Remove definition.
4198 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
4199 (ineqbranchsi): Delete pattern.
4200 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
4201 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
4202 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4203 stormy16-lib2-ucmpsi2.c.
4205 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4207 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
4208 df_simulate_find_noclobber_defs as appropriate. Keep track of an
4209 extra set merge_set_noclobber, and use it to relax the final test
4211 * df.h (df_simulate_find_noclobber_defs): Declare.
4212 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
4214 (df_simulate_find_noclobber_defs): New function.
4216 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
4218 * config/i386/i386.md: Use {} around multi-line preparation statements.
4220 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4222 * c-tree.h (push_init_level, pop_init_level, set_init_index)
4223 (process_init_element): New argument of type struct obstack *.
4225 * c-typeck.c (push_init_level, pop_init_level, set_designator)
4226 (set_init_index, set_init_label, set_nonincremental_init)
4227 (set_nonincremental_init_from_string, find_init_member)
4228 (output_init_element, output_pending_init_elements)
4229 (process_init_element): New argument braced_init_obstack. Pass it
4231 (push_range_stack, add_pending_init): New argument
4232 braced_init_obstack. Use obstack allocation.
4234 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
4235 braced_init_obstack. Pass it down.
4236 (c_parser_braced_init): New variables ret, braced_init_obstack.
4237 Initialize obstack, pass it down and finally free it.
4239 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4242 * tree-pass.h (pass_optimize_widening_mul): Declare.
4243 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
4244 gate_optimize_widening_mul): New static functions.
4245 (pass_optimize_widening_mul): New.
4246 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
4247 <case MULT_EXPR>: Remove support for widening multiplies.
4248 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
4249 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
4250 simplify_gen_unary rather than directly building extensions.
4251 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
4253 * expmed.c (expand_widening_mult): New function.
4254 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
4256 2010-04-21 Jan Hubicka <jh@suse.cz>
4258 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
4259 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
4260 * lto-wpa-fixup.c: Remove.
4261 * Makefile.in (lto-wpa-fixup.o): Remove.
4262 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
4263 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
4264 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
4266 2010-04-21 Jan Hubicka <jh@suse.cz>
4268 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
4269 add write_optimization_summary, read_optimization_summary.
4270 (ipa_write_summaries_of_cgraph_node_set): Remove.
4271 (ipa_write_optimization_summaries): Declare.
4272 (ipa_read_optimization_summaries): Declare.
4273 * ipa-cp.c (pass_ipa_cp): Update.
4274 * ipa-reference.c (pass_ipa_reference): Update.
4275 * ipa-pure-const.c (pass_ipa_pure_const): Update.
4276 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
4278 * ipa-inline.c (pass_ipa_inline): Update.
4279 * ipa.c (pass_ipa_whole_program): Update.
4280 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
4281 * passes.c (ipa_write_summaries_1): Do not test wpa.
4282 (ipa_write_optimization_summaries_1): New.
4283 (ipa_write_optimization_summaries): New.
4284 (ipa_read_summaries): Do not test ltrans.
4285 (ipa_read_optimization_summaries_1): New.
4286 (ipa_read_optimization_summaries): New.
4288 2010-04-21 Jan Hubicka <jh@suse.cz>
4290 * lto-cgraph.c (lto_output_node): Do not output comdat groups
4292 (output_cgraph): Do not arrange comdat groups for boundary nodes.
4294 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4297 * dwarf2out.c (add_name_and_src_coords_attributes): Add
4298 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
4300 2010-04-21 Jan Hubicka <jh@suse.cz>
4302 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
4304 2010-04-21 Jan Hubicka <jh@suse.cz>
4306 * varpool.c (decide_is_variable_needed): Variable is always needed
4309 2010-04-21 Jan Hubicka <jh@suse.cz>
4311 * opts.c (decode_options): Enable pure-const pass for whopr.
4313 2010-04-21 Jan Hubicka <jh@suse.cz>
4315 * cgraph.c (dump_cgraph_node): Dump also assembler name.
4316 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
4318 (cgraph_decide_inlining): Do not expect callee to be removed in all
4321 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
4323 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
4325 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
4327 * config/i386/i386.md (x86_shrd): Add athlon_decode and
4328 amdfam10_decode attributes.
4330 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4333 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
4334 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
4335 (lower_copyprivate_clauses): Use private var in outer
4336 context instead of original var. Make sure the types
4337 are correct for VLAs.
4339 2010-04-21 Richard Guenther <rguenther@suse.de>
4341 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
4342 to non-pointer objects.
4344 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4346 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
4347 last chain entry if it starts with the still current label.
4348 (add_location_or_const_value_attribute): Check that
4349 loc_list->first->next is NULL instead of comparing ->first with ->last.
4350 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
4351 to add_var_loc_to_decl.
4353 * dwarf2out.c (output_call_frame_info): For dw_cie_version
4354 >= 4 add also address size and segment size fields into CIE header.
4356 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
4357 long as address size is the same as sizeof (void *) and
4359 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
4360 address size or segment size is unexpected, return DW_EH_PE_omit.
4361 (classify_object_over_fdes): If get_cie_encoding returned
4362 DW_EH_PE_omit, return -1.
4363 (init_object): If classify_object_over_fdes returned -1,
4364 pretend there were no FDEs at all.
4366 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
4368 * config/i386/i386.md (bswap<mode>2): Macroize expander from
4369 bswap{si,di}2 using SWI48 mode iterator.
4370 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
4371 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
4372 set modrm attribute of bswap insn to 0 and remove length attribute.
4373 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
4374 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
4375 set mode attribute to <MODE> and remove length attribute.
4377 2010-04-20 James E. Wilson <wilson@codesourcery.com>
4379 PR rtl-optimization/43520
4380 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
4381 zero available registers.
4383 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4385 * builtins.c (fold_builtin_cproj): Fold more cases.
4387 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4389 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
4390 (fold_builtin_1): Fold builtin cproj.
4391 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
4392 Use ATTR_CONST_NOTHROW_LIST.
4394 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
4396 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
4397 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
4398 ffsi2_no_cmove for !TARGET_CMOVE.
4399 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
4400 (ffssi2): Remove expander.
4401 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
4403 (ctz<mode>2): Ditto from ctz{si,di}2.
4404 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
4406 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
4409 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4411 * dwarf2out.c (AT_linkage_name): Define.
4412 (clone_as_declaration): Handle DW_AT_linkage_name.
4413 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
4414 of DW_AT_MIPS_linkage_name.
4415 (move_linkage_attr): Likewise.
4416 (dwarf2out_finish): Likewise.
4418 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
4421 * fold-const.c (fold_comparison): New folding rule.
4423 2010-04-20 Anatoly Sokolov <aesok@post.ru>
4425 * double-int.h (double_int_setbit): Declare.
4426 * double-int.c (double_int_setbit): New function.
4427 * rtl.h (immed_double_int_const): Declare.
4428 * emit-rtl.c (immed_double_int_const): New function.
4429 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
4430 and immed_double_int_const functions.
4431 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
4432 expand_copysign_bit): (Ditto.).
4433 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
4434 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
4435 * dojump.c (prefer_and_bit_test): (Ditto.).
4436 * expr.c (convert_modes, reduce_to_bit_field_precision,
4437 const_vector_from_tree): (Ditto.).
4438 * expmed.c (mask_rtx, lshift_value): (Ditto.).
4440 2010-04-20 Jan Hubicka <jh@suse.cz>
4442 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
4443 (dump_cgraph_node): Dump new flags.
4444 * cgraph.h (struct cgraph_node): Add flags
4445 reachable_from_other_partition and in_other_partition.
4446 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
4447 other partition can not be removed.
4448 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
4449 the other partition must be output; silence sanity checking on
4450 leaking functions bodies from other paritition.
4451 * lto-cgraph.c (reachable_from_other_partition_p): New function.
4452 (lto_output_node): Output new flags; do not sanity check that inline
4453 clones are output; drop lto_forced_extern_inline_p code; do not mock
4454 visibility flags at partition boundaries.
4455 (add_node_to): New function.
4456 (output_cgraph): Use it to sort functions so masters appear before
4458 (input_overwrite_node): Input new flags.
4459 * passes.c (ipa_write_summaries): Do not call
4460 lto_new_extern_inline_states.
4461 * lto-section-out.c (forced_extern_inline,
4462 lto_new_extern_inline_states lto_delete_extern_inline_states,
4463 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
4464 * lto-streamer.h (lto_new_extern_inline_states,
4465 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
4466 lto_forced_extern_inline_p): Kill.
4468 2010-04-20 Richard Guenther <rguenther@suse.de>
4470 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
4471 from vars that can have pointers.
4472 (process_constraint): Dump useless constraints.
4474 2010-04-20 Richard Guenther <rguenther@suse.de>
4476 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
4477 (dump_sa_points_to_info): Remove asserts.
4478 (init_base_vars): nothing_id isn't an escape point nor does it
4481 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4483 * tree.h (TYPE_REF_IS_RVALUE): Define.
4484 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
4485 should_move_die_to_comdat, prune_unused_types_walk): Handle
4486 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
4487 (modified_type_die, gen_reference_type_die): Emit
4488 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
4489 if TYPE_REF_IS_RVALUE and -gdwarf-4.
4491 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4494 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
4495 calls for -fpic -m31 if they have been sibcall optimized.
4497 2010-04-19 James E. Wilson <wilson@codesourcery.com>
4499 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
4500 ar.lc fixed and call-used.
4502 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
4504 2010-04-19 Jan Hubicka <jh@suse.cz>
4506 * opts.c (decode_options): Disable whpr incompatible passes.
4507 * lto/lto.c (lto_1_to_1_map): Skip clones.
4508 (read_cgraph_and_symbols): Do not mark everything as needed.
4509 (do_whole_program_analysis): Do map only after optimizing;
4510 set proper cgraph_state; use passmanager.
4512 2010-04-19 DJ Delorie <dj@redhat.com>
4514 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
4515 POINTER_PLUS_EXPR and fix them.
4517 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
4519 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
4520 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
4521 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
4522 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
4523 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
4524 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
4525 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
4526 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
4527 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
4528 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
4529 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
4531 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
4533 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
4534 (check_cond_move_block): Likewise.
4535 (cond_move_process_if_block): Likewise.
4536 (noce_find_if_block): Improve formatting.
4537 (find_if_header): Pass 0 to memset and tweak conditions.
4538 (cond_exec_find_if_block): Fix long lines and tweak conditions.
4540 2010-04-19 Jakub Jelinek <jakub@redhat.com>
4542 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
4546 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
4547 with non-local decl doesn't need chain.
4549 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
4551 * ira-color.c (allocno_reload_assign): Avoid accumulating
4552 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
4554 2010-04-19 Martin Jambor <mjambor@suse.cz>
4556 * gimple.h (create_tmp_reg): Declare.
4557 * gimplify.c (create_tmp_reg): New function.
4558 (gimplify_return_expr): Use create_tmp_reg.
4559 (gimplify_omp_atomic): Likewise.
4560 (gimple_regimplify_operands): Likewise.
4561 * tree-dfa.c (make_rename_temp): Likewise.
4562 * tree-predcom.c (predcom_tmp_var): Likewise.
4563 (reassociate_to_the_same_stmt): Likewise.
4564 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
4565 (get_replaced_param_substitute): Likewise.
4566 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4567 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
4568 * tree-ssa-pre.c (get_representative_for): Likewise.
4569 (create_expression_by_pieces): Likewise.
4570 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
4571 (create_tailcall_accumulator): Likewise.
4573 2010-04-19 Martin Jambor <mjambor@suse.cz>
4575 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
4577 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
4579 2010-04-19 Richard Guenther <rguenther@suse.de>
4581 PR tree-optimization/43796
4582 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
4583 from SCEV in the lattice.
4584 (vrp_visit_phi_node): Dump change.
4586 2010-04-19 Richard Guenther <rguenther@suse.de>
4588 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
4589 * configure: Re-generated.
4591 2010-04-19 Richard Guenther <rguenther@suse.de>
4593 PR tree-optimization/43783
4594 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
4595 constant ARRAY_REF operands two and three if possible.
4597 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
4600 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
4602 2010-04-19 Jie Zhang <jie@codesourcery.com>
4605 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
4607 2010-04-19 Ira Rosen <irar@il.ibm.com>
4609 PR tree-optimization/37027
4610 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
4611 and macro to access it.
4612 (vectorizable_reduction): Add argument.
4613 (vect_get_slp_defs): Likewise.
4614 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
4615 statements for possible use in SLP.
4616 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
4617 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
4618 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
4620 (vectorizable_reduction): Likewise.
4621 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
4623 (vectorizable_type_demotion, vectorizable_type_promotion,
4624 vectorizable_store): Likewise.
4625 (vect_analyze_stmt): Update call to vectorizable_reduction.
4626 (vect_transform_stmt): Likewise.
4627 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
4628 (vect_build_slp_tree): Fix indentation. Check that there are no loads
4629 from different interleaving chains in same node.
4630 (vect_slp_rearrange_stmts): New function.
4631 (vect_supported_load_permutation_p): Allow load permutations for
4632 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
4633 inside SLP nodes if necessary.
4634 (vect_analyze_slp_instance): Handle reductions.
4635 (vect_analyze_slp): Try to build SLP instances originating from groups
4637 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
4638 (vect_get_constant_vectors): Create initial vectors for reductions
4639 according to reduction code. Add new argument.
4640 (vect_get_slp_defs): Add new argument, pass it to
4641 vect_get_constant_vectors.
4642 (vect_schedule_slp_instance): Remove SLP tree root statements.
4644 2010-04-19 Jakub Jelinek <jakub@redhat.com>
4646 * tree.h (ENUM_IS_SCOPED): Define.
4647 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
4648 for ENUM_IS_SCOPED enums.
4650 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
4652 * fold-const.c (fold_comparison): Use ssizetype.
4653 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4654 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
4655 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
4656 * tree-object-size.c (compute_object_sizes): Use size_type_node.
4658 * tree.h (initialize_sizetypes): Remove parameter.
4659 (build_common_tree_nodes): Remove second parameter.
4660 * stor-layout.c (initialize_sizetypes): Remove parameter.
4661 Always create an unsigned type.
4662 (set_sizetype): Assert that the passed type is unsigned and simplify.
4663 * tree.c (build_common_tree_nodes): Remove second parameter.
4664 Adjust call to initialize_sizetypes.
4665 * c-decl.c (c_init_decl_processing): Remove second argument in call to
4666 build_common_tree_nodes.
4668 2010-04-18 Matthias Klose <doko@ubuntu.com>
4670 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
4672 2010-04-18 Ira Rosen <irar@il.ibm.com>
4674 PR tree-optimization/43771
4675 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
4676 load permutation doesn't have gaps.
4678 2010-04-18 Jan Hubicka <jh@suse.cz>
4680 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
4681 (sse_prologue_save_insn expander): Use new pattern.
4682 (sse_prologue_save_insn1): New pattern and splitter.
4683 (sse_prologue_save_insn): Update to deal also with 64bit aligned
4685 * i386.c (setup_incoming_varargs_64): Do not compute jump
4687 (ix86_gimplify_va_arg): Update alignment needed.
4688 (ix86_local_alignment): Do not align all local arrays to 128bit.
4690 2010-04-17 Jan Hubicka <jh@suse.cz>
4692 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
4694 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4696 * arm.md (negdi2): Remove redundant code to force values into a
4699 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4701 * arm/bpabi.S: Add EABI alignment attributes to objects.
4702 * arm/bpabi-v6m.S: Likewise.
4703 * arm/crti.asm: Likewise.
4704 * arm/crtn.asm: Likewise.
4705 * arm/lib1funcs.asm: Likewise.
4706 * arm/libunwind.S: Likewise.
4708 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4710 * arm-protos.h (tune_params): New structure.
4711 * arm.c (current_tune): New variable.
4712 (arm_constant_limit): Delete.
4713 (struct processors): Add pointer to the tune parameters.
4714 (arm_slowmul_tune): New tuning option.
4715 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
4716 (all_cores): Adjust to pick up the tuning model.
4717 (arm_constant_limit): New function.
4718 (arm_override_options): Select the appropriate tuning model. Delete
4719 initialization of arm_const_limit.
4720 (arm_split_constant): Use the new constant-limit model.
4721 (arm_rtx_costs): Pick up the current tuning model.
4722 * arm.md (is_strongarm, is_xscale): Delete.
4723 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
4724 for Xscale variant architectures.
4725 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
4727 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4729 * config/arm/arm.c (arm_gen_constant): Remove unused variable
4731 (arm_rtx_costs_1): Remove unused variable extra_cost.
4732 (arm_unwind_emit_set): Use variable offset.
4733 (thumb1_output_casesi): Remove unused variable flags.
4735 2010-04-16 Jeff Law <law@redhat.com>
4737 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
4738 needing assignment rather than doing a two-phase assignment. Remove
4739 unused variable 'm'.
4741 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4744 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
4746 2010-04-16 Doug Kwan <dougkwan@google.com>
4748 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
4749 (next_operand_entry_id): New static variable.
4750 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
4751 (add_to_ops_vec): Assigned unique ID to operand entry.
4752 (struct oecount_s): New field ID.
4753 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
4754 (undistribute_ops_list): Assign unique IDs to oecounts.
4755 (init_reassoc): reset next_operand_entry_id.
4757 2010-04-16 Doug Kwan <dougkwan@google.com>
4759 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
4760 missing left parenthesis.
4762 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
4764 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
4765 *btdi_rex64 using SWI48 mode iterator.
4766 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
4767 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
4768 *jcc_btdi_mask_rex64.
4770 2010-04-16 Anatoly Sokolov <aesok@post.ru>
4772 * double-int.h (tree_to_double_int): Convert to macro.
4773 * double-int.c (tree_to_double_int): Remove.
4775 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4778 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
4779 with want_address 2 and in case a single element list might be
4780 possible, call it again with want_address 0.
4782 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4784 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
4785 case 'W' print operands for HI mode.
4786 * config/h8300/h8300.h (Y0, Y2) : New constraints.
4787 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
4788 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
4789 * config/h8300/predicate.md (bit_register_indirect_operand): New.
4791 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
4793 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
4794 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
4795 #xx:3 and #xx:4 mode.
4797 * config/h8300/h8300.md (inverted load with HImode dest): Add
4798 support for H8300SX.
4800 * config/h8300/predicate.md (bit_operand): Allow immediate values that
4801 satisfy 'U' constraint.
4803 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4805 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
4806 * configure: Regenerate.
4807 * config.in: Regenerate.
4808 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
4811 2010-04-16 Richard Guenther <rguenther@suse.de>
4813 * tree.h (struct tree_decl_minimal): Move pt_uid ...
4814 (struct tree_decl_common): ... here.
4815 (DECL_PT_UID): Adjust.
4816 (SET_DECL_PT_UID): Likewise.
4817 (DECL_PT_UID_SET_P): Likewise.
4819 2010-04-16 Richard Guenther <rguenther@suse.de>
4821 PR tree-optimization/43572
4822 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
4823 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
4824 * tree-flow.h (is_call_clobbered): Remove.
4825 * tree-flow-inline.h (is_call_clobbered): Likewise.
4826 * tree-dfa.c (dump_variable): Do not dump call clobber state.
4827 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
4828 (execute_return_slot_opt): Adjust.
4829 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
4830 check for call clobbered vars here.
4831 (find_tail_calls): Move tailcall verification to the
4834 2010-04-16 Diego Novillo <dnovillo@google.com>
4836 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
4838 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4841 * config/arm/arm.md (cbranchqi4): New pattern.
4842 * config/arm/predicates.md (const0_operand,
4843 cbranchqi4_comparison_operator): New predicates.
4845 2010-04-16 Richard Guenther <rguenther@suse.de>
4847 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
4848 (dump_gimple_stmt): Likewise.
4850 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4852 * recog.h (struct recog_data): New field is_operator.
4853 (struct insn_operand_data): New field is_operator.
4854 * recog.c (extract_insn): Set recog_data.is_operator.
4855 * genoutput.c (output_operand_data): Emit code to set the
4857 * reload.c (find_reloads): Use it rather than testing for an
4858 empty constraint string.
4861 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
4862 If the previous insn is a cbranchsi4_insn with the same arguments,
4863 omit the compare instruction.
4865 * config/arm/arm.md (addsi3_cbranch): If destination is a high
4866 register, inputs must be low registers and we need a low register
4867 scratch. Handle alternative 2 like alternative 3.
4869 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4871 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
4872 don't call get_addr on both. If one expression is a VALUE and
4873 the other a REG, check VALUE's locs if the REG isn't among them.
4875 2010-04-16 Christian Bruel <christian.bruel@st.com>
4877 * config/sh/sh.h (sh_frame_pointer_required): New function.
4878 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
4879 (flag_omit_frame_pointer) Set.
4880 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
4881 (rounded_frame_size): Adjust size with outgoing_args_size.
4882 (sh_set_return_address): Must return from stack pointer.
4883 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
4884 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
4885 (ACCUMULATE_OUTGOING_ARGS): Define.
4886 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
4887 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
4889 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
4892 * config/sh/sh.c (sh_legitimize_reload_address): Use
4893 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
4894 Remove a unneeded check for offset_base.
4896 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
4898 * configure: Regenerated.
4900 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4902 * config/s390/s390.c (s390_call_save_register_used): Switch back
4903 to HARD_REGNO_NREGS.
4905 2010-04-15 Richard Guenther <rguenther@suse.de>
4907 * alias.c (alias_set_subset_of): Handle alias-set zero
4910 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
4911 Julian Brown <julian@codesourcery.com>
4913 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
4914 alternatives according to use of high and low regs.
4915 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4916 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
4917 optimizing for size on Thumb-2.
4919 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
4921 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
4923 2010-04-15 Richard Guenther <rguenther@suse.de>
4925 * tree-ssa-structalias.c (struct variable_info): Add
4927 (new_var_info): Initialize it.
4928 (dump_constraints): Support printing last added constraints.
4929 (debug_constraints): Adjust.
4930 (dump_constraint_graph): Likewise.
4931 (make_heapvar_for): Check for NULL cfun.
4932 (get_function_part_constraint): New function.
4933 (get_fi_for_callee): Likewise.
4934 (find_func_aliases): Properly implement IPA PTA constraints.
4935 (process_ipa_clobber): New function.
4936 (find_func_clobbers): Likewise.
4937 (insert_into_field_list_sorted): Remove.
4938 (create_function_info_for): Properly allocate vars for IPA mode.
4939 Do not use insert_into_field_list_sorted.
4940 (create_variable_info_for): Properly generate constraints for
4941 global vars in IPA mode.
4942 (dump_solution_for_var): Always dump the solution.
4943 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
4944 (find_what_var_points_to): Adjust.
4945 (pt_solution_set): Change.
4946 (pt_solution_ior_into): New function.
4947 (pt_solution_empty_p): Export.
4948 (pt_solution_includes_global): Adjust.
4949 (pt_solution_includes_1): Likewise.
4950 (pt_solutions_intersect_1): Likewise.
4951 (dump_sa_points_to_info): Check some invariants.
4952 (solve_constraints): Move constraint dumping ...
4953 (compute_points_to_sets): ... here.
4954 (ipa_pta_execute): ... and here.
4955 (compute_may_aliases): Do not re-compute points-to info
4956 locally if IPA info is available.
4957 (ipa_escaped_pt): New global var.
4958 (ipa_pta_execute): Properly implement IPA PTA.
4959 * tree-into-ssa.c (dump_decl_set): Support dumping
4960 decls not in referenced-vars.
4961 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
4962 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
4963 (dump_points_to_solution): Likewise.
4964 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
4965 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
4966 (remap_gimple_stmt): Reset call clobber/use information if necessary.
4967 (copy_decl_to_var): Copy DECL_PT_UID.
4968 (copy_result_decl_to_var): Likewise.
4969 * tree.c (make_node_stat): Initialize DECL_PT_UID.
4970 (copy_node_stat): Copy it.
4971 * tree.h (DECL_PT_UID): New macro.
4972 (SET_DECL_PT_UID): Likewise.
4973 (DECL_PT_UID_SET_P): Likewise.
4974 (struct tree_decl_minimal): Add pt_uid member.
4975 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
4976 (pt_solution_empty_p): Declare.
4977 (pt_solution_set): Adjust.
4978 (ipa_escaped_pt): Declare.
4979 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4980 * gimple-pretty-print.c (pp_points_to_solution): New function.
4981 (dump_gimple_call): Dump call clobber/use information.
4982 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
4983 * tree-pass.h (TDF_ALIAS): New dump option.
4984 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
4985 * doc/invoke.texi (-fipa-pta): Update documentation.
4987 2010-04-15 Richard Guenther <rguenther@suse.de>
4989 * Makefile.in (OBJS-common): Add gimple-fold.o.
4990 (gimple-fold.o): New rule.
4991 * tree.h (maybe_fold_offset_to_reference,
4992 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
4994 * gimple.h: ... here.
4995 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
4996 may_propagate_address_into_dereference): Move prototypes ...
4997 * gimple.h: ... here.
4998 * tree-ssa-ccp.c (get_symbol_constant_value,
4999 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5000 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5001 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5002 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5003 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
5004 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
5005 gimplify_and_update_call_from_tree): Move ...
5006 * gimple-fold.c: ... here. New file.
5007 (ccp_fold_builtin): Rename to ...
5008 (gimple_fold_builtin): ... this.
5009 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
5011 2010-04-15 Richard Guenther <rguenther@suse.de>
5013 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
5014 fit_double_type, force_fit_type_double, add_double_with_sign,
5015 neg_double, mul_double_with_sign, lshift_double, rshift_double,
5016 lrotate_double, rrotate_double, div_and_round_double): Move ...
5017 * double-int.c: ... here.
5018 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
5019 add_double, neg_double, mul_double_with_sign, mul_double,
5020 lshift_double, rshift_double, lrotate_double, rrotate_double,
5021 div_and_round_double): Move prototypes ...
5022 * double-int.h: ... here.
5024 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
5027 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
5028 matching constraints to ensure inputs match the output.
5030 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5033 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
5034 in an input-only operand.
5036 2010-04-15 Anatoly Sokolov <aesok@post.ru>
5038 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
5039 (double_int_not, double_int_lshift, double_int_rshift): Declare.
5040 (double_int_negative_p): Convert to static inline function.
5041 * double-int.c (double_int_lshift, double_int_lshift): New functions.
5042 (double_int_negative_p): Remove.
5043 * tree.h (lshift_double, rshift_double):
5044 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
5045 * fold-const.c (fold_convert_const_int_from_real,
5046 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
5047 (lshift_double): Change type of arith argument to bool.
5048 (rshift_double): Change type of arith argument to bool. Correct
5050 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5052 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
5055 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
5056 at the start and end of the then/else blocks, and omit them from the
5058 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
5059 argument; all callers changed. Pass zero to old_insns_match_p instead.
5060 (flow_find_head_matching_sequence): New function.
5061 (old_insns_match_p): Check REG_EH_REGION notes for calls.
5062 * basic-block.h (flow_find_cross_jump,
5063 flow_find_head_matching_sequence): Declare functions.
5065 2010-04-14 Jason Merrill <jason@redhat.com>
5068 * c-common.c (attribute_takes_identifier_p): New fn.
5069 * c-common.h: Declare it.
5071 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5073 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
5075 (*udivmod<mode>4): Ditto.
5077 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5079 * config/i386/i386.md (maxmin_int): Rename code attribute from
5080 maxminiprefix and update all users.
5081 (maxmin_float): Ditto from maxminfprefix.
5082 (logic): Ditto from logicprefix.
5083 (absneg_mnemonic): Ditto from absnegprefix.
5084 * config/i386/mmx.md: Update all users of maxminiprefix,
5085 maxminfprefix and logicprefix for rename.
5086 * config/i386/sse.md: Ditto.
5087 * config/i386/sync.md (sync_<code><mode>): Update for
5090 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5093 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
5094 warnings converted to errors.
5096 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5098 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
5099 used insn_type variable.
5100 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
5101 to avoid set-but-not-used warning.
5103 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5105 * df-core.c (df_ref_debug): Change format string placeholder
5107 * dwarf2asm.c (dw2_asm_output_data_raw,
5108 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
5109 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
5110 * dwarf2out.c (output_cfi, output_cfi_directive,
5111 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
5112 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
5114 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
5115 * print-rtl.c (print_rtx): Ditto.
5117 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5120 * builtins.c (expand_builtin_pow_root): New function to expand pow
5121 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
5122 series of sqrt and cbrt calls under -ffast-math.
5123 (expand_builtin_pow): Call it.
5125 2010-04-14 Michael Matz <matz@suse.de>
5127 PR tree-optimization/42963
5128 * tree-cfg.c (touched_switch_bbs): New static variable.
5129 (group_case_labels_stmt): New function broken out from ...
5130 (group_case_labels): ... here, use the above.
5131 (start_recording_case_labels): Allocate touched_switch_bbs.
5132 (end_recording_case_labels): Deallocate it, call
5133 group_case_labels_stmt.
5134 (gimple_redirect_edge_and_branch): Remember index of affected BB.
5136 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5138 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
5141 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5143 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
5145 2010-04-13 Jan Hubicka <jh@suse.cz>
5147 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
5148 of optimized out static functions.
5149 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
5150 cost computation. Also sanity check for overflows.
5151 (update_caller_keys): Update cgraph_edge_badness call; properly
5152 update fibheap and sanity check that it is up to date.
5153 (add_new_edges_to_heap): Update cgraph_edge_badness.
5154 (cgraph_decide_inlining_of_small_function): Likewise;
5155 add sanity checking that badness in heap is up to date;
5156 improve dumping of reason; Update badness of calls to the
5157 offline copy of function currently inlined; dump badness
5158 of functions not inlined because of unit growth limits.
5160 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5163 * c-common.c (pointer_int_sum): Disregard overflow that occured only
5164 because of sign-extension change when converting to sizetype here...
5165 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
5167 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
5168 the folding to constants. Remove redundant final conversion.
5169 (fold_binary) <associate>: Do not associate if the re-association of
5170 constants alone overflows.
5171 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
5172 to the end of the list.
5173 (multiple_of_p) <COND_EXPR>: New case.
5175 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5177 * opt-functions.awk (opt_sanitized_name): New.
5179 * optc-gen.awk: Use it
5180 * opth-gen.awk: Use it.
5182 2010-04-13 Martin Jambor <mjambor@suse.cz>
5184 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
5185 (sra_modify_assign): Delete stmts loading dead data even if racc has no
5186 children. Call replace_uses_with_default_def_ssa_name to handle
5189 2010-04-13 Michael Matz <matz@suse.de>
5192 * builtins.c (expand_builtin_interclass_mathfn): Also create
5193 a register if the predicate doesn't match.
5195 2010-04-13 Diego Novillo <dnovillo@google.com>
5197 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
5198 * c-pch.c: Include timevar.h.
5199 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
5200 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
5201 * ggc-common.c: Include timevar.h.
5202 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
5203 * timevar.def (TV_PCH_SAVE): Define.
5204 (TV_PCH_CPP_SAVE): Define.
5205 (TV_PCH_PTR_REALLOC): Define.
5206 (TV_PCH_PTR_SORT): Define.
5207 (TV_PCH_RESTORE): Define.
5208 (TV_PCH_CPP_RESTORE): Define.
5210 2010-04-13 Michael Matz <matz@suse.de>
5212 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
5214 (can_reassociate_p): New function.
5215 (break_up_subtract_bb, reassociate_bb): Use it.
5217 2010-04-13 Richard Guenther <rguenther@suse.de>
5220 * builtins.c (c_readstr): Fix assert.
5222 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
5224 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
5225 when generating cltd insn.
5227 (*ashl<mode>3_1): Remove special handling for register operand 2.
5228 (*ashlsi3_1_zext): Ditto.
5229 (*ashlhi3_1): Ditto.
5230 (*ashlhi3_1_lea): Ditto.
5231 (*ashlqi3_1): Ditto.
5232 (*ashlqi3_1_lea): Ditto.
5233 (*<shiftrt_insn><mode>3_1): Ditto.
5234 (*<shiftrt_insn>si3_1_zext): Ditto.
5235 (*<shiftrt_insn>qi3_1_slp): Ditto.
5236 (*<rotate_insn><mode>3_1): Ditto.
5237 (*<rotate_insn>si3_1_zext): Ditto.
5238 (*<rotate_insn>qi3_1_slp): Ditto.
5240 2010-04-13 Richard Guenther <rguenther@suse.de>
5242 * tree-ssa-structalias.c (callused_id): Remove.
5243 (call_stmt_vars): New.
5244 (get_call_vi): Likewise.
5245 (lookup_call_use_vi): Likewise.
5246 (lookup_call_clobber_vi): Likewise.
5247 (get_call_use_vi): Likewise.
5248 (get_call_clobber_vi): Likewise.
5249 (make_transitive_closure_constraints): Likewise.
5250 (handle_const_call): Adjust to do per-call call-used handling.
5251 (handle_pure_call): Likewise.
5252 (find_what_var_points_to): Remove general callused handling.
5253 (init_base_vars): Likewise.
5254 (init_alias_vars): Initialize call_stmt_vars.
5255 (compute_points_to_sets): Process call-used and call-clobbered
5256 vars for call statements.
5257 (delete_points_to_sets): Free call_stmt_vars.
5259 2010-04-13 Richard Guenther <rguenther@suse.de>
5261 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5262 Only add RW dependence for dependence distance zero.
5263 Adjust maximal vectorization factor according to dependences.
5264 Move alignment handling ...
5265 (vect_find_same_alignment_drs): ... here. New function.
5266 (vect_analyze_data_ref_dependences): Adjust.
5267 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
5268 (vect_analyze_data_refs): Adjust minimal vectorization factor
5269 according to data references.
5270 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
5271 dependences before determining the vectorization factor.
5272 Analyze alignment after determining the vectorization factor.
5273 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
5274 dependences before alignment.
5275 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
5277 (vect_analyze_data_refs): Likewise.
5278 (MAX_VECTORIZATION_FACTOR): New define.
5280 2010-04-13 Duncan Sands <baldrick@free.fr>
5282 * except.h (lang_eh_type_covers): Remove.
5283 * except.c (lang_eh_type_covers): Likewise.
5285 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5286 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5288 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
5289 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
5290 UNITS_PER_LONG where it is ABI relevant.
5291 (s390_return_addr_rtx): Likewise.
5292 (s390_back_chain_rtx): Likewise.
5293 (s390_frame_area): Likewise.
5294 (s390_frame_info): Likewise.
5295 (s390_initial_elimination_offset): Likewise.
5296 (save_gprs): Likewise.
5297 (s390_emit_prologue): Likewise.
5298 (s390_emit_epilogue): Likewise.
5299 (s390_function_arg_advance): Likewise.
5300 (s390_function_arg): Likewise.
5301 (s390_va_start): Likewise.
5302 (s390_gimplify_va_arg): Likewise.
5303 (s390_function_profiler): Likewise.
5304 (s390_optimize_prologue): Likewise.
5305 (s390_rtx_costs): Likewise.
5306 (s390_secondary_reload): Likewise.
5307 (s390_promote_function_mode): Likewise.
5308 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
5309 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
5310 registers available.
5311 (s390_unwind_word_mode): New function.
5312 (s390_function_value): Split 64 bit values into register pair if
5313 used as return value.
5314 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
5315 function call parameters. Handle parallels.
5316 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
5317 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
5318 (DWARF_CIE_DATA_ALIGNMENT): New macro.
5319 (s390_expand_setmem): Remove unused variable src_addr.
5320 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
5321 deal with 64 bit registers.
5322 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
5323 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
5324 (UNITS_PER_LONG): New macro.
5325 * libjava/include/s390-signal.h: Define extended ucontext
5326 structure containing the upper halfs of the 64 bit registers.
5328 2010-04-13 Simon Baldwin <simonb@google.com>
5330 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
5332 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5334 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
5335 rvalue on the RHS if the LHS is of a non-renamable type.
5336 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
5338 2010-04-13 Matthias Klose <doko@ubuntu.com>
5340 * gcc.c (cc1_options): Handle -iplugindir before processing
5341 the cc1 spec. Only add -iplugindir once.
5342 (cpp_unique_options): Add -iplugindir option if -fplugin* options
5344 * common.opt (iplugindir): Remove `Separate' property, initialize.
5345 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
5347 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
5348 (distclean): Remove plugin dir.
5349 * doc/invoke.texi: Document -iplugindir.
5351 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
5353 * doc/plugins.texi (Loading Plugins): Document short
5354 -fplugin=foo option.
5355 (Plugin API): Mention default_plugin_dir_name function.
5357 * gcc.c (find_file_spec_function): Add new declaration.
5358 (static_spec_func): Use it for "find-file".
5359 (find_file_spec_function): Add new function.
5360 (cc1_options): Add -iplugindir option if -fplugin* options found.
5362 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
5364 * plugin.c (add_new_plugin): Updated comment, and handle short
5366 (default_plugin_dir_name): Added new function.
5368 * common.opt (iplugindir): New option to set the plugin directory.
5370 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
5372 * config/i386/i386.md (any_rotate): New code iterator.
5373 (rotate_insn): New code attribute.
5375 (SWIM124): New mode iterator.
5376 (<rotate_insn>ti3): New expander.
5377 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
5378 any_rotate code iterator.
5379 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
5380 using any_rotate code iterator and SWIM124 mode iterator.
5381 (ix86_rotlti3): New insn_and_split pattern.
5382 (ix86_rotrti3): Ditto.
5383 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
5384 ix86_rotl{di,ti}3 patterns.
5385 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
5386 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
5387 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
5388 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
5389 code iterator and SWI mode iterator.
5390 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
5391 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
5393 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
5394 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
5395 (bswap rotatert splitter): Add splitter.
5396 (bswap splitter): Macroize splitter using any_rotate code iterator.
5397 Add insn predicate to split only for TARGET_USE_XCHGB or when
5398 optimizing function for size.
5400 2010-04-12 Steve Ellcey <sje@cup.hp.com>
5402 * config/pa/pa.c (emit_move_sequence): Remove use of
5403 deleted variable flag_argument_noalias.
5405 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5407 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
5409 Add to unsupported targets list.
5410 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
5411 sparc*-sun-solaris2.[567]* from target lists.
5412 * configure: Regenerate.
5413 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
5415 Remove Solaris 7 patch references.
5416 (Specific, sparc-sun-solaris2.7): Removed.
5417 (sparc-sun-solaris2*): Update Solaris 7 example.
5418 (sparc64-*-solaris2*): Likewise.
5420 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5422 * config.build (alpha*-dec-osf4*): Remove.
5423 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
5424 of obsolete configurations.
5425 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
5427 * config/alpha/t-osf4: Renamed to ...
5428 * config/alpha/t-osf5: ... this.
5429 * config/alpha/osf.h: Renamed to ...
5430 * config/alpha/osf5.h: ... this.
5431 Merged old osf5.h contents.
5433 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
5434 (EXTRA_SPECS): Removed.
5435 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
5436 reflect removal of Tru64 UNIX V4.0/V5.0 support.
5439 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5441 * doc/contrib.texi (Contributors, Rainer Orth): Update.
5443 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
5446 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
5447 __thiscall convention.
5449 2010-04-12 Steve Ellcey <sje@cup.hp.com>
5451 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
5453 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
5455 2010-04-12 Steve Ellcey <sje@cup.hp.com>
5457 * function.c (assign_parms_initialize_all): Add unused attribute
5460 2010-04-12 Richard Guenther <rguenther@suse.de>
5462 * gsstruct.def (GSS_CALL): New.
5463 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
5464 * gimple.h: Include tree-ssa-alias.h.
5465 (struct gimple_statement_call): New.
5466 (union gimple_statement_struct_d): Add gimple_call member.
5467 (gimple_call_reset_alias_info): Declare.
5468 (gimple_call_use_set): New function.
5469 (gimple_call_clobber_set): Likewise.
5470 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
5471 * gimple.c (gimple_call_reset_alias_info): New function.
5472 (gimple_build_call_1): Call it.
5473 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5474 * tree-inline.c (remap_gimple_stmt): Likewise.
5475 (expand_call_inline): Remove callused handling.
5476 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
5477 * tree-dfa.c (dump_variable): Likewise.
5478 * tree-parloops.c (parallelize_loops): Likewise.
5479 * tree-ssa.c (init_tree_ssa): Likewise.
5480 (delete_tree_ssa): Likewise.
5481 * tree-flow-inline.h (is_call_used): Remove.
5482 * tree-flow.h (struct gimple_df): Remove callused member.
5483 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
5484 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
5485 (ref_maybe_used_by_call_p_1): Simplify.
5486 (call_may_clobber_ref_p_1): Likewise.
5487 * tree-ssa-structalias.c (compute_points_to_sets): Set
5488 the call stmt used and clobbered sets.
5489 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
5490 (find_tail_calls): Verify the tail call.
5492 2010-04-12 Richard Guenther <rguenther@suse.de>
5494 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
5495 single-iteration always-inline inlining.
5496 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
5497 (cgraph_decide_inlining): Do not handle always-inline specially.
5498 (try_inline): Remove always-inline cycle detection special case.
5499 Do not recurse on always-inlines.
5500 (cgraph_early_inlining): Do not iterate if not optimizing.
5501 (cgraph_gate_early_inlining): remove.
5502 (pass_early_inline): Run unconditionally.
5503 (gate_cgraph_decide_inlining): New function.
5504 (pass_ipa_inline): Use it. Do not run the IPA inliner if
5505 not inlining or optimizing.
5506 (cgraph_decide_inlining_of_small_functions): Also consider
5507 always-inline functions.
5508 (cgraph_default_inline_p): Return true for nodes which should
5509 disregard inline limits.
5510 (estimate_function_body_sizes): Assume zero size and time for
5511 nodes which are marked as disregarding inline limits.
5512 (cgraph_decide_recursive_inlining): Do not perform recursive
5513 inlining on always-inline nodes.
5515 2010-04-12 Jakub Jelinek <jakub@redhat.com>
5518 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
5519 for exprs satisfying handled_component_p.
5521 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
5523 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
5524 non-constant aggregate elements.
5526 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
5527 is a real initialization.
5529 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
5532 * c-decl.c (start_function): Move forward check for nested function.
5534 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
5536 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
5537 * config/sh/sh.c: Include reload.h.
5538 (sh_legitimize_reload_address): New.
5539 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
5540 sh_legitimize_reload_address.
5542 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5544 * config/sh/sh.md (*movqi_pop): New insn pattern.
5545 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
5547 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5549 * config/i386/i386.md (any_shiftrt): New code iterator.
5550 (shiftrt_insn): New code attribute.
5552 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
5553 using any_shiftrt code iterator.
5554 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
5555 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
5556 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
5557 pattern from corresponding peephole2 patterns.
5558 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
5559 using any_shiftrt code iterator.
5560 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
5561 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
5562 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
5563 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
5564 *{ashr,lshr}<mode>3_cmp_zext.
5565 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
5567 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5569 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
5571 (*lshr<mode>3_cconly): Ditto.
5573 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5575 * config/i386/i386.md (lshr<mode>3): Macroize expander from
5576 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
5577 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
5578 pattern from *lshr{di,ti}3_1 and corresponding splitters using
5580 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
5581 from corresponding peephole2 patterns.
5582 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
5583 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
5584 and *lshrdi3_1_rex64 using SWI mode iterator.
5585 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
5586 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
5587 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
5588 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
5589 and *lshrdi3_cmp_rex64 using SWI mode iterator.
5590 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
5591 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
5592 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
5593 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
5596 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
5598 * config/i386/i386.md (ashr<mode>3): Macroize expander from
5599 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
5600 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
5601 pattern from *ashr{di,ti}3_1 and corresponding splitters using
5603 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
5604 from corresponding peephole2 patterns.
5605 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
5606 (ashrsi3_cvt): Rename from ashrsi3_31.
5607 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
5608 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
5609 and x86_64_shift_adj_3 using SWI48 mode iterator.
5610 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
5611 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
5612 and *ashrdi3_1_rex64 using SWI mode iterator.
5613 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
5614 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
5615 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
5616 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
5617 and *ashrdi3_cmp_rex64 using SWI mode iterator.
5618 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
5619 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
5620 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
5621 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
5623 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
5624 * config/i386/i386.c (ix86_split_ashr): Update for renamed
5625 x86_shift<mode>_adj_3 expanders.
5627 2010-04-10 Wei Guozhi <carrot@google.com>
5630 * config/arm/arm.c (arm_pic_static_addr): New function.
5631 (legitimize_pic_address): Call arm_pic_static_addr when it detects
5633 (arm_output_addr_const_extra): Output expression for new pattern.
5634 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
5636 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
5638 * ira-costs.c (record_reg_classes): Ignore alternatives that are
5641 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
5642 * web.c: Include "insn-config.h" and "recog.h".
5643 (union_match_dups): New function.
5644 (web_main): Call it.
5645 (union_defs): Don't try to recognize match_dups.
5647 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
5648 if doing so would replace the entire pattern.
5650 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
5654 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
5655 and splitter pattern. Change splitter operand 1 predicate to
5658 2010-04-09 Martin Jambor <mjambor@suse.cz>
5660 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
5661 lattices are addresses of CONST_DECLs with the same initial value.
5662 (ipcp_print_all_lattices): Print values of CONST_DECLs.
5663 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
5665 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5666 Bernd Schmidt <bernds@codesourcery.com>
5668 * loop-invariant.c (replace_uses): New static function.
5669 (move_invariant_reg): Use it to ensure we can replace the uses.
5671 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5673 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
5675 (picochip_override_options): Enable section anchors only above -O1.
5676 (picochip_reorg): Fixed a couple of build warnings.
5678 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5680 * configure.ac (plugin -rdynamic test): Log result.
5681 * configure: Regenerate.
5682 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
5683 (RDYNAMIC_SPEC): Define.
5684 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
5686 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5688 * configure.ac: Determine Sun ld version numbers.
5689 (comdat_group): Restrict GNU ld version checks to gld.
5690 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
5691 (enable_comdat): Support --enable-comdat.
5692 * configure: Regenerate.
5693 * doc/install.texi (Configuration): Document --enable-comdat.
5695 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5697 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
5698 * config/sol2-gld.h: ... here.
5699 * config.gcc (sparc*-*-solaris2*): Reflect this.
5700 (i[34567]86-*-solaris2*): Use it.
5702 2010-04-09 Steve Ellcey <sje@cup.hp.com>
5704 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
5706 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
5708 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5711 * diagnostic.c (diagnostic_initialize): Initialize
5712 some_warnings_are_errors.
5713 (diagnostic_finish): New.
5714 (diagnostic_action_after_output): Call it before exiting.
5715 (diagnostic_report_diagnostic): Do not print message here. Set
5716 some_warnings_are_errors.
5717 * diagnostic.h (diagnostic_context): Delete
5718 issue_warnings_are_errors_message. Add some_warnings_are_errors.
5719 (diagnostic_finish): Declare.
5720 * toplev.c (toplev_main): Call it before exit.
5722 2010-04-09 Jason Merrill <jason@redhat.com>
5725 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
5726 for incomplete type.
5729 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
5730 based on a warning flag.
5732 2010-04-09 Richard Guenther <rguenther@suse.de>
5734 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
5736 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
5739 * varasm.c (default_assemble_visibility): Wrap vars that are
5740 set, but unused, by targets without GAS.
5741 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
5742 Remove set, but unused, vars.
5743 (rs6000_legitimize_tls_address): Likewise.
5744 (altivec_expand_dst_builtin): Likewise.
5745 * config/darwin.c (machopic_classify_symbol): Likewise.
5746 (machopic_indirection_name): Likewise.
5748 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
5750 * config/i386/i386.md (DWI): New mode iterator.
5751 (S): New mode attribute.
5752 (shift_operand): Ditto.
5753 (shift_immediate_operand): Ditto.
5754 (ashl_input_operand): Ditto.
5755 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
5756 using SDWIM mode iterator.
5757 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
5758 pattern from *ashl{di,ti}3_1 and corresponding splitters using
5760 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
5761 from corresponding peephole2 patterns.
5762 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
5763 and x86_64_shift_adj_1 using SWI48 mode iterator.
5764 (x86_shift<mode>_adj_2): Ditto.
5765 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
5766 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
5767 using SWI48 mode iterator.
5768 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
5769 *ashldi3_cmp_rex64 using SWI mode iterator.
5770 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
5771 *ashldi3_cconly_rex64 using SWI mode iterator.
5772 * config/i386/i386.c (ix86_split_ashl): Update for renamed
5773 x86_shift<mode>_adj_{1,2}.
5774 (ix86_split_ashr): Ditto.
5775 (ix86_split_lshr): Ditto.
5777 2010-04-09 Richard Guenther <rguenther@suse.de>
5779 * target.h (builtin_conversion): Pass in input and output types.
5780 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
5781 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
5782 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
5783 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
5785 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
5787 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
5789 2010-04-09 Richard Guenther <rguenther@suse.de>
5792 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
5794 2010-04-09 Richard Guenther <rguenther@suse.de>
5796 * tree-vectorizer.h (struct _stmt_vec_info): Document
5797 that vectype is the type of the LHS.
5798 (supportable_widening_operation, supportable_narrowing_operation):
5799 Get both input and output vector types as arguments.
5800 (vect_is_simple_use_1): Declare.
5801 (get_same_sized_vectype): Likewise.
5802 * tree-vect-loop.c (vect_determine_vectorization_factor):
5803 Set STMT_VINFO_VECTYPE to the vector type of the def.
5804 (vectorizable_reduction): Adjust.
5805 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
5806 Adjust. Specify the output vector type.
5807 (vect_pattern_recog_1): Adjust.
5808 * tree-vect-stmts.c (get_same_sized_vectype): New function.
5809 (vectorizable_call): Adjust.
5810 (vectorizable_conversion): Likewise.
5811 (vectorizable_operation): Likewise.
5812 (vectorizable_type_demotion): Likewise.
5813 (vectorizable_type_promotion): Likewise.
5814 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
5816 (vect_is_simple_use_1): New function.
5817 (supportable_widening_operation): Get both input and output
5819 (supportable_narrowing_operation): Likewise.
5820 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
5822 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
5824 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
5825 __thiscall and _thiscall as predefined macros.
5826 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
5827 thiscall attribute handling.
5828 (ix86_comp_type_attributes): Likewise.
5829 (ix86_function_regparm): Likewise.
5830 (ix86_return_pops_args): Likewise.
5831 (init_cumulative_args): Likewise.
5832 (find_drap_reg): Likewise.
5833 (ix86_static_chain): Likewise.
5834 (x86_this_parameter): Likewise.
5835 (x86_output_mi_thunk): Likewise.
5836 (ix86_attribute_table): Add description for thiscall attribute.
5837 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
5838 * doc/extend.texi: Add documentation for thiscall.
5840 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5843 * c.opt (Wint-to-pointer-cast): Available in C++.
5844 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
5846 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
5848 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
5849 * calls.c (expand_call): Pass the function type to aggregate_value_p.
5850 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
5851 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
5852 function type instead. Reorder and simplify checks.
5854 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
5856 2010-04-08 Jing Yu <jingyu@google.com>
5857 Zdenek Dvorak <ook@ucw.cz>
5859 PR tree-optimization/42720
5860 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
5861 loop unswitch conditions here from ...
5862 (tree_unswitch_single_loop): ... here.
5864 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5866 * tree-if-conv.c: Fix comments and simplify logic.
5868 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5870 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
5871 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
5872 (main_tree_if_conversion): Update call to tree_if_conversion.
5874 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5877 * doc/invoke.texi (-b,-V): Delete.
5878 * doc/tm.texi: Do not mention -b.
5879 * gcc.c (display_help): Delete -b and -V.
5880 (process_command): Delete -b and -V.
5881 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
5883 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
5884 Wolfgang Gellerich <gellerich@de.ibm.com>
5886 Implement target hook for loop unrolling
5887 * target.h (loop_unroll_adjust): Add a new target hook function.
5888 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
5889 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
5890 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
5891 (s390_loop_unroll_adjust): Implement the new target hook for s390.
5892 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
5894 (decide_unroll_stupid): Likewise.
5896 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5899 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
5901 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5903 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
5904 (Specific, *-*-solaris2*): Likewise.
5905 Don't prefer Sun as over GNU as.
5907 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
5909 * config/s390/s390.c (override_options): Adjust the z10 defaults
5910 for max-unroll-times, max-completely-peeled-insns
5911 and max-completely-peel-times.
5913 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5915 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
5916 instructions for z10.
5917 (s390_expand_setmem): Likewise.
5918 (s390_expand_cmpmem): Likewise.
5920 2010-04-08 Richard Guenther <rguenther@suse.de>
5922 PR tree-optimization/43679
5923 * tree-ssa-pre.c (eliminate): Only propagate copies.
5925 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5928 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
5929 set but not used variable warning.
5931 2010-04-08 Wei Guozhi <carrot@google.com>
5934 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
5935 (arm_size_rtx_costs): Call the new function when optimized for size.
5937 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5940 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
5941 op0 is not a MEM, just return NULL instead of assertion
5943 (discover_nonconstant_array_refs): Don't walk debug stmts.
5945 2010-04-08 Doug Kwan <dougkwan@google.com>
5947 * configure.ac: Recognize gold and do not use its version number
5948 to test ld features.
5949 * configure: Regenerate.
5951 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
5954 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
5955 (negate_value): Move code to push elements to broken_up_substracts ...
5956 (eliminate_plus_minus_pair): ... here. Push operands that have no
5957 negative pair to plus_negates.
5958 (repropagate_negates, init_reassoc, fini_reassoc): Update.
5960 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5962 * doc/install.texi (Configuration): Move description of
5963 --enable-lto, --with-libelf*, --enable-gold from Java section to
5966 * doc/generic.texi (Working with declarations)
5967 (Function Properties, C and C++ Trees): Fix typos.
5968 * doc/sourcebuild.texi (Top Level): Likewise.
5970 2010-04-07 Jakub Jelinek <jakub@redhat.com>
5973 * tree.h (DECL_READ_P): Define.
5974 (struct tree_decl_common): Add decl_read_flag.
5975 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
5976 a set but not used warning.
5977 (merge_decls): Merge DECL_READ_P flag.
5978 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
5979 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
5980 * c-common.c (handle_used_attribute, handle_unused_attribute):
5982 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
5984 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
5986 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
5987 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
5988 c_parser_binary_expression, c_parser_cast_expression,
5989 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
5990 Call default_function_array_read_conversion instead of
5991 default_function_array_conversion where needed.
5992 (c_parser_unary_expression, c_parser_conditional_expression,
5993 c_parser_postfix_expression_after_primary, c_parser_initelt):
5994 Likewise. Call mark_exp_read where needed.
5995 (c_parser_statement_after_labels, c_parser_asm_operands,
5996 c_parser_typeof_specifier, c_parser_sizeof_expression,
5997 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
5999 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6001 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6002 (warn_unused_but_set_parameter): Default to warn_unused
6004 * doc/invoke.texi: Document -Wunused-but-set-variable and
6005 -Wunused-but-set-parameter.
6007 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
6008 used count variable.
6009 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
6010 when operandN variables aren't used in the body of the expander
6012 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
6013 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
6014 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
6015 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
6016 FOR_EACH_IMM_USE_ON_STMT): Likewise.
6017 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
6018 * tree.c (PROCESS_ARG): Likewise.
6020 2010-04-07 Simon Baldwin <simonb@google.com>
6022 * diagnostic.h (diagnostic_override_option_index): New macro to
6023 set a diagnostic's option_index.
6024 * c-tree.h (c_cpp_error): Add warning reason argument.
6025 * opts.c (_warning_as_error_callback): New.
6026 (register_warning_as_error_callback): Store callback for
6027 warnings enabled via enable_warning_as_error.
6028 (enable_warning_as_error): Call callback, minor code tidy.
6029 * opts.h (register_warning_as_error_callback): Declare.
6030 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
6031 response to -Werror=.
6032 (c_common_init_options): Register warning_as_error_callback in opts.c.
6033 * common.opt: Add -Wno-cpp option.
6034 * c-common.c (struct reason_option_codes_t): Map cpp warning
6035 reason codes to gcc option indexes.
6036 * (c_option_controlling_cpp_error): New function, lookup the gcc
6037 option index for a cpp warning reason code.
6038 * (c_cpp_error): Add warning reason argument, call
6039 c_option_controlling_cpp_error for diagnostic_override_option_index.
6040 * doc/invoke.texi: Document -Wno-cpp.
6042 2010-04-07 Richard Guenther <rguenther@suse.de>
6044 * ipa-reference.c (mark_load): Use get_base_address.
6045 (mark_store): Likewise.
6047 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
6048 inserting GIMPLE_NOPs into the IL.
6049 * tree-ssa-structalias.c (get_constraint_for_component_ref):
6050 Explicitly strip handled components and indirect references.
6052 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
6053 folding address expressions.
6054 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
6055 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
6056 operand_equal_p to compare decls.
6057 (ptr_deref_may_alias_decl_p): Likewise.
6058 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
6059 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
6060 Handle reversed comparison ops.
6061 * tree-sra.c (asm_visit_addr): Use get_base_address.
6062 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
6063 * ipa-reference.c (mark_address): Use get_base_address.
6065 2010-04-07 Richard Guenther <rguenther@suse.de>
6067 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
6068 Propagate constants everywhere.
6070 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6073 * tree.c (MAX_INT_CACHED_PREC): Define.
6074 (nonstandard_integer_type_cache): New array.
6075 (build_nonstandard_integer_type): Cache results for precision
6076 <= MAX_INT_CACHED_PREC.
6078 2010-04-07 Richard Guenther <rguenther@suse.de>
6080 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
6081 -fargument-noalias-global, -fargument-noalias-anything): Remove.
6082 * common.opt: Likewise.
6083 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
6084 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
6085 (nonoverlapping_memrefs_p): Likewise.
6086 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6087 * opts.c (common_handle_option): Handle OPT_fargument_alias,
6088 OPT_fargument_noalias, OPT_fargument_noalias_anything and
6089 OPT_fargument_noalias_global for backward compatibility.
6091 2010-04-07 Richard Guenther <rguenther@suse.de>
6093 PR tree-optimization/43270
6094 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
6095 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
6096 * tree-ssa-pre.c (phi_translate_1): Adjust.
6097 (fully_constant_expression): Split out vn_reference handling to ...
6098 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
6099 Fold reads from constant strings.
6100 (vn_reference_lookup): Handle fully constant references.
6101 (vn_reference_lookup_pieces): Likewise.
6102 * Makefile.in (expmed.o-warn): Add -Wno-error.
6104 2010-04-07 Martin Jambor <mjambor@suse.cz>
6106 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
6108 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
6111 * gcc.c: Add -static-libstdc++ to list of recognized options.
6113 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6115 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
6117 2010-04-07 Richard Guenther <rguenther@suse.de>
6120 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
6121 bases build simple mem attributes to retain points-to information.
6123 2010-04-07 Richard Guenther <rguenther@suse.de>
6126 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
6127 preserve points-to related information.
6129 2010-04-07 Richard Guenther <rguenther@suse.de>
6132 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
6133 discard plain indirect references.
6134 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
6135 * tree.c (tree_nop_conversion): Likewise.
6137 2010-04-07 Dodji Seketeli <dodji@redhat.com>
6140 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
6142 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
6144 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
6145 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
6147 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6149 * tree-if-conv.c: Fix indentation and comments.
6151 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6153 * tree-if-conv.c: Sort static functions in topological order.
6155 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6157 * tree-if-conv.c: Fix indentation and comments.
6159 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6162 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
6163 lang_hooks.types.type_for_size instead of
6164 build_nonstandard_integer_type.
6165 When converting an unsigned type to signed, double its precision.
6166 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
6167 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
6168 (graphite_create_new_loop_guard): When ub + 1 wraps around,
6171 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6174 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6175 POINTER_PLUS_EXPR for pointer types.
6177 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6180 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
6181 * graphite-clast-to-gimple.c: Include langhooks.h.
6182 (max_signed_precision_type): New.
6183 (max_precision_type): Takes two types as arguments.
6184 (precision_for_value): New.
6185 (precision_for_interval): New.
6186 (gcc_type_for_interval): New.
6187 (gcc_type_for_value): New.
6188 (gcc_type_for_clast_term): New.
6189 (gcc_type_for_clast_red): New.
6190 (gcc_type_for_clast_bin): New.
6191 (gcc_type_for_clast_expr): Split up into several functions.
6192 (gcc_type_for_clast_eq): Rewritten.
6193 (compute_bounds_for_level): New.
6194 (compute_type_for_level_1): New.
6195 (compute_type_for_level): New.
6196 (gcc_type_for_cloog_iv): Removed.
6197 (gcc_type_for_iv_of_clast_loop): Rewritten.
6198 (graphite_create_new_loop): Compute the lower and upper bound types
6199 with gcc_type_for_clast_expr.
6200 (graphite_create_new_loop_guard): Same.
6201 (find_cloog_iv_in_expr): Removed.
6202 (compute_cloog_iv_types_1): Removed.
6203 (compute_cloog_iv_types): Removed.
6204 (gloog): Do not call compute_cloog_iv_types.
6205 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
6207 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
6208 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
6209 (GBB_CLOOG_IV_TYPES): Removed.
6211 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6213 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
6214 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
6215 (detect_commutative_reduction): Same.
6217 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6219 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
6220 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
6222 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
6223 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
6224 (rewrite_commutative_reductions_out_of_ssa): Same.
6225 * passes.c (execute_function_todo): Call verify_ssa for every pass
6226 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
6227 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
6228 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
6229 with an extra argument.
6230 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
6231 verify_ssa only when the extra argument is true.
6232 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
6233 with an extra argument.
6234 (tree_transform_and_unroll_loop): Same.
6236 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6238 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
6239 for all the passes of the LNO having LOOP_CLOSED_SSA.
6240 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
6241 * tree-loop-distribution.c (pass_loop_distribution): Same.
6242 * tree-pass.h (TODO_verify_loops): Removed.
6243 * tree-ssa-loop.c (pass_tree_loop_init): Same.
6245 (pass_tree_unswitch): Same.
6246 (pass_predcom): Same.
6247 (pass_vectorize): Same.
6248 (pass_linear_transform): Same.
6249 (pass_graphite_transforms): Same.
6250 (pass_iv_canon): Same.
6251 (pass_complete_unroll): Same.
6252 (pass_complete_unrolli): Same.
6253 (pass_parallelize_loops): Same.
6254 (pass_loop_prefetch): Same.
6255 (pass_iv_optimize): Same.
6257 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
6260 * passes.c (init_optimization_passes): Move pass_lim before
6261 pass_copy_prop and pass_dce_loop.
6263 2010-04-06 Jakub Jelinek <jakub@redhat.com>
6266 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
6267 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
6268 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
6269 MULTI_* defines for 4 argument vpermil2p* builtins.
6271 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
6273 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
6274 * config/i386/i386.c (x86_maybe_negate_const_int): New.
6275 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
6276 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
6277 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
6278 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
6279 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
6280 Use x86_maybe_negate_const_int to output insn mnemonic.
6281 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
6282 check from instruction predicate. Update comments.
6283 * config/i386/sync.md (sync_add<mode>): Use
6284 x86_maybe_negate_const_int to output insn mnemonic.
6286 2010-04-06 Jan Hubicka <jh@suse.cz>
6288 PR tree-optimization/42906
6289 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
6290 IGNORE_SELF argument. Set visited_control_parents for fully
6292 (find_obviously_necessary_stmts): Update call of
6293 mark_control_dependent_edges_necessary.
6294 (propagate_necessity): Likewise. Handle PHI edges more curefully.
6296 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
6298 * config/i386/i386.md: Remove comment about 'e' and 'E'
6301 2010-04-06 Richard Guenther <rguenther@suse.de>
6303 PR tree-optimization/43627
6304 * tree-vrp.c (extract_range_from_unary_expr): Widenings
6305 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
6308 2010-04-06 Jakub Jelinek <jakub@redhat.com>
6310 * BASE-VER: Change to 4.6.0.
6313 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
6316 2010-04-06 Richard Guenther <rguenther@suse.de>
6319 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
6321 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6323 * doc/invoke.texi (Optimize Options): Document that LTO
6324 won't remove object access purely due to incompatible
6327 2010-04-04 Matthias Klose <doko@ubuntu.com>
6329 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
6330 Initialize variable.
6332 2010-04-03 Richard Guenther <rguenther@suse.de>
6335 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
6336 require a non-NULL MEM_OFFSET.
6338 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
6340 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
6341 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
6342 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
6343 config/alpha/predicates.md, config/arm/arm.md,
6344 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
6345 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
6346 config/darwin9.h, config/darwin.c, config/darwin.h,
6347 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
6348 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
6349 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
6350 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
6351 config/mips/mips.md, config/mn10300/mn10300.c,
6352 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
6353 config/rs6000/aix.h, config/rs6000/dfp.md,
6354 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
6355 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
6356 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
6357 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
6358 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
6359 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
6360 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
6361 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
6362 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
6363 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
6364 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
6365 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
6366 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
6367 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
6368 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
6369 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
6370 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
6371 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
6372 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
6373 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
6374 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
6375 opt-functions.awk, opth-gen.awk, params.def, passes.c,
6376 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
6377 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
6378 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
6379 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
6380 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
6381 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6382 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
6383 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
6384 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6385 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
6386 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
6387 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
6388 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
6389 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
6391 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6394 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
6395 * aclocal.m4: Regenerate.
6397 2010-04-02 Richard Guenther <rguenther@suse.de>
6399 PR tree-optimization/43629
6400 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
6401 if we have seen a constant value.
6403 2010-04-02 Joseph Myers <joseph@codesourcery.com>
6405 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
6407 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
6410 * arm.c (legitimize_tls_address): Adjust call to
6411 gen_tls_load_dot_plus_four.
6412 (arm_note_pic_base): New function.
6413 (arm_cannot_copy_insn_p): Use it.
6414 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
6417 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6422 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6424 * Makefile.in ($(out_object_file)): Depend on
6425 gt-$(basename $(notdir $(out_file))).h.
6427 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
6429 * config.gcc (lm32-*-rtems*): Add t-lm32.
6431 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
6433 * config.gcc: Add lm32-*-rtems*.
6434 * config/lm32/rtems.h: New file.
6436 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
6439 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
6441 2010-04-01 Jakub Jelinek <jakub@redhat.com>
6443 * dwarf2out.c (output_compilation_unit_header): For
6444 -gdwarf-4 use version 4 instead of version 3.
6445 (output_line_info): For version 4 and above emit additional
6446 maximum ops per insn header field.
6447 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
6449 * dwarf2out.c (is_c_family, is_java): Remove.
6450 (lower_bound_default): New function.
6451 (add_bound_info, gen_descr_array_type_die): Use it.
6453 2010-04-01 Dodji Seketeli <dodji@redhat.com>
6456 * dwarf2out.c (gen_variable_die): Allow debug info for variable
6457 re-declaration when it happens in a function.
6459 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
6461 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
6462 (cgraph_remove_function_insertion_hook): Same.
6463 (cgraph_call_function_insertion_hooks): Same.
6465 2010-04-01 Richard Guenther <rguenther@suse.de>
6468 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
6469 and TREE_THIS_VOLATILE.
6470 (copy_ref_info): Likewise.
6471 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
6472 * tree.c (build6_stat): Ignore side-effects of all but arg5
6473 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
6476 2010-04-01 Richard Guenther <rguenther@suse.de>
6478 PR tree-optimization/43607
6479 * ipa-type-escape.c (check_call): Do not access non-existing
6482 2010-04-01 Richard Guenther <rguenther@suse.de>
6486 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
6487 Jack Howarth <howarth@bromo.med.uc.edu>
6489 * tree-profile.c (tree_init_ic_make_global_vars): Make static
6492 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6494 * doc/install.texi (Prerequisites): Document libelf usability on
6495 IRIX 5/6 and Solaris 2.
6496 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
6497 Update GNU as, GNU ld requirements.
6498 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
6499 Document Sun Studio compiler download.
6500 Update and simplify as, ld recommendations.
6501 (Specific, *-*-solaris2.7): Note obsoletion, removal.
6503 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6505 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
6506 with_tune_32 to pentium4.
6508 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
6510 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
6512 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6514 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
6515 obsoletion, removal.
6517 Document GNU as requirement.
6518 Update configure requirements.
6519 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
6520 Recomment IRIX 6.5.18+.
6521 Document IDF/IDL requirement.
6522 Document GNU as requirement.
6523 Document GNU ld bootstrap failure.
6524 Remove freeware.sgi.com reference.
6526 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6528 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
6529 UNIX V4.0, V5.0 obsoletion, removal.
6530 Remove --with-gc=simple reference.
6531 Update VM requirements during bootstrap.
6532 Remove -oldas bootstrap description.
6533 Update binutils reference.
6534 Remove comparison failure note.
6536 2010-03-31 Richard Guenther <rguenther@suse.de>
6537 Zdenek Dvorak <ook@ucw.cz>
6538 Sebastian Pop <sebastian.pop@amd.com>
6541 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
6542 with multiple arguments.
6543 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
6545 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6547 * graphite-dependences.c (print_pddr): Call print_pdr with an
6549 * graphite-poly.c (debug_pdr): Add an extra argument for the
6552 (print_pbb_domain): Same.
6554 (print_scop_context): Same.
6556 (print_cloog): Same.
6557 (debug_pbb_domain): Same.
6561 (debug_scop_context): Same.
6563 (debug_cloog): Same.
6564 (print_scop_params): Same.
6565 (debug_scop_params): Same.
6566 (print_iteration_domain): Same.
6567 (print_iteration_domains): Same.
6568 (debug_iteration_domain): Same.
6569 (debug_iteration_domains): Same.
6570 (print_scattering_function): Same.
6571 (print_scattering_functions): Same.
6572 (debug_scattering_function): Same.
6573 (debug_scattering_functions): Same.
6574 * graphite-poly.h (debug_pdr): Update declaration.
6576 (print_pbb_domain): Same.
6578 (print_scop_context): Same.
6580 (print_cloog): Same.
6581 (debug_pbb_domain): Same.
6585 (debug_scop_context): Same.
6587 (debug_cloog): Same.
6588 (print_scop_params): Same.
6589 (debug_scop_params): Same.
6590 (print_iteration_domain): Same.
6591 (print_iteration_domains): Same.
6592 (debug_iteration_domain): Same.
6593 (debug_iteration_domains): Same.
6594 (print_scattering_function): Same.
6595 (print_scattering_functions): Same.
6596 (debug_scattering_function): Same.
6597 (debug_scattering_functions): Same.
6599 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6601 * graphite-poly.c (print_scattering_function_1): New.
6602 (print_scattering_function): Call it.
6603 (print_scop_params): Remove spaces at the end of lines.
6606 * graphite-poly.h (print_cloog): Declared.
6607 (debug_cloog): Declared.
6609 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6611 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
6613 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
6614 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
6615 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
6616 to switch between adding the IV bump in loop->latch or in loop->header.
6618 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6620 * graphite-poly.c (print_scattering_function): Pretty print following
6623 (print_pbb_domain): Same.
6624 (dump_gbb_cases): Same.
6625 (dump_gbb_conditions): Same.
6628 (print_scop_params): Same.
6629 (print_scop_context): Same.
6631 (print_pbb_body): New.
6632 (lst_indent_to): New.
6633 (print_lst): Start new lines with a #.
6634 * graphite-poly.h (pbb_bb): New.
6635 (pbb_index): Use pbb_bb.
6636 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
6638 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
6640 2010-03-31 Jakub Jelinek <jakub@redhat.com>
6642 * dwarf2out.c (size_of_die): For -gdwarf-4 use
6643 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
6644 and 0 instead of 1 for dw_val_class_flag.
6645 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
6646 dw_val_class_range_list, dw_val_class_loc_list,
6647 dw_val_class_lineptr and dw_val_class_macptr, use
6648 DW_FORM_flag_present for dw_val_class_flag and
6649 DW_FORM_exprloc for dw_val_class_loc.
6650 (output_die): For -gdwarf-4 print dw_val_class_loc
6651 size as uleb128 instead of 1 or 2 bytes and don't print
6652 anything for dw_val_class_flag.
6654 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
6655 instead of cselib_lookup following by tweaking locs->setting_insn.
6658 * cselib.c (cselib_process_insn): Clear cselib_current_insn
6659 even before returning from label, setjmp call or volatile asm
6662 2010-03-31 Richard Guenther <rguenther@suse.de>
6665 * cgraphunit.c (cgraph_output_in_order): Do not allocate
6666 temporary data on stack.
6668 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6670 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
6671 (PUSHSECTION_ASM_OP): Remove.
6672 (POPSECTION_ASM_OP): Remove.
6673 (PUSHSECTION_FORMAT): Remove.
6674 * config/sol2.h (PUSHSECTION_FORMAT): Define.
6675 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
6676 * config/sol2.c (solaris_output_init_fini): Use it.
6678 2010-03-31 Jie Zhang <jie@codesourcery.com>
6681 * opt-functions.awk (var_type_struct): Use signed char type
6682 for simple variables.
6684 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6686 * config/sol2.c: Include output.h.
6687 (solaris_assemble_visibility): New function.
6688 * config/t-sol2 (sol2.o): Add output.h dependency.
6689 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
6690 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
6693 2010-03-31 Jakub Jelinek <jakub@redhat.com>
6696 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
6697 V2SImode or XFmode on PRE_DEC.
6700 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
6703 2010-03-31 Jie Zhang <jie@codesourcery.com>
6706 * reload.h (caller_save_initialized_p): Declare.
6707 * toplev.c (backend_init_target): Don't call
6708 init_caller_save but set caller_save_initialized_p to false.
6709 * caller-save.c (caller_save_initialized_p): Define.
6710 (init_caller_save): Check caller_save_initialized_p.
6711 * ira.c (ira): Call init_caller_save if flag_caller_saves.
6713 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6716 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
6717 and soft-fp/t-softfp to tmake_file.
6718 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
6719 (LIBGCC2_TF_CEXT): Define.
6722 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
6725 * cselib.c (n_useless_values): Document handling of debug locs.
6726 (n_useless_debug_values, n_debug_values): New variables.
6727 (new_elt_loc_list): Don't add to debug values, keep count.
6728 (promote_debug_loc): New.
6729 (cselib_reset_table): Zero new variables.
6730 (entry_and_rtx_equal_p): Promote debug locs.
6731 (discard_useless_locs): Increment n_useless_debug_values for
6733 (remove_useless_values): Adjust n_useless_values and n_debug_values
6734 with n_useless_debug_values.
6735 (add_mem_for_addr): Promote debug locs.
6736 (cselib_lookup_mem): Likewise.
6737 (cselib_lookup_addr): Renamed to...
6738 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
6739 (cselib_log_lookup): ... this. Turn into...
6740 (cselib_lookup_addr): ... new wrapper.
6741 (cselib_lookup_from_insn): New.
6742 (cselib_invalidate_regno): Increment n_useless_debug_values for
6744 (cselib_invalidate_mem): Likewise.
6745 (cselib_process_insn): Take n_deleted and n_debug_values into
6746 account to guard remove_useless_value call.
6747 (cselib_finish): Zero n_useless_debug_values.
6748 * cselib.h (cselib_lookup_from_insn): Declare.
6749 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
6750 (sched_analyze_2): Likewise.
6752 2010-03-30 Jakub Jelinek <jakub@redhat.com>
6754 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
6756 (adjust_mems): Replace narrowing SUBREG of expression containing
6757 just PLUS, MINUS, MULT and ASHIFT of registers and constants
6758 with operations in the narrower mode.
6761 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
6762 regs_invalidated_by_call instead all call_used_reg_set registers.
6764 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
6767 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
6768 pointer comparisons with types_compatible_p.
6769 * tree-vect-stmts.c (vectorizable_call): Same.
6770 (vectorizable_condition): Same.
6772 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6774 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
6775 stack check if the mask would be zero.
6777 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
6778 Jack Howarth <howarth@bromo.med.uc.edu>
6780 * tree-profile.c (tree_init_ic_make_global_vars): Make static
6783 2010-03-30 Joseph Myers <joseph@codesourcery.com>
6786 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
6788 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
6789 Include ___unordxf2 and ___unordtf2.
6790 * config/i386/libgcc-glibc.ver: Do not define inheritance from
6793 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
6795 * config/lm32/t-lm32: New file.
6796 * config.gcc: Use the above file when targetting lm32.
6798 2010-03-28 Duncan Sands <baldrick@free.fr>
6800 * Makefile.in (PLUGIN_HEADERS): Add except.h.
6802 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
6805 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
6806 Improve vectorization cost model diagnostic.
6808 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
6811 * tree-vect-data-refs.c (vect_analyze_data_refs): When
6812 compute_data_dependences_for_loop returns false, early exit
6813 and output an extra diagnostic for the failed data reference
6816 2010-03-29 Richard Guenther <rguenther@suse.de>
6818 PR tree-optimization/43560
6819 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
6820 (can_sm_ref_p): Treat stores to readonly locations as trapping.
6822 2010-03-29 Jie Zhang <jie@codesourcery.com>
6825 * toplev.c (process_options): Set optimization_default_node
6826 and optimization_current_node.
6827 * opts.c (decode_options): Don't set optimization_default_node
6828 and optimization_current_node.
6830 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
6832 * config/rtems.h: Abandon -qrtems_debug.
6834 2010-03-28 Jan Hubicka <jh@suse.cz>
6836 PR tree-optimization/43505
6837 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
6838 map should not be copied.
6840 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6843 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
6844 cdtors, set DECL_PRESERVE_P.
6845 * ipa.c (cgraph_externally_visible_p): Return true if declaration
6848 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
6850 PR tree-optimization/43528
6851 * stor-layout.c (place_field): Check that constant fits into
6852 unsigned HWI when skipping calculation of MS bitfield layout.
6854 2010-03-27 Jan Hubicka <jh@suse.cz>
6857 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
6858 notice_global_symbol work.
6860 2010-03-27 Jakub Jelinek <jakub@redhat.com>
6862 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
6863 instead of dwarf2out_decl.
6864 (struct var_loc_node): Remove section_label field.
6865 (dwarf2out_function_decl): New function.
6866 (dwarf2out_var_location): Don't set section_label field.
6867 (dwarf2out_begin_function): Don't empty decl_loc_table here.
6869 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6871 PR tree-optimization/43544
6872 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
6873 First argument for builtin vectorized function hook is now a
6874 tree to be able to distinguish between machine specific and
6876 * targhooks.c (default_builtin_vectorized_function): Ditto.
6877 * targhooks.h (default_builtin_vectorized_function): Ditto.
6878 * target.h (struct gcc_target): Ditto.
6879 * tree-vect-stmts.c (vectorizable_function): Ditto.
6880 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
6881 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6884 2010-03-26 Joseph Myers <joseph@codesourcery.com>
6887 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
6888 nested binding iff it is a FUNCTION_DECL.
6889 (store_parm_decls_newstyle): Pass nested=true to bind for
6890 FUNCTION_DECLs amongst parameters.
6892 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6894 * var-tracking.c (vt_expand_loc_callback): Don't run
6895 cselib_expand_value_rtx_cb in dummy mode if
6896 cselib_dummy_expand_value_rtx_cb returned false.
6898 * var-tracking.c (emit_note_insn_var_location): For one part
6899 notes with offset 0, don't add EXPR_LIST around the location.
6900 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
6901 add_location_or_const_value_attribute): Adjust for that change.
6904 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
6905 into first operand and location into second.
6906 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
6907 dw_cfi_oprnd_loc for DW_CFA_expression.
6908 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
6909 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
6910 assume first argument is regnum and second argument is location.
6912 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6915 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
6916 of scratch register to DImode. Split to DImode comparison operator.
6917 Use SImode subreg of scratch register in the multiplication.
6918 (*cmp_sadd_sidi): Ditto.
6919 (*cmp_ssub_si): Ditto.
6920 (*cmp_ssub_sidi): Ditto.
6922 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6925 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
6926 Remove invalid assert and wrong comment.
6928 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6931 * flags.h (final_insns_dump_p): New extern.
6932 * final.c (final_insns_dump_p): New variable.
6933 (rest_of_clean_state): Set it before -fdump-final-insns=
6934 dumping, clear afterwards.
6935 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
6936 MEM_ALIAS_SET on MEMs.
6938 2010-03-26 David S. Miller <davem@davemloft.net>
6940 * configure.ac: Fix sparc GOTDATA_OP bug check.
6941 * configure: Rebuild.
6943 2010-03-26 Alan Modra <amodra@gmail.com>
6945 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
6947 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6949 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
6950 TLS_SECTION_ASM_FLAG.
6952 2010-03-25 Jakub Jelinek <jakub@redhat.com>
6955 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
6956 Clear first_function_block_is_cold.
6959 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
6960 argument if the argument is truth_value_p.
6962 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6964 * config/rs6000/constraints.md: Update copyright year for my changes.
6967 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
6968 used in reg+reg addressing, swap registers.
6970 2010-03-24 Jakub Jelinek <jakub@redhat.com>
6973 * target.h (struct gcc_target): Add code_end hook.
6974 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
6976 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
6977 * toplev.c (compile_file): Call targetm.asm_out.code_end
6978 hook before unwind info/debug info output.
6979 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
6980 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
6981 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6982 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
6983 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6984 * config/i386/i386.c (ix86_file_end): Renamed to...
6985 (ix86_code_end): ... this. Make static. Don't call
6986 file_end_indicate_exec_stack. Emit unwind info using
6987 final_start_function/final_end_function.
6988 (darwin_x86_file_end): Remove.
6989 (TARGET_ASM_CODE_END): Define.
6990 * config/i386/i386.h (TARGET_ASM_FILE_END,
6991 NEED_INDICATE_EXEC_STACK): Don't define.
6992 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
6993 (TARGET_ASM_FILE_END): Define to darwin_file_end.
6994 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
6995 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
6998 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
6999 at the beginning and final_end_function at the end.
7000 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7002 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7004 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
7005 and Sun as TLS syntax.
7006 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
7007 * configure: Regenerate.
7008 * config.in: Regenerate.
7009 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
7010 (default_elf_asm_named_section): Use it.
7011 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
7012 (i386_output_dwarf_dtprel): Likewise.
7013 (output_addr_const_extra): Likewise.
7014 (output_pic_addr_const): Lowercase @GOTTPOFF.
7015 (output_addr_const_extra): Likewise.
7016 (output_pic_addr_const): Lowercase @GOTNTPOFF.
7017 (output_addr_const_extra): Likewise.
7018 (output_pic_addr_const): Lowercase @INDNTPOFF.
7019 (output_addr_const_extra): Likewise.
7020 (output_pic_addr_const): Lowercase @NTPOFF.
7021 (output_addr_const_extra): Likewise.
7022 (output_pic_addr_const): Lowercase @TPOFF.
7023 (output_addr_const_extra): Likewise.
7024 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
7025 (*tls_global_dynamic_64): Likewise.
7026 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
7027 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
7029 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
7030 (ASM_OUTPUT_TLS_COMMON): Use it.
7031 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
7034 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
7035 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7036 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
7037 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
7038 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7039 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
7041 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7043 * config/i386/i386.c (override_options): Don't accept
7044 -mtls-dialect=sun any longer.
7045 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
7046 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
7047 (*tls_local_dynamic_base_32_sun): Likewise.
7048 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7050 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7053 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7054 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
7057 * ira.c (adjust_cleared_regs): New function.
7058 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
7062 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
7064 * expr.c (expand_expr_real): Restore previous
7065 curr_insn_source_location and curr_insn_block after
7066 expand_expr_real_1 call.
7067 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
7068 instead of expand_expr_real_1.
7070 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
7072 PR rtl-optimization/43413
7073 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
7076 2010-03-22 James E. Wilson <wilson@codesourcery.com>
7079 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
7080 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
7082 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
7084 * config/i386/i386.c (ix86_target_string): Add -mfma.
7085 Fix a typo in comment.
7087 2010-03-22 Mike Stump <mikestump@comcast.net>
7090 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
7091 Don't overly align based upon packed packed fields.
7093 2010-03-22 Jason Merrill <jason@redhat.com>
7095 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
7096 Use () rather than [], and move before the element type.
7098 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7100 * doc/configfiles.texi (Configuration Files): Removed
7101 fixinc/Makefile*, intl/Makefile.*.
7102 * doc/makefile.texi: Fixed markup. Abstract from version
7103 control system used.
7104 (Makefile): Removed obsolete gcc/java/parse.y example.
7105 * doc/sourcebuild.texi: Likewise.
7106 (Top Level): Added config, gnattools, libdecnumber, libgcc,
7107 libgomp, libssp. Removed fastjar.
7108 (Miscellaneous Docs): Clarify location.
7109 Added COPYING3, COPYING3.LIB.
7110 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
7112 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7115 * config/i386/i386.c (x86_function_profiler)
7116 [!NO_PROFILE_COUNTERS]: Fix typo.
7117 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
7120 2010-03-22 Janis Johnson <janis187@us.ibm.com>
7121 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7123 * doc/sourcebuild.texi (Test Directives): Split into six
7124 subsections, with most of the current text in new subsections
7125 Directives, Selectors, and Final Actions.
7126 (Directives): Split list of test directives into multiple
7128 (Selectors): Describe use and syntax of selectors.
7129 (Effective-Target Keywords): Describe all existing keywords.
7130 (Add Options): Describe features for dg-add-options.
7131 (Require Support): Describe variants of dg-require-support.
7132 (Final Actions): Describe commands to use in dg-final.
7134 2010-03-22 Michael Matz <matz@suse.de>
7137 * recog.c (validate_replace_rtx_group): Replace also in
7138 REG_EQUAL and REG_EQUIV notes.
7140 2010-03-22 Richard Guenther <rguenther@suse.de>
7142 PR tree-optimization/43390
7143 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
7144 sure vector extracts are type correct.
7146 2010-03-22 Richard Guenther <rguenther@suse.de>
7149 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
7150 x * sqrt (x) even when optimizing for size if the target
7151 has native support for sqrt.
7153 2010-03-22 Jakub Jelinek <jakub@redhat.com>
7155 * varasm.c (make_decl_rtl_for_debug): Also clear
7156 flag_mudflap for the duration of make_decl_rtl call.
7159 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
7160 locs from preserved VALUEs.
7162 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7165 * pa.md (movmemsi): Set align to one if zero.
7166 (movmemdi): Likewise.
7168 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
7171 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
7172 with their corresponding prologue pushes.
7174 2010-03-20 Andrew Pinski <pinskia@gmail.com>
7177 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
7178 at the begining or end.
7179 (spu_expand_epilogue): Likewise.
7181 2010-03-20 Richard Guenther <rguenther@suse.de>
7183 PR rtl-optimization/43438
7184 * combine.c (make_extraction): Properly zero-/sign-extend an
7185 extraction of the low part of a CONST_INT. Also handle
7188 2010-03-19 Mike Stump <mikestump@comcast.net>
7190 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
7191 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
7192 (override_options): Use SUBTARGET32_DEFAULT_CPU.
7194 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
7197 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
7200 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
7202 PR rtl-optimization/42258
7203 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
7204 use that may match DEF.
7207 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
7208 the cost of loading the constant rather than assuming
7210 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
7211 outer code is AND, do the same tests as the andsi3 expander and
7212 return COSTS_N_INSNS (1) if and is cheap.
7214 * optabs.c (avoid_expensive_constant): Fix formatting.
7216 2010-03-19 Michael Matz <matz@suse.de>
7219 * attribs.c (decl_attributes): When rebuilding a function pointer
7220 type use the same qualifiers as the original pointer type.
7222 2010-03-19 Martin Jambor <mjambor@suse.cz>
7224 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
7225 and is_gimple_ip_invariant_address.
7227 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7230 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7232 * config/arm/arm.c (arm_override_options): Turn off
7233 flag_dwarf2_cfi_asm for AAPCS variants.
7235 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7238 * config/arm/arm.c (emit_multi_reg_push): Update comments.
7239 Use PRE_MODIFY instead of PRE_DEC.
7240 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
7241 (vfp_emit_fstmd): Likewise.
7243 2010-03-19 Michael Matz <matz@suse.de>
7246 * builtins.c (expand_builtin_interclass_mathfn,
7247 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
7250 2010-03-19 Richard Guenther <rguenther@suse.de>
7252 PR tree-optimization/43415
7253 * tree-ssa-pre.c (phi_translate): Split out worker to ...
7254 (phi_translate_1): ... this.
7255 (phi_translate): Move all caching here. Cache all NARY
7256 and REFERENCE translations.
7258 2010-03-19 David S. Miller <davem@davemloft.net>
7260 With help from Eric Botcazou.
7261 * config/sparc/sparc.c: Include dwarf2out.h.
7262 (emit_pic_helper): Delete.
7263 (pic_helper_symbol_name): Delete.
7264 (pic_helper_emitted_p): Delete.
7265 (pic_helper_needed): New.
7266 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
7267 (get_pc_thunk_name): New.
7268 (load_pic_register): Remove 'delay_pic_helper' arg. Use
7269 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
7270 Set pic_helper_needed to true. Don't call emit_pic_helper.
7271 (sparc_expand_prologue): Update load_pic_register call.
7272 (sparc_output_mi_thunk): Likewise.
7273 (sparc_file_end): Emit a hidden comdat symbol for the PIC
7274 thunk if possible. Output CFI information as needed.
7276 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7277 Jack Howarth <howarth@bromo.med.uc.edu>
7280 * config/i386/i386.h: Fix ABI on darwin x86-32.
7282 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
7284 * tree.h: Declare make_decl_rtl_for_debug.
7285 * varasm.c (make_decl_rtl_for_debug): New.
7286 * dwarf2out.c (rtl_for_decl_location): Call it.
7287 * cfgexpand.c (expand_debug_expr): Call it.
7289 2010-03-18 Jakub Jelinek <jakub@redhat.com>
7292 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
7296 * var-tracking.c (vt_init_cfa_base): Do nothing if
7297 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
7299 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
7302 * var-tracking.c (canonicalize_vars_star): New.
7303 (dataflow_post_merge_adjust): Use it.
7305 2010-03-18 Jakub Jelinek <jakub@redhat.com>
7308 * var-tracking.c (non_suitable_const): New function.
7309 (add_uses): For DEBUG_INSNs with constants, don't record any
7310 value, instead just the constant value itself.
7311 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
7312 is not VAR_LOC_UNKNOWN_P, set var to the constant.
7313 (emit_notes_in_bb): Likewise.
7314 (emit_note_insn_var_location): For onepart variables if
7315 cur_loc is a VOIDmode constant, use DECL_MODE.
7317 2010-03-18 Martin Jambor <mjambor@suse.cz>
7320 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
7321 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
7322 all non-clones. Moved call redirection...
7323 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
7324 (cgraph_materialize_all_clones): Dispose of all
7325 combined_args_to_skip bitmaps.
7326 (verify_cgraph_node): Do not check for edges pointing to wrong
7327 nodes in inline clones.
7328 * tree-inline.c (copy_bb): Call
7329 cgraph_redirect_edge_call_stmt_to_callee.
7330 * ipa.c (cgraph_remove_unreachable_nodes): Call
7331 cgraph_node_remove_callees even when there are used clones.
7333 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
7335 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
7337 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
7340 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
7343 2010-03-18 Michael Matz <matz@suse.de>
7346 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
7347 into sqrt(x) if we need to preserve signed zeros.
7349 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
7350 Eric Botcazou <ebotcazou@adacore.com>
7352 PR rtl-optimization/43360
7353 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
7354 note if we don't know its invariant status.
7356 2010-03-18 Michael Matz <matz@suse.de>
7358 PR tree-optimization/43402
7359 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
7360 PHI chains of ssa names registered for update.
7362 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
7365 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
7366 non-offsettable and pre_modify update addressing.
7367 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
7368 and "2" alternatives "#".
7369 (*movdd_softfloat32): Make all alternatives "#";
7370 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
7371 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
7372 (*movdf_softfloat32): Make all alternatives "#";
7373 (movdi): Use the new DIFD mode iterator to create a common splitter
7374 for movdi, movdf and movdd patterns.
7376 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
7378 * common.opt (dumpdir): Remove redundant tab.
7380 2010-03-17 Martin Jambor <mjambor@suse.cz>
7382 PR tree-optimization/43347
7383 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
7384 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
7386 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
7388 PR rtl-optimization/42216
7389 * regrename.c (create_new_chain): New function, broken out from...
7390 (scan_rtx_reg): ... here. Call it. Handle the case where we are
7391 appending a use to an empty chain.
7392 (build_def_use): Remove previous changes that convert OP_INOUT to
7393 OP_OUT operands; instead detect the case where an OP_INOUT operand
7394 uses a previously untracked register and create an empty chain for it.
7396 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7398 * doc/extend.texi (Function Attributes): Rewrite unfinished
7399 sentence in ms_abi documentation.
7401 2010-03-17 Alan Modra <amodra@gmail.com>
7403 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
7404 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
7405 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
7406 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
7408 2010-03-16 Richard Henderson <rth@redhat.com>
7411 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
7412 (lower_try_finally): Save and restore eh_seq around the expansion
7415 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
7417 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
7418 statements before splitting block.
7420 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7422 * doc/sourcebuild.texi (Testsuites): Fix markup.
7423 Use pathnames relative to gcc/testsuite.
7424 (Test Directives): Move description of how timeout is determined.
7425 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
7426 (C Tests): Correct gcc.misc-tests directory.
7427 Framework tests now live in gcc.test-framework.
7429 2010-03-16 Richard Guenther <rguenther@suse.de>
7432 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
7433 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
7435 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
7436 Alexandre Oliva <aoliva@redhat.com>
7438 PR tree-optimization/42917
7439 * lambda-code.c (remove_iv): Skip debug statements.
7440 (lambda_loopnest_to_gcc_loopnest): Likewise.
7441 (not_interesting_stmt): Debug statements are not interesting.
7443 2010-03-16 Jakub Jelinek <jakub@redhat.com>
7447 * cselib.c (cselib_preserve_constants,
7448 cfa_base_preserved_val): New static variables.
7449 (preserve_only_constants): New function.
7450 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
7451 clear its REG_VALUES. If cselib_preserve_constants, don't
7452 empty the whole hash table, but preserve there VALUEs with constants,
7453 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
7454 (cselib_preserve_cfa_base_value): New function.
7455 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
7456 (cselib_init): Change argument to int bitfield. Set
7457 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
7459 (cselib_finish): Clear cselib_preserve_constants and
7460 cfa_base_preserved_val.
7461 * cselib.h (enum cselib_record_what): New enum.
7462 (cselib_init): Change argument to int.
7463 (cselib_preserve_cfa_base_value): New prototype.
7464 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
7465 * dse.c (dse_step1): Likewise.
7466 * cfgcleanup.c (thread_jump): Likewise.
7467 * sched-deps.c (sched_analyze): Likewise.
7468 * gcse.c (local_cprop_pass): Likewise.
7469 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
7470 If FN is non-NULL, call the callback always and whenever it returns
7471 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
7472 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
7473 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
7474 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
7475 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
7476 * var-tracking.c: Include recog.h.
7477 (bb_stack_adjust_offset): Remove.
7478 (vt_stack_adjustments): Don't call it, instead just gather the
7479 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
7480 (adjust_stack_reference): Remove.
7481 (compute_cfa_pointer): New function.
7482 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
7483 (struct adjust_mem_data): New type.
7484 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
7486 (get_address_mode): New function.
7487 (replace_expr_with_values): Use it.
7488 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
7489 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
7490 (adjust_sets): Remove.
7491 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
7492 Use get_address_mode.
7493 (get_adjusted_src): Remove.
7494 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
7495 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
7496 (add_with_sets): Don't call adjust_sets.
7497 (fp_setter, vt_init_cfa_base): New functions.
7498 (vt_initialize): Change return type to bool. Move most of pool etc.
7499 initialization to the beginning of the function from end. Pass
7500 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
7501 If !frame_pointer_needed, call vt_stack_adjustment before mos
7502 vector is filled, call vt_init_cfa_base if argp/framep has been
7503 eliminated to sp. If frame_pointer_needed and argp/framep has
7504 been eliminated to hard frame pointer, set
7505 hard_frame_pointer_adjustment and call vt_init_cfa_base after
7506 encountering fp setter in the prologue. For MO_ADJUST, call
7507 log_op_type before pusing the op into mos vector, not afterwards.
7508 Call adjust_insn before cselib_process_insn/add_with_sets,
7509 call cancel_changes (0) afterwards.
7510 (variable_tracking_main_1): Adjust for vt_initialize calling
7511 vt_stack_adjustments and returning whether it succeeded or not.
7513 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
7515 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
7518 2010-03-15 Jakub Jelinek <jakub@redhat.com>
7520 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
7522 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
7523 drap_reg has not been set.
7525 2010-03-15 Michael Matz <matz@suse.de>
7528 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
7529 use it to expand block copies.
7530 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
7531 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
7532 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
7534 2010-03-15 Richard Guenther <rguenther@suse.de>
7536 PR tree-optimization/43367
7537 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
7540 2010-03-15 Richard Guenther <rguenther@suse.de>
7542 PR tree-optimization/43317
7543 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
7545 2010-03-15 Martin Jambor <mjambor@suse.cz>
7547 PR tree-optimization/43141
7548 * tree-sra.c (create_abstract_origin): New function.
7549 (modify_function): Call create_abstract_origin.
7551 2010-03-15 Chris Demetriou <cgd@google.com>
7553 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
7556 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7559 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
7560 call insert_out_of_ssa_copy for default definitions.
7562 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7564 * graphite-clast-to-gimple.c (my_long_long): Defined.
7565 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
7566 * graphite-sese-to-poly.c (my_long_long): Defined.
7567 (scop_ivs_can_be_represented): Use it.
7569 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7571 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
7572 graphite-max-bbs-per-function, and loop-block-tile-size.
7573 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
7575 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
7577 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7579 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
7580 forward declaration.
7581 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
7582 (add_upper_bounds_from_estimated_nit): New.
7583 (build_loop_iteration_domains): Use it.
7585 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7587 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
7589 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7592 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
7593 should be an INTEGER_CST. Also handle CASE_CONVERT.
7595 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7597 * graphite.c (graphite_initialize): To bound the number of bbs per
7598 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7599 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
7600 * doc/invoke.texi: Document it.
7602 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7604 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
7605 * graphite-sese-to-poly.h (build_poly_scop): Same.
7607 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7609 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
7610 the number of parameters in the scop. Use as an upper bound
7611 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
7612 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
7613 * doc/invoke.texi: Document it.
7615 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
7617 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
7618 * doc/c-tree.texi: Remove.
7619 * doc/generic.texi: Merge c-tree.texi here.
7620 * doc/gccint.texi (Trees): Remove menu entry.
7621 (c-tree.texi): Remove @include.
7622 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
7623 * doc/languages.texi (Reading RTL): Ditto.
7625 2010-03-12 Steve Ellcey <sje@cup.hp.com>
7628 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
7630 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7633 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
7634 code added to work around reload clobbering CONST insns.
7636 2010-03-12 Jakub Jelinek <jakub@redhat.com>
7638 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
7639 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
7640 (cselib_preserve_only_values): Remove retain argument, don't
7641 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
7642 * cselib.h (cselib_preserve_only_values): Remove retain argument.
7643 * var-tracking.c (micro_operation): Move insn field before union.
7644 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
7645 (struct variable_tracking_info_def): Remove n_mos field, change
7646 mos into a vector of micro_operations.
7647 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
7648 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
7649 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
7650 changing into a vector.
7651 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
7652 come before all other uops generated by add_stores.
7653 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
7655 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
7656 a vector. Run just one pass over the bbs instead of separate counting
7657 and computation phase.
7658 (vt_finalize): Free VTI (bb)->mos vector instead of array.
7661 * tree-inline.c (remap_decls): Put old_var rather than origin_var
7662 into *nonlocalized_list vector.
7663 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
7664 even if origin is non-NULL.
7665 (gen_variable_die): Likewise.
7666 (process_scope_var): Don't change origin.
7667 (gen_decl_die): Likewise.
7668 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
7669 before adding new edges instead of after it, fix moving over
7672 2010-03-11 David S. Miller <davem@davemloft.net>
7674 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
7676 * configure: Rebuild.
7678 2010-03-11 Martin Jambor <mjambor@suse.cz>
7680 PR tree-optimization/43257
7681 * tree.c (assign_assembler_name_if_neeeded): New function.
7682 (free_lang_data_in_cgraph): Assembler name assignment moved to the
7684 * tree.h (assign_assembler_name_if_neeeded): Declare.
7685 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
7686 the function if needed.
7688 2010-03-11 Chris Demetriou <cgd@google.com>
7690 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
7691 include/stdint-gcc.h, and include/stdint.h world-readable.
7693 2010-03-11 Richard Guenther <rguenther@suse.de>
7695 PR tree-optimization/43255
7696 * tree-vrp.c (process_assert_insertions_for): Do not insert
7697 asserts for trivial conditions.
7699 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7701 PR tree-optimization/43280
7702 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
7703 generation. Move calculation of size out of the if branch.
7704 (find_bswap): Modify compare number generation.
7706 2010-03-11 Richard Guenther <rguenther@suse.de>
7709 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
7710 (input_gimple_stmt): Fixup handled component types during
7711 operand read. Also fix up decls in ADDR_EXPRs.
7713 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
7715 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
7716 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
7718 2010-03-10 Jan Hubicka <jh@suse.cz>
7721 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
7722 * varasm.c (get_variable_section): Don't do that here...
7723 (make_decl_rtl): ... and here.
7724 (do_assemble_alias): Produce decl RTL.
7725 (assemble_alias): Likewise.
7727 2010-03-10 Jakub Jelinek <jakub@redhat.com>
7730 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
7731 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
7733 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
7734 (based_loc_descr): Only express drap or vdrap regno based expressions
7735 using DW_OP_fbreg when not optimizing.
7736 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
7737 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
7738 REG_CFA_SET_VDRAP note.
7740 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
7742 PR tree-optimization/43236
7743 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
7744 error in calculation of base address in reverse iteration case.
7745 (generate_builtin): Take number of latch executions if the statement
7748 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
7751 * tree-eh.c: Include pointer-set.h.
7752 (lower_eh_dispatch): Filter out duplicate case labels and
7753 remove the unneeded edge when the label is unused. Return
7754 true when some edges are removed.
7755 (execute_lower_eh_dispatch): When any lowering resulted in
7756 removing an edge, also delete unreachable blocks.
7758 2010-03-10 Jakub Jelinek <jakub@redhat.com>
7761 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7762 UNSPEC_MACHOPIC_OFFSET.
7764 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
7767 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7768 (m68k_delegitimize_address): New function.
7770 2010-03-09 Jakub Jelinek <jakub@redhat.com>
7773 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
7776 * var-tracking.c (adjust_sets): New function.
7777 (count_with_sets, add_with_sets): Use it.
7778 (get_adjusted_src): New inline function.
7779 (add_stores): Use it.
7782 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
7783 call cselib_dummy_expand_value_rtx_cb instead of
7784 cselib_expand_value_rtx_cb.
7787 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
7788 * config/i386/i386.c: Include debug.h and dwarf2out.h.
7789 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
7790 and .cfi_endproc around the pic thunks.
7791 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
7792 all queued unwind info register saves are saved before the call.
7793 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
7794 considered as sp-=4 for unwind info and the pop as sp+=4 which
7795 also clobbers dest, but doesn't actually restore it.
7798 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
7799 RTX_FRAME_RELATED_P.
7801 2010-03-09 Jie Zhang <jie@codesourcery.com>
7803 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
7804 whitespaces in output template.
7806 2010-03-09 Jie Zhang <jie@codesourcery.com>
7808 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
7811 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7813 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
7814 builtins.exp in a separate job.
7816 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7818 * graphite-sese-to-poly.c (add_param_constraints): Use
7819 lower_bound_in_type and upper_bound_in_type.
7821 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7823 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
7824 instead of unsigned_type_node.
7826 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7827 Reza Yazdani <reza.yazdani@amd.com>
7830 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
7831 on pointer type parameters.
7833 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7837 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
7838 handle conversions from pointer to integers.
7839 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
7840 induction variable, to be able to work with code generated by CLooG.
7841 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
7842 (build_poly_scop): Bail out if we cannot codegen a loop.
7844 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7846 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
7847 code generation with gloog_error.
7849 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7851 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
7852 Call fold_convert on all the returned values.
7853 (expand_scalar_variables_expr): Pass to
7854 expand_scalar_variables_ssa_name the type of the resulting expression.
7856 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7858 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
7859 ppl_min_for_le_pointset.
7860 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
7861 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
7863 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7865 * graphite-dependences.c (map_into_dep_poly): Removed.
7866 (dependence_polyhedron_1): Use combine_context_id_scat.
7868 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7870 * graphite-poly.h (struct poly_scattering): Add layout documentation.
7871 (struct poly_bb): Same.
7872 (combine_context_id_scat): New.
7874 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7877 * sese.c (name_defined_in_loop_p): Return false for default
7880 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7882 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
7883 and clean up the logic.
7885 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7887 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
7890 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7892 * var-tracking.c (remove_cselib_value_chains): Define only for
7894 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
7895 delete_slot_part, emit_notes_for_differences_1): Don't call
7896 remove_cselib_value_chains here.
7897 (set_slot_part, emit_notes_for_differences_2): Don't call
7898 add_cselib_value_chains here.
7899 (preserved_values): New vector.
7900 (preserve_value): New function.
7901 (add_uses, add_stores, vt_add_function_parameters): Use it
7902 instead of cselib_preserve_value.
7903 (changed_values_stack): New vector.
7904 (check_changed_vars_0): New function.
7905 (check_changed_vars_1, check_changed_vars_2): Use it.
7906 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
7907 changed_values_stack VALUEs.
7908 (vt_emit_notes): For all preserved_values call
7909 add_cselib_value_chains. If ENABLE_CHECKING call
7910 remove_cselib_value_chains before verifying value_chains is empty.
7911 Initialize and free changed_values_stack.
7912 (vt_initialize): Initialize preserved_values.
7913 (vt_finalize): Free preserved_values.
7915 2010-03-08 Richard Guenther <rguenther@suse.de>
7917 PR tree-optimization/43269
7918 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
7921 2010-03-08 Martin Jambor <mjambor@suse.cz>
7923 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
7924 (ipa_is_param_called): Removed.
7925 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
7926 (ipa_print_node_params): Do not print the called flag.
7927 (ipa_write_node_info): Do not stream the called flag.
7928 (ipa_read_node_info): Likewise.
7930 2010-03-07 Jakub Jelinek <jakub@redhat.com>
7933 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
7934 * cselib.c (struct expand_value_data): Add dummy field.
7935 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
7937 (cselib_dummy_expand_value_rtx_cb): New function.
7938 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
7940 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
7941 * var-tracking.c: Include pointer-set.h.
7942 (variable): Change n_var_parts to char from int. Add
7943 cur_loc_changed and in_changed_variables fields.
7944 (variable_canonicalize): Remove.
7945 (shared_var_p): New inline function.
7946 (unshare_variable): Maintain cur_loc_changed and
7947 in_changed_variables fields. If var was in changed_variables,
7948 replace it there with new_var. Just copy cur_loc instead of
7949 resetting it to something else.
7950 (variable_union): Don't recompute cur_loc. Use shared_var_p.
7951 (dataflow_set_union): Don't call variable_canonicalize.
7952 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
7953 of their DEBUG_EXPR_TREE_DECLs.
7954 (canonicalize_loc_order_check): Verify that cur_loc is NULL
7955 and in_changed_variables and cur_loc_changed is false.
7956 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
7957 and cur_loc_changed. Don't update cur_loc here.
7958 (variable_merge_over_src): Don't call variable_canonicalize.
7959 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
7960 removing loc that is equal to cur_loc, clear cur_loc,
7961 set cur_loc_changed and ensure variable_was_changed is called.
7962 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
7963 compare pointers in cur_loc check, if it is equal to loc,
7964 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
7965 (variable_different_p): Remove compare_current_location argument,
7966 don't compare cur_loc.
7967 (dataflow_set_different_1): Adjust variable_different_p caller.
7968 (variable_was_changed): If dv had some var in changed_variables
7969 already, reset in_changed_variables flag for it and propagate
7970 cur_loc_changed over to the new variable. On empty var
7971 always set cur_loc_changed. Set in_changed_variables on whatever
7972 var is added to changed_variables.
7973 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
7974 Use shared_var_p. When removing loc that is equal to cur_loc,
7975 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
7976 end, don't set it to something else, just call variable_was_changed.
7977 (delete_slot_part): Use shared_var_p. When cur_loc equals to
7978 loc being removed, clear cur_loc and set cur_loc_changed.
7979 Set cur_loc_changed if all locations have been removed.
7980 (struct expand_loc_callback_data): New type.
7981 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
7982 allocated. Always create SUBREGs if simplify_subreg failed.
7983 Prefer to use cur_loc, when that fails and still in
7984 changed_variables (and seen first time) recompute it. Set
7985 cur_loc_changed of variables which had to change cur_loc and
7986 compute elcd->cur_loc_changed if any of the subexpressions used
7987 had to change cur_loc.
7988 (vt_expand_loc): Adjust to pass arguments in
7989 expand_loc_callback_data structure.
7990 (vt_expand_loc_dummy): New function.
7991 (emitted_notes): New variable.
7992 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
7993 that weren't used for any other decl in current
7994 emit_notes_for_changes call call vt_expand_loc_dummy to update
7995 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
7996 first loc_chain location if NULL before. Always use just
7997 cur_loc instead of first loc_chain location. When cur_loc_changed
7998 is false, when not --enable-checking=rtl just don't emit any note.
7999 When rtl checking, compute the note and assert it is the same
8000 as previous note. Clear cur_loc_changed and in_changed_variables
8001 at the end before removing from changed_variables.
8002 (check_changed_vars_3): New function.
8003 (emit_notes_for_changes): Traverse changed_vars to call
8004 check_changed_vars_3 on each changed var.
8005 (emit_notes_for_differences_1): Clear cur_loc_changed and
8006 in_changed_variables. Recompute cur_loc of new_var.
8007 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
8008 (vt_emit_notes): Initialize and destroy emitted_notes.
8010 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
8012 PR rtl-optimization/42220
8013 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
8014 Use verify_reg_tracked to determine if we should use OP_OUT rather
8016 (build_def_use): If we see an in-out operand for a register that we
8017 know nothing about, treat is an output if possible, fail the block if
8020 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8023 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
8026 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8029 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
8030 uses of relevant DEFs that are dead outside the loop too.
8032 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8034 * var-tracking.c (dataflow_set_merge): Swap src and src2.
8036 2010-01-13 Jakub Jelinek <jakub@redhat.com>
8038 * var-tracking.c (values_to_unmark): New variable.
8039 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8040 values_to_unmark vector. Moved body to...
8041 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
8042 instead queue it into values_to_unmark vector.
8043 (vt_find_locations): Free values_to_unmark vector.
8045 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
8047 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
8048 (site.exp): Export them when plugins are enabled.
8050 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
8053 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
8055 (chrec_fold_multiply): Same.
8057 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8060 * c-decl.c (build_compound_literal): Return early if init is
8063 2010-03-04 Martin Jambor <mjambor@suse.cz>
8065 PR tree-optimization/43164
8066 PR tree-optimization/43191
8067 * tree-sra.c (type_consists_of_records_p): Reject records with
8068 zero-size bit-fields at the end.
8070 2010-03-04 Mike Stump <mikestump@comcast.net>
8072 * Makefile.in (TAGS): Remove *.y.
8074 2010-03-04 Richard Guenther <rguenther@suse.de>
8076 PR tree-optimization/40761
8077 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
8079 (my_rev_post_order_compute): New function.
8080 (init_pre): Call it.
8082 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
8085 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
8086 decrease the cost of an IV candidate when the cost is infinite.
8088 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8090 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
8091 Use '3DNow!' for the extension of that name, ensure normal space
8093 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
8095 2010-03-03 Jeff Law <law@redhat.com>
8097 * PR middle-end/32693
8098 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
8099 than gen_rtx_SUBREG.
8100 (extract_bit_field_1): Likewise.
8102 2010-03-03 Janis Johnson <janis187@us.ibm.com>
8104 * doc/sourcebuild.texi (Test directives): Document that arguments
8105 include-opts and exclude-opts are now optional for dg-skip-if,
8106 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
8108 2010-03-03 Jason Merrill <jason@redhat.com>
8111 * cgraph.h (varpool_node): Add extra_name field.
8112 * varpool.c (varpool_extra_name_alias): New.
8113 (varpool_assemble_decl): Emit extra name aliases.
8114 (varpool_mark_needed_node): Look past an extra name alias.
8115 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
8116 * lto-streamer-in.c (lto_input_tree): Read it.
8117 * lto-streamer-out.c (output_unreferenced_globals): Write it.
8119 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
8121 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
8122 (sparc*-*-solaris2*): ...this.
8124 2010-03-03 Jakub Jelinek <jakub@redhat.com>
8127 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
8128 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
8129 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
8130 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
8133 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
8134 fallthrough to default handling, just with want_address 0 instead of 2.
8135 For single element lists, add_AT_loc directly, otherwise create an
8136 artificial variable DIE and stick location list to it.
8139 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
8140 (VAL_EXPR_HAS_REVERSE): Define.
8141 (reverse_op): New function.
8142 (add_stores): For reversible operations add an extra MO_VAL_USE.
8144 2010-03-02 Jason Merrill <jason@redhat.com>
8146 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
8148 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
8150 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
8151 (sparc64-*-linux*): Likewise.
8152 (sparc64-*-solaris2*): Include assembler files before linker ones.
8153 (sparc-*-solaris2*): Simplify and reorder to match previous case.
8154 * config/sparc/gas.h: Delete.
8155 * config/sparc/sol2-64.h: Add copyright notice.
8156 * config/sparc/sol2-gas-bi.h: Likewise.
8157 * config/sparc/sol2-gld.h: Likewise.
8158 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
8159 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
8160 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
8161 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
8162 (sparc_elf_asm_named_section): Rename into...
8163 (sparc_solaris_elf_asm_named_section): ...this. Always define.
8165 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
8167 * config/alpha/alpha.c (override_options): Fix -mtune error message.
8169 2010-03-02 Jeff Law <law@redhat.com>
8172 * reload1.c (rtx_p, substitute_stack): Declare.
8173 (substitute): Record addresses of changed rtxs.
8174 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
8175 Restore the original rtx when complete.
8176 (reload): Free subsitute_stack when complete.
8178 2010-03-02 Janis Johnson <janis187@us.ibm.com>
8180 * doc/gccint.texi (menu): Add Testsuites as a chapter.
8181 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
8183 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
8184 LTO Testing, gcov Testing, profopt Testing, compat Testing,
8185 Torture Tests): Change from subsection to section.
8187 2010-03-02 Jakub Jelinek <jakub@redhat.com>
8188 Steven Bosscher <steven@gcc.gnu.org>
8190 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
8193 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
8196 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
8197 the assignment from the new induction variable to the assignment
8198 of the value from the original loop PHI function.
8200 2010-03-01 Janis Johnson <janis187@us.ibm.com>
8201 Daniel Jacobowitz <dan@codesourcery.com>
8203 * doc/sourcebuild.texi (Test directives): Clarify options to
8206 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8208 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
8209 Disable cfi directives unless GCC and gas agree on using read-only
8210 .eh_frame sections for 64-bit.
8211 * configure: Regenerate.
8213 2010-03-01 Richard Guenther <rguenther@suse.de>
8215 PR tree-optimization/43220
8216 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
8217 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
8219 2010-03-01 Richard Guenther <rguenther@suse.de>
8220 Martin Jambor <mjambor@suse.cz>
8223 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
8224 gimplified parameters.
8226 2010-03-01 Christian Bruel <christian.bruel@st.com>
8228 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
8230 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8232 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
8234 2010-03-01 Richard Guenther <rguenther@suse.de>
8237 * expr.c (expand_assignment): Use the alias-oracle to tell
8238 if the rhs aliases the result decl.
8240 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8243 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
8244 to sol_gt_pch_get_address.
8245 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
8246 64-bit, SPARC and x86.
8247 (sol_gt_pch_get_address): New function.
8249 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
8251 * toplev.h (inform_n, error_n): Declare.
8252 * diagnostic.c (inform_n, error_n): New function.
8254 2010-03-01 Jakub Jelinek <jakub@redhat.com>
8256 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
8257 has no rtl yet when processing local_decls, queue it and recheck
8258 if deferred stack allocation hasn't assigned it rtl.
8260 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
8262 * config/sh/sh.c (unspec_bbr_uid): New.
8263 (gen_block_redirect): Use it instead of INSN_UID.
8264 (gen_far_branch): Likewise.
8266 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
8268 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
8269 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
8271 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8273 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
8274 (Warning Options): -Wno-conversion-null is valid for
8275 Objective-C++ as well.
8276 * doc/tm.texi (Named Address Spaces): Likewise.
8277 * doc/plugins.texi (Plugins): Replace TABs with spaces.
8278 * doc/tree-ssa.texi (Tree SSA): Likewise.
8280 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8283 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
8284 by default. Don't set the default arch for
8285 i[34567]86-*-darwin*|x86_64-*-darwin*.
8287 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8290 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
8291 default. Set the default 32bit/64bit archs with $with_arch
8292 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
8294 2010-02-27 Richard Guenther <rguenther@suse.de>
8296 PR tree-optimization/43186
8297 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
8298 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
8299 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
8300 unroller iterations.
8302 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8304 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
8305 required and i[34567]86-*-* targets don't support 64bit ISA.
8307 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
8310 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8313 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
8315 * config.gcc: Set the default arch at least to Prescott for
8316 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
8317 if SSE math is enabled.
8319 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8321 * diagnostic.c (diagnostic_initialize): Update.
8322 (diagnostic_report_diagnostic): Test inhibit_notes_p for
8324 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
8325 (diagnostic_inhibit_notes): New.
8326 * toplev.c (process_options): inhibit notes with -fcompare-debug.
8328 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8331 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
8332 * doc/standards.texi: Likewise.
8333 * doc/extend.texi: Likewise.
8334 * doc/trouble.texi: Likewise.
8335 * doc/cppopts.texi: Likewise.
8336 * doc/install.texi: Likewise.
8337 * c.opt (std=c90,std=gnu90): New options.
8338 * c-opts.c (c_common_handle_option): Handle them.
8340 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8343 * c-decl.c (undeclared_variable): Use an informative note.
8345 2010-02-26 Richard Guenther <rguenther@suse.de>
8347 PR tree-optimization/43186
8348 * gimple.h (gimple_fold): Remove.
8349 * gimple.c (gimple_fold): Remove. Inline into single user ...
8350 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
8351 Try harder for conditions.
8353 2010-02-26 Jakub Jelinek <jakub@redhat.com>
8356 * function.c (used_types_insert): Don't skip through named pointer
8357 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
8358 and it is different from the main variant's type.
8360 2010-02-26 Nick Clifton <nickc@redhat.com>
8362 * config/rx/rx.md (sminsi3): Remove bogus alternative.
8364 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
8366 * config.gcc: Support --with-fpmath=sse for x86.
8368 * config/i386/ssemath.h: New.
8370 * doc/install.texi (--with-fpmath=sse): Documented.
8372 2010-02-26 Richard Guenther <rguenther@suse.de>
8374 PR tree-optimization/43188
8375 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
8376 vector types of over-aligned element type.
8378 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
8381 * config/i386/i386.c (expand_vec_perm_blend): Use correct
8382 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
8384 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8386 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
8388 2010-02-26 Jakub Jelinek <jakub@redhat.com>
8390 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
8391 * var-tracking.c: Include diagnostic.h.
8392 (debug_dv): New function.
8393 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
8396 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
8397 (add_value_chain, add_value_chains, remove_value_chain,
8398 remove_value_chains): Handle DEBUG_EXPRs.
8399 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
8402 * regcprop.c (struct queued_debug_insn_change): New type.
8403 (struct value_data_entry): Add debug_insn_changes field.
8404 (struct value_data): Add n_debug_insn_changes field.
8405 (debug_insn_changes_pool): New variable.
8406 (free_debug_insn_changes, apply_debug_insn_changes,
8407 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
8408 (kill_value_one_regno): Call free_debug_insn_changes if needed.
8409 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
8411 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
8413 (copyprop_hardreg_forward_1): Don't call apply_change_group for
8414 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
8415 changes, call cprop_find_used_regs via note_stores.
8416 (copyprop_hardreg_forward): When copying vd from predecessor
8417 which has any queued DEBUG_INSN changes, make sure the pointers are
8418 cleared. At the end call df_analyze and then if there are any
8419 DEBUG_INSN changes queued at the end of some basic block for still
8420 live registers, apply them.
8421 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
8423 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
8425 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
8428 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
8430 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
8431 targets. Set the default with_cpu/with_arch from arch/cpu.
8432 Allow x86-64 and native for with_cpu/with_arch.
8434 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
8436 * ebitmap.c: Change calls to verify_popcount with calls to
8437 sbitmap_verify_popcount.
8438 (ebitmap_clear_bit): Fixed map->cacheindex test and
8439 map>cache update when bit clearing results in an empty
8442 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
8445 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
8446 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
8447 and support both V2DF and V2DI modes.
8448 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
8449 support both V2DF and V2DI modes.
8450 (general): Delete trailing whitespace from a few patterns.
8452 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8453 V2DF/V2DI interleave high/low builtins.
8455 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
8458 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
8459 interleave high/low functions.
8461 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
8463 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
8464 #pragma extern_prefix.
8466 2010-02-25 Jakub Jelinek <jakub@redhat.com>
8469 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
8470 BLKmode, assert op0 is a MEM and just adjust its mode.
8473 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
8474 if bitpos isn't multiple of mode's bitsize.
8476 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8478 * c.opt (-ftemplate-depth=): New.
8479 (-ftemplate-depth-): Deprecate.
8480 * optc-gen.awk: Handle -ftemplate-depth=.
8481 * opth-gen.awk: Likewise.
8482 * c-opts.c (c_common_handle_option): Likewise.
8483 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
8485 2010-02-24 Jason Merrill <jason@redhat.com>
8487 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
8489 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8491 * cfg.c (alloc_aux_for_block): Remove inline.
8492 (alloc_aux_for_edge): Likewise.
8494 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8496 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
8498 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8500 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
8501 * config/i386/sol2-gas.h: New file.
8502 * config.gcc (i[34567]86-*-solaris2*): Use it.
8504 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8507 * c-typeck.c (ep_convert_and_check): New.
8508 (build_conditional_expr): Use it.
8509 (build_binary_op): Likewise.
8511 2010-02-24 Jakub Jelinek <jakub@redhat.com>
8513 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
8516 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
8517 bounds even for -O+.
8518 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
8519 expr needs to have DECL_NAME set.
8521 2010-02-24 Nick Clifton <nickc@redhat.com>
8523 * config/mep/mep.c: Include gimple.h.
8524 (mep_function_uses_sp): Delete unused function.
8525 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
8526 parameters. Use unsigned integers to count args. Return a
8527 NULL_RTX instead of an error_mark_node. Toidy up formatting.
8529 2010-02-23 Jakub Jelinek <jakub@redhat.com>
8532 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
8533 greater or equal to nelt instead of 2 * nelt.
8534 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
8537 2010-02-23 Jason Merrill <jason@redhat.com>
8540 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
8541 in cfun->local_decls even if they have register types.
8544 * stor-layout.c (place_field): Don't warn about unnecessary
8545 DECL_PACKED if the type is packed.
8547 2010-02-23 Jakub Jelinek <jakub@redhat.com>
8550 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
8551 GOTOFF relocs, even when the base reg isn't pic pointer.
8553 2010-02-23 Michael Matz <matz@suse.de>
8556 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
8557 (expand_gimple_basic_block): Generate and use debug temps if there
8558 are debug uses left after the last real use of TERed ssa names.
8559 Unlink debug immediate uses when they are expanded.
8561 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8564 * config/i386/i386.c (override_options): Reorganise to provide
8565 better error messages.
8567 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8570 * graphite-scop-detection.c (create_single_exit_edge): Move
8571 the call to find_single_exit_edge to....
8572 (create_sese_edges): ...here. Don't handle multiple edges
8573 exiting the function.
8574 (build_graphite_scops): Don't handle multiple edges
8575 exiting the function.
8577 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8580 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
8581 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
8583 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8586 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
8588 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8591 * c-typeck.c (convert_arguments): Print declaration location.
8592 * c-common.c (validate_nargs): Rename as
8593 builtin_function_validate_nargs.
8594 (check_builtin_function_arguments): Update.
8596 2010-02-22 Richard Guenther <rguenther@suse.de>
8599 * tree-inline.c (declare_return_variable): Use the type of
8600 the call stmt lhs if available.
8602 2010-02-22 Duncan Sands <baldrick@free.fr>
8604 * passes.c (register_pass): Always consider all pass lists when
8605 ref_pass_instance_number is zero.
8607 2010-02-22 Richard Guenther <rguenther@suse.de>
8609 PR tree-optimization/42749
8610 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
8611 parameter. Do arithmetic in the original type.
8612 (update_accumulator_with_ops): Likewise.
8613 (adjust_accumulator_values): Adjust.
8615 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8617 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
8618 (QI to BLKmode splitter): New splitter.
8620 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
8622 * config/i386/i386.c (initial_ix86_tune_features): Turn on
8623 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
8625 2010-02-22 Richard Guenther <rguenther@suse.de>
8627 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
8629 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
8631 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
8632 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
8633 ($(T)crti.o, $(T)crtn.o): Remove rules.
8635 2010-02-21 Tobias Burnus <burnus@net-b.de>
8638 * doc/invoke.texi (-fassociative-math): Document that this
8639 option is automatically enabled for Fortran.
8641 2010-02-20 David S. Miller <davem@davemloft.net>
8643 * configure.ac: Test if linker and assembler properly support
8644 GOTDATA_OP relocations.
8645 * configure: Rebuild.
8646 * config.in: Likewise.
8647 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
8648 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
8649 (movsi_high_pic): Likewise.
8650 (movdi_lo_sum_pic): Likewise.
8651 (movdi_high_pic): Likewise.
8652 (movsi_pic_gotdata_op): New pattern.
8653 (movdi_pic_gotdata_op): Likewise.
8654 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
8655 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
8657 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
8660 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
8661 attribute to ssemul.
8662 (xop_mulv2div2di3_high): Ditto.
8664 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8667 * c.opt (Wconversion-null): New option.
8668 * doc/invoke.texi (Wconversion-null): Document.
8670 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8672 * common.opt (Wlarger-than-): Add Undocumented.
8674 2010-02-19 Mike Stump <mikestump@comcast.net>
8676 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
8678 2010-02-19 Jason Merrill <jason@redhat.com>
8681 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
8682 * configure: Likewise.
8684 2010-02-20 Alan Modra <amodra@gmail.com>
8687 * cgraph.h (cgraph_make_decl_local): Declare.
8688 * cgraph.c (cgraph_make_decl_local): New function.
8689 (cgraph_make_node_local): Use it.
8690 * cgraphunit.c (cgraph_function_versioning): Likewise.
8691 * ipa.c (function_and_variable_visibility): Likewise.
8693 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8696 * except.c (sjlj_emit_function_enter): Don't call
8697 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
8699 * rtl.h (add_reg_br_prob_note): Remove prototype.
8701 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8704 * c-common.c (conversion_warning): Remove widening conversions
8705 before checking the conversion of integers to reals.
8707 2010-02-19 Mike Stump <mikestump@comcast.net>
8710 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
8713 * cgraphunit.c (process_function_and_variable_attributes): Check
8714 DECL_PRESERVE_P instead of looking up attribute "used".
8715 * ipa-pure-const.c (check_decl): Likewise.
8716 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
8717 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
8718 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
8719 instead of attribute "used".
8720 * config/sol2-c.c (solaris_pragma_init): Likewise.
8721 (solaris_pragma_fini): Likewise.
8723 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8725 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
8726 Use XCNEW instead of xcalloc.
8727 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
8728 XNEW instead of xmalloc.
8729 (get_fields): Use XNEWVEC instead of xmalloc.
8732 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
8733 populate vars array.
8734 (create_new_general_access): For debug stmts just reset value.
8735 (get_stmt_accesses): For accesses within debug stmts just record them
8736 using add_access_to_acc_sites instead of preventing the peeling or
8737 counting them as accesses.
8740 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
8742 2010-02-19 Richard Guenther <rguenther@suse.de>
8744 PR tree-optimization/42916
8745 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
8748 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
8750 * configure.ac: Replace all uses of changequote in macro arguments
8751 with proper quoting.
8753 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8756 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
8758 2010-02-19 Richard Guenther <rguenther@suse.de>
8760 PR tree-optimization/42944
8761 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
8762 test for aliasing with errno.
8764 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8767 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
8768 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
8769 * dojump.c: Include output.h.
8770 (inv): New inline function.
8771 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
8772 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
8773 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
8774 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
8775 argument, pass it down to other calls.
8776 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
8777 add REG_BR_PROB note to the conditional jump.
8778 * cfgexpand.c (add_reg_br_prob_note): Removed.
8779 (expand_gimple_cond): Don't call it, add the probability
8780 as last argument to jumpif_1/jumpifnot_1.
8781 * Makefile.in (dojump.o): Depend on output.h.
8782 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
8784 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
8785 * stmt.c (do_jump_if_equal): Likewise.
8786 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
8787 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8788 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
8790 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
8791 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
8792 jumpifnot_1 callers.
8793 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
8795 (store_expr): Adjust jumpifnot caller.
8796 (store_constructor): Adjust jumpif caller.
8799 * gimplify.c (gimple_boolify): For __builtin_expect call
8800 gimple_boolify also on its first argument.
8802 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
8804 * configure.ac (gnu-unique-object): Wrap regexps using [] in
8806 (__stack_chk_fail): Ditto. Remove quadrigraphs.
8807 * configure: Regenerated.
8809 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8811 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
8812 lang_hooks.types_compatible_p instead of comptypes.
8814 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8816 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
8817 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
8818 if __prefer_thumb__ is defined.
8820 2010-02-18 Martin Jambor <mjambor@suse.cz>
8822 PR tree-optimization/43066
8823 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
8824 array with zero-sized element type.
8826 2010-02-18 Jakub Jelinek <jakub@redhat.com>
8828 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
8829 rtx, allocate struct var_loc_node here and return it to the
8830 caller, and only if it is actually needed.
8831 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
8832 move it earlier and return immediately if it returns NULL.
8834 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
8836 * config/sparc/gas.h: New file. Restore
8837 TARGET_ASM_NAMED_SECTION to its ELF default.
8838 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
8840 * config/sparc/sparc.c (sparc_elf_asm_named_section):
8841 Likewise. Add ATTRIBUTE_UNUSED to prototype.
8842 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
8843 after sparc/sysv4.h.
8845 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
8847 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
8849 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
8851 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
8852 patterns from predicated pattern.
8854 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
8857 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
8858 for insn mnemonic suffix.
8860 2010-02-17 Richard Guenther <rguenther@suse.de>
8862 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
8865 2010-02-17 Jakub Jelinek <jakub@redhat.com>
8868 * caller-save.c (save_call_clobbered_regs): If BB ends with
8869 a DEBUG_INSN, move any notes in between last real insn and the last
8870 DEBUG_INSN after the last DEBUG_INSN.
8872 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
8874 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
8875 Fix return type. Fix argument type. Explain meaning of return value.
8877 2010-02-16 Richard Guenther <rguenther@suse.de>
8879 PR tree-optimization/41043
8880 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
8881 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
8883 (vrp_visit_phi_node): ... but only for loop PHI nodes.
8885 2010-02-16 Ira Rosen <irar@il.ibm.com>
8887 PR tree-optimization/43074
8888 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
8889 * tree-vect-loop.c (vect_analyze_loop_operations): Add
8890 vectorizable cycles in hybrid SLP check.
8891 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
8893 2010-02-16 Richard Guenther <rguenther@suse.de>
8895 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
8896 (true_dependence): If memrefs_conflict_p computes must-alias
8897 trust it. Move TBAA check after offset-based disambiguation.
8898 (canon_true_dependence): Likewise.
8900 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
8902 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
8903 * doc/invoke.texi: Document it.
8904 * var-tracking.c: Include toplev.h and params.h.
8905 (vt_find_locations): Return bool indicating success. Compute
8906 hash sizes unconditionally. Check new parameter, report.
8907 (variable_tracking_main_1): Check vt_find_locations results and
8908 retry. Renamed from...
8909 (variable_tracking_main): ... this. New wrapper to preserve
8910 flag_var_tracking_assignments.
8911 * Makefile.in (var-tracking.o): Adjust dependencies.
8913 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
8914 Jakub Jelinek <jakub@redhat.com>
8917 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
8918 if weak_import attribute is present.
8919 * config/darwin.c (machopic_select_section): Likewise.
8921 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
8923 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
8924 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
8925 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
8926 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
8928 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
8931 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8934 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
8935 Rewrite text to refer to the names.
8937 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
8939 * config/i386/i386-builtin-types.def
8940 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
8941 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
8942 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
8943 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
8944 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
8945 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
8946 IX86_BUILTIN_VPERMIL2PS256.
8947 (MULTI_ARG_4_DF2_DI_I): Defined.
8948 (MULTI_ARG_4_DF2_DI_I1): Defined.
8949 (MULTI_ARG_4_SF2_SI_I): Defined.
8950 (MULTI_ARG_4_SF2_SI_I1): Defined.
8951 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
8952 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
8953 __builtin_ia32_vpermil2ps256.
8954 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8955 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8956 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
8957 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8958 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8959 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
8960 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
8961 CODE_FOR_xop_vpermil2v8sf3.
8962 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
8963 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
8964 * config/i386/xopintrin.h (_mm_permute2_pd): New.
8965 (_mm256_permute2_pd): New.
8966 (_mm_permute2_ps): New.
8967 (_mm256_permute2_ps): New.
8969 2010-02-15 Nick Clifton <nickc@redhat.com>
8971 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
8972 boolean parameters. Use emit_jump_insn when emitting a pop
8973 instruction containing a return insn.
8974 (push): Use 'true' rather than '1' as second parameter to F.
8975 (h8300_expand_prologue): Likewise.
8976 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
8977 (h8300_expand_epilogue): Likewise.
8979 2010-02-15 Richard Guenther <rguenther@suse.de>
8982 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
8985 2010-02-15 Nick Clifton <nickc@redhat.com>
8987 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
8990 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
8992 * intl.c (fake_ngettext): New function.
8993 * intl.h (fake_ngettext): Declare.
8994 (ngettext): Define macro.
8995 * collect2.c (notice_translated): New function.
8996 (main): Use notice_translated and ngettext.
8997 * collect2.h (notice_translated): Declare.
8999 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
9001 * reorg.c (delete_computation): Comment fixes.
9002 * caller-save.c (setup_save_areas): Idem.
9003 * sel-sched-dump.c (dump_lv_set): Idem.
9006 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9008 * config/s390/s390.c (s390_sched_init): New function.
9009 (TARGET_SCHED_INIT): Target hook defined.
9011 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
9012 Jack Howarth <howarth@bromo.med.uc.edu>
9013 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9016 Partial revert of unintended change in fix for PR41605.
9017 * config/darwin.h: Fix typo.
9018 * config/darwin9.h: Same.
9020 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9022 * c-pch.c (pch_init): Clear v.
9024 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9027 * graphite-scop-detection.c (graphite_can_represent_scev): Call
9028 graphite_can_represent_init for MULT_EXPR.
9030 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9034 * graphite-sese-to-poly.c (remove_phi): New.
9035 (translate_scalar_reduction_to_array): Call remove_phi.
9037 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9040 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
9041 * graphite-clast-to-gimple.h (gloog): Update declaration.
9042 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
9043 * graphite-poly.h (struct poly_bb): Add missing comments.
9044 (struct scop): Add poly_scop_p field.
9046 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
9047 * graphite.c (graphite_transform_loops): Build the polyhedral
9048 representation for each scop before code generation.
9049 * sese.c (rename_variables_in_operand): Removed.
9050 (rename_variables_in_expr): Return the renamed expression.
9051 (rename_sese_parameters): New.
9052 * sese.h (rename_sese_parameters): Declared.
9054 2010-02-11 Richard Guenther <rguenther@suse.de>
9056 PR tree-optimization/42998
9057 * tree-ssa-pre.c (create_expression_by_pieces): Treat
9058 POINTER_PLUS_EXPR properly.
9060 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9061 Changpeng Fang <changpeng.fang@amd.com>
9064 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
9065 the cost of an IV candidate when the IV is used in a test against zero.
9067 * gcc.dg/tree-ssa/ivopts-3.c: New.
9069 2010-02-11 Richard Guenther <rguenther@suse.de>
9072 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
9073 pointer-vs-decl case by swapping refs. Handle some cases
9074 of pointer-vs-decl disambiguations more conservatively.
9075 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
9076 to false after expanding.
9078 2010-02-11 Richard Guenther <rguenther@suse.de>
9081 * gcc.c (process_command): Handle LTO file@offset case more
9084 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9086 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
9087 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
9089 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
9091 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
9092 if MEM's mode size isn't DWARF2_ADDR_SIZE.
9093 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
9094 Optimize eq/ne comparisons when both arguments are known to be
9096 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
9097 Don't mask operands unnecessarily if they are known to be already
9100 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
9102 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
9105 2010-02-10 Richard Guenther <rguenther@suse.de>
9107 PR tree-optimization/43017
9108 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
9109 for wrapping signed arithmetic.
9111 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9114 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
9115 if no debug info should be emitted for it.
9117 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
9119 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
9120 note when flag_exceptions is set.
9122 2010-02-10 Duncan Sands <baldrick@free.fr>
9124 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
9126 2010-02-10 Richard Guenther <rguenther@suse.de>
9129 * tree.c (get_unwidened): Handle constants.
9130 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
9132 2010-02-10 Martin Jambor <mjambor@suse.cz>
9135 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
9136 check for variable argument counts independently.
9138 2010-02-10 Christian Bruel <christian.bruel@st.com>
9141 * config/sh/sh.c (find_barrier): Increase length for non delayed
9142 conditional branches.
9144 2010-02-10 Christian Bruel <christian.bruel@st.com>
9146 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
9148 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9150 * builtins.c (set_builtin_user_assembler_name): Also handle
9151 ffs if int is smaller than word.
9153 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
9156 * ira-conflicts.c (get_dup): Remove.
9157 (process_reg_shuffles): Add new parameter. Use it as an
9158 additional guard for copy generation.
9159 (add_insn_allocno_copies): Rewrite.
9161 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
9163 * common.opt (fsched2-use-traces): Preserved for backward
9165 * doc/invoke.texi: Remove the documentation about option
9166 -fsched2-use-traces.
9167 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
9168 flag_sched2_use_traces.
9169 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
9170 the backward compatibility flag section.
9172 2010-02-09 Richard Guenther <rguenther@suse.de>
9174 PR tree-optimization/43008
9175 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
9176 make HEAP variables initialized from global memory if they
9177 are not known builtin functions.
9178 (find_func_aliases): Adjust.
9180 2010-02-09 Richard Guenther <rguenther@suse.de>
9182 PR tree-optimization/43000
9183 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
9184 arithmetic manually.
9186 2010-02-08 Jakub Jelinek <jakub@redhat.com>
9188 PR tree-optimization/42931
9189 * tree-loop-linear.c (try_interchange_loops): Don't call
9190 double_int_mul if estimated_loop_iterations failed.
9192 2010-02-08 Martin Jambor <mjambor@suse.cz>
9195 * tree-sra.c (build_accesses_from_assign): Do not mark in
9196 should_scalarize_away_bitmap if stmt has volatile ops.
9197 (sra_modify_assign): Do not process assigns piecemeal if if stmt
9200 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
9202 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
9204 2010-02-07 Adam Nemet <adambnmet@gmail.com>
9206 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
9209 2010-02-07 Andrew Pinski <pinskia@gmail.com>
9212 * df-core.c (df_finish_pass): Change type of saved_flags to int.
9214 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9217 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
9218 to unknown_dependence.
9219 (graphite_legal_transform_dr): Handle the unknown_dependence.
9220 (graphite_carried_dependence_level_k): Same.
9222 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9224 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
9226 2010-02-07 Richard Guenther <rguenther@suse.de>
9229 * expr.c (get_inner_reference): Always initialize *pbitsize.
9231 2010-02-07 Richard Guenther <rguenther@suse.de>
9234 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
9235 new ARRAY_REFs on variable size element or minimal index arrays.
9237 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
9238 gimple_fold_indirect_ref.
9240 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
9243 * arm.c (arm_override_options): Just return if the user has specified
9244 an invalid fpu name.
9246 2010-02-03 Jason Merrill <jason@redhat.com>
9249 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
9250 i386_pe_maybe_record_exported_symbol.
9252 2010-02-05 Steve Ellcey <sje@cup.hp.com>
9255 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9256 (pa_delegitimize_address): New function.
9258 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
9260 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
9261 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
9263 2010-02-05 Richard Guenther <rguenther@suse.de>
9266 * lto-streamer-in.c (get_resolution): Deal with references
9267 to undefined functions.
9269 2010-02-05 Richard Guenther <rguenther@suse.de>
9271 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
9272 (fold_const_aggregate_ref): Likewise.
9273 (ccp_fold_stmt): Substitute loads.
9274 (maybe_fold_reference): Verify types before substituting.
9276 (fold_gimple_assign): Unshare properly.
9277 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
9279 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
9281 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
9282 for rs6000_gen_cell_microcode.
9284 2010-02-04 Richard Guenther <rguenther@suse.de>
9286 PR rtl-optimization/42952
9287 * dse.c (const_or_frame_p): Remove MEM handling.
9289 2010-02-04 Nick Clifton <nickc@redhat.com>
9291 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9292 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9293 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
9294 (mn10300_asm_output_mi_thunk): New function.
9295 (mn10300_can_output_mu_thunk): New function.
9296 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
9297 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
9298 (FUNCTION_ARG): Delete incorrect comment.
9300 2010-02-03 Jason Merrill <jason@redhat.com>
9303 * fold-const.c (operand_equal_p): Handle erroneous types.
9305 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9307 * config/h8300/h8300.md (can_delay): Fix attibute condition.
9309 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
9311 PR rtl-optimization/42941
9312 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
9315 2010-02-03 Jason Merrill <jason@redhat.com>
9318 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
9320 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
9323 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
9324 (cselib_reset_table): Renamed from...
9325 (cselib_reset_table_with_next_value): ... this.
9326 (cselib_get_next_uid): Renamed from...
9327 (cselib_get_next_unknown_value): ... this.
9328 * cselib.c (next_uid): Renamed from...
9329 (next_unknown_value): ... this.
9330 (cselib_clear_table): Adjust.
9331 (cselib_reset_table): Adjust. Renamed from...
9332 (cselib_reset_table_with_next_value): ... this.
9333 (cselib_get_next_uid): Adjust. Renamed from...
9334 (cselib_get_next_unknown_value): ... this.
9335 (get_value_hash): Use hash.
9336 (cselib_hash_rtx): Likewise.
9337 (new_cselib_val): Adjust. Set and dump uid.
9338 (cselib_lookup_mem): Pass next_uid as hash.
9339 (cselib_subst_to_values): Likewise.
9340 (cselib_log_lookup): Dump uid.
9341 (cselib_lookup): Pass next_uid as hash. Adjust.
9342 (cselib_process_insn): Adjust.
9343 (cselib_init): Initialize next_uid.
9344 (cselib_finish): Adjust.
9345 (dump_cselib_table): Likewise.
9346 * dse.c (canon_address): Dump value uid.
9347 * print-rtl.c (print_rtx): Print value uid.
9348 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
9350 (dv_uid): New function, sort of renamed from...
9351 (dv_htab_hash): ... this, reimplemented in terms of it and...
9352 (dv_uid2hash): ... this. New.
9353 (variable_htab_eq): Drop excess assertions.
9354 (tie_break_pointers): Removed.
9355 (canon_value_cmp): Compare uids.
9356 (variable_post_merge_New_vals): Print uids.
9357 (vt_add_function_parameters): Adjust.
9358 (vt_initialize): Reset table. Adjust.
9360 2010-02-03 Richard Guenther <rguenther@suse.de>
9362 PR tree-optimization/42944
9363 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
9364 (call_may_clobber_ref_p_1): Likewise. Properly handle
9365 malloc and calloc clobbering errno.
9367 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
9369 * doc/invoke.texi: Fix name of sched1 dump.
9371 * opts.c (decode_options): Set flag_tree_switch_conversion
9372 only conditionally on optimize >= 2.
9374 * gcse.c: Assorted comment fixes in pass description.
9376 2010-02-03 Anthony Green <green@moxielogic.com>
9378 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
9379 nop padding in order to maintain alignment of storage location of
9380 target function address.
9381 (moxie_trampoline_init): Store target function address at newly
9383 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
9385 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
9387 2010-02-03 Richard Guenther <rguenther@suse.de>
9390 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
9392 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9394 * config.gcc: Reenable check for obsolete targets.
9395 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
9396 mips-sgi-irix6.[0-4]*.
9398 2010-02-02 Nick Clifton <nickc@redhat.com>
9400 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
9401 constant size of 4 as being the same as 0.
9402 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
9403 can take values in the range 0..4.
9405 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
9408 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
9409 as _darwin10_Unwind_FindEnclosingFunction().
9410 * libgcc-libsystem.ver: New.
9412 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
9415 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
9416 implicitly set registers.
9418 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
9420 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
9421 (arm_override_options): Allow automatic selection of the thread
9422 pointer register if thumb2.
9423 (legitimize_pic_address): Improve code sequences for Thumb2.
9424 (arm_call_tls_get_addr): Likewise.
9425 (legitimize_tls_address): Likewise.
9426 * arm.md (pic_load_addr_arm): Delete. Replace with ...
9427 (pic_load_addr_32bit): ... this. New named pattern.
9428 * thumb2.md (pic_load_addr_thumb2): Delete.
9429 (pic_load_dot_plus_four): Delete.
9430 (tls_load_dot_plus_four): New named pattern.
9432 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9435 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
9436 Document fix for TLS bug.
9438 2010-01-31 Richard Guenther <rguenther@suse.de>
9440 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
9441 conservatively correct.
9443 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9447 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9449 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9451 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9453 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
9455 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
9457 * config.gcc: Adjust order of makefile fragments for mingw targets.
9459 2010-01-31 Richard Guenther <rguenther@suse.de>
9462 * gimplify.c (gimplify_init_constructor): For volatile LHS
9463 initialize a temporary.
9465 2010-01-31 Matthias Klose <doko@ubuntu.com>
9467 * configure.ac: Fix __stack_chk_fail check for cross builds configured
9469 * configure: Regenerate.
9471 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
9473 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9474 the same alias set and their sizes different constantness.
9475 (aliasing_component_refs_p): Revert 2009-10-24 change.
9477 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9479 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
9482 2010-01-29 Richard Guenther <rguenther@suse.de>
9484 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
9485 Assert we successfully updated the call.
9487 2010-01-29 Jakub Jelinek <jakub@redhat.com>
9489 PR rtl-optimization/42889
9490 * df.h (df_set_bb_dirty_nonlr): New prototype.
9491 * df-core.c (df_set_bb_dirty_nonlr): New function.
9492 * df-scan.c (df_insn_rescan): Call it instead of
9493 df_set_bb_dirty for DEBUG_INSNs.
9495 2010-01-29 Richard Guenther <rguenther@suse.de>
9498 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
9499 quadratic behavior in most cases.
9501 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
9504 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
9505 in the call to gen_x86_movsicc_0_m1.
9507 2010-01-28 Richard Guenther <rguenther@suse.de>
9509 PR tree-optimization/42871
9510 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
9512 2010-01-28 Richard Guenther <rguenther@suse.de>
9514 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
9515 into call arguments.
9517 2010-01-28 Richard Guenther <rguenther@suse.de>
9520 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
9521 the forwarder if the destination is an EH landing pad.
9523 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
9525 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
9526 block list passed to gimple_duplicate_sese_tail.
9527 (parallelize_loops): Avoid parallelization when the function
9529 Avoid parallelization when the preheader is IRREDUCIBLE.
9530 Try to optimize when estimated_loop_iterations_int is unresolved.
9531 Add the loop's location to the dump file.
9532 * tree-cfg.c (add_phi_args_after_redirect): Remove.
9533 (gimple_duplicate_sese_tail): Remove the check for the latch.
9534 Redirect nexits to the exit block.
9535 Remove handling of the incoming edges to the latch.
9536 Redirect the backedge from the copied latch to the exit bb.
9538 2010-01-28 Michael Matz <matz@suse.de>
9541 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
9542 Wrap force_reg into a sequence, emit it before user.
9544 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
9546 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
9548 (arm_legacy_rev): Likewise.
9549 (thumb_legacy_rev): Likewise.
9551 2010-01-27 Jakub Jelinek <jakub@redhat.com>
9553 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
9554 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
9555 on MEM's address failed, try avoid_constant_pool_reference and
9556 recurse if it returned something different.
9557 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
9558 address, try avoid_constant_pool_reference and recurse if it
9559 returned something different.
9560 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
9561 address and avoid_constant_pool_reference returned something
9562 different, don't set have_address.
9564 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
9567 * var-tracking.c (val_store): Add modified argument, obey it.
9569 (count_uses): Move down logging of main.
9570 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
9571 don't need resolution.
9572 (emit_notes_in_bb): Likewise.
9574 2010-01-27 Richard Guenther <rguenther@suse.de>
9577 * tree-inline.c (remap_decl): Delay remapping of SSA name
9578 default definitions until we need them.
9580 2010-01-27 Jakub Jelinek <jakub@redhat.com>
9582 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9583 (rs6000_delegitimize_address): New function.
9585 * config/s390/s390.c (s390_delegitimize_address): Call
9586 delegitimize_mem_from_attrs.
9589 * tree-inline.c (cannot_copy_type_1): Removed.
9590 (copy_forbidden): Don't forbid copying of functions containing
9591 records/unions with variable length fields.
9593 2010-01-27 Christian Bruel <christian.bruel@st.com>
9597 * config/sh/sh.c (find_barrier): Increase length for non delayed
9598 conditional branches.
9600 2010-01-27 Matthias Klose <doko@ubuntu.com>
9602 * configure.ac (gnu-unique-object): Fix ldd version check.
9603 * configure: Regenerate.
9605 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9607 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
9609 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
9610 Test for HAVE_GNU_AS value.
9612 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9614 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
9615 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
9616 INT64_TYPE): Define.
9617 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
9618 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9619 INT_LEAST64_TYPE): Define.
9620 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
9621 UINT_LEAST64_TYPE): Define.
9622 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
9623 INT_FAST64_TYPE): Define.
9624 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9625 UINT_FAST64_TYPE): Define.
9626 (INTMAX_TYPE, UINTMAX_TYPE): Define.
9627 (INTPTR_TYPE, UINTPTR_TYPE): Define.
9628 (SIG_ATOMIC_TYPE): Define.
9630 2010-01-26 Richard Guenther <rguenther@suse.de>
9632 * df-scan.c (df_scan_set_bb_info): Remove assert.
9633 (df_insn_rescan_debug_internal): Merge asserts.
9634 (df_install_ref): Likewise.
9635 (df_mark_reg): Use bitmap_set_range.
9636 (df_hard_reg_used_p): Remove assert.
9637 (df_hard_reg_used_count): Likewise.
9639 2010-01-26 Richard Guenther <rguenther@suse.de>
9641 PR rtl-optimization/42685
9642 * web.c (web_main): Ignore DEBUG_INSNs.
9644 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
9646 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
9648 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
9649 Fix types of fndecl and arglist parameters.
9651 2010-01-26 Richard Guenther <rguenther@suse.de>
9654 * tree-eh.c (unsplit_eh): Skip debug insns.
9656 2010-01-26 Richard Guenther <rguenther@suse.de>
9658 PR tree-optimization/42250
9659 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
9661 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9664 * omp-low.c (expand_omp_sections): Only use single_pred if
9665 l2_bb is single_pred_p.
9667 2010-01-25 Christian Bruel <christian.bruel@st.com>
9670 * config/sh/sh.c (find_barrier): Increase length for non delayed
9671 conditional branches.
9672 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
9674 2010-01-24 David S. Miller <davem@davemloft.net>
9676 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
9677 define if not using GAS.
9678 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9679 Likewise. Delete SECTION_MERGE code, which is only applicable
9682 2010-01-24 Mark Mitchell <mark@codesourcery.com>
9685 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
9686 mangling of va_list in system headers.
9688 2010-01-23 Toon Moene <toon@moene.org>
9690 * tree-predcom.c (combine_chains): Return NULL, not false.
9692 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
9694 * tree-loop-distribution.c (distribute_loop): Fix declaration and
9695 initialization of variable res to agree with return type.
9697 2010-01-22 Steve Ellcey <sje@cup.hp.com>
9699 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
9700 * tree-sra.c: Add include of expr.h.
9702 2010-01-22 Jakub Jelinek <jakub@redhat.com>
9704 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
9705 insert the debug stmt on the single non-EH edge from the stmt.
9707 2010-01-22 Richard Henderson <rth@redhat.com>
9710 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
9711 the RHS until after generate_subtree_copies has insertted its
9712 code before the current statement.
9714 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
9716 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
9718 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
9720 2010-01-21 Martin Jambor <mjambor@suse.cz>
9722 PR tree-optimization/42585
9723 * tree-sra.c (struct access): New field grp_total_scalarization.
9724 (dump_access): Dump the new field.
9725 (should_scalarize_away_bitmap): New variable.
9726 (cannot_scalarize_away_bitmap): Likewise.
9727 (sra_initialize): Allocate new bitmaps.
9728 (sra_deinitialize): Free new bitmaps.
9729 (create_access_1): New function.
9730 (create_access): Parts moved to create_access_1.
9731 (type_consists_of_records_p): New function.
9732 (completely_scalarize_record): Likewise.
9733 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
9734 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
9735 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
9737 (analyze_all_variable_accesses): Completely scalarize small eligible
9740 2010-01-21 Martin Jambor <mjambor@suse.cz>
9742 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
9744 2010-01-21 Andrew Haley <aph@redhat.com>
9746 * gcc.c (process_command): Move lang_specific_driver before
9747 setting cc_libexec_prefix.
9749 2010-01-21 Richard Guenther <rguenther@suse.de>
9752 * fold-const.c (negate_expr_p): Pretend only negative
9753 real constants are easily negatable.
9755 2010-01-20 Janis Johnson <janis187@us.ibm.com>
9756 Jason Merrill <jason@redhat.com>
9758 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
9759 (TYPE_TRANSPARENT_AGGR): this, for union and record.
9760 * calls.c (initialize argument_information): Handle it.
9761 * c-common.c (handle_transparent_union_attribute): Use new name.
9762 * c-decl.c (finish_struct): Ditto.
9763 * c-typeck.c (type_lists_compatible_p): Ditto.
9764 (convert_for_assignment): Use new name and also handle record.
9765 * function.c (aggregate_value_p): Handle it.
9766 (pass_by_reference): Ditto.
9767 (assign_parm_data_types): Ditto.
9768 * print-tree.c (print_node): Ditto.
9769 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
9770 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
9771 * tree.c (first_field): New fn.
9773 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
9776 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
9777 even when linking statically, for now.
9779 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
9782 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
9783 without a cselib val.
9784 (count_uses): Accept MO_VAL_SET with no val on stores.
9785 (add_stores): Likewise.
9787 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9789 * var-tracking.c (check_value_val): Add a compile time assertion.
9790 (dv_is_decl_p): Simplify.
9791 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
9792 gcc_assert if ENABLE_CHECKING.
9794 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
9797 * var-tracking.c: Include tree-flow.h.
9798 (mem_dies_at_call): New.
9799 (dataflow_set_preserve_mem_locs): Use it.
9800 (dataflow_set_remove_mem_locs): Likewise.
9801 (dump_var): Renamed from dump_variable. Adjust all callers.
9802 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
9803 * Makefile.in (var-tracking.o): Adjust deps.
9805 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
9807 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
9809 2010-01-20 Richard Guenther <rguenther@suse.de>
9811 PR tree-optimization/42717
9812 * tree-ssa-dce.c (get_live_post_dom): Remove.
9813 (forward_edge_to_pdom): Take an arbitrary edge to copy
9814 degenerate PHI args from.
9815 (remove_dead_stmt): Use the first post-dominator even if it
9816 does not contain live statements as redirection destination.
9818 2010-01-20 Richard Guenther <rguenther@suse.de>
9820 * tree-inline.c (estimate_num_insns): Handle EH builtins.
9822 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9824 * sel-sched.c (create_speculation_check): Remove set but not used
9826 (try_transformation_cache): Remove set but not used variable ds.
9827 (calculate_privileged_insns): Remove set but not used variables
9828 cur_insn and min_spec_insn.
9829 (find_best_expr): Remove set but not used variable avail_n.
9830 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
9832 * cgraphunit.c (assemble_thunk): Remove set but not used variable
9834 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
9835 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
9838 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
9841 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
9842 cpu types. Add support for *-sse3 cpu types.
9843 (x86_64-*-*): Ditto.
9845 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9848 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
9849 argument, call initializer_constant_valid_p_1 instead of
9850 initializer_constant_valid_p, pass CACHE to it, return NULL
9851 immediately if first call returns NULL.
9852 (initializer_constant_valid_p_1): New function.
9853 (initializer_constant_valid_p): Use it.
9855 2010-01-20 Thomas Quinot <quinot@adacore.com>
9857 * tree.def (PLACEHOLDER_EXPR): Fix comment.
9859 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9861 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
9862 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
9863 (loc_list_from_tree): Don't handle unsigned division. Handle
9864 signed modulo using DW_OP_{over,over,div,mul,minus}.
9865 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
9866 modulo instead of signed.
9868 2010-01-20 DJ Delorie <dj@redhat.com>
9870 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
9872 (h8300_emit_stack_adjustment): Propogate it.
9874 (h8300_expand_prologue): Likewise.
9875 (h8300_expand_epilogue): Likewise.
9877 2010-01-19 Michael Matz <matz@suse.de>
9879 PR tree-optimization/41783
9880 * tree-data-ref.c (toplevel): Include flags.h.
9881 (dump_data_dependence_relation): Also dump the inputs if the
9882 result will be unknown.
9883 (split_constant_offset_1): Look through some conversions.
9884 * tree-predcom.c (determine_roots_comp): Restart a new chain if
9885 the offset from last element is too large.
9886 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
9887 (reassociate_to_the_same_stmt): Handle vector registers.
9888 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
9890 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
9891 wide_prolog_niters argument, emit widening instructions.
9892 (vect_do_peeling_for_alignment): Adjust caller, use widened
9893 variant of the iteration cound.
9894 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
9896 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9899 * config/arm/neon-testgen.m (emit_automatics): New parameter
9900 features. Adjust for Fixed_return_reg feature.
9901 (test_intrinsic): Call emit_automatics with new feature.
9902 * config/arm/neon.ml: Update copyright years.
9903 (features): New Fixed_return_reg feature.
9904 (ops): Update feature for Vget_low.
9906 2010-01-19 Jakub Jelinek <jakub@redhat.com>
9908 PR tree-optimization/42719
9909 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
9913 * fwprop.c (all_uses_available_at): Return false if def_set dest
9914 is a REG that is used in def_insn.
9916 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
9918 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
9920 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
9923 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
9925 * target.h (struct gcc_target) <secondary_reload>: Change type
9926 of last argument to secondary_reload_info *.
9928 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
9931 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
9932 memory references with unaligned offsets. Remove CQImode handling.
9933 (unaligned_memory_operand): Return 1 for memory references with
9934 unaligned offsets. Remove CQImode handling.
9936 2010-01-18 Richard Guenther <rguenther@suse.de>
9939 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
9942 2010-01-18 Richard Guenther <rguenther@suse.de>
9944 PR tree-optimization/42781
9945 * tree-ssa-structalias.c (find_what_var_points_to): Skip
9946 restrict processing only if the original variable was artificial.
9948 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
9950 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
9951 find number of popped argument bytes.
9953 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
9954 Fix the text that describes the return value for invalid insns.
9956 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
9958 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
9959 Clarify what 'cost of the -dependence' is. Fix quoting.
9961 * toplev.c (default_get_pch_validity): Rename argument to "sz".
9962 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
9964 2010-01-17 Jakub Jelinek <jakub@redhat.com>
9966 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9967 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
9969 2010-01-17 Richard Guenther <rguenther@suse.de>
9972 * function.c (split_complex_args): Take a VEC to modify.
9973 (assign_parms_augmented_arg_list): Build a VEC instead of
9974 a chain of PARM_DECLs.
9975 (assign_parms_unsplit_complex): Take a VEC of arguments.
9976 Do not fixup unmodified parms.
9977 (assign_parms): Deal with the VEC.
9978 (gimplify_parameters): Likewise.
9980 2010-01-17 Richard Guenther <rguenther@suse.de>
9982 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
9983 node existence check.
9984 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
9985 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
9986 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
9987 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
9988 (gimple_execute_on_growing_pred): Likewise.
9990 2010-01-17 Richard Guenther <rguenther@suse.de>
9992 PR tree-optimization/42773
9993 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
9994 (compute_antic_aux): Likewise.
9995 (compute_partial_antic_aux): Likewise.
9997 2010-01-17 Jie Zhang <jie.zhang@analog.com>
10000 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10003 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
10005 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
10008 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
10009 Fix markup for strict argument.
10011 (TARGET_SCHED_REORDER2): Fix argument types.
10013 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
10014 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
10016 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
10017 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
10019 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
10022 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
10023 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
10024 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
10025 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
10026 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
10028 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
10030 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
10032 (TARGET_ASM_RELOC_RW_MASK): Add return type.
10033 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
10035 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
10037 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
10040 (TARGET_ASM_NAMED_SECTION): Fix argument list.
10042 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
10043 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
10045 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
10047 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
10049 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
10050 referring to it. Fix language.
10052 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
10054 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
10056 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
10058 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
10060 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
10061 '@var{stream}. Remove stray 'and'.
10063 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
10065 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
10067 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
10069 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
10070 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
10072 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
10073 Fix description of return value.
10074 Rename argument "sz" to "len."
10076 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
10077 Clarify meaning of 'true' return value.
10079 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
10081 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
10082 rep_mode versus mode_rep.
10084 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
10086 (TARGET_BUILTIN_DECL): Fix name.
10088 (TARGET_COMMUTATIVE_P): Fix type of first argument.
10090 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
10092 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
10094 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
10096 (TARGET_RELAXED_ORDERING): Use @deftypevr.
10098 (TARGET_GET_DRAP_RTX): Note that this is a hook.
10101 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
10102 Rename argument tm_fn to md_fn.
10104 (TARGET_OPTION_PRINT): Fix argument list.
10106 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
10109 * config/i386/i386.c (ix86_fixup_binary_operands):
10110 Revert FMA4 fixup of operands.
10112 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10115 * Makefile.in (write_entries_to_file, install-plugin):
10116 Use \012 instead of \n with tr.
10118 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
10120 * configure.ac (HAVE_AS_REF): New C macro.
10121 * configure: Regenerate.
10122 * config.in: Likewise.
10123 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
10125 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
10128 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
10130 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
10132 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
10134 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
10136 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
10138 (TARGET_IN_SMALL_DATA_P): Fix argument type.
10140 (TARGET_BINDS_LOCAL_P): Fix argument type.
10142 (TARGET_ASM_FILE_END): Use prototype.
10144 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
10146 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
10148 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
10150 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
10152 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
10153 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
10155 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
10156 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
10158 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
10159 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
10160 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
10161 (TARGET_ADDR_SPACE_CONVERT): Likewise.
10163 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
10165 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
10167 (TARGET_INIT_BUILTINS): Use prototype.
10169 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
10170 Put 'const char *' in braces. Fix parameter types.
10171 (TARGET_INVALID_CONVERSION): Fix parameter types.
10172 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
10173 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
10175 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
10178 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
10180 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
10182 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
10184 * doc/tm.texi (TARGET_HELP): Fix return type.
10186 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
10187 in braces. Fix argument types.
10189 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
10191 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
10193 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
10195 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
10196 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
10198 (TARGET_MANGLE_TYPE): Fix argument types.
10200 (TARGET_IRA_COVER_CLASSES): Use prototype.
10202 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
10204 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
10206 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
10208 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
10210 (TARGET_CALLEE_COPIES): Fix argument types.
10212 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
10214 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
10216 (TARGET_FUNCTION_VALUE): Fix argument types.
10218 (TARGET_RETURN_IN_MSB): Fix argument type.
10220 (TARGET_RETURN_IN_MEMORY): Fix argument types.
10222 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
10224 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
10226 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
10227 agree with return type.
10229 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
10231 2010-01-15 Jing Yu <jingyu@google.com>
10233 PR rtl-optimization/42691
10234 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
10235 a pseudo to a constant and are merged, and adjust comments.
10237 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
10239 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
10241 2010-01-15 Richard Guenther <rguenther@suse.de>
10243 PR middle-end/42739
10244 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
10245 labels of computed or non-local gotos to the destination.
10246 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
10247 landing pad label is the first label.
10249 2010-01-15 Richard Guenther <rguenther@suse.de>
10251 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
10253 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10256 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
10257 to allow generation of the xssqrtdp instruction on power7.
10258 (sqrtdf2_fpr): Ditto.
10260 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10262 PR middle-end/42674
10263 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
10264 functions with noreturn attribute.
10267 * varasm.c (declare_weak): Add weak attribute to decl if it
10268 doesn't have one already.
10269 (assemble_external): Only add decls to weak_decls if they also
10270 have weak attribute.
10272 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
10274 * var-tracking.c (var_reg_delete): Don't delete the association
10275 between REGs and values or one-part variables if the register
10278 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10281 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
10282 because its first operand is a non-localized variable.
10284 2010-01-14 Martin Jambor <mjambor@suse.cz>
10286 PR tree-optimization/42706
10287 * tree-sra.c (encountered_recursive_call): New variable.
10288 (encountered_unchangable_recursive_call): Likewise.
10289 (sra_initialize): Initialize both new variables.
10290 (callsite_has_enough_arguments_p): New function.
10291 (scan_function): Call decl and flags check only for IPA-SRA, check
10292 whether there is a recursive call and whether it has enough arguments.
10293 (all_callers_have_enough_arguments_p): New function.
10294 (convert_callers): Look for recursive calls only when
10295 encountered_recursive_call is set.
10296 (ipa_early_sra): Bail out either if
10297 !all_callers_have_enough_arguments_p or
10298 encountered_unchangable_recursive_call.
10300 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10302 * sel-sched.c: Add 2010 to copyright years.
10303 * sel-sched-ir.c: Likewise.
10304 * sel-sched-ir.h: Likewise.
10306 2010-01-14 Martin Jambor <mjambor@suse.cz>
10308 PR tree-optimization/42714
10309 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
10310 constructors specially.
10312 2010-01-14 Andi Kleen <ak@linux.intel.com>
10314 * config/i386/drivers-i386.c (detect_caches_intel):
10315 Add l2sizekb parameter and fill in.
10316 (host_detect_local_cpu): Add l2sizekb, fill in.
10317 Add Atom small cache heuristic.
10319 2010-01-14 Andi Kleen <ak@linux.intel.com>
10321 * config/i386/drivers-i386.c (detect_caches_cpuid4):
10322 Add level3 parameter and fill in.
10323 (detect_caches_intel): Handle level3 cache.
10325 2010-01-14 Andi Kleen <ak@linux.intel.com>
10327 * config/i386/drivers-i386.c (host_detect_local_cpu):
10328 Fix core duo detection.
10330 2010-01-14 Andi Kleen <ak@linux.intel.com>
10332 * config/i386/drivers-i386.c (host_detect_local_cpu):
10333 Fix Atom detection.
10335 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10337 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
10338 (rs6000_variable_issue_1): this. Use...
10339 (rs6000_variable_issue): here. Reimplement. Print debug info.
10341 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10343 * sel-sched-ir.c (sel_restore_other_notes): Rename to
10344 sel_restore_notes. Update all callers. Call reemit_notes
10347 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10349 PR rtl-optimization/42246
10350 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
10353 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10355 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
10356 all successors is the same as number of successors in current region.
10358 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10360 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
10361 to rename is not separable. Otherwise check that its LHS is not NULL.
10363 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10365 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
10367 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10369 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
10370 available registers when failed to discover LHS register class.
10371 Fix indentation. Update comment.
10373 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10374 Alexander Monakov <amonakov@ispras.ru>
10376 PR rtl-optimization/42389
10377 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
10379 (advance_state_on_fence): Likewise.
10380 (sel_target_adjust_priority): Print debug output only when
10381 sched_verbose >= 4, not 2.
10382 (get_expr_cost): Do not issue all unique insns on the next cycle.
10383 (fill_insns): Initialize can_issue_more from the value saved
10385 * sel-sched-ir.c (flist_add): New parameter issue_more.
10386 Init FENCE_ISSUE_MORE with it.
10387 (merge_fences): Likewise.
10388 (init_fences): Update call to flist_add.
10389 (add_to_fences, add_clean_fence_to_fences)
10390 (add_dirty_fence_to_fences): Likewise.
10391 (move_fence_to_fences): Update call to merge_fences.
10392 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
10394 * sel-sched-ir.h (struct _fence): New field issue_more.
10395 (FENCE_ISSUE_MORE): New accessor macro.
10397 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10399 PR rtl-optimization/42388
10400 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
10401 that have no predecessors nor successors. Do not call move_bb_info
10402 for empty blocks outside of current region.
10404 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10406 PR rtl-optimization/42294
10407 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
10408 * sel-sched.c (move_exprs_to_boundary): Transitively add all
10409 originators' originators.
10411 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10413 PR rtl-optimization/39453
10414 PR rtl-optimization/42246
10415 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
10417 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
10419 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10420 Alexander Monakov <amonakov@ispras.ru>
10422 PR middle-end/42245
10423 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
10424 (maybe_tidy_empty_bb): ... here. Make static. Add new
10425 argument. Update all callers.
10426 (tidy_control_flow): ... and here. Recompute topological order
10427 of basic blocks in region if necessary.
10428 (sel_redirect_edge_and_branch): Change return type. Return true
10429 if topological order might have been invalidated.
10430 (purge_empty_blocks): Export and move from...
10431 * sel-sched.c (purge_empty_blocks): ... here.
10432 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
10433 (maybe_tidy_empty_bb): Delete prototype.
10434 (purge_empty_blocks): Declare.
10436 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
10438 PR rtl-optimization/42249
10439 * sel-sched.c (try_replace_dest_reg): When chosen register
10440 and original register is the same, do not bail out early, but
10441 still check all original insns for validity of replacing destination
10442 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
10445 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10448 Port from no-undefined-overflow branch:
10449 2009-03-09 Richard Guenther <rguenther@suse.de>
10451 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
10453 2010-01-14 Richard Guenther <rguenther@suse.de>
10456 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
10458 2010-01-14 Ira Rosen <irar@il.ibm.com>
10460 PR tree-optimization/42709
10461 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
10462 as scalar type in creation of constant vector operand.
10464 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10467 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
10468 (check-parallel-%): Match `testsuite' directory component only
10471 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
10473 PR translation/39521
10474 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
10477 2010-01-13 Richard Guenther <rguenther@suse.de>
10479 PR tree-optimization/42730
10480 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
10483 2010-01-13 Steve Ellcey <sje@cup.hp.com>
10486 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
10487 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
10490 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
10492 * config/bfin/libgcc-bfin.ver: Regenerate based on current
10493 libgcc-std.ver. Add entries for ___smulsi3_highpart and
10494 ___umulsi3_highpart.
10496 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
10497 rather than schedule_insns if the pass is enabled.
10499 2010-01-13 Martin Jambor <mjambor@suse.cz>
10501 PR tree-optimization/42704
10502 * tree-sra.c (sra_modify_assign): Do not delete assignments to
10505 2010-01-13 Martin Jambor <mjambor@suse.cz>
10507 PR tree-optimization/42703
10508 * tree-sra.c (analyze_access_subtree): Check that we can build a
10509 reference to the original data within the aggregate.
10511 2010-01-13 Richard Guenther <rguenther@suse.de>
10513 PR tree-optimization/42705
10514 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
10516 2010-01-13 Richard Guenther <rguenther@suse.de>
10518 PR middle-end/42716
10519 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
10521 2010-01-13 Jakub Jelinek <jakub@redhat.com>
10524 * var-tracking.c (values_to_unmark): New variable.
10525 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
10526 values_to_unmark vector. Moved body to...
10527 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
10528 instead queue it into values_to_unmark vector.
10529 (vt_find_locations): Free values_to_unmark vector.
10531 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
10533 * config/s390/s390.c (override_options): Set
10534 default of max-pending-list-length to 256
10536 2010-01-13 Richard Guenther <rguenther@suse.de>
10539 * tree-pass.h (PROP_gimple_lcx): New.
10540 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
10541 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
10542 before the final cleanup_eh.
10543 (dump_properties): Dump PROP_gimple_lcx.
10544 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
10545 (tree_lower_complex_O0): Remove.
10546 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
10547 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
10548 tree_lower_complex, schedule TODO_update_ssa.
10549 * lto-streamer-out.c (output_function): Stream the functions
10551 * lto-streamer-in.c (input_function): Likewise.
10552 (lto_read_body): Do not override them here.
10554 2010-01-12 Joseph Myers <joseph@codesourcery.com>
10557 * c-typeck.c (build_c_cast): Fold value cast to union type before
10558 wrapping it in a CONSTRUCTOR.
10560 2010-01-12 Jakub Jelinek <jakub@redhat.com>
10562 PR rtl-optimization/42699
10563 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
10566 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10568 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
10569 SUBTARGET_WARN_UNUSED_SPEC): Move ...
10570 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
10571 SUBTARGET_WARN_UNUSED_SPEC): ... here
10572 * config/mips/iris5.h (LIBGCC_SPEC): Define.
10574 2010-01-12 Julian Brown <julian@codesourcery.com>
10576 * config/arm/neon-schedgen.ml (Utils): Don't try to
10577 open missing module.
10578 (find_with_result): New.
10580 2010-01-12 Jakub Jelinek <jakub@redhat.com>
10583 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
10584 sharing when canonicalizing ({lt,ge}u (plus a b) b).
10586 PR tree-optimization/42645
10587 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
10588 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
10589 decl_map, set processing_debug_stmt to -1 and return name without
10592 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
10594 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
10595 binutils version, and reword target configuration description.
10597 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
10599 * config/avr/avr.h (LINKER_NAME): Remove.
10601 2010-01-11 Janis Johnson <janis187@us.ibm.com>
10604 * config/rs6000/rs6000.c (rs6000_override_options): On targets
10605 that support VSX, warn for -mno-altivec if vsx is not disabled,
10608 2010-01-11 Joseph Myers <joseph@codesourcery.com>
10609 Shujing Zhao <pearly.zhao@oracle.com>
10611 PR translation/42469
10612 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
10613 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
10614 character between option name and help text.
10615 * c.opt (imultilib): Likewise.
10617 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
10619 * lto-streamer-out.c (output_unreferenced_globals): Output static
10622 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
10624 PR rtl-optimization/42621
10625 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
10626 optimizing for size.
10627 (duplicate_computed_gotos): Remove now-redundant check.
10629 2010-01-10 Steve Ellcey <sje@cup.hp.com>
10632 * configure.ac: Save and restore LDFLAGS and LIBS
10633 * configure: Regenerate.
10635 2010-01-10 Richard Guenther <rguenther@suse.de>
10637 PR middle-end/42667
10638 * builtins.c (fold_builtin_strlen): Add type argument and
10639 convert the resulting length to it.
10640 (fold_builtin_1): Adjust.
10642 2010-01-09 Jakub Jelinek <jakub@redhat.com>
10644 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
10645 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
10647 (num_insns_constant_wide): Adjust for that change.
10649 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10652 * web.c (union_defs): Add used argument, to combine uses of
10653 uninitialized regs.
10654 (entry_register): Adjust type and tests of used argument.
10655 (web_main): Widen used for new use. Pass it to union_defs.
10656 * df.h (union_defs): Adjust prototype.
10658 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10661 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
10662 uses in new incoming argument. Free body.
10663 (reset_debug_uses_in_loop): New.
10664 (analyze_insn_to_expand_var): Call the latter if the former found
10665 anything. Fix whitespace. Reject invalid dest overlaps before
10666 going through all insns in the loop.
10668 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10671 * haifa-sched.c (dying_use_p): Debug insns don't count.
10673 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10675 PR middle-end/42363
10676 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
10677 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
10678 (verify_gimple_call): Reject LHS in noreturn calls.
10680 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10684 * tree-vect-loop-manip.c (adjust_info): New type.
10685 (adjust_vec): New pointer to vector.
10686 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
10687 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
10688 (slpeel_update_phis_for_duplicate_loop): Use them.
10689 (slpeel_update_phi_nodes_for_guard1): Likewise.
10690 (slpeel_update_phi_nodes_for_guard2): Likewise.
10691 (slpeel_tree_peel_loop_to_edge): Likewise.
10692 (vect_update_ivs_after_vectorizer): Likewise.
10694 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10696 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
10697 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
10699 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10701 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
10702 bogus uninitialized warning.
10704 2010-01-09 Richard Guenther <rguenther@suse.de>
10706 PR middle-end/42512
10707 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
10708 the evolution is compatible with the initial condition.
10710 2010-01-09 Jakub Jelinek <jakub@redhat.com>
10712 * gcc.c (process_command): Update copyright notice dates.
10713 * gcov.c (print_version): Likewise.
10714 * gcov-dump.c (print_version): Likewise.
10715 * mips-tfile.c (main): Likewise.
10716 * mips-tdump.c (main): Likewise.
10718 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
10721 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
10723 (rotlhi3_8): Delete.
10725 (rotlsi3_8): Delete.
10726 (rotlsi3_16): Delete.
10727 (rotlsi3_24): Delete.
10728 (rotl<mode>3): New.
10729 (*rotw<mode>3): New.
10730 (*rotb<mode>3): New.
10731 * config/avr/avr.c (avr_rotate_bytes): New function.
10732 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
10734 2010-01-08 Steve Ellcey <sje@cup.hp.com>
10737 * configure.ac: Modify -rdynamic check.
10738 * configure: Regenerate.
10740 2010-01-08 DJ Delorie <dj@redhat.com>
10742 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
10743 register popping order.
10745 2010-01-08 Richard Guenther <rguenther@suse.de>
10748 * c.opt (fsigned-char): Also let LTO handle this option.
10749 (funsigned-char): Likewise.
10751 2010-01-07 Richard Guenther <rguenther@suse.de>
10753 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
10754 (gimple_op): Likewise.
10755 (gimple_op_ptr): Likewise.
10756 (gimple_assign_set_lhs): Remove gcc_assert.
10757 (gimple_assign_set_rhs1): Likewise.
10758 (gimple_assign_set_rhs2): Likewise.
10759 (gimple_call_set_lhs): Likewise.
10760 (gimple_call_set_fn): Likewise.
10761 (gimple_call_set_fndecl): Likewise.
10762 (gimple_call_fndecl): Likewise.
10763 (gimple_call_return_type): Likewise.
10764 (gimple_call_set_chain): Likewise.
10765 (gimple_call_num_args): Likewise.
10766 (gimple_call_set_arg): Likewise.
10767 (gimple_cond_set_code): Likewise.
10768 (gimple_cond_set_lhs): Likewise.
10769 (gimple_cond_set_rhs): Likewise.
10770 (gimple_cond_set_true_label): Likewise.
10771 (gimple_cond_set_false_label): Likewise.
10772 (gimple_label_set_label): Likewise.
10773 (gimple_goto_set_dest): Likewise.
10774 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
10775 (gimple_debug_bind_get_value): Likewise.
10776 (gimple_debug_bind_get_value_ptr): Likewise.
10777 (gimple_debug_bind_set_var): Likewise.
10778 (gimple_debug_bind_set_value): Likewise.
10779 (gimple_debug_bind_reset_value): Likewise.
10780 (gimple_debug_bind_has_value_p): Likewise.
10781 (gimple_return_retval_ptr): Remove gcc_assert.
10782 (gimple_return_retval): Likewise.
10783 (gimple_return_set_retval): Likewise.
10784 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
10785 (safe_referenced_var_iterator): Remove.
10786 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
10787 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
10788 (fill_referenced_var_vec): Remove.
10789 (first_readonly_imm_use): Remove redundant gcc_assert.
10790 (phi_arg_index_from_use): Combine gcc_asserts.
10791 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
10792 (first_imm_use_stmt): Remove redundant gcc_assert.
10793 * tree-cfg.c (verify_gimple_call): Verify function and chain
10794 operands. Verify arguments.
10795 (verify_types_in_gimple_stmt): Verify condition code and labels.
10797 2010-01-07 Richard Guenther <rguenther@suse.de>
10799 PR tree-optimization/42641
10800 * sese.c (rename_map_elt_info): Use the SSA name version, do
10803 2010-01-07 Jakub Jelinek <jakub@redhat.com>
10805 PR tree-optimization/42625
10806 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
10807 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
10809 2010-01-07 Duncan Sands <baldrick@free.fr>
10811 * Makefile.in (PLUGIN_HEADERS): Add version.h.
10813 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
10816 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
10817 note itself is not function_invariant_p.
10819 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
10821 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
10822 Do not add the DF_NOTE problem.
10823 * store-motion.c (execute_rtl_store_motion): Likewise.
10825 2010-01-07 Martin Jambor <mjambor@suse.cz>
10827 PR tree-optimization/42157
10828 * tree-sra.c (compare_access_positions): Stabilize sort if both
10829 accesses have integer types, return zero immediately if they are the
10832 2010-01-06 Richard Henderson <rth@redhat.com>
10834 PR middle-end/41883
10835 * haifa-sched.c (add_to_note_list): Merge into ...
10836 (concat_note_lists): ... here, and ...
10837 (unlink_other_notes, rm_other_notes): Merge into...
10838 (remove_notes): ... here. Create REG_SAVE_NOTEs for
10839 NOTE_INSN_EPILOGUE_BEG.
10841 2010-01-06 Richard Guenther <rguenther@suse.de>
10843 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
10844 not inline regular functions into always-inline functions.
10846 2010-01-06 Nick Clifton <nickc@redhat.com>
10848 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
10849 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
10851 (OVERRIDE_OPTIONS): Delete.
10852 (OPTIMIZATION_OPTIONS): Define.
10853 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
10854 * config/rx/rx.c (rx_handle_option): Issue an error message if
10855 -mcpu=rx200 and -fpu are used together.
10856 (rx_set_optimization_options): New function. Issue an error
10857 message if an optimization attribute attempts to reset the FPU/
10858 math optimization pairing.
10859 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
10860 * config/rx/rx.opt: Set the default to 32-bit doubles.
10861 * config/rx/t-rx: Add multilibs for -nofpu option.
10862 * doc/invoke.texi: Update documentation of RX options.
10864 2010-01-06 Richard Guenther <rguenther@suse.de>
10866 * tree-ssa-pre.c (name_to_id): New global.
10867 (alloc_expression_id): Simplify SSA name handling.
10868 (lookup_expression_id): Likewise.
10869 (init_pre): Zero name_to_id.
10870 (fini_pre): Free it.
10872 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
10874 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
10876 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
10879 * config/i386/sse.md (smaxv2di3): New.
10880 (umaxv2di3): Likewise.
10881 (sminv2di3): Likewise.
10882 (uminv2di3): Likewise.
10884 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
10887 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
10888 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
10889 (legitimize_tls_address): Likewise.
10890 (sparc_tls_referenced_p): Likewise.
10891 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
10892 and adjust calls to legitimize_pic_address.
10893 (legitimate_constant_p) Use sparc_tls_referenced_p.
10894 (legitimate_pic_operand_p): Likewise.
10895 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
10896 (sparc_tls_symbol_ref_1): Delete.
10897 (sparc_tls_referenced_p): Make static, recognize specific patterns.
10898 (legitimize_tls_address): Make static, handle CONST patterns.
10899 (legitimize_pic_address): Make static, remove unused parameter and
10900 adjust recursive calls.
10901 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
10902 and adjust call to legitimize_pic_address.
10903 (sparc_output_mi_thunk): Likewise.
10905 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
10906 H.J. Lu <hongjiu.lu@intel.com>
10909 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
10910 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
10911 operands to make them signed.
10914 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10917 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10918 GTU to GT for V4SI and V2DI.
10920 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10921 (umin<mode>3): Removed.
10923 (uminv4si3): Likewise.
10925 2010-01-05 Martin Jambor <mjambor@suse.cz>
10927 PR tree-optimization/42462
10928 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
10929 current_function_decl to helper functions and macros.
10931 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10934 * flags.h: Don't include real.h.
10935 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
10936 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
10937 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
10938 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
10939 * dominance.c: Update copyright.
10940 * gimple.c (walk_gimple_op): Remove inline.
10941 * tree-ssa-reassoc.c: Include real.h.
10942 * Makefile.in (FLAGS_H): Remove $(REAL_H).
10943 (tree-ssa-reassoc.o): Depend on $(REAL_H).
10945 2010-01-05 Nick Clifton <nickc@redhat.com>
10947 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
10948 register to push into the stack frame when the accumulator has to
10949 be saved during interrupts.
10951 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
10953 * doc/invoke.texi: Remove the documentation about option
10954 -Wunreachable-code.
10955 * common.opt (Wunreachable-code): Preserved for backward
10957 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
10958 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
10959 the backward compatibility flag section.
10961 2010-01-05 Richard Guenther <rguenther@suse.de>
10963 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
10965 2010-01-05 Jakub Jelinek <jakub@redhat.com>
10968 * cfgexpand.c (expand_one_var): Diagnose too large variables.
10970 PR tree-optimization/42508
10971 * tree-sra.c (convert_callers): Check for recursive call
10972 by comparing cgraph nodes instead of decls.
10973 (modify_function): Call ipa_modify_formal_parameters also
10974 on all same_body aliases.
10976 * cgraphunit.c (cgraph_materialize_all_clones): Compare
10977 cgraph nodes when checking for same_body aliases.
10979 2010-01-05 Richard Guenther <rguenther@suse.de>
10981 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
10982 allocation and lookup.
10983 (get_or_alloc_expr_for_constant): Likewise.
10984 (phi_translate): Sink allocation.
10986 2010-01-04 Richard Guenther <rguenther@suse.de>
10988 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
10989 a new entry only if needed.
10990 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
10991 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
10993 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
10995 (phi_translate): Handle CONSTANTs early.
10997 2010-01-04 Martin Jambor <mjambor@suse.cz>
10999 PR tree-optimization/42398
11000 * tree-sra.c (struct access): Removed flag grp_different_types.
11001 (dump_access): Do not dump the removed flag.
11002 (sort_and_splice_var_accesses): Do not set the removed flag.
11003 (sra_modify_expr): Check for type compatibility directly.
11005 2010-01-04 Martin Jambor <mjambor@suse.cz>
11007 PR tree-optimization/42366
11008 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
11009 edges with variable number of parameters.
11010 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
11011 flag instead of asserting it.
11012 (ipa_read_node_info): Read uses_analysis_done flag.
11014 2010-01-04 Richard Guenther <rguenther@suse.de>
11016 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
11017 iterative_hash_* as intended.
11018 (vn_reference_compute_hash): Likewise. Simplify hashing
11020 (vn_reference_lookup_2): Likewise.
11021 (vn_nary_op_compute_hash): Likewise.
11022 (vn_phi_compute_hash): Likewise.
11023 (expressions_equal_p): Remove strange code.
11024 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
11025 (pre_expr_hash): Likewise. Simplify hashing SSA names.
11026 (bitmap_insert_into_set_1): Take value-id as parameter.
11027 (add_to_value): Pass it.
11028 (bitmap_insert_into_set): Likewise.
11029 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
11031 2010-01-04 Jakub Jelinek <jakub@redhat.com>
11034 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
11035 (do_self_spec): For switches with SWITCH_IGNORE set set also
11036 SWITCH_IGNORE_PERMANENTLY.
11037 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
11040 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
11042 * lto-streamer-out.c (output_unreferenced_globals): Output the full
11043 tree of an unreferenced global var.
11045 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11048 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11049 GTU to GT for V4SI and V2DI.
11051 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11052 (umin<mode>3): Removed.
11054 (uminv4si3): Likewise.
11056 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11059 * collect2.c (main): Turn on trace in collect2 if -v is passed
11062 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
11064 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
11065 description of expression operand.
11067 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
11069 * configure.ac: Add install-html to target_list for Make-hooks.
11070 * configure: Regenerate.
11071 * fortran/Make-lang.in (F95_HTMLFILES): New.
11072 (fortran.html): Use it.
11073 (fortran.install-html): New.
11074 * Makefile.in (install-html): Add lang.install-html.
11075 * java/Make-lang.in (JAVA_HTMLFILES): New.
11076 (java.html): Use it.
11077 (java.install-html): New.
11078 * objc/Make-lang.in (objc.install-html): New.
11079 * objcp/Make-lang.in (obj-c++.install-html): New.
11080 * cp/Make-lang.in (c++.install-html): New.
11081 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
11082 * lto/Make-lang.in (lto.install-html): New.
11084 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11087 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
11089 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
11091 PR rtl-optimization/41862
11092 * store-motion.c (store_killed_in_insn, compute_store_table,
11093 remove_reachable_equiv_notes, replace_store_insn,
11094 build_store_vectors): Ignore all DEBUG_INSNs.
11096 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11099 * common.opt: Add dumpdir.
11101 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
11103 (option_map): Add --dumpdir.
11105 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
11107 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
11109 * opts.c (decode_options): Try dump_dir_name first if
11110 dump_base_name isn't an absolute path.
11111 (common_handle_option): Handle OPT_dumpdir.
11113 * toplev.c (dump_dir_name): New.
11114 (print_switch_values): Also ignore -dumpdir.
11116 * toplev.h (dump_dir_name): New.
11118 2010-01-03 Richard Guenther <rguenther@suse.de>
11120 PR tree-optimization/42589
11121 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
11122 double-word expansion of bswap32.
11124 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
11126 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
11127 with BLOCK_FOR_INSN.
11128 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
11129 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
11130 noce_process_if_block): Likewise.
11131 * gcse.c (compute_local_properties, insert_expr_in_table,
11132 insert_set_in_table, canon_list_insert, find_avail_set,
11133 pre_insert_copy_insn): Likewise.
11135 * basic-block.h (BLOCK_NUM): Move from here...
11136 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
11138 2010-01-03 Richard Guenther <rguenther@suse.de>
11140 PR tree-optimization/42438
11141 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
11142 contains_may_not_return_call flag.
11143 (BB_MAY_NOTRETURN): New.
11144 (valid_in_sets): Trapping nary operations are not valid
11145 in blocks that may not return.
11146 (insert_into_preds_of_block): Remove check for trapping expressions.
11147 (compute_avail): Compute also BB_MAY_NOTRETURN.
11149 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
11151 * doc/invoke.texi: Add 2010 to copyright years.
11153 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
11155 * config/sparc/sparc.c: Fix formatting nits.
11157 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11158 Alexander Monakov <amonakov@ispras.ru>
11160 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
11162 2010-01-02 Richard Guenther <rguenther@suse.de>
11164 PR middle-end/42577
11165 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
11166 (simplify_switch_using_ranges): Mark to be removed edges
11169 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11171 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11173 * collect2.c (scan_libraries): Add missing argument in call to
11176 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
11179 * config/alpha/predicates.md (aligned_memory_operand): Return false
11181 (unaligned_memory_operand): Return true for CQImode.
11182 * config/alpha/alpha.c (get_aligned_mem): Assert that location
11183 doesn not cross aligned SImode word boundary.
11185 2010-01-02 Anatoly Sokolov <aesok@post.ru>
11187 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
11189 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
11190 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
11192 2010-01-02 Richard Guenther <rguenther@suse.de>
11195 * toplev.c (compile_file): Emit LTO marker properly. Change
11196 it to __gnu_lto_v1.
11197 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
11199 2010-01-01 Richard Guenther <rguenther@suse.de>
11202 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
11204 2010-01-01 Richard Guenther <rguenther@suse.de>
11207 * c-decl.c (grokdeclarator): For zero-size arrays force
11208 structural equality checks as layout_type does.
11210 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11212 * builtins.c: Update copyright to 2010.
11214 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11217 * lto-streamer-out.c (produce_asm): Revert the last change.
11218 (copy_function): Likewise.
11220 * lto-streamer.c (lto_get_section_name): Skip any leading
11223 2010-01-01 Richard Guenther <rguenther@suse.de>
11225 PR middle-end/42559
11226 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
11230 Copyright (C) 2010 Free Software Foundation, Inc.
11232 Copying and distribution of this file, with or without modification,
11233 are permitted in any medium without royalty provided the copyright
11234 notice and this notice are preserved.