1 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3 * vec.h: Include statistics.h
4 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
7 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9 * c-lex.c: Do not include c-tree.h.
10 * c-pretty-print.c: Likewise.
12 * c-gimplify.c: Likewise.
13 * c-common.c: Likewise.
14 * c-dump.c: Likewise. Include c-common.h.
16 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
18 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
19 before including diagnostic-core.h.
20 (c_cpp_error): New prototype moved from c-tree.h.
21 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
23 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
24 (c_cpp_error): Prototype moved to c-common.h.
25 * Makefile.in: Update dependency for C_COMMON_H.
27 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
29 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
30 * c-common.c (c_register_addr_space): Remove here.
31 * c-decl.c (c_register_addr_space): Re-add here.
33 2010-05-28 Mike Stump <mikestump@comcast.net>
35 * config/darwin-c.c: Remove c-tree.h include.
37 2010-05-28 Joseph Myers <joseph@codesourcery.com>
39 * gcc.c: Include diagnostic.h.
40 (error_count): Remove. All users changed to use errorcount.
41 (programname): Remove. All users changed to use progname.
42 (fancy_abort, internal_error, fatal_error, error, warning, inform,
44 (execute): Don't include "Internal error" and bug reporting
45 information in argument of internal_error call.
46 (process_command): Don't increment error_count after calling
48 (input_filename): Rename to gcc_input_filename. All users
50 (main): Call diagnostic_initialize. Register delete_temp_files
51 with atexit. Use seen_error to test for errors.
52 * gcc.h: Include diagnostic-core.h.
53 (fatal_error, error, warning): Remove.
54 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
55 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
56 (gcc.o): Update dependencies.
58 2010-05-28 Jeff Law <law@redhat.com>
60 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
62 * ira.h (ira_bad_reload_regno): Declare
63 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
65 * ira-color.c (update_curr_costs): Free updated hard reg costs.
66 (ira_reassign_conflict_allocnos): Remove bogus asserts.
67 (allocno_reload_assign): Likewise.
69 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
71 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
74 2010-05-28 Richard Guenther <rguenther@suse.de>
77 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
78 Stream fixed-point constants mode.
79 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
81 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
82 Stream fixed-point constants mode.
83 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
86 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
88 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
89 only place it was called from.
90 (number_of_latch_executions): Do not return chrec_dont_know when the
91 may_be_zero is a runtime condition: instead, return a COND_EXPR
92 including the may_be_zero condition.
93 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
95 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
98 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
100 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
101 generate COND_EXPRs for degenerate_phi_result.
103 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
106 * tree-if-conv.c (if_convertible_loop_p): Check the
107 if-convertibility of phi nodes in non predicated BBs.
109 2010-05-28 Joseph Myers <joseph@codesourcery.com>
111 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
113 2010-05-28 Joseph Myers <joseph@codesourcery.com>
116 * gcc.c (inform, warning, inform): New functions.
117 (fatal_ice): Rename to internal_error; change cmsgid parameter to
118 gmsgid. All callers changed.
119 (notice): Rename to fnotice; add parameter fp. All callers
121 (fatal_error): Rename to fatal_signal. All users changed.
122 (fatal): Rename to fatal_error; change cmsgid parameter to
123 gmsgid. All callers changed.
124 (process_command): Use warning instead of error for warnings.
125 (end_going_arg): Don't use _() around argument of error.
126 (do_spec_1): Use inform for message from %n specs. Use warning
127 instead of error for warnings.
128 (main): Use inform for comparison messages. Use warning for
129 message about unused linker input.
130 (error): Increment error_count. Print "error: ".
131 * gcc.h (fatal): Change to fatal_error.
133 * config/darwin-driver.c (darwin_default_min_version): Use warning
134 instead of fprintf for warnings.
135 * cppspec.c (lang_specific_driver): Use fatal_error instead of
138 2010-05-28 Julian Brown <julian@codesourcery.com>
140 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
141 (*thumb2_addsi3_compare0_scratch): New.
142 * config/arm/constraints.md (Pv): New.
143 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
145 (*addsi3_compare0_scratch): Likewise.
147 2010-05-28 Jan Hubicka <jh@suse.cz>
149 * ipa-reference.c (add_static_var): Remove redundant all_module_statics check.
150 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis only
153 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
155 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
157 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
160 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
161 (OPTION_GLIBC): Define.
163 2010-05-28 Jakub Jelinek <jakub@redhat.com>
166 * dwarf2out.c (double_int_type_size_in_bits): New function.
167 (round_up_to_align): Change first argument and return value to
169 (field_byte_offset): Work internally on double_ints.
172 * builtins.c (expand_movstr): Use a temporary pseudo instead
173 of target even when target is not NULL and not const0_rtx, but
174 fails movstr predicate.
175 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
177 2010-05-28 Joseph Myers <joseph@codesourcery.com>
179 * final.c (rest_of_clean_state): Use %m in errors instead of
181 * gengtype.c (read_input_list, close_output_files): Use xstrerror
183 * toplev.c (process_options): Use %m in errors instead of strerror
185 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
188 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
190 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
191 (ix86_canonical_va_list_type): Make static. Add declaration.
192 (ix86_enum_va_list): Make static. Reindent.
193 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
194 (ix86_canonical_va_list_type): Ditto.
195 (ix86_enum_va_list): Ditto.
197 2010-05-28 Richard Guenther <rguenther@suse.de>
199 * lto-wrapper.c (run_gcc): With -save-temps generate a
200 user-visible ltrans filename. Fixup ltrans unit numbering.
202 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
204 * c-common.c (c_common_nodes_and_builtins): Replace use
205 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
206 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
207 to ix86_enum_va_list.
208 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
209 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
210 (TARGET_ENUM_VA_LIST_P): Add hook description.
211 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
212 * target.h (gcc_target): Add enum_va_list hook.
215 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
216 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
217 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
219 2010-05-28 Alan Modra <amodra@gmail.com>
222 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
223 emit_library_call machinery to set up __tls_get_addr calls.
225 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
227 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
229 2010-05-28 Dodji Seketeli <dodji@redhat.com>
231 revert fix for PR c++/44188
232 * c-common.c (is_typedef_decl): Revert the moving of this
234 * tree.c (is_typedef_decl): ... here.
235 (typdef_variant_p): Revert the moving of this definition
236 here from gcc/cp/tree.c.
237 * c-common.h (is_typedef_decl): Revert the moving of this
239 * tree.h (is_typedef_decl): ... here.
240 (typedef_variant_p): Revert the moving of this declaration here
241 from gcc/cp/cp-tree.h
242 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
243 (gen_tagged_type_die): Revert the splitting out of ...
244 (gen_type_die_with_usage): ... this function. Revert the anonymous
245 tagged type handling.
246 (gen_typedef_die): Revert emitting DW_TAG_typedef for
247 typedefs naming anonymous tagged types.
250 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
252 * config/rs6000/rs6000-modes.def (PSImode): Delete.
254 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
256 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
257 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
259 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
261 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
262 XER_REGS to CA_REGS throughout.
263 * config/rs6000/rs6000.h: Same.
264 (ADDITIONAL_REGISTER_NAMES): Add "xer".
265 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
266 that mode_iterator "P" is the size for arithmetic carries as well.
267 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
269 2010-05-28 Jakub Jelinek <jakub@redhat.com>
272 * combine.c (struct rtx_subst_pair): Define unconditionally.
273 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
274 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
275 Call make_compound_operation on pair->to.
276 (propagate_for_debug): Don't call make_compound_operation here.
277 Always use simplify_replace_fn_rtx.
279 2010-05-27 Sterling Augustine <sterling@tensilica.com>
281 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
282 * config/xtensa/xtensa.c (override_options): Check
283 TARGET_FORCE_NO_PIC and set flag_pic.
284 * config/xtensa/xtensa.opt: Document -mforce-no-pic
286 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
289 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
290 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
292 2010-05-27 Joseph Myers <joseph@codesourcery.com>
294 * diagnostic-core.h: New. Contents moved from diagnostic.h and
296 * diagnostic.c: Don't include toplev.h.
297 (progname): Define. Moved from toplev.c.
298 (seen_error): New function.
299 * diagnostic.h: Include diagnostic-core.h.
300 (diagnostic_t, emit_diagnostic): Don't declare here.
301 * toplev.c (progname): Move to toplev.c.
302 (emit_debug_global_declarations, compile_file, finalize,
303 do_compile, toplev_main): Use seen_error.
304 * toplev.h: Include diagnostic-core.h.
305 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
306 internal_error, warning, warning_at, error, error_n, error_at,
307 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
308 verbatim, fnotice, progname): Move to diagnostic-core.h.
309 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
310 (expand_builtin_expect): Use seen_error.
311 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
312 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
313 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
314 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
315 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
316 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
317 errorcount for errors.
318 * c-opts.c (c_common_finish): Use seen_error.
319 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
320 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
321 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
322 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
323 (get_coverage_counts): Use seen_error.
324 * dwarf2out.c (dwarf2out_finish): Use seen_error.
325 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
326 gimplify_body): Use seen_error.
327 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
328 * ipa-pure-const.c (gate_pure_const): Use seen_error.
329 * ipa-reference.c (gate_reference): Use seen_error.
330 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
331 * lambda-code.c: Include diagnostic-core.h instead of
333 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
334 * lto-compress.c: Include diagnostic-core.h instead of
336 * lto-section-in.c: Include diagnostic-core.h instead of
338 * lto-streamer-out.c: Include diagnostic-core.h instead of
340 * lto-streamer.c: Include diagnostic-core.h instead of
342 (gate_lto_out): Use seen_error.
343 * matrix-reorg.c: Include diagnostic-core.h instead of
345 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
346 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
347 (gate_expand_omp, lower_omp_1): Use seen_error.
348 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
349 (rest_of_decl_compilation, rest_of_type_compilation,
350 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
351 * tree-cfg.c (label_to_block_fn): Use seen_error.
352 * tree-inline.c (optimize_inline_calls): Use seen_error.
353 * tree-mudflap.c (mudflap_finish_file): Use
355 * tree-optimize.c (gate_all_optimizations,
356 gate_all_early_local_passes, gate_all_early_optimizations): Use
358 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
359 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
360 (varpool_remove_unreferenced_decls,
361 varpool_assemble_pending_decls): Use seen_error.
362 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
363 (TOPLEV_H, DIAGNOSTIC_H): Update.
364 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
365 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
366 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
367 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
368 coverage.o, lambda-code.o): Update dependencies.
370 2010-05-25 Dodji Seketeli <dodji@redhat.com>
373 * c-common.c (is_typedef_decl): Move this definition ...
374 * tree.c (is_typedef_decl): ... here.
375 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
376 * c-common.h (is_typedef_decl): Move this declaration ...
377 * tree.h (is_typedef_decl): ... here.
378 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
379 * dwarf2out.c (is_naming_typedef_decl): New function.
380 (gen_tagged_type_die): Split out of ...
381 (gen_type_die_with_usage): ... this function. When an anonymous
382 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
383 is emitted for the typedef.
384 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
385 anonymous tagged types.
387 2010-05-27 Jason Merrill <jason@redhat.com>
389 * print-tree.c (debug_vec_tree): New fn.
390 (print_vec_tree): New fn.
391 * tree.h: Declare them.
392 * gdbinit.in (pvt): New command.
394 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
396 * gdbinit.in (pdd): New command.
398 2010-05-27 Jan Hubicka <jh@suse.cz>
400 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
401 (update_caller_keys): Return early if there are no callers;
402 only update fibheap when decresing the key.
403 (update_callee_keys): Avoid recursion.
404 (decide_inlining_of_small_functions): When badness does not match;
405 re-insert into fibheap.
407 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
409 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
410 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
411 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
412 (ALL_HOST_OBJS): Now a union of the above two.
413 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
414 all files in ALL_HOST_FRONTEND_OBJS.
415 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
417 * c-common.c: Pretend to be a backend file by undefining
418 IN_GCC_FRONTEND (still need rtl.h here).
420 2010-05-27 Jan Hubicka <jh@suse.cz>
422 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
423 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
425 2010-05-27 Jan Hubicka <jh@suse.cz>
427 * sched-ebb.c: Rename struct deps to struct deps_desc.
429 * sel-sched-ir.c: Likewise.
430 * sched-deps.c: Likewise.
431 * sched-int.h: Likewise.
432 * sched-rgn.c: Likewise.
434 2010-05-27 Jon Beniston <jon@beniston.com>
437 * config/lm32/lm32.h: Remove definition of
438 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
440 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
443 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
445 2010-05-27 Richard Guenther <rguenther@suse.de>
447 PR tree-optimization/44284
448 * tree-vect-stmts.c (vectorizable_assignment): Handle
449 sign-changing conversions as simple copy.
451 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
453 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
455 (__gthread_active_p): Check for pthread_create if compiling against
458 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
460 Support compilation for Android platform. Reimplement -mandroid.
462 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
463 (*android*): Set ANDROID_DEFAULT.
464 (arm*-*-linux*): Include linux-android.h.
465 (arm*-*-eabi*): Don't include previous -mandroid implementation.
466 * config/arm/eabi.h: Remove, move Android-specific parts ...
467 * config/linux-android.h: ... here. New file.
468 * config/arm/eabi.opt: Rename to ...
469 * config/linux-android.opt: ... this.
470 (mandroid): Allow -mno-android option. Initialize based on
472 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
473 Move logic to corresponding LINUX_TARGET_* macros.
474 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
475 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
476 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
478 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
479 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
482 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
484 Add support for Bionic C library
486 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
488 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
489 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
491 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
492 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
493 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
494 to support multiple C libraries. Handle Bionic.
495 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
496 (BIONIC_DYNAMIC_LINKER64): Define.
497 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
499 (TARGET_HAS_SINCOS): Enable for Bionic.
501 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
502 the last option specified on command line take effect.
503 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
505 (mglibc, muclibc): Update.
507 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
508 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
511 * doc/invoke.texi (-mglibc, -muclibc): Update.
512 (-mbionic): Document.
514 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
516 * c-common.h (c_register_addr_space): Add prototype.
517 (ADDR_SPACE_KEYWORD): Remove.
518 * c-common.c (c_register_addr_space): New function.
519 (c_addr_space_name): Reimplement.
520 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
522 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
523 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
525 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
526 Remove TARGET_ADDR_SPACE_KEYWORDS.
528 2010-05-27 Joseph Myers <joseph@codesourcery.com>
531 * input.h (main_input_filename): Move declaration to toplev.h.
532 * toplev.c (input_location, line_table): Move to input.c
533 * toplev.h (main_input_filename): Move declaration from input.h.
534 * tree.c (expand_location): Move to input.c.
535 * Makefile.in (OBJS-common): Add input.o.
536 (input.o): Add dependencies.
538 2010-05-27 Richard Guenther <rguenther@suse.de>
540 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
541 for non-existant files.
542 (fork_execute): Mark args_name file as deleted.
544 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
547 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
548 (narrow_signed_type): Likewise.
550 2010-05-26 Jan Hubicka <jh@suse.cz>
552 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
553 edge only when checking is enabled; check using former_clone_of;
554 check inline clones too.
555 (cgraph_materialize_clone): Record former_clone_of pointer.
556 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
557 combining redirections; dump args_to_skip bitmap
558 (cgraph_materialize_all_clones): Do no redirection here.
559 * ipa-inline.c (inline_transform): Do redirection here.
560 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
563 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
565 * config/avr/avr-c.c: Do not include regs.h.
566 Include cpplib.h for cpp_define and tree.h for c-common.h.
567 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
568 * config/avr/t-avr: Fix dependencies for avr-c.o.
570 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
572 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
573 string instead of SYMBOL_REF rtx.
574 * rtl.h (set_stack_check_libfunc): Move prototype from here...
575 * libfuncs.h: ...to here. Adjust for explow.c change.
577 2010-05-26 Joseph Myers <joseph@codesourcery.com>
579 * pretty-print.c: Don't include ggc.h.
580 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
581 (identifier_to_locale): Use them for allocation.
582 * pretty-print.h (identifier_to_locale_alloc,
583 identifier_to_locale_free): Declare.
584 * toplev.c (alloc_for_identifier_to_locale): New.
585 (general_init): Set identifier_to_locale_alloc and
586 identifier_to_locale_free.
587 * Makefile.in (pretty-print.o): Update dependencies.
589 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
591 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
592 pointer types if they have different alignment or mode.
594 2010-05-26 Anatoly Sokolov <aesok@post.ru>
596 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
597 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
598 * config/sparc/sparc-protos.h (function_value): Remove declaration.
599 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
600 sparc_function_value_regno_p): New functions.
601 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
602 TARGET_FUNCTION_VALUE_REGNO_P): Define.
603 (function_value): Rename to...
604 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
605 argument to 'outgoing'.
606 (function_arg_record_value, function_arg_union_value,
607 function_arg_vector_value): Update comment.
609 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
611 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
612 (fde_needed_for_eh_p): New predicate.
613 (output_call_frame_info): Use it throughout to decide whether FDEs
614 are needed for EH purpose.
615 (dwarf2out_begin_prologue): Reorder assignments.
617 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
619 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
620 special case loop->header.
621 (is_predicated): New.
622 (if_convertible_loop_p): Call it.
624 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
626 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
627 iterator in parameter. Do not generate code during the analysis.
628 (tree_if_convert_cond_stmt): Removed.
629 (tree_if_convert_stmt): Removed.
630 (predicate_bbs): New.
631 (if_convertible_loop_p): Call predicate_bbs.
632 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
633 now contains all the analysis part.
635 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
637 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
638 statements in the analysis part.
639 (tree_if_convert_stmt): Update comment.
640 (remove_conditions_and_labels): New.
641 (combine_blocks): Call remove_conditions_and_labels.
642 (tree_if_conversion): Update comment.
644 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
646 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
647 than 2 predecessors or more than 2 successors.
649 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
651 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
652 of loops in which the data dependence analysis fails.
654 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
656 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
658 (tree_if_conversion): Same.
660 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
662 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
664 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
666 * tree-if-conv.c: Update copyright years. Fix comments.
669 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
671 * builtin-types.def (BT_INT128): New primitive type.
672 (BT_UINT128): Likewise.
673 * c-common.c (c_common_r): Add __int128 keyword.
674 (c_common_type_for_size): Handle __int128.
675 (c_common_type_for_mode): Likewise.
676 (c_common_signed_or_unsigned_type): Likewise.
677 (c_common_nodes_and_builtins): Add builtin type
678 if target supports 128-bit integer scalar.
679 * c-common.h (enum rid): Add RID_INT128.
680 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
681 if target supports 128-bit integer scalar.
682 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
683 (finish_declspecs): Likewise.
684 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
685 (c_token_starts_declspecs): Likewise.
686 (c_parser_declspecs): Likewise.
687 (c_parser_attributes): Likewise.
688 (c_parser_objc_selector): Likewise.
689 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
690 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
691 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
692 * tree.c (make_or_reuse_type): Likewise.
693 (make_unsigned_type): Likewise.
694 (build_common_tree_nodes_2): Likewise.
695 * tree.h (enum integer_type_kind): Add itk_int128 and
697 (int128_integer_type_node): New define.
698 (int128_unsigned_type_node): New define.
699 * doc/extend.texi: Add documentation about __int128 type.
701 2010-05-26 Richard Guenther <rguenther@suse.de>
703 * tree-ssa-sccvn.c (copy_nary): Adjust.
704 (copy_phis): Rename to ...
705 (copy_phi): ... this. Adjust.
706 (copy_references): Rename to ...
707 (copy_reference): ... this. Adjust.
708 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
709 result into the valid table.
711 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
713 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
714 insn-config.h, insn-codes.h, recog.h, and optabs.h.
716 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
718 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
720 2010-05-26 Richard Guenther <rguenther@suse.de>
722 * opts.c (common_handle_option): Handle OPT_Ofast.
724 2010-05-26 Joseph Myers <joseph@codesourcery.com>
726 * diagnostic.c: Don't include opts.h.
727 (permissive_error_option): Define.
728 (diagnostic_initialize): Take n_opts parameter. Allocate memory
729 for classify_diagnostic. Don't use memset for
730 classify_diagnostic. Initialize new and recently added fields.
731 (diagnostic_classify_diagnostic): Use context->n_opts instead of
733 (diagnostic_report_diagnostic): Pass context parameter to
734 diagnostic_report_warnings_p. Use option_enabled and option_name
736 (emit_diagnostic): Use permissive_error_option.
737 (permerror): Likewise.
738 * diagnostic.h: Don't include options.h.
739 (struct diagnostic_context): Add n_opts, opt_permissive,
740 inhibit_warnings, warn_system_headers, option_enabled and
741 option_name fields. Change classify_diagnostic to a pointer.
742 * opts-diagnostic.h: New file.
743 * opts.c: Include opts-diagnostic.h.
744 (common_handle_option): Set global_dc fields for -Wfatal-errors,
745 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
746 (option_name): New function.
747 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
748 (c_common_handle_option): Set global_dc->permissive for
750 * c-common.c (c_cpp_error): Save and restore
751 global_dc->warn_system_headers, not variable warn_system_headers.
752 * toplev.c: Include opts-diagnostic.h.
753 (general_init): Update call to diagnostic_initialize. Set
754 global_dc->show_column, global_dc->option_enabled and
755 global_dc->option_name.
756 (process_options): Don't set global_dc fields here.
757 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
758 (diagnostic.o, opts.o, toplev.o): Update dependencies.
760 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
762 * config/picochip/picochip.md (movsi): Split a movsi from a
765 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
767 * ggc-zone.c: Update copyright year.
768 (poison_region): Mark memory for Valgrind as undefined before
769 memset () call and inaccessible afterwards.
770 (ggc_pch_total_size): Change type of i to int.
772 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
774 * ggc-common.c (ggc_free_overhead): Allow empty slot.
776 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
778 * ggc-common.c: Update copyright year.
779 (ggc_rlimit_bound): Remove prototype. Compile only if
780 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
781 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
782 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
783 (ggc_min_heapsize_heuristic): Likewise.
785 2010-05-26 Richard Guenther <rguenther@suse.de>
787 PR rtl-optimization/44164
788 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
789 no-common access-path disambiguation.
790 (indirect_ref_may_alias_decl_p): Adjust.
791 (indirect_refs_may_alias_p): Likewise.
792 (refs_may_alias_p_1): Likewise.
794 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
796 * c-typeck.c: Do not include expr.h.
798 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
800 * rtl.h (decl_default_tls_model): Move prototype from here...
801 * output.h: ...to here.
802 * c-decl.c: Do not include rtl.h.
803 * c-pragma.c: Likewise.
804 * c-parser.c: Likewise.
805 * c-gimplify.c: Likewise. And also not hard-reg-set.
806 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
807 FIXME note for it. Add a FIXME note for expr.h.
808 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
809 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
812 2010-05-26 Jakub Jelinek <jakub@redhat.com>
815 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
816 or total_size is larger than red zone size for non-V4 ABI, emit a
817 stack_tie resp. frame_tie insn before stack pointer restore.
818 * config/rs6000/rs6000.md (frame_tie): New insn.
820 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
822 * function.h (struct function): Add can_throw_non_call_exceptions bit.
823 * lto-streamer-in.c (input_function): Stream it in.
824 * lto-streamer-out.c (output_function): Stream it out.
825 * function.c (allocate_struct_function): Set it.
826 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
827 for flag_non_call_exceptions.
828 * cfgbuild.c (control_flow_insn_p): Likewise.
829 (make_edges): Likewise.
830 * cfgexpand.c (expand_stack_alignment): Likewise.
831 * combine.c (distribute_notes): Likewise.
832 * cse.c (cse_extended_basic_block): Likewise.
833 * except.c (insn_could_throw_p): Likewise.
834 * gcse.c (simple_mem): Likewise.
835 * ipa-pure-const.c (check_call): Likewise.
836 (check_stmt ): Likewise.
837 * lower-subreg.c (lower-subreg.c): Likewise.
838 * optabs.c (emit_libcall_block): Likewise.
839 (prepare_cmp_insn): Likewise.
840 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
841 * postreload.c (rest_of_handle_postreload): Likewise.
842 * reload1.c (reload_as_needed): Likewise.
843 (emit_input_reload_insns): Likewise.
844 (emit_output_reload_insns): Likewise.
845 (fixup_abnormal_edges): Likewise.
846 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
847 * store-motion.c (find_moveable_store): Likewise.
848 * tree-eh.c (stmt_could_throw_p): Likewise.
849 (tree_could_throw_p): Likewise.
850 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
851 * config/arm/arm.c (arm_expand_prologue): Likewise.
852 (thumb1_expand_prologue): Likewise.
853 * config/rx/rx.md (cbranchsf4): Likewise.
855 * config/s390/s390.c (s390_emit_prologue): Likewise.
856 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
857 (inline_forbidden_into_p): New predicate.
858 (expand_call_inline): Use it to forbid inlining.
859 (tree_can_inline_p): Likewise.
861 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
863 * config/i386/i386-c.c: Do not include rtl.h.
864 * config/i386/t-i386: Update dependencies.
866 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
868 * attribs.c: Do not include rtl.h.
869 * Makefile.in: Update dependencies.
871 2010-05-25 Anatoly Sokolov <aesok@post.ru>
873 * double-int.h (double_int_and): New.
874 * combine.c (try_combine): Clean up, use double_int_* and
875 immed_double_int_const functions.
877 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
879 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
880 stderr to /dev/null instead of grep -q.
881 * configure: Regenerate.
883 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
885 * Makefile.in (EXCEPT_H): Fix typo.
887 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
889 * ira-build.c (update_conflict_hard_reg_costs): New.
890 (ira_build): Call update_conflict_hard_reg_costs.
892 2010-05-25 Jakub Jelinek <jakub@redhat.com>
895 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
897 (intersect_loc_chains): Walk the s2var's loc_chain together
898 with s1node chain as long as the locations are equal, don't
899 call find_loc_in_1pdv in that case.
902 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
903 (copy_bind_expr): ... instead of here.
904 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
905 if the block hasn't been remapped.
906 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
907 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
909 2010-05-25 Richard Guenther <rguenther@suse.de>
912 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
913 out-of-bounds array accesses.
915 2010-05-25 Richard Guenther <rguenther@suse.de>
917 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
918 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
919 (run_gcc): Re-organize to make cleanup easier.
921 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
923 * config/s390/s390.c (optimization_options): Fix and move the
924 flag_prefetch_loop_arrays override ...
925 (override_options): ... here.
927 2010-05-25 Joseph Myers <joseph@codesourcery.com>
929 * diagnostic.c: Don't include plugin.h.
930 (diagnostic_report_diagnostic): Don't handle plugins specially
931 here. Pass context to internal_error callback.
932 * diagnostic.h (struct diagnostic_context): Add context parameter
933 to internal_error callback.
934 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
935 * plugin.h (struct diagnostic_context): Declare.
936 (warn_if_plugins, plugins_internal_error_function): Declare.
937 * toplev.c (general_init): Set global_dc->internal_error.
938 * Makefile.in (diagnostic.o): Update dependencies.
940 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
942 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
943 * config/rs6000/t-darwin64: New.
944 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
947 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
950 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
951 match the original (and intended) behaviour before r159557. This
952 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
955 2010-05-25 Richard Guenther <rguenther@suse.de>
957 * doc/invoke.texi: Document -Ofast.
958 * target.h (struct gcc_target): Add handle_ofast.
959 * target-def.h (TARGET_HANDLE_OFAST): Add.
960 (TARGET_INITIALIZER): Adjust.
961 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
962 * common.opt (Ofast): Add.
964 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
966 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
967 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
969 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
972 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
973 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
974 false_rtx. Use false_rtx to compute the correct *ptest for reversed
975 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
977 2010-05-25 Jakub Jelinek <jakub@redhat.com>
979 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
980 DW_OP_minus with negated offset instead of DW_OP_plus.
981 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
983 2010-05-25 Wei Guozhi <carrot@google.com>
985 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
986 tst instruction and a new alternative.
987 * config/arm/constraints.md (Pu): New constraint.
989 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
991 * function.c (assign_stack_local_1): Initialize variable
992 to avoid warning when bootstrapping at -O3.
994 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
996 * configure.ac (all_lang_makefiles): Remove everything related to it.
997 * configure: Regenerate.
998 * Makefile.in: Fix reference to ada Make-lang.in.
999 Remove support for LANG_MAKEFILES.
1001 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1002 Sandra Loosemore <sandra@codesourcery.com>
1004 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1005 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1006 description. Add arm_neon_fp16_ok.
1007 (Add Options): Add arm_neon and arm_neon_fp16.
1009 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1011 * diagnostic.c: Don't include flags.h.
1012 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1013 context parameters. Check flags in the context passed as a parameter.
1014 (diagnostic_build_prefix): Add context parameter. Check
1015 show_column flag in context.
1016 (diagnostic_action_after_output): Check fatal_errors flag in context.
1017 (diagnostic_report_current_module): Check show_column flag in context.
1018 (default_diagnostic_starter): Update call to
1019 diagnostic_build_prefix.
1020 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1021 (emit_diagnostic): Pass context to permissive_error_kind.
1022 (permerror): Pass context to permissive_error_kind.
1023 * diagnostic.h (struct diagnostic_context): Add show_column,
1024 pedantic_errors, permissive and fatal_errors fields.
1025 (diagnostic_build_prefix): Update prototype.
1027 * toplev.c (process_options): Set flags in global_dc from
1028 flag_show_column, flag_pedantic_errors, flag_permissive,
1030 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1031 to diagnostic_build_prefix.
1032 * Makefile.in (diagnostic.o): Update dependencies.
1034 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1036 * config/i386/ia32intrin.h (__crc32q): Define only if
1037 __SSE4_2__ is defined.
1039 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1043 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1044 DECL_VISIBILITY_SPECIFIED.
1045 (emutls_decl): Set DECL_PRESERVE_P and copy
1046 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1047 (emutls_finalize_control_var): New callback.
1048 (emutls_finish): Finalize emutls control variables.
1049 * toplev.c (compile_file): Move the call to emutls_finish ()
1050 before varpool_assemble_pending_decls ().
1052 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1054 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1055 added to the preprocessor condition.
1057 2010-05-24 Paul Brook <paul@codesourcery.com>
1059 * gengtype-lex.l: Add HARD_REG_SET.
1060 * expr.c (expand_expr_real_1): Record writes to hard registers.
1061 * function.c (rtl_data): Add asm_clobbers.
1062 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1063 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1064 Use crtl->asm_clobbers.
1066 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1068 * doc/makefile.texi (Makefile): Mention stages 'profile'
1069 and 'feedback' for profiledbootstrap.
1071 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
1074 * config/i386/i386.c (def_builtin): Properly check
1075 OPTION_MASK_ISA_64BIT.
1077 2010-05-23 Joseph Myers <joseph@codesourcery.com>
1079 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1080 typedefs with different but compatible types. Allow duplicate
1081 typedefs with the same type except for pedantic non-C1X, but give
1082 warning for variably modified types.
1083 * c-typeck.c (tagged_types_tu_compatible_p,
1084 function_types_compatible_p, type_lists_compatible_p,
1085 comptypes_internal): Add parameter different_types_p; set
1086 *different_types_p for different but compatible types. All
1088 (comptypes_check_different_types): New.
1089 * c-tree.h (comptypes_check_different_types): Declare.
1091 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1093 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
1094 * jump.c: Include basic-block.h.
1095 * profile.c: Likewise.
1096 * tree-profile.c: Likewise.
1097 * coverage.c: Likewise.
1098 * basic-block.h (optimize_function_for_size_p): Move to function.h.
1099 (optimize_function_for_speed_p): Likewise.
1100 * function.h (optimize_function_for_size_p,
1101 optimize_function_for_speed_p): Moved here from basic-block.h.
1102 * Makefile.in: Update dependencies.
1104 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1106 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1107 before calling make; allow override through $MAKE.
1108 * doc/invoke.texi (Optimize Options): Document override.
1110 2010-05-23 Anatoly Sokolov <aesok@post.ru>
1112 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1113 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1114 (rs6000_mode_dependent_address_ptr): Make static.
1115 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1116 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1119 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
1122 * config/i386/i386.c: Make sure that the correct regparm is passed.
1124 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1126 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1127 * sbitmap.c: ...to here to internalize sbitmap element access.
1128 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1129 Explain why basic-block.h is included.
1130 * function.h: Include tm.h for CUMULATIVE_ARGS.
1131 * Makefile.in: Update dependencies.
1133 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1135 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1137 * sbitmap.h (struct sbitmap_def): Do not typedef here.
1138 * sbitmap.c: Include sbitmap.h.
1139 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1140 hard-reg-set.h. Split everything related to regsets out from here...
1141 * regset.h: ...to here. New file.
1142 * df.h: Include regset.h and sbitmap.h.
1143 * tree-flow.h: Likewise.
1144 * cfgloop.h: Likewise.
1145 * except.h: Do not include sbitmap.h. Include hashtab.h.
1146 * cgraph.h: Include vec.h and function.h.
1147 * reload.h (struct insn_chain): Change types of live_throughout
1148 and dead_or_set from regset_head to bitmap_head.
1149 (compute_use_by_pseudos): Be defined also if regset.h is not included.
1150 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1151 spilled_regs from regset_head to bitmap_head to avoid dependency
1153 * sel-sched-ir.h: Include regset.h.
1154 * reload.c: Include df.h before reload.h.
1155 * caller-save.c: Likewise.
1156 * reload1.c: Likewise.
1158 (mark_elimination): Update type of r to bitmap, consistent with
1160 * dominance.c: Include bitmap.h.
1161 * modulo-sched.c: Include df.h.
1162 * cfganal.c: Include bitmap.h and sbitmap.h.
1163 * cfgbuild.c: Include sbitmap.h.
1164 * lcm.c: Include sbitmap.h.
1165 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1166 * domwalk.c: Include sbitmap.h, exclude ggc.h.
1167 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1168 * cselib.c: Include bitmap.h.
1169 * tree-optimize.c: Include regset.h.
1170 * stmt.c: Include bitmap.h.
1171 * Makefile.in: Update dependencies.
1173 2010-05-22 Jan Hubicka <jh@suse.cz>
1175 * cgraph.h (struct varpool_node): Add same_comdat_group.
1176 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1178 (output_varpool): Update call of lto_output_varpool_node.
1179 (input_varpool): Read same_comdat_group pointer.
1180 (input_varpool_1): Fixup same_comdat_group pointer.
1181 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1182 group is needed, all are.
1183 * varpool.c (varpool_remove_node): Remove node from same comdat group
1185 (varpool_analyze_pending_decls): Walk same comdat groups.
1187 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1189 * rtl.h (union rtunion_def): Remove rt_bit member.
1190 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1191 * print-rtl (print_rtx): Do not print the member.
1192 * gengtype.c (adjust_field_rtx_def): Do not handle it.
1193 * gengenrtl.c (type_from_format): Likewise.
1194 (accessor_from_format): Likewise.
1196 2010-05-22 Joseph Myers <joseph@codesourcery.com>
1198 * dbgcnt.c: Include toplev.h instead of errors.h.
1199 * ira-emit.c: Don't include errors.h.
1200 * ira.c: Include toplev.h instead of errors.h.
1201 * lto-compress.c: Include toplev.h instead of errors.h.
1202 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1203 ira.o, dbgcnt.o): Update dependencies.
1205 2010-05-22 Richard Guenther <rguenther@suse.de>
1207 * gimple.c (gimple_types_compatible_p): Check type qualifications
1208 before merging pointer to complete and pointer to incomplete type.
1209 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1210 we use our own resolution algorithm. The gold linker plugin
1211 doesn't do the job we want it to do here.
1213 2010-05-22 Anatoly Sokolov <aesok@post.ru>
1215 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1216 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1217 (sparc_mode_dependent_address_p): New function.
1219 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1221 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1223 * timevar.c: Do not include any core headers.
1224 (timevar_print): De-i18n-ize.
1225 (print_time): Likewise.
1226 * timevar.h (timevar_push, timevar_pop): Make inline functions.
1228 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1230 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1232 (diagnostic_initialize): Initialize x_data not last_function.
1233 (diagnostic_report_current_function): Move to tree-diagnostic.c.
1234 (default_diagnostic_starter): Call
1235 diagnostic_report_current_module not
1236 diagnostic_report_current_function.
1237 (diagnostic_report_diagnostic): Initialize x_data not
1239 (verbatim): Likewise.
1240 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1242 (struct diagnostic_context): Change last_function to x_data.
1243 (diagnostic_auxiliary_data): Replace with
1244 diagnostic_context_auxiliary_data and
1245 diagnostic_info_auxiliary_data.
1246 (diagnostic_last_function_changed, diagnostic_set_last_function,
1247 diagnostic_report_current_function): Move to tree-diagnostic.h.
1248 (print_declaration, dump_generic_node, print_generic_stmt,
1249 print_generic_stmt_indented, print_generic_expr,
1250 print_generic_decl, debug_c_tree, dump_omp_clauses,
1251 print_call_name, debug_generic_expr, debug_generic_stmt,
1252 debug_tree_chain, default_tree_printer): Move to
1253 tree-pretty-print.h.
1254 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1255 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1256 gimple-pretty-print.h.
1257 * pretty-print.c: Don't include tree.h
1258 (pp_base_format): Don't handle %K here.
1259 (pp_base_tree_identifier): Move to tree-pretty-print.c.
1260 * pretty-print.h (text_info): Change abstract_origin to x_data.
1261 (pp_tree_identifier, pp_unsupported_tree,
1262 pp_base_tree_identifier): Move to tree-pretty-print.h.
1263 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1264 tree-pretty-print.h: New files.
1265 * tree-pretty-print.c: Include tree-pretty-print.h.
1266 (percent_K_format): New. Moved from pretty-print.c.
1267 (pp_base_tree_identifier): Move from pretty-print.c.
1268 * c-objc-common.c: Include tree-pretty-print.h.
1269 (c_tree_printer): Handle %K here.
1270 * langhooks.c: Include tree-diagnostic.h.
1271 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1272 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1273 (default_tree_printer): Handle %K using percent_K_format.
1274 (general_init): Use default_tree_diagnostic_starter.
1275 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1276 (free_lang_data): Use default_tree_diagnostic_starter.
1277 * c-pretty-print.c: Include tree-pretty-print.h.
1278 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1279 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1280 * dwarf2out.c: Include tree-pretty-print.h.
1281 * except.c: Include tree-pretty-print.h.
1282 * gimple-pretty-print.c: Include tree-pretty-print.h and
1283 gimple-pretty-print.h.
1284 * gimplify.c: Include tree-pretty-print.h.
1285 * graphite-poly.c: Include tree-pretty-print.h and
1286 gimple-pretty-print.h.
1287 * ipa-cp.c: Include tree-pretty-print.h.
1288 * ipa-inline.c: Include gimple-pretty-print.h.
1289 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1290 * ipa-pure-const.c: Include gimple-pretty-print.h.
1291 * ipa-struct-reorg.c: Include tree-pretty-print.h and
1292 gimple-pretty-print.h.
1293 * ipa-type-escape.c: Include tree-pretty-print.h.
1294 * print-rtl.c: Include tree-pretty-print.h.
1295 * print-tree.c: Include gimple-pretty-print.h.
1296 * sese.c: Include tree-pretty-print.h.
1297 * tree-affine.c: Include tree-pretty-print.h.
1298 * tree-browser.c: Include tree-pretty-print.h.
1299 * tree-call-cdce.c: Include gimple-pretty-print.h.
1300 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1301 * tree-chrec.c: Include tree-pretty-print.h.
1302 * tree-data-ref.c: Include tree-pretty-print.h and
1303 gimple-pretty-print.h.
1304 * tree-dfa.c: Include tree-pretty-print.h.
1305 * tree-if-conv.c: Include tree-pretty-print.h and
1306 gimple-pretty-print.h.
1307 * tree-inline.c: Include tree-pretty-print.h.
1308 * tree-into-ssa.c: Include tree-pretty-print.h and
1309 gimple-pretty-print.h.
1310 * tree-nrv.c: Include tree-pretty-print.h.
1311 * tree-object-size.c: Include tree-pretty-print.h and
1312 gimple-pretty-print.h.
1313 * tree-outof-ssa.c: Include tree-pretty-print.h and
1314 gimple-pretty-print.h.
1315 * tree-parloops.c: Include tree-pretty-print.h and
1316 gimple-pretty-print.h.
1317 * tree-predcom.c: Include tree-pretty-print.h and
1318 gimple-pretty-print.h.
1319 * tree-scalar-evolution.c: Include tree-pretty-print.h and
1320 gimple-pretty-print.h.
1321 * tree-sra.c: Include tree-pretty-print.h.
1322 * tree-ssa-address.c: Include tree-pretty-print.h.
1323 * tree-ssa-alias.c: Include tree-pretty-print.h.
1324 * tree-ssa-ccp.c: Include tree-pretty-print.h and
1325 gimple-pretty-print.h.
1326 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1327 * tree-ssa-copy.c: Include tree-pretty-print.h and
1328 gimple-pretty-print.h.
1329 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1330 * tree-ssa-dce.c: Include tree-pretty-print.h and
1331 gimple-pretty-print.h.
1332 * tree-ssa-dom.c: Include tree-pretty-print.h and
1333 gimple-pretty-print.h.
1334 * tree-ssa-dse.c: Include gimple-pretty-print.h.
1335 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1336 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1337 * tree-ssa-live.c: Include tree-pretty-print.h and
1338 gimple-pretty-print.h.
1339 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1340 gimple-pretty-print.h.
1341 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1342 gimple-pretty-print.h.
1343 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1344 gimple-pretty-print.h.
1345 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1346 gimple-pretty-print.h.
1347 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1348 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1349 * tree-ssa-operands.c: Include tree-pretty-print.h and
1350 gimple-pretty-print.h.
1351 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1352 gimple-pretty-print.h.
1353 * tree-ssa-pre.c: Include tree-pretty-print.h and
1354 gimple-pretty-print.h.
1355 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1356 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1357 gimple-pretty-print.h.
1358 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1359 gimple-pretty-print.h.
1360 * tree-ssa-sink.c: Include gimple-pretty-print.h.
1361 * tree-ssa-ter.c: Include tree-pretty-print.h and
1362 gimple-pretty-print.h.
1363 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1364 * tree-ssa.c: Include tree-pretty-print.h and
1365 gimple-pretty-print.h.
1366 * tree-stdarg.c: Include gimple-pretty-print.h.
1367 * tree-switch-conversion.c: Include gimple-pretty-print.h.
1368 * tree-tailcall.c: Include tree-pretty-print.h and
1369 gimple-pretty-print.h.
1370 * tree-vect-data-refs.c: Include tree-pretty-print.h and
1371 gimple-pretty-print.h.
1372 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1373 gimple-pretty-print.h.
1374 * tree-vect-loop.c: Include tree-pretty-print.h and
1375 gimple-pretty-print.h.
1376 * tree-vect-patterns.c: Include gimple-pretty-print.h.
1377 * tree-vect-slp.c: Include tree-pretty-print.h and
1378 gimple-pretty-print.h.
1379 * tree-vect-stmts.c: Include tree-pretty-print.h and
1380 gimple-pretty-print.h.
1381 * tree-vectorizer.c: Include tree-pretty-print.h.
1382 * tree-vrp.c: Include tree-pretty-print.h and
1383 gimple-pretty-print.h.
1384 * value-prof.c: Include tree-pretty-print.h and
1385 gimple-pretty-print.h.
1386 * var-tracking.c: Include tree-pretty-print.h.
1387 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1388 (tree-diagnostic.o): New dependencies.
1389 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1390 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1391 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1392 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1393 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1394 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1395 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1396 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1397 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1398 tree-ssa-address.o, tree-ssa-loop-niter.o,
1399 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1400 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1401 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1402 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1403 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1404 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1405 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1406 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1407 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1408 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1409 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1410 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1411 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1412 tree-switch-conversion.o, var-tracking.o, value-prof.o,
1413 cfgexpand.o, pretty-print.o): Update dependencies.
1415 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
1417 * tree-ssa-structalias.c: Remove tm_p.h from include.
1419 2010-05-21 Jeff Law <law@redhat.com>
1421 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1423 2010-05-21 Jason Merrill <jason@redhat.com>
1425 * tree-eh.c (cleanup_is_dead_in): New.
1426 (lower_try_finally): Don't generate a dead cleanup region.
1427 (lower_cleanup): Likewise.
1429 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1432 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1433 unchain each use from the cyclic next_regno_use chain first.
1435 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1437 * real: Do not include gmp.h, mpfr.h, and mpc.h.
1438 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1439 (real_value_negate, real_value_abs): New prototypes.
1440 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1441 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1442 new include file for interface between MPFR and REAL_VALUE_TYPE.
1443 * real.c: Include realmpfr.h.
1444 (real_arithmetic2): Remove legacy function.
1445 (real_value_negate): New.
1446 (real_value_abs): New.
1447 (mfpr_from_real, real_from_mpfr): Move from here...
1448 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1449 * builtins.c: Include realmpfr.h.
1450 * fold-const.c: Include realmpfr.h.
1451 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1452 (fold_negate_const): Likewise.
1453 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1454 * toplev.c: Include realmpfr.h.
1455 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1456 and real_value_negate.
1457 * fixed-value.c (check_real_for_fixed_mode): Likewise.
1458 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1459 (vfp3_const_double_index): Likewise.
1460 (arm_print_operand): Likewise.
1461 * Makefile.in: Update dependencies.
1463 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1465 * config/s390/s390.c (override_options): Increase the default
1466 of max-completely-peel-times.
1468 2010-05-21 Julian Brown <julian@codesourcery.com>
1469 Mark Mitchell <mark@codesourcery.com>
1471 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1472 sibling calls for Thumb-1.
1473 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1474 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1476 (*call_insn, *call_value_insn): Don't use for Thumb-2.
1477 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1479 (return): New expander.
1480 (*arm_return): New name for ARM return insn.
1481 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1483 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
1485 * config.gcc (sparc64-*-rtems*): New target.
1487 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1489 * tree.c (build_function_decl_skip_args): Fix grammar.
1490 (build_function_type_list_1): Fix typos, adjust formatting.
1492 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1494 * tree.h: Include real.h and fixed-value.h as basic datatypes.
1495 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1496 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1497 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1498 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1499 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1500 tree-pretty-print.c, tree-loop-distribution.c,
1501 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1502 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1503 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1504 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1505 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1506 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1507 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1508 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1509 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1510 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1511 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1512 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1513 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1514 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1515 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1516 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1517 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1518 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1519 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1520 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1521 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1522 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1523 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1524 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1525 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1526 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1527 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1528 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1529 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1530 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1531 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1532 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1533 config/score/score7.c, config/score/score.c, config/arm/arm.c,
1534 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1535 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1536 config/bfin/bfin.c: Clean up redundant includes.
1537 * Makefile.in: Update accordingly.
1539 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1542 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1543 statement has no arguments.
1545 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
1548 * varasm.c (emutls_decl): Merge attributes to new decl.
1550 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
1553 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1554 around the uniquized constructor if its type requires a conversion.
1556 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1559 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1560 at -O0 goto_locus of any of the incoming edges differs from
1561 goto_locus of outgoing edge, or gimple_location of any of the
1564 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
1566 * ira.c (ira_non_ordered_class_hard_regs): Define.
1567 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1568 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1569 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1570 cost of unaligned hard regs when allocating multi-reg pseudos.
1572 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
1574 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1575 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1576 for TARGET_NO_FLOAT.
1577 * config/mips/mips.c (mips_file_start): Expand conditional expression
1578 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1579 (mips_override_options): Move -mno-float override -msoft-float and
1581 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1582 Condition(TARGET_SUPPORTS_NO_FLOAT).
1583 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1584 __mips_no_float here.
1585 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1586 (TARGET_SUPPORTS_NO_FLOAT): Define.
1587 * config/mips/sdemtk.opt: Delete.
1589 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1591 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1593 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
1596 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1597 * configure: Regenerate.
1598 * config.in: Regenerate.
1599 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1600 instead of sahf only for 64bit targets.
1602 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1605 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1606 setup_ref_regs for DEBUG_INSNs.
1608 2010-05-20 Jan Hubicka <jh@suse.cz>
1611 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1613 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1616 * df-scan.c (df_ref_compare): Stabilize sort.
1618 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1620 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1621 argument. Don't use DW_OP_piece if offset is non-zero,
1622 put offset into second DW_OP_bit_piece argument.
1623 (dw_sra_loc_expr): Adjust callers. For memory expressions
1626 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
1629 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1630 settings for 16-bit-constant "addo" alternative.
1632 2010-05-19 James E. Wilson <wilson@codesourcery.com>
1634 * config/mips/mips-dsp.md (add<DSPV:mode>3,
1635 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1638 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
1639 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1642 2010-05-19 Joseph Myers <joseph@codesourcery.com>
1644 * diagnostic.c (FLOAT, FFS): Don't undefine.
1645 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1646 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1649 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1651 * combine.c (propagate_for_debug): Call make_compound_operation
1652 on the source value.
1653 (try_combine): When implementing a split chosen by find_split_point,
1654 either copy i2src or set it to null. Assert that i2src is not null
1655 before substituting into CALL_INSN_FUNCTION_USAGE.
1657 2010-05-19 Anatoly Sokolov <aesok@post.ru>
1659 * double-int.h (double_int_ior): New function.
1660 * tree.h (build_int_cst_wide_type): Remove.
1661 * tree.c (build_int_cst_wide_type): Remove.
1662 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1663 of build_int_cst_wide_type.
1664 * stor-layout.c (set_sizetype): (Ditto.).
1665 * dojump.c (do_jump): Use build_int_cstu instead of
1666 build_int_cst_wide_type.
1668 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
1670 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1671 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1672 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1673 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1674 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
1675 propagate the 'data' argument to copy_tree_r.
1676 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1677 Propagate 'data' argument to walk_tree.
1678 (copy_if_shared): New function.
1679 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1680 (unmark_visited): New function.
1681 (unshare_body): Call copy_if_shared instead of doing it manually.
1682 (unvisit_body): Call unmark_visited instead of doing it manually.
1684 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
1686 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1687 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
1688 * hooks.c: Likewise.
1689 * target-def.h (TARGET_FOLD_BUILTIN): Define to
1690 hook_tree_tree_int_treep_bool_null.
1691 * target.h (struct gcc_target): Update signature of fold_builtin
1693 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
1694 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
1695 instead of the call expression.
1696 (fold_builtin_call_array): Pass n and argarray directly.
1697 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
1699 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
1700 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
1701 `i' and use it in place of `arity'.
1702 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
1703 Dereference `args' directly.
1704 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
1706 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1708 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1710 (Directives): Document optional dg-require-effective-target
1713 2010-05-19 Richard Guenther <rguenther@suse.de>
1716 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1718 2010-05-19 Richard Guenther <rguenther@suse.de>
1720 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
1721 * common.opt (fwhopr=): New.
1722 * opts.c (common_handle_option): Handle OPT_fwhopr.
1723 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
1724 * collect2.c (main): Match -fwhopr*.
1725 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
1726 Execute ltrans stage in parallel when jobs is bigger than 1.
1728 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1730 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1731 pentiumpro on Solaris 8/x86 with Sun as.
1732 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1734 (gcc_cv_as_ix86_quad): Check for .quad directive.
1735 * configure: Regenerate.
1736 * config.in: Regenerate.
1737 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1739 2010-05-19 Martin Jambor <mjambor@suse.cz>
1741 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
1742 also for indirect edges. Actual printing moved...
1743 (ipa_print_node_jump_functions_for_edge): ...here.
1744 (ipa_compute_jump_functions): Renamed to
1745 ipa_compute_jump_functions_for_edge and made static.
1746 (ipa_compute_jump_functions): New function.
1747 (make_edge_direct_to_target): Check if the number of arguments on
1748 the newly direct edge is the same as the number of parametrs of
1750 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
1751 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
1752 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1753 analysis functions unconditionally, call the new
1754 ipa_analyze_params_uses on the node instead of every edge.
1756 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
1758 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
1760 (dump_mem_ref): Adopt debug code to handle a tree as step. This
1761 also checks for a constant int vs. non-constant but
1762 loop-invariant steps.
1763 (find_or_create_group): Change the sort algorithm to only consider
1764 steps that are constant ints.
1765 (idx_analyze_ref): Adopt code to handle a tree instead of a
1766 HOST_WIDE_INT for step.
1767 (gather_memory_references_ref): Handle tree instead of int and be
1768 prepared to see a NULL_TREE.
1769 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
1770 prefetches if the step cannot be calculated at compile time.
1771 (issue_prefetch_ref): Issue prefetches for non-constant but
1772 loop-invariant steps.
1774 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1777 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1779 * tree.h (build_call_list): Remove.
1780 * tree.c (build_call_list): Remove.
1782 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1784 * tree.h (build_call_list): Remove.
1785 * tree.c (build_call_list): Remove.
1787 2010-05-18 Jan Hubicka <jh@suse.cz>
1789 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
1791 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
1793 PR rtl-optimization/43332
1794 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
1796 2010-05-18 Anatoly Sokolov <aesok@post.ru>
1798 * tree.h (build_int_cstu): Implement as static inline.
1799 * tree.c (build_int_cstu): Remove function.
1800 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
1803 2010-05-18 Richard Guenther <rguenther@suse.de>
1806 * lto-wrapper.c (verbose): New variable. Initialize from -v.
1807 (debug): Initialize from -save-temps.
1808 (collect_execute): Print command-line when verbose.
1809 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
1810 for ltrans invocation. Produce -dumpbase flag again.
1811 (process_args): Remove.
1813 * collect2.c (maybe_run_lto_and_relink): Only pass object
1814 files to lto-wrapper.
1815 * gcc.c (LINK_COMMAND_SPEC): Likewise.
1817 2010-05-18 Jan Hubicka <jh@suse.cz>
1819 * opts.c (decode_options): Do not disable whopr at ipa_cp.
1820 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
1822 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1825 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1827 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1830 2010-05-18 Jakub Jelinek <jakub@redhat.com>
1833 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
1836 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1838 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
1839 lto-macho as lto_binary_reader.
1841 * darwin.c (darwin_asm_named_section): Do not add assembler comment
1842 after .section directive; just print it before the directive instead.
1844 2010-05-17 Jan Hubicka <jh@suse.cz>
1846 * cgraph.c (cgraph_create_virtual_clone): Only check
1847 versionable_function_p when not in wpa and checking is enabled.
1848 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
1849 there are no more functions to materialize.
1851 2010-05-17 Jan Hubicka <jh@suse.cz>
1853 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
1854 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
1856 (output_cgraph): Call output_cgraph_opt_summary.
1857 (input_cgrpah): Call input_cgraph_opt_summary.
1858 (output_cgraph_opt_summary_p, output_node_opt_summary,
1859 input_node_opt_summary, input_cgraph_opt_section): New functions.
1860 * lto-section-in.c (lto_section_name): Add cgraphopt.
1861 * tree-inline.c (tree_function_versioning): Handle parm_num.
1862 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
1863 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
1865 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1867 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
1868 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
1869 the insn to prefetch ratio heuristic to loops with known trip count.
1871 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1873 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
1874 (schedule_prefetches): Do not generate a prefetch if the unroll factor
1875 is far from what is required by the prefetch.
1877 2010-05-17 Jan Hubicka <jh@suse.cz>
1879 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
1880 (ipcp_estimate_growth): Likewise.
1881 (ipcp_const_param_count): Likewise.
1882 (ipcp_insert_stage): Likewise.
1883 * ipa-prop.c (visit_load_for_mod_analysis): New function.
1884 (visit_store_addr_for_mod_analysis): Set used flag.
1885 (ipa_detect_param_modifications): Set used flag for SSE params;
1886 update use of walk_stmt_load_store_addr_ops.
1887 (ipa_print_node_params): Print used flag.
1888 (ipa_write_node_info): Stream used flag.
1889 (ipa_read_node_info): Likewise.
1890 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
1891 (ipa_is_param_used): New function.
1892 (lto_ipa_fixup_call_notes): Remove unused declaration.
1894 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1897 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1898 * configure: Regenerate.
1899 * config.in: Regenerate.
1900 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
1901 !HAVE_AS_IX86_REP_LOCK_PREFIX.
1902 Don't emit whitespace.
1903 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1904 (*rep_movsi): Likewise.
1905 (*rep_movsi_rex64): Likewise.
1906 (*rep_movqi): Likewise.
1907 (*rep_movqi_rex64): Likewise.
1908 (*rep_stosdi_rex64): Likewise.
1909 (*rep_stossi): Likewise.
1910 (*rep_stossi_rex64): Likewise.
1911 (*rep_stosqi): Likewise.
1912 (*rep_stosqi_rex64): Likewise.
1913 (*cmpstrnqi_nz_1): Use {%;} after repz.
1914 (*cmpstrnqi_nz_rex_1): Likewise.
1915 (*cmpstrnqi_1): Likewise.
1916 (*cmpstrnqi_rex_1): Likewise.
1917 (*strlenqi_1): Use {%;} after repnz.
1918 (*strlenqi_rex_1): Likewise.
1919 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
1920 (*sync_compare_and_swap<mode>): Likewise.
1921 (sync_double_compare_and_swap<mode>): Likewise.
1922 (*sync_double_compare_and_swapdi_pic): Likewise.
1923 (sync_old_add<mode>): Likewise.
1924 (sync_add<mode>): Likewise.
1925 (sync_sub<mode>): Likewise.
1926 (sync_<code><mode>): Likewise.
1928 2010-05-17 Martin Jambor <mjambor@suse.cz>
1930 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
1931 otr_token and polymorphic.
1932 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
1933 (cgraph_clone_edge): Copy the above fields.
1934 * tree.c (get_binfo_at_offset): New function.
1935 * tree.h (get_binfo_at_offset): Declare.
1936 * ipa-prop.h (enum jump_func_type): Added known_type jump function
1937 type, reordered items, updated comments.
1938 (union jump_func_value): Added base_type field, reordered fields.
1939 (enum ipa_lattice_type): Moved down in the file.
1940 (struct ipa_param_descriptor): New field polymorphic.
1941 (ipa_is_param_polymorphic): New function.
1942 * ipa-prop.c: Include gimple.h and gimple-fold.h.
1943 (ipa_print_node_jump_functions): Print known type jump functions.
1944 (compute_complex_pass_through): Renamed to...
1945 (compute_complex_assign_jump_func): this.
1946 (compute_complex_ancestor_jump_func): New function.
1947 (compute_known_type_jump_func): Likewise.
1948 (compute_scalar_jump_functions): Create known type and complex ancestor
1950 (ipa_note_param_call): New parameter polymorphic, set the corresponding
1951 flag in the call note accordingly.
1952 (ipa_analyze_call_uses): Renamed to...
1953 (ipa_analyze_indirect_call_uses): this. New parameter target, define
1954 variable var only in the block where it is used.
1955 (ipa_analyze_virtual_call_uses): New function.
1956 (ipa_analyze_call_uses): Likewise.
1957 (combine_known_type_and_ancestor_jfs): Likewise.
1958 (update_jump_functions_after_inlining): Implemented handling of a
1959 number of new jump function types combination.
1960 (print_edge_addition_message): Removed.
1961 (make_edge_direct_to_target): New function.
1962 (try_make_edge_direct_simple_call): Likewise.
1963 (try_make_edge_direct_virtual_call): Likewise.
1964 (update_call_notes_after_inlining): Renamed to...
1965 (update_indirect_edges_after_inlining): this. Moved edge creation for
1966 indirect calls to try_make_edge_direct_simple_call, also calls
1967 try_make_edge_direct_virtual_call for virtual calls.
1968 (ipa_print_node_params): Changed the header message.
1969 (ipa_write_jump_function): Stream also known type jump functions.
1970 (ipa_read_jump_function): Likewise.
1971 (ipa_write_indirect_edge_info): Stream new fields in
1972 cgraph_indirect_call_info.
1973 (ipa_read_indirect_edge_info): Likewise.
1974 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
1977 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1979 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
1981 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
1983 * tree.h (CALL_EXPR_ARGS): Delete.
1984 (call_expr_arglist): Delete.
1985 * tree.c (call_expr_arglist): Delete.
1986 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
1987 targetm.fold_builtin.
1988 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
1989 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
1990 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
1991 arglist parameter. Use CALL_EXPR_ARG.
1992 (picochip_expand_builtin_3op): Likewise.
1993 (picochip_expand_builtin_2opvoid): Likewise.
1994 (picochip_expand_array_get): Likewise.
1995 (picochip_expand_array_put): Likewise.
1996 (picochip_expand_array_testport): Likewise.
1997 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
1998 rather than arglist.
1999 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2001 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2002 than TREE_VALUE and TREE_CHAIN.
2003 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2004 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2007 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2010 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2011 to have no fallthru edge.
2014 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2015 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2016 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2017 add BARRIER after previous bb if needed.
2019 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2021 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2023 2010-05-17 Alan Modra <amodra@gmail.com>
2025 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2026 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2027 with copy_reg rtx param.
2028 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2029 Correct cases where code for ABI_V4 did not initialise the reg
2030 used to access frame. Also leave frame_reg_rtx as sp for large
2031 frames that save no regs.
2033 2010-05-17 Martin Jambor <mjambor@suse.cz>
2036 * tree-sra.c (create_access_replacement): New parameter rename, mark
2037 the replaement for renaming only when it is true.
2038 (get_access_replacement): Pass true in the rename parameter of
2039 create_access_replacement.
2040 (get_unrenamed_access_replacement): New function.
2041 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2042 replacement declaration from it.
2044 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2046 * function.c (try_fit_stack_local, add_frame_space): New static
2048 (assign_stack_local_1): Use them. Look for opportunities to use
2049 space previously wasted on alignment.
2050 * function.h (struct frame_space): New.
2051 (struct rtl_data): Add FRAME_SPACE_LIST member.
2052 * reload1.c (something_was_spilled): New static variable.
2053 (alter_reg): Set it.
2054 (reload): Test it in addition to testing if the frame size changed.
2056 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2058 * config/s390/s390.c: Define sane prefetch settings and activate
2059 flag_prefetch_loop_arrays on -O3.
2060 * config/s390/s390.h: Declare that read can use write prefetch.
2062 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2064 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2067 2010-05-16 Jan Hubicka <jh@suse.cz>
2069 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2070 function body; do not check stdarg field of struct function.
2072 2010-05-16 Jan Hubicka <jh@suse.cz>
2074 * cgraph.c (dump_cgraph_node): Dump versionable flag.
2075 * cgraph.h (cgraph_local_info): Add versionable flag.
2076 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2077 (ipcp_versionable_function_p): Use it.
2078 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2081 2010-05-16 Jan Hubicka <jh@suse.cz>
2083 * cgraph.c (cgraph_clone_node): Take decl argument and insert
2084 clone into hash when it is different from orig.
2085 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2086 * cgraph.h (cgraph_clone_node): Update prototype.
2087 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2088 (lto_cgraph_encoder_delete): Delete body map.
2089 (lto_cgraph_encoder_size): Move to header.
2090 (lto_cgraph_encoder_encode_body_p,
2091 lto_set_cgraph_encoder_encode_body): New.
2092 (lto_output_node): Do not take written_decls argument; output clone_of
2094 (add_node_to): Add include_body_argument; call
2095 lto_set_cgraph_encoder_encode_body on master of the clone.
2096 (add_references): Update use of add_node_to.
2097 (compute_ltrans_boundary): Likewise.
2098 (output_cgraph): Do not create written_decls bitmap.
2099 (input_node): Take nodes argument; stream in clone_of correctly.
2100 (input_cgraph_1): Update use of input_node.
2101 * lto-streamer-out.c (lto_output): Use encoder info to decide
2102 what bodies to output.
2103 * ipa-inline.c (cgraph_clone_inlined_nodes,
2104 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2105 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2106 (lto_cgraph_encoder_size): Define here.
2107 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2110 2010-05-16 Richard Guenther <rguenther@suse.de>
2112 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2114 * ipa-type-escape.c (gate_type_escape_vars): Run when
2115 -fipa-struct-reorg runs.
2116 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2117 * common.opt (fipa-type-escape): Remove.
2119 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2121 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2122 (decode_options): Likewise.
2123 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2125 2010-05-16 Jan Hubicka <jh@suse.cz>
2127 * ipa.c (function_and_variable_visibility): Also bring local all
2130 2010-05-16 Richard Guenther <rguenther@suse.de>
2132 * alias.c (nonoverlapping_memrefs_p): Remove use of
2133 IPA type-escape information.
2135 2010-05-16 Joseph Myers <joseph@codesourcery.com>
2137 * c-common.c (c_common_reswords): Add _Static_assert for C.
2138 * c-parser.c (c_token_starts_declaration,
2139 c_parser_next_token_starts_declaration,
2140 c_parser_static_assert_declaration_no_semi,
2141 c_parser_static_assert_declaration): New.
2142 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2143 Handle static assertions if static_assert_ok.
2144 (c_parser_external_declaration, c_parser_declaration_or_fndef,
2145 c_parser_compound_statement_nostart, c_parser_label,
2146 c_parser_for_statement, c_parser_objc_methodprotolist,
2147 c_parser_omp_for_loop): All callers of
2148 c_parser_declaration_or_fndef changed.
2149 (c_parser_struct_declaration): Handle static assertions.
2150 (c_parser_compound_statement_nostart): Use
2151 c_parser_next_token_starts_declaration and
2152 c_token_starts_declaration to detect start of declarations.
2153 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2156 2010-05-16 Anatoly Sokolov <aesok@post.ru>
2158 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2159 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2160 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2161 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2162 (mmix_function_outgoing_value): Rename to...
2163 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2164 (mmix_function_value_regno_p): Make static.
2165 (mmix_libcall_value): New function.
2166 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2167 mmix_function_value_regno_p): Remove declaration.
2169 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2171 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2172 BUILT_IN_ALLOCA if stack checking is enabled.
2174 2010-05-16 Richard Guenther <rguenther@suse.de>
2176 * var-tracking.c (vars_copy_1): Inline ...
2177 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
2178 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
2179 (variable_merge_over_cur): Adjust. Merge asserts.
2180 (variable_merge_over_src): Likewise.
2181 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2182 (variable_post_merge_new_vals): Merge asserts.
2183 (variable_post_merge_perm_vals): Likewise.
2184 (find_mem_expr_in_1pdv): Likewise.
2185 (dataflow_set_different_value): Remove.
2186 (onepart_variable_different_p): Merge asserts.
2187 (variable_different_p): Likewise.
2188 (dataflow_set_different_1): Inline ...
2189 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
2190 (emit_notes_for_differences_1): Merge asserts.
2192 2010-05-16 Richard Guenther <rguenther@suse.de>
2194 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2195 * optabs.c (libfunc_decl_hash): Likewise.
2196 * varasm.c (emutls_decl): Likewise.
2198 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
2200 * c-decl.c: Don't include gimple.h.
2201 (merge_decls): Do not copy gimple_body.
2203 2010-05-15 Jason Merrill <jason@redhat.com>
2205 * c.opt: Add -fnothrow-opt.
2207 2010-05-15 Jan Hubicka <jh@suse.cz>
2209 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2211 * passes.c (ipa_write_summaries): Write all analyzed nodes.
2213 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2215 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2216 * Makefile.in: Add it.
2217 Fix all other Makefile dependencies for changes below.
2218 * tree.h: Include it instead of defining VEC primitives here.
2219 * gimple.h: Likewise.
2221 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2222 * except.h: Include vecir.h, break dependence on tree.h.
2224 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2226 * tree-iterator.c: ...to here.
2227 * tree-iterator.h: Fix file introduction comment. Add extern markers.
2229 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
2231 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2232 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2233 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2234 tree-mudflap.h, and target.h.
2235 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2236 predict.h, tree-inline.h, gimple.h, and langhooks.h.
2237 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2238 Add FIXME for why gimple.h is still included (should be unnecessary
2239 since GCC 4.5 gimplification unit-at-a-time).
2240 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2241 * c-pragma.c: Add FIXME for why function.h needs to be included just
2242 for cfun, at front-end level.
2243 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2244 Do not include ggc.h, but include vecprim.h for VEC(char).
2245 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2246 Explain why target.h is included.
2247 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2248 Explain why gimple.h is included.
2249 * c-ppoutput.c: Do not include tm.h.
2250 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
2251 * c-parses.c: Explain why rtl.h is included, and that this (and only
2252 this) is also why tm.h must be included.
2253 Do not include except.h.
2254 * c-lang.c: Do not include ggc.h.
2256 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
2258 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2260 2010-05-15 Joseph Myers <joseph@codesourcery.com>
2262 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2263 unions by default if those structs and unions have no tags. Do
2264 not condition anonymous struct and unions handling on flag_iso.
2265 Allow anonymous structs and unions for C1X.
2266 (finish_struct): Do not diagnose lack of named fields when
2267 anonymous structs and unions present for C1X. Accept flexible
2268 array members in structure with anonymous structs or unions but no
2269 directly named fields.
2270 * doc/extend.texi (Unnamed Fields): Update.
2272 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
2274 * gimple.h (compare_field_offset): Rename into...
2275 (gimple_compare_field_offset): ...this.
2276 * gimple.c (compare_field_offset): Rename into...
2277 (gimple_compare_field_offset): ...this. Compare the full access if
2278 the offset is self-referential.
2279 (gimple_types_compatible_p): Adjust for above renaming.
2280 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
2281 DECL_NONADDRESSABLE_P flag of fields before merging them.
2283 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
2285 * tree.h (ctor_to_list): Delete.
2286 * tree.c (ctor_to_list): Delete.
2288 2010-05-15 Jan Hubicka <jh@suse.cz>
2290 * ipa-reference.c: Include toplev.h
2291 (is_proper_for_analysis): Only add to all_module_statics
2293 (write_node_summary_p, stream_out_bitmap,
2294 ipa_reference_write_optimization_summary,
2295 ipa_reference_read_optimization_summary): New.
2296 (struct ipa_opt_pass_d pass_ipa_reference): Add
2297 optimization summary streaming.
2298 * lto-cgraph.c (referenced_from_this_partition_p,
2299 reachable_from_this_partition_p): New functions.
2300 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2301 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2302 * opts.c (decode_options): Enable ipa_reference.
2303 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2304 * lto-streamer.h (referenced_from_this_partition_p,
2305 reachable_from_this_partition_p): Declare.
2307 2010-05-15 Richard Guenther <rguenther@suse.de>
2309 PR tree-optimization/44038
2310 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2311 taking the address of a V_C_E of a constant.
2313 2010-05-14 Jan Hubicka <jh@suse.cz>
2315 * tree.h (memory_identifier_string): Remove.
2316 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2317 (ipa_reference_global_vars_info_d): Remove statics_not_read and
2318 statics_not_written.
2319 (ipa_reference_optimization_summary_d): New structure.
2320 (ipa_reference_optimization_summary_t): New type and vector.
2321 (ipa_reference_vars_info_d): Embedd structures instead of using
2323 (reference_vars_to_consider): Remove out of GGC space.
2324 (module_statics_escape): Remove.
2325 (global_info_obstack): Rename to ...
2326 (optimization_summary_obstack): ... this one.
2327 (initialization_status_t): Remove.
2328 (memory_identifier_string): Remove.
2329 (get_reference_vars_info): Fix indenting.
2330 (set_reference_vars_info): Likewise.
2331 (get_reference_optimization_summary): New.
2332 (set_reference_optimization_summary): New.
2333 (get_global_reference_vars_info): Remove.
2334 (ipa_reference_get_read_global): Remove.
2335 (ipa_reference_get_written_global): Remove.
2336 (ipa_reference_get_not_read_global): Update.
2337 (ipa_reference_get_not_written_global): Update.
2338 (is_proper_for_analysis): Outlaw addressable.
2339 (propagate_bits): Update for new datastructures.
2340 (analyze_variable): Remove.
2341 (init_function_info): Update for new datastructures.
2342 (clean_function_local_data): Remove.
2343 (clean_function): Remove.
2344 (copy_global_bitmap): Use optimizations_summary_obstack.
2345 (duplicate_node_data): Duplicate optimization summary only.
2346 (remove_node_data): Remove optimization summary only.
2347 (generate_summary): Do not analyze variables; do not compute
2348 module_statics_escape; do not prune solutions by it.
2349 (read_write_all_from_decl): Fix typos in comments.
2350 (propagate): Doscover readonly and nonaddressable first;
2351 update for new datastructures; share global bitmaps.
2352 * ipa-reference.h (ipa_reference_get_read_global,
2353 ipa_reference_get_written_global): Remove.
2354 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2355 * Makefile.in: Remove ipa-refereference from GT files.
2357 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2360 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2361 for all SYMBOL_REF_DECLs.
2363 2010-05-14 Jan Hubicka <jh@suse.cz>
2365 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2366 (varpool_all_refs_explicit_p): New inline function.
2367 * ipa-reference.c: Update comment.
2368 (module_statics_written): Remove.
2369 (get_static_decl): Remove.
2370 (ipa_init): Do not initialize module_statics_written.
2371 (analyze_function): Likewise.
2372 (generate_summary): Likewise; do not compute module_statics_readonly
2373 and do not update variable flags.
2374 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2375 * ipa.c: Inlucde flags.h
2376 (cgraph_local_node_p): New.
2377 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2378 promote functions to local.
2379 (ipa_discover_readonly_nonaddressable_vars): New function.
2380 (function_and_variable_visibility): Use cgraph_local_node_p.
2381 * varpool.c (varpool_finalize_decl): Set force_output for
2382 DECL_PRESERVE_P vars.
2384 2010-05-14 Jan Hubicka <jh@suse.cz>
2386 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2388 2010-05-14 Richard Guenther <rguenther@suse.de>
2390 PR tree-optimization/44119
2391 * tree-ssa-pre.c (eliminate): Properly mark replacement of
2392 a PHI node necessary.
2394 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
2396 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2398 2010-05-14 Jason Merrill <jason@redhat.com>
2401 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2402 (gimple_call_set_nothrow): New.
2403 * gimple.c (gimple_build_call_from_tree): Call it.
2404 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2407 * gimplify.c (gimplify_seq_add_stmt): No longer static.
2408 * gimple.h: Declare it.
2409 * gimple.c (gimple_build_eh_filter): No ops.
2411 2010-05-14 Jan Hubicka <jh@suse.cz>
2413 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2414 nodes already in queue.
2415 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2418 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2421 * cfgexpand.c (expand_debug_expr): If non-memory op0
2422 has BLKmode, return NULL.
2424 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
2426 * config.gcc: Add support for --with-cpu option for bdver1.
2427 * config/i386/i386.h (TARGET_BDVER1): New macro.
2428 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2429 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2430 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2431 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2432 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2433 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2434 (processor_type): Add PROCESSOR_BDVER1.
2435 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2436 processor_type in config/i386/i386.h.
2437 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2438 movaps <reg, reg> instead of movapd <reg, reg> when replacing
2439 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2440 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2441 to emit packed xor instead of packed double/packed integer
2442 xor for SSE and AVX when moving a zero value.
2443 * config/i386/sse.md: Add check for
2444 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2445 movapd/movdqa for SSE and AVX.
2446 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2447 single logical operations i.e and, or and xor instead of packed double
2448 logical operations for SSE and AVX.
2449 * config/i386/i386-c.c (ix86_target_macros_internal):
2450 Add PROCESSOR_BDVER1.
2451 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2452 (has_fma4, has_xop): New.
2453 * config/i386/i386.c (bdver1_cost): New variable.
2454 (m_BDVER1): New macro.
2455 (m_AMD_MULTIPLE): Add m_BDVER1.
2456 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2457 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2458 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2459 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2460 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2461 x86_tune_sse_partial_reg_dependency,
2462 x86_tune_sse_unaligned_load_optimal,
2463 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2464 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2465 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2466 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2467 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2468 Enable/disable for bdver1.
2469 (processor_target_table): Add bdver1_cost.
2470 (cpu_names): Add bdver1.
2471 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2472 processor_alias_table.
2473 (ix86_expand_vector_move_misalign): Change.
2474 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2475 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2476 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2477 of movupd/movdqu for SSE and AVX.
2478 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2479 (ix86_tune_adjust_cost): Add code for bdver1.
2480 (standard_sse_constant_opcode): Add check for
2481 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2482 of packed double xor for SSE and AVX.
2484 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
2486 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2489 2010-05-14 Tristan Gingold <gingold@adacore.com>
2491 * toplev.c (default_debug_hooks): Remove this variable.
2492 (process_options): Remove assignments to default_debug_hooks.
2494 2010-05-14 Martin Jambor <mjambor@suse.cz>
2496 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2497 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2498 * langhooks.h (struct lang_hooks_for_decls): Removed field
2500 * tree.c (free_lang_data): Remove assignment to
2501 lang_hooks.fold_obj_type_ref.
2502 * tree.def (OBJ_TYPE_REF): Update comment.
2504 2010-05-14 Richard Guenther <rguenther@suse.de>
2506 PR tree-optimization/44124
2507 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2509 2010-05-14 Alan Modra <amodra@gmail.com>
2512 * config/rs6000/rs6000.c (struct machine_function): Reorder
2513 fields for better packing. Add lr_save_state.
2514 (rs6000_ra_ever_killed): Return lr_save_state if set.
2515 (rs6000_emit_eh_reg_restore): Set lr_save_state.
2517 2010-05-13 Jan Hubicka <jh@suse.cz>
2519 * varpool.c (decide_is_variable_needed): Drop code checking
2520 TREE_SYMBOL_REFERENCED.
2522 2010-05-13 Jan Hubicka <jh@suse.cz>
2524 * final.c (output_addr_const): Do not call mark_decl_referenced.
2525 * cgraphunit.c (process_function_and_variable_attributes): Use
2526 mark_needed_node dirrectly.
2527 (assemble_thunk): Do not call mark_decl_referenced.
2529 2010-05-13 Anatoly Sokolov <aesok@post.ru>
2531 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2533 2010-05-13 Jeff Law <law@redhat.com>
2535 * ira-conflicts.c (print_allocno_conflicts): New function broken out
2537 (print_conflicts): Call print_allocno_conflicts.
2539 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2542 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2545 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
2547 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2548 t-mingw-w64 or t-mingw-w32 for multilib configuration.
2549 * config/i386/t-mingw-w32: New.
2550 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2552 2010-05-13 Martin Jambor <mjambor@suse.cz>
2554 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2556 * gimple-fold.c (get_base_binfo_for_type): New function.
2557 (gimple_get_relevant_ref_binfo): Likewise.
2558 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2559 (gimple_fold_obj_type_ref): Likewise.
2560 (fold_gimple_call): Simplify condition for folding virtual calls
2561 and call gimple_fold_obj_type_ref.
2562 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2563 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2565 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
2567 * config/rs6000/rs6000-protos.h
2568 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2569 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2570 (rs6000_debug_mode_dependent_address)
2571 (rs6000_mode_dependent_address_ptr): Likewise.
2573 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2576 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2578 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2579 * tree-sra.c (create_access_replacement): Call unshare_expr before
2580 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2581 * dwarf2out.c: Include tree-flow.h.
2582 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2583 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2584 Handle DW_OP_bit_piece.
2585 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2586 construct_piece_list, adjust_piece_list): New functions.
2587 (add_var_loc_to_decl): Handle SRA optimized variables.
2588 Adjust for var_loc_note to loc field renaming.
2589 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2590 in VAR_LOCATION note.
2591 (new_loc_descr_op_bit_piece): New function.
2592 (dw_sra_loc_expr): New function.
2593 (dw_loc_list): Use it. Don't handle the last range after the
2594 loop, handle it inside of the loop. Adjust for var_loc_note
2595 to loc field renaming.
2596 (add_location_or_const_value_attribute): Only special case
2597 single entry loc lists if loc is NOTE_P. Adjust for
2598 var_loc_note to loc field renaming.
2599 (dwarf2out_var_location): Don't set newloc->var_loc_note
2600 and newloc->next here.
2602 2010-05-12 Jan Hubicka <jh@suse.cz>
2604 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2606 * cgraph.h (cgraph_only_called_directly_p,
2607 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2608 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2609 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2611 * ipa.c (cgraph_remove_unreachable_nodes): Use
2612 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2614 * tree-inline.c (copy_bb): Check address_taken flag.
2615 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
2616 externally_visible flag.
2618 2010-05-12 Jason Merrill <jason@redhat.com>
2622 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2623 * sdbout.c (plain_type_1): Likewise.
2624 * dwarf2out.c (is_base_type): Likewise.
2625 (gen_type_die_with_usage): Likewise. Generate
2626 DW_TAG_unspecified_type for any LANG_TYPE.
2628 2010-05-12 Jan Hubicka <jh@suse.cz>
2630 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2632 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2633 (cgraph_clone_edge): Update.
2634 (cgraph_node_remove_callees): Remove indirect calls too.
2635 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2636 (cgraph_create_indirect_edge): Update prototype.
2637 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2638 is_proper_for_analysis.
2639 (add_new_function, visited_nodes, function_insertion_hook_holder,
2640 get_local_reference_vars_info, mark_address_taken, mark_address,
2641 mark_load, mark_store, check_asm_memory_clobber, check_call,
2642 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2643 (ipa_init): Do not initialize visited_nodes;
2644 function_insertion_hook_holder.
2645 (analyze_variable): Rewrite.
2646 (analyze_function): Rewrite.
2647 (copy_local_bitmap): Remove.
2648 (duplicate_node_dat): Do not duplicate local info.
2649 (generate_summary): Simplify to only walk cgraph.
2650 (write_node_summary_p, ipa_reference_write_summary,
2651 ipa_reference_read_summary): Remove.
2652 (propagate): Do not remove function insertion;
2654 (pass_ipa_reference): NULLify summary handling fields.
2655 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2656 (input_edge): Input ecf_flags.
2657 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2658 (update_indirect_edges_after_inlining): Ignore edges with unknown
2661 2010-05-12 Sriraman Tallam <tmsriram@google.com>
2663 * implicit-zee.c: New file.
2664 * tree-pass.h (pass_implicit_zee): Declare.
2665 * passes.c (init_optimization_passes): Add zee pass.
2666 * common.opt (fzee): New flag.
2667 * timevar.def (TV_ZEE): Define.
2668 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2670 * Makefile.in (implicit-zee.o): Add new build file.
2672 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2673 Nathan Froyd <froydnj@codesourcery.com>
2675 * c-common.c (sync_resolve_params): Remove write-only variable.
2677 2010-05-12 Anatoly Sokolov <aesok@post.ru>
2679 * target.h (struct gcc_target): Add mode_dependent_address_p field.
2680 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2681 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2682 * targhooks.c (default_mode_dependent_address_p): New function.
2683 * targhooks.h (default_mode_dependent_address_p): Declare function.
2684 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2685 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2686 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
2687 target hook. Change return type to bool.
2688 * recog.h (mode_dependent_address_p): Change return type to bool.
2690 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2691 Nathan Froyd <froydnj@codesourcery.com>
2693 * tree-mudflap.c (build_function_type_0, build_function_type_1,
2694 build_function_type_2, build_function_type_3): Remove.
2695 (mudflap_init): Use build_function_type_list.
2697 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2698 Nathan Froyd <froydnj@codesourcery.com>
2700 * coverage.c (build_fn_info_value): Call build_constructor instead of
2701 build_constructor_from_list.
2702 (build_ctr_info_value): Likewise.
2703 (build_gcov_info): Likewise.
2705 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
2707 * tree.c (build_constructor): Compute TREE_CONSTANT for the
2708 resultant constructor.
2709 (build_constructor_single): Don't set TREE_CONSTANT.
2710 (build_constructor_from_list): Don't compute TREE_CONSTANT.
2712 2010-05-12 Jan Hubicka <jh@suse.cz>
2714 * cgraph.h (struct varpool_node): Add aux.
2715 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
2716 * varpool.c (varpool_remove_node): Do not remove initializer.
2717 (varpool_reset_queue): Export.
2718 (varpool_finalize_decl): Volatile vars are forced to be output.
2719 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
2721 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
2722 process_references, varpool_can_remove_if_no_refs): New functions.
2723 (cgraph_remove_unreachable_nodes): Handle variables too.
2725 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
2728 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
2730 2010-05-12 Jakub Jelinek <jakub@redhat.com>
2733 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
2734 change value of ORT_TASK.
2735 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
2736 (omp_notice_threadprivate_variable): New function.
2737 (omp_notice_variable): Call it for threadprivate variables.
2738 If enclosing ctx is a task, print enclosing task rather than
2739 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
2740 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
2741 if task has untied clause.
2744 * dwarf2out.c (base_type_die): Don't add name attribute here.
2745 (modified_type_die): Instead of sizetype use
2746 its underlying original type. If a DW_TAG_base_type doesn't
2747 have name added, add __unknown__.
2748 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
2749 always call force_type_die instead.
2751 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
2753 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
2754 for __stack_chk_guard.
2756 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2758 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
2759 don't call start_source_file debug hook here...
2760 (finish_options): ... but here, after outputting predefined and
2761 command line defines and undefs.
2764 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
2766 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
2767 optimizing away empty bb with no successors, move over its
2768 footer chain to fallthru predecessor.
2769 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
2770 (rtl_split_edge): For asm goto call patch_jump_insn even if
2771 splitting fallthru edge.
2774 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
2775 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
2776 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2777 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
2781 * c-parser.c (c_parser_expression): Mark LHS of a comma
2782 expression as read if it is a decl, handled component or
2783 COMPOUND_EXPR with that on the RHS.
2784 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
2785 if it is a decl or handled component.
2787 2010-05-11 Jan Hubicka <jh@suse.cz>
2789 * lto-symtab.c (lto_symtab_free): New function.
2790 * lto-streamer.h (lto_symtab_free): Declare.
2792 2010-05-11 Jan Hubicka <jh@suse.cz>
2794 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
2795 that if function is needed it is reachable.
2796 (lto_output_node): See if it the function is reachable or referenced.
2797 (output_cgraph): Update call of lto_output_node.
2798 * lto-streamer.h (reachable_from_other_partition_p): Declare.
2800 2010-05-11 Jan Hubicka <jh@suse.cz>
2802 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
2805 2010-05-11 Jan Hubicka <jh@suse.cz>
2807 PR tree-optimize/44063
2808 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
2810 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
2812 (estimate_function_body_sizes): Compute sizes even when disregarding.
2814 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
2816 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
2818 2010-05-11 Jan Hubicka <jh@suse.cz>
2820 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
2821 into every boundary.
2823 2010-05-11 Jan Hubicka <jh@suse.cz>
2825 * matrix-reorg.c (matrix_reorg): Rebuild edges.
2827 2010-05-11 Jan Hubicka <jh@suse.cz>
2829 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
2830 lto_streamer_cache_delete): Put nodes into heap.
2831 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
2834 2010-05-11 Jan Hubicka <jh@suse.cz>
2836 * cgraphbuild.c (cgraph_rebuild_references): New.
2837 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
2839 * cgraph.h (cgraph_rebuild_references): Declare.
2840 * tree-inline.c (tree_function_versioning): Use it.
2841 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
2843 2010-05-11 Jan Hubicka <jh@suse.cz>
2845 * cgraph.c: Include ipa-utils.h
2846 (cgraph_create_virtual_clone): Update references.
2847 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
2849 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2851 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
2852 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
2855 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2857 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
2859 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2861 * gcc.c (execute): For -### don't quote arguments that
2862 contain just alphanumerics and _/-. characters.
2863 * doc/invoke.texi: Document that change for -###.
2866 * df-problems.c (struct dead_debug): Add to_rescan field.
2867 (dead_debug_init): Clear to_rescan field.
2868 (dead_debug_finish): Rescan all debug insns in to_rescan
2869 bitmap and free the bitmap.
2870 (dead_debug_insert_before): Instead of rescanning debug insns
2871 immediately queue their rescanning until dead_debug_finish.
2872 (df_note_bb_compute): After dead_debug_add do continue instead
2875 2010-05-10 Jakub Jelinek <jakub@redhat.com>
2878 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
2879 clear also INSN_REG_USE_LIST.
2881 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2883 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
2885 2010-05-10 Jan Hubicka <jh@suse.cz>
2887 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
2890 2010-05-10 Jan Hubicka <jh@suse.cz>
2892 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
2894 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
2895 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
2896 (lto_streamer_cache_create): Init alloc pool.
2897 (lto_streamer_cache_delete): Free alloc pool.
2898 * lto-streamer.h: Include alloc pool.
2899 (lto_streamer_cache_d): Use alloc pool.
2900 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
2902 2010-05-10 Jan Hubicka <jh@suse.cz>
2904 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
2905 * cgraphbuild.c: Include except.h
2906 (record_type_list, record_eh_tables): New function.
2907 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
2909 2010-05-10 Jan Hubicka <jh@suse.cz>
2911 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
2912 __frame_dummy_init_array_entry, force_to_data): Attribute as used
2915 2010-05-10 Michael Matz <matz@suse.de>
2917 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
2918 (can_reassociate_p): Use FLOAT_TYPE_P.
2919 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
2920 (vect_force_simple_reduction): ... this.
2921 * tree-parloops.c (gather_scalar_reductions): Use
2922 vect_force_simple_reduction.
2923 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
2924 vect_is_simple_reduction, add modify argument, if true rewrite
2925 "a-b" into "a+(-b)".
2926 (vect_is_simple_reduction, vect_force_simple_reduction): New
2928 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
2930 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
2931 Vladimir Makarov <vmakarov@redhat.com>
2933 PR rtl-optimization/44012
2934 * ira-build.c (remove_unnecessary_allocnos): Nullify
2935 regno_allocno_map of the removed allocno.
2937 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2939 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
2941 * configure: Regenerate.
2943 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2945 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
2947 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
2948 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
2950 * configure: Regenerate.
2952 2010-05-10 Richard Guenther <rguenther@suse.de>
2954 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
2955 marked if the entry identifier is marked.
2957 2010-05-10 Richard Guenther <rguenther@suse.de>
2959 * c-common.c (struct c_common_attributes): Add fnspec attribute.
2960 (handle_fnspec_attribute): New function.
2961 * gimple.h (gimple_call_return_flags): Declare.
2962 (gimple_call_arg_flags): Likewise.
2963 * gimple.c (gimple_call_arg_flags): New function.
2964 (gimple_call_return_flags): Likewise.
2965 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
2967 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
2969 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
2970 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
2972 (make_heapvar_for): ... this new function.
2973 (handle_rhs_call): Handle fnspec attribute argument specifiers.
2974 (handle_lhs_call): Likewise.
2975 (find_func_aliases): Adjust.
2977 2010-05-10 Richard Guenther <rguenther@suse.de>
2979 PR tree-optimization/44050
2980 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
2982 2010-05-10 Wei Guozhi <carrot@google.com>
2985 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
2987 2010-05-09 Joseph Myers <joseph@codesourcery.com>
2990 * c-typeck.c (lookup_field): Take a type directly. Update
2992 (build_component_ref): Update call to lookup_field.
2993 (set_init_label): Use lookup_field to find initialized field.
2994 Handle returned list of fields like a sequence of designators.
2996 2010-05-09 Richard Guenther <rguenther@suse.de>
2999 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3000 handle &FUNCTION_DECL.
3002 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3005 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3006 structures and unions recursively.
3007 (detect_field_duplicates): Move duplicate detection with a hash to
3008 detect_field_duplicates_hash. Always use a hash if anonymous
3009 structures or unions are present.
3010 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3013 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3016 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3017 detect Atom, Core 2 and Core i7.
3019 2010-05-09 Richard Guenther <rguenther@suse.de>
3021 * gcc.c (store_arg): Handle temporary file deletion for
3024 2010-05-09 Richard Guenther <rguenther@suse.de>
3027 * ipa-inline.c (estimate_function_body_sizes): Return after
3028 disregarding inline limits.
3030 2010-05-09 Richard Guenther <rguenther@suse.de>
3032 * gcc.c (store_arg): Revert last change.
3034 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3037 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3038 (optimize_ops_list): Call it.
3040 2010-05-08 Richard Guenther <rguenther@suse.de>
3042 PR tree-optimization/44030
3043 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3044 NECESSARY flag if we propagate from a inserted expression.
3046 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3048 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3049 domain types as equal if they are both PLACEHOLDER_EXPRs.
3051 2010-05-08 Richard Guenther <rguenther@suse.de>
3053 * lto-wrapper.c (run_gcc): Remove linker output from
3054 command line for LTRANS invocation.
3056 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3058 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3059 lto-macho as lto_binary_reader.
3060 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3061 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3062 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3063 in lto_start and lto_end calls.
3064 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
3066 (scan_prog_file): Update is_elf_or_coff call.
3067 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3069 * collect2.c (main): Fix enum comparison.
3071 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3073 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3074 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
3075 and TARGET_ASM_LTO_END.
3076 * darwin.c: Include obstack.h and lto-streamer.h.
3077 (lto_section_names_offset, lto_section_names_obstack,
3078 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3080 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3081 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
3082 to a temporary file.
3083 (darwin_asm_lto_end): New function. Restore asm_out_file.
3084 (darwin_asm_named_section): For LTO sections, replace the name with
3085 the offset of the section name in a string table, and build this
3087 (darwin_file_start): Initialize global vars for LTO support.
3088 (darwin_file_end): If output to asm_out_file was redirected, append it
3089 to the proper asm_out_file here. Add the section names section.
3091 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3093 * c-pragma.c (pending_weak_d, pending_weak): New.
3094 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3095 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3096 handle_pragma_weak): Update the uses of pending_weaks.
3098 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3100 PR documentation/44016
3101 * doc/standards.texi (Standards): Link to unversioned
3102 cxx0x_status.html page.
3104 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
3107 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3108 in addition to TREE_USED, to avoid "set but unused" warnings.
3110 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3112 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3113 (is_loop_prefetching_profitable): Do not insert prefetches
3114 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3115 times the prefetch ahead distance.
3117 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3119 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3120 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3121 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3124 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3126 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3127 a diagnostic info when the insn-to-mem ratio is too small.
3129 2010-05-07 Richard Guenther <rguenther@suse.de>
3131 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3133 (store_arg): Queue temp_filename for deletion instead of
3136 2010-05-07 Richard Guenther <rguenther@suse.de>
3138 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3139 (run_gcc): Handle LTRANS phase invocation.
3140 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3142 2010-05-07 Jakub Jelinek <jakub@redhat.com>
3144 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3145 this is also meaningful on PARM_DECLs and RESULT_DECLs.
3147 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3149 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3151 2010-05-07 Richard Guenther <rguenther@suse.de>
3153 PR tree-optimization/44020
3154 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3155 code when PRE is not yet initialized.
3157 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3159 * config/mips/dbxmdebug.h: Remove.
3160 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3162 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
3164 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3165 with null pointer and also warn about ordered comparison of zero with
3168 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3170 * graphite-blocking.c
3171 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3172 * graphite-clast-to-gimple.c
3173 (clast_to_gcc_expression): Same.
3174 (precision_for_value): Same.
3175 (precision_for_interval): Same.
3176 (gcc_type_for_interval): Same.
3177 (graphite_create_new_guard): Same.
3178 (compute_bounds_for_level): Same.
3179 (graphite_create_new_loop_guard): Same.
3180 * graphite-interchange.c
3181 (build_linearized_memory_access): Same.
3182 (pdr_stride_in_loop): Same.
3183 (memory_strides_in_loop_1): Same.
3184 (memory_strides_in_loop): Same.
3185 (extend_scattering): Same.
3186 (psct_scattering_dim_for_loop_depth): Same.
3187 (pbb_number_of_iterations): Same.
3189 (debug_iteration_domains): Same.
3191 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3192 (ppl_set_inhomogeneous_gmp): Same.
3193 (ppl_strip_loop): Same.
3194 (ppl_lexico_compare_linear_expressions): Same.
3195 (ppl_read_polyhedron_matrix): Same.
3196 (ppl_max_for_le_pointset): Same.
3198 (ppl_read_polyhedron_matrix): Same.
3199 (tree_int_to_gmp): Same.
3200 (gmp_cst_to_tree): Same.
3201 (ppl_set_inhomogeneous): Same.
3202 (ppl_set_inhomogeneous_tree): Same.
3203 (ppl_set_coef): Same.
3204 (ppl_set_coef_tree): Same.
3205 * graphite-sese-to-poly.c
3206 (build_pbb_scattering_polyhedrons): Same.
3207 (build_scop_scattering): Same.
3208 (scan_tree_for_params_right_scev): Same.
3209 (scan_tree_for_params): Same.
3210 (find_params_in_bb): Same.
3211 (find_scop_parameters): Same.
3212 (add_upper_bounds_from_estimated_nit): Same.
3213 (build_loop_iteration_domains): Same.
3214 (add_condition_to_domain): Same.
3215 (pdr_add_memory_accesses): Same.
3217 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3219 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3220 CLooG's value_* macros to their respective mpz_* counterparts.
3221 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3222 (graphite_create_new_loop_guard): Same.
3223 * graphite-interchange.c (build_linearized_memory_access): Same.
3224 (pdr_stride_in_loop): Same.
3225 (memory_strides_in_loop_1): Same.
3226 (1st_interchange_profitable_p): Same.
3227 * graphite-poly.c (extend_scattering): Same.
3228 (psct_scattering_dim_for_loop_depth): Same.
3229 (pbb_number_of_iterations): Same.
3230 (pbb_number_of_iterations_at_time): Same.
3231 * graphite-poly.h (new_1st_loop): Same.
3232 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3233 (oppose_constraint): Same.
3234 (insert_constraint_into_matrix): Same.
3235 (ppl_set_inhomogeneous_gmp): Same.
3236 (ppl_set_coef_gmp): Same.
3237 (ppl_strip_loop): Same.
3238 (ppl_lexico_compare_linear_expressions): Same.
3239 (ppl_max_for_le_pointset): Same.
3240 (ppl_min_for_le_pointset): Same.
3241 (ppl_build_realtion): Same.
3242 * graphite-ppl.h (gmp_cst_to_tree): Same.
3243 (ppl_set_inhomogeneous): Same.
3244 (ppl_set_inhomogeneous_tree): Same.
3245 (ppl_set_coef): Same.
3246 (ppl_set_coef_tree): Same.
3247 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3248 (build_scop_scattering): Same.
3249 (add_value_to_dim): Same.
3250 (scan_tree_for_params_right_scev): Same.
3251 (scan_tree_for_params_int): Same.
3252 (scan_tree_for_params): Same.
3253 (find_params_in_bb): Same.
3254 (find_scop_parameters): Same.
3255 (add_upper_bounds_from_estimated_nit): Same.
3256 (build_loop_iteration_domains): Same.
3257 (create_linear_expr_from_tree): Same.
3258 (add_condition_to_domain): Same.
3259 (pdr_add_memory_accesses): Same.
3261 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3262 Jason Merrill <jason@redhat.com>
3264 * c-common.c (c_common_reswords): Add nullptr.
3265 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
3266 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3267 (gen_type_die_with_usage): Likewise.
3268 * dbxout.c (dbxout_type): Likewise.
3269 * sdbout.c (plain_type_1): Likewise.
3271 2010-05-06 Jason Merrill <jason@redhat.com>
3273 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3274 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
3276 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3278 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3279 stripping WITH_SIZE_EXPR.
3280 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3283 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3285 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3286 list of obsolete configurations.
3287 Disabled check for obsolete configurations.
3288 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3289 Removed support for previous versions.
3290 * config/mips/iris.h: Removed.
3291 * config/mips/iris5.h: Removed.
3292 * config/mips/iris6.h: Merged old iris.h contents.
3293 (TARGET_IRIX): Removed.
3294 (DRIVER_SELF_SPECS): Removed mabi=32.
3295 (IDENT_ASM_OP): Removed undef.
3296 (STARTFILE_SPEC): Removed mabi=32.
3297 (ENDFILE_SPEC): Likewise.
3298 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3299 (MACHINE_TYPE): Update for IRIX 6.5.
3300 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3301 TARGET_IRIX by TARGET_IRIX6.
3302 (mips_file_start): Likewise.
3303 (mips_output_external): Remove IRIX 5/6 O32 support.
3304 (mips_output_function_prologue): Likewise.
3305 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3307 (TARGET_CPU_CPP_BUILTINS): Likewise.
3308 (TARGET_IRIX): Removed.
3309 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3310 (MULTILIB_DIRNAMES): Removed 32.
3311 (MULTILIB_OSDIRNAMES): Removed ../lib.
3312 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3313 (Specific, mips-sgi-irix5): Document removal.
3314 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3315 Remove references to older IRIX 6 releases and the O32 ABI.
3317 2010-05-06 Jakub Jelinek <jakub@redhat.com>
3320 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3321 instead of DF_REF_REAL_REG.
3323 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
3326 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3327 handling to still return true for x64 targets.
3329 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3331 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3333 2010-05-06 Jan Hubicka <jh@suse.cz>
3335 PR tree-optimization/43791
3336 * ipa-inline.c (update_caller_keys): Remove bogus
3337 disregard_inline_limits check.
3339 2010-05-06 Michael Matz <matz@suse.de>
3341 PR tree-optimization/43984
3342 * tree-ssa-pre.c (inserted_phi_names): Remove.
3343 (inserted_exprs): Change to bitmap.
3344 (create_expression_by_pieces): Set bits, don't append to vector.
3345 (insert_into_preds_of_block): Don't handle inserted_phi_names.
3346 (eliminate): Don't look at inserted_phi_names, remove deleted
3347 insns from inserted_exprs.
3348 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3349 (init_pre, fini_pre): Allocate and free bitmaps.
3350 (execute_pre): Insert insns on edges before elimination.
3352 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3354 * tree.c (initializer_zerop): Handle STRING_CST.
3356 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3359 * doc/invoke.texi (Wimplicit): Document as C only.
3360 * opts.c (common_handle_option): Add argument kind.
3361 (handle_option): Rename as read_cmdline_option. Factor out code to...
3362 (handle_option): ... here. New.
3363 (handle_options): Rename as read_cmdline_options.
3364 (decode_options): Update call.
3365 (set_option): Use option index instead of option pointer. Classify
3366 diagnostics correctly.
3367 (enable_warning_as_error): Call handle_option.
3368 * opts.h (set_option): Update declaration.
3369 (handle_option): Declare.
3370 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3371 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3372 * c-opts.c (set_Wimplicit): Delete.
3373 (c_family_lang_mask): New static constant.
3374 (c_common_handle_option): Add argument kind. Use handle_option
3375 instead of set_Wimplicit.
3376 (c_common_post_options): warn_implicit and warn_implicit_int
3377 are disabled by default.
3378 * c-common.c (warn_implicit): Do not define here.
3379 * c-common.h (warn_implicit): Do not declare here.
3380 (c_common_handle_option): Update declaration.
3381 * lto-opts.c (lto_reissue_options): Update call to set_option.
3383 2010-05-06 Richard Guenther <rguenther@suse.de>
3385 PR tree-optimization/43571
3386 * domwalk.c (walk_dominator_tree): Walk the dominator
3387 sons in more optimal order.
3389 2010-05-06 Richard Guenther <rguenther@suse.de>
3391 PR tree-optimization/43934
3392 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3393 (stmt_cost): Likewise.
3394 (extract_true_false_args_from_phi): New helper.
3395 (determine_max_movement): For PHI nodes verify we can hoist them
3396 and compute their cost.
3397 (determine_invariantness_stmt): Handle PHI nodes.
3398 (move_computations_stmt): Likewise. Hoist PHI nodes in
3399 if-converted form using COND_EXPRs.
3400 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3401 (tree_ssa_lim): Likewise.
3402 * tree-flow.h (tree_ssa_lim): Adjust prototype.
3403 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3405 2010-05-06 Richard Guenther <rguenther@suse.de>
3407 PR tree-optimization/43987
3408 * tree-ssa-structalias.c (could_have_pointers): For possibly
3409 address-taken variables force pointers to be recorded.
3410 (create_variable_info_for_1): Likewise.
3411 (push_fields_onto_fieldstack): Pass in wheter all fields
3413 (find_func_aliases): Query types instead of vars whether
3414 they contain pointers where appropriate.
3416 2010-05-06 Jan Hubicka <jh@suse.cz>
3418 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3419 (record_reference, mark_address, mark_load, mark_store): Record
3421 (record_references_in_initializer): Update call of record_references.
3422 (rebuild_cgraph_edges): Remove all references before rebuiding.
3423 * cgraph.c (cgraph_create_node): Clear ref list.
3424 (cgraph_remove_node): Remove references.
3425 (dump_cgraph_node): Dump references.
3426 (cgraph_clone_node): Clone references.
3427 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3428 (struct cgraph_node, varpool_node): Add ref_lst.
3429 * ipa-ref.c: New file.
3430 * ipa-ref.h: New file.
3431 * ipa-ref-inline.h: New file.
3432 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3433 (referenced_from_other_partition_p): New function.
3434 (lto_output_varpool_node): Take set arugment; call
3435 referenced_from_other_partition.
3436 (lto_output_ref): New.
3437 (add_references): New.
3439 (output_cgraph): Compute boundary based on references; output refs.
3440 (output_varpool): Accept cgraph_node_set argument.
3443 (input_cgraph): Call input_refs.
3444 * lto-section-in.c (lto_section_name): Add refs.
3445 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3446 (ipa-ref.o): New file.
3447 * varpool.c (varpool_node): Clear ipa ref list.
3448 (varpool_remove_node): Remove references.
3449 (dump_varpool_node): Dump references.
3450 (varpool_assemble_decl): Only compile finalized ones.
3451 (varpool_extra_name_alias): Initialize ref list.
3452 * lto-streamer.c (lto-get_section_name): Add .refs section.
3453 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3454 (referenced_from_other_partition_p): Declared.
3456 2010-05-06 Ira Rosen <irar@il.ibm.com>
3458 PR tree-optimization/43901
3459 * tree-vect-stmts.c (vectorizable_call): Assert that vector
3460 type is not NULL if it's transformation phase, and return
3461 FALSE if it's analysis.
3462 (vectorizable_conversion, vectorizable_operation,
3463 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3465 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3467 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3469 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3471 * config/mips/mips-protos.h
3472 (mips_small_register_classes_for_mode_p): Delete prototype.
3474 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
3476 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3477 * config/arm/arm.c (multiple_operation_profitable_p,
3478 compute_offset_order): New static functions.
3479 (load_multiple_sequence, store_multiple_sequence): Use them.
3480 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
3481 memory offsets, not register numbers.
3482 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3484 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
3486 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3487 (get_pending_sizes, put_pending_size, put_pending_sizes):
3488 Update the uses of pending_sizes.
3489 * c-decl.c (store_parm_decls): Likewise.
3490 * c-tree.h (struct c_arg_info): Likewise.
3491 * tree.h: Update the prototype for get_pending_sizes and
3494 2010-05-05 Jason Merrill <jason@redhat.com>
3497 * c-common.c (handle_aligned_attribute): Respect
3498 ATTR_FLAG_TYPE_IN_PLACE.
3501 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3502 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3503 (TARGET_INITIALIZER): Use it.
3504 * c-common.c (attribute_takes_identifier_p): Call it.
3505 * c-common.h: Update prototype.
3506 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3507 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3509 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3512 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3513 DW_ID_down_case for Fortran compilation units.
3515 2010-05-05 Jan Hubicka <jh@suse.cz>
3517 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3520 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
3522 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3523 a variable-sized RESULT_DECL.
3525 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
3527 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3529 2010-05-05 Jason Merrill <jason@redhat.com>
3532 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3534 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3536 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
3537 Jakub Jelinek <jakub@redhat.com>
3540 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3541 (dead_debug_init, dead_debug_finish): New functions.
3542 (dead_debug_add, dead_debug_insert_before): Likewise.
3543 (df_note_bb_compute): Initialize a dead_debug object, add dead
3544 debug uses to it, insert debug bind insns before death insns,
3545 reset debug insns that refer to pending uses at the end.
3546 * rtl.h (make_debug_expr_from_rtl): New prototype.
3547 * varasm.c (make_debug_expr_from_rtl): New function.
3549 2010-05-05 Jan Hubicka <jh@suse.cz>
3551 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3552 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3553 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3554 lto_varpool_encoder_deref, lto_varpool_encoder_size,
3555 lto_varpool_encoder_encode_initializer_p,
3556 lto_set_varpool_encoder_encode_initializer): New functions.
3557 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3558 call output_varpool.
3559 (input_varpool_node): Do not always set analyzed.
3560 (input_cgraph_1): Return vector of cgraph nodes.
3561 (input_varpool_1): Return vector of varpools.
3562 (input_cgraph): Free the vectors.
3563 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3564 output only initializers needed.
3565 (lto_output): Only call output_cgraph.
3566 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3567 * lto-section-out.c (lto_new_out_decl_state): Initialize
3568 state->varpool_node_encoder.
3569 * lto-streamer.h (lto_varpool_encoder_d): New.
3570 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3571 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3572 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3573 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3574 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3576 (output_varpool, input_varpool): Remove declarations.
3578 2010-05-05 Jan Hubicka <jh@suse.cz>
3580 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3581 with body can prevail.
3583 2010-05-05 Jan Hubicka <jh@suse.cz>
3585 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3588 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3590 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3592 * gengtype.h (erro_at_line): Constify pos argument.
3594 * gengtype.c: Include hashtab.h.
3595 (enum gc_used): Document GC_MAYBE_POINTED_TO.
3596 (error_at_line): Constify pos argument.
3597 (do_typedef): Initialize p->opt field.
3598 (get_file_gtfilename): Fix comment typo.
3599 (struct walk_type_data): Constify line field.
3600 (get_output_file_for_structure): New function.
3601 (write_local_func_for_structure): Constify orig_s argument.
3602 Use get_output_file_for_structure.
3603 (write_func_for_structure): Use get_output_file_for_structure.
3604 (INDENT): New define.
3605 (dump_pair, dump_type, dump_type_list, dump_typekind)
3606 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3607 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3609 (seen_types): New variable.
3610 (main): New variable do_dump. Process "-d" command line option.
3611 Call dump_everything if dump requested.
3613 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3615 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
3616 in a temporary instead of invoking the macro multiple times.
3617 (track_expr_p): Likewise.
3619 2010-05-04 Neil Vachharajani <nvachhar@google.com>
3621 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3623 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3624 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
3625 conditions for printing notes.
3626 * common.opt (-Wcoverage-mismatch): Allow negative, default to
3627 true, update documentation.
3628 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3630 2010-05-04 Jakub Jelinek <jakub@redhat.com>
3633 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3636 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3639 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3640 (*sse_prologue_save_insn1): Likewise.
3641 (SSE prologue save splitter): Likewise.
3643 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
3645 * tree.c (free_lang_data_in_one_sizepos): New inline function.
3646 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3647 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3648 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3649 all decls. Call it on DECL_FIELD_OFFSET of fields.
3650 (find_decls_types_r): Follow DECL_VALUE_EXPR.
3651 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3653 2010-05-04 Martin Jambor <mjambor@suse.cz>
3655 * tree-sra.c (build_access_from_expr_1): The first parameter type
3656 changed to simple tree.
3657 (build_access_from_expr): Likewise, gsi parameter was eliminated.
3658 (scan_assign_result): Renamed to assignment_mod_result, enum elements
3660 (build_accesses_from_assign): Removed all parameters except for a
3661 simple gimple statement. Now returns a simple bool.
3662 (scan_function): All non-analysis parts moved to separate functions
3663 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
3664 parameters and updated both callers.
3665 (sra_modify_expr): Removed parameter data.
3666 (sra_modify_function_body): New function.
3667 (perform_intra_sra): Call sra_modify_function_body to modify the
3669 (replace_removed_params_ssa_names): Parameter data changed into
3671 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
3672 changed the parameter dont_convert to convert with the opposite
3674 (sra_ipa_modify_assign): Parameter data changed into adjustments
3675 vector, return value changed to bool.
3676 (ipa_sra_modify_function_body): New function.
3677 (sra_ipa_reset_debug_stmts): Updated a comment.
3678 (modify_function): Use ipa_sra_modify_function_body to modify function
3681 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3684 * alias.c (true_dependence): Handle the same VALUE in x and mem.
3685 (canon_true_dependence): Likewise.
3686 (write_dependence_p): Likewise.
3688 2010-05-04 Jan Hubicka <jh@suse.cz>
3690 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
3691 * cgraphbuild.c: Include ipa-utils.h
3692 (record_reference_ctx): New struct.
3693 (record_reference): Simplify to work on initializers; not statements.
3694 (mark_address, mark_load, mark_store): New.
3695 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3697 (record_references_in_initializer): Update use of record_reference.
3698 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3701 2010-05-04 Jan Hubicka <jh@suse.cz>
3703 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
3704 node will be removed anyway.
3705 (lto_varpool_replace_node): Allow also unanalyzed nodes;
3706 relink aliases of node into prevailing node.
3707 * varpool.c (varpool_remove_node): Remove aliases properly;
3708 when removing node, remove all its aliases too; remove DECL_INITIAL
3709 of removed node; ggc_free the varpool node.
3711 2010-05-04 Richard Guenther <rguenther@suse.de>
3713 PR tree-optimization/43879
3714 * tree-ssa-structalias.c (alias_get_name): Use
3715 DECL_ASSEMBLER_NAME if available.
3716 (create_function_info_for): Return the varinfo node.
3717 (ipa_pta_execute): Associate same-body aliases and extra names
3718 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
3720 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
3722 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
3724 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
3727 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
3728 only if HONOR_REG_ALLOC_ORDER is not defined.
3730 2010-05-04 Richard Guenther <rguenther@suse.de>
3732 PR tree-optimization/43949
3733 * tree-vrp.c (extract_range_from_binary_expr): Only handle
3736 2010-04-26 Jason Merrill <jason@redhat.com>
3738 * c.opt (-fstrict-enums): New.
3739 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
3741 2010-05-03 David Ung <davidu@mips.com>
3742 James E. Wilson <wilson@codesourcery.com>
3744 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
3745 emit the trap instruction before the divide for TUNE_74K.
3747 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
3749 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
3750 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
3751 based on the above, for new target hook.
3753 * hooks.c (hook_bool_mode_true): New generic hook.
3754 * hooks.h (hook_bool_mode_true): Add prototype.
3756 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
3758 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
3759 target hook, set to hook_bool_mode_false.
3760 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
3761 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
3762 with targetm.small_register_classes_for_mode_p.
3763 (find_reusable_reload): Likewise.
3764 (combine_reloads): Likewise.
3765 * reload1.c (reload_as_needed): Likewise.
3766 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
3767 * ifcvt.c (noce_process_if_block, check_cond_move_block,
3768 dead_or_predicable): Likewise.
3769 * regmove.c (optimize_reg_copy_1): Likewise.
3770 * calls.c (prepare_call_address): Likewise.
3771 (precompute_register_parameters): Likewise.
3773 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
3775 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
3776 implementation of the hook that considers all register classes
3777 small except for SH64.
3778 (sh_override_options): Use the new hook.
3779 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
3782 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
3784 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
3785 implementation of the hook that considers all register classes
3787 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
3790 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
3792 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
3793 implementation of the hook that considers all register classes
3795 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
3798 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
3800 * config/m32c/m32c.h: Likewise.
3801 * config/pdp11/pdp11.h: Likewise.
3802 * config/avr/avr.h: Likewise.
3803 * config/xtensa/xtensa.h: Likewise.
3804 * config/m68hc11/m68hc11.h: Likewise.
3805 * config/mn10300/mn10300.h: Likewise.
3806 * config/mcore/mcore.h: Likewise.
3807 * config/h8300/h8300.h: Likewise.
3808 * config/bfin/bfin.h: Likewise.
3810 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
3811 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
3813 2010-05-03 Anatoly Sokolov <aesok@post.ru>
3815 * double-int.h (tree_to_double_int): Remove macro.
3816 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
3817 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3818 (tree_to_double_int): New function.
3819 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
3821 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3823 2010-05-03 Richard Guenther <rguenther@suse.de>
3825 PR tree-optimization/43971
3826 * tree-ssa-structalias.c (get_constraint_for_1): Fix
3827 constraints in the !flag_delete_null_pointer_checks case.
3829 2010-05-03 Jakub Jelinek <jakub@redhat.com>
3832 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
3833 result mode matches original rtl mode.
3835 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
3838 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
3840 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3842 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
3843 when processing flag options.
3845 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3847 * gcov-iov.c (main): Change format string placeholder
3848 from %#08x to 0x%08x.
3849 * genchecksum.c (dosum): Change format string placeholder
3850 from %#02x to 0x%02x.
3852 2010-05-02 Richard Guenther <rguenther@suse.de>
3854 PR tree-optimization/43879
3855 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
3857 2010-05-02 Bruno Haible <bruno@clisp.org>
3859 * doc/extend.texi (Function Attributes): Fix a typo.
3861 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3864 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
3865 placeholder from 0x%x to %#x.
3866 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3867 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3868 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3869 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3870 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3871 * config/i386/i386.c (ix86_target_string): Ditto.
3872 * config/i386/i386.c (output_pic_addr_const): Ditto.
3873 (print_operand): Ditto.
3875 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3877 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
3878 placeholder from 0x%x to %#x.
3879 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
3880 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
3881 (ASM_OUTPUT_DEBUG_DATA): Ditto.
3882 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
3883 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
3884 * optc-gen.awk: Ditto.
3885 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
3886 (HOST_WIDE_INT_PRINT_HEX): Ditto.
3887 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
3888 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3890 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3892 * target.h (struct calls): Add function_value_regno_p field.
3893 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3894 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
3895 * targhooks.c (default_function_value_regno_p): New function.
3896 * targhooks.h (default_function_value_regno_p): Declare function.
3897 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
3898 * builtins.c. (apply_result_size): (Ditto.).
3899 * combine.c. (likely_spilled_retval_p): (Ditto.).
3900 * mode-switching.c. Include 'target.h'.
3901 (create_pre_exit): Use function_value_regno_p hook.
3902 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
3903 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
3904 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
3906 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
3907 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
3908 (ix86_function_value_regno_p): Declare as static, change argument
3909 type to const unsigned int.
3910 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
3912 2010-05-01 Richard Guenther <rguenther@suse.de>
3914 PR tree-optimization/43949
3915 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
3917 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
3919 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3921 * rtl.h (CONST_DOUBLE_P): Define.
3922 (rtx_to_double_int): Declare.
3923 * emit-rtl.c (rtx_to_double_int): New function.
3924 * dwarf2out.c (insert_double): New function.
3925 (loc_descriptor, add_const_value_attribute): Clean up, use
3926 rtx_to_double_int and insert_double functions.
3928 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
3930 * doc/extend.texi (Inline): Add missing return keyword to examples.
3931 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
3934 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
3936 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
3937 the variable part of the offset as well. Use highest_pow2_factor for
3938 all alignment checks.
3940 2010-04-30 Richard Guenther <rguenther@suse.de>
3942 PR tree-optimization/43879
3943 * tree-ssa-structalias.c (type_could_have_pointers): Functions
3946 2010-04-30 Jan Hubicka <jh@suse.cz>
3948 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
3950 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
3952 2010-04-30 Jan Hubicka <jh@suse.cz>
3954 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
3956 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
3957 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
3958 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
3959 cgraph_node_set_needs_ltrans_p): Remove.
3961 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
3963 * sdbout.c: Include vec.h, do not include varray.h.
3964 (deferred_global_decls, sdbout_global_decl,
3965 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
3966 * toplev.c: Do not include varray.h.
3967 (dump_memory_report): Do not dump VARRAY statistics.
3968 * gengtype.c (open_base_file): Ignore varray.h.
3969 * Makefile.in: Update for abovementioned changes.
3970 Remove all traces of varray.c and varray.h.
3971 * varray.c: Remove file.
3972 * varray.h: Remove file.
3974 2010-04-30 Jan Hubicka <jh@suse.cz>
3976 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
3979 2010-04-30 Jan Hubicka <jh@suse.cz>
3981 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
3984 2010-04-30 Richard Guenther <rguenther@suse.de>
3986 * tree-ssa-structalias.c (get_constraint_for_1): Generate
3987 constraints for CONSTRUCTOR.
3989 2010-04-30 Richard Guenther <rguenther@suse.de>
3992 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
3993 first after all lowering passes.
3995 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
3997 * toplev.c: Include varray.h for statistics dumping.
3998 * tree.h: Do not declare varray_head_tag.
3999 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4000 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4001 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4002 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4003 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4004 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4005 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4006 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4008 * Makefile.in: Update for abovementioned changes.
4010 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4013 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4015 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4017 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4018 Use this function to do machine-specific conversion.
4019 (picochip_legitimize_reload_address): Likewise.
4020 (picochip_legitimate_address_p): Check valid base register only if
4022 (picochip_check_conditional_copy): Check for modw only if opnd is
4024 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4025 to call the function in c.
4026 * config/picochip/picochip-protos.h
4027 (picochip_legitimize_reload_address): Define.
4028 * config/picochip/picochip.md (supported_compare1): Define.
4030 2010-04-30 Jan Hubicka <jh@suse.cz>
4032 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4033 (cgraph_global_info): Remove inlined.
4034 (LTO_cgraph_tag_names): Remove.
4035 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4036 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4037 simplify cgraph tags and document.
4038 (lto_output_node): Use only LTO_cgraph_unavail_node and
4039 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4040 for_functions_valid, global info, process and output flags.
4041 (input_overwrite_node): Initialize estimated stack size and
4042 estimated growth. Do not read flags we no longer store.
4043 (input_node): Likewise do not read info no longer stored.
4044 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4047 2010-04-30 Richard Guenther <rguenther@suse.de>
4049 PR tree-optimization/43879
4050 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4051 handle non-zero initializers.
4053 2010-04-30 Richard Guenther <rguenther@suse.de>
4055 * builtins.c (fold_builtin_1): Delete free (0).
4057 2010-04-29 Jan Hubicka <jh@suse.cz>
4059 * gengtype.c (open_base_files): Add lto-streamer.h
4060 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4061 (pass_ipa_cp): GGC collect.
4062 * toplev. (compile_file): Do not output symbols.
4063 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4064 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4065 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4066 * lto-section-in.c: Include ggc.h
4067 (lto_new_in_decl_state): Alloc in GGC.
4068 (lto_delete_in_decl_state): Likewise.
4069 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4072 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4075 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4076 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
4077 (HONOR_REG_ALLOC_ORDER): Describe new macro.
4078 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4079 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4080 account only if HONOR_REG_ALLOC_ORDER is not defined.
4081 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4082 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4084 2010-04-29 Jon Grant <04@jguk.org>
4086 * collect2.c (vflag): Change type from int to bool.
4088 (helpflag): New global bool.
4089 (main): Set vflag and debug with boolean, not integer truth values.
4090 Accept new "--help" option and output usage text if found.
4091 * collect2.h (vflag): Update prototype.
4094 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4097 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4099 2010-04-29 Richard Guenther <rguenther@suse.de>
4102 * plugin.h (invoke_plugin_callbacks): Annotate arguments
4103 with ATTRIBUTE_UNUSED.
4105 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4108 * config/i386/i386.c (get_some_local_dynamic_name): Replace
4109 INSN_P with NONDEBUG_INSN_P.
4110 (distance_non_agu_define): Likewise.
4111 (distance_agu_use): Likewise.
4113 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4115 From Dominique d'Humieres <dominiq@lps.ens.fr>
4117 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4120 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
4122 * plugin.h (invoke_plugin_callbacks): New inline function.
4123 * plugin.c (flag_plugin_added): New global flag.
4124 (add_new_plugin): Initialize above flag.
4125 (invoke_plugin_callbacks): Rename to ...
4126 (invoke_plugin_callbacks_full): ... this.
4128 2010-04-28 Jan Hubicka <jh@suse.cz>
4130 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4131 (lto_varpool_replace_node): New.
4132 (lto_symtab_resolve_symbols): Resolve varpool nodes.
4133 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4134 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4135 * cgraph.h (varpool_node_ptr): New type.
4136 (varpool_node_ptr): New vector.
4137 (varpool_node_set_def): New structure.
4138 (varpool_node_set): New type.
4139 (varpool_node_set): New vector.
4140 (varpool_node_set_element_def): New structure.
4141 (varpool_node_set_element, const_varpool_node_set_element): New types.
4142 (varpool_node_set_iterator): New type.
4143 (varpool_node): Add prev pointers, add used_from_other_partition,
4145 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4146 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4147 varpool_get_node, varpool_remove_node): Declare.
4148 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4149 varpool_node_set_size): New inlines.
4150 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4151 * tree-pass.h (varpool_node_set_def): Forward declare.
4152 (ipa_opt_pass_d): Summary writting takes vnode sets too.
4153 (ipa_write_optimization_summaries): Update prototype.
4154 * ipa-cp.c (ipcp_write_summary): Update.
4155 * ipa-reference.c (ipa_reference_write_summary): Update.
4156 * lto-cgraph.c (lto_output_varpool_node): New static function.
4157 (output_varpool): New function.
4158 (input_varpool_node): New static function.
4159 (input_varpool_1): New function.
4160 (input_cgraph): Input varpool.
4161 * ipa-pure-const.c (pure_const_write_summary): Update.
4162 * lto-streamer-out.c (lto_output): Update, output varpool too.
4163 (write_global_stream): Kill WPA hack.
4164 (produce_asm_for_decls): Update.
4165 (output_alias_pair_p): Handle variables.
4166 (output_unreferenced_globals): Output only needed partition of varpool.
4167 * ipa-inline.c (inline_write_summary): Update.
4168 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4170 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4171 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4172 varpool_node_set_new, varpool_node_set_add,
4173 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4174 debug_varpool_node_set): New functions.
4175 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4176 (execute_one_pass): Process new decls too.
4177 (ipa_write_summaries_2): Pass around vsets.
4178 (ipa_write_summaries_1): Likewise.
4179 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4181 (ipa_write_optimization_summaries_1): Pass around vsets.
4182 (ipa_write_optimization_summaries): Likewise.
4183 * varpool.c (varpool_get_node): New.
4184 (varpool_node): Update doubly linked lists.
4185 (varpool_remove_node): New.
4186 (dump_varpool_node): More dumping.
4187 (varpool_enqueue_needed_node): Update doubly linked lists.
4188 (decide_is_variable_needed): Kill ltrans hack.
4189 (varpool_finalize_decl): Kill lto hack.
4190 (varpool_assemble_decl): Skip decls in other partitions.
4191 (varpool_assemble_pending_decls): Update doubly linkes lists.
4192 (varpool_empty_needed_queue): Likewise.
4193 (varpool_extra_name_alias): Likewise.
4194 * lto-streamer.c (lto_get_section_name): Add vars section.
4195 * lto-streamer.h (lto_section_type): Update.
4196 (output_varpool, input_varpool): Declare.
4198 2010-04-28 Mike Stump <mikestump@comcast.net>
4200 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4202 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4204 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4205 record or union type with RECORD_OR_UNION_TYPE_P predicate.
4206 (lto_input_ts_type_tree_pointers): Likewise.
4207 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4208 (lto_output_ts_type_tree_pointers): Likewise.
4210 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4212 Uniquization of constants at the Tree level
4213 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4214 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4216 (tree_output_constant_def): Declare.
4217 * gimplify.c (gimplify_init_constructor): When using block copy, first
4218 uniquize the constant constructor on the RHS.
4219 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4220 DECL_IN_CONSTANT_POOL flag.
4221 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4222 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4224 (assemble_variable): Deal with symbols belonging to the tree constant
4226 (get_constant_section): Add ALIGN parameter and simplify.
4227 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4228 (assemble_constant_contents): Use the expression of the VAR_DECL.
4229 (output_constant_def_contents): Use the alignment of the VAR_DECL.
4230 (tree_output_constant_def): New global function.
4231 (mark_constant): Use the expression of the VAR_DECL.
4232 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4234 (output_object_block): Likewise and assemble the expression.
4236 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4238 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4239 hash_tree, eq_tree): New tree hash table.
4240 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4241 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4242 lto_orig_address_remove): Reimplement.
4244 2010-04-28 Xinliang David Li <davidxl@google.com>
4247 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4248 (compute_uninit_opnds_pos): New function.
4249 (is_non_loop_exit_postdominating): New function.
4250 (compute_control_dep_chain): New function.
4251 (find_pdom): New function.
4252 (convert_control_dep_chain_into_preds): New function.
4253 (find_predicates): New function.
4254 (find_control_equiv_block): New function.
4255 (collect_phi_def_edges): New function.
4256 (find_def_preds): New function.
4257 (find_dom): New function.
4258 (dump_predicates): New function.
4259 (get_cmp_code): New function.
4260 (is_value_included_in): New function.
4261 (find_matching_predicate_in_rest_chains): New function.
4262 (use_pred_not_overlap_with_undef_path_pred): New function.
4263 (is_use_properly_guarded): New function.
4264 (normalize_cond_1): New function.
4265 (is_and_or_or): New function.
4266 (normalize_cond): New function.
4267 (is_gcond_subset_of): New function.
4268 (is_subset_of_any): New function.
4269 (is_or_set_subset_of): New function.
4270 (is_and_set_subset_of): New function.
4271 (is_norm_cond_subset_of): New function.
4272 (is_pred_expr_subset_of): New function.
4273 (is_pred_chain_subset_of): New function.
4274 (is_included_in): New function.
4275 (is_superset_of): New function.
4276 (find_uninit_use): New function.
4277 (warn_uninitialized_phi): New function.
4278 (compute_possibly_undefined_names): New function.
4279 (ssa_undefined_value_p): New function.
4280 (execute_late_warn_uninitialized): New function.
4281 * tree-ssa.c (ssa_undefined_value_p): Removed.
4282 (warn_uninit): Changed to extern.
4283 (warn_uninitialized_phi): Removed.
4284 (warn_uninitialized_vars): Changed to extern.
4285 (execute_late_warn_uninitialized): Removed
4286 * tree-flow.h: Add new prototypes.
4287 * timevar.def: Add new time variable.
4288 * Makefile.in: Add new build file.
4290 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
4292 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4295 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4298 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4300 2010-04-28 Martin Jambor <mjambor@suse.cz>
4302 * cgraph.h (struct cgraph_node): New field indirect_calls.
4303 (struct cgraph_indirect_call_info): New type.
4304 (struct cgraph_edge): Removed field indirect_call. New fields
4305 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4306 (cgraph_create_indirect_edge): Declare.
4307 (cgraph_make_edge_direct): Likewise.
4308 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4309 * ipa-prop.h (struct ipa_param_call_note): Removed.
4310 (struct ipa_node_params): Removed field param_calls.
4311 (ipa_create_all_structures_for_iinln): Declare.
4312 * cgraph.c: Described indirect edges and uids in initial comment.
4313 (cgraph_add_edge_to_call_site_hash): New function.
4314 (cgraph_edge): Search also among the indirect edges, use
4315 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4316 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4317 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4319 (initialize_inline_failed): Assign a reason to indirect edges.
4320 (cgraph_create_edge_1): New function.
4321 (cgraph_create_edge): Moved some functionality to
4322 cgraph_create_edge_1.
4323 (cgraph_create_indirect_edge): New function.
4324 (cgraph_edge_remove_callee): Add an assert checking for
4326 (cgraph_edge_remove_caller): Special-case indirect edges.
4327 (cgraph_remove_edge): Likewise.
4328 (cgraph_set_edge_callee): New function.
4329 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4330 (cgraph_make_edge_direct): New function.
4331 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4332 the declaration of the call statement matches.
4333 (cgraph_node_remove_callees): Special-case indirect edges.
4334 (cgraph_clone_edge): Likewise.
4335 (cgraph_clone_node): Clone also the indirect edges.
4336 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4337 indirect_call, dump count of indirect_calls edges.
4338 * ipa-prop.c (iinlining_processed_edges): New variable.
4339 (ipa_note_param_call): Create indirect edges instead of
4340 creating notes. New parameter node.
4341 (ipa_analyze_call_uses): New parameter node, pass it on to
4342 ipa_note_param_call.
4343 (ipa_analyze_stmt_uses): Likewise.
4344 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4345 (print_edge_addition_message): Work on edges rather than on notes.
4346 (update_call_notes_after_inlining): Likewise, renamed to
4347 update_indirect_edges_after_inlining.
4348 (ipa_create_all_structures_for_iinln): New function.
4349 (ipa_free_node_params_substructures): Do not free notes.
4350 (ipa_edge_duplication_hook): Propagate bits within
4351 iinlining_processed_edges bitmap.
4352 (ipa_node_duplication_hook): Do not duplicate notes.
4353 (free_all_ipa_structures_after_ipa_cp): Renamed to
4354 ipa_free_all_structures_after_ipa_cp.
4355 (free_all_ipa_structures_after_iinln): Renamed to
4356 ipa_free_all_structures_after_iinln.
4357 (ipa_write_param_call_note): Removed.
4358 (ipa_read_param_call_note): Removed.
4359 (ipa_write_indirect_edge_info): New function.
4360 (ipa_read_indirect_edge_info): Likewise.
4361 (ipa_write_node_info): Do not stream notes, do stream information
4363 (ipa_read_node_info): Likewise.
4364 (lto_ipa_fixup_call_notes): Removed.
4365 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4366 * ipa-inline.c (pass_ipa_inline): Likewise.
4367 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4368 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4369 * tree-inline.c (copy_bb): Removed an unnecessary double check for
4371 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4373 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4374 (output_cgraph): Stream also indirect edges.
4375 (lto_output_edge): Added capability to stream indirect edges.
4376 (input_edge): Likewise.
4377 (input_cgraph_1): Likewise.
4378 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4381 2010-04-28 Richard Guenther <rguenther@suse.de>
4383 PR tree-optimization/43879
4384 PR tree-optimization/43909
4385 * tree-ssa-structalias.c (struct variable_info): Add
4386 only_restrict_pointers flag.
4387 (new_var_info): Initialize it. Increment stats.total_vars here.
4388 (create_function_info_for): Do not increment stats.total_vars here.
4389 (get_function_part_constraint): Fix build with C++.
4390 (insert_into_field_list): Remove.
4391 (push_fields_onto_fieldstack): Properly merge fields.
4392 (create_variable_info_for): Split and simplify.
4393 (create_variable_info_for_1): New piece.
4394 (intra_create_variable_infos): Properly make restrict constraints
4397 2010-04-28 Richard Guenther <rguenther@suse.de>
4400 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4402 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
4403 Jan Hubicka <hubicka@ucw.cz>
4405 * doc/invoke.texi (-Wsuggest-attribute=const,
4406 -Wsuggest-attribute=pure): Document.
4407 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4408 (function_always_visible_to_compiler_p,
4409 suggest_attribute, warn_function_pure, warn_function_const):
4411 (check_call): Improve debug info.
4412 (analyze_function): Do not check availability.
4413 (add_new_function): Check availability.
4414 (propagate): Output warnings.
4415 (skip_function_for_local_pure_const): New function.
4416 (local_pure_const): Use it; output warnings.
4417 * common.opt (Wsuggest-attribute=const,
4418 Wsuggest-attribute=pure): New.
4420 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4422 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4423 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4424 or DW_CFA_def_cfa_offset{,_sf}.
4426 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4428 * tree.h: Fix truncated long macros.
4430 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
4432 * collect2.c (TARGET_64BIT): Redefine to target's default.
4433 * tlink.c: Likewise.
4434 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4435 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4436 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4437 for underscoring __USER_LABEL_PREFIX__.
4438 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4439 (SUB_LINK_ENTRY32): New.
4440 (SUB_LINK_ENTRY64): New.
4441 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4442 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4443 (SUB_LINK_ENTRY64): New.
4444 (SUB_LINK_ENTRY): New.
4445 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4446 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4447 x64 target is choosen.
4448 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4449 * configure: Regenerated.
4450 * configure.ac (leading-mingw64-underscores): Option added.
4452 2010-04-27 Jan Hubicka <jh@suse.cz>
4454 * doc/invoke.texi (-fipa-profile): Document.
4455 * opts.c (decode_options): Enable ipa-profile at -O1.
4456 * timevar.def (TV_IPA_PROFILE): Define.
4457 * common.opt (fipa-profile): Add.
4458 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4460 (cgraph_propagate_frequency): Handle only local ones.
4461 * tree-pass.h (pass_ipa_profile): Declare.
4462 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4463 (pass_ipa_profile): Use TV_IPA_PROFILE.
4464 * ipa.c (ipa_profile): New function.
4465 (gate_ipa_profile): Likewise.
4466 (pass_ipa_profile): New global variable.
4467 * passes.c (pass_ipa_profile): New.
4469 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
4471 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4473 2010-04-27 Martin Jambor <mjambor@suse.cz>
4476 * ipa.c (dissolve_same_comdat_group_list): New function.
4477 (function_and_variable_visibility): Call
4478 dissolve_same_comdat_group_list when comdat group contains external or
4480 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4481 lists are circular and that they contain only DECL_ONE_ONLY nodes.
4483 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4485 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4486 (const_hash_1) <VECTOR_CST>: New case.
4487 (compare_constant) <VECTOR_CST>: Likewise.
4488 <ADDR_EXPR>: Deal with LABEL_REFs.
4489 (copy_constant) <VECTOR_CST>: New case.
4491 2010-04-27 Jan Hubicka <jh@suse.cz>
4493 * cgraph.c (cgraph_propagate_frequency): New function.
4494 * cgraph.h (cgraph_propagate_frequency): Declare.
4495 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4496 cgraph_propagate_frequency.
4498 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4500 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4502 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
4505 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4506 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4507 here to determine which regs to push and how much stack to reserve.
4509 2010-04-27 Jie Zhang <jie@codesourcery.com>
4511 * doc/gimple.texi (gimple_statement_with_ops): Remove
4512 addresses_taken field.
4513 (gimple_statement_with_memory_ops): Likewise.
4515 2010-04-27 Jan Hubicka <jh@suse.cz>
4517 * tree-inline.c (eni_inlining_weights): Remove.
4518 (estimate_num_insns): Special case more builtins.
4520 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
4523 * c-typeck.c (build_binary_op): Move forward check for comparison
4524 pointer with null pointer constant and adjust the diagnostic message.
4526 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
4529 * configure.ac (gcc_cv_as_section_has_align): Set if installed
4530 binutils supports extended .section directive needed by LTO, or
4531 warn if older binutils found.
4532 (LTO_BINARY_READER): New AC_SUBST'd variable.
4533 (LTO_USE_LIBELF): Likewise.
4534 * gcc/config.gcc (lto_binary_reader): New target-specific configure
4536 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4537 (LTO_USE_LIBELF): Likewise.
4538 * configure: Regenerate.
4540 * collect2.c (is_elf): Rename from this ...
4541 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4542 object files in addition to ELF-formatted ones.
4543 (scan_prog_file): Caller updated. Also allow for LTO info marker
4544 symbol to be prefixed or not by an extra underscore.
4546 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4547 * config/i386/winnt.c: Also #include lto-streamer.h
4548 (i386_pe_asm_named_section): Specify 1-byte section alignment for
4550 (i386_pe_asm_output_aligned_decl_common): Add comment.
4551 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4553 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
4556 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4557 Add missing earlyclobber for second alternative.
4559 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
4561 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4562 bits for artificial defs at the top of the block.
4563 * fwprop.c (single_def_use_enter_block): Don't call it.
4565 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
4568 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4569 instead of "$gcc_cv_objdump -T".
4570 Use "-undefined dynamic_lookup" on darwin.
4571 * gcc/configure: Regenerate.
4573 2010-04-26 Jakub Jelinek <jakub@redhat.com>
4576 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4578 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4580 * c-parser.c (struct c_token): Move location field up.
4581 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4582 (struct c_declspecs): Convert typespec_word, storage_class, and
4583 default_int_p into bitfields.
4584 (struct c_declarator): Move loc field up.
4586 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4588 * cfgloop.h (struct loop): Move can_be_parallel field up.
4589 * ipa-prop.h (struct ip_node_params): Move bitfields up.
4590 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4592 (struct iv_cand): Convert pos field into a bitfield.
4593 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4595 (struct _stmt_vec_info): Shuffle fields for better packing.
4597 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4599 * varasm.c (IN_NAMED_SECTION): Remove guard.
4600 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4601 (IN_NAMED_SECTION_P): ...this.
4602 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4603 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4605 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4607 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4608 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
4609 of shadowing it. Fix comments.
4611 2010-04-26 Jan Hubicka <jh@suse.cz>
4613 * cgraph.c (cgraph_create_node): Set node frequency to normal.
4614 (cgraph_clone_node): Copy function frequency.
4615 * cgraph.h (node_frequency): New enum
4616 (struct cgraph_node): Add.
4617 * final.c (rest_of_clean_state): Update.
4618 * lto-cgraph.c (lto_output_node): Output node frequency.
4619 (input_overwrite_node): Input node frequency.
4620 * tre-ssa-loop-ivopts (computation_cost): Update.
4621 * lto-streamer-out.c (output_function): Do not output function
4623 * predict.c (maybe_hot_frequency_p): Update and handle functions
4625 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4627 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4628 (compute_function_frequency): Set noreturn functions to be executed
4630 (choose_function_section): Update.
4631 * lto-streamer-in.c (input_function): Do not input function frequency.
4632 * function.c (allocate_struct_function): Do not initialize function
4634 * function.h (function_frequency): Remove.
4635 (struct function): Remove function frequency.
4636 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4637 (try_update): Update.
4638 * tree-inline.c (initialize_cfun): Do not update function frequency.
4639 * passes.c (pass_init_dump_file): Update.
4640 * i386.c (ix86_compute_frame_layout): Update.
4641 (ix86_pad_returns): Update.
4643 2010-04-26 Jie Zhang <jie@codesourcery.com>
4645 PR tree-optimization/43833
4646 * tree-vrp.c (range_int_cst_p): New.
4647 (range_int_cst_singleton_p): New.
4648 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4649 when both operands are constants. Use range_int_cst_p in
4652 2010-04-26 Jan Hubicka <jh@suse.cz>
4654 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4656 2010-04-26 Richard Guenther <rguenther@suse.de>
4659 * gimple.c (gimple_decl_printable_name): Deal gracefully
4660 with a NULL DECL_NAME.
4662 2010-04-26 Richard Guenther <rguenther@suse.de>
4665 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4666 if emitting debug information and it is either a function
4667 or a namespace decl.
4669 2010-04-26 Ira Rosen <irar@il.ibm.com>
4671 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4672 determine if the statement is vectorizable, and a macro to access it.
4673 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4674 Skip statements that can't be vectorized. If the analysis fails,
4675 mark the statement as unvectorizable if vectorizing basic block.
4676 (vect_compute_data_refs_alignment): Likewise.
4677 (vect_verify_datarefs_alignment): Skip statements marked as
4678 unvectorizable. Add print.
4679 (vect_analyze_group_access): Skip statements that can't be
4680 vectorized. If the analysis fails, mark the statement as
4681 unvectorizable if vectorizing basic block.
4682 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4683 * tree-vect-stmts.c (vectorizable_store): Fix the number of
4684 generated stmts for SLP.
4685 (new_stmt_vec_info): Initialize the new field.
4686 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4687 statements marked as unvectorizable.
4689 2010-04-25 Joseph Myers <joseph@codesourcery.com>
4691 * c-common.c (flag_isoc1x): New.
4692 (flag_isoc99): Update comment.
4693 * c-common.h (flag_isoc1x): New.
4694 (flag_isoc99): Update comment.
4695 * c-cppbuiltin.c (builtin_define_float_constants): Also define
4696 __<type>_DECIMAL_DIG__.
4697 * c-opts.c (set_std_c1x): New.
4698 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
4699 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
4700 * c.opt (-std=c1x, -std=gnu1x): New options.
4701 * doc/cpp.texi: Mention -std=c1x.
4702 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
4703 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
4704 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
4705 * doc/standards.texi: Mention C1X.
4706 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
4707 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
4708 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4711 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
4713 * config/i386/gmon-sol2.c (_mcleanup): Change format string
4714 placeholder from 0x%x to %#x.
4715 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4716 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4717 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4718 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4719 * config/i386/i386.c (ix86_target_string): Ditto.
4720 (output_pic_addr_const): Ditto.
4721 (print_operand): Ditto.
4723 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
4725 * combine.c (find_split_point): Add third argument. Use it
4726 to find nested multiply-accumulate instructions. Adjust calls.
4727 (try_combine): Adjust call to find_split_point.
4729 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4731 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
4733 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
4735 PR tree-optimization/41442
4736 * fold-const.c (merge_truthop_with_opposite_arm): New function.
4737 (fold_binary_loc): Call it.
4739 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4741 * toplev.c (general_init): Set default for fdiagnostics-show-option.
4742 * opts.c (common_handle_option): Allow disabling it.
4743 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
4745 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
4747 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
4748 between modes if both types are integral.
4750 2010-04-23 Richard Guenther <rguenther@suse.de>
4752 PR tree-optimization/43572
4753 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
4755 2010-04-23 Richard Guenther <rguenther@suse.de>
4758 * tree-inline.c (tree_can_inline_p): Also check compatibility
4761 2010-04-23 Martin Jambor <mjambor@suse.cz>
4763 PR tree-optimization/43846
4764 * tree-sra.c (struct access): New flag grp_assignment_read.
4765 (build_accesses_from_assign): Set grp_assignment_read.
4766 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
4767 (enum mark_read_status): New type.
4768 (analyze_access_subtree): Propagate grp_assignment_read, create
4769 accesses also if both direct_read and root->grp_assignment_read.
4771 2010-04-23 Martin Jambor <mjambor@suse.cz>
4774 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
4775 function does not have type attributes.
4777 2010-04-23 Richard Guenther <rguenther@suse.de>
4780 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
4783 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4785 * sese.h (create_if_region_on_edge): Remove.
4787 * sese.c (create_if_region_on_edge): Make static.
4789 * tree-inline.c: Do not include ggc.h.
4791 * expr.c: Do not include ggc.h.
4793 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
4796 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
4799 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4800 in the middle of insns for casesi_worker_2.
4802 2010-04-22 David Edelsohn <edelsohn@gnu.org>
4804 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
4806 2010-04-22 Ira Rosen <irar@il.ibm.com>
4808 PR tree-optimization/43842
4809 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4810 loop unrolling in update of exit phis. Fix comment.
4811 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
4812 least two reduction statements in the loop before starting SLP
4815 2010-04-22 Nick Clifton <nickc@redhat.com>
4817 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
4819 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
4821 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
4824 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4826 * tree-parloops.c (loop_parallel_p): New argument
4827 parloop_obstack. Pass it down.
4828 (parallelize_loops): New variable parloop_obstack. Initialize it,
4829 pass it down, free it.
4831 * tree-loop-linear.c (linear_transform_loops): Pass down
4834 * tree-data-ref.h (lambda_compute_access_matrices): New argument
4835 of type struct obstack *.
4837 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
4838 scratch_obstack. Initialize it, pass down, free it.
4840 * lambda.h (lambda_loop_new): Remove.
4841 (lambda_matrix_new, lambda_matrix_inverse)
4842 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
4843 argument of type struct obstack *.
4845 * lambda-trans.c (lambda_trans_matrix_new): New argument
4846 lambda_obstack. Pass it down, use obstack allocation for ret.
4847 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
4850 * lambda-mat.c (lambda_matrix_get_column)
4851 (lambda_matrix_project_to_null): Remove.
4852 (lambda_matrix_new): New argument lambda_obstack. Use obstack
4854 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
4857 * lambda-code.c (lambda_loop_new): New function.
4858 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
4859 (lambda_compute_auxillary_space, lambda_compute_target_space)
4860 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
4861 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
4862 (build_access_matrix): New argument lambda_obstack. Use obstack
4864 (lambda_compute_step_signs, lambda_compute_access_matrices): New
4865 argument lambda_obstack. Pass it down.
4867 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4869 * optabs.h (expand_widening_mult): Declare.
4871 2010-04-22 Richard Guenther <rguenther@suse.de>
4873 PR tree-optimization/43845
4874 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
4875 lookup the CALL_EXPR function and arguments.
4877 2010-04-22 Nick Clifton <nickc@redhat.com>
4879 * config/stormy16/stormy16.c
4880 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
4881 * config/stormy16/stormy16.h: Tidy up formatting.
4882 (DONT_USE_BUILTIN_SETJMP): Remove definition.
4883 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
4884 (ineqbranchsi): Delete pattern.
4885 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
4886 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
4887 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4888 stormy16-lib2-ucmpsi2.c.
4890 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4892 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
4893 df_simulate_find_noclobber_defs as appropriate. Keep track of an
4894 extra set merge_set_noclobber, and use it to relax the final test
4896 * df.h (df_simulate_find_noclobber_defs): Declare.
4897 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
4899 (df_simulate_find_noclobber_defs): New function.
4901 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
4903 * config/i386/i386.md: Use {} around multi-line preparation statements.
4905 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4907 * c-tree.h (push_init_level, pop_init_level, set_init_index)
4908 (process_init_element): New argument of type struct obstack *.
4910 * c-typeck.c (push_init_level, pop_init_level, set_designator)
4911 (set_init_index, set_init_label, set_nonincremental_init)
4912 (set_nonincremental_init_from_string, find_init_member)
4913 (output_init_element, output_pending_init_elements)
4914 (process_init_element): New argument braced_init_obstack. Pass it
4916 (push_range_stack, add_pending_init): New argument
4917 braced_init_obstack. Use obstack allocation.
4919 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
4920 braced_init_obstack. Pass it down.
4921 (c_parser_braced_init): New variables ret, braced_init_obstack.
4922 Initialize obstack, pass it down and finally free it.
4924 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4927 * tree-pass.h (pass_optimize_widening_mul): Declare.
4928 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
4929 gate_optimize_widening_mul): New static functions.
4930 (pass_optimize_widening_mul): New.
4931 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
4932 <case MULT_EXPR>: Remove support for widening multiplies.
4933 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
4934 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
4935 simplify_gen_unary rather than directly building extensions.
4936 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
4938 * expmed.c (expand_widening_mult): New function.
4939 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
4941 2010-04-21 Jan Hubicka <jh@suse.cz>
4943 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
4944 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
4945 * lto-wpa-fixup.c: Remove.
4946 * Makefile.in (lto-wpa-fixup.o): Remove.
4947 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
4948 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
4949 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
4951 2010-04-21 Jan Hubicka <jh@suse.cz>
4953 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
4954 add write_optimization_summary, read_optimization_summary.
4955 (ipa_write_summaries_of_cgraph_node_set): Remove.
4956 (ipa_write_optimization_summaries): Declare.
4957 (ipa_read_optimization_summaries): Declare.
4958 * ipa-cp.c (pass_ipa_cp): Update.
4959 * ipa-reference.c (pass_ipa_reference): Update.
4960 * ipa-pure-const.c (pass_ipa_pure_const): Update.
4961 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
4963 * ipa-inline.c (pass_ipa_inline): Update.
4964 * ipa.c (pass_ipa_whole_program): Update.
4965 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
4966 * passes.c (ipa_write_summaries_1): Do not test wpa.
4967 (ipa_write_optimization_summaries_1): New.
4968 (ipa_write_optimization_summaries): New.
4969 (ipa_read_summaries): Do not test ltrans.
4970 (ipa_read_optimization_summaries_1): New.
4971 (ipa_read_optimization_summaries): New.
4973 2010-04-21 Jan Hubicka <jh@suse.cz>
4975 * lto-cgraph.c (lto_output_node): Do not output comdat groups
4977 (output_cgraph): Do not arrange comdat groups for boundary nodes.
4979 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4982 * dwarf2out.c (add_name_and_src_coords_attributes): Add
4983 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
4985 2010-04-21 Jan Hubicka <jh@suse.cz>
4987 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
4989 2010-04-21 Jan Hubicka <jh@suse.cz>
4991 * varpool.c (decide_is_variable_needed): Variable is always needed
4994 2010-04-21 Jan Hubicka <jh@suse.cz>
4996 * opts.c (decode_options): Enable pure-const pass for whopr.
4998 2010-04-21 Jan Hubicka <jh@suse.cz>
5000 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5001 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5003 (cgraph_decide_inlining): Do not expect callee to be removed in all
5006 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5008 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5010 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5012 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5013 amdfam10_decode attributes.
5015 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5018 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5019 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5020 (lower_copyprivate_clauses): Use private var in outer
5021 context instead of original var. Make sure the types
5022 are correct for VLAs.
5024 2010-04-21 Richard Guenther <rguenther@suse.de>
5026 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5027 to non-pointer objects.
5029 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5031 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5032 last chain entry if it starts with the still current label.
5033 (add_location_or_const_value_attribute): Check that
5034 loc_list->first->next is NULL instead of comparing ->first with ->last.
5035 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5036 to add_var_loc_to_decl.
5038 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5039 >= 4 add also address size and segment size fields into CIE header.
5041 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5042 long as address size is the same as sizeof (void *) and
5044 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5045 address size or segment size is unexpected, return DW_EH_PE_omit.
5046 (classify_object_over_fdes): If get_cie_encoding returned
5047 DW_EH_PE_omit, return -1.
5048 (init_object): If classify_object_over_fdes returned -1,
5049 pretend there were no FDEs at all.
5051 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5053 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5054 bswap{si,di}2 using SWI48 mode iterator.
5055 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5056 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5057 set modrm attribute of bswap insn to 0 and remove length attribute.
5058 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5059 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5060 set mode attribute to <MODE> and remove length attribute.
5062 2010-04-20 James E. Wilson <wilson@codesourcery.com>
5064 PR rtl-optimization/43520
5065 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5066 zero available registers.
5068 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5070 * builtins.c (fold_builtin_cproj): Fold more cases.
5072 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5074 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5075 (fold_builtin_1): Fold builtin cproj.
5076 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5077 Use ATTR_CONST_NOTHROW_LIST.
5079 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
5081 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5082 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
5083 ffsi2_no_cmove for !TARGET_CMOVE.
5084 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
5085 (ffssi2): Remove expander.
5086 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5088 (ctz<mode>2): Ditto from ctz{si,di}2.
5089 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5091 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5094 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5096 * dwarf2out.c (AT_linkage_name): Define.
5097 (clone_as_declaration): Handle DW_AT_linkage_name.
5098 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5099 of DW_AT_MIPS_linkage_name.
5100 (move_linkage_attr): Likewise.
5101 (dwarf2out_finish): Likewise.
5103 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
5106 * fold-const.c (fold_comparison): New folding rule.
5108 2010-04-20 Anatoly Sokolov <aesok@post.ru>
5110 * double-int.h (double_int_setbit): Declare.
5111 * double-int.c (double_int_setbit): New function.
5112 * rtl.h (immed_double_int_const): Declare.
5113 * emit-rtl.c (immed_double_int_const): New function.
5114 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5115 and immed_double_int_const functions.
5116 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5117 expand_copysign_bit): (Ditto.).
5118 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5119 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5120 * dojump.c (prefer_and_bit_test): (Ditto.).
5121 * expr.c (convert_modes, reduce_to_bit_field_precision,
5122 const_vector_from_tree): (Ditto.).
5123 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5125 2010-04-20 Jan Hubicka <jh@suse.cz>
5127 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5128 (dump_cgraph_node): Dump new flags.
5129 * cgraph.h (struct cgraph_node): Add flags
5130 reachable_from_other_partition and in_other_partition.
5131 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5132 other partition can not be removed.
5133 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5134 the other partition must be output; silence sanity checking on
5135 leaking functions bodies from other paritition.
5136 * lto-cgraph.c (reachable_from_other_partition_p): New function.
5137 (lto_output_node): Output new flags; do not sanity check that inline
5138 clones are output; drop lto_forced_extern_inline_p code; do not mock
5139 visibility flags at partition boundaries.
5140 (add_node_to): New function.
5141 (output_cgraph): Use it to sort functions so masters appear before
5143 (input_overwrite_node): Input new flags.
5144 * passes.c (ipa_write_summaries): Do not call
5145 lto_new_extern_inline_states.
5146 * lto-section-out.c (forced_extern_inline,
5147 lto_new_extern_inline_states lto_delete_extern_inline_states,
5148 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5149 * lto-streamer.h (lto_new_extern_inline_states,
5150 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5151 lto_forced_extern_inline_p): Kill.
5153 2010-04-20 Richard Guenther <rguenther@suse.de>
5155 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5156 from vars that can have pointers.
5157 (process_constraint): Dump useless constraints.
5159 2010-04-20 Richard Guenther <rguenther@suse.de>
5161 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5162 (dump_sa_points_to_info): Remove asserts.
5163 (init_base_vars): nothing_id isn't an escape point nor does it
5166 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5168 * tree.h (TYPE_REF_IS_RVALUE): Define.
5169 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5170 should_move_die_to_comdat, prune_unused_types_walk): Handle
5171 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5172 (modified_type_die, gen_reference_type_die): Emit
5173 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5174 if TYPE_REF_IS_RVALUE and -gdwarf-4.
5176 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5179 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5180 calls for -fpic -m31 if they have been sibcall optimized.
5182 2010-04-19 James E. Wilson <wilson@codesourcery.com>
5184 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5185 ar.lc fixed and call-used.
5187 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5189 2010-04-19 Jan Hubicka <jh@suse.cz>
5191 * opts.c (decode_options): Disable whpr incompatible passes.
5192 * lto/lto.c (lto_1_to_1_map): Skip clones.
5193 (read_cgraph_and_symbols): Do not mark everything as needed.
5194 (do_whole_program_analysis): Do map only after optimizing;
5195 set proper cgraph_state; use passmanager.
5197 2010-04-19 DJ Delorie <dj@redhat.com>
5199 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5200 POINTER_PLUS_EXPR and fix them.
5202 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
5204 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5205 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5206 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5207 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5208 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5209 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5210 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5211 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5212 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5213 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5214 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5216 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
5218 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5219 (check_cond_move_block): Likewise.
5220 (cond_move_process_if_block): Likewise.
5221 (noce_find_if_block): Improve formatting.
5222 (find_if_header): Pass 0 to memset and tweak conditions.
5223 (cond_exec_find_if_block): Fix long lines and tweak conditions.
5225 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5227 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5231 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5232 with non-local decl doesn't need chain.
5234 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
5236 * ira-color.c (allocno_reload_assign): Avoid accumulating
5237 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5239 2010-04-19 Martin Jambor <mjambor@suse.cz>
5241 * gimple.h (create_tmp_reg): Declare.
5242 * gimplify.c (create_tmp_reg): New function.
5243 (gimplify_return_expr): Use create_tmp_reg.
5244 (gimplify_omp_atomic): Likewise.
5245 (gimple_regimplify_operands): Likewise.
5246 * tree-dfa.c (make_rename_temp): Likewise.
5247 * tree-predcom.c (predcom_tmp_var): Likewise.
5248 (reassociate_to_the_same_stmt): Likewise.
5249 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5250 (get_replaced_param_substitute): Likewise.
5251 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5252 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5253 * tree-ssa-pre.c (get_representative_for): Likewise.
5254 (create_expression_by_pieces): Likewise.
5255 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5256 (create_tailcall_accumulator): Likewise.
5258 2010-04-19 Martin Jambor <mjambor@suse.cz>
5260 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5262 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5264 2010-04-19 Richard Guenther <rguenther@suse.de>
5266 PR tree-optimization/43796
5267 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5268 from SCEV in the lattice.
5269 (vrp_visit_phi_node): Dump change.
5271 2010-04-19 Richard Guenther <rguenther@suse.de>
5273 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5274 * configure: Re-generated.
5276 2010-04-19 Richard Guenther <rguenther@suse.de>
5278 PR tree-optimization/43783
5279 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5280 constant ARRAY_REF operands two and three if possible.
5282 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
5285 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5287 2010-04-19 Jie Zhang <jie@codesourcery.com>
5290 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5292 2010-04-19 Ira Rosen <irar@il.ibm.com>
5294 PR tree-optimization/37027
5295 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5296 and macro to access it.
5297 (vectorizable_reduction): Add argument.
5298 (vect_get_slp_defs): Likewise.
5299 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5300 statements for possible use in SLP.
5301 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5302 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5303 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5305 (vectorizable_reduction): Likewise.
5306 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5308 (vectorizable_type_demotion, vectorizable_type_promotion,
5309 vectorizable_store): Likewise.
5310 (vect_analyze_stmt): Update call to vectorizable_reduction.
5311 (vect_transform_stmt): Likewise.
5312 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5313 (vect_build_slp_tree): Fix indentation. Check that there are no loads
5314 from different interleaving chains in same node.
5315 (vect_slp_rearrange_stmts): New function.
5316 (vect_supported_load_permutation_p): Allow load permutations for
5317 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5318 inside SLP nodes if necessary.
5319 (vect_analyze_slp_instance): Handle reductions.
5320 (vect_analyze_slp): Try to build SLP instances originating from groups
5322 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5323 (vect_get_constant_vectors): Create initial vectors for reductions
5324 according to reduction code. Add new argument.
5325 (vect_get_slp_defs): Add new argument, pass it to
5326 vect_get_constant_vectors.
5327 (vect_schedule_slp_instance): Remove SLP tree root statements.
5329 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5331 * tree.h (ENUM_IS_SCOPED): Define.
5332 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5333 for ENUM_IS_SCOPED enums.
5335 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5337 * fold-const.c (fold_comparison): Use ssizetype.
5338 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5339 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5340 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5341 * tree-object-size.c (compute_object_sizes): Use size_type_node.
5343 * tree.h (initialize_sizetypes): Remove parameter.
5344 (build_common_tree_nodes): Remove second parameter.
5345 * stor-layout.c (initialize_sizetypes): Remove parameter.
5346 Always create an unsigned type.
5347 (set_sizetype): Assert that the passed type is unsigned and simplify.
5348 * tree.c (build_common_tree_nodes): Remove second parameter.
5349 Adjust call to initialize_sizetypes.
5350 * c-decl.c (c_init_decl_processing): Remove second argument in call to
5351 build_common_tree_nodes.
5353 2010-04-18 Matthias Klose <doko@ubuntu.com>
5355 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5357 2010-04-18 Ira Rosen <irar@il.ibm.com>
5359 PR tree-optimization/43771
5360 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5361 load permutation doesn't have gaps.
5363 2010-04-18 Jan Hubicka <jh@suse.cz>
5365 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5366 (sse_prologue_save_insn expander): Use new pattern.
5367 (sse_prologue_save_insn1): New pattern and splitter.
5368 (sse_prologue_save_insn): Update to deal also with 64bit aligned
5370 * i386.c (setup_incoming_varargs_64): Do not compute jump
5372 (ix86_gimplify_va_arg): Update alignment needed.
5373 (ix86_local_alignment): Do not align all local arrays to 128bit.
5375 2010-04-17 Jan Hubicka <jh@suse.cz>
5377 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5379 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5381 * arm.md (negdi2): Remove redundant code to force values into a
5384 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5386 * arm/bpabi.S: Add EABI alignment attributes to objects.
5387 * arm/bpabi-v6m.S: Likewise.
5388 * arm/crti.asm: Likewise.
5389 * arm/crtn.asm: Likewise.
5390 * arm/lib1funcs.asm: Likewise.
5391 * arm/libunwind.S: Likewise.
5393 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5395 * arm-protos.h (tune_params): New structure.
5396 * arm.c (current_tune): New variable.
5397 (arm_constant_limit): Delete.
5398 (struct processors): Add pointer to the tune parameters.
5399 (arm_slowmul_tune): New tuning option.
5400 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5401 (all_cores): Adjust to pick up the tuning model.
5402 (arm_constant_limit): New function.
5403 (arm_override_options): Select the appropriate tuning model. Delete
5404 initialization of arm_const_limit.
5405 (arm_split_constant): Use the new constant-limit model.
5406 (arm_rtx_costs): Pick up the current tuning model.
5407 * arm.md (is_strongarm, is_xscale): Delete.
5408 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5409 for Xscale variant architectures.
5410 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5412 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5414 * config/arm/arm.c (arm_gen_constant): Remove unused variable
5416 (arm_rtx_costs_1): Remove unused variable extra_cost.
5417 (arm_unwind_emit_set): Use variable offset.
5418 (thumb1_output_casesi): Remove unused variable flags.
5420 2010-04-16 Jeff Law <law@redhat.com>
5422 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5423 needing assignment rather than doing a two-phase assignment. Remove
5424 unused variable 'm'.
5426 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5429 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5431 2010-04-16 Doug Kwan <dougkwan@google.com>
5433 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5434 (next_operand_entry_id): New static variable.
5435 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5436 (add_to_ops_vec): Assigned unique ID to operand entry.
5437 (struct oecount_s): New field ID.
5438 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5439 (undistribute_ops_list): Assign unique IDs to oecounts.
5440 (init_reassoc): reset next_operand_entry_id.
5442 2010-04-16 Doug Kwan <dougkwan@google.com>
5444 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5445 missing left parenthesis.
5447 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
5449 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5450 *btdi_rex64 using SWI48 mode iterator.
5451 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5452 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5453 *jcc_btdi_mask_rex64.
5455 2010-04-16 Anatoly Sokolov <aesok@post.ru>
5457 * double-int.h (tree_to_double_int): Convert to macro.
5458 * double-int.c (tree_to_double_int): Remove.
5460 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5463 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5464 with want_address 2 and in case a single element list might be
5465 possible, call it again with want_address 0.
5467 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5469 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5470 case 'W' print operands for HI mode.
5471 * config/h8300/h8300.h (Y0, Y2) : New constraints.
5472 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5473 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5474 * config/h8300/predicate.md (bit_register_indirect_operand): New.
5476 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5478 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5479 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5480 #xx:3 and #xx:4 mode.
5482 * config/h8300/h8300.md (inverted load with HImode dest): Add
5483 support for H8300SX.
5485 * config/h8300/predicate.md (bit_operand): Allow immediate values that
5486 satisfy 'U' constraint.
5488 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5490 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5491 * configure: Regenerate.
5492 * config.in: Regenerate.
5493 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5496 2010-04-16 Richard Guenther <rguenther@suse.de>
5498 * tree.h (struct tree_decl_minimal): Move pt_uid ...
5499 (struct tree_decl_common): ... here.
5500 (DECL_PT_UID): Adjust.
5501 (SET_DECL_PT_UID): Likewise.
5502 (DECL_PT_UID_SET_P): Likewise.
5504 2010-04-16 Richard Guenther <rguenther@suse.de>
5506 PR tree-optimization/43572
5507 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5508 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5509 * tree-flow.h (is_call_clobbered): Remove.
5510 * tree-flow-inline.h (is_call_clobbered): Likewise.
5511 * tree-dfa.c (dump_variable): Do not dump call clobber state.
5512 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5513 (execute_return_slot_opt): Adjust.
5514 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5515 check for call clobbered vars here.
5516 (find_tail_calls): Move tailcall verification to the
5519 2010-04-16 Diego Novillo <dnovillo@google.com>
5521 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5523 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5526 * config/arm/arm.md (cbranchqi4): New pattern.
5527 * config/arm/predicates.md (const0_operand,
5528 cbranchqi4_comparison_operator): New predicates.
5530 2010-04-16 Richard Guenther <rguenther@suse.de>
5532 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5533 (dump_gimple_stmt): Likewise.
5535 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5537 * recog.h (struct recog_data): New field is_operator.
5538 (struct insn_operand_data): New field is_operator.
5539 * recog.c (extract_insn): Set recog_data.is_operator.
5540 * genoutput.c (output_operand_data): Emit code to set the
5542 * reload.c (find_reloads): Use it rather than testing for an
5543 empty constraint string.
5546 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5547 If the previous insn is a cbranchsi4_insn with the same arguments,
5548 omit the compare instruction.
5550 * config/arm/arm.md (addsi3_cbranch): If destination is a high
5551 register, inputs must be low registers and we need a low register
5552 scratch. Handle alternative 2 like alternative 3.
5554 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5556 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5557 don't call get_addr on both. If one expression is a VALUE and
5558 the other a REG, check VALUE's locs if the REG isn't among them.
5560 2010-04-16 Christian Bruel <christian.bruel@st.com>
5562 * config/sh/sh.h (sh_frame_pointer_required): New function.
5563 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5564 (flag_omit_frame_pointer) Set.
5565 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5566 (rounded_frame_size): Adjust size with outgoing_args_size.
5567 (sh_set_return_address): Must return from stack pointer.
5568 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5569 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5570 (ACCUMULATE_OUTGOING_ARGS): Define.
5571 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5572 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5574 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5577 * config/sh/sh.c (sh_legitimize_reload_address): Use
5578 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5579 Remove a unneeded check for offset_base.
5581 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
5583 * configure: Regenerated.
5585 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5587 * config/s390/s390.c (s390_call_save_register_used): Switch back
5588 to HARD_REGNO_NREGS.
5590 2010-04-15 Richard Guenther <rguenther@suse.de>
5592 * alias.c (alias_set_subset_of): Handle alias-set zero
5595 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
5596 Julian Brown <julian@codesourcery.com>
5598 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5599 alternatives according to use of high and low regs.
5600 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5601 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5602 optimizing for size on Thumb-2.
5604 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
5606 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5608 2010-04-15 Richard Guenther <rguenther@suse.de>
5610 * tree-ssa-structalias.c (struct variable_info): Add
5612 (new_var_info): Initialize it.
5613 (dump_constraints): Support printing last added constraints.
5614 (debug_constraints): Adjust.
5615 (dump_constraint_graph): Likewise.
5616 (make_heapvar_for): Check for NULL cfun.
5617 (get_function_part_constraint): New function.
5618 (get_fi_for_callee): Likewise.
5619 (find_func_aliases): Properly implement IPA PTA constraints.
5620 (process_ipa_clobber): New function.
5621 (find_func_clobbers): Likewise.
5622 (insert_into_field_list_sorted): Remove.
5623 (create_function_info_for): Properly allocate vars for IPA mode.
5624 Do not use insert_into_field_list_sorted.
5625 (create_variable_info_for): Properly generate constraints for
5626 global vars in IPA mode.
5627 (dump_solution_for_var): Always dump the solution.
5628 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5629 (find_what_var_points_to): Adjust.
5630 (pt_solution_set): Change.
5631 (pt_solution_ior_into): New function.
5632 (pt_solution_empty_p): Export.
5633 (pt_solution_includes_global): Adjust.
5634 (pt_solution_includes_1): Likewise.
5635 (pt_solutions_intersect_1): Likewise.
5636 (dump_sa_points_to_info): Check some invariants.
5637 (solve_constraints): Move constraint dumping ...
5638 (compute_points_to_sets): ... here.
5639 (ipa_pta_execute): ... and here.
5640 (compute_may_aliases): Do not re-compute points-to info
5641 locally if IPA info is available.
5642 (ipa_escaped_pt): New global var.
5643 (ipa_pta_execute): Properly implement IPA PTA.
5644 * tree-into-ssa.c (dump_decl_set): Support dumping
5645 decls not in referenced-vars.
5646 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5647 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5648 (dump_points_to_solution): Likewise.
5649 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5650 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5651 (remap_gimple_stmt): Reset call clobber/use information if necessary.
5652 (copy_decl_to_var): Copy DECL_PT_UID.
5653 (copy_result_decl_to_var): Likewise.
5654 * tree.c (make_node_stat): Initialize DECL_PT_UID.
5655 (copy_node_stat): Copy it.
5656 * tree.h (DECL_PT_UID): New macro.
5657 (SET_DECL_PT_UID): Likewise.
5658 (DECL_PT_UID_SET_P): Likewise.
5659 (struct tree_decl_minimal): Add pt_uid member.
5660 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5661 (pt_solution_empty_p): Declare.
5662 (pt_solution_set): Adjust.
5663 (ipa_escaped_pt): Declare.
5664 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5665 * gimple-pretty-print.c (pp_points_to_solution): New function.
5666 (dump_gimple_call): Dump call clobber/use information.
5667 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5668 * tree-pass.h (TDF_ALIAS): New dump option.
5669 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5670 * doc/invoke.texi (-fipa-pta): Update documentation.
5672 2010-04-15 Richard Guenther <rguenther@suse.de>
5674 * Makefile.in (OBJS-common): Add gimple-fold.o.
5675 (gimple-fold.o): New rule.
5676 * tree.h (maybe_fold_offset_to_reference,
5677 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5679 * gimple.h: ... here.
5680 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5681 may_propagate_address_into_dereference): Move prototypes ...
5682 * gimple.h: ... here.
5683 * tree-ssa-ccp.c (get_symbol_constant_value,
5684 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5685 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5686 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5687 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5688 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
5689 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
5690 gimplify_and_update_call_from_tree): Move ...
5691 * gimple-fold.c: ... here. New file.
5692 (ccp_fold_builtin): Rename to ...
5693 (gimple_fold_builtin): ... this.
5694 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
5696 2010-04-15 Richard Guenther <rguenther@suse.de>
5698 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
5699 fit_double_type, force_fit_type_double, add_double_with_sign,
5700 neg_double, mul_double_with_sign, lshift_double, rshift_double,
5701 lrotate_double, rrotate_double, div_and_round_double): Move ...
5702 * double-int.c: ... here.
5703 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
5704 add_double, neg_double, mul_double_with_sign, mul_double,
5705 lshift_double, rshift_double, lrotate_double, rrotate_double,
5706 div_and_round_double): Move prototypes ...
5707 * double-int.h: ... here.
5709 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
5712 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
5713 matching constraints to ensure inputs match the output.
5715 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5718 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
5719 in an input-only operand.
5721 2010-04-15 Anatoly Sokolov <aesok@post.ru>
5723 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
5724 (double_int_not, double_int_lshift, double_int_rshift): Declare.
5725 (double_int_negative_p): Convert to static inline function.
5726 * double-int.c (double_int_lshift, double_int_lshift): New functions.
5727 (double_int_negative_p): Remove.
5728 * tree.h (lshift_double, rshift_double):
5729 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
5730 * fold-const.c (fold_convert_const_int_from_real,
5731 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
5732 (lshift_double): Change type of arith argument to bool.
5733 (rshift_double): Change type of arith argument to bool. Correct
5735 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5737 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
5740 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
5741 at the start and end of the then/else blocks, and omit them from the
5743 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
5744 argument; all callers changed. Pass zero to old_insns_match_p instead.
5745 (flow_find_head_matching_sequence): New function.
5746 (old_insns_match_p): Check REG_EH_REGION notes for calls.
5747 * basic-block.h (flow_find_cross_jump,
5748 flow_find_head_matching_sequence): Declare functions.
5750 2010-04-14 Jason Merrill <jason@redhat.com>
5753 * c-common.c (attribute_takes_identifier_p): New fn.
5754 * c-common.h: Declare it.
5756 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5758 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
5760 (*udivmod<mode>4): Ditto.
5762 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5764 * config/i386/i386.md (maxmin_int): Rename code attribute from
5765 maxminiprefix and update all users.
5766 (maxmin_float): Ditto from maxminfprefix.
5767 (logic): Ditto from logicprefix.
5768 (absneg_mnemonic): Ditto from absnegprefix.
5769 * config/i386/mmx.md: Update all users of maxminiprefix,
5770 maxminfprefix and logicprefix for rename.
5771 * config/i386/sse.md: Ditto.
5772 * config/i386/sync.md (sync_<code><mode>): Update for
5775 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5778 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
5779 warnings converted to errors.
5781 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5783 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
5784 used insn_type variable.
5785 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
5786 to avoid set-but-not-used warning.
5788 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5790 * df-core.c (df_ref_debug): Change format string placeholder
5792 * dwarf2asm.c (dw2_asm_output_data_raw,
5793 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
5794 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
5795 * dwarf2out.c (output_cfi, output_cfi_directive,
5796 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
5797 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
5799 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
5800 * print-rtl.c (print_rtx): Ditto.
5802 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5805 * builtins.c (expand_builtin_pow_root): New function to expand pow
5806 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
5807 series of sqrt and cbrt calls under -ffast-math.
5808 (expand_builtin_pow): Call it.
5810 2010-04-14 Michael Matz <matz@suse.de>
5812 PR tree-optimization/42963
5813 * tree-cfg.c (touched_switch_bbs): New static variable.
5814 (group_case_labels_stmt): New function broken out from ...
5815 (group_case_labels): ... here, use the above.
5816 (start_recording_case_labels): Allocate touched_switch_bbs.
5817 (end_recording_case_labels): Deallocate it, call
5818 group_case_labels_stmt.
5819 (gimple_redirect_edge_and_branch): Remember index of affected BB.
5821 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5823 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
5826 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5828 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
5830 2010-04-13 Jan Hubicka <jh@suse.cz>
5832 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
5833 of optimized out static functions.
5834 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
5835 cost computation. Also sanity check for overflows.
5836 (update_caller_keys): Update cgraph_edge_badness call; properly
5837 update fibheap and sanity check that it is up to date.
5838 (add_new_edges_to_heap): Update cgraph_edge_badness.
5839 (cgraph_decide_inlining_of_small_function): Likewise;
5840 add sanity checking that badness in heap is up to date;
5841 improve dumping of reason; Update badness of calls to the
5842 offline copy of function currently inlined; dump badness
5843 of functions not inlined because of unit growth limits.
5845 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5848 * c-common.c (pointer_int_sum): Disregard overflow that occured only
5849 because of sign-extension change when converting to sizetype here...
5850 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
5852 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
5853 the folding to constants. Remove redundant final conversion.
5854 (fold_binary) <associate>: Do not associate if the re-association of
5855 constants alone overflows.
5856 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
5857 to the end of the list.
5858 (multiple_of_p) <COND_EXPR>: New case.
5860 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5862 * opt-functions.awk (opt_sanitized_name): New.
5864 * optc-gen.awk: Use it
5865 * opth-gen.awk: Use it.
5867 2010-04-13 Martin Jambor <mjambor@suse.cz>
5869 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
5870 (sra_modify_assign): Delete stmts loading dead data even if racc has no
5871 children. Call replace_uses_with_default_def_ssa_name to handle
5874 2010-04-13 Michael Matz <matz@suse.de>
5877 * builtins.c (expand_builtin_interclass_mathfn): Also create
5878 a register if the predicate doesn't match.
5880 2010-04-13 Diego Novillo <dnovillo@google.com>
5882 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
5883 * c-pch.c: Include timevar.h.
5884 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
5885 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
5886 * ggc-common.c: Include timevar.h.
5887 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
5888 * timevar.def (TV_PCH_SAVE): Define.
5889 (TV_PCH_CPP_SAVE): Define.
5890 (TV_PCH_PTR_REALLOC): Define.
5891 (TV_PCH_PTR_SORT): Define.
5892 (TV_PCH_RESTORE): Define.
5893 (TV_PCH_CPP_RESTORE): Define.
5895 2010-04-13 Michael Matz <matz@suse.de>
5897 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
5899 (can_reassociate_p): New function.
5900 (break_up_subtract_bb, reassociate_bb): Use it.
5902 2010-04-13 Richard Guenther <rguenther@suse.de>
5905 * builtins.c (c_readstr): Fix assert.
5907 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
5909 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
5910 when generating cltd insn.
5912 (*ashl<mode>3_1): Remove special handling for register operand 2.
5913 (*ashlsi3_1_zext): Ditto.
5914 (*ashlhi3_1): Ditto.
5915 (*ashlhi3_1_lea): Ditto.
5916 (*ashlqi3_1): Ditto.
5917 (*ashlqi3_1_lea): Ditto.
5918 (*<shiftrt_insn><mode>3_1): Ditto.
5919 (*<shiftrt_insn>si3_1_zext): Ditto.
5920 (*<shiftrt_insn>qi3_1_slp): Ditto.
5921 (*<rotate_insn><mode>3_1): Ditto.
5922 (*<rotate_insn>si3_1_zext): Ditto.
5923 (*<rotate_insn>qi3_1_slp): Ditto.
5925 2010-04-13 Richard Guenther <rguenther@suse.de>
5927 * tree-ssa-structalias.c (callused_id): Remove.
5928 (call_stmt_vars): New.
5929 (get_call_vi): Likewise.
5930 (lookup_call_use_vi): Likewise.
5931 (lookup_call_clobber_vi): Likewise.
5932 (get_call_use_vi): Likewise.
5933 (get_call_clobber_vi): Likewise.
5934 (make_transitive_closure_constraints): Likewise.
5935 (handle_const_call): Adjust to do per-call call-used handling.
5936 (handle_pure_call): Likewise.
5937 (find_what_var_points_to): Remove general callused handling.
5938 (init_base_vars): Likewise.
5939 (init_alias_vars): Initialize call_stmt_vars.
5940 (compute_points_to_sets): Process call-used and call-clobbered
5941 vars for call statements.
5942 (delete_points_to_sets): Free call_stmt_vars.
5944 2010-04-13 Richard Guenther <rguenther@suse.de>
5946 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5947 Only add RW dependence for dependence distance zero.
5948 Adjust maximal vectorization factor according to dependences.
5949 Move alignment handling ...
5950 (vect_find_same_alignment_drs): ... here. New function.
5951 (vect_analyze_data_ref_dependences): Adjust.
5952 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
5953 (vect_analyze_data_refs): Adjust minimal vectorization factor
5954 according to data references.
5955 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
5956 dependences before determining the vectorization factor.
5957 Analyze alignment after determining the vectorization factor.
5958 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
5959 dependences before alignment.
5960 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
5962 (vect_analyze_data_refs): Likewise.
5963 (MAX_VECTORIZATION_FACTOR): New define.
5965 2010-04-13 Duncan Sands <baldrick@free.fr>
5967 * except.h (lang_eh_type_covers): Remove.
5968 * except.c (lang_eh_type_covers): Likewise.
5970 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5971 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5973 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
5974 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
5975 UNITS_PER_LONG where it is ABI relevant.
5976 (s390_return_addr_rtx): Likewise.
5977 (s390_back_chain_rtx): Likewise.
5978 (s390_frame_area): Likewise.
5979 (s390_frame_info): Likewise.
5980 (s390_initial_elimination_offset): Likewise.
5981 (save_gprs): Likewise.
5982 (s390_emit_prologue): Likewise.
5983 (s390_emit_epilogue): Likewise.
5984 (s390_function_arg_advance): Likewise.
5985 (s390_function_arg): Likewise.
5986 (s390_va_start): Likewise.
5987 (s390_gimplify_va_arg): Likewise.
5988 (s390_function_profiler): Likewise.
5989 (s390_optimize_prologue): Likewise.
5990 (s390_rtx_costs): Likewise.
5991 (s390_secondary_reload): Likewise.
5992 (s390_promote_function_mode): Likewise.
5993 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
5994 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
5995 registers available.
5996 (s390_unwind_word_mode): New function.
5997 (s390_function_value): Split 64 bit values into register pair if
5998 used as return value.
5999 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6000 function call parameters. Handle parallels.
6001 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6002 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6003 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6004 (s390_expand_setmem): Remove unused variable src_addr.
6005 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6006 deal with 64 bit registers.
6007 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6008 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6009 (UNITS_PER_LONG): New macro.
6010 * libjava/include/s390-signal.h: Define extended ucontext
6011 structure containing the upper halfs of the 64 bit registers.
6013 2010-04-13 Simon Baldwin <simonb@google.com>
6015 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6017 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6019 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6020 rvalue on the RHS if the LHS is of a non-renamable type.
6021 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6023 2010-04-13 Matthias Klose <doko@ubuntu.com>
6025 * gcc.c (cc1_options): Handle -iplugindir before processing
6026 the cc1 spec. Only add -iplugindir once.
6027 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6029 * common.opt (iplugindir): Remove `Separate' property, initialize.
6030 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6032 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6033 (distclean): Remove plugin dir.
6034 * doc/invoke.texi: Document -iplugindir.
6036 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6038 * doc/plugins.texi (Loading Plugins): Document short
6039 -fplugin=foo option.
6040 (Plugin API): Mention default_plugin_dir_name function.
6042 * gcc.c (find_file_spec_function): Add new declaration.
6043 (static_spec_func): Use it for "find-file".
6044 (find_file_spec_function): Add new function.
6045 (cc1_options): Add -iplugindir option if -fplugin* options found.
6047 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6049 * plugin.c (add_new_plugin): Updated comment, and handle short
6051 (default_plugin_dir_name): Added new function.
6053 * common.opt (iplugindir): New option to set the plugin directory.
6055 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6057 * config/i386/i386.md (any_rotate): New code iterator.
6058 (rotate_insn): New code attribute.
6060 (SWIM124): New mode iterator.
6061 (<rotate_insn>ti3): New expander.
6062 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6063 any_rotate code iterator.
6064 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6065 using any_rotate code iterator and SWIM124 mode iterator.
6066 (ix86_rotlti3): New insn_and_split pattern.
6067 (ix86_rotrti3): Ditto.
6068 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6069 ix86_rotl{di,ti}3 patterns.
6070 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6071 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6072 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6073 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6074 code iterator and SWI mode iterator.
6075 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6076 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6078 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6079 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6080 (bswap rotatert splitter): Add splitter.
6081 (bswap splitter): Macroize splitter using any_rotate code iterator.
6082 Add insn predicate to split only for TARGET_USE_XCHGB or when
6083 optimizing function for size.
6085 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6087 * config/pa/pa.c (emit_move_sequence): Remove use of
6088 deleted variable flag_argument_noalias.
6090 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6092 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6094 Add to unsupported targets list.
6095 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6096 sparc*-sun-solaris2.[567]* from target lists.
6097 * configure: Regenerate.
6098 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6100 Remove Solaris 7 patch references.
6101 (Specific, sparc-sun-solaris2.7): Removed.
6102 (sparc-sun-solaris2*): Update Solaris 7 example.
6103 (sparc64-*-solaris2*): Likewise.
6105 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6107 * config.build (alpha*-dec-osf4*): Remove.
6108 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6109 of obsolete configurations.
6110 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6112 * config/alpha/t-osf4: Renamed to ...
6113 * config/alpha/t-osf5: ... this.
6114 * config/alpha/osf.h: Renamed to ...
6115 * config/alpha/osf5.h: ... this.
6116 Merged old osf5.h contents.
6118 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6119 (EXTRA_SPECS): Removed.
6120 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6121 reflect removal of Tru64 UNIX V4.0/V5.0 support.
6124 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6126 * doc/contrib.texi (Contributors, Rainer Orth): Update.
6128 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
6131 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6132 __thiscall convention.
6134 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6136 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6138 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6140 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6142 * function.c (assign_parms_initialize_all): Add unused attribute
6145 2010-04-12 Richard Guenther <rguenther@suse.de>
6147 * gsstruct.def (GSS_CALL): New.
6148 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6149 * gimple.h: Include tree-ssa-alias.h.
6150 (struct gimple_statement_call): New.
6151 (union gimple_statement_struct_d): Add gimple_call member.
6152 (gimple_call_reset_alias_info): Declare.
6153 (gimple_call_use_set): New function.
6154 (gimple_call_clobber_set): Likewise.
6155 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6156 * gimple.c (gimple_call_reset_alias_info): New function.
6157 (gimple_build_call_1): Call it.
6158 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6159 * tree-inline.c (remap_gimple_stmt): Likewise.
6160 (expand_call_inline): Remove callused handling.
6161 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6162 * tree-dfa.c (dump_variable): Likewise.
6163 * tree-parloops.c (parallelize_loops): Likewise.
6164 * tree-ssa.c (init_tree_ssa): Likewise.
6165 (delete_tree_ssa): Likewise.
6166 * tree-flow-inline.h (is_call_used): Remove.
6167 * tree-flow.h (struct gimple_df): Remove callused member.
6168 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6169 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6170 (ref_maybe_used_by_call_p_1): Simplify.
6171 (call_may_clobber_ref_p_1): Likewise.
6172 * tree-ssa-structalias.c (compute_points_to_sets): Set
6173 the call stmt used and clobbered sets.
6174 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6175 (find_tail_calls): Verify the tail call.
6177 2010-04-12 Richard Guenther <rguenther@suse.de>
6179 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6180 single-iteration always-inline inlining.
6181 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6182 (cgraph_decide_inlining): Do not handle always-inline specially.
6183 (try_inline): Remove always-inline cycle detection special case.
6184 Do not recurse on always-inlines.
6185 (cgraph_early_inlining): Do not iterate if not optimizing.
6186 (cgraph_gate_early_inlining): remove.
6187 (pass_early_inline): Run unconditionally.
6188 (gate_cgraph_decide_inlining): New function.
6189 (pass_ipa_inline): Use it. Do not run the IPA inliner if
6190 not inlining or optimizing.
6191 (cgraph_decide_inlining_of_small_functions): Also consider
6192 always-inline functions.
6193 (cgraph_default_inline_p): Return true for nodes which should
6194 disregard inline limits.
6195 (estimate_function_body_sizes): Assume zero size and time for
6196 nodes which are marked as disregarding inline limits.
6197 (cgraph_decide_recursive_inlining): Do not perform recursive
6198 inlining on always-inline nodes.
6200 2010-04-12 Jakub Jelinek <jakub@redhat.com>
6203 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6204 for exprs satisfying handled_component_p.
6206 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6208 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6209 non-constant aggregate elements.
6211 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6212 is a real initialization.
6214 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
6217 * c-decl.c (start_function): Move forward check for nested function.
6219 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6221 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6222 * config/sh/sh.c: Include reload.h.
6223 (sh_legitimize_reload_address): New.
6224 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6225 sh_legitimize_reload_address.
6227 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6229 * config/sh/sh.md (*movqi_pop): New insn pattern.
6230 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6232 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6234 * config/i386/i386.md (any_shiftrt): New code iterator.
6235 (shiftrt_insn): New code attribute.
6237 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6238 using any_shiftrt code iterator.
6239 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6240 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6241 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6242 pattern from corresponding peephole2 patterns.
6243 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6244 using any_shiftrt code iterator.
6245 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6246 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6247 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6248 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6249 *{ashr,lshr}<mode>3_cmp_zext.
6250 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6252 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6254 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6256 (*lshr<mode>3_cconly): Ditto.
6258 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6260 * config/i386/i386.md (lshr<mode>3): Macroize expander from
6261 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6262 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6263 pattern from *lshr{di,ti}3_1 and corresponding splitters using
6265 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6266 from corresponding peephole2 patterns.
6267 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6268 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6269 and *lshrdi3_1_rex64 using SWI mode iterator.
6270 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6271 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6272 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6273 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6274 and *lshrdi3_cmp_rex64 using SWI mode iterator.
6275 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6276 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6277 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6278 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6281 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
6283 * config/i386/i386.md (ashr<mode>3): Macroize expander from
6284 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6285 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6286 pattern from *ashr{di,ti}3_1 and corresponding splitters using
6288 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6289 from corresponding peephole2 patterns.
6290 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6291 (ashrsi3_cvt): Rename from ashrsi3_31.
6292 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6293 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6294 and x86_64_shift_adj_3 using SWI48 mode iterator.
6295 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6296 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6297 and *ashrdi3_1_rex64 using SWI mode iterator.
6298 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6299 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6300 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6301 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6302 and *ashrdi3_cmp_rex64 using SWI mode iterator.
6303 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6304 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6305 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6306 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6308 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6309 * config/i386/i386.c (ix86_split_ashr): Update for renamed
6310 x86_shift<mode>_adj_3 expanders.
6312 2010-04-10 Wei Guozhi <carrot@google.com>
6315 * config/arm/arm.c (arm_pic_static_addr): New function.
6316 (legitimize_pic_address): Call arm_pic_static_addr when it detects
6318 (arm_output_addr_const_extra): Output expression for new pattern.
6319 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6321 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
6323 * ira-costs.c (record_reg_classes): Ignore alternatives that are
6326 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6327 * web.c: Include "insn-config.h" and "recog.h".
6328 (union_match_dups): New function.
6329 (web_main): Call it.
6330 (union_defs): Don't try to recognize match_dups.
6332 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6333 if doing so would replace the entire pattern.
6335 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6339 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6340 and splitter pattern. Change splitter operand 1 predicate to
6343 2010-04-09 Martin Jambor <mjambor@suse.cz>
6345 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6346 lattices are addresses of CONST_DECLs with the same initial value.
6347 (ipcp_print_all_lattices): Print values of CONST_DECLs.
6348 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6350 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6351 Bernd Schmidt <bernds@codesourcery.com>
6353 * loop-invariant.c (replace_uses): New static function.
6354 (move_invariant_reg): Use it to ensure we can replace the uses.
6356 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6358 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6360 (picochip_override_options): Enable section anchors only above -O1.
6361 (picochip_reorg): Fixed a couple of build warnings.
6363 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6365 * configure.ac (plugin -rdynamic test): Log result.
6366 * configure: Regenerate.
6367 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6368 (RDYNAMIC_SPEC): Define.
6369 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6371 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6373 * configure.ac: Determine Sun ld version numbers.
6374 (comdat_group): Restrict GNU ld version checks to gld.
6375 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6376 (enable_comdat): Support --enable-comdat.
6377 * configure: Regenerate.
6378 * doc/install.texi (Configuration): Document --enable-comdat.
6380 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6382 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
6383 * config/sol2-gld.h: ... here.
6384 * config.gcc (sparc*-*-solaris2*): Reflect this.
6385 (i[34567]86-*-solaris2*): Use it.
6387 2010-04-09 Steve Ellcey <sje@cup.hp.com>
6389 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6391 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6393 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6396 * diagnostic.c (diagnostic_initialize): Initialize
6397 some_warnings_are_errors.
6398 (diagnostic_finish): New.
6399 (diagnostic_action_after_output): Call it before exiting.
6400 (diagnostic_report_diagnostic): Do not print message here. Set
6401 some_warnings_are_errors.
6402 * diagnostic.h (diagnostic_context): Delete
6403 issue_warnings_are_errors_message. Add some_warnings_are_errors.
6404 (diagnostic_finish): Declare.
6405 * toplev.c (toplev_main): Call it before exit.
6407 2010-04-09 Jason Merrill <jason@redhat.com>
6410 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6411 for incomplete type.
6414 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6415 based on a warning flag.
6417 2010-04-09 Richard Guenther <rguenther@suse.de>
6419 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6421 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
6424 * varasm.c (default_assemble_visibility): Wrap vars that are
6425 set, but unused, by targets without GAS.
6426 * config/rs6000/rs6000.c (paired_emit_vector_compare):
6427 Remove set, but unused, vars.
6428 (rs6000_legitimize_tls_address): Likewise.
6429 (altivec_expand_dst_builtin): Likewise.
6430 * config/darwin.c (machopic_classify_symbol): Likewise.
6431 (machopic_indirection_name): Likewise.
6433 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6435 * config/i386/i386.md (DWI): New mode iterator.
6436 (S): New mode attribute.
6437 (shift_operand): Ditto.
6438 (shift_immediate_operand): Ditto.
6439 (ashl_input_operand): Ditto.
6440 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6441 using SDWIM mode iterator.
6442 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
6443 pattern from *ashl{di,ti}3_1 and corresponding splitters using
6445 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6446 from corresponding peephole2 patterns.
6447 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6448 and x86_64_shift_adj_1 using SWI48 mode iterator.
6449 (x86_shift<mode>_adj_2): Ditto.
6450 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6451 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6452 using SWI48 mode iterator.
6453 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6454 *ashldi3_cmp_rex64 using SWI mode iterator.
6455 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6456 *ashldi3_cconly_rex64 using SWI mode iterator.
6457 * config/i386/i386.c (ix86_split_ashl): Update for renamed
6458 x86_shift<mode>_adj_{1,2}.
6459 (ix86_split_ashr): Ditto.
6460 (ix86_split_lshr): Ditto.
6462 2010-04-09 Richard Guenther <rguenther@suse.de>
6464 * target.h (builtin_conversion): Pass in input and output types.
6465 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6466 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6467 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6468 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6470 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6472 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6474 2010-04-09 Richard Guenther <rguenther@suse.de>
6477 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6479 2010-04-09 Richard Guenther <rguenther@suse.de>
6481 * tree-vectorizer.h (struct _stmt_vec_info): Document
6482 that vectype is the type of the LHS.
6483 (supportable_widening_operation, supportable_narrowing_operation):
6484 Get both input and output vector types as arguments.
6485 (vect_is_simple_use_1): Declare.
6486 (get_same_sized_vectype): Likewise.
6487 * tree-vect-loop.c (vect_determine_vectorization_factor):
6488 Set STMT_VINFO_VECTYPE to the vector type of the def.
6489 (vectorizable_reduction): Adjust.
6490 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6491 Adjust. Specify the output vector type.
6492 (vect_pattern_recog_1): Adjust.
6493 * tree-vect-stmts.c (get_same_sized_vectype): New function.
6494 (vectorizable_call): Adjust.
6495 (vectorizable_conversion): Likewise.
6496 (vectorizable_operation): Likewise.
6497 (vectorizable_type_demotion): Likewise.
6498 (vectorizable_type_promotion): Likewise.
6499 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6501 (vect_is_simple_use_1): New function.
6502 (supportable_widening_operation): Get both input and output
6504 (supportable_narrowing_operation): Likewise.
6505 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6507 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
6509 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6510 __thiscall and _thiscall as predefined macros.
6511 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6512 thiscall attribute handling.
6513 (ix86_comp_type_attributes): Likewise.
6514 (ix86_function_regparm): Likewise.
6515 (ix86_return_pops_args): Likewise.
6516 (init_cumulative_args): Likewise.
6517 (find_drap_reg): Likewise.
6518 (ix86_static_chain): Likewise.
6519 (x86_this_parameter): Likewise.
6520 (x86_output_mi_thunk): Likewise.
6521 (ix86_attribute_table): Add description for thiscall attribute.
6522 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6523 * doc/extend.texi: Add documentation for thiscall.
6525 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6528 * c.opt (Wint-to-pointer-cast): Available in C++.
6529 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6531 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
6533 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6534 * calls.c (expand_call): Pass the function type to aggregate_value_p.
6535 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6536 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
6537 function type instead. Reorder and simplify checks.
6539 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6541 2010-04-08 Jing Yu <jingyu@google.com>
6542 Zdenek Dvorak <ook@ucw.cz>
6544 PR tree-optimization/42720
6545 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6546 loop unswitch conditions here from ...
6547 (tree_unswitch_single_loop): ... here.
6549 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6551 * tree-if-conv.c: Fix comments and simplify logic.
6553 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6555 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6556 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
6557 (main_tree_if_conversion): Update call to tree_if_conversion.
6559 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6562 * doc/invoke.texi (-b,-V): Delete.
6563 * doc/tm.texi: Do not mention -b.
6564 * gcc.c (display_help): Delete -b and -V.
6565 (process_command): Delete -b and -V.
6566 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6568 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
6569 Wolfgang Gellerich <gellerich@de.ibm.com>
6571 Implement target hook for loop unrolling
6572 * target.h (loop_unroll_adjust): Add a new target hook function.
6573 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6574 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6575 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6576 (s390_loop_unroll_adjust): Implement the new target hook for s390.
6577 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6579 (decide_unroll_stupid): Likewise.
6581 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6584 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6586 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6588 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6589 (Specific, *-*-solaris2*): Likewise.
6590 Don't prefer Sun as over GNU as.
6592 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
6594 * config/s390/s390.c (override_options): Adjust the z10 defaults
6595 for max-unroll-times, max-completely-peeled-insns
6596 and max-completely-peel-times.
6598 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6600 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6601 instructions for z10.
6602 (s390_expand_setmem): Likewise.
6603 (s390_expand_cmpmem): Likewise.
6605 2010-04-08 Richard Guenther <rguenther@suse.de>
6607 PR tree-optimization/43679
6608 * tree-ssa-pre.c (eliminate): Only propagate copies.
6610 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6613 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
6614 set but not used variable warning.
6616 2010-04-08 Wei Guozhi <carrot@google.com>
6619 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6620 (arm_size_rtx_costs): Call the new function when optimized for size.
6622 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6625 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6626 op0 is not a MEM, just return NULL instead of assertion
6628 (discover_nonconstant_array_refs): Don't walk debug stmts.
6630 2010-04-08 Doug Kwan <dougkwan@google.com>
6632 * configure.ac: Recognize gold and do not use its version number
6633 to test ld features.
6634 * configure: Regenerate.
6636 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
6639 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6640 (negate_value): Move code to push elements to broken_up_substracts ...
6641 (eliminate_plus_minus_pair): ... here. Push operands that have no
6642 negative pair to plus_negates.
6643 (repropagate_negates, init_reassoc, fini_reassoc): Update.
6645 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6647 * doc/install.texi (Configuration): Move description of
6648 --enable-lto, --with-libelf*, --enable-gold from Java section to
6651 * doc/generic.texi (Working with declarations)
6652 (Function Properties, C and C++ Trees): Fix typos.
6653 * doc/sourcebuild.texi (Top Level): Likewise.
6655 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6658 * tree.h (DECL_READ_P): Define.
6659 (struct tree_decl_common): Add decl_read_flag.
6660 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6661 a set but not used warning.
6662 (merge_decls): Merge DECL_READ_P flag.
6663 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6664 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6665 * c-common.c (handle_used_attribute, handle_unused_attribute):
6667 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6669 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6671 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6672 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6673 c_parser_binary_expression, c_parser_cast_expression,
6674 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6675 Call default_function_array_read_conversion instead of
6676 default_function_array_conversion where needed.
6677 (c_parser_unary_expression, c_parser_conditional_expression,
6678 c_parser_postfix_expression_after_primary, c_parser_initelt):
6679 Likewise. Call mark_exp_read where needed.
6680 (c_parser_statement_after_labels, c_parser_asm_operands,
6681 c_parser_typeof_specifier, c_parser_sizeof_expression,
6682 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
6684 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6686 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6687 (warn_unused_but_set_parameter): Default to warn_unused
6689 * doc/invoke.texi: Document -Wunused-but-set-variable and
6690 -Wunused-but-set-parameter.
6692 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
6693 used count variable.
6694 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
6695 when operandN variables aren't used in the body of the expander
6697 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
6698 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
6699 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
6700 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
6701 FOR_EACH_IMM_USE_ON_STMT): Likewise.
6702 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
6703 * tree.c (PROCESS_ARG): Likewise.
6705 2010-04-07 Simon Baldwin <simonb@google.com>
6707 * diagnostic.h (diagnostic_override_option_index): New macro to
6708 set a diagnostic's option_index.
6709 * c-tree.h (c_cpp_error): Add warning reason argument.
6710 * opts.c (_warning_as_error_callback): New.
6711 (register_warning_as_error_callback): Store callback for
6712 warnings enabled via enable_warning_as_error.
6713 (enable_warning_as_error): Call callback, minor code tidy.
6714 * opts.h (register_warning_as_error_callback): Declare.
6715 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
6716 response to -Werror=.
6717 (c_common_init_options): Register warning_as_error_callback in opts.c.
6718 * common.opt: Add -Wno-cpp option.
6719 * c-common.c (struct reason_option_codes_t): Map cpp warning
6720 reason codes to gcc option indexes.
6721 * (c_option_controlling_cpp_error): New function, lookup the gcc
6722 option index for a cpp warning reason code.
6723 * (c_cpp_error): Add warning reason argument, call
6724 c_option_controlling_cpp_error for diagnostic_override_option_index.
6725 * doc/invoke.texi: Document -Wno-cpp.
6727 2010-04-07 Richard Guenther <rguenther@suse.de>
6729 * ipa-reference.c (mark_load): Use get_base_address.
6730 (mark_store): Likewise.
6732 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
6733 inserting GIMPLE_NOPs into the IL.
6734 * tree-ssa-structalias.c (get_constraint_for_component_ref):
6735 Explicitly strip handled components and indirect references.
6737 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
6738 folding address expressions.
6739 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
6740 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
6741 operand_equal_p to compare decls.
6742 (ptr_deref_may_alias_decl_p): Likewise.
6743 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
6744 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
6745 Handle reversed comparison ops.
6746 * tree-sra.c (asm_visit_addr): Use get_base_address.
6747 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
6748 * ipa-reference.c (mark_address): Use get_base_address.
6750 2010-04-07 Richard Guenther <rguenther@suse.de>
6752 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
6753 Propagate constants everywhere.
6755 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6758 * tree.c (MAX_INT_CACHED_PREC): Define.
6759 (nonstandard_integer_type_cache): New array.
6760 (build_nonstandard_integer_type): Cache results for precision
6761 <= MAX_INT_CACHED_PREC.
6763 2010-04-07 Richard Guenther <rguenther@suse.de>
6765 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
6766 -fargument-noalias-global, -fargument-noalias-anything): Remove.
6767 * common.opt: Likewise.
6768 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
6769 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
6770 (nonoverlapping_memrefs_p): Likewise.
6771 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6772 * opts.c (common_handle_option): Handle OPT_fargument_alias,
6773 OPT_fargument_noalias, OPT_fargument_noalias_anything and
6774 OPT_fargument_noalias_global for backward compatibility.
6776 2010-04-07 Richard Guenther <rguenther@suse.de>
6778 PR tree-optimization/43270
6779 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
6780 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
6781 * tree-ssa-pre.c (phi_translate_1): Adjust.
6782 (fully_constant_expression): Split out vn_reference handling to ...
6783 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
6784 Fold reads from constant strings.
6785 (vn_reference_lookup): Handle fully constant references.
6786 (vn_reference_lookup_pieces): Likewise.
6787 * Makefile.in (expmed.o-warn): Add -Wno-error.
6789 2010-04-07 Martin Jambor <mjambor@suse.cz>
6791 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
6793 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
6796 * gcc.c: Add -static-libstdc++ to list of recognized options.
6798 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6800 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
6802 2010-04-07 Richard Guenther <rguenther@suse.de>
6805 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
6806 bases build simple mem attributes to retain points-to information.
6808 2010-04-07 Richard Guenther <rguenther@suse.de>
6811 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
6812 preserve points-to related information.
6814 2010-04-07 Richard Guenther <rguenther@suse.de>
6817 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
6818 discard plain indirect references.
6819 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
6820 * tree.c (tree_nop_conversion): Likewise.
6822 2010-04-07 Dodji Seketeli <dodji@redhat.com>
6825 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
6827 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
6829 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
6830 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
6832 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6834 * tree-if-conv.c: Fix indentation and comments.
6836 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6838 * tree-if-conv.c: Sort static functions in topological order.
6840 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6842 * tree-if-conv.c: Fix indentation and comments.
6844 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6847 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
6848 lang_hooks.types.type_for_size instead of
6849 build_nonstandard_integer_type.
6850 When converting an unsigned type to signed, double its precision.
6851 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
6852 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
6853 (graphite_create_new_loop_guard): When ub + 1 wraps around,
6856 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6859 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6860 POINTER_PLUS_EXPR for pointer types.
6862 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6865 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
6866 * graphite-clast-to-gimple.c: Include langhooks.h.
6867 (max_signed_precision_type): New.
6868 (max_precision_type): Takes two types as arguments.
6869 (precision_for_value): New.
6870 (precision_for_interval): New.
6871 (gcc_type_for_interval): New.
6872 (gcc_type_for_value): New.
6873 (gcc_type_for_clast_term): New.
6874 (gcc_type_for_clast_red): New.
6875 (gcc_type_for_clast_bin): New.
6876 (gcc_type_for_clast_expr): Split up into several functions.
6877 (gcc_type_for_clast_eq): Rewritten.
6878 (compute_bounds_for_level): New.
6879 (compute_type_for_level_1): New.
6880 (compute_type_for_level): New.
6881 (gcc_type_for_cloog_iv): Removed.
6882 (gcc_type_for_iv_of_clast_loop): Rewritten.
6883 (graphite_create_new_loop): Compute the lower and upper bound types
6884 with gcc_type_for_clast_expr.
6885 (graphite_create_new_loop_guard): Same.
6886 (find_cloog_iv_in_expr): Removed.
6887 (compute_cloog_iv_types_1): Removed.
6888 (compute_cloog_iv_types): Removed.
6889 (gloog): Do not call compute_cloog_iv_types.
6890 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
6892 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
6893 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
6894 (GBB_CLOOG_IV_TYPES): Removed.
6896 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6898 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
6899 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
6900 (detect_commutative_reduction): Same.
6902 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6904 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
6905 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
6907 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
6908 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
6909 (rewrite_commutative_reductions_out_of_ssa): Same.
6910 * passes.c (execute_function_todo): Call verify_ssa for every pass
6911 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
6912 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
6913 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
6914 with an extra argument.
6915 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
6916 verify_ssa only when the extra argument is true.
6917 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
6918 with an extra argument.
6919 (tree_transform_and_unroll_loop): Same.
6921 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6923 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
6924 for all the passes of the LNO having LOOP_CLOSED_SSA.
6925 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
6926 * tree-loop-distribution.c (pass_loop_distribution): Same.
6927 * tree-pass.h (TODO_verify_loops): Removed.
6928 * tree-ssa-loop.c (pass_tree_loop_init): Same.
6930 (pass_tree_unswitch): Same.
6931 (pass_predcom): Same.
6932 (pass_vectorize): Same.
6933 (pass_linear_transform): Same.
6934 (pass_graphite_transforms): Same.
6935 (pass_iv_canon): Same.
6936 (pass_complete_unroll): Same.
6937 (pass_complete_unrolli): Same.
6938 (pass_parallelize_loops): Same.
6939 (pass_loop_prefetch): Same.
6940 (pass_iv_optimize): Same.
6942 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
6945 * passes.c (init_optimization_passes): Move pass_lim before
6946 pass_copy_prop and pass_dce_loop.
6948 2010-04-06 Jakub Jelinek <jakub@redhat.com>
6951 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
6952 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
6953 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
6954 MULTI_* defines for 4 argument vpermil2p* builtins.
6956 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
6958 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
6959 * config/i386/i386.c (x86_maybe_negate_const_int): New.
6960 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
6961 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
6962 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
6963 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
6964 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
6965 Use x86_maybe_negate_const_int to output insn mnemonic.
6966 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
6967 check from instruction predicate. Update comments.
6968 * config/i386/sync.md (sync_add<mode>): Use
6969 x86_maybe_negate_const_int to output insn mnemonic.
6971 2010-04-06 Jan Hubicka <jh@suse.cz>
6973 PR tree-optimization/42906
6974 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
6975 IGNORE_SELF argument. Set visited_control_parents for fully
6977 (find_obviously_necessary_stmts): Update call of
6978 mark_control_dependent_edges_necessary.
6979 (propagate_necessity): Likewise. Handle PHI edges more curefully.
6981 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
6983 * config/i386/i386.md: Remove comment about 'e' and 'E'
6986 2010-04-06 Richard Guenther <rguenther@suse.de>
6988 PR tree-optimization/43627
6989 * tree-vrp.c (extract_range_from_unary_expr): Widenings
6990 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
6993 2010-04-06 Jakub Jelinek <jakub@redhat.com>
6995 * BASE-VER: Change to 4.6.0.
6998 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7001 2010-04-06 Richard Guenther <rguenther@suse.de>
7004 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7006 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7008 * doc/invoke.texi (Optimize Options): Document that LTO
7009 won't remove object access purely due to incompatible
7012 2010-04-04 Matthias Klose <doko@ubuntu.com>
7014 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7015 Initialize variable.
7017 2010-04-03 Richard Guenther <rguenther@suse.de>
7020 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7021 require a non-NULL MEM_OFFSET.
7023 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7025 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7026 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7027 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7028 config/alpha/predicates.md, config/arm/arm.md,
7029 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7030 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7031 config/darwin9.h, config/darwin.c, config/darwin.h,
7032 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7033 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7034 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7035 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7036 config/mips/mips.md, config/mn10300/mn10300.c,
7037 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7038 config/rs6000/aix.h, config/rs6000/dfp.md,
7039 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7040 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7041 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7042 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7043 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7044 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7045 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7046 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7047 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7048 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7049 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7050 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7051 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7052 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7053 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7054 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7055 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7056 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7057 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7058 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7059 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7060 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7061 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7062 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7063 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7064 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7065 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7066 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7067 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7068 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7069 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7070 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7071 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7072 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7073 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7074 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7076 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7079 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7080 * aclocal.m4: Regenerate.
7082 2010-04-02 Richard Guenther <rguenther@suse.de>
7084 PR tree-optimization/43629
7085 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7086 if we have seen a constant value.
7088 2010-04-02 Joseph Myers <joseph@codesourcery.com>
7090 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7092 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
7095 * arm.c (legitimize_tls_address): Adjust call to
7096 gen_tls_load_dot_plus_four.
7097 (arm_note_pic_base): New function.
7098 (arm_cannot_copy_insn_p): Use it.
7099 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7102 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7107 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7109 * Makefile.in ($(out_object_file)): Depend on
7110 gt-$(basename $(notdir $(out_file))).h.
7112 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
7114 * config.gcc (lm32-*-rtems*): Add t-lm32.
7116 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
7118 * config.gcc: Add lm32-*-rtems*.
7119 * config/lm32/rtems.h: New file.
7121 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
7124 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7126 2010-04-01 Jakub Jelinek <jakub@redhat.com>
7128 * dwarf2out.c (output_compilation_unit_header): For
7129 -gdwarf-4 use version 4 instead of version 3.
7130 (output_line_info): For version 4 and above emit additional
7131 maximum ops per insn header field.
7132 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7134 * dwarf2out.c (is_c_family, is_java): Remove.
7135 (lower_bound_default): New function.
7136 (add_bound_info, gen_descr_array_type_die): Use it.
7138 2010-04-01 Dodji Seketeli <dodji@redhat.com>
7141 * dwarf2out.c (gen_variable_die): Allow debug info for variable
7142 re-declaration when it happens in a function.
7144 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
7146 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7147 (cgraph_remove_function_insertion_hook): Same.
7148 (cgraph_call_function_insertion_hooks): Same.
7150 2010-04-01 Richard Guenther <rguenther@suse.de>
7153 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7154 and TREE_THIS_VOLATILE.
7155 (copy_ref_info): Likewise.
7156 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7157 * tree.c (build6_stat): Ignore side-effects of all but arg5
7158 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
7161 2010-04-01 Richard Guenther <rguenther@suse.de>
7163 PR tree-optimization/43607
7164 * ipa-type-escape.c (check_call): Do not access non-existing
7167 2010-04-01 Richard Guenther <rguenther@suse.de>
7171 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7172 Jack Howarth <howarth@bromo.med.uc.edu>
7174 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7177 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7179 * doc/install.texi (Prerequisites): Document libelf usability on
7180 IRIX 5/6 and Solaris 2.
7181 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7182 Update GNU as, GNU ld requirements.
7183 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7184 Document Sun Studio compiler download.
7185 Update and simplify as, ld recommendations.
7186 (Specific, *-*-solaris2.7): Note obsoletion, removal.
7188 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7190 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7191 with_tune_32 to pentium4.
7193 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
7195 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7197 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7199 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7200 obsoletion, removal.
7202 Document GNU as requirement.
7203 Update configure requirements.
7204 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7205 Recomment IRIX 6.5.18+.
7206 Document IDF/IDL requirement.
7207 Document GNU as requirement.
7208 Document GNU ld bootstrap failure.
7209 Remove freeware.sgi.com reference.
7211 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7213 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7214 UNIX V4.0, V5.0 obsoletion, removal.
7215 Remove --with-gc=simple reference.
7216 Update VM requirements during bootstrap.
7217 Remove -oldas bootstrap description.
7218 Update binutils reference.
7219 Remove comparison failure note.
7221 2010-03-31 Richard Guenther <rguenther@suse.de>
7222 Zdenek Dvorak <ook@ucw.cz>
7223 Sebastian Pop <sebastian.pop@amd.com>
7226 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7227 with multiple arguments.
7228 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7230 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7232 * graphite-dependences.c (print_pddr): Call print_pdr with an
7234 * graphite-poly.c (debug_pdr): Add an extra argument for the
7237 (print_pbb_domain): Same.
7239 (print_scop_context): Same.
7241 (print_cloog): Same.
7242 (debug_pbb_domain): Same.
7246 (debug_scop_context): Same.
7248 (debug_cloog): Same.
7249 (print_scop_params): Same.
7250 (debug_scop_params): Same.
7251 (print_iteration_domain): Same.
7252 (print_iteration_domains): Same.
7253 (debug_iteration_domain): Same.
7254 (debug_iteration_domains): Same.
7255 (print_scattering_function): Same.
7256 (print_scattering_functions): Same.
7257 (debug_scattering_function): Same.
7258 (debug_scattering_functions): Same.
7259 * graphite-poly.h (debug_pdr): Update declaration.
7261 (print_pbb_domain): Same.
7263 (print_scop_context): Same.
7265 (print_cloog): Same.
7266 (debug_pbb_domain): Same.
7270 (debug_scop_context): Same.
7272 (debug_cloog): Same.
7273 (print_scop_params): Same.
7274 (debug_scop_params): Same.
7275 (print_iteration_domain): Same.
7276 (print_iteration_domains): Same.
7277 (debug_iteration_domain): Same.
7278 (debug_iteration_domains): Same.
7279 (print_scattering_function): Same.
7280 (print_scattering_functions): Same.
7281 (debug_scattering_function): Same.
7282 (debug_scattering_functions): Same.
7284 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7286 * graphite-poly.c (print_scattering_function_1): New.
7287 (print_scattering_function): Call it.
7288 (print_scop_params): Remove spaces at the end of lines.
7291 * graphite-poly.h (print_cloog): Declared.
7292 (debug_cloog): Declared.
7294 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7296 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7298 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7299 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7300 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7301 to switch between adding the IV bump in loop->latch or in loop->header.
7303 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7305 * graphite-poly.c (print_scattering_function): Pretty print following
7308 (print_pbb_domain): Same.
7309 (dump_gbb_cases): Same.
7310 (dump_gbb_conditions): Same.
7313 (print_scop_params): Same.
7314 (print_scop_context): Same.
7316 (print_pbb_body): New.
7317 (lst_indent_to): New.
7318 (print_lst): Start new lines with a #.
7319 * graphite-poly.h (pbb_bb): New.
7320 (pbb_index): Use pbb_bb.
7321 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7323 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7325 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7327 * dwarf2out.c (size_of_die): For -gdwarf-4 use
7328 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7329 and 0 instead of 1 for dw_val_class_flag.
7330 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7331 dw_val_class_range_list, dw_val_class_loc_list,
7332 dw_val_class_lineptr and dw_val_class_macptr, use
7333 DW_FORM_flag_present for dw_val_class_flag and
7334 DW_FORM_exprloc for dw_val_class_loc.
7335 (output_die): For -gdwarf-4 print dw_val_class_loc
7336 size as uleb128 instead of 1 or 2 bytes and don't print
7337 anything for dw_val_class_flag.
7339 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7340 instead of cselib_lookup following by tweaking locs->setting_insn.
7343 * cselib.c (cselib_process_insn): Clear cselib_current_insn
7344 even before returning from label, setjmp call or volatile asm
7347 2010-03-31 Richard Guenther <rguenther@suse.de>
7350 * cgraphunit.c (cgraph_output_in_order): Do not allocate
7351 temporary data on stack.
7353 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7355 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7356 (PUSHSECTION_ASM_OP): Remove.
7357 (POPSECTION_ASM_OP): Remove.
7358 (PUSHSECTION_FORMAT): Remove.
7359 * config/sol2.h (PUSHSECTION_FORMAT): Define.
7360 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7361 * config/sol2.c (solaris_output_init_fini): Use it.
7363 2010-03-31 Jie Zhang <jie@codesourcery.com>
7366 * opt-functions.awk (var_type_struct): Use signed char type
7367 for simple variables.
7369 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7371 * config/sol2.c: Include output.h.
7372 (solaris_assemble_visibility): New function.
7373 * config/t-sol2 (sol2.o): Add output.h dependency.
7374 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7375 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7378 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7381 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7382 V2SImode or XFmode on PRE_DEC.
7385 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7388 2010-03-31 Jie Zhang <jie@codesourcery.com>
7391 * reload.h (caller_save_initialized_p): Declare.
7392 * toplev.c (backend_init_target): Don't call
7393 init_caller_save but set caller_save_initialized_p to false.
7394 * caller-save.c (caller_save_initialized_p): Define.
7395 (init_caller_save): Check caller_save_initialized_p.
7396 * ira.c (ira): Call init_caller_save if flag_caller_saves.
7398 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7401 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7402 and soft-fp/t-softfp to tmake_file.
7403 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7404 (LIBGCC2_TF_CEXT): Define.
7407 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
7410 * cselib.c (n_useless_values): Document handling of debug locs.
7411 (n_useless_debug_values, n_debug_values): New variables.
7412 (new_elt_loc_list): Don't add to debug values, keep count.
7413 (promote_debug_loc): New.
7414 (cselib_reset_table): Zero new variables.
7415 (entry_and_rtx_equal_p): Promote debug locs.
7416 (discard_useless_locs): Increment n_useless_debug_values for
7418 (remove_useless_values): Adjust n_useless_values and n_debug_values
7419 with n_useless_debug_values.
7420 (add_mem_for_addr): Promote debug locs.
7421 (cselib_lookup_mem): Likewise.
7422 (cselib_lookup_addr): Renamed to...
7423 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
7424 (cselib_log_lookup): ... this. Turn into...
7425 (cselib_lookup_addr): ... new wrapper.
7426 (cselib_lookup_from_insn): New.
7427 (cselib_invalidate_regno): Increment n_useless_debug_values for
7429 (cselib_invalidate_mem): Likewise.
7430 (cselib_process_insn): Take n_deleted and n_debug_values into
7431 account to guard remove_useless_value call.
7432 (cselib_finish): Zero n_useless_debug_values.
7433 * cselib.h (cselib_lookup_from_insn): Declare.
7434 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7435 (sched_analyze_2): Likewise.
7437 2010-03-30 Jakub Jelinek <jakub@redhat.com>
7439 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7441 (adjust_mems): Replace narrowing SUBREG of expression containing
7442 just PLUS, MINUS, MULT and ASHIFT of registers and constants
7443 with operations in the narrower mode.
7446 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7447 regs_invalidated_by_call instead all call_used_reg_set registers.
7449 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
7452 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7453 pointer comparisons with types_compatible_p.
7454 * tree-vect-stmts.c (vectorizable_call): Same.
7455 (vectorizable_condition): Same.
7457 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7459 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7460 stack check if the mask would be zero.
7462 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7463 Jack Howarth <howarth@bromo.med.uc.edu>
7465 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7468 2010-03-30 Joseph Myers <joseph@codesourcery.com>
7471 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
7473 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7474 Include ___unordxf2 and ___unordtf2.
7475 * config/i386/libgcc-glibc.ver: Do not define inheritance from
7478 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
7480 * config/lm32/t-lm32: New file.
7481 * config.gcc: Use the above file when targetting lm32.
7483 2010-03-28 Duncan Sands <baldrick@free.fr>
7485 * Makefile.in (PLUGIN_HEADERS): Add except.h.
7487 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7490 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7491 Improve vectorization cost model diagnostic.
7493 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7496 * tree-vect-data-refs.c (vect_analyze_data_refs): When
7497 compute_data_dependences_for_loop returns false, early exit
7498 and output an extra diagnostic for the failed data reference
7501 2010-03-29 Richard Guenther <rguenther@suse.de>
7503 PR tree-optimization/43560
7504 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7505 (can_sm_ref_p): Treat stores to readonly locations as trapping.
7507 2010-03-29 Jie Zhang <jie@codesourcery.com>
7510 * toplev.c (process_options): Set optimization_default_node
7511 and optimization_current_node.
7512 * opts.c (decode_options): Don't set optimization_default_node
7513 and optimization_current_node.
7515 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
7517 * config/rtems.h: Abandon -qrtems_debug.
7519 2010-03-28 Jan Hubicka <jh@suse.cz>
7521 PR tree-optimization/43505
7522 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7523 map should not be copied.
7525 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7528 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7529 cdtors, set DECL_PRESERVE_P.
7530 * ipa.c (cgraph_externally_visible_p): Return true if declaration
7533 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
7535 PR tree-optimization/43528
7536 * stor-layout.c (place_field): Check that constant fits into
7537 unsigned HWI when skipping calculation of MS bitfield layout.
7539 2010-03-27 Jan Hubicka <jh@suse.cz>
7542 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7543 notice_global_symbol work.
7545 2010-03-27 Jakub Jelinek <jakub@redhat.com>
7547 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7548 instead of dwarf2out_decl.
7549 (struct var_loc_node): Remove section_label field.
7550 (dwarf2out_function_decl): New function.
7551 (dwarf2out_var_location): Don't set section_label field.
7552 (dwarf2out_begin_function): Don't empty decl_loc_table here.
7554 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7556 PR tree-optimization/43544
7557 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7558 First argument for builtin vectorized function hook is now a
7559 tree to be able to distinguish between machine specific and
7561 * targhooks.c (default_builtin_vectorized_function): Ditto.
7562 * targhooks.h (default_builtin_vectorized_function): Ditto.
7563 * target.h (struct gcc_target): Ditto.
7564 * tree-vect-stmts.c (vectorizable_function): Ditto.
7565 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7566 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7569 2010-03-26 Joseph Myers <joseph@codesourcery.com>
7572 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7573 nested binding iff it is a FUNCTION_DECL.
7574 (store_parm_decls_newstyle): Pass nested=true to bind for
7575 FUNCTION_DECLs amongst parameters.
7577 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7579 * var-tracking.c (vt_expand_loc_callback): Don't run
7580 cselib_expand_value_rtx_cb in dummy mode if
7581 cselib_dummy_expand_value_rtx_cb returned false.
7583 * var-tracking.c (emit_note_insn_var_location): For one part
7584 notes with offset 0, don't add EXPR_LIST around the location.
7585 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7586 add_location_or_const_value_attribute): Adjust for that change.
7589 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7590 into first operand and location into second.
7591 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7592 dw_cfi_oprnd_loc for DW_CFA_expression.
7593 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7594 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7595 assume first argument is regnum and second argument is location.
7597 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7600 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7601 of scratch register to DImode. Split to DImode comparison operator.
7602 Use SImode subreg of scratch register in the multiplication.
7603 (*cmp_sadd_sidi): Ditto.
7604 (*cmp_ssub_si): Ditto.
7605 (*cmp_ssub_sidi): Ditto.
7607 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7610 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7611 Remove invalid assert and wrong comment.
7613 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7616 * flags.h (final_insns_dump_p): New extern.
7617 * final.c (final_insns_dump_p): New variable.
7618 (rest_of_clean_state): Set it before -fdump-final-insns=
7619 dumping, clear afterwards.
7620 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7621 MEM_ALIAS_SET on MEMs.
7623 2010-03-26 David S. Miller <davem@davemloft.net>
7625 * configure.ac: Fix sparc GOTDATA_OP bug check.
7626 * configure: Rebuild.
7628 2010-03-26 Alan Modra <amodra@gmail.com>
7630 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7632 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7634 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7635 TLS_SECTION_ASM_FLAG.
7637 2010-03-25 Jakub Jelinek <jakub@redhat.com>
7640 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7641 Clear first_function_block_is_cold.
7644 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7645 argument if the argument is truth_value_p.
7647 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7649 * config/rs6000/constraints.md: Update copyright year for my changes.
7652 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7653 used in reg+reg addressing, swap registers.
7655 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7658 * target.h (struct gcc_target): Add code_end hook.
7659 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7661 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7662 * toplev.c (compile_file): Call targetm.asm_out.code_end
7663 hook before unwind info/debug info output.
7664 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7665 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7666 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7667 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7668 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7669 * config/i386/i386.c (ix86_file_end): Renamed to...
7670 (ix86_code_end): ... this. Make static. Don't call
7671 file_end_indicate_exec_stack. Emit unwind info using
7672 final_start_function/final_end_function.
7673 (darwin_x86_file_end): Remove.
7674 (TARGET_ASM_CODE_END): Define.
7675 * config/i386/i386.h (TARGET_ASM_FILE_END,
7676 NEED_INDICATE_EXEC_STACK): Don't define.
7677 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7678 (TARGET_ASM_FILE_END): Define to darwin_file_end.
7679 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7680 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7683 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
7684 at the beginning and final_end_function at the end.
7685 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7687 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7689 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
7690 and Sun as TLS syntax.
7691 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
7692 * configure: Regenerate.
7693 * config.in: Regenerate.
7694 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
7695 (default_elf_asm_named_section): Use it.
7696 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
7697 (i386_output_dwarf_dtprel): Likewise.
7698 (output_addr_const_extra): Likewise.
7699 (output_pic_addr_const): Lowercase @GOTTPOFF.
7700 (output_addr_const_extra): Likewise.
7701 (output_pic_addr_const): Lowercase @GOTNTPOFF.
7702 (output_addr_const_extra): Likewise.
7703 (output_pic_addr_const): Lowercase @INDNTPOFF.
7704 (output_addr_const_extra): Likewise.
7705 (output_pic_addr_const): Lowercase @NTPOFF.
7706 (output_addr_const_extra): Likewise.
7707 (output_pic_addr_const): Lowercase @TPOFF.
7708 (output_addr_const_extra): Likewise.
7709 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
7710 (*tls_global_dynamic_64): Likewise.
7711 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
7712 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
7714 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
7715 (ASM_OUTPUT_TLS_COMMON): Use it.
7716 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
7719 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
7720 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7721 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
7722 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
7723 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7724 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
7726 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7728 * config/i386/i386.c (override_options): Don't accept
7729 -mtls-dialect=sun any longer.
7730 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
7731 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
7732 (*tls_local_dynamic_base_32_sun): Likewise.
7733 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7735 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7738 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7739 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
7742 * ira.c (adjust_cleared_regs): New function.
7743 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
7747 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
7749 * expr.c (expand_expr_real): Restore previous
7750 curr_insn_source_location and curr_insn_block after
7751 expand_expr_real_1 call.
7752 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
7753 instead of expand_expr_real_1.
7755 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
7757 PR rtl-optimization/43413
7758 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
7761 2010-03-22 James E. Wilson <wilson@codesourcery.com>
7764 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
7765 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
7767 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
7769 * config/i386/i386.c (ix86_target_string): Add -mfma.
7770 Fix a typo in comment.
7772 2010-03-22 Mike Stump <mikestump@comcast.net>
7775 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
7776 Don't overly align based upon packed packed fields.
7778 2010-03-22 Jason Merrill <jason@redhat.com>
7780 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
7781 Use () rather than [], and move before the element type.
7783 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7785 * doc/configfiles.texi (Configuration Files): Removed
7786 fixinc/Makefile*, intl/Makefile.*.
7787 * doc/makefile.texi: Fixed markup. Abstract from version
7788 control system used.
7789 (Makefile): Removed obsolete gcc/java/parse.y example.
7790 * doc/sourcebuild.texi: Likewise.
7791 (Top Level): Added config, gnattools, libdecnumber, libgcc,
7792 libgomp, libssp. Removed fastjar.
7793 (Miscellaneous Docs): Clarify location.
7794 Added COPYING3, COPYING3.LIB.
7795 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
7797 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7800 * config/i386/i386.c (x86_function_profiler)
7801 [!NO_PROFILE_COUNTERS]: Fix typo.
7802 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
7805 2010-03-22 Janis Johnson <janis187@us.ibm.com>
7806 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7808 * doc/sourcebuild.texi (Test Directives): Split into six
7809 subsections, with most of the current text in new subsections
7810 Directives, Selectors, and Final Actions.
7811 (Directives): Split list of test directives into multiple
7813 (Selectors): Describe use and syntax of selectors.
7814 (Effective-Target Keywords): Describe all existing keywords.
7815 (Add Options): Describe features for dg-add-options.
7816 (Require Support): Describe variants of dg-require-support.
7817 (Final Actions): Describe commands to use in dg-final.
7819 2010-03-22 Michael Matz <matz@suse.de>
7822 * recog.c (validate_replace_rtx_group): Replace also in
7823 REG_EQUAL and REG_EQUIV notes.
7825 2010-03-22 Richard Guenther <rguenther@suse.de>
7827 PR tree-optimization/43390
7828 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
7829 sure vector extracts are type correct.
7831 2010-03-22 Richard Guenther <rguenther@suse.de>
7834 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
7835 x * sqrt (x) even when optimizing for size if the target
7836 has native support for sqrt.
7838 2010-03-22 Jakub Jelinek <jakub@redhat.com>
7840 * varasm.c (make_decl_rtl_for_debug): Also clear
7841 flag_mudflap for the duration of make_decl_rtl call.
7844 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
7845 locs from preserved VALUEs.
7847 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7850 * pa.md (movmemsi): Set align to one if zero.
7851 (movmemdi): Likewise.
7853 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
7856 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
7857 with their corresponding prologue pushes.
7859 2010-03-20 Andrew Pinski <pinskia@gmail.com>
7862 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
7863 at the begining or end.
7864 (spu_expand_epilogue): Likewise.
7866 2010-03-20 Richard Guenther <rguenther@suse.de>
7868 PR rtl-optimization/43438
7869 * combine.c (make_extraction): Properly zero-/sign-extend an
7870 extraction of the low part of a CONST_INT. Also handle
7873 2010-03-19 Mike Stump <mikestump@comcast.net>
7875 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
7876 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
7877 (override_options): Use SUBTARGET32_DEFAULT_CPU.
7879 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
7882 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
7885 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
7887 PR rtl-optimization/42258
7888 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
7889 use that may match DEF.
7892 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
7893 the cost of loading the constant rather than assuming
7895 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
7896 outer code is AND, do the same tests as the andsi3 expander and
7897 return COSTS_N_INSNS (1) if and is cheap.
7899 * optabs.c (avoid_expensive_constant): Fix formatting.
7901 2010-03-19 Michael Matz <matz@suse.de>
7904 * attribs.c (decl_attributes): When rebuilding a function pointer
7905 type use the same qualifiers as the original pointer type.
7907 2010-03-19 Martin Jambor <mjambor@suse.cz>
7909 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
7910 and is_gimple_ip_invariant_address.
7912 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7915 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7917 * config/arm/arm.c (arm_override_options): Turn off
7918 flag_dwarf2_cfi_asm for AAPCS variants.
7920 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7923 * config/arm/arm.c (emit_multi_reg_push): Update comments.
7924 Use PRE_MODIFY instead of PRE_DEC.
7925 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
7926 (vfp_emit_fstmd): Likewise.
7928 2010-03-19 Michael Matz <matz@suse.de>
7931 * builtins.c (expand_builtin_interclass_mathfn,
7932 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
7935 2010-03-19 Richard Guenther <rguenther@suse.de>
7937 PR tree-optimization/43415
7938 * tree-ssa-pre.c (phi_translate): Split out worker to ...
7939 (phi_translate_1): ... this.
7940 (phi_translate): Move all caching here. Cache all NARY
7941 and REFERENCE translations.
7943 2010-03-19 David S. Miller <davem@davemloft.net>
7945 With help from Eric Botcazou.
7946 * config/sparc/sparc.c: Include dwarf2out.h.
7947 (emit_pic_helper): Delete.
7948 (pic_helper_symbol_name): Delete.
7949 (pic_helper_emitted_p): Delete.
7950 (pic_helper_needed): New.
7951 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
7952 (get_pc_thunk_name): New.
7953 (load_pic_register): Remove 'delay_pic_helper' arg. Use
7954 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
7955 Set pic_helper_needed to true. Don't call emit_pic_helper.
7956 (sparc_expand_prologue): Update load_pic_register call.
7957 (sparc_output_mi_thunk): Likewise.
7958 (sparc_file_end): Emit a hidden comdat symbol for the PIC
7959 thunk if possible. Output CFI information as needed.
7961 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7962 Jack Howarth <howarth@bromo.med.uc.edu>
7965 * config/i386/i386.h: Fix ABI on darwin x86-32.
7967 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
7969 * tree.h: Declare make_decl_rtl_for_debug.
7970 * varasm.c (make_decl_rtl_for_debug): New.
7971 * dwarf2out.c (rtl_for_decl_location): Call it.
7972 * cfgexpand.c (expand_debug_expr): Call it.
7974 2010-03-18 Jakub Jelinek <jakub@redhat.com>
7977 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
7981 * var-tracking.c (vt_init_cfa_base): Do nothing if
7982 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
7984 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
7987 * var-tracking.c (canonicalize_vars_star): New.
7988 (dataflow_post_merge_adjust): Use it.
7990 2010-03-18 Jakub Jelinek <jakub@redhat.com>
7993 * var-tracking.c (non_suitable_const): New function.
7994 (add_uses): For DEBUG_INSNs with constants, don't record any
7995 value, instead just the constant value itself.
7996 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
7997 is not VAR_LOC_UNKNOWN_P, set var to the constant.
7998 (emit_notes_in_bb): Likewise.
7999 (emit_note_insn_var_location): For onepart variables if
8000 cur_loc is a VOIDmode constant, use DECL_MODE.
8002 2010-03-18 Martin Jambor <mjambor@suse.cz>
8005 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8006 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8007 all non-clones. Moved call redirection...
8008 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8009 (cgraph_materialize_all_clones): Dispose of all
8010 combined_args_to_skip bitmaps.
8011 (verify_cgraph_node): Do not check for edges pointing to wrong
8012 nodes in inline clones.
8013 * tree-inline.c (copy_bb): Call
8014 cgraph_redirect_edge_call_stmt_to_callee.
8015 * ipa.c (cgraph_remove_unreachable_nodes): Call
8016 cgraph_node_remove_callees even when there are used clones.
8018 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8020 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8022 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8025 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8028 2010-03-18 Michael Matz <matz@suse.de>
8031 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8032 into sqrt(x) if we need to preserve signed zeros.
8034 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8035 Eric Botcazou <ebotcazou@adacore.com>
8037 PR rtl-optimization/43360
8038 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8039 note if we don't know its invariant status.
8041 2010-03-18 Michael Matz <matz@suse.de>
8043 PR tree-optimization/43402
8044 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8045 PHI chains of ssa names registered for update.
8047 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8050 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8051 non-offsettable and pre_modify update addressing.
8052 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8053 and "2" alternatives "#".
8054 (*movdd_softfloat32): Make all alternatives "#";
8055 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8056 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8057 (*movdf_softfloat32): Make all alternatives "#";
8058 (movdi): Use the new DIFD mode iterator to create a common splitter
8059 for movdi, movdf and movdd patterns.
8061 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
8063 * common.opt (dumpdir): Remove redundant tab.
8065 2010-03-17 Martin Jambor <mjambor@suse.cz>
8067 PR tree-optimization/43347
8068 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8069 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8071 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
8073 PR rtl-optimization/42216
8074 * regrename.c (create_new_chain): New function, broken out from...
8075 (scan_rtx_reg): ... here. Call it. Handle the case where we are
8076 appending a use to an empty chain.
8077 (build_def_use): Remove previous changes that convert OP_INOUT to
8078 OP_OUT operands; instead detect the case where an OP_INOUT operand
8079 uses a previously untracked register and create an empty chain for it.
8081 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8083 * doc/extend.texi (Function Attributes): Rewrite unfinished
8084 sentence in ms_abi documentation.
8086 2010-03-17 Alan Modra <amodra@gmail.com>
8088 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8089 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8090 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8091 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8093 2010-03-16 Richard Henderson <rth@redhat.com>
8096 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8097 (lower_try_finally): Save and restore eh_seq around the expansion
8100 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8102 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8103 statements before splitting block.
8105 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8107 * doc/sourcebuild.texi (Testsuites): Fix markup.
8108 Use pathnames relative to gcc/testsuite.
8109 (Test Directives): Move description of how timeout is determined.
8110 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8111 (C Tests): Correct gcc.misc-tests directory.
8112 Framework tests now live in gcc.test-framework.
8114 2010-03-16 Richard Guenther <rguenther@suse.de>
8117 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8118 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8120 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8121 Alexandre Oliva <aoliva@redhat.com>
8123 PR tree-optimization/42917
8124 * lambda-code.c (remove_iv): Skip debug statements.
8125 (lambda_loopnest_to_gcc_loopnest): Likewise.
8126 (not_interesting_stmt): Debug statements are not interesting.
8128 2010-03-16 Jakub Jelinek <jakub@redhat.com>
8132 * cselib.c (cselib_preserve_constants,
8133 cfa_base_preserved_val): New static variables.
8134 (preserve_only_constants): New function.
8135 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8136 clear its REG_VALUES. If cselib_preserve_constants, don't
8137 empty the whole hash table, but preserve there VALUEs with constants,
8138 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8139 (cselib_preserve_cfa_base_value): New function.
8140 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8141 (cselib_init): Change argument to int bitfield. Set
8142 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8144 (cselib_finish): Clear cselib_preserve_constants and
8145 cfa_base_preserved_val.
8146 * cselib.h (enum cselib_record_what): New enum.
8147 (cselib_init): Change argument to int.
8148 (cselib_preserve_cfa_base_value): New prototype.
8149 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8150 * dse.c (dse_step1): Likewise.
8151 * cfgcleanup.c (thread_jump): Likewise.
8152 * sched-deps.c (sched_analyze): Likewise.
8153 * gcse.c (local_cprop_pass): Likewise.
8154 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8155 If FN is non-NULL, call the callback always and whenever it returns
8156 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
8157 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8158 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8159 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8160 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8161 * var-tracking.c: Include recog.h.
8162 (bb_stack_adjust_offset): Remove.
8163 (vt_stack_adjustments): Don't call it, instead just gather the
8164 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8165 (adjust_stack_reference): Remove.
8166 (compute_cfa_pointer): New function.
8167 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8168 (struct adjust_mem_data): New type.
8169 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8171 (get_address_mode): New function.
8172 (replace_expr_with_values): Use it.
8173 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8174 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
8175 (adjust_sets): Remove.
8176 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8177 Use get_address_mode.
8178 (get_adjusted_src): Remove.
8179 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
8180 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
8181 (add_with_sets): Don't call adjust_sets.
8182 (fp_setter, vt_init_cfa_base): New functions.
8183 (vt_initialize): Change return type to bool. Move most of pool etc.
8184 initialization to the beginning of the function from end. Pass
8185 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8186 If !frame_pointer_needed, call vt_stack_adjustment before mos
8187 vector is filled, call vt_init_cfa_base if argp/framep has been
8188 eliminated to sp. If frame_pointer_needed and argp/framep has
8189 been eliminated to hard frame pointer, set
8190 hard_frame_pointer_adjustment and call vt_init_cfa_base after
8191 encountering fp setter in the prologue. For MO_ADJUST, call
8192 log_op_type before pusing the op into mos vector, not afterwards.
8193 Call adjust_insn before cselib_process_insn/add_with_sets,
8194 call cancel_changes (0) afterwards.
8195 (variable_tracking_main_1): Adjust for vt_initialize calling
8196 vt_stack_adjustments and returning whether it succeeded or not.
8198 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
8200 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8203 2010-03-15 Jakub Jelinek <jakub@redhat.com>
8205 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8207 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8208 drap_reg has not been set.
8210 2010-03-15 Michael Matz <matz@suse.de>
8213 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8214 use it to expand block copies.
8215 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8216 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8217 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8219 2010-03-15 Richard Guenther <rguenther@suse.de>
8221 PR tree-optimization/43367
8222 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8225 2010-03-15 Richard Guenther <rguenther@suse.de>
8227 PR tree-optimization/43317
8228 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8230 2010-03-15 Martin Jambor <mjambor@suse.cz>
8232 PR tree-optimization/43141
8233 * tree-sra.c (create_abstract_origin): New function.
8234 (modify_function): Call create_abstract_origin.
8236 2010-03-15 Chris Demetriou <cgd@google.com>
8238 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8241 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8244 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8245 call insert_out_of_ssa_copy for default definitions.
8247 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8249 * graphite-clast-to-gimple.c (my_long_long): Defined.
8250 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8251 * graphite-sese-to-poly.c (my_long_long): Defined.
8252 (scop_ivs_can_be_represented): Use it.
8254 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8256 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8257 graphite-max-bbs-per-function, and loop-block-tile-size.
8258 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8260 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8262 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8264 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8265 forward declaration.
8266 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8267 (add_upper_bounds_from_estimated_nit): New.
8268 (build_loop_iteration_domains): Use it.
8270 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8272 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8274 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8277 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8278 should be an INTEGER_CST. Also handle CASE_CONVERT.
8280 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8282 * graphite.c (graphite_initialize): To bound the number of bbs per
8283 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8284 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8285 * doc/invoke.texi: Document it.
8287 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8289 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8290 * graphite-sese-to-poly.h (build_poly_scop): Same.
8292 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8294 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8295 the number of parameters in the scop. Use as an upper bound
8296 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8297 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8298 * doc/invoke.texi: Document it.
8300 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
8302 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8303 * doc/c-tree.texi: Remove.
8304 * doc/generic.texi: Merge c-tree.texi here.
8305 * doc/gccint.texi (Trees): Remove menu entry.
8306 (c-tree.texi): Remove @include.
8307 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8308 * doc/languages.texi (Reading RTL): Ditto.
8310 2010-03-12 Steve Ellcey <sje@cup.hp.com>
8313 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8315 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8318 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8319 code added to work around reload clobbering CONST insns.
8321 2010-03-12 Jakub Jelinek <jakub@redhat.com>
8323 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8324 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8325 (cselib_preserve_only_values): Remove retain argument, don't
8326 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8327 * cselib.h (cselib_preserve_only_values): Remove retain argument.
8328 * var-tracking.c (micro_operation): Move insn field before union.
8329 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8330 (struct variable_tracking_info_def): Remove n_mos field, change
8331 mos into a vector of micro_operations.
8332 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8333 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8334 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8335 changing into a vector.
8336 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
8337 come before all other uops generated by add_stores.
8338 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8340 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
8341 a vector. Run just one pass over the bbs instead of separate counting
8342 and computation phase.
8343 (vt_finalize): Free VTI (bb)->mos vector instead of array.
8346 * tree-inline.c (remap_decls): Put old_var rather than origin_var
8347 into *nonlocalized_list vector.
8348 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8349 even if origin is non-NULL.
8350 (gen_variable_die): Likewise.
8351 (process_scope_var): Don't change origin.
8352 (gen_decl_die): Likewise.
8353 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8354 before adding new edges instead of after it, fix moving over
8357 2010-03-11 David S. Miller <davem@davemloft.net>
8359 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8361 * configure: Rebuild.
8363 2010-03-11 Martin Jambor <mjambor@suse.cz>
8365 PR tree-optimization/43257
8366 * tree.c (assign_assembler_name_if_neeeded): New function.
8367 (free_lang_data_in_cgraph): Assembler name assignment moved to the
8369 * tree.h (assign_assembler_name_if_neeeded): Declare.
8370 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8371 the function if needed.
8373 2010-03-11 Chris Demetriou <cgd@google.com>
8375 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8376 include/stdint-gcc.h, and include/stdint.h world-readable.
8378 2010-03-11 Richard Guenther <rguenther@suse.de>
8380 PR tree-optimization/43255
8381 * tree-vrp.c (process_assert_insertions_for): Do not insert
8382 asserts for trivial conditions.
8384 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8386 PR tree-optimization/43280
8387 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8388 generation. Move calculation of size out of the if branch.
8389 (find_bswap): Modify compare number generation.
8391 2010-03-11 Richard Guenther <rguenther@suse.de>
8394 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8395 (input_gimple_stmt): Fixup handled component types during
8396 operand read. Also fix up decls in ADDR_EXPRs.
8398 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8400 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8401 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8403 2010-03-10 Jan Hubicka <jh@suse.cz>
8406 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8407 * varasm.c (get_variable_section): Don't do that here...
8408 (make_decl_rtl): ... and here.
8409 (do_assemble_alias): Produce decl RTL.
8410 (assemble_alias): Likewise.
8412 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8415 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8416 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8418 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8419 (based_loc_descr): Only express drap or vdrap regno based expressions
8420 using DW_OP_fbreg when not optimizing.
8421 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8422 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8423 REG_CFA_SET_VDRAP note.
8425 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
8427 PR tree-optimization/43236
8428 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8429 error in calculation of base address in reverse iteration case.
8430 (generate_builtin): Take number of latch executions if the statement
8433 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
8436 * tree-eh.c: Include pointer-set.h.
8437 (lower_eh_dispatch): Filter out duplicate case labels and
8438 remove the unneeded edge when the label is unused. Return
8439 true when some edges are removed.
8440 (execute_lower_eh_dispatch): When any lowering resulted in
8441 removing an edge, also delete unreachable blocks.
8443 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8446 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8447 UNSPEC_MACHOPIC_OFFSET.
8449 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
8452 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8453 (m68k_delegitimize_address): New function.
8455 2010-03-09 Jakub Jelinek <jakub@redhat.com>
8458 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8461 * var-tracking.c (adjust_sets): New function.
8462 (count_with_sets, add_with_sets): Use it.
8463 (get_adjusted_src): New inline function.
8464 (add_stores): Use it.
8467 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8468 call cselib_dummy_expand_value_rtx_cb instead of
8469 cselib_expand_value_rtx_cb.
8472 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8473 * config/i386/i386.c: Include debug.h and dwarf2out.h.
8474 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8475 and .cfi_endproc around the pic thunks.
8476 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8477 all queued unwind info register saves are saved before the call.
8478 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8479 considered as sp-=4 for unwind info and the pop as sp+=4 which
8480 also clobbers dest, but doesn't actually restore it.
8483 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8484 RTX_FRAME_RELATED_P.
8486 2010-03-09 Jie Zhang <jie@codesourcery.com>
8488 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8489 whitespaces in output template.
8491 2010-03-09 Jie Zhang <jie@codesourcery.com>
8493 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8496 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8498 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8499 builtins.exp in a separate job.
8501 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8503 * graphite-sese-to-poly.c (add_param_constraints): Use
8504 lower_bound_in_type and upper_bound_in_type.
8506 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8508 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8509 instead of unsigned_type_node.
8511 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8512 Reza Yazdani <reza.yazdani@amd.com>
8515 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8516 on pointer type parameters.
8518 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8522 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8523 handle conversions from pointer to integers.
8524 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8525 induction variable, to be able to work with code generated by CLooG.
8526 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8527 (build_poly_scop): Bail out if we cannot codegen a loop.
8529 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8531 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8532 code generation with gloog_error.
8534 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8536 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8537 Call fold_convert on all the returned values.
8538 (expand_scalar_variables_expr): Pass to
8539 expand_scalar_variables_ssa_name the type of the resulting expression.
8541 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8543 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8544 ppl_min_for_le_pointset.
8545 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8546 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8548 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8550 * graphite-dependences.c (map_into_dep_poly): Removed.
8551 (dependence_polyhedron_1): Use combine_context_id_scat.
8553 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8555 * graphite-poly.h (struct poly_scattering): Add layout documentation.
8556 (struct poly_bb): Same.
8557 (combine_context_id_scat): New.
8559 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8562 * sese.c (name_defined_in_loop_p): Return false for default
8565 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8567 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8568 and clean up the logic.
8570 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8572 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8575 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8577 * var-tracking.c (remove_cselib_value_chains): Define only for
8579 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8580 delete_slot_part, emit_notes_for_differences_1): Don't call
8581 remove_cselib_value_chains here.
8582 (set_slot_part, emit_notes_for_differences_2): Don't call
8583 add_cselib_value_chains here.
8584 (preserved_values): New vector.
8585 (preserve_value): New function.
8586 (add_uses, add_stores, vt_add_function_parameters): Use it
8587 instead of cselib_preserve_value.
8588 (changed_values_stack): New vector.
8589 (check_changed_vars_0): New function.
8590 (check_changed_vars_1, check_changed_vars_2): Use it.
8591 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8592 changed_values_stack VALUEs.
8593 (vt_emit_notes): For all preserved_values call
8594 add_cselib_value_chains. If ENABLE_CHECKING call
8595 remove_cselib_value_chains before verifying value_chains is empty.
8596 Initialize and free changed_values_stack.
8597 (vt_initialize): Initialize preserved_values.
8598 (vt_finalize): Free preserved_values.
8600 2010-03-08 Richard Guenther <rguenther@suse.de>
8602 PR tree-optimization/43269
8603 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8606 2010-03-08 Martin Jambor <mjambor@suse.cz>
8608 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8609 (ipa_is_param_called): Removed.
8610 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8611 (ipa_print_node_params): Do not print the called flag.
8612 (ipa_write_node_info): Do not stream the called flag.
8613 (ipa_read_node_info): Likewise.
8615 2010-03-07 Jakub Jelinek <jakub@redhat.com>
8618 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8619 * cselib.c (struct expand_value_data): Add dummy field.
8620 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8622 (cselib_dummy_expand_value_rtx_cb): New function.
8623 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8625 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8626 * var-tracking.c: Include pointer-set.h.
8627 (variable): Change n_var_parts to char from int. Add
8628 cur_loc_changed and in_changed_variables fields.
8629 (variable_canonicalize): Remove.
8630 (shared_var_p): New inline function.
8631 (unshare_variable): Maintain cur_loc_changed and
8632 in_changed_variables fields. If var was in changed_variables,
8633 replace it there with new_var. Just copy cur_loc instead of
8634 resetting it to something else.
8635 (variable_union): Don't recompute cur_loc. Use shared_var_p.
8636 (dataflow_set_union): Don't call variable_canonicalize.
8637 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8638 of their DEBUG_EXPR_TREE_DECLs.
8639 (canonicalize_loc_order_check): Verify that cur_loc is NULL
8640 and in_changed_variables and cur_loc_changed is false.
8641 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8642 and cur_loc_changed. Don't update cur_loc here.
8643 (variable_merge_over_src): Don't call variable_canonicalize.
8644 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
8645 removing loc that is equal to cur_loc, clear cur_loc,
8646 set cur_loc_changed and ensure variable_was_changed is called.
8647 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
8648 compare pointers in cur_loc check, if it is equal to loc,
8649 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
8650 (variable_different_p): Remove compare_current_location argument,
8651 don't compare cur_loc.
8652 (dataflow_set_different_1): Adjust variable_different_p caller.
8653 (variable_was_changed): If dv had some var in changed_variables
8654 already, reset in_changed_variables flag for it and propagate
8655 cur_loc_changed over to the new variable. On empty var
8656 always set cur_loc_changed. Set in_changed_variables on whatever
8657 var is added to changed_variables.
8658 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8659 Use shared_var_p. When removing loc that is equal to cur_loc,
8660 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
8661 end, don't set it to something else, just call variable_was_changed.
8662 (delete_slot_part): Use shared_var_p. When cur_loc equals to
8663 loc being removed, clear cur_loc and set cur_loc_changed.
8664 Set cur_loc_changed if all locations have been removed.
8665 (struct expand_loc_callback_data): New type.
8666 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8667 allocated. Always create SUBREGs if simplify_subreg failed.
8668 Prefer to use cur_loc, when that fails and still in
8669 changed_variables (and seen first time) recompute it. Set
8670 cur_loc_changed of variables which had to change cur_loc and
8671 compute elcd->cur_loc_changed if any of the subexpressions used
8672 had to change cur_loc.
8673 (vt_expand_loc): Adjust to pass arguments in
8674 expand_loc_callback_data structure.
8675 (vt_expand_loc_dummy): New function.
8676 (emitted_notes): New variable.
8677 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8678 that weren't used for any other decl in current
8679 emit_notes_for_changes call call vt_expand_loc_dummy to update
8680 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
8681 first loc_chain location if NULL before. Always use just
8682 cur_loc instead of first loc_chain location. When cur_loc_changed
8683 is false, when not --enable-checking=rtl just don't emit any note.
8684 When rtl checking, compute the note and assert it is the same
8685 as previous note. Clear cur_loc_changed and in_changed_variables
8686 at the end before removing from changed_variables.
8687 (check_changed_vars_3): New function.
8688 (emit_notes_for_changes): Traverse changed_vars to call
8689 check_changed_vars_3 on each changed var.
8690 (emit_notes_for_differences_1): Clear cur_loc_changed and
8691 in_changed_variables. Recompute cur_loc of new_var.
8692 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
8693 (vt_emit_notes): Initialize and destroy emitted_notes.
8695 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
8697 PR rtl-optimization/42220
8698 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
8699 Use verify_reg_tracked to determine if we should use OP_OUT rather
8701 (build_def_use): If we see an in-out operand for a register that we
8702 know nothing about, treat is an output if possible, fail the block if
8705 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8708 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
8711 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8714 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
8715 uses of relevant DEFs that are dead outside the loop too.
8717 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8719 * var-tracking.c (dataflow_set_merge): Swap src and src2.
8721 2010-01-13 Jakub Jelinek <jakub@redhat.com>
8723 * var-tracking.c (values_to_unmark): New variable.
8724 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8725 values_to_unmark vector. Moved body to...
8726 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
8727 instead queue it into values_to_unmark vector.
8728 (vt_find_locations): Free values_to_unmark vector.
8730 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
8732 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
8733 (site.exp): Export them when plugins are enabled.
8735 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
8738 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
8740 (chrec_fold_multiply): Same.
8742 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8745 * c-decl.c (build_compound_literal): Return early if init is
8748 2010-03-04 Martin Jambor <mjambor@suse.cz>
8750 PR tree-optimization/43164
8751 PR tree-optimization/43191
8752 * tree-sra.c (type_consists_of_records_p): Reject records with
8753 zero-size bit-fields at the end.
8755 2010-03-04 Mike Stump <mikestump@comcast.net>
8757 * Makefile.in (TAGS): Remove *.y.
8759 2010-03-04 Richard Guenther <rguenther@suse.de>
8761 PR tree-optimization/40761
8762 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
8764 (my_rev_post_order_compute): New function.
8765 (init_pre): Call it.
8767 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
8770 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
8771 decrease the cost of an IV candidate when the cost is infinite.
8773 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8775 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
8776 Use '3DNow!' for the extension of that name, ensure normal space
8778 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
8780 2010-03-03 Jeff Law <law@redhat.com>
8782 * PR middle-end/32693
8783 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
8784 than gen_rtx_SUBREG.
8785 (extract_bit_field_1): Likewise.
8787 2010-03-03 Janis Johnson <janis187@us.ibm.com>
8789 * doc/sourcebuild.texi (Test directives): Document that arguments
8790 include-opts and exclude-opts are now optional for dg-skip-if,
8791 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
8793 2010-03-03 Jason Merrill <jason@redhat.com>
8796 * cgraph.h (varpool_node): Add extra_name field.
8797 * varpool.c (varpool_extra_name_alias): New.
8798 (varpool_assemble_decl): Emit extra name aliases.
8799 (varpool_mark_needed_node): Look past an extra name alias.
8800 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
8801 * lto-streamer-in.c (lto_input_tree): Read it.
8802 * lto-streamer-out.c (output_unreferenced_globals): Write it.
8804 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
8806 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
8807 (sparc*-*-solaris2*): ...this.
8809 2010-03-03 Jakub Jelinek <jakub@redhat.com>
8812 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
8813 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
8814 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
8815 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
8818 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
8819 fallthrough to default handling, just with want_address 0 instead of 2.
8820 For single element lists, add_AT_loc directly, otherwise create an
8821 artificial variable DIE and stick location list to it.
8824 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
8825 (VAL_EXPR_HAS_REVERSE): Define.
8826 (reverse_op): New function.
8827 (add_stores): For reversible operations add an extra MO_VAL_USE.
8829 2010-03-02 Jason Merrill <jason@redhat.com>
8831 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
8833 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
8835 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
8836 (sparc64-*-linux*): Likewise.
8837 (sparc64-*-solaris2*): Include assembler files before linker ones.
8838 (sparc-*-solaris2*): Simplify and reorder to match previous case.
8839 * config/sparc/gas.h: Delete.
8840 * config/sparc/sol2-64.h: Add copyright notice.
8841 * config/sparc/sol2-gas-bi.h: Likewise.
8842 * config/sparc/sol2-gld.h: Likewise.
8843 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
8844 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
8845 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
8846 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
8847 (sparc_elf_asm_named_section): Rename into...
8848 (sparc_solaris_elf_asm_named_section): ...this. Always define.
8850 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
8852 * config/alpha/alpha.c (override_options): Fix -mtune error message.
8854 2010-03-02 Jeff Law <law@redhat.com>
8857 * reload1.c (rtx_p, substitute_stack): Declare.
8858 (substitute): Record addresses of changed rtxs.
8859 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
8860 Restore the original rtx when complete.
8861 (reload): Free subsitute_stack when complete.
8863 2010-03-02 Janis Johnson <janis187@us.ibm.com>
8865 * doc/gccint.texi (menu): Add Testsuites as a chapter.
8866 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
8868 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
8869 LTO Testing, gcov Testing, profopt Testing, compat Testing,
8870 Torture Tests): Change from subsection to section.
8872 2010-03-02 Jakub Jelinek <jakub@redhat.com>
8873 Steven Bosscher <steven@gcc.gnu.org>
8875 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
8878 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
8881 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
8882 the assignment from the new induction variable to the assignment
8883 of the value from the original loop PHI function.
8885 2010-03-01 Janis Johnson <janis187@us.ibm.com>
8886 Daniel Jacobowitz <dan@codesourcery.com>
8888 * doc/sourcebuild.texi (Test directives): Clarify options to
8891 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8893 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
8894 Disable cfi directives unless GCC and gas agree on using read-only
8895 .eh_frame sections for 64-bit.
8896 * configure: Regenerate.
8898 2010-03-01 Richard Guenther <rguenther@suse.de>
8900 PR tree-optimization/43220
8901 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
8902 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
8904 2010-03-01 Richard Guenther <rguenther@suse.de>
8905 Martin Jambor <mjambor@suse.cz>
8908 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
8909 gimplified parameters.
8911 2010-03-01 Christian Bruel <christian.bruel@st.com>
8913 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
8915 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8917 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
8919 2010-03-01 Richard Guenther <rguenther@suse.de>
8922 * expr.c (expand_assignment): Use the alias-oracle to tell
8923 if the rhs aliases the result decl.
8925 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8928 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
8929 to sol_gt_pch_get_address.
8930 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
8931 64-bit, SPARC and x86.
8932 (sol_gt_pch_get_address): New function.
8934 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
8936 * toplev.h (inform_n, error_n): Declare.
8937 * diagnostic.c (inform_n, error_n): New function.
8939 2010-03-01 Jakub Jelinek <jakub@redhat.com>
8941 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
8942 has no rtl yet when processing local_decls, queue it and recheck
8943 if deferred stack allocation hasn't assigned it rtl.
8945 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
8947 * config/sh/sh.c (unspec_bbr_uid): New.
8948 (gen_block_redirect): Use it instead of INSN_UID.
8949 (gen_far_branch): Likewise.
8951 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
8953 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
8954 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
8956 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8958 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
8959 (Warning Options): -Wno-conversion-null is valid for
8960 Objective-C++ as well.
8961 * doc/tm.texi (Named Address Spaces): Likewise.
8962 * doc/plugins.texi (Plugins): Replace TABs with spaces.
8963 * doc/tree-ssa.texi (Tree SSA): Likewise.
8965 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8968 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
8969 by default. Don't set the default arch for
8970 i[34567]86-*-darwin*|x86_64-*-darwin*.
8972 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8975 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
8976 default. Set the default 32bit/64bit archs with $with_arch
8977 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
8979 2010-02-27 Richard Guenther <rguenther@suse.de>
8981 PR tree-optimization/43186
8982 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
8983 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
8984 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
8985 unroller iterations.
8987 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
8989 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
8990 required and i[34567]86-*-* targets don't support 64bit ISA.
8992 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
8995 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8998 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9000 * config.gcc: Set the default arch at least to Prescott for
9001 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9002 if SSE math is enabled.
9004 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9006 * diagnostic.c (diagnostic_initialize): Update.
9007 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9009 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9010 (diagnostic_inhibit_notes): New.
9011 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9013 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9016 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9017 * doc/standards.texi: Likewise.
9018 * doc/extend.texi: Likewise.
9019 * doc/trouble.texi: Likewise.
9020 * doc/cppopts.texi: Likewise.
9021 * doc/install.texi: Likewise.
9022 * c.opt (std=c90,std=gnu90): New options.
9023 * c-opts.c (c_common_handle_option): Handle them.
9025 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9028 * c-decl.c (undeclared_variable): Use an informative note.
9030 2010-02-26 Richard Guenther <rguenther@suse.de>
9032 PR tree-optimization/43186
9033 * gimple.h (gimple_fold): Remove.
9034 * gimple.c (gimple_fold): Remove. Inline into single user ...
9035 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9036 Try harder for conditions.
9038 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9041 * function.c (used_types_insert): Don't skip through named pointer
9042 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9043 and it is different from the main variant's type.
9045 2010-02-26 Nick Clifton <nickc@redhat.com>
9047 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9049 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9051 * config.gcc: Support --with-fpmath=sse for x86.
9053 * config/i386/ssemath.h: New.
9055 * doc/install.texi (--with-fpmath=sse): Documented.
9057 2010-02-26 Richard Guenther <rguenther@suse.de>
9059 PR tree-optimization/43188
9060 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9061 vector types of over-aligned element type.
9063 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
9066 * config/i386/i386.c (expand_vec_perm_blend): Use correct
9067 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
9069 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9071 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9073 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9075 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9076 * var-tracking.c: Include diagnostic.h.
9077 (debug_dv): New function.
9078 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9081 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9082 (add_value_chain, add_value_chains, remove_value_chain,
9083 remove_value_chains): Handle DEBUG_EXPRs.
9084 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9087 * regcprop.c (struct queued_debug_insn_change): New type.
9088 (struct value_data_entry): Add debug_insn_changes field.
9089 (struct value_data): Add n_debug_insn_changes field.
9090 (debug_insn_changes_pool): New variable.
9091 (free_debug_insn_changes, apply_debug_insn_changes,
9092 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9093 (kill_value_one_regno): Call free_debug_insn_changes if needed.
9094 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9096 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9098 (copyprop_hardreg_forward_1): Don't call apply_change_group for
9099 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
9100 changes, call cprop_find_used_regs via note_stores.
9101 (copyprop_hardreg_forward): When copying vd from predecessor
9102 which has any queued DEBUG_INSN changes, make sure the pointers are
9103 cleared. At the end call df_analyze and then if there are any
9104 DEBUG_INSN changes queued at the end of some basic block for still
9105 live registers, apply them.
9106 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9108 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
9110 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9113 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
9115 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9116 targets. Set the default with_cpu/with_arch from arch/cpu.
9117 Allow x86-64 and native for with_cpu/with_arch.
9119 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
9121 * ebitmap.c: Change calls to verify_popcount with calls to
9122 sbitmap_verify_popcount.
9123 (ebitmap_clear_bit): Fixed map->cacheindex test and
9124 map>cache update when bit clearing results in an empty
9127 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9130 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9131 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9132 and support both V2DF and V2DI modes.
9133 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9134 support both V2DF and V2DI modes.
9135 (general): Delete trailing whitespace from a few patterns.
9137 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9138 V2DF/V2DI interleave high/low builtins.
9140 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9143 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9144 interleave high/low functions.
9146 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9148 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9149 #pragma extern_prefix.
9151 2010-02-25 Jakub Jelinek <jakub@redhat.com>
9154 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9155 BLKmode, assert op0 is a MEM and just adjust its mode.
9158 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9159 if bitpos isn't multiple of mode's bitsize.
9161 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9163 * c.opt (-ftemplate-depth=): New.
9164 (-ftemplate-depth-): Deprecate.
9165 * optc-gen.awk: Handle -ftemplate-depth=.
9166 * opth-gen.awk: Likewise.
9167 * c-opts.c (c_common_handle_option): Likewise.
9168 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9170 2010-02-24 Jason Merrill <jason@redhat.com>
9172 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9174 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9176 * cfg.c (alloc_aux_for_block): Remove inline.
9177 (alloc_aux_for_edge): Likewise.
9179 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9181 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9183 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9185 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9186 * config/i386/sol2-gas.h: New file.
9187 * config.gcc (i[34567]86-*-solaris2*): Use it.
9189 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9192 * c-typeck.c (ep_convert_and_check): New.
9193 (build_conditional_expr): Use it.
9194 (build_binary_op): Likewise.
9196 2010-02-24 Jakub Jelinek <jakub@redhat.com>
9198 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9201 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9202 bounds even for -O+.
9203 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9204 expr needs to have DECL_NAME set.
9206 2010-02-24 Nick Clifton <nickc@redhat.com>
9208 * config/mep/mep.c: Include gimple.h.
9209 (mep_function_uses_sp): Delete unused function.
9210 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9211 parameters. Use unsigned integers to count args. Return a
9212 NULL_RTX instead of an error_mark_node. Toidy up formatting.
9214 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9217 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9218 greater or equal to nelt instead of 2 * nelt.
9219 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9222 2010-02-23 Jason Merrill <jason@redhat.com>
9225 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9226 in cfun->local_decls even if they have register types.
9229 * stor-layout.c (place_field): Don't warn about unnecessary
9230 DECL_PACKED if the type is packed.
9232 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9235 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9236 GOTOFF relocs, even when the base reg isn't pic pointer.
9238 2010-02-23 Michael Matz <matz@suse.de>
9241 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9242 (expand_gimple_basic_block): Generate and use debug temps if there
9243 are debug uses left after the last real use of TERed ssa names.
9244 Unlink debug immediate uses when they are expanded.
9246 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9249 * config/i386/i386.c (override_options): Reorganise to provide
9250 better error messages.
9252 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9255 * graphite-scop-detection.c (create_single_exit_edge): Move
9256 the call to find_single_exit_edge to....
9257 (create_sese_edges): ...here. Don't handle multiple edges
9258 exiting the function.
9259 (build_graphite_scops): Don't handle multiple edges
9260 exiting the function.
9262 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9265 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9266 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9268 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9271 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9273 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9276 * c-typeck.c (convert_arguments): Print declaration location.
9277 * c-common.c (validate_nargs): Rename as
9278 builtin_function_validate_nargs.
9279 (check_builtin_function_arguments): Update.
9281 2010-02-22 Richard Guenther <rguenther@suse.de>
9284 * tree-inline.c (declare_return_variable): Use the type of
9285 the call stmt lhs if available.
9287 2010-02-22 Duncan Sands <baldrick@free.fr>
9289 * passes.c (register_pass): Always consider all pass lists when
9290 ref_pass_instance_number is zero.
9292 2010-02-22 Richard Guenther <rguenther@suse.de>
9294 PR tree-optimization/42749
9295 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9296 parameter. Do arithmetic in the original type.
9297 (update_accumulator_with_ops): Likewise.
9298 (adjust_accumulator_values): Adjust.
9300 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9302 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9303 (QI to BLKmode splitter): New splitter.
9305 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
9307 * config/i386/i386.c (initial_ix86_tune_features): Turn on
9308 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9310 2010-02-22 Richard Guenther <rguenther@suse.de>
9312 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9314 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
9316 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9317 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9318 ($(T)crti.o, $(T)crtn.o): Remove rules.
9320 2010-02-21 Tobias Burnus <burnus@net-b.de>
9323 * doc/invoke.texi (-fassociative-math): Document that this
9324 option is automatically enabled for Fortran.
9326 2010-02-20 David S. Miller <davem@davemloft.net>
9328 * configure.ac: Test if linker and assembler properly support
9329 GOTDATA_OP relocations.
9330 * configure: Rebuild.
9331 * config.in: Likewise.
9332 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9333 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9334 (movsi_high_pic): Likewise.
9335 (movdi_lo_sum_pic): Likewise.
9336 (movdi_high_pic): Likewise.
9337 (movsi_pic_gotdata_op): New pattern.
9338 (movdi_pic_gotdata_op): Likewise.
9339 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9340 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9342 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
9345 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9346 attribute to ssemul.
9347 (xop_mulv2div2di3_high): Ditto.
9349 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9352 * c.opt (Wconversion-null): New option.
9353 * doc/invoke.texi (Wconversion-null): Document.
9355 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9357 * common.opt (Wlarger-than-): Add Undocumented.
9359 2010-02-19 Mike Stump <mikestump@comcast.net>
9361 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9363 2010-02-19 Jason Merrill <jason@redhat.com>
9366 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9367 * configure: Likewise.
9369 2010-02-20 Alan Modra <amodra@gmail.com>
9372 * cgraph.h (cgraph_make_decl_local): Declare.
9373 * cgraph.c (cgraph_make_decl_local): New function.
9374 (cgraph_make_node_local): Use it.
9375 * cgraphunit.c (cgraph_function_versioning): Likewise.
9376 * ipa.c (function_and_variable_visibility): Likewise.
9378 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9381 * except.c (sjlj_emit_function_enter): Don't call
9382 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9384 * rtl.h (add_reg_br_prob_note): Remove prototype.
9386 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9389 * c-common.c (conversion_warning): Remove widening conversions
9390 before checking the conversion of integers to reals.
9392 2010-02-19 Mike Stump <mikestump@comcast.net>
9395 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9398 * cgraphunit.c (process_function_and_variable_attributes): Check
9399 DECL_PRESERVE_P instead of looking up attribute "used".
9400 * ipa-pure-const.c (check_decl): Likewise.
9401 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9402 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9403 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9404 instead of attribute "used".
9405 * config/sol2-c.c (solaris_pragma_init): Likewise.
9406 (solaris_pragma_fini): Likewise.
9408 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9410 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9411 Use XCNEW instead of xcalloc.
9412 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9413 XNEW instead of xmalloc.
9414 (get_fields): Use XNEWVEC instead of xmalloc.
9417 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9418 populate vars array.
9419 (create_new_general_access): For debug stmts just reset value.
9420 (get_stmt_accesses): For accesses within debug stmts just record them
9421 using add_access_to_acc_sites instead of preventing the peeling or
9422 counting them as accesses.
9425 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9427 2010-02-19 Richard Guenther <rguenther@suse.de>
9429 PR tree-optimization/42916
9430 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9433 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
9435 * configure.ac: Replace all uses of changequote in macro arguments
9436 with proper quoting.
9438 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9441 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9443 2010-02-19 Richard Guenther <rguenther@suse.de>
9445 PR tree-optimization/42944
9446 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9447 test for aliasing with errno.
9449 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9452 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9453 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9454 * dojump.c: Include output.h.
9455 (inv): New inline function.
9456 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9457 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9458 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9459 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9460 argument, pass it down to other calls.
9461 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
9462 add REG_BR_PROB note to the conditional jump.
9463 * cfgexpand.c (add_reg_br_prob_note): Removed.
9464 (expand_gimple_cond): Don't call it, add the probability
9465 as last argument to jumpif_1/jumpifnot_1.
9466 * Makefile.in (dojump.o): Depend on output.h.
9467 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9469 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9470 * stmt.c (do_jump_if_equal): Likewise.
9471 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9472 * loop-unswitch.c (compare_and_jump_seq): Likewise.
9473 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9475 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9476 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9477 jumpifnot_1 callers.
9478 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9480 (store_expr): Adjust jumpifnot caller.
9481 (store_constructor): Adjust jumpif caller.
9484 * gimplify.c (gimple_boolify): For __builtin_expect call
9485 gimple_boolify also on its first argument.
9487 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
9489 * configure.ac (gnu-unique-object): Wrap regexps using [] in
9491 (__stack_chk_fail): Ditto. Remove quadrigraphs.
9492 * configure: Regenerated.
9494 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9496 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9497 lang_hooks.types_compatible_p instead of comptypes.
9499 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9501 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9502 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9503 if __prefer_thumb__ is defined.
9505 2010-02-18 Martin Jambor <mjambor@suse.cz>
9507 PR tree-optimization/43066
9508 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9509 array with zero-sized element type.
9511 2010-02-18 Jakub Jelinek <jakub@redhat.com>
9513 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9514 rtx, allocate struct var_loc_node here and return it to the
9515 caller, and only if it is actually needed.
9516 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9517 move it earlier and return immediately if it returns NULL.
9519 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
9521 * config/sparc/gas.h: New file. Restore
9522 TARGET_ASM_NAMED_SECTION to its ELF default.
9523 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9525 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9526 Likewise. Add ATTRIBUTE_UNUSED to prototype.
9527 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9528 after sparc/sysv4.h.
9530 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
9532 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9534 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
9536 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9537 patterns from predicated pattern.
9539 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
9542 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9543 for insn mnemonic suffix.
9545 2010-02-17 Richard Guenther <rguenther@suse.de>
9547 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9550 2010-02-17 Jakub Jelinek <jakub@redhat.com>
9553 * caller-save.c (save_call_clobbered_regs): If BB ends with
9554 a DEBUG_INSN, move any notes in between last real insn and the last
9555 DEBUG_INSN after the last DEBUG_INSN.
9557 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
9559 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9560 Fix return type. Fix argument type. Explain meaning of return value.
9562 2010-02-16 Richard Guenther <rguenther@suse.de>
9564 PR tree-optimization/41043
9565 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
9566 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9568 (vrp_visit_phi_node): ... but only for loop PHI nodes.
9570 2010-02-16 Ira Rosen <irar@il.ibm.com>
9572 PR tree-optimization/43074
9573 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9574 * tree-vect-loop.c (vect_analyze_loop_operations): Add
9575 vectorizable cycles in hybrid SLP check.
9576 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9578 2010-02-16 Richard Guenther <rguenther@suse.de>
9580 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9581 (true_dependence): If memrefs_conflict_p computes must-alias
9582 trust it. Move TBAA check after offset-based disambiguation.
9583 (canon_true_dependence): Likewise.
9585 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
9587 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9588 * doc/invoke.texi: Document it.
9589 * var-tracking.c: Include toplev.h and params.h.
9590 (vt_find_locations): Return bool indicating success. Compute
9591 hash sizes unconditionally. Check new parameter, report.
9592 (variable_tracking_main_1): Check vt_find_locations results and
9593 retry. Renamed from...
9594 (variable_tracking_main): ... this. New wrapper to preserve
9595 flag_var_tracking_assignments.
9596 * Makefile.in (var-tracking.o): Adjust dependencies.
9598 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
9599 Jakub Jelinek <jakub@redhat.com>
9602 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9603 if weak_import attribute is present.
9604 * config/darwin.c (machopic_select_section): Likewise.
9606 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
9608 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9609 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9610 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9611 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9613 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
9616 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9619 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9620 Rewrite text to refer to the names.
9622 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
9624 * config/i386/i386-builtin-types.def
9625 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9626 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9627 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9628 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9629 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9630 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9631 IX86_BUILTIN_VPERMIL2PS256.
9632 (MULTI_ARG_4_DF2_DI_I): Defined.
9633 (MULTI_ARG_4_DF2_DI_I1): Defined.
9634 (MULTI_ARG_4_SF2_SI_I): Defined.
9635 (MULTI_ARG_4_SF2_SI_I1): Defined.
9636 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9637 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9638 __builtin_ia32_vpermil2ps256.
9639 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9640 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9641 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
9642 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9643 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9644 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
9645 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9646 CODE_FOR_xop_vpermil2v8sf3.
9647 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9648 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9649 * config/i386/xopintrin.h (_mm_permute2_pd): New.
9650 (_mm256_permute2_pd): New.
9651 (_mm_permute2_ps): New.
9652 (_mm256_permute2_ps): New.
9654 2010-02-15 Nick Clifton <nickc@redhat.com>
9656 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9657 boolean parameters. Use emit_jump_insn when emitting a pop
9658 instruction containing a return insn.
9659 (push): Use 'true' rather than '1' as second parameter to F.
9660 (h8300_expand_prologue): Likewise.
9661 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9662 (h8300_expand_epilogue): Likewise.
9664 2010-02-15 Richard Guenther <rguenther@suse.de>
9667 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9670 2010-02-15 Nick Clifton <nickc@redhat.com>
9672 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9675 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
9677 * intl.c (fake_ngettext): New function.
9678 * intl.h (fake_ngettext): Declare.
9679 (ngettext): Define macro.
9680 * collect2.c (notice_translated): New function.
9681 (main): Use notice_translated and ngettext.
9682 * collect2.h (notice_translated): Declare.
9684 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
9686 * reorg.c (delete_computation): Comment fixes.
9687 * caller-save.c (setup_save_areas): Idem.
9688 * sel-sched-dump.c (dump_lv_set): Idem.
9691 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9693 * config/s390/s390.c (s390_sched_init): New function.
9694 (TARGET_SCHED_INIT): Target hook defined.
9696 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
9697 Jack Howarth <howarth@bromo.med.uc.edu>
9698 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9701 Partial revert of unintended change in fix for PR41605.
9702 * config/darwin.h: Fix typo.
9703 * config/darwin9.h: Same.
9705 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9707 * c-pch.c (pch_init): Clear v.
9709 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9712 * graphite-scop-detection.c (graphite_can_represent_scev): Call
9713 graphite_can_represent_init for MULT_EXPR.
9715 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9719 * graphite-sese-to-poly.c (remove_phi): New.
9720 (translate_scalar_reduction_to_array): Call remove_phi.
9722 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9725 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
9726 * graphite-clast-to-gimple.h (gloog): Update declaration.
9727 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
9728 * graphite-poly.h (struct poly_bb): Add missing comments.
9729 (struct scop): Add poly_scop_p field.
9731 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
9732 * graphite.c (graphite_transform_loops): Build the polyhedral
9733 representation for each scop before code generation.
9734 * sese.c (rename_variables_in_operand): Removed.
9735 (rename_variables_in_expr): Return the renamed expression.
9736 (rename_sese_parameters): New.
9737 * sese.h (rename_sese_parameters): Declared.
9739 2010-02-11 Richard Guenther <rguenther@suse.de>
9741 PR tree-optimization/42998
9742 * tree-ssa-pre.c (create_expression_by_pieces): Treat
9743 POINTER_PLUS_EXPR properly.
9745 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9746 Changpeng Fang <changpeng.fang@amd.com>
9749 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
9750 the cost of an IV candidate when the IV is used in a test against zero.
9752 * gcc.dg/tree-ssa/ivopts-3.c: New.
9754 2010-02-11 Richard Guenther <rguenther@suse.de>
9757 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
9758 pointer-vs-decl case by swapping refs. Handle some cases
9759 of pointer-vs-decl disambiguations more conservatively.
9760 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
9761 to false after expanding.
9763 2010-02-11 Richard Guenther <rguenther@suse.de>
9766 * gcc.c (process_command): Handle LTO file@offset case more
9769 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9771 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
9772 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
9774 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
9776 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
9777 if MEM's mode size isn't DWARF2_ADDR_SIZE.
9778 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
9779 Optimize eq/ne comparisons when both arguments are known to be
9781 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
9782 Don't mask operands unnecessarily if they are known to be already
9785 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
9787 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
9790 2010-02-10 Richard Guenther <rguenther@suse.de>
9792 PR tree-optimization/43017
9793 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
9794 for wrapping signed arithmetic.
9796 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9799 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
9800 if no debug info should be emitted for it.
9802 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
9804 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
9805 note when flag_exceptions is set.
9807 2010-02-10 Duncan Sands <baldrick@free.fr>
9809 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
9811 2010-02-10 Richard Guenther <rguenther@suse.de>
9814 * tree.c (get_unwidened): Handle constants.
9815 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
9817 2010-02-10 Martin Jambor <mjambor@suse.cz>
9820 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
9821 check for variable argument counts independently.
9823 2010-02-10 Christian Bruel <christian.bruel@st.com>
9826 * config/sh/sh.c (find_barrier): Increase length for non delayed
9827 conditional branches.
9829 2010-02-10 Christian Bruel <christian.bruel@st.com>
9831 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
9833 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9835 * builtins.c (set_builtin_user_assembler_name): Also handle
9836 ffs if int is smaller than word.
9838 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
9841 * ira-conflicts.c (get_dup): Remove.
9842 (process_reg_shuffles): Add new parameter. Use it as an
9843 additional guard for copy generation.
9844 (add_insn_allocno_copies): Rewrite.
9846 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
9848 * common.opt (fsched2-use-traces): Preserved for backward
9850 * doc/invoke.texi: Remove the documentation about option
9851 -fsched2-use-traces.
9852 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
9853 flag_sched2_use_traces.
9854 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
9855 the backward compatibility flag section.
9857 2010-02-09 Richard Guenther <rguenther@suse.de>
9859 PR tree-optimization/43008
9860 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
9861 make HEAP variables initialized from global memory if they
9862 are not known builtin functions.
9863 (find_func_aliases): Adjust.
9865 2010-02-09 Richard Guenther <rguenther@suse.de>
9867 PR tree-optimization/43000
9868 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
9869 arithmetic manually.
9871 2010-02-08 Jakub Jelinek <jakub@redhat.com>
9873 PR tree-optimization/42931
9874 * tree-loop-linear.c (try_interchange_loops): Don't call
9875 double_int_mul if estimated_loop_iterations failed.
9877 2010-02-08 Martin Jambor <mjambor@suse.cz>
9880 * tree-sra.c (build_accesses_from_assign): Do not mark in
9881 should_scalarize_away_bitmap if stmt has volatile ops.
9882 (sra_modify_assign): Do not process assigns piecemeal if if stmt
9885 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
9887 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
9889 2010-02-07 Adam Nemet <adambnmet@gmail.com>
9891 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
9894 2010-02-07 Andrew Pinski <pinskia@gmail.com>
9897 * df-core.c (df_finish_pass): Change type of saved_flags to int.
9899 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9902 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
9903 to unknown_dependence.
9904 (graphite_legal_transform_dr): Handle the unknown_dependence.
9905 (graphite_carried_dependence_level_k): Same.
9907 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9909 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
9911 2010-02-07 Richard Guenther <rguenther@suse.de>
9914 * expr.c (get_inner_reference): Always initialize *pbitsize.
9916 2010-02-07 Richard Guenther <rguenther@suse.de>
9919 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
9920 new ARRAY_REFs on variable size element or minimal index arrays.
9922 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
9923 gimple_fold_indirect_ref.
9925 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
9928 * arm.c (arm_override_options): Just return if the user has specified
9929 an invalid fpu name.
9931 2010-02-03 Jason Merrill <jason@redhat.com>
9934 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
9935 i386_pe_maybe_record_exported_symbol.
9937 2010-02-05 Steve Ellcey <sje@cup.hp.com>
9940 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9941 (pa_delegitimize_address): New function.
9943 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
9945 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
9946 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
9948 2010-02-05 Richard Guenther <rguenther@suse.de>
9951 * lto-streamer-in.c (get_resolution): Deal with references
9952 to undefined functions.
9954 2010-02-05 Richard Guenther <rguenther@suse.de>
9956 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
9957 (fold_const_aggregate_ref): Likewise.
9958 (ccp_fold_stmt): Substitute loads.
9959 (maybe_fold_reference): Verify types before substituting.
9961 (fold_gimple_assign): Unshare properly.
9962 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
9964 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
9966 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
9967 for rs6000_gen_cell_microcode.
9969 2010-02-04 Richard Guenther <rguenther@suse.de>
9971 PR rtl-optimization/42952
9972 * dse.c (const_or_frame_p): Remove MEM handling.
9974 2010-02-04 Nick Clifton <nickc@redhat.com>
9976 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9977 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9978 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
9979 (mn10300_asm_output_mi_thunk): New function.
9980 (mn10300_can_output_mu_thunk): New function.
9981 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
9982 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
9983 (FUNCTION_ARG): Delete incorrect comment.
9985 2010-02-03 Jason Merrill <jason@redhat.com>
9988 * fold-const.c (operand_equal_p): Handle erroneous types.
9990 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9992 * config/h8300/h8300.md (can_delay): Fix attibute condition.
9994 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
9996 PR rtl-optimization/42941
9997 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10000 2010-02-03 Jason Merrill <jason@redhat.com>
10003 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10005 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10008 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10009 (cselib_reset_table): Renamed from...
10010 (cselib_reset_table_with_next_value): ... this.
10011 (cselib_get_next_uid): Renamed from...
10012 (cselib_get_next_unknown_value): ... this.
10013 * cselib.c (next_uid): Renamed from...
10014 (next_unknown_value): ... this.
10015 (cselib_clear_table): Adjust.
10016 (cselib_reset_table): Adjust. Renamed from...
10017 (cselib_reset_table_with_next_value): ... this.
10018 (cselib_get_next_uid): Adjust. Renamed from...
10019 (cselib_get_next_unknown_value): ... this.
10020 (get_value_hash): Use hash.
10021 (cselib_hash_rtx): Likewise.
10022 (new_cselib_val): Adjust. Set and dump uid.
10023 (cselib_lookup_mem): Pass next_uid as hash.
10024 (cselib_subst_to_values): Likewise.
10025 (cselib_log_lookup): Dump uid.
10026 (cselib_lookup): Pass next_uid as hash. Adjust.
10027 (cselib_process_insn): Adjust.
10028 (cselib_init): Initialize next_uid.
10029 (cselib_finish): Adjust.
10030 (dump_cselib_table): Likewise.
10031 * dse.c (canon_address): Dump value uid.
10032 * print-rtl.c (print_rtx): Print value uid.
10033 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10035 (dv_uid): New function, sort of renamed from...
10036 (dv_htab_hash): ... this, reimplemented in terms of it and...
10037 (dv_uid2hash): ... this. New.
10038 (variable_htab_eq): Drop excess assertions.
10039 (tie_break_pointers): Removed.
10040 (canon_value_cmp): Compare uids.
10041 (variable_post_merge_New_vals): Print uids.
10042 (vt_add_function_parameters): Adjust.
10043 (vt_initialize): Reset table. Adjust.
10045 2010-02-03 Richard Guenther <rguenther@suse.de>
10047 PR tree-optimization/42944
10048 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10049 (call_may_clobber_ref_p_1): Likewise. Properly handle
10050 malloc and calloc clobbering errno.
10052 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10054 * doc/invoke.texi: Fix name of sched1 dump.
10056 * opts.c (decode_options): Set flag_tree_switch_conversion
10057 only conditionally on optimize >= 2.
10059 * gcse.c: Assorted comment fixes in pass description.
10061 2010-02-03 Anthony Green <green@moxielogic.com>
10063 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10064 nop padding in order to maintain alignment of storage location of
10065 target function address.
10066 (moxie_trampoline_init): Store target function address at newly
10068 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10070 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10072 2010-02-03 Richard Guenther <rguenther@suse.de>
10074 PR middle-end/42927
10075 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10077 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10079 * config.gcc: Reenable check for obsolete targets.
10080 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10081 mips-sgi-irix6.[0-4]*.
10083 2010-02-02 Nick Clifton <nickc@redhat.com>
10085 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10086 constant size of 4 as being the same as 0.
10087 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10088 can take values in the range 0..4.
10090 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
10093 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10094 as _darwin10_Unwind_FindEnclosingFunction().
10095 * libgcc-libsystem.ver: New.
10097 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
10100 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10101 implicitly set registers.
10103 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
10105 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10106 (arm_override_options): Allow automatic selection of the thread
10107 pointer register if thumb2.
10108 (legitimize_pic_address): Improve code sequences for Thumb2.
10109 (arm_call_tls_get_addr): Likewise.
10110 (legitimize_tls_address): Likewise.
10111 * arm.md (pic_load_addr_arm): Delete. Replace with ...
10112 (pic_load_addr_32bit): ... this. New named pattern.
10113 * thumb2.md (pic_load_addr_thumb2): Delete.
10114 (pic_load_dot_plus_four): Delete.
10115 (tls_load_dot_plus_four): New named pattern.
10117 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10120 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10121 Document fix for TLS bug.
10123 2010-01-31 Richard Guenther <rguenther@suse.de>
10125 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10126 conservatively correct.
10128 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10132 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10134 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10136 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10138 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10140 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
10142 * config.gcc: Adjust order of makefile fragments for mingw targets.
10144 2010-01-31 Richard Guenther <rguenther@suse.de>
10146 PR middle-end/42898
10147 * gimplify.c (gimplify_init_constructor): For volatile LHS
10148 initialize a temporary.
10150 2010-01-31 Matthias Klose <doko@ubuntu.com>
10152 * configure.ac: Fix __stack_chk_fail check for cross builds configured
10154 * configure: Regenerate.
10156 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
10158 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10159 the same alias set and their sizes different constantness.
10160 (aliasing_component_refs_p): Revert 2009-10-24 change.
10162 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10164 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10167 2010-01-29 Richard Guenther <rguenther@suse.de>
10169 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10170 Assert we successfully updated the call.
10172 2010-01-29 Jakub Jelinek <jakub@redhat.com>
10174 PR rtl-optimization/42889
10175 * df.h (df_set_bb_dirty_nonlr): New prototype.
10176 * df-core.c (df_set_bb_dirty_nonlr): New function.
10177 * df-scan.c (df_insn_rescan): Call it instead of
10178 df_set_bb_dirty for DEBUG_INSNs.
10180 2010-01-29 Richard Guenther <rguenther@suse.de>
10182 PR middle-end/37448
10183 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10184 quadratic behavior in most cases.
10186 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
10189 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10190 in the call to gen_x86_movsicc_0_m1.
10192 2010-01-28 Richard Guenther <rguenther@suse.de>
10194 PR tree-optimization/42871
10195 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10197 2010-01-28 Richard Guenther <rguenther@suse.de>
10199 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10200 into call arguments.
10202 2010-01-28 Richard Guenther <rguenther@suse.de>
10204 PR middle-end/42883
10205 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10206 the forwarder if the destination is an EH landing pad.
10208 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
10210 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10211 block list passed to gimple_duplicate_sese_tail.
10212 (parallelize_loops): Avoid parallelization when the function
10213 has_nonlocal_label.
10214 Avoid parallelization when the preheader is IRREDUCIBLE.
10215 Try to optimize when estimated_loop_iterations_int is unresolved.
10216 Add the loop's location to the dump file.
10217 * tree-cfg.c (add_phi_args_after_redirect): Remove.
10218 (gimple_duplicate_sese_tail): Remove the check for the latch.
10219 Redirect nexits to the exit block.
10220 Remove handling of the incoming edges to the latch.
10221 Redirect the backedge from the copied latch to the exit bb.
10223 2010-01-28 Michael Matz <matz@suse.de>
10226 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10227 Wrap force_reg into a sequence, emit it before user.
10229 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
10231 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10233 (arm_legacy_rev): Likewise.
10234 (thumb_legacy_rev): Likewise.
10236 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10238 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10239 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
10240 on MEM's address failed, try avoid_constant_pool_reference and
10241 recurse if it returned something different.
10242 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10243 address, try avoid_constant_pool_reference and recurse if it
10244 returned something different.
10245 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10246 address and avoid_constant_pool_reference returned something
10247 different, don't set have_address.
10249 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
10252 * var-tracking.c (val_store): Add modified argument, obey it.
10254 (count_uses): Move down logging of main.
10255 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10256 don't need resolution.
10257 (emit_notes_in_bb): Likewise.
10259 2010-01-27 Richard Guenther <rguenther@suse.de>
10261 PR middle-end/42878
10262 * tree-inline.c (remap_decl): Delay remapping of SSA name
10263 default definitions until we need them.
10265 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10267 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10268 (rs6000_delegitimize_address): New function.
10270 * config/s390/s390.c (s390_delegitimize_address): Call
10271 delegitimize_mem_from_attrs.
10273 PR middle-end/42874
10274 * tree-inline.c (cannot_copy_type_1): Removed.
10275 (copy_forbidden): Don't forbid copying of functions containing
10276 records/unions with variable length fields.
10278 2010-01-27 Christian Bruel <christian.bruel@st.com>
10282 * config/sh/sh.c (find_barrier): Increase length for non delayed
10283 conditional branches.
10285 2010-01-27 Matthias Klose <doko@ubuntu.com>
10287 * configure.ac (gnu-unique-object): Fix ldd version check.
10288 * configure: Regenerate.
10290 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10292 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10294 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10295 Test for HAVE_GNU_AS value.
10297 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10299 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10300 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10301 INT64_TYPE): Define.
10302 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10303 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10304 INT_LEAST64_TYPE): Define.
10305 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10306 UINT_LEAST64_TYPE): Define.
10307 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10308 INT_FAST64_TYPE): Define.
10309 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10310 UINT_FAST64_TYPE): Define.
10311 (INTMAX_TYPE, UINTMAX_TYPE): Define.
10312 (INTPTR_TYPE, UINTPTR_TYPE): Define.
10313 (SIG_ATOMIC_TYPE): Define.
10315 2010-01-26 Richard Guenther <rguenther@suse.de>
10317 * df-scan.c (df_scan_set_bb_info): Remove assert.
10318 (df_insn_rescan_debug_internal): Merge asserts.
10319 (df_install_ref): Likewise.
10320 (df_mark_reg): Use bitmap_set_range.
10321 (df_hard_reg_used_p): Remove assert.
10322 (df_hard_reg_used_count): Likewise.
10324 2010-01-26 Richard Guenther <rguenther@suse.de>
10326 PR rtl-optimization/42685
10327 * web.c (web_main): Ignore DEBUG_INSNs.
10329 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
10331 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10333 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10334 Fix types of fndecl and arglist parameters.
10336 2010-01-26 Richard Guenther <rguenther@suse.de>
10338 PR middle-end/42806
10339 * tree-eh.c (unsplit_eh): Skip debug insns.
10341 2010-01-26 Richard Guenther <rguenther@suse.de>
10343 PR tree-optimization/42250
10344 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10346 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10349 * omp-low.c (expand_omp_sections): Only use single_pred if
10350 l2_bb is single_pred_p.
10352 2010-01-25 Christian Bruel <christian.bruel@st.com>
10355 * config/sh/sh.c (find_barrier): Increase length for non delayed
10356 conditional branches.
10357 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10359 2010-01-24 David S. Miller <davem@davemloft.net>
10361 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10362 define if not using GAS.
10363 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10364 Likewise. Delete SECTION_MERGE code, which is only applicable
10367 2010-01-24 Mark Mitchell <mark@codesourcery.com>
10370 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10371 mangling of va_list in system headers.
10373 2010-01-23 Toon Moene <toon@moene.org>
10375 * tree-predcom.c (combine_chains): Return NULL, not false.
10377 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
10379 * tree-loop-distribution.c (distribute_loop): Fix declaration and
10380 initialization of variable res to agree with return type.
10382 2010-01-22 Steve Ellcey <sje@cup.hp.com>
10384 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10385 * tree-sra.c: Add include of expr.h.
10387 2010-01-22 Jakub Jelinek <jakub@redhat.com>
10389 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10390 insert the debug stmt on the single non-EH edge from the stmt.
10392 2010-01-22 Richard Henderson <rth@redhat.com>
10395 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10396 the RHS until after generate_subtree_copies has insertted its
10397 code before the current statement.
10399 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
10401 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10403 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10405 2010-01-21 Martin Jambor <mjambor@suse.cz>
10407 PR tree-optimization/42585
10408 * tree-sra.c (struct access): New field grp_total_scalarization.
10409 (dump_access): Dump the new field.
10410 (should_scalarize_away_bitmap): New variable.
10411 (cannot_scalarize_away_bitmap): Likewise.
10412 (sra_initialize): Allocate new bitmaps.
10413 (sra_deinitialize): Free new bitmaps.
10414 (create_access_1): New function.
10415 (create_access): Parts moved to create_access_1.
10416 (type_consists_of_records_p): New function.
10417 (completely_scalarize_record): Likewise.
10418 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10419 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10420 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10422 (analyze_all_variable_accesses): Completely scalarize small eligible
10425 2010-01-21 Martin Jambor <mjambor@suse.cz>
10427 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10429 2010-01-21 Andrew Haley <aph@redhat.com>
10431 * gcc.c (process_command): Move lang_specific_driver before
10432 setting cc_libexec_prefix.
10434 2010-01-21 Richard Guenther <rguenther@suse.de>
10436 PR middle-end/19988
10437 * fold-const.c (negate_expr_p): Pretend only negative
10438 real constants are easily negatable.
10440 2010-01-20 Janis Johnson <janis187@us.ibm.com>
10441 Jason Merrill <jason@redhat.com>
10443 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10444 (TYPE_TRANSPARENT_AGGR): this, for union and record.
10445 * calls.c (initialize argument_information): Handle it.
10446 * c-common.c (handle_transparent_union_attribute): Use new name.
10447 * c-decl.c (finish_struct): Ditto.
10448 * c-typeck.c (type_lists_compatible_p): Ditto.
10449 (convert_for_assignment): Use new name and also handle record.
10450 * function.c (aggregate_value_p): Handle it.
10451 (pass_by_reference): Ditto.
10452 (assign_parm_data_types): Ditto.
10453 * print-tree.c (print_node): Ditto.
10454 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10455 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10456 * tree.c (first_field): New fn.
10458 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
10461 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10462 even when linking statically, for now.
10464 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10467 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10468 without a cselib val.
10469 (count_uses): Accept MO_VAL_SET with no val on stores.
10470 (add_stores): Likewise.
10472 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10474 * var-tracking.c (check_value_val): Add a compile time assertion.
10475 (dv_is_decl_p): Simplify.
10476 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10477 gcc_assert if ENABLE_CHECKING.
10479 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10482 * var-tracking.c: Include tree-flow.h.
10483 (mem_dies_at_call): New.
10484 (dataflow_set_preserve_mem_locs): Use it.
10485 (dataflow_set_remove_mem_locs): Likewise.
10486 (dump_var): Renamed from dump_variable. Adjust all callers.
10487 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
10488 * Makefile.in (var-tracking.o): Adjust deps.
10490 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
10492 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10494 2010-01-20 Richard Guenther <rguenther@suse.de>
10496 PR tree-optimization/42717
10497 * tree-ssa-dce.c (get_live_post_dom): Remove.
10498 (forward_edge_to_pdom): Take an arbitrary edge to copy
10499 degenerate PHI args from.
10500 (remove_dead_stmt): Use the first post-dominator even if it
10501 does not contain live statements as redirection destination.
10503 2010-01-20 Richard Guenther <rguenther@suse.de>
10505 * tree-inline.c (estimate_num_insns): Handle EH builtins.
10507 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10509 * sel-sched.c (create_speculation_check): Remove set but not used
10511 (try_transformation_cache): Remove set but not used variable ds.
10512 (calculate_privileged_insns): Remove set but not used variables
10513 cur_insn and min_spec_insn.
10514 (find_best_expr): Remove set but not used variable avail_n.
10515 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10517 * cgraphunit.c (assemble_thunk): Remove set but not used variable
10519 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10520 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10521 new_scop_exit_edge.
10523 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
10526 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10527 cpu types. Add support for *-sse3 cpu types.
10528 (x86_64-*-*): Ditto.
10530 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10532 PR middle-end/42803
10533 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10534 argument, call initializer_constant_valid_p_1 instead of
10535 initializer_constant_valid_p, pass CACHE to it, return NULL
10536 immediately if first call returns NULL.
10537 (initializer_constant_valid_p_1): New function.
10538 (initializer_constant_valid_p): Use it.
10540 2010-01-20 Thomas Quinot <quinot@adacore.com>
10542 * tree.def (PLACEHOLDER_EXPR): Fix comment.
10544 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10546 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10547 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10548 (loc_list_from_tree): Don't handle unsigned division. Handle
10549 signed modulo using DW_OP_{over,over,div,mul,minus}.
10550 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10551 modulo instead of signed.
10553 2010-01-20 DJ Delorie <dj@redhat.com>
10555 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10557 (h8300_emit_stack_adjustment): Propogate it.
10559 (h8300_expand_prologue): Likewise.
10560 (h8300_expand_epilogue): Likewise.
10562 2010-01-19 Michael Matz <matz@suse.de>
10564 PR tree-optimization/41783
10565 * tree-data-ref.c (toplevel): Include flags.h.
10566 (dump_data_dependence_relation): Also dump the inputs if the
10567 result will be unknown.
10568 (split_constant_offset_1): Look through some conversions.
10569 * tree-predcom.c (determine_roots_comp): Restart a new chain if
10570 the offset from last element is too large.
10571 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10572 (reassociate_to_the_same_stmt): Handle vector registers.
10573 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10574 (e.g. conversions).
10575 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10576 wide_prolog_niters argument, emit widening instructions.
10577 (vect_do_peeling_for_alignment): Adjust caller, use widened
10578 variant of the iteration cound.
10579 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10581 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10584 * config/arm/neon-testgen.m (emit_automatics): New parameter
10585 features. Adjust for Fixed_return_reg feature.
10586 (test_intrinsic): Call emit_automatics with new feature.
10587 * config/arm/neon.ml: Update copyright years.
10588 (features): New Fixed_return_reg feature.
10589 (ops): Update feature for Vget_low.
10591 2010-01-19 Jakub Jelinek <jakub@redhat.com>
10593 PR tree-optimization/42719
10594 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10598 * fwprop.c (all_uses_available_at): Return false if def_set dest
10599 is a REG that is used in def_insn.
10601 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
10603 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10605 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10606 Add argument names.
10608 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10610 * target.h (struct gcc_target) <secondary_reload>: Change type
10611 of last argument to secondary_reload_info *.
10613 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
10616 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
10617 memory references with unaligned offsets. Remove CQImode handling.
10618 (unaligned_memory_operand): Return 1 for memory references with
10619 unaligned offsets. Remove CQImode handling.
10621 2010-01-18 Richard Guenther <rguenther@suse.de>
10623 PR middle-end/39954
10624 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10627 2010-01-18 Richard Guenther <rguenther@suse.de>
10629 PR tree-optimization/42781
10630 * tree-ssa-structalias.c (find_what_var_points_to): Skip
10631 restrict processing only if the original variable was artificial.
10633 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
10635 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10636 find number of popped argument bytes.
10638 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10639 Fix the text that describes the return value for invalid insns.
10641 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
10643 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10644 Clarify what 'cost of the -dependence' is. Fix quoting.
10646 * toplev.c (default_get_pch_validity): Rename argument to "sz".
10647 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10649 2010-01-17 Jakub Jelinek <jakub@redhat.com>
10651 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10652 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10654 2010-01-17 Richard Guenther <rguenther@suse.de>
10656 PR middle-end/42248
10657 * function.c (split_complex_args): Take a VEC to modify.
10658 (assign_parms_augmented_arg_list): Build a VEC instead of
10659 a chain of PARM_DECLs.
10660 (assign_parms_unsplit_complex): Take a VEC of arguments.
10661 Do not fixup unmodified parms.
10662 (assign_parms): Deal with the VEC.
10663 (gimplify_parameters): Likewise.
10665 2010-01-17 Richard Guenther <rguenther@suse.de>
10667 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10668 node existence check.
10669 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10670 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10671 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10672 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10673 (gimple_execute_on_growing_pred): Likewise.
10675 2010-01-17 Richard Guenther <rguenther@suse.de>
10677 PR tree-optimization/42773
10678 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10679 (compute_antic_aux): Likewise.
10680 (compute_partial_antic_aux): Likewise.
10682 2010-01-17 Jie Zhang <jie.zhang@analog.com>
10685 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10688 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
10690 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
10693 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
10694 Fix markup for strict argument.
10696 (TARGET_SCHED_REORDER2): Fix argument types.
10698 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
10699 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
10701 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
10702 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
10704 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
10707 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
10708 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
10709 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
10710 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
10711 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
10713 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
10715 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
10717 (TARGET_ASM_RELOC_RW_MASK): Add return type.
10718 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
10720 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
10722 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
10725 (TARGET_ASM_NAMED_SECTION): Fix argument list.
10727 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
10728 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
10730 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
10732 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
10734 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
10735 referring to it. Fix language.
10737 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
10739 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
10741 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
10743 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
10745 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
10746 '@var{stream}. Remove stray 'and'.
10748 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
10750 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
10752 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
10754 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
10755 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
10757 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
10758 Fix description of return value.
10759 Rename argument "sz" to "len."
10761 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
10762 Clarify meaning of 'true' return value.
10764 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
10766 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
10767 rep_mode versus mode_rep.
10769 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
10771 (TARGET_BUILTIN_DECL): Fix name.
10773 (TARGET_COMMUTATIVE_P): Fix type of first argument.
10775 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
10777 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
10779 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
10781 (TARGET_RELAXED_ORDERING): Use @deftypevr.
10783 (TARGET_GET_DRAP_RTX): Note that this is a hook.
10786 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
10787 Rename argument tm_fn to md_fn.
10789 (TARGET_OPTION_PRINT): Fix argument list.
10791 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
10794 * config/i386/i386.c (ix86_fixup_binary_operands):
10795 Revert FMA4 fixup of operands.
10797 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10800 * Makefile.in (write_entries_to_file, install-plugin):
10801 Use \012 instead of \n with tr.
10803 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
10805 * configure.ac (HAVE_AS_REF): New C macro.
10806 * configure: Regenerate.
10807 * config.in: Likewise.
10808 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
10810 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
10813 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
10815 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
10817 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
10819 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
10821 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
10823 (TARGET_IN_SMALL_DATA_P): Fix argument type.
10825 (TARGET_BINDS_LOCAL_P): Fix argument type.
10827 (TARGET_ASM_FILE_END): Use prototype.
10829 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
10831 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
10833 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
10835 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
10837 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
10838 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
10840 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
10841 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
10843 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
10844 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
10845 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
10846 (TARGET_ADDR_SPACE_CONVERT): Likewise.
10848 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
10850 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
10852 (TARGET_INIT_BUILTINS): Use prototype.
10854 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
10855 Put 'const char *' in braces. Fix parameter types.
10856 (TARGET_INVALID_CONVERSION): Fix parameter types.
10857 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
10858 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
10860 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
10863 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
10865 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
10867 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
10869 * doc/tm.texi (TARGET_HELP): Fix return type.
10871 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
10872 in braces. Fix argument types.
10874 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
10876 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
10878 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
10880 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
10881 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
10883 (TARGET_MANGLE_TYPE): Fix argument types.
10885 (TARGET_IRA_COVER_CLASSES): Use prototype.
10887 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
10889 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
10891 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
10893 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
10895 (TARGET_CALLEE_COPIES): Fix argument types.
10897 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
10899 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
10901 (TARGET_FUNCTION_VALUE): Fix argument types.
10903 (TARGET_RETURN_IN_MSB): Fix argument type.
10905 (TARGET_RETURN_IN_MEMORY): Fix argument types.
10907 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
10909 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
10911 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
10912 agree with return type.
10914 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
10916 2010-01-15 Jing Yu <jingyu@google.com>
10918 PR rtl-optimization/42691
10919 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
10920 a pseudo to a constant and are merged, and adjust comments.
10922 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
10924 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
10926 2010-01-15 Richard Guenther <rguenther@suse.de>
10928 PR middle-end/42739
10929 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
10930 labels of computed or non-local gotos to the destination.
10931 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
10932 landing pad label is the first label.
10934 2010-01-15 Richard Guenther <rguenther@suse.de>
10936 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
10938 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10941 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
10942 to allow generation of the xssqrtdp instruction on power7.
10943 (sqrtdf2_fpr): Ditto.
10945 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10947 PR middle-end/42674
10948 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
10949 functions with noreturn attribute.
10952 * varasm.c (declare_weak): Add weak attribute to decl if it
10953 doesn't have one already.
10954 (assemble_external): Only add decls to weak_decls if they also
10955 have weak attribute.
10957 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
10959 * var-tracking.c (var_reg_delete): Don't delete the association
10960 between REGs and values or one-part variables if the register
10963 2010-01-14 Jakub Jelinek <jakub@redhat.com>
10966 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
10967 because its first operand is a non-localized variable.
10969 2010-01-14 Martin Jambor <mjambor@suse.cz>
10971 PR tree-optimization/42706
10972 * tree-sra.c (encountered_recursive_call): New variable.
10973 (encountered_unchangable_recursive_call): Likewise.
10974 (sra_initialize): Initialize both new variables.
10975 (callsite_has_enough_arguments_p): New function.
10976 (scan_function): Call decl and flags check only for IPA-SRA, check
10977 whether there is a recursive call and whether it has enough arguments.
10978 (all_callers_have_enough_arguments_p): New function.
10979 (convert_callers): Look for recursive calls only when
10980 encountered_recursive_call is set.
10981 (ipa_early_sra): Bail out either if
10982 !all_callers_have_enough_arguments_p or
10983 encountered_unchangable_recursive_call.
10985 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
10987 * sel-sched.c: Add 2010 to copyright years.
10988 * sel-sched-ir.c: Likewise.
10989 * sel-sched-ir.h: Likewise.
10991 2010-01-14 Martin Jambor <mjambor@suse.cz>
10993 PR tree-optimization/42714
10994 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
10995 constructors specially.
10997 2010-01-14 Andi Kleen <ak@linux.intel.com>
10999 * config/i386/drivers-i386.c (detect_caches_intel):
11000 Add l2sizekb parameter and fill in.
11001 (host_detect_local_cpu): Add l2sizekb, fill in.
11002 Add Atom small cache heuristic.
11004 2010-01-14 Andi Kleen <ak@linux.intel.com>
11006 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11007 Add level3 parameter and fill in.
11008 (detect_caches_intel): Handle level3 cache.
11010 2010-01-14 Andi Kleen <ak@linux.intel.com>
11012 * config/i386/drivers-i386.c (host_detect_local_cpu):
11013 Fix core duo detection.
11015 2010-01-14 Andi Kleen <ak@linux.intel.com>
11017 * config/i386/drivers-i386.c (host_detect_local_cpu):
11018 Fix Atom detection.
11020 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11022 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11023 (rs6000_variable_issue_1): this. Use...
11024 (rs6000_variable_issue): here. Reimplement. Print debug info.
11026 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11028 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11029 sel_restore_notes. Update all callers. Call reemit_notes
11032 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11034 PR rtl-optimization/42246
11035 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11038 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11040 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11041 all successors is the same as number of successors in current region.
11043 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11045 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11046 to rename is not separable. Otherwise check that its LHS is not NULL.
11048 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11050 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11052 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11054 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11055 available registers when failed to discover LHS register class.
11056 Fix indentation. Update comment.
11058 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11059 Alexander Monakov <amonakov@ispras.ru>
11061 PR rtl-optimization/42389
11062 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11064 (advance_state_on_fence): Likewise.
11065 (sel_target_adjust_priority): Print debug output only when
11066 sched_verbose >= 4, not 2.
11067 (get_expr_cost): Do not issue all unique insns on the next cycle.
11068 (fill_insns): Initialize can_issue_more from the value saved
11070 * sel-sched-ir.c (flist_add): New parameter issue_more.
11071 Init FENCE_ISSUE_MORE with it.
11072 (merge_fences): Likewise.
11073 (init_fences): Update call to flist_add.
11074 (add_to_fences, add_clean_fence_to_fences)
11075 (add_dirty_fence_to_fences): Likewise.
11076 (move_fence_to_fences): Update call to merge_fences.
11077 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11079 * sel-sched-ir.h (struct _fence): New field issue_more.
11080 (FENCE_ISSUE_MORE): New accessor macro.
11082 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11084 PR rtl-optimization/42388
11085 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11086 that have no predecessors nor successors. Do not call move_bb_info
11087 for empty blocks outside of current region.
11089 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11091 PR rtl-optimization/42294
11092 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11093 * sel-sched.c (move_exprs_to_boundary): Transitively add all
11094 originators' originators.
11096 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11098 PR rtl-optimization/39453
11099 PR rtl-optimization/42246
11100 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11102 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11104 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11105 Alexander Monakov <amonakov@ispras.ru>
11107 PR middle-end/42245
11108 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
11109 (maybe_tidy_empty_bb): ... here. Make static. Add new
11110 argument. Update all callers.
11111 (tidy_control_flow): ... and here. Recompute topological order
11112 of basic blocks in region if necessary.
11113 (sel_redirect_edge_and_branch): Change return type. Return true
11114 if topological order might have been invalidated.
11115 (purge_empty_blocks): Export and move from...
11116 * sel-sched.c (purge_empty_blocks): ... here.
11117 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11118 (maybe_tidy_empty_bb): Delete prototype.
11119 (purge_empty_blocks): Declare.
11121 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11123 PR rtl-optimization/42249
11124 * sel-sched.c (try_replace_dest_reg): When chosen register
11125 and original register is the same, do not bail out early, but
11126 still check all original insns for validity of replacing destination
11127 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11130 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11133 Port from no-undefined-overflow branch:
11134 2009-03-09 Richard Guenther <rguenther@suse.de>
11136 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11138 2010-01-14 Richard Guenther <rguenther@suse.de>
11141 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11143 2010-01-14 Ira Rosen <irar@il.ibm.com>
11145 PR tree-optimization/42709
11146 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11147 as scalar type in creation of constant vector operand.
11149 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11152 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11153 (check-parallel-%): Match `testsuite' directory component only
11156 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
11158 PR translation/39521
11159 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11162 2010-01-13 Richard Guenther <rguenther@suse.de>
11164 PR tree-optimization/42730
11165 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11168 2010-01-13 Steve Ellcey <sje@cup.hp.com>
11171 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11172 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11175 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
11177 * config/bfin/libgcc-bfin.ver: Regenerate based on current
11178 libgcc-std.ver. Add entries for ___smulsi3_highpart and
11179 ___umulsi3_highpart.
11181 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11182 rather than schedule_insns if the pass is enabled.
11184 2010-01-13 Martin Jambor <mjambor@suse.cz>
11186 PR tree-optimization/42704
11187 * tree-sra.c (sra_modify_assign): Do not delete assignments to
11190 2010-01-13 Martin Jambor <mjambor@suse.cz>
11192 PR tree-optimization/42703
11193 * tree-sra.c (analyze_access_subtree): Check that we can build a
11194 reference to the original data within the aggregate.
11196 2010-01-13 Richard Guenther <rguenther@suse.de>
11198 PR tree-optimization/42705
11199 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11201 2010-01-13 Richard Guenther <rguenther@suse.de>
11203 PR middle-end/42716
11204 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11206 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11209 * var-tracking.c (values_to_unmark): New variable.
11210 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11211 values_to_unmark vector. Moved body to...
11212 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11213 instead queue it into values_to_unmark vector.
11214 (vt_find_locations): Free values_to_unmark vector.
11216 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
11218 * config/s390/s390.c (override_options): Set
11219 default of max-pending-list-length to 256
11221 2010-01-13 Richard Guenther <rguenther@suse.de>
11224 * tree-pass.h (PROP_gimple_lcx): New.
11225 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11226 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11227 before the final cleanup_eh.
11228 (dump_properties): Dump PROP_gimple_lcx.
11229 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11230 (tree_lower_complex_O0): Remove.
11231 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11232 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
11233 tree_lower_complex, schedule TODO_update_ssa.
11234 * lto-streamer-out.c (output_function): Stream the functions
11236 * lto-streamer-in.c (input_function): Likewise.
11237 (lto_read_body): Do not override them here.
11239 2010-01-12 Joseph Myers <joseph@codesourcery.com>
11242 * c-typeck.c (build_c_cast): Fold value cast to union type before
11243 wrapping it in a CONSTRUCTOR.
11245 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11247 PR rtl-optimization/42699
11248 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11251 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11253 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11254 SUBTARGET_WARN_UNUSED_SPEC): Move ...
11255 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11256 SUBTARGET_WARN_UNUSED_SPEC): ... here
11257 * config/mips/iris5.h (LIBGCC_SPEC): Define.
11259 2010-01-12 Julian Brown <julian@codesourcery.com>
11261 * config/arm/neon-schedgen.ml (Utils): Don't try to
11262 open missing module.
11263 (find_with_result): New.
11265 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11268 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11269 sharing when canonicalizing ({lt,ge}u (plus a b) b).
11271 PR tree-optimization/42645
11272 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
11273 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11274 decl_map, set processing_debug_stmt to -1 and return name without
11277 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
11279 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11280 binutils version, and reword target configuration description.
11282 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11284 * config/avr/avr.h (LINKER_NAME): Remove.
11286 2010-01-11 Janis Johnson <janis187@us.ibm.com>
11289 * config/rs6000/rs6000.c (rs6000_override_options): On targets
11290 that support VSX, warn for -mno-altivec if vsx is not disabled,
11293 2010-01-11 Joseph Myers <joseph@codesourcery.com>
11294 Shujing Zhao <pearly.zhao@oracle.com>
11296 PR translation/42469
11297 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11298 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11299 character between option name and help text.
11300 * c.opt (imultilib): Likewise.
11302 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
11304 * lto-streamer-out.c (output_unreferenced_globals): Output static
11307 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
11309 PR rtl-optimization/42621
11310 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11311 optimizing for size.
11312 (duplicate_computed_gotos): Remove now-redundant check.
11314 2010-01-10 Steve Ellcey <sje@cup.hp.com>
11317 * configure.ac: Save and restore LDFLAGS and LIBS
11318 * configure: Regenerate.
11320 2010-01-10 Richard Guenther <rguenther@suse.de>
11322 PR middle-end/42667
11323 * builtins.c (fold_builtin_strlen): Add type argument and
11324 convert the resulting length to it.
11325 (fold_builtin_1): Adjust.
11327 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11329 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11330 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11332 (num_insns_constant_wide): Adjust for that change.
11334 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11337 * web.c (union_defs): Add used argument, to combine uses of
11338 uninitialized regs.
11339 (entry_register): Adjust type and tests of used argument.
11340 (web_main): Widen used for new use. Pass it to union_defs.
11341 * df.h (union_defs): Adjust prototype.
11343 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11346 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11347 uses in new incoming argument. Free body.
11348 (reset_debug_uses_in_loop): New.
11349 (analyze_insn_to_expand_var): Call the latter if the former found
11350 anything. Fix whitespace. Reject invalid dest overlaps before
11351 going through all insns in the loop.
11353 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11356 * haifa-sched.c (dying_use_p): Debug insns don't count.
11358 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11360 PR middle-end/42363
11361 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11362 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11363 (verify_gimple_call): Reject LHS in noreturn calls.
11365 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11369 * tree-vect-loop-manip.c (adjust_info): New type.
11370 (adjust_vec): New pointer to vector.
11371 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11372 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11373 (slpeel_update_phis_for_duplicate_loop): Use them.
11374 (slpeel_update_phi_nodes_for_guard1): Likewise.
11375 (slpeel_update_phi_nodes_for_guard2): Likewise.
11376 (slpeel_tree_peel_loop_to_edge): Likewise.
11377 (vect_update_ivs_after_vectorizer): Likewise.
11379 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11381 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11382 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11384 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11386 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11387 bogus uninitialized warning.
11389 2010-01-09 Richard Guenther <rguenther@suse.de>
11391 PR middle-end/42512
11392 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11393 the evolution is compatible with the initial condition.
11395 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11397 * gcc.c (process_command): Update copyright notice dates.
11398 * gcov.c (print_version): Likewise.
11399 * gcov-dump.c (print_version): Likewise.
11400 * mips-tfile.c (main): Likewise.
11401 * mips-tdump.c (main): Likewise.
11403 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11406 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11408 (rotlhi3_8): Delete.
11410 (rotlsi3_8): Delete.
11411 (rotlsi3_16): Delete.
11412 (rotlsi3_24): Delete.
11413 (rotl<mode>3): New.
11414 (*rotw<mode>3): New.
11415 (*rotb<mode>3): New.
11416 * config/avr/avr.c (avr_rotate_bytes): New function.
11417 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11419 2010-01-08 Steve Ellcey <sje@cup.hp.com>
11422 * configure.ac: Modify -rdynamic check.
11423 * configure: Regenerate.
11425 2010-01-08 DJ Delorie <dj@redhat.com>
11427 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11428 register popping order.
11430 2010-01-08 Richard Guenther <rguenther@suse.de>
11433 * c.opt (fsigned-char): Also let LTO handle this option.
11434 (funsigned-char): Likewise.
11436 2010-01-07 Richard Guenther <rguenther@suse.de>
11438 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11439 (gimple_op): Likewise.
11440 (gimple_op_ptr): Likewise.
11441 (gimple_assign_set_lhs): Remove gcc_assert.
11442 (gimple_assign_set_rhs1): Likewise.
11443 (gimple_assign_set_rhs2): Likewise.
11444 (gimple_call_set_lhs): Likewise.
11445 (gimple_call_set_fn): Likewise.
11446 (gimple_call_set_fndecl): Likewise.
11447 (gimple_call_fndecl): Likewise.
11448 (gimple_call_return_type): Likewise.
11449 (gimple_call_set_chain): Likewise.
11450 (gimple_call_num_args): Likewise.
11451 (gimple_call_set_arg): Likewise.
11452 (gimple_cond_set_code): Likewise.
11453 (gimple_cond_set_lhs): Likewise.
11454 (gimple_cond_set_rhs): Likewise.
11455 (gimple_cond_set_true_label): Likewise.
11456 (gimple_cond_set_false_label): Likewise.
11457 (gimple_label_set_label): Likewise.
11458 (gimple_goto_set_dest): Likewise.
11459 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11460 (gimple_debug_bind_get_value): Likewise.
11461 (gimple_debug_bind_get_value_ptr): Likewise.
11462 (gimple_debug_bind_set_var): Likewise.
11463 (gimple_debug_bind_set_value): Likewise.
11464 (gimple_debug_bind_reset_value): Likewise.
11465 (gimple_debug_bind_has_value_p): Likewise.
11466 (gimple_return_retval_ptr): Remove gcc_assert.
11467 (gimple_return_retval): Likewise.
11468 (gimple_return_set_retval): Likewise.
11469 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11470 (safe_referenced_var_iterator): Remove.
11471 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11472 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11473 (fill_referenced_var_vec): Remove.
11474 (first_readonly_imm_use): Remove redundant gcc_assert.
11475 (phi_arg_index_from_use): Combine gcc_asserts.
11476 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11477 (first_imm_use_stmt): Remove redundant gcc_assert.
11478 * tree-cfg.c (verify_gimple_call): Verify function and chain
11479 operands. Verify arguments.
11480 (verify_types_in_gimple_stmt): Verify condition code and labels.
11482 2010-01-07 Richard Guenther <rguenther@suse.de>
11484 PR tree-optimization/42641
11485 * sese.c (rename_map_elt_info): Use the SSA name version, do
11488 2010-01-07 Jakub Jelinek <jakub@redhat.com>
11490 PR tree-optimization/42625
11491 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11492 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11494 2010-01-07 Duncan Sands <baldrick@free.fr>
11496 * Makefile.in (PLUGIN_HEADERS): Add version.h.
11498 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
11501 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11502 note itself is not function_invariant_p.
11504 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
11506 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11507 Do not add the DF_NOTE problem.
11508 * store-motion.c (execute_rtl_store_motion): Likewise.
11510 2010-01-07 Martin Jambor <mjambor@suse.cz>
11512 PR tree-optimization/42157
11513 * tree-sra.c (compare_access_positions): Stabilize sort if both
11514 accesses have integer types, return zero immediately if they are the
11517 2010-01-06 Richard Henderson <rth@redhat.com>
11519 PR middle-end/41883
11520 * haifa-sched.c (add_to_note_list): Merge into ...
11521 (concat_note_lists): ... here, and ...
11522 (unlink_other_notes, rm_other_notes): Merge into...
11523 (remove_notes): ... here. Create REG_SAVE_NOTEs for
11524 NOTE_INSN_EPILOGUE_BEG.
11526 2010-01-06 Richard Guenther <rguenther@suse.de>
11528 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11529 not inline regular functions into always-inline functions.
11531 2010-01-06 Nick Clifton <nickc@redhat.com>
11533 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11534 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11536 (OVERRIDE_OPTIONS): Delete.
11537 (OPTIMIZATION_OPTIONS): Define.
11538 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11539 * config/rx/rx.c (rx_handle_option): Issue an error message if
11540 -mcpu=rx200 and -fpu are used together.
11541 (rx_set_optimization_options): New function. Issue an error
11542 message if an optimization attribute attempts to reset the FPU/
11543 math optimization pairing.
11544 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11545 * config/rx/rx.opt: Set the default to 32-bit doubles.
11546 * config/rx/t-rx: Add multilibs for -nofpu option.
11547 * doc/invoke.texi: Update documentation of RX options.
11549 2010-01-06 Richard Guenther <rguenther@suse.de>
11551 * tree-ssa-pre.c (name_to_id): New global.
11552 (alloc_expression_id): Simplify SSA name handling.
11553 (lookup_expression_id): Likewise.
11554 (init_pre): Zero name_to_id.
11555 (fini_pre): Free it.
11557 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
11559 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11561 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
11564 * config/i386/sse.md (smaxv2di3): New.
11565 (umaxv2di3): Likewise.
11566 (sminv2di3): Likewise.
11567 (uminv2di3): Likewise.
11569 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
11572 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11573 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11574 (legitimize_tls_address): Likewise.
11575 (sparc_tls_referenced_p): Likewise.
11576 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11577 and adjust calls to legitimize_pic_address.
11578 (legitimate_constant_p) Use sparc_tls_referenced_p.
11579 (legitimate_pic_operand_p): Likewise.
11580 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11581 (sparc_tls_symbol_ref_1): Delete.
11582 (sparc_tls_referenced_p): Make static, recognize specific patterns.
11583 (legitimize_tls_address): Make static, handle CONST patterns.
11584 (legitimize_pic_address): Make static, remove unused parameter and
11585 adjust recursive calls.
11586 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11587 and adjust call to legitimize_pic_address.
11588 (sparc_output_mi_thunk): Likewise.
11590 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
11591 H.J. Lu <hongjiu.lu@intel.com>
11594 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11595 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11596 operands to make them signed.
11599 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11602 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11603 GTU to GT for V4SI and V2DI.
11605 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11606 (umin<mode>3): Removed.
11608 (uminv4si3): Likewise.
11610 2010-01-05 Martin Jambor <mjambor@suse.cz>
11612 PR tree-optimization/42462
11613 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
11614 current_function_decl to helper functions and macros.
11616 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11619 * flags.h: Don't include real.h.
11620 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11621 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11622 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11623 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11624 * dominance.c: Update copyright.
11625 * gimple.c (walk_gimple_op): Remove inline.
11626 * tree-ssa-reassoc.c: Include real.h.
11627 * Makefile.in (FLAGS_H): Remove $(REAL_H).
11628 (tree-ssa-reassoc.o): Depend on $(REAL_H).
11630 2010-01-05 Nick Clifton <nickc@redhat.com>
11632 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11633 register to push into the stack frame when the accumulator has to
11634 be saved during interrupts.
11636 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
11638 * doc/invoke.texi: Remove the documentation about option
11639 -Wunreachable-code.
11640 * common.opt (Wunreachable-code): Preserved for backward
11642 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11643 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11644 the backward compatibility flag section.
11646 2010-01-05 Richard Guenther <rguenther@suse.de>
11648 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11650 2010-01-05 Jakub Jelinek <jakub@redhat.com>
11653 * cfgexpand.c (expand_one_var): Diagnose too large variables.
11655 PR tree-optimization/42508
11656 * tree-sra.c (convert_callers): Check for recursive call
11657 by comparing cgraph nodes instead of decls.
11658 (modify_function): Call ipa_modify_formal_parameters also
11659 on all same_body aliases.
11661 * cgraphunit.c (cgraph_materialize_all_clones): Compare
11662 cgraph nodes when checking for same_body aliases.
11664 2010-01-05 Richard Guenther <rguenther@suse.de>
11666 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11667 allocation and lookup.
11668 (get_or_alloc_expr_for_constant): Likewise.
11669 (phi_translate): Sink allocation.
11671 2010-01-04 Richard Guenther <rguenther@suse.de>
11673 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11674 a new entry only if needed.
11675 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11676 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11678 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11680 (phi_translate): Handle CONSTANTs early.
11682 2010-01-04 Martin Jambor <mjambor@suse.cz>
11684 PR tree-optimization/42398
11685 * tree-sra.c (struct access): Removed flag grp_different_types.
11686 (dump_access): Do not dump the removed flag.
11687 (sort_and_splice_var_accesses): Do not set the removed flag.
11688 (sra_modify_expr): Check for type compatibility directly.
11690 2010-01-04 Martin Jambor <mjambor@suse.cz>
11692 PR tree-optimization/42366
11693 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
11694 edges with variable number of parameters.
11695 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
11696 flag instead of asserting it.
11697 (ipa_read_node_info): Read uses_analysis_done flag.
11699 2010-01-04 Richard Guenther <rguenther@suse.de>
11701 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
11702 iterative_hash_* as intended.
11703 (vn_reference_compute_hash): Likewise. Simplify hashing
11705 (vn_reference_lookup_2): Likewise.
11706 (vn_nary_op_compute_hash): Likewise.
11707 (vn_phi_compute_hash): Likewise.
11708 (expressions_equal_p): Remove strange code.
11709 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
11710 (pre_expr_hash): Likewise. Simplify hashing SSA names.
11711 (bitmap_insert_into_set_1): Take value-id as parameter.
11712 (add_to_value): Pass it.
11713 (bitmap_insert_into_set): Likewise.
11714 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
11716 2010-01-04 Jakub Jelinek <jakub@redhat.com>
11719 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
11720 (do_self_spec): For switches with SWITCH_IGNORE set set also
11721 SWITCH_IGNORE_PERMANENTLY.
11722 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
11725 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
11727 * lto-streamer-out.c (output_unreferenced_globals): Output the full
11728 tree of an unreferenced global var.
11730 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11733 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11734 GTU to GT for V4SI and V2DI.
11736 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11737 (umin<mode>3): Removed.
11739 (uminv4si3): Likewise.
11741 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11744 * collect2.c (main): Turn on trace in collect2 if -v is passed
11747 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
11749 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
11750 description of expression operand.
11752 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
11754 * configure.ac: Add install-html to target_list for Make-hooks.
11755 * configure: Regenerate.
11756 * fortran/Make-lang.in (F95_HTMLFILES): New.
11757 (fortran.html): Use it.
11758 (fortran.install-html): New.
11759 * Makefile.in (install-html): Add lang.install-html.
11760 * java/Make-lang.in (JAVA_HTMLFILES): New.
11761 (java.html): Use it.
11762 (java.install-html): New.
11763 * objc/Make-lang.in (objc.install-html): New.
11764 * objcp/Make-lang.in (obj-c++.install-html): New.
11765 * cp/Make-lang.in (c++.install-html): New.
11766 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
11767 * lto/Make-lang.in (lto.install-html): New.
11769 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11772 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
11774 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
11776 PR rtl-optimization/41862
11777 * store-motion.c (store_killed_in_insn, compute_store_table,
11778 remove_reachable_equiv_notes, replace_store_insn,
11779 build_store_vectors): Ignore all DEBUG_INSNs.
11781 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11784 * common.opt: Add dumpdir.
11786 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
11788 (option_map): Add --dumpdir.
11790 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
11792 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
11794 * opts.c (decode_options): Try dump_dir_name first if
11795 dump_base_name isn't an absolute path.
11796 (common_handle_option): Handle OPT_dumpdir.
11798 * toplev.c (dump_dir_name): New.
11799 (print_switch_values): Also ignore -dumpdir.
11801 * toplev.h (dump_dir_name): New.
11803 2010-01-03 Richard Guenther <rguenther@suse.de>
11805 PR tree-optimization/42589
11806 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
11807 double-word expansion of bswap32.
11809 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
11811 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
11812 with BLOCK_FOR_INSN.
11813 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
11814 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
11815 noce_process_if_block): Likewise.
11816 * gcse.c (compute_local_properties, insert_expr_in_table,
11817 insert_set_in_table, canon_list_insert, find_avail_set,
11818 pre_insert_copy_insn): Likewise.
11820 * basic-block.h (BLOCK_NUM): Move from here...
11821 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
11823 2010-01-03 Richard Guenther <rguenther@suse.de>
11825 PR tree-optimization/42438
11826 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
11827 contains_may_not_return_call flag.
11828 (BB_MAY_NOTRETURN): New.
11829 (valid_in_sets): Trapping nary operations are not valid
11830 in blocks that may not return.
11831 (insert_into_preds_of_block): Remove check for trapping expressions.
11832 (compute_avail): Compute also BB_MAY_NOTRETURN.
11834 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
11836 * doc/invoke.texi: Add 2010 to copyright years.
11838 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
11840 * config/sparc/sparc.c: Fix formatting nits.
11842 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11843 Alexander Monakov <amonakov@ispras.ru>
11845 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
11847 2010-01-02 Richard Guenther <rguenther@suse.de>
11849 PR middle-end/42577
11850 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
11851 (simplify_switch_using_ranges): Mark to be removed edges
11854 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11856 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11858 * collect2.c (scan_libraries): Add missing argument in call to
11861 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
11864 * config/alpha/predicates.md (aligned_memory_operand): Return false
11866 (unaligned_memory_operand): Return true for CQImode.
11867 * config/alpha/alpha.c (get_aligned_mem): Assert that location
11868 doesn not cross aligned SImode word boundary.
11870 2010-01-02 Anatoly Sokolov <aesok@post.ru>
11872 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
11874 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
11875 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
11877 2010-01-02 Richard Guenther <rguenther@suse.de>
11880 * toplev.c (compile_file): Emit LTO marker properly. Change
11881 it to __gnu_lto_v1.
11882 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
11884 2010-01-01 Richard Guenther <rguenther@suse.de>
11887 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
11889 2010-01-01 Richard Guenther <rguenther@suse.de>
11892 * c-decl.c (grokdeclarator): For zero-size arrays force
11893 structural equality checks as layout_type does.
11895 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11897 * builtins.c: Update copyright to 2010.
11899 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11902 * lto-streamer-out.c (produce_asm): Revert the last change.
11903 (copy_function): Likewise.
11905 * lto-streamer.c (lto_get_section_name): Skip any leading
11908 2010-01-01 Richard Guenther <rguenther@suse.de>
11910 PR middle-end/42559
11911 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
11915 Copyright (C) 2010 Free Software Foundation, Inc.
11917 Copying and distribution of this file, with or without modification,
11918 are permitted in any medium without royalty provided the copyright
11919 notice and this notice are preserved.