1 2010-05-29 Richard Guenther <rguenther@suse.de>
3 * lto-streamer.c (cached_bp): New global variable.
4 (bitpack_create): Return the cached bitpack, if available.
5 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6 (bp_pack_value): Remove redundant asserts.
8 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
11 * tree-if-conv.c (is_true_predicate): New.
12 (is_predicated): Use is_true_predicate.
13 (add_to_predicate_list): Same. Do not use unshare_expr.
14 (add_to_dst_predicate_list): Same.
16 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
18 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
20 (predicate_bbs): Same.
21 (clean_predicate_lists): Same.
22 (find_phi_replacement_condition): Do not AND the predicate from
25 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
28 * Makefile.in (build/gencondmd.o): Add a missing `\'.
30 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
34 (negdf2): Adjust expander pattern and use negdf2_slow.
37 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
39 * basic-block.h (struct control_flow_graph): Move last_label_uid field up.
40 * df.h (struct df_base_ref): Move regno field up.
41 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
42 * expr.h (struct separate_ops): Move location field up.
43 * optabs.h (struct optab_d): Move libcall_basename field down.
44 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
45 * config/i386/i386.h (struct machine_function): Convert call_abi field
46 into a bitfield. Move cfa field to the end of the structure.
48 2010-05-29 Jan Hubicka <jh@suse.cz>
50 * varpool.c (varpool_get_node): Fix lookup.
52 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
54 * config/spu/spu-protos.h: Do not include rtl.h. Protect
55 RTL specific prototypes with #ifdef RTX_CODE.
56 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
57 * config/spu/t-spu-elf: Fix dependencies.
59 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
61 2010-05-29 Mike Stump <mikestump@comcast.net>
64 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
65 TM_H when building to avoid dependency loops.
67 2010-05-29 Jan Hubicka <jh@suse.cz>
69 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
70 refs and body; not the whole node for masters of materialized
73 2010-05-29 Mike Stump <mikestump@comcast.net>
75 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
77 2010-05-29 Jan Hubicka <jh@suse.cz>
79 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
80 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
81 use of clone_function_name.
82 * cgraph.h (cgraph_create_virtual_clone,
83 cgraph_function_versioning): update prototypes.
84 (clone_function_name): Declare.
85 * ipa-cp.c (ipcp_insert_stage): Update call of
86 cgraph_create_virtual_clone.
87 * omp-low.c (create_omp_child_function_name): Use
88 cgraph_create_virtual_clone.
89 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
90 (cgraph_function_versioning): Take SUFFIX argument; produce new name
93 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
95 * vec.h: Include statistics.h
96 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
99 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
101 * c-lex.c: Do not include c-tree.h.
102 * c-pretty-print.c: Likewise.
103 * c-opts.c: Likewise.
104 * c-gimplify.c: Likewise.
105 * c-common.c: Likewise.
106 * c-dump.c: Likewise. Include c-common.h.
108 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
110 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
111 before including diagnostic-core.h.
112 (c_cpp_error): New prototype moved from c-tree.h.
113 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
114 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
115 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
116 (c_cpp_error): Prototype moved to c-common.h.
117 * Makefile.in: Update dependency for C_COMMON_H.
119 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
121 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
122 * c-common.c (c_register_addr_space): Remove here.
123 * c-decl.c (c_register_addr_space): Re-add here.
125 2010-05-28 Mike Stump <mikestump@comcast.net>
127 * config/darwin-c.c: Remove c-tree.h include.
129 2010-05-28 Joseph Myers <joseph@codesourcery.com>
131 * gcc.c: Include diagnostic.h.
132 (error_count): Remove. All users changed to use errorcount.
133 (programname): Remove. All users changed to use progname.
134 (fancy_abort, internal_error, fatal_error, error, warning, inform,
136 (execute): Don't include "Internal error" and bug reporting
137 information in argument of internal_error call.
138 (process_command): Don't increment error_count after calling
140 (input_filename): Rename to gcc_input_filename. All users
142 (main): Call diagnostic_initialize. Register delete_temp_files
143 with atexit. Use seen_error to test for errors.
144 * gcc.h: Include diagnostic-core.h.
145 (fatal_error, error, warning): Remove.
146 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
147 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
148 (gcc.o): Update dependencies.
150 2010-05-28 Jeff Law <law@redhat.com>
152 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
154 * ira.h (ira_bad_reload_regno): Declare
155 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
157 * ira-color.c (update_curr_costs): Free updated hard reg costs.
158 (ira_reassign_conflict_allocnos): Remove bogus asserts.
159 (allocno_reload_assign): Likewise.
161 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
163 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
166 2010-05-28 Richard Guenther <rguenther@suse.de>
169 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
170 Stream fixed-point constants mode.
171 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
173 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
174 Stream fixed-point constants mode.
175 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
178 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
180 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
181 only place it was called from.
182 (number_of_latch_executions): Do not return chrec_dont_know when the
183 may_be_zero is a runtime condition: instead, return a COND_EXPR
184 including the may_be_zero condition.
185 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
187 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
190 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
192 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
193 generate COND_EXPRs for degenerate_phi_result.
195 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
198 * tree-if-conv.c (if_convertible_loop_p): Check the
199 if-convertibility of phi nodes in non predicated BBs.
201 2010-05-28 Joseph Myers <joseph@codesourcery.com>
203 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
205 2010-05-28 Joseph Myers <joseph@codesourcery.com>
208 * gcc.c (inform, warning, inform): New functions.
209 (fatal_ice): Rename to internal_error; change cmsgid parameter to
210 gmsgid. All callers changed.
211 (notice): Rename to fnotice; add parameter fp. All callers
213 (fatal_error): Rename to fatal_signal. All users changed.
214 (fatal): Rename to fatal_error; change cmsgid parameter to
215 gmsgid. All callers changed.
216 (process_command): Use warning instead of error for warnings.
217 (end_going_arg): Don't use _() around argument of error.
218 (do_spec_1): Use inform for message from %n specs. Use warning
219 instead of error for warnings.
220 (main): Use inform for comparison messages. Use warning for
221 message about unused linker input.
222 (error): Increment error_count. Print "error: ".
223 * gcc.h (fatal): Change to fatal_error.
225 * config/darwin-driver.c (darwin_default_min_version): Use warning
226 instead of fprintf for warnings.
227 * cppspec.c (lang_specific_driver): Use fatal_error instead of
230 2010-05-28 Julian Brown <julian@codesourcery.com>
232 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
233 (*thumb2_addsi3_compare0_scratch): New.
234 * config/arm/constraints.md (Pv): New.
235 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
237 (*addsi3_compare0_scratch): Likewise.
239 2010-05-28 Jan Hubicka <jh@suse.cz>
241 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
243 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
244 only on local statics.
246 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
248 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
250 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
253 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
254 (OPTION_GLIBC): Define.
256 2010-05-28 Jakub Jelinek <jakub@redhat.com>
259 * dwarf2out.c (double_int_type_size_in_bits): New function.
260 (round_up_to_align): Change first argument and return value to
262 (field_byte_offset): Work internally on double_ints.
265 * builtins.c (expand_movstr): Use a temporary pseudo instead
266 of target even when target is not NULL and not const0_rtx, but
267 fails movstr predicate.
268 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
270 2010-05-28 Joseph Myers <joseph@codesourcery.com>
272 * final.c (rest_of_clean_state): Use %m in errors instead of
274 * gengtype.c (read_input_list, close_output_files): Use xstrerror
276 * toplev.c (process_options): Use %m in errors instead of strerror
278 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
281 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
283 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
284 (ix86_canonical_va_list_type): Make static. Add declaration.
285 (ix86_enum_va_list): Make static. Reindent.
286 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
287 (ix86_canonical_va_list_type): Ditto.
288 (ix86_enum_va_list): Ditto.
290 2010-05-28 Richard Guenther <rguenther@suse.de>
292 * lto-wrapper.c (run_gcc): With -save-temps generate a
293 user-visible ltrans filename. Fixup ltrans unit numbering.
295 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
297 * c-common.c (c_common_nodes_and_builtins): Replace use
298 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
299 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
300 to ix86_enum_va_list.
301 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
302 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
303 (TARGET_ENUM_VA_LIST_P): Add hook description.
304 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
305 * target.h (gcc_target): Add enum_va_list hook.
308 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
309 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
310 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
312 2010-05-28 Alan Modra <amodra@gmail.com>
315 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
316 emit_library_call machinery to set up __tls_get_addr calls.
318 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
320 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
322 2010-05-28 Dodji Seketeli <dodji@redhat.com>
324 Revert fix for PR c++/44188
325 * c-common.c (is_typedef_decl): Revert the moving of this
327 * tree.c (is_typedef_decl): ... here.
328 (typdef_variant_p): Revert the moving of this definition
329 here from gcc/cp/tree.c.
330 * c-common.h (is_typedef_decl): Revert the moving of this
332 * tree.h (is_typedef_decl): ... here.
333 (typedef_variant_p): Revert the moving of this declaration here
334 from gcc/cp/cp-tree.h
335 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
336 (gen_tagged_type_die): Revert the splitting out of ...
337 (gen_type_die_with_usage): ... this function. Revert the anonymous
338 tagged type handling.
339 (gen_typedef_die): Revert emitting DW_TAG_typedef for
340 typedefs naming anonymous tagged types.
342 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
344 * config/rs6000/rs6000-modes.def (PSImode): Delete.
346 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
348 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
349 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
351 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
353 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
354 XER_REGS to CA_REGS throughout.
355 * config/rs6000/rs6000.h: Same.
356 (ADDITIONAL_REGISTER_NAMES): Add "xer".
357 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
358 that mode_iterator "P" is the size for arithmetic carries as well.
359 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
361 2010-05-28 Jakub Jelinek <jakub@redhat.com>
364 * combine.c (struct rtx_subst_pair): Define unconditionally.
365 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
366 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
367 Call make_compound_operation on pair->to.
368 (propagate_for_debug): Don't call make_compound_operation here.
369 Always use simplify_replace_fn_rtx.
371 2010-05-27 Sterling Augustine <sterling@tensilica.com>
373 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
374 * config/xtensa/xtensa.c (override_options): Check
375 TARGET_FORCE_NO_PIC and set flag_pic.
376 * config/xtensa/xtensa.opt: Document -mforce-no-pic
378 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
381 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
382 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
384 2010-05-27 Joseph Myers <joseph@codesourcery.com>
386 * diagnostic-core.h: New. Contents moved from diagnostic.h and
388 * diagnostic.c: Don't include toplev.h.
389 (progname): Define. Moved from toplev.c.
390 (seen_error): New function.
391 * diagnostic.h: Include diagnostic-core.h.
392 (diagnostic_t, emit_diagnostic): Don't declare here.
393 * toplev.c (progname): Move to toplev.c.
394 (emit_debug_global_declarations, compile_file, finalize,
395 do_compile, toplev_main): Use seen_error.
396 * toplev.h: Include diagnostic-core.h.
397 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
398 internal_error, warning, warning_at, error, error_n, error_at,
399 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
400 verbatim, fnotice, progname): Move to diagnostic-core.h.
401 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
402 (expand_builtin_expect): Use seen_error.
403 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
404 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
405 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
406 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
407 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
408 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
409 errorcount for errors.
410 * c-opts.c (c_common_finish): Use seen_error.
411 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
412 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
413 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
414 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
415 (get_coverage_counts): Use seen_error.
416 * dwarf2out.c (dwarf2out_finish): Use seen_error.
417 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
418 gimplify_body): Use seen_error.
419 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
420 * ipa-pure-const.c (gate_pure_const): Use seen_error.
421 * ipa-reference.c (gate_reference): Use seen_error.
422 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
423 * lambda-code.c: Include diagnostic-core.h instead of
425 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
426 * lto-compress.c: Include diagnostic-core.h instead of
428 * lto-section-in.c: Include diagnostic-core.h instead of
430 * lto-streamer-out.c: Include diagnostic-core.h instead of
432 * lto-streamer.c: Include diagnostic-core.h instead of
434 (gate_lto_out): Use seen_error.
435 * matrix-reorg.c: Include diagnostic-core.h instead of
437 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
438 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
439 (gate_expand_omp, lower_omp_1): Use seen_error.
440 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
441 (rest_of_decl_compilation, rest_of_type_compilation,
442 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
443 * tree-cfg.c (label_to_block_fn): Use seen_error.
444 * tree-inline.c (optimize_inline_calls): Use seen_error.
445 * tree-mudflap.c (mudflap_finish_file): Use
447 * tree-optimize.c (gate_all_optimizations,
448 gate_all_early_local_passes, gate_all_early_optimizations): Use
450 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
451 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
452 (varpool_remove_unreferenced_decls,
453 varpool_assemble_pending_decls): Use seen_error.
454 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
455 (TOPLEV_H, DIAGNOSTIC_H): Update.
456 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
457 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
458 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
459 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
460 coverage.o, lambda-code.o): Update dependencies.
462 2010-05-25 Dodji Seketeli <dodji@redhat.com>
465 * c-common.c (is_typedef_decl): Move this definition ...
466 * tree.c (is_typedef_decl): ... here.
467 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
468 * c-common.h (is_typedef_decl): Move this declaration ...
469 * tree.h (is_typedef_decl): ... here.
470 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
471 * dwarf2out.c (is_naming_typedef_decl): New function.
472 (gen_tagged_type_die): Split out of ...
473 (gen_type_die_with_usage): ... this function. When an anonymous
474 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
475 is emitted for the typedef.
476 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
477 anonymous tagged types.
479 2010-05-27 Jason Merrill <jason@redhat.com>
481 * print-tree.c (debug_vec_tree): New fn.
482 (print_vec_tree): New fn.
483 * tree.h: Declare them.
484 * gdbinit.in (pvt): New command.
486 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
488 * gdbinit.in (pdd): New command.
490 2010-05-27 Jan Hubicka <jh@suse.cz>
492 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
493 (update_caller_keys): Return early if there are no callers;
494 only update fibheap when decresing the key.
495 (update_callee_keys): Avoid recursion.
496 (decide_inlining_of_small_functions): When badness does not match;
497 re-insert into fibheap.
499 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
501 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
502 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
503 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
504 (ALL_HOST_OBJS): Now a union of the above two.
505 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
506 all files in ALL_HOST_FRONTEND_OBJS.
507 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
509 * c-common.c: Pretend to be a backend file by undefining
510 IN_GCC_FRONTEND (still need rtl.h here).
512 2010-05-27 Jan Hubicka <jh@suse.cz>
514 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
515 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
517 2010-05-27 Jan Hubicka <jh@suse.cz>
519 * sched-ebb.c: Rename struct deps to struct deps_desc.
521 * sel-sched-ir.c: Likewise.
522 * sched-deps.c: Likewise.
523 * sched-int.h: Likewise.
524 * sched-rgn.c: Likewise.
526 2010-05-27 Jon Beniston <jon@beniston.com>
529 * config/lm32/lm32.h: Remove definition of
530 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
532 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
535 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
537 2010-05-27 Richard Guenther <rguenther@suse.de>
539 PR tree-optimization/44284
540 * tree-vect-stmts.c (vectorizable_assignment): Handle
541 sign-changing conversions as simple copy.
543 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
545 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
547 (__gthread_active_p): Check for pthread_create if compiling against
550 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
552 Support compilation for Android platform. Reimplement -mandroid.
554 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
555 (*android*): Set ANDROID_DEFAULT.
556 (arm*-*-linux*): Include linux-android.h.
557 (arm*-*-eabi*): Don't include previous -mandroid implementation.
558 * config/arm/eabi.h: Remove, move Android-specific parts ...
559 * config/linux-android.h: ... here. New file.
560 * config/arm/eabi.opt: Rename to ...
561 * config/linux-android.opt: ... this.
562 (mandroid): Allow -mno-android option. Initialize based on
564 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
565 Move logic to corresponding LINUX_TARGET_* macros.
566 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
567 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
568 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
570 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
571 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
574 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
576 Add support for Bionic C library
578 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
580 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
581 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
583 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
584 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
585 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
586 to support multiple C libraries. Handle Bionic.
587 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
588 (BIONIC_DYNAMIC_LINKER64): Define.
589 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
591 (TARGET_HAS_SINCOS): Enable for Bionic.
593 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
594 the last option specified on command line take effect.
595 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
597 (mglibc, muclibc): Update.
599 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
600 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
603 * doc/invoke.texi (-mglibc, -muclibc): Update.
604 (-mbionic): Document.
606 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
608 * c-common.h (c_register_addr_space): Add prototype.
609 (ADDR_SPACE_KEYWORD): Remove.
610 * c-common.c (c_register_addr_space): New function.
611 (c_addr_space_name): Reimplement.
612 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
614 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
615 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
617 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
618 Remove TARGET_ADDR_SPACE_KEYWORDS.
620 2010-05-27 Joseph Myers <joseph@codesourcery.com>
623 * input.h (main_input_filename): Move declaration to toplev.h.
624 * toplev.c (input_location, line_table): Move to input.c
625 * toplev.h (main_input_filename): Move declaration from input.h.
626 * tree.c (expand_location): Move to input.c.
627 * Makefile.in (OBJS-common): Add input.o.
628 (input.o): Add dependencies.
630 2010-05-27 Richard Guenther <rguenther@suse.de>
632 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
633 for non-existant files.
634 (fork_execute): Mark args_name file as deleted.
636 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
639 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
640 (narrow_signed_type): Likewise.
642 2010-05-26 Jan Hubicka <jh@suse.cz>
644 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
645 edge only when checking is enabled; check using former_clone_of;
646 check inline clones too.
647 (cgraph_materialize_clone): Record former_clone_of pointer.
648 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
649 combining redirections; dump args_to_skip bitmap
650 (cgraph_materialize_all_clones): Do no redirection here.
651 * ipa-inline.c (inline_transform): Do redirection here.
652 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
655 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
657 * config/avr/avr-c.c: Do not include regs.h.
658 Include cpplib.h for cpp_define and tree.h for c-common.h.
659 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
660 * config/avr/t-avr: Fix dependencies for avr-c.o.
662 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
664 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
665 string instead of SYMBOL_REF rtx.
666 * rtl.h (set_stack_check_libfunc): Move prototype from here...
667 * libfuncs.h: ...to here. Adjust for explow.c change.
669 2010-05-26 Joseph Myers <joseph@codesourcery.com>
671 * pretty-print.c: Don't include ggc.h.
672 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
673 (identifier_to_locale): Use them for allocation.
674 * pretty-print.h (identifier_to_locale_alloc,
675 identifier_to_locale_free): Declare.
676 * toplev.c (alloc_for_identifier_to_locale): New.
677 (general_init): Set identifier_to_locale_alloc and
678 identifier_to_locale_free.
679 * Makefile.in (pretty-print.o): Update dependencies.
681 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
683 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
684 pointer types if they have different alignment or mode.
686 2010-05-26 Anatoly Sokolov <aesok@post.ru>
688 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
689 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
690 * config/sparc/sparc-protos.h (function_value): Remove declaration.
691 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
692 sparc_function_value_regno_p): New functions.
693 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
694 TARGET_FUNCTION_VALUE_REGNO_P): Define.
695 (function_value): Rename to...
696 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
697 argument to 'outgoing'.
698 (function_arg_record_value, function_arg_union_value,
699 function_arg_vector_value): Update comment.
701 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
703 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
704 (fde_needed_for_eh_p): New predicate.
705 (output_call_frame_info): Use it throughout to decide whether FDEs
706 are needed for EH purpose.
707 (dwarf2out_begin_prologue): Reorder assignments.
709 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
711 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
712 special case loop->header.
713 (is_predicated): New.
714 (if_convertible_loop_p): Call it.
716 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
718 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
719 iterator in parameter. Do not generate code during the analysis.
720 (tree_if_convert_cond_stmt): Removed.
721 (tree_if_convert_stmt): Removed.
722 (predicate_bbs): New.
723 (if_convertible_loop_p): Call predicate_bbs.
724 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
725 now contains all the analysis part.
727 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
729 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
730 statements in the analysis part.
731 (tree_if_convert_stmt): Update comment.
732 (remove_conditions_and_labels): New.
733 (combine_blocks): Call remove_conditions_and_labels.
734 (tree_if_conversion): Update comment.
736 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
738 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
739 than 2 predecessors or more than 2 successors.
741 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
743 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
744 of loops in which the data dependence analysis fails.
746 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
748 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
750 (tree_if_conversion): Same.
752 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
754 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
756 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
758 * tree-if-conv.c: Update copyright years. Fix comments.
761 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
763 * builtin-types.def (BT_INT128): New primitive type.
764 (BT_UINT128): Likewise.
765 * c-common.c (c_common_r): Add __int128 keyword.
766 (c_common_type_for_size): Handle __int128.
767 (c_common_type_for_mode): Likewise.
768 (c_common_signed_or_unsigned_type): Likewise.
769 (c_common_nodes_and_builtins): Add builtin type
770 if target supports 128-bit integer scalar.
771 * c-common.h (enum rid): Add RID_INT128.
772 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
773 if target supports 128-bit integer scalar.
774 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
775 (finish_declspecs): Likewise.
776 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
777 (c_token_starts_declspecs): Likewise.
778 (c_parser_declspecs): Likewise.
779 (c_parser_attributes): Likewise.
780 (c_parser_objc_selector): Likewise.
781 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
782 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
783 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
784 * tree.c (make_or_reuse_type): Likewise.
785 (make_unsigned_type): Likewise.
786 (build_common_tree_nodes_2): Likewise.
787 * tree.h (enum integer_type_kind): Add itk_int128 and
789 (int128_integer_type_node): New define.
790 (int128_unsigned_type_node): New define.
791 * doc/extend.texi: Add documentation about __int128 type.
793 2010-05-26 Richard Guenther <rguenther@suse.de>
795 * tree-ssa-sccvn.c (copy_nary): Adjust.
796 (copy_phis): Rename to ...
797 (copy_phi): ... this. Adjust.
798 (copy_references): Rename to ...
799 (copy_reference): ... this. Adjust.
800 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
801 result into the valid table.
803 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
805 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
806 insn-config.h, insn-codes.h, recog.h, and optabs.h.
808 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
810 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
812 2010-05-26 Richard Guenther <rguenther@suse.de>
814 * opts.c (common_handle_option): Handle OPT_Ofast.
816 2010-05-26 Joseph Myers <joseph@codesourcery.com>
818 * diagnostic.c: Don't include opts.h.
819 (permissive_error_option): Define.
820 (diagnostic_initialize): Take n_opts parameter. Allocate memory
821 for classify_diagnostic. Don't use memset for
822 classify_diagnostic. Initialize new and recently added fields.
823 (diagnostic_classify_diagnostic): Use context->n_opts instead of
825 (diagnostic_report_diagnostic): Pass context parameter to
826 diagnostic_report_warnings_p. Use option_enabled and option_name
828 (emit_diagnostic): Use permissive_error_option.
829 (permerror): Likewise.
830 * diagnostic.h: Don't include options.h.
831 (struct diagnostic_context): Add n_opts, opt_permissive,
832 inhibit_warnings, warn_system_headers, option_enabled and
833 option_name fields. Change classify_diagnostic to a pointer.
834 * opts-diagnostic.h: New file.
835 * opts.c: Include opts-diagnostic.h.
836 (common_handle_option): Set global_dc fields for -Wfatal-errors,
837 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
838 (option_name): New function.
839 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
840 (c_common_handle_option): Set global_dc->permissive for
842 * c-common.c (c_cpp_error): Save and restore
843 global_dc->warn_system_headers, not variable warn_system_headers.
844 * toplev.c: Include opts-diagnostic.h.
845 (general_init): Update call to diagnostic_initialize. Set
846 global_dc->show_column, global_dc->option_enabled and
847 global_dc->option_name.
848 (process_options): Don't set global_dc fields here.
849 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
850 (diagnostic.o, opts.o, toplev.o): Update dependencies.
852 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
854 * config/picochip/picochip.md (movsi): Split a movsi from a
857 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
859 * ggc-zone.c: Update copyright year.
860 (poison_region): Mark memory for Valgrind as undefined before
861 memset () call and inaccessible afterwards.
862 (ggc_pch_total_size): Change type of i to int.
864 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
866 * ggc-common.c (ggc_free_overhead): Allow empty slot.
868 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
870 * ggc-common.c: Update copyright year.
871 (ggc_rlimit_bound): Remove prototype. Compile only if
872 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
873 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
874 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
875 (ggc_min_heapsize_heuristic): Likewise.
877 2010-05-26 Richard Guenther <rguenther@suse.de>
879 PR rtl-optimization/44164
880 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
881 no-common access-path disambiguation.
882 (indirect_ref_may_alias_decl_p): Adjust.
883 (indirect_refs_may_alias_p): Likewise.
884 (refs_may_alias_p_1): Likewise.
886 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
888 * c-typeck.c: Do not include expr.h.
890 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
892 * rtl.h (decl_default_tls_model): Move prototype from here...
893 * output.h: ...to here.
894 * c-decl.c: Do not include rtl.h.
895 * c-pragma.c: Likewise.
896 * c-parser.c: Likewise.
897 * c-gimplify.c: Likewise. And also not hard-reg-set.
898 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
899 FIXME note for it. Add a FIXME note for expr.h.
900 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
901 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
904 2010-05-26 Jakub Jelinek <jakub@redhat.com>
907 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
908 or total_size is larger than red zone size for non-V4 ABI, emit a
909 stack_tie resp. frame_tie insn before stack pointer restore.
910 * config/rs6000/rs6000.md (frame_tie): New insn.
912 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
914 * function.h (struct function): Add can_throw_non_call_exceptions bit.
915 * lto-streamer-in.c (input_function): Stream it in.
916 * lto-streamer-out.c (output_function): Stream it out.
917 * function.c (allocate_struct_function): Set it.
918 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
919 for flag_non_call_exceptions.
920 * cfgbuild.c (control_flow_insn_p): Likewise.
921 (make_edges): Likewise.
922 * cfgexpand.c (expand_stack_alignment): Likewise.
923 * combine.c (distribute_notes): Likewise.
924 * cse.c (cse_extended_basic_block): Likewise.
925 * except.c (insn_could_throw_p): Likewise.
926 * gcse.c (simple_mem): Likewise.
927 * ipa-pure-const.c (check_call): Likewise.
928 (check_stmt ): Likewise.
929 * lower-subreg.c (lower-subreg.c): Likewise.
930 * optabs.c (emit_libcall_block): Likewise.
931 (prepare_cmp_insn): Likewise.
932 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
933 * postreload.c (rest_of_handle_postreload): Likewise.
934 * reload1.c (reload_as_needed): Likewise.
935 (emit_input_reload_insns): Likewise.
936 (emit_output_reload_insns): Likewise.
937 (fixup_abnormal_edges): Likewise.
938 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
939 * store-motion.c (find_moveable_store): Likewise.
940 * tree-eh.c (stmt_could_throw_p): Likewise.
941 (tree_could_throw_p): Likewise.
942 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
943 * config/arm/arm.c (arm_expand_prologue): Likewise.
944 (thumb1_expand_prologue): Likewise.
945 * config/rx/rx.md (cbranchsf4): Likewise.
947 * config/s390/s390.c (s390_emit_prologue): Likewise.
948 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
949 (inline_forbidden_into_p): New predicate.
950 (expand_call_inline): Use it to forbid inlining.
951 (tree_can_inline_p): Likewise.
953 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
955 * config/i386/i386-c.c: Do not include rtl.h.
956 * config/i386/t-i386: Update dependencies.
958 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
960 * attribs.c: Do not include rtl.h.
961 * Makefile.in: Update dependencies.
963 2010-05-25 Anatoly Sokolov <aesok@post.ru>
965 * double-int.h (double_int_and): New.
966 * combine.c (try_combine): Clean up, use double_int_* and
967 immed_double_int_const functions.
969 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
971 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
972 stderr to /dev/null instead of grep -q.
973 * configure: Regenerate.
975 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
977 * Makefile.in (EXCEPT_H): Fix typo.
979 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
981 * ira-build.c (update_conflict_hard_reg_costs): New.
982 (ira_build): Call update_conflict_hard_reg_costs.
984 2010-05-25 Jakub Jelinek <jakub@redhat.com>
987 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
989 (intersect_loc_chains): Walk the s2var's loc_chain together
990 with s1node chain as long as the locations are equal, don't
991 call find_loc_in_1pdv in that case.
994 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
995 (copy_bind_expr): ... instead of here.
996 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
997 if the block hasn't been remapped.
998 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
999 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1001 2010-05-25 Richard Guenther <rguenther@suse.de>
1004 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1005 out-of-bounds array accesses.
1007 2010-05-25 Richard Guenther <rguenther@suse.de>
1009 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1010 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1011 (run_gcc): Re-organize to make cleanup easier.
1013 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1015 * config/s390/s390.c (optimization_options): Fix and move the
1016 flag_prefetch_loop_arrays override ...
1017 (override_options): ... here.
1019 2010-05-25 Joseph Myers <joseph@codesourcery.com>
1021 * diagnostic.c: Don't include plugin.h.
1022 (diagnostic_report_diagnostic): Don't handle plugins specially
1023 here. Pass context to internal_error callback.
1024 * diagnostic.h (struct diagnostic_context): Add context parameter
1025 to internal_error callback.
1026 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1027 * plugin.h (struct diagnostic_context): Declare.
1028 (warn_if_plugins, plugins_internal_error_function): Declare.
1029 * toplev.c (general_init): Set global_dc->internal_error.
1030 * Makefile.in (diagnostic.o): Update dependencies.
1032 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
1034 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1035 * config/rs6000/t-darwin64: New.
1036 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1039 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
1042 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1043 match the original (and intended) behaviour before r159557. This
1044 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1047 2010-05-25 Richard Guenther <rguenther@suse.de>
1049 * doc/invoke.texi: Document -Ofast.
1050 * target.h (struct gcc_target): Add handle_ofast.
1051 * target-def.h (TARGET_HANDLE_OFAST): Add.
1052 (TARGET_INITIALIZER): Adjust.
1053 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
1054 * common.opt (Ofast): Add.
1056 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1058 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1059 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1061 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1064 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1065 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
1066 false_rtx. Use false_rtx to compute the correct *ptest for reversed
1067 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1069 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1071 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1072 DW_OP_minus with negated offset instead of DW_OP_plus.
1073 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1075 2010-05-25 Wei Guozhi <carrot@google.com>
1077 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1078 tst instruction and a new alternative.
1079 * config/arm/constraints.md (Pu): New constraint.
1081 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
1083 * function.c (assign_stack_local_1): Initialize variable
1084 to avoid warning when bootstrapping at -O3.
1086 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
1088 * configure.ac (all_lang_makefiles): Remove everything related to it.
1089 * configure: Regenerate.
1090 * Makefile.in: Fix reference to ada Make-lang.in.
1091 Remove support for LANG_MAKEFILES.
1093 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1094 Sandra Loosemore <sandra@codesourcery.com>
1096 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1097 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1098 description. Add arm_neon_fp16_ok.
1099 (Add Options): Add arm_neon and arm_neon_fp16.
1101 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1103 * diagnostic.c: Don't include flags.h.
1104 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1105 context parameters. Check flags in the context passed as a parameter.
1106 (diagnostic_build_prefix): Add context parameter. Check
1107 show_column flag in context.
1108 (diagnostic_action_after_output): Check fatal_errors flag in context.
1109 (diagnostic_report_current_module): Check show_column flag in context.
1110 (default_diagnostic_starter): Update call to
1111 diagnostic_build_prefix.
1112 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1113 (emit_diagnostic): Pass context to permissive_error_kind.
1114 (permerror): Pass context to permissive_error_kind.
1115 * diagnostic.h (struct diagnostic_context): Add show_column,
1116 pedantic_errors, permissive and fatal_errors fields.
1117 (diagnostic_build_prefix): Update prototype.
1119 * toplev.c (process_options): Set flags in global_dc from
1120 flag_show_column, flag_pedantic_errors, flag_permissive,
1122 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1123 to diagnostic_build_prefix.
1124 * Makefile.in (diagnostic.o): Update dependencies.
1126 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1128 * config/i386/ia32intrin.h (__crc32q): Define only if
1129 __SSE4_2__ is defined.
1131 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1135 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1136 DECL_VISIBILITY_SPECIFIED.
1137 (emutls_decl): Set DECL_PRESERVE_P and copy
1138 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1139 (emutls_finalize_control_var): New callback.
1140 (emutls_finish): Finalize emutls control variables.
1141 * toplev.c (compile_file): Move the call to emutls_finish ()
1142 before varpool_assemble_pending_decls ().
1144 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1146 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1147 added to the preprocessor condition.
1149 2010-05-24 Paul Brook <paul@codesourcery.com>
1151 * gengtype-lex.l: Add HARD_REG_SET.
1152 * expr.c (expand_expr_real_1): Record writes to hard registers.
1153 * function.c (rtl_data): Add asm_clobbers.
1154 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1155 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1156 Use crtl->asm_clobbers.
1158 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1160 * doc/makefile.texi (Makefile): Mention stages 'profile'
1161 and 'feedback' for profiledbootstrap.
1163 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
1166 * config/i386/i386.c (def_builtin): Properly check
1167 OPTION_MASK_ISA_64BIT.
1169 2010-05-23 Joseph Myers <joseph@codesourcery.com>
1171 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1172 typedefs with different but compatible types. Allow duplicate
1173 typedefs with the same type except for pedantic non-C1X, but give
1174 warning for variably modified types.
1175 * c-typeck.c (tagged_types_tu_compatible_p,
1176 function_types_compatible_p, type_lists_compatible_p,
1177 comptypes_internal): Add parameter different_types_p; set
1178 *different_types_p for different but compatible types. All
1180 (comptypes_check_different_types): New.
1181 * c-tree.h (comptypes_check_different_types): Declare.
1183 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1185 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
1186 * jump.c: Include basic-block.h.
1187 * profile.c: Likewise.
1188 * tree-profile.c: Likewise.
1189 * coverage.c: Likewise.
1190 * basic-block.h (optimize_function_for_size_p): Move to function.h.
1191 (optimize_function_for_speed_p): Likewise.
1192 * function.h (optimize_function_for_size_p,
1193 optimize_function_for_speed_p): Moved here from basic-block.h.
1194 * Makefile.in: Update dependencies.
1196 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1198 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1199 before calling make; allow override through $MAKE.
1200 * doc/invoke.texi (Optimize Options): Document override.
1202 2010-05-23 Anatoly Sokolov <aesok@post.ru>
1204 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1205 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1206 (rs6000_mode_dependent_address_ptr): Make static.
1207 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1208 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1211 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
1214 * config/i386/i386.c: Make sure that the correct regparm is passed.
1216 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1218 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1219 * sbitmap.c: ...to here to internalize sbitmap element access.
1220 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1221 Explain why basic-block.h is included.
1222 * function.h: Include tm.h for CUMULATIVE_ARGS.
1223 * Makefile.in: Update dependencies.
1225 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1227 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1229 * sbitmap.h (struct sbitmap_def): Do not typedef here.
1230 * sbitmap.c: Include sbitmap.h.
1231 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1232 hard-reg-set.h. Split everything related to regsets out from here...
1233 * regset.h: ...to here. New file.
1234 * df.h: Include regset.h and sbitmap.h.
1235 * tree-flow.h: Likewise.
1236 * cfgloop.h: Likewise.
1237 * except.h: Do not include sbitmap.h. Include hashtab.h.
1238 * cgraph.h: Include vec.h and function.h.
1239 * reload.h (struct insn_chain): Change types of live_throughout
1240 and dead_or_set from regset_head to bitmap_head.
1241 (compute_use_by_pseudos): Be defined also if regset.h is not included.
1242 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1243 spilled_regs from regset_head to bitmap_head to avoid dependency
1245 * sel-sched-ir.h: Include regset.h.
1246 * reload.c: Include df.h before reload.h.
1247 * caller-save.c: Likewise.
1248 * reload1.c: Likewise.
1250 (mark_elimination): Update type of r to bitmap, consistent with
1252 * dominance.c: Include bitmap.h.
1253 * modulo-sched.c: Include df.h.
1254 * cfganal.c: Include bitmap.h and sbitmap.h.
1255 * cfgbuild.c: Include sbitmap.h.
1256 * lcm.c: Include sbitmap.h.
1257 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1258 * domwalk.c: Include sbitmap.h, exclude ggc.h.
1259 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1260 * cselib.c: Include bitmap.h.
1261 * tree-optimize.c: Include regset.h.
1262 * stmt.c: Include bitmap.h.
1263 * Makefile.in: Update dependencies.
1265 2010-05-22 Jan Hubicka <jh@suse.cz>
1267 * cgraph.h (struct varpool_node): Add same_comdat_group.
1268 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1270 (output_varpool): Update call of lto_output_varpool_node.
1271 (input_varpool): Read same_comdat_group pointer.
1272 (input_varpool_1): Fixup same_comdat_group pointer.
1273 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1274 group is needed, all are.
1275 * varpool.c (varpool_remove_node): Remove node from same comdat group
1277 (varpool_analyze_pending_decls): Walk same comdat groups.
1279 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1281 * rtl.h (union rtunion_def): Remove rt_bit member.
1282 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1283 * print-rtl (print_rtx): Do not print the member.
1284 * gengtype.c (adjust_field_rtx_def): Do not handle it.
1285 * gengenrtl.c (type_from_format): Likewise.
1286 (accessor_from_format): Likewise.
1288 2010-05-22 Joseph Myers <joseph@codesourcery.com>
1290 * dbgcnt.c: Include toplev.h instead of errors.h.
1291 * ira-emit.c: Don't include errors.h.
1292 * ira.c: Include toplev.h instead of errors.h.
1293 * lto-compress.c: Include toplev.h instead of errors.h.
1294 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1295 ira.o, dbgcnt.o): Update dependencies.
1297 2010-05-22 Richard Guenther <rguenther@suse.de>
1299 * gimple.c (gimple_types_compatible_p): Check type qualifications
1300 before merging pointer to complete and pointer to incomplete type.
1301 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1302 we use our own resolution algorithm. The gold linker plugin
1303 doesn't do the job we want it to do here.
1305 2010-05-22 Anatoly Sokolov <aesok@post.ru>
1307 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1308 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1309 (sparc_mode_dependent_address_p): New function.
1311 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1313 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1315 * timevar.c: Do not include any core headers.
1316 (timevar_print): De-i18n-ize.
1317 (print_time): Likewise.
1318 * timevar.h (timevar_push, timevar_pop): Make inline functions.
1320 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1322 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1324 (diagnostic_initialize): Initialize x_data not last_function.
1325 (diagnostic_report_current_function): Move to tree-diagnostic.c.
1326 (default_diagnostic_starter): Call
1327 diagnostic_report_current_module not
1328 diagnostic_report_current_function.
1329 (diagnostic_report_diagnostic): Initialize x_data not
1331 (verbatim): Likewise.
1332 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1334 (struct diagnostic_context): Change last_function to x_data.
1335 (diagnostic_auxiliary_data): Replace with
1336 diagnostic_context_auxiliary_data and
1337 diagnostic_info_auxiliary_data.
1338 (diagnostic_last_function_changed, diagnostic_set_last_function,
1339 diagnostic_report_current_function): Move to tree-diagnostic.h.
1340 (print_declaration, dump_generic_node, print_generic_stmt,
1341 print_generic_stmt_indented, print_generic_expr,
1342 print_generic_decl, debug_c_tree, dump_omp_clauses,
1343 print_call_name, debug_generic_expr, debug_generic_stmt,
1344 debug_tree_chain, default_tree_printer): Move to
1345 tree-pretty-print.h.
1346 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1347 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1348 gimple-pretty-print.h.
1349 * pretty-print.c: Don't include tree.h
1350 (pp_base_format): Don't handle %K here.
1351 (pp_base_tree_identifier): Move to tree-pretty-print.c.
1352 * pretty-print.h (text_info): Change abstract_origin to x_data.
1353 (pp_tree_identifier, pp_unsupported_tree,
1354 pp_base_tree_identifier): Move to tree-pretty-print.h.
1355 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1356 tree-pretty-print.h: New files.
1357 * tree-pretty-print.c: Include tree-pretty-print.h.
1358 (percent_K_format): New. Moved from pretty-print.c.
1359 (pp_base_tree_identifier): Move from pretty-print.c.
1360 * c-objc-common.c: Include tree-pretty-print.h.
1361 (c_tree_printer): Handle %K here.
1362 * langhooks.c: Include tree-diagnostic.h.
1363 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1364 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1365 (default_tree_printer): Handle %K using percent_K_format.
1366 (general_init): Use default_tree_diagnostic_starter.
1367 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1368 (free_lang_data): Use default_tree_diagnostic_starter.
1369 * c-pretty-print.c: Include tree-pretty-print.h.
1370 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1371 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1372 * dwarf2out.c: Include tree-pretty-print.h.
1373 * except.c: Include tree-pretty-print.h.
1374 * gimple-pretty-print.c: Include tree-pretty-print.h and
1375 gimple-pretty-print.h.
1376 * gimplify.c: Include tree-pretty-print.h.
1377 * graphite-poly.c: Include tree-pretty-print.h and
1378 gimple-pretty-print.h.
1379 * ipa-cp.c: Include tree-pretty-print.h.
1380 * ipa-inline.c: Include gimple-pretty-print.h.
1381 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1382 * ipa-pure-const.c: Include gimple-pretty-print.h.
1383 * ipa-struct-reorg.c: Include tree-pretty-print.h and
1384 gimple-pretty-print.h.
1385 * ipa-type-escape.c: Include tree-pretty-print.h.
1386 * print-rtl.c: Include tree-pretty-print.h.
1387 * print-tree.c: Include gimple-pretty-print.h.
1388 * sese.c: Include tree-pretty-print.h.
1389 * tree-affine.c: Include tree-pretty-print.h.
1390 * tree-browser.c: Include tree-pretty-print.h.
1391 * tree-call-cdce.c: Include gimple-pretty-print.h.
1392 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1393 * tree-chrec.c: Include tree-pretty-print.h.
1394 * tree-data-ref.c: Include tree-pretty-print.h and
1395 gimple-pretty-print.h.
1396 * tree-dfa.c: Include tree-pretty-print.h.
1397 * tree-if-conv.c: Include tree-pretty-print.h and
1398 gimple-pretty-print.h.
1399 * tree-inline.c: Include tree-pretty-print.h.
1400 * tree-into-ssa.c: Include tree-pretty-print.h and
1401 gimple-pretty-print.h.
1402 * tree-nrv.c: Include tree-pretty-print.h.
1403 * tree-object-size.c: Include tree-pretty-print.h and
1404 gimple-pretty-print.h.
1405 * tree-outof-ssa.c: Include tree-pretty-print.h and
1406 gimple-pretty-print.h.
1407 * tree-parloops.c: Include tree-pretty-print.h and
1408 gimple-pretty-print.h.
1409 * tree-predcom.c: Include tree-pretty-print.h and
1410 gimple-pretty-print.h.
1411 * tree-scalar-evolution.c: Include tree-pretty-print.h and
1412 gimple-pretty-print.h.
1413 * tree-sra.c: Include tree-pretty-print.h.
1414 * tree-ssa-address.c: Include tree-pretty-print.h.
1415 * tree-ssa-alias.c: Include tree-pretty-print.h.
1416 * tree-ssa-ccp.c: Include tree-pretty-print.h and
1417 gimple-pretty-print.h.
1418 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1419 * tree-ssa-copy.c: Include tree-pretty-print.h and
1420 gimple-pretty-print.h.
1421 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1422 * tree-ssa-dce.c: Include tree-pretty-print.h and
1423 gimple-pretty-print.h.
1424 * tree-ssa-dom.c: Include tree-pretty-print.h and
1425 gimple-pretty-print.h.
1426 * tree-ssa-dse.c: Include gimple-pretty-print.h.
1427 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1428 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1429 * tree-ssa-live.c: Include tree-pretty-print.h and
1430 gimple-pretty-print.h.
1431 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1432 gimple-pretty-print.h.
1433 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1434 gimple-pretty-print.h.
1435 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1436 gimple-pretty-print.h.
1437 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1438 gimple-pretty-print.h.
1439 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1440 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1441 * tree-ssa-operands.c: Include tree-pretty-print.h and
1442 gimple-pretty-print.h.
1443 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1444 gimple-pretty-print.h.
1445 * tree-ssa-pre.c: Include tree-pretty-print.h and
1446 gimple-pretty-print.h.
1447 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1448 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1449 gimple-pretty-print.h.
1450 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1451 gimple-pretty-print.h.
1452 * tree-ssa-sink.c: Include gimple-pretty-print.h.
1453 * tree-ssa-ter.c: Include tree-pretty-print.h and
1454 gimple-pretty-print.h.
1455 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1456 * tree-ssa.c: Include tree-pretty-print.h and
1457 gimple-pretty-print.h.
1458 * tree-stdarg.c: Include gimple-pretty-print.h.
1459 * tree-switch-conversion.c: Include gimple-pretty-print.h.
1460 * tree-tailcall.c: Include tree-pretty-print.h and
1461 gimple-pretty-print.h.
1462 * tree-vect-data-refs.c: Include tree-pretty-print.h and
1463 gimple-pretty-print.h.
1464 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1465 gimple-pretty-print.h.
1466 * tree-vect-loop.c: Include tree-pretty-print.h and
1467 gimple-pretty-print.h.
1468 * tree-vect-patterns.c: Include gimple-pretty-print.h.
1469 * tree-vect-slp.c: Include tree-pretty-print.h and
1470 gimple-pretty-print.h.
1471 * tree-vect-stmts.c: Include tree-pretty-print.h and
1472 gimple-pretty-print.h.
1473 * tree-vectorizer.c: Include tree-pretty-print.h.
1474 * tree-vrp.c: Include tree-pretty-print.h and
1475 gimple-pretty-print.h.
1476 * value-prof.c: Include tree-pretty-print.h and
1477 gimple-pretty-print.h.
1478 * var-tracking.c: Include tree-pretty-print.h.
1479 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1480 (tree-diagnostic.o): New dependencies.
1481 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1482 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1483 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1484 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1485 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1486 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1487 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1488 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1489 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1490 tree-ssa-address.o, tree-ssa-loop-niter.o,
1491 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1492 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1493 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1494 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1495 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1496 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1497 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1498 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1499 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1500 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1501 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1502 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1503 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1504 tree-switch-conversion.o, var-tracking.o, value-prof.o,
1505 cfgexpand.o, pretty-print.o): Update dependencies.
1507 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
1509 * tree-ssa-structalias.c: Remove tm_p.h from include.
1511 2010-05-21 Jeff Law <law@redhat.com>
1513 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1515 2010-05-21 Jason Merrill <jason@redhat.com>
1517 * tree-eh.c (cleanup_is_dead_in): New.
1518 (lower_try_finally): Don't generate a dead cleanup region.
1519 (lower_cleanup): Likewise.
1521 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1524 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1525 unchain each use from the cyclic next_regno_use chain first.
1527 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1529 * real: Do not include gmp.h, mpfr.h, and mpc.h.
1530 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1531 (real_value_negate, real_value_abs): New prototypes.
1532 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1533 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1534 new include file for interface between MPFR and REAL_VALUE_TYPE.
1535 * real.c: Include realmpfr.h.
1536 (real_arithmetic2): Remove legacy function.
1537 (real_value_negate): New.
1538 (real_value_abs): New.
1539 (mfpr_from_real, real_from_mpfr): Move from here...
1540 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1541 * builtins.c: Include realmpfr.h.
1542 * fold-const.c: Include realmpfr.h.
1543 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1544 (fold_negate_const): Likewise.
1545 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1546 * toplev.c: Include realmpfr.h.
1547 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1548 and real_value_negate.
1549 * fixed-value.c (check_real_for_fixed_mode): Likewise.
1550 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1551 (vfp3_const_double_index): Likewise.
1552 (arm_print_operand): Likewise.
1553 * Makefile.in: Update dependencies.
1555 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1557 * config/s390/s390.c (override_options): Increase the default
1558 of max-completely-peel-times.
1560 2010-05-21 Julian Brown <julian@codesourcery.com>
1561 Mark Mitchell <mark@codesourcery.com>
1563 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1564 sibling calls for Thumb-1.
1565 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1566 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1568 (*call_insn, *call_value_insn): Don't use for Thumb-2.
1569 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1571 (return): New expander.
1572 (*arm_return): New name for ARM return insn.
1573 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1575 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
1577 * config.gcc (sparc64-*-rtems*): New target.
1579 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1581 * tree.c (build_function_decl_skip_args): Fix grammar.
1582 (build_function_type_list_1): Fix typos, adjust formatting.
1584 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1586 * tree.h: Include real.h and fixed-value.h as basic datatypes.
1587 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1588 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1589 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1590 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1591 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1592 tree-pretty-print.c, tree-loop-distribution.c,
1593 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1594 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1595 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1596 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1597 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1598 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1599 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1600 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1601 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1602 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1603 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1604 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1605 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1606 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1607 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1608 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1609 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1610 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1611 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1612 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1613 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1614 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1615 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1616 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1617 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1618 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1619 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1620 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1621 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1622 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1623 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1624 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1625 config/score/score7.c, config/score/score.c, config/arm/arm.c,
1626 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1627 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1628 config/bfin/bfin.c: Clean up redundant includes.
1629 * Makefile.in: Update accordingly.
1631 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1634 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1635 statement has no arguments.
1637 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
1640 * varasm.c (emutls_decl): Merge attributes to new decl.
1642 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
1645 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1646 around the uniquized constructor if its type requires a conversion.
1648 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1651 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1652 at -O0 goto_locus of any of the incoming edges differs from
1653 goto_locus of outgoing edge, or gimple_location of any of the
1656 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
1658 * ira.c (ira_non_ordered_class_hard_regs): Define.
1659 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1660 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1661 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1662 cost of unaligned hard regs when allocating multi-reg pseudos.
1664 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
1666 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1667 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1668 for TARGET_NO_FLOAT.
1669 * config/mips/mips.c (mips_file_start): Expand conditional expression
1670 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1671 (mips_override_options): Move -mno-float override -msoft-float and
1673 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1674 Condition(TARGET_SUPPORTS_NO_FLOAT).
1675 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1676 __mips_no_float here.
1677 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1678 (TARGET_SUPPORTS_NO_FLOAT): Define.
1679 * config/mips/sdemtk.opt: Delete.
1681 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1683 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1685 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
1688 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1689 * configure: Regenerate.
1690 * config.in: Regenerate.
1691 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1692 instead of sahf only for 64bit targets.
1694 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1697 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1698 setup_ref_regs for DEBUG_INSNs.
1700 2010-05-20 Jan Hubicka <jh@suse.cz>
1703 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1705 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1708 * df-scan.c (df_ref_compare): Stabilize sort.
1710 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1712 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1713 argument. Don't use DW_OP_piece if offset is non-zero,
1714 put offset into second DW_OP_bit_piece argument.
1715 (dw_sra_loc_expr): Adjust callers. For memory expressions
1718 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
1721 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1722 settings for 16-bit-constant "addo" alternative.
1724 2010-05-19 James E. Wilson <wilson@codesourcery.com>
1726 * config/mips/mips-dsp.md (add<DSPV:mode>3,
1727 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1730 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
1731 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1734 2010-05-19 Joseph Myers <joseph@codesourcery.com>
1736 * diagnostic.c (FLOAT, FFS): Don't undefine.
1737 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1738 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1741 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1743 * combine.c (propagate_for_debug): Call make_compound_operation
1744 on the source value.
1745 (try_combine): When implementing a split chosen by find_split_point,
1746 either copy i2src or set it to null. Assert that i2src is not null
1747 before substituting into CALL_INSN_FUNCTION_USAGE.
1749 2010-05-19 Anatoly Sokolov <aesok@post.ru>
1751 * double-int.h (double_int_ior): New function.
1752 * tree.h (build_int_cst_wide_type): Remove.
1753 * tree.c (build_int_cst_wide_type): Remove.
1754 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1755 of build_int_cst_wide_type.
1756 * stor-layout.c (set_sizetype): (Ditto.).
1757 * dojump.c (do_jump): Use build_int_cstu instead of
1758 build_int_cst_wide_type.
1760 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
1762 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1763 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1764 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1765 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1766 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
1767 propagate the 'data' argument to copy_tree_r.
1768 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1769 Propagate 'data' argument to walk_tree.
1770 (copy_if_shared): New function.
1771 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1772 (unmark_visited): New function.
1773 (unshare_body): Call copy_if_shared instead of doing it manually.
1774 (unvisit_body): Call unmark_visited instead of doing it manually.
1776 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
1778 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1779 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
1780 * hooks.c: Likewise.
1781 * target-def.h (TARGET_FOLD_BUILTIN): Define to
1782 hook_tree_tree_int_treep_bool_null.
1783 * target.h (struct gcc_target): Update signature of fold_builtin
1785 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
1786 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
1787 instead of the call expression.
1788 (fold_builtin_call_array): Pass n and argarray directly.
1789 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
1791 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
1792 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
1793 `i' and use it in place of `arity'.
1794 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
1795 Dereference `args' directly.
1796 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
1798 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1800 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1802 (Directives): Document optional dg-require-effective-target
1805 2010-05-19 Richard Guenther <rguenther@suse.de>
1808 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1810 2010-05-19 Richard Guenther <rguenther@suse.de>
1812 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
1813 * common.opt (fwhopr=): New.
1814 * opts.c (common_handle_option): Handle OPT_fwhopr.
1815 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
1816 * collect2.c (main): Match -fwhopr*.
1817 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
1818 Execute ltrans stage in parallel when jobs is bigger than 1.
1820 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1822 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1823 pentiumpro on Solaris 8/x86 with Sun as.
1824 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1826 (gcc_cv_as_ix86_quad): Check for .quad directive.
1827 * configure: Regenerate.
1828 * config.in: Regenerate.
1829 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1831 2010-05-19 Martin Jambor <mjambor@suse.cz>
1833 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
1834 also for indirect edges. Actual printing moved...
1835 (ipa_print_node_jump_functions_for_edge): ...here.
1836 (ipa_compute_jump_functions): Renamed to
1837 ipa_compute_jump_functions_for_edge and made static.
1838 (ipa_compute_jump_functions): New function.
1839 (make_edge_direct_to_target): Check if the number of arguments on
1840 the newly direct edge is the same as the number of parametrs of
1842 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
1843 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
1844 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1845 analysis functions unconditionally, call the new
1846 ipa_analyze_params_uses on the node instead of every edge.
1848 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
1850 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
1852 (dump_mem_ref): Adopt debug code to handle a tree as step. This
1853 also checks for a constant int vs. non-constant but
1854 loop-invariant steps.
1855 (find_or_create_group): Change the sort algorithm to only consider
1856 steps that are constant ints.
1857 (idx_analyze_ref): Adopt code to handle a tree instead of a
1858 HOST_WIDE_INT for step.
1859 (gather_memory_references_ref): Handle tree instead of int and be
1860 prepared to see a NULL_TREE.
1861 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
1862 prefetches if the step cannot be calculated at compile time.
1863 (issue_prefetch_ref): Issue prefetches for non-constant but
1864 loop-invariant steps.
1866 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1869 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1871 * tree.h (build_call_list): Remove.
1872 * tree.c (build_call_list): Remove.
1874 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
1876 * tree.h (build_call_list): Remove.
1877 * tree.c (build_call_list): Remove.
1879 2010-05-18 Jan Hubicka <jh@suse.cz>
1881 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
1883 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
1885 PR rtl-optimization/43332
1886 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
1888 2010-05-18 Anatoly Sokolov <aesok@post.ru>
1890 * tree.h (build_int_cstu): Implement as static inline.
1891 * tree.c (build_int_cstu): Remove function.
1892 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
1895 2010-05-18 Richard Guenther <rguenther@suse.de>
1898 * lto-wrapper.c (verbose): New variable. Initialize from -v.
1899 (debug): Initialize from -save-temps.
1900 (collect_execute): Print command-line when verbose.
1901 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
1902 for ltrans invocation. Produce -dumpbase flag again.
1903 (process_args): Remove.
1905 * collect2.c (maybe_run_lto_and_relink): Only pass object
1906 files to lto-wrapper.
1907 * gcc.c (LINK_COMMAND_SPEC): Likewise.
1909 2010-05-18 Jan Hubicka <jh@suse.cz>
1911 * opts.c (decode_options): Do not disable whopr at ipa_cp.
1912 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
1914 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1917 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1919 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1922 2010-05-18 Jakub Jelinek <jakub@redhat.com>
1925 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
1928 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
1930 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
1931 lto-macho as lto_binary_reader.
1933 * darwin.c (darwin_asm_named_section): Do not add assembler comment
1934 after .section directive; just print it before the directive instead.
1936 2010-05-17 Jan Hubicka <jh@suse.cz>
1938 * cgraph.c (cgraph_create_virtual_clone): Only check
1939 versionable_function_p when not in wpa and checking is enabled.
1940 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
1941 there are no more functions to materialize.
1943 2010-05-17 Jan Hubicka <jh@suse.cz>
1945 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
1946 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
1948 (output_cgraph): Call output_cgraph_opt_summary.
1949 (input_cgrpah): Call input_cgraph_opt_summary.
1950 (output_cgraph_opt_summary_p, output_node_opt_summary,
1951 input_node_opt_summary, input_cgraph_opt_section): New functions.
1952 * lto-section-in.c (lto_section_name): Add cgraphopt.
1953 * tree-inline.c (tree_function_versioning): Handle parm_num.
1954 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
1955 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
1957 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1959 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
1960 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
1961 the insn to prefetch ratio heuristic to loops with known trip count.
1963 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
1965 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
1966 (schedule_prefetches): Do not generate a prefetch if the unroll factor
1967 is far from what is required by the prefetch.
1969 2010-05-17 Jan Hubicka <jh@suse.cz>
1971 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
1972 (ipcp_estimate_growth): Likewise.
1973 (ipcp_const_param_count): Likewise.
1974 (ipcp_insert_stage): Likewise.
1975 * ipa-prop.c (visit_load_for_mod_analysis): New function.
1976 (visit_store_addr_for_mod_analysis): Set used flag.
1977 (ipa_detect_param_modifications): Set used flag for SSE params;
1978 update use of walk_stmt_load_store_addr_ops.
1979 (ipa_print_node_params): Print used flag.
1980 (ipa_write_node_info): Stream used flag.
1981 (ipa_read_node_info): Likewise.
1982 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
1983 (ipa_is_param_used): New function.
1984 (lto_ipa_fixup_call_notes): Remove unused declaration.
1986 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1989 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1990 * configure: Regenerate.
1991 * config.in: Regenerate.
1992 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
1993 !HAVE_AS_IX86_REP_LOCK_PREFIX.
1994 Don't emit whitespace.
1995 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1996 (*rep_movsi): Likewise.
1997 (*rep_movsi_rex64): Likewise.
1998 (*rep_movqi): Likewise.
1999 (*rep_movqi_rex64): Likewise.
2000 (*rep_stosdi_rex64): Likewise.
2001 (*rep_stossi): Likewise.
2002 (*rep_stossi_rex64): Likewise.
2003 (*rep_stosqi): Likewise.
2004 (*rep_stosqi_rex64): Likewise.
2005 (*cmpstrnqi_nz_1): Use {%;} after repz.
2006 (*cmpstrnqi_nz_rex_1): Likewise.
2007 (*cmpstrnqi_1): Likewise.
2008 (*cmpstrnqi_rex_1): Likewise.
2009 (*strlenqi_1): Use {%;} after repnz.
2010 (*strlenqi_rex_1): Likewise.
2011 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2012 (*sync_compare_and_swap<mode>): Likewise.
2013 (sync_double_compare_and_swap<mode>): Likewise.
2014 (*sync_double_compare_and_swapdi_pic): Likewise.
2015 (sync_old_add<mode>): Likewise.
2016 (sync_add<mode>): Likewise.
2017 (sync_sub<mode>): Likewise.
2018 (sync_<code><mode>): Likewise.
2020 2010-05-17 Martin Jambor <mjambor@suse.cz>
2022 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2023 otr_token and polymorphic.
2024 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2025 (cgraph_clone_edge): Copy the above fields.
2026 * tree.c (get_binfo_at_offset): New function.
2027 * tree.h (get_binfo_at_offset): Declare.
2028 * ipa-prop.h (enum jump_func_type): Added known_type jump function
2029 type, reordered items, updated comments.
2030 (union jump_func_value): Added base_type field, reordered fields.
2031 (enum ipa_lattice_type): Moved down in the file.
2032 (struct ipa_param_descriptor): New field polymorphic.
2033 (ipa_is_param_polymorphic): New function.
2034 * ipa-prop.c: Include gimple.h and gimple-fold.h.
2035 (ipa_print_node_jump_functions): Print known type jump functions.
2036 (compute_complex_pass_through): Renamed to...
2037 (compute_complex_assign_jump_func): this.
2038 (compute_complex_ancestor_jump_func): New function.
2039 (compute_known_type_jump_func): Likewise.
2040 (compute_scalar_jump_functions): Create known type and complex ancestor
2042 (ipa_note_param_call): New parameter polymorphic, set the corresponding
2043 flag in the call note accordingly.
2044 (ipa_analyze_call_uses): Renamed to...
2045 (ipa_analyze_indirect_call_uses): this. New parameter target, define
2046 variable var only in the block where it is used.
2047 (ipa_analyze_virtual_call_uses): New function.
2048 (ipa_analyze_call_uses): Likewise.
2049 (combine_known_type_and_ancestor_jfs): Likewise.
2050 (update_jump_functions_after_inlining): Implemented handling of a
2051 number of new jump function types combination.
2052 (print_edge_addition_message): Removed.
2053 (make_edge_direct_to_target): New function.
2054 (try_make_edge_direct_simple_call): Likewise.
2055 (try_make_edge_direct_virtual_call): Likewise.
2056 (update_call_notes_after_inlining): Renamed to...
2057 (update_indirect_edges_after_inlining): this. Moved edge creation for
2058 indirect calls to try_make_edge_direct_simple_call, also calls
2059 try_make_edge_direct_virtual_call for virtual calls.
2060 (ipa_print_node_params): Changed the header message.
2061 (ipa_write_jump_function): Stream also known type jump functions.
2062 (ipa_read_jump_function): Likewise.
2063 (ipa_write_indirect_edge_info): Stream new fields in
2064 cgraph_indirect_call_info.
2065 (ipa_read_indirect_edge_info): Likewise.
2066 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2069 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2071 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2073 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2075 * tree.h (CALL_EXPR_ARGS): Delete.
2076 (call_expr_arglist): Delete.
2077 * tree.c (call_expr_arglist): Delete.
2078 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2079 targetm.fold_builtin.
2080 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2081 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2082 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2083 arglist parameter. Use CALL_EXPR_ARG.
2084 (picochip_expand_builtin_3op): Likewise.
2085 (picochip_expand_builtin_2opvoid): Likewise.
2086 (picochip_expand_array_get): Likewise.
2087 (picochip_expand_array_put): Likewise.
2088 (picochip_expand_array_testport): Likewise.
2089 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
2090 rather than arglist.
2091 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2093 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2094 than TREE_VALUE and TREE_CHAIN.
2095 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2096 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2099 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2102 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2103 to have no fallthru edge.
2106 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2107 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2108 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2109 add BARRIER after previous bb if needed.
2111 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2113 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2115 2010-05-17 Alan Modra <amodra@gmail.com>
2117 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2118 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2119 with copy_reg rtx param.
2120 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2121 Correct cases where code for ABI_V4 did not initialise the reg
2122 used to access frame. Also leave frame_reg_rtx as sp for large
2123 frames that save no regs.
2125 2010-05-17 Martin Jambor <mjambor@suse.cz>
2128 * tree-sra.c (create_access_replacement): New parameter rename, mark
2129 the replaement for renaming only when it is true.
2130 (get_access_replacement): Pass true in the rename parameter of
2131 create_access_replacement.
2132 (get_unrenamed_access_replacement): New function.
2133 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2134 replacement declaration from it.
2136 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2138 * function.c (try_fit_stack_local, add_frame_space): New static
2140 (assign_stack_local_1): Use them. Look for opportunities to use
2141 space previously wasted on alignment.
2142 * function.h (struct frame_space): New.
2143 (struct rtl_data): Add FRAME_SPACE_LIST member.
2144 * reload1.c (something_was_spilled): New static variable.
2145 (alter_reg): Set it.
2146 (reload): Test it in addition to testing if the frame size changed.
2148 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2150 * config/s390/s390.c: Define sane prefetch settings and activate
2151 flag_prefetch_loop_arrays on -O3.
2152 * config/s390/s390.h: Declare that read can use write prefetch.
2154 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2156 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2159 2010-05-16 Jan Hubicka <jh@suse.cz>
2161 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2162 function body; do not check stdarg field of struct function.
2164 2010-05-16 Jan Hubicka <jh@suse.cz>
2166 * cgraph.c (dump_cgraph_node): Dump versionable flag.
2167 * cgraph.h (cgraph_local_info): Add versionable flag.
2168 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2169 (ipcp_versionable_function_p): Use it.
2170 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2173 2010-05-16 Jan Hubicka <jh@suse.cz>
2175 * cgraph.c (cgraph_clone_node): Take decl argument and insert
2176 clone into hash when it is different from orig.
2177 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2178 * cgraph.h (cgraph_clone_node): Update prototype.
2179 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2180 (lto_cgraph_encoder_delete): Delete body map.
2181 (lto_cgraph_encoder_size): Move to header.
2182 (lto_cgraph_encoder_encode_body_p,
2183 lto_set_cgraph_encoder_encode_body): New.
2184 (lto_output_node): Do not take written_decls argument; output clone_of
2186 (add_node_to): Add include_body_argument; call
2187 lto_set_cgraph_encoder_encode_body on master of the clone.
2188 (add_references): Update use of add_node_to.
2189 (compute_ltrans_boundary): Likewise.
2190 (output_cgraph): Do not create written_decls bitmap.
2191 (input_node): Take nodes argument; stream in clone_of correctly.
2192 (input_cgraph_1): Update use of input_node.
2193 * lto-streamer-out.c (lto_output): Use encoder info to decide
2194 what bodies to output.
2195 * ipa-inline.c (cgraph_clone_inlined_nodes,
2196 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2197 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2198 (lto_cgraph_encoder_size): Define here.
2199 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2202 2010-05-16 Richard Guenther <rguenther@suse.de>
2204 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2206 * ipa-type-escape.c (gate_type_escape_vars): Run when
2207 -fipa-struct-reorg runs.
2208 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2209 * common.opt (fipa-type-escape): Remove.
2211 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2213 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2214 (decode_options): Likewise.
2215 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2217 2010-05-16 Jan Hubicka <jh@suse.cz>
2219 * ipa.c (function_and_variable_visibility): Also bring local all
2222 2010-05-16 Richard Guenther <rguenther@suse.de>
2224 * alias.c (nonoverlapping_memrefs_p): Remove use of
2225 IPA type-escape information.
2227 2010-05-16 Joseph Myers <joseph@codesourcery.com>
2229 * c-common.c (c_common_reswords): Add _Static_assert for C.
2230 * c-parser.c (c_token_starts_declaration,
2231 c_parser_next_token_starts_declaration,
2232 c_parser_static_assert_declaration_no_semi,
2233 c_parser_static_assert_declaration): New.
2234 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2235 Handle static assertions if static_assert_ok.
2236 (c_parser_external_declaration, c_parser_declaration_or_fndef,
2237 c_parser_compound_statement_nostart, c_parser_label,
2238 c_parser_for_statement, c_parser_objc_methodprotolist,
2239 c_parser_omp_for_loop): All callers of
2240 c_parser_declaration_or_fndef changed.
2241 (c_parser_struct_declaration): Handle static assertions.
2242 (c_parser_compound_statement_nostart): Use
2243 c_parser_next_token_starts_declaration and
2244 c_token_starts_declaration to detect start of declarations.
2245 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2248 2010-05-16 Anatoly Sokolov <aesok@post.ru>
2250 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2251 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2252 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2253 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2254 (mmix_function_outgoing_value): Rename to...
2255 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2256 (mmix_function_value_regno_p): Make static.
2257 (mmix_libcall_value): New function.
2258 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2259 mmix_function_value_regno_p): Remove declaration.
2261 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2263 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2264 BUILT_IN_ALLOCA if stack checking is enabled.
2266 2010-05-16 Richard Guenther <rguenther@suse.de>
2268 * var-tracking.c (vars_copy_1): Inline ...
2269 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
2270 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
2271 (variable_merge_over_cur): Adjust. Merge asserts.
2272 (variable_merge_over_src): Likewise.
2273 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2274 (variable_post_merge_new_vals): Merge asserts.
2275 (variable_post_merge_perm_vals): Likewise.
2276 (find_mem_expr_in_1pdv): Likewise.
2277 (dataflow_set_different_value): Remove.
2278 (onepart_variable_different_p): Merge asserts.
2279 (variable_different_p): Likewise.
2280 (dataflow_set_different_1): Inline ...
2281 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
2282 (emit_notes_for_differences_1): Merge asserts.
2284 2010-05-16 Richard Guenther <rguenther@suse.de>
2286 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2287 * optabs.c (libfunc_decl_hash): Likewise.
2288 * varasm.c (emutls_decl): Likewise.
2290 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
2292 * c-decl.c: Don't include gimple.h.
2293 (merge_decls): Do not copy gimple_body.
2295 2010-05-15 Jason Merrill <jason@redhat.com>
2297 * c.opt: Add -fnothrow-opt.
2299 2010-05-15 Jan Hubicka <jh@suse.cz>
2301 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2303 * passes.c (ipa_write_summaries): Write all analyzed nodes.
2305 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2307 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2308 * Makefile.in: Add it.
2309 Fix all other Makefile dependencies for changes below.
2310 * tree.h: Include it instead of defining VEC primitives here.
2311 * gimple.h: Likewise.
2313 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2314 * except.h: Include vecir.h, break dependence on tree.h.
2316 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2318 * tree-iterator.c: ...to here.
2319 * tree-iterator.h: Fix file introduction comment. Add extern markers.
2321 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
2323 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2324 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2325 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2326 tree-mudflap.h, and target.h.
2327 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2328 predict.h, tree-inline.h, gimple.h, and langhooks.h.
2329 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2330 Add FIXME for why gimple.h is still included (should be unnecessary
2331 since GCC 4.5 gimplification unit-at-a-time).
2332 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2333 * c-pragma.c: Add FIXME for why function.h needs to be included just
2334 for cfun, at front-end level.
2335 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2336 Do not include ggc.h, but include vecprim.h for VEC(char).
2337 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2338 Explain why target.h is included.
2339 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2340 Explain why gimple.h is included.
2341 * c-ppoutput.c: Do not include tm.h.
2342 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
2343 * c-parses.c: Explain why rtl.h is included, and that this (and only
2344 this) is also why tm.h must be included.
2345 Do not include except.h.
2346 * c-lang.c: Do not include ggc.h.
2348 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
2350 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2352 2010-05-15 Joseph Myers <joseph@codesourcery.com>
2354 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2355 unions by default if those structs and unions have no tags. Do
2356 not condition anonymous struct and unions handling on flag_iso.
2357 Allow anonymous structs and unions for C1X.
2358 (finish_struct): Do not diagnose lack of named fields when
2359 anonymous structs and unions present for C1X. Accept flexible
2360 array members in structure with anonymous structs or unions but no
2361 directly named fields.
2362 * doc/extend.texi (Unnamed Fields): Update.
2364 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
2366 * gimple.h (compare_field_offset): Rename into...
2367 (gimple_compare_field_offset): ...this.
2368 * gimple.c (compare_field_offset): Rename into...
2369 (gimple_compare_field_offset): ...this. Compare the full access if
2370 the offset is self-referential.
2371 (gimple_types_compatible_p): Adjust for above renaming.
2372 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
2373 DECL_NONADDRESSABLE_P flag of fields before merging them.
2375 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
2377 * tree.h (ctor_to_list): Delete.
2378 * tree.c (ctor_to_list): Delete.
2380 2010-05-15 Jan Hubicka <jh@suse.cz>
2382 * ipa-reference.c: Include toplev.h
2383 (is_proper_for_analysis): Only add to all_module_statics
2385 (write_node_summary_p, stream_out_bitmap,
2386 ipa_reference_write_optimization_summary,
2387 ipa_reference_read_optimization_summary): New.
2388 (struct ipa_opt_pass_d pass_ipa_reference): Add
2389 optimization summary streaming.
2390 * lto-cgraph.c (referenced_from_this_partition_p,
2391 reachable_from_this_partition_p): New functions.
2392 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2393 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2394 * opts.c (decode_options): Enable ipa_reference.
2395 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2396 * lto-streamer.h (referenced_from_this_partition_p,
2397 reachable_from_this_partition_p): Declare.
2399 2010-05-15 Richard Guenther <rguenther@suse.de>
2401 PR tree-optimization/44038
2402 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2403 taking the address of a V_C_E of a constant.
2405 2010-05-14 Jan Hubicka <jh@suse.cz>
2407 * tree.h (memory_identifier_string): Remove.
2408 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2409 (ipa_reference_global_vars_info_d): Remove statics_not_read and
2410 statics_not_written.
2411 (ipa_reference_optimization_summary_d): New structure.
2412 (ipa_reference_optimization_summary_t): New type and vector.
2413 (ipa_reference_vars_info_d): Embedd structures instead of using
2415 (reference_vars_to_consider): Remove out of GGC space.
2416 (module_statics_escape): Remove.
2417 (global_info_obstack): Rename to ...
2418 (optimization_summary_obstack): ... this one.
2419 (initialization_status_t): Remove.
2420 (memory_identifier_string): Remove.
2421 (get_reference_vars_info): Fix indenting.
2422 (set_reference_vars_info): Likewise.
2423 (get_reference_optimization_summary): New.
2424 (set_reference_optimization_summary): New.
2425 (get_global_reference_vars_info): Remove.
2426 (ipa_reference_get_read_global): Remove.
2427 (ipa_reference_get_written_global): Remove.
2428 (ipa_reference_get_not_read_global): Update.
2429 (ipa_reference_get_not_written_global): Update.
2430 (is_proper_for_analysis): Outlaw addressable.
2431 (propagate_bits): Update for new datastructures.
2432 (analyze_variable): Remove.
2433 (init_function_info): Update for new datastructures.
2434 (clean_function_local_data): Remove.
2435 (clean_function): Remove.
2436 (copy_global_bitmap): Use optimizations_summary_obstack.
2437 (duplicate_node_data): Duplicate optimization summary only.
2438 (remove_node_data): Remove optimization summary only.
2439 (generate_summary): Do not analyze variables; do not compute
2440 module_statics_escape; do not prune solutions by it.
2441 (read_write_all_from_decl): Fix typos in comments.
2442 (propagate): Doscover readonly and nonaddressable first;
2443 update for new datastructures; share global bitmaps.
2444 * ipa-reference.h (ipa_reference_get_read_global,
2445 ipa_reference_get_written_global): Remove.
2446 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2447 * Makefile.in: Remove ipa-refereference from GT files.
2449 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2452 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2453 for all SYMBOL_REF_DECLs.
2455 2010-05-14 Jan Hubicka <jh@suse.cz>
2457 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2458 (varpool_all_refs_explicit_p): New inline function.
2459 * ipa-reference.c: Update comment.
2460 (module_statics_written): Remove.
2461 (get_static_decl): Remove.
2462 (ipa_init): Do not initialize module_statics_written.
2463 (analyze_function): Likewise.
2464 (generate_summary): Likewise; do not compute module_statics_readonly
2465 and do not update variable flags.
2466 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2467 * ipa.c: Inlucde flags.h
2468 (cgraph_local_node_p): New.
2469 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2470 promote functions to local.
2471 (ipa_discover_readonly_nonaddressable_vars): New function.
2472 (function_and_variable_visibility): Use cgraph_local_node_p.
2473 * varpool.c (varpool_finalize_decl): Set force_output for
2474 DECL_PRESERVE_P vars.
2476 2010-05-14 Jan Hubicka <jh@suse.cz>
2478 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2480 2010-05-14 Richard Guenther <rguenther@suse.de>
2482 PR tree-optimization/44119
2483 * tree-ssa-pre.c (eliminate): Properly mark replacement of
2484 a PHI node necessary.
2486 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
2488 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2490 2010-05-14 Jason Merrill <jason@redhat.com>
2493 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2494 (gimple_call_set_nothrow): New.
2495 * gimple.c (gimple_build_call_from_tree): Call it.
2496 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2499 * gimplify.c (gimplify_seq_add_stmt): No longer static.
2500 * gimple.h: Declare it.
2501 * gimple.c (gimple_build_eh_filter): No ops.
2503 2010-05-14 Jan Hubicka <jh@suse.cz>
2505 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2506 nodes already in queue.
2507 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2510 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2513 * cfgexpand.c (expand_debug_expr): If non-memory op0
2514 has BLKmode, return NULL.
2516 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
2518 * config.gcc: Add support for --with-cpu option for bdver1.
2519 * config/i386/i386.h (TARGET_BDVER1): New macro.
2520 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2521 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2522 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2523 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2524 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2525 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2526 (processor_type): Add PROCESSOR_BDVER1.
2527 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2528 processor_type in config/i386/i386.h.
2529 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2530 movaps <reg, reg> instead of movapd <reg, reg> when replacing
2531 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2532 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2533 to emit packed xor instead of packed double/packed integer
2534 xor for SSE and AVX when moving a zero value.
2535 * config/i386/sse.md: Add check for
2536 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2537 movapd/movdqa for SSE and AVX.
2538 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2539 single logical operations i.e and, or and xor instead of packed double
2540 logical operations for SSE and AVX.
2541 * config/i386/i386-c.c (ix86_target_macros_internal):
2542 Add PROCESSOR_BDVER1.
2543 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2544 (has_fma4, has_xop): New.
2545 * config/i386/i386.c (bdver1_cost): New variable.
2546 (m_BDVER1): New macro.
2547 (m_AMD_MULTIPLE): Add m_BDVER1.
2548 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2549 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2550 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2551 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2552 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2553 x86_tune_sse_partial_reg_dependency,
2554 x86_tune_sse_unaligned_load_optimal,
2555 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2556 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2557 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2558 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2559 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2560 Enable/disable for bdver1.
2561 (processor_target_table): Add bdver1_cost.
2562 (cpu_names): Add bdver1.
2563 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2564 processor_alias_table.
2565 (ix86_expand_vector_move_misalign): Change.
2566 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2567 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2568 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2569 of movupd/movdqu for SSE and AVX.
2570 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2571 (ix86_tune_adjust_cost): Add code for bdver1.
2572 (standard_sse_constant_opcode): Add check for
2573 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2574 of packed double xor for SSE and AVX.
2576 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
2578 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2581 2010-05-14 Tristan Gingold <gingold@adacore.com>
2583 * toplev.c (default_debug_hooks): Remove this variable.
2584 (process_options): Remove assignments to default_debug_hooks.
2586 2010-05-14 Martin Jambor <mjambor@suse.cz>
2588 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2589 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2590 * langhooks.h (struct lang_hooks_for_decls): Removed field
2592 * tree.c (free_lang_data): Remove assignment to
2593 lang_hooks.fold_obj_type_ref.
2594 * tree.def (OBJ_TYPE_REF): Update comment.
2596 2010-05-14 Richard Guenther <rguenther@suse.de>
2598 PR tree-optimization/44124
2599 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2601 2010-05-14 Alan Modra <amodra@gmail.com>
2604 * config/rs6000/rs6000.c (struct machine_function): Reorder
2605 fields for better packing. Add lr_save_state.
2606 (rs6000_ra_ever_killed): Return lr_save_state if set.
2607 (rs6000_emit_eh_reg_restore): Set lr_save_state.
2609 2010-05-13 Jan Hubicka <jh@suse.cz>
2611 * varpool.c (decide_is_variable_needed): Drop code checking
2612 TREE_SYMBOL_REFERENCED.
2614 2010-05-13 Jan Hubicka <jh@suse.cz>
2616 * final.c (output_addr_const): Do not call mark_decl_referenced.
2617 * cgraphunit.c (process_function_and_variable_attributes): Use
2618 mark_needed_node dirrectly.
2619 (assemble_thunk): Do not call mark_decl_referenced.
2621 2010-05-13 Anatoly Sokolov <aesok@post.ru>
2623 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2625 2010-05-13 Jeff Law <law@redhat.com>
2627 * ira-conflicts.c (print_allocno_conflicts): New function broken out
2629 (print_conflicts): Call print_allocno_conflicts.
2631 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2634 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2637 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
2639 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2640 t-mingw-w64 or t-mingw-w32 for multilib configuration.
2641 * config/i386/t-mingw-w32: New.
2642 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2644 2010-05-13 Martin Jambor <mjambor@suse.cz>
2646 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2648 * gimple-fold.c (get_base_binfo_for_type): New function.
2649 (gimple_get_relevant_ref_binfo): Likewise.
2650 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2651 (gimple_fold_obj_type_ref): Likewise.
2652 (fold_gimple_call): Simplify condition for folding virtual calls
2653 and call gimple_fold_obj_type_ref.
2654 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2655 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2657 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
2659 * config/rs6000/rs6000-protos.h
2660 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2661 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2662 (rs6000_debug_mode_dependent_address)
2663 (rs6000_mode_dependent_address_ptr): Likewise.
2665 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2668 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2670 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2671 * tree-sra.c (create_access_replacement): Call unshare_expr before
2672 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2673 * dwarf2out.c: Include tree-flow.h.
2674 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2675 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2676 Handle DW_OP_bit_piece.
2677 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2678 construct_piece_list, adjust_piece_list): New functions.
2679 (add_var_loc_to_decl): Handle SRA optimized variables.
2680 Adjust for var_loc_note to loc field renaming.
2681 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2682 in VAR_LOCATION note.
2683 (new_loc_descr_op_bit_piece): New function.
2684 (dw_sra_loc_expr): New function.
2685 (dw_loc_list): Use it. Don't handle the last range after the
2686 loop, handle it inside of the loop. Adjust for var_loc_note
2687 to loc field renaming.
2688 (add_location_or_const_value_attribute): Only special case
2689 single entry loc lists if loc is NOTE_P. Adjust for
2690 var_loc_note to loc field renaming.
2691 (dwarf2out_var_location): Don't set newloc->var_loc_note
2692 and newloc->next here.
2694 2010-05-12 Jan Hubicka <jh@suse.cz>
2696 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2698 * cgraph.h (cgraph_only_called_directly_p,
2699 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2700 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2701 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2703 * ipa.c (cgraph_remove_unreachable_nodes): Use
2704 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2706 * tree-inline.c (copy_bb): Check address_taken flag.
2707 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
2708 externally_visible flag.
2710 2010-05-12 Jason Merrill <jason@redhat.com>
2714 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2715 * sdbout.c (plain_type_1): Likewise.
2716 * dwarf2out.c (is_base_type): Likewise.
2717 (gen_type_die_with_usage): Likewise. Generate
2718 DW_TAG_unspecified_type for any LANG_TYPE.
2720 2010-05-12 Jan Hubicka <jh@suse.cz>
2722 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2724 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2725 (cgraph_clone_edge): Update.
2726 (cgraph_node_remove_callees): Remove indirect calls too.
2727 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2728 (cgraph_create_indirect_edge): Update prototype.
2729 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2730 is_proper_for_analysis.
2731 (add_new_function, visited_nodes, function_insertion_hook_holder,
2732 get_local_reference_vars_info, mark_address_taken, mark_address,
2733 mark_load, mark_store, check_asm_memory_clobber, check_call,
2734 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2735 (ipa_init): Do not initialize visited_nodes;
2736 function_insertion_hook_holder.
2737 (analyze_variable): Rewrite.
2738 (analyze_function): Rewrite.
2739 (copy_local_bitmap): Remove.
2740 (duplicate_node_dat): Do not duplicate local info.
2741 (generate_summary): Simplify to only walk cgraph.
2742 (write_node_summary_p, ipa_reference_write_summary,
2743 ipa_reference_read_summary): Remove.
2744 (propagate): Do not remove function insertion;
2746 (pass_ipa_reference): NULLify summary handling fields.
2747 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2748 (input_edge): Input ecf_flags.
2749 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2750 (update_indirect_edges_after_inlining): Ignore edges with unknown
2753 2010-05-12 Sriraman Tallam <tmsriram@google.com>
2755 * implicit-zee.c: New file.
2756 * tree-pass.h (pass_implicit_zee): Declare.
2757 * passes.c (init_optimization_passes): Add zee pass.
2758 * common.opt (fzee): New flag.
2759 * timevar.def (TV_ZEE): Define.
2760 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2762 * Makefile.in (implicit-zee.o): Add new build file.
2764 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2765 Nathan Froyd <froydnj@codesourcery.com>
2767 * c-common.c (sync_resolve_params): Remove write-only variable.
2769 2010-05-12 Anatoly Sokolov <aesok@post.ru>
2771 * target.h (struct gcc_target): Add mode_dependent_address_p field.
2772 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2773 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2774 * targhooks.c (default_mode_dependent_address_p): New function.
2775 * targhooks.h (default_mode_dependent_address_p): Declare function.
2776 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2777 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2778 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
2779 target hook. Change return type to bool.
2780 * recog.h (mode_dependent_address_p): Change return type to bool.
2782 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2783 Nathan Froyd <froydnj@codesourcery.com>
2785 * tree-mudflap.c (build_function_type_0, build_function_type_1,
2786 build_function_type_2, build_function_type_3): Remove.
2787 (mudflap_init): Use build_function_type_list.
2789 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2790 Nathan Froyd <froydnj@codesourcery.com>
2792 * coverage.c (build_fn_info_value): Call build_constructor instead of
2793 build_constructor_from_list.
2794 (build_ctr_info_value): Likewise.
2795 (build_gcov_info): Likewise.
2797 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
2799 * tree.c (build_constructor): Compute TREE_CONSTANT for the
2800 resultant constructor.
2801 (build_constructor_single): Don't set TREE_CONSTANT.
2802 (build_constructor_from_list): Don't compute TREE_CONSTANT.
2804 2010-05-12 Jan Hubicka <jh@suse.cz>
2806 * cgraph.h (struct varpool_node): Add aux.
2807 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
2808 * varpool.c (varpool_remove_node): Do not remove initializer.
2809 (varpool_reset_queue): Export.
2810 (varpool_finalize_decl): Volatile vars are forced to be output.
2811 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
2813 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
2814 process_references, varpool_can_remove_if_no_refs): New functions.
2815 (cgraph_remove_unreachable_nodes): Handle variables too.
2817 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
2820 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
2822 2010-05-12 Jakub Jelinek <jakub@redhat.com>
2825 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
2826 change value of ORT_TASK.
2827 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
2828 (omp_notice_threadprivate_variable): New function.
2829 (omp_notice_variable): Call it for threadprivate variables.
2830 If enclosing ctx is a task, print enclosing task rather than
2831 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
2832 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
2833 if task has untied clause.
2836 * dwarf2out.c (base_type_die): Don't add name attribute here.
2837 (modified_type_die): Instead of sizetype use
2838 its underlying original type. If a DW_TAG_base_type doesn't
2839 have name added, add __unknown__.
2840 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
2841 always call force_type_die instead.
2843 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
2845 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
2846 for __stack_chk_guard.
2848 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2850 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
2851 don't call start_source_file debug hook here...
2852 (finish_options): ... but here, after outputting predefined and
2853 command line defines and undefs.
2856 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
2858 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
2859 optimizing away empty bb with no successors, move over its
2860 footer chain to fallthru predecessor.
2861 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
2862 (rtl_split_edge): For asm goto call patch_jump_insn even if
2863 splitting fallthru edge.
2866 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
2867 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
2868 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2869 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
2873 * c-parser.c (c_parser_expression): Mark LHS of a comma
2874 expression as read if it is a decl, handled component or
2875 COMPOUND_EXPR with that on the RHS.
2876 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
2877 if it is a decl or handled component.
2879 2010-05-11 Jan Hubicka <jh@suse.cz>
2881 * lto-symtab.c (lto_symtab_free): New function.
2882 * lto-streamer.h (lto_symtab_free): Declare.
2884 2010-05-11 Jan Hubicka <jh@suse.cz>
2886 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
2887 that if function is needed it is reachable.
2888 (lto_output_node): See if it the function is reachable or referenced.
2889 (output_cgraph): Update call of lto_output_node.
2890 * lto-streamer.h (reachable_from_other_partition_p): Declare.
2892 2010-05-11 Jan Hubicka <jh@suse.cz>
2894 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
2897 2010-05-11 Jan Hubicka <jh@suse.cz>
2899 PR tree-optimize/44063
2900 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
2902 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
2904 (estimate_function_body_sizes): Compute sizes even when disregarding.
2906 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
2908 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
2910 2010-05-11 Jan Hubicka <jh@suse.cz>
2912 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
2913 into every boundary.
2915 2010-05-11 Jan Hubicka <jh@suse.cz>
2917 * matrix-reorg.c (matrix_reorg): Rebuild edges.
2919 2010-05-11 Jan Hubicka <jh@suse.cz>
2921 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
2922 lto_streamer_cache_delete): Put nodes into heap.
2923 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
2926 2010-05-11 Jan Hubicka <jh@suse.cz>
2928 * cgraphbuild.c (cgraph_rebuild_references): New.
2929 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
2931 * cgraph.h (cgraph_rebuild_references): Declare.
2932 * tree-inline.c (tree_function_versioning): Use it.
2933 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
2935 2010-05-11 Jan Hubicka <jh@suse.cz>
2937 * cgraph.c: Include ipa-utils.h
2938 (cgraph_create_virtual_clone): Update references.
2939 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
2941 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2943 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
2944 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
2947 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
2949 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
2951 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2953 * gcc.c (execute): For -### don't quote arguments that
2954 contain just alphanumerics and _/-. characters.
2955 * doc/invoke.texi: Document that change for -###.
2958 * df-problems.c (struct dead_debug): Add to_rescan field.
2959 (dead_debug_init): Clear to_rescan field.
2960 (dead_debug_finish): Rescan all debug insns in to_rescan
2961 bitmap and free the bitmap.
2962 (dead_debug_insert_before): Instead of rescanning debug insns
2963 immediately queue their rescanning until dead_debug_finish.
2964 (df_note_bb_compute): After dead_debug_add do continue instead
2967 2010-05-10 Jakub Jelinek <jakub@redhat.com>
2970 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
2971 clear also INSN_REG_USE_LIST.
2973 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2975 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
2977 2010-05-10 Jan Hubicka <jh@suse.cz>
2979 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
2982 2010-05-10 Jan Hubicka <jh@suse.cz>
2984 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
2986 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
2987 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
2988 (lto_streamer_cache_create): Init alloc pool.
2989 (lto_streamer_cache_delete): Free alloc pool.
2990 * lto-streamer.h: Include alloc pool.
2991 (lto_streamer_cache_d): Use alloc pool.
2992 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
2994 2010-05-10 Jan Hubicka <jh@suse.cz>
2996 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
2997 * cgraphbuild.c: Include except.h
2998 (record_type_list, record_eh_tables): New function.
2999 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3001 2010-05-10 Jan Hubicka <jh@suse.cz>
3003 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3004 __frame_dummy_init_array_entry, force_to_data): Attribute as used
3007 2010-05-10 Michael Matz <matz@suse.de>
3009 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3010 (can_reassociate_p): Use FLOAT_TYPE_P.
3011 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3012 (vect_force_simple_reduction): ... this.
3013 * tree-parloops.c (gather_scalar_reductions): Use
3014 vect_force_simple_reduction.
3015 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3016 vect_is_simple_reduction, add modify argument, if true rewrite
3017 "a-b" into "a+(-b)".
3018 (vect_is_simple_reduction, vect_force_simple_reduction): New
3020 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3022 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
3023 Vladimir Makarov <vmakarov@redhat.com>
3025 PR rtl-optimization/44012
3026 * ira-build.c (remove_unnecessary_allocnos): Nullify
3027 regno_allocno_map of the removed allocno.
3029 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3031 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3033 * configure: Regenerate.
3035 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3037 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3039 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3040 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3042 * configure: Regenerate.
3044 2010-05-10 Richard Guenther <rguenther@suse.de>
3046 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3047 marked if the entry identifier is marked.
3049 2010-05-10 Richard Guenther <rguenther@suse.de>
3051 * c-common.c (struct c_common_attributes): Add fnspec attribute.
3052 (handle_fnspec_attribute): New function.
3053 * gimple.h (gimple_call_return_flags): Declare.
3054 (gimple_call_arg_flags): Likewise.
3055 * gimple.c (gimple_call_arg_flags): New function.
3056 (gimple_call_return_flags): Likewise.
3057 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3059 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3061 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3062 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3064 (make_heapvar_for): ... this new function.
3065 (handle_rhs_call): Handle fnspec attribute argument specifiers.
3066 (handle_lhs_call): Likewise.
3067 (find_func_aliases): Adjust.
3069 2010-05-10 Richard Guenther <rguenther@suse.de>
3071 PR tree-optimization/44050
3072 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3074 2010-05-10 Wei Guozhi <carrot@google.com>
3077 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3079 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3082 * c-typeck.c (lookup_field): Take a type directly. Update
3084 (build_component_ref): Update call to lookup_field.
3085 (set_init_label): Use lookup_field to find initialized field.
3086 Handle returned list of fields like a sequence of designators.
3088 2010-05-09 Richard Guenther <rguenther@suse.de>
3091 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3092 handle &FUNCTION_DECL.
3094 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3097 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3098 structures and unions recursively.
3099 (detect_field_duplicates): Move duplicate detection with a hash to
3100 detect_field_duplicates_hash. Always use a hash if anonymous
3101 structures or unions are present.
3102 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3105 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3108 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3109 detect Atom, Core 2 and Core i7.
3111 2010-05-09 Richard Guenther <rguenther@suse.de>
3113 * gcc.c (store_arg): Handle temporary file deletion for
3116 2010-05-09 Richard Guenther <rguenther@suse.de>
3119 * ipa-inline.c (estimate_function_body_sizes): Return after
3120 disregarding inline limits.
3122 2010-05-09 Richard Guenther <rguenther@suse.de>
3124 * gcc.c (store_arg): Revert last change.
3126 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3129 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3130 (optimize_ops_list): Call it.
3132 2010-05-08 Richard Guenther <rguenther@suse.de>
3134 PR tree-optimization/44030
3135 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3136 NECESSARY flag if we propagate from a inserted expression.
3138 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3140 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3141 domain types as equal if they are both PLACEHOLDER_EXPRs.
3143 2010-05-08 Richard Guenther <rguenther@suse.de>
3145 * lto-wrapper.c (run_gcc): Remove linker output from
3146 command line for LTRANS invocation.
3148 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3150 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3151 lto-macho as lto_binary_reader.
3152 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3153 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3154 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3155 in lto_start and lto_end calls.
3156 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
3158 (scan_prog_file): Update is_elf_or_coff call.
3159 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3161 * collect2.c (main): Fix enum comparison.
3163 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3165 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3166 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
3167 and TARGET_ASM_LTO_END.
3168 * darwin.c: Include obstack.h and lto-streamer.h.
3169 (lto_section_names_offset, lto_section_names_obstack,
3170 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3172 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3173 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
3174 to a temporary file.
3175 (darwin_asm_lto_end): New function. Restore asm_out_file.
3176 (darwin_asm_named_section): For LTO sections, replace the name with
3177 the offset of the section name in a string table, and build this
3179 (darwin_file_start): Initialize global vars for LTO support.
3180 (darwin_file_end): If output to asm_out_file was redirected, append it
3181 to the proper asm_out_file here. Add the section names section.
3183 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3185 * c-pragma.c (pending_weak_d, pending_weak): New.
3186 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3187 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3188 handle_pragma_weak): Update the uses of pending_weaks.
3190 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3192 PR documentation/44016
3193 * doc/standards.texi (Standards): Link to unversioned
3194 cxx0x_status.html page.
3196 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
3199 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3200 in addition to TREE_USED, to avoid "set but unused" warnings.
3202 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3204 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3205 (is_loop_prefetching_profitable): Do not insert prefetches
3206 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3207 times the prefetch ahead distance.
3209 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3211 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3212 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3213 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3216 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3218 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3219 a diagnostic info when the insn-to-mem ratio is too small.
3221 2010-05-07 Richard Guenther <rguenther@suse.de>
3223 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3225 (store_arg): Queue temp_filename for deletion instead of
3228 2010-05-07 Richard Guenther <rguenther@suse.de>
3230 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3231 (run_gcc): Handle LTRANS phase invocation.
3232 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3234 2010-05-07 Jakub Jelinek <jakub@redhat.com>
3236 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3237 this is also meaningful on PARM_DECLs and RESULT_DECLs.
3239 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3241 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3243 2010-05-07 Richard Guenther <rguenther@suse.de>
3245 PR tree-optimization/44020
3246 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3247 code when PRE is not yet initialized.
3249 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3251 * config/mips/dbxmdebug.h: Remove.
3252 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3254 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
3256 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3257 with null pointer and also warn about ordered comparison of zero with
3260 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3262 * graphite-blocking.c
3263 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3264 * graphite-clast-to-gimple.c
3265 (clast_to_gcc_expression): Same.
3266 (precision_for_value): Same.
3267 (precision_for_interval): Same.
3268 (gcc_type_for_interval): Same.
3269 (graphite_create_new_guard): Same.
3270 (compute_bounds_for_level): Same.
3271 (graphite_create_new_loop_guard): Same.
3272 * graphite-interchange.c
3273 (build_linearized_memory_access): Same.
3274 (pdr_stride_in_loop): Same.
3275 (memory_strides_in_loop_1): Same.
3276 (memory_strides_in_loop): Same.
3277 (extend_scattering): Same.
3278 (psct_scattering_dim_for_loop_depth): Same.
3279 (pbb_number_of_iterations): Same.
3281 (debug_iteration_domains): Same.
3283 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3284 (ppl_set_inhomogeneous_gmp): Same.
3285 (ppl_strip_loop): Same.
3286 (ppl_lexico_compare_linear_expressions): Same.
3287 (ppl_read_polyhedron_matrix): Same.
3288 (ppl_max_for_le_pointset): Same.
3290 (ppl_read_polyhedron_matrix): Same.
3291 (tree_int_to_gmp): Same.
3292 (gmp_cst_to_tree): Same.
3293 (ppl_set_inhomogeneous): Same.
3294 (ppl_set_inhomogeneous_tree): Same.
3295 (ppl_set_coef): Same.
3296 (ppl_set_coef_tree): Same.
3297 * graphite-sese-to-poly.c
3298 (build_pbb_scattering_polyhedrons): Same.
3299 (build_scop_scattering): Same.
3300 (scan_tree_for_params_right_scev): Same.
3301 (scan_tree_for_params): Same.
3302 (find_params_in_bb): Same.
3303 (find_scop_parameters): Same.
3304 (add_upper_bounds_from_estimated_nit): Same.
3305 (build_loop_iteration_domains): Same.
3306 (add_condition_to_domain): Same.
3307 (pdr_add_memory_accesses): Same.
3309 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3311 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3312 CLooG's value_* macros to their respective mpz_* counterparts.
3313 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3314 (graphite_create_new_loop_guard): Same.
3315 * graphite-interchange.c (build_linearized_memory_access): Same.
3316 (pdr_stride_in_loop): Same.
3317 (memory_strides_in_loop_1): Same.
3318 (1st_interchange_profitable_p): Same.
3319 * graphite-poly.c (extend_scattering): Same.
3320 (psct_scattering_dim_for_loop_depth): Same.
3321 (pbb_number_of_iterations): Same.
3322 (pbb_number_of_iterations_at_time): Same.
3323 * graphite-poly.h (new_1st_loop): Same.
3324 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3325 (oppose_constraint): Same.
3326 (insert_constraint_into_matrix): Same.
3327 (ppl_set_inhomogeneous_gmp): Same.
3328 (ppl_set_coef_gmp): Same.
3329 (ppl_strip_loop): Same.
3330 (ppl_lexico_compare_linear_expressions): Same.
3331 (ppl_max_for_le_pointset): Same.
3332 (ppl_min_for_le_pointset): Same.
3333 (ppl_build_realtion): Same.
3334 * graphite-ppl.h (gmp_cst_to_tree): Same.
3335 (ppl_set_inhomogeneous): Same.
3336 (ppl_set_inhomogeneous_tree): Same.
3337 (ppl_set_coef): Same.
3338 (ppl_set_coef_tree): Same.
3339 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3340 (build_scop_scattering): Same.
3341 (add_value_to_dim): Same.
3342 (scan_tree_for_params_right_scev): Same.
3343 (scan_tree_for_params_int): Same.
3344 (scan_tree_for_params): Same.
3345 (find_params_in_bb): Same.
3346 (find_scop_parameters): Same.
3347 (add_upper_bounds_from_estimated_nit): Same.
3348 (build_loop_iteration_domains): Same.
3349 (create_linear_expr_from_tree): Same.
3350 (add_condition_to_domain): Same.
3351 (pdr_add_memory_accesses): Same.
3353 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3354 Jason Merrill <jason@redhat.com>
3356 * c-common.c (c_common_reswords): Add nullptr.
3357 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
3358 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3359 (gen_type_die_with_usage): Likewise.
3360 * dbxout.c (dbxout_type): Likewise.
3361 * sdbout.c (plain_type_1): Likewise.
3363 2010-05-06 Jason Merrill <jason@redhat.com>
3365 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3366 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
3368 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3370 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3371 stripping WITH_SIZE_EXPR.
3372 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3375 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3377 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3378 list of obsolete configurations.
3379 Disabled check for obsolete configurations.
3380 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3381 Removed support for previous versions.
3382 * config/mips/iris.h: Removed.
3383 * config/mips/iris5.h: Removed.
3384 * config/mips/iris6.h: Merged old iris.h contents.
3385 (TARGET_IRIX): Removed.
3386 (DRIVER_SELF_SPECS): Removed mabi=32.
3387 (IDENT_ASM_OP): Removed undef.
3388 (STARTFILE_SPEC): Removed mabi=32.
3389 (ENDFILE_SPEC): Likewise.
3390 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3391 (MACHINE_TYPE): Update for IRIX 6.5.
3392 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3393 TARGET_IRIX by TARGET_IRIX6.
3394 (mips_file_start): Likewise.
3395 (mips_output_external): Remove IRIX 5/6 O32 support.
3396 (mips_output_function_prologue): Likewise.
3397 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3399 (TARGET_CPU_CPP_BUILTINS): Likewise.
3400 (TARGET_IRIX): Removed.
3401 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3402 (MULTILIB_DIRNAMES): Removed 32.
3403 (MULTILIB_OSDIRNAMES): Removed ../lib.
3404 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3405 (Specific, mips-sgi-irix5): Document removal.
3406 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3407 Remove references to older IRIX 6 releases and the O32 ABI.
3409 2010-05-06 Jakub Jelinek <jakub@redhat.com>
3412 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3413 instead of DF_REF_REAL_REG.
3415 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
3418 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3419 handling to still return true for x64 targets.
3421 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3423 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3425 2010-05-06 Jan Hubicka <jh@suse.cz>
3427 PR tree-optimization/43791
3428 * ipa-inline.c (update_caller_keys): Remove bogus
3429 disregard_inline_limits check.
3431 2010-05-06 Michael Matz <matz@suse.de>
3433 PR tree-optimization/43984
3434 * tree-ssa-pre.c (inserted_phi_names): Remove.
3435 (inserted_exprs): Change to bitmap.
3436 (create_expression_by_pieces): Set bits, don't append to vector.
3437 (insert_into_preds_of_block): Don't handle inserted_phi_names.
3438 (eliminate): Don't look at inserted_phi_names, remove deleted
3439 insns from inserted_exprs.
3440 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3441 (init_pre, fini_pre): Allocate and free bitmaps.
3442 (execute_pre): Insert insns on edges before elimination.
3444 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3446 * tree.c (initializer_zerop): Handle STRING_CST.
3448 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3451 * doc/invoke.texi (Wimplicit): Document as C only.
3452 * opts.c (common_handle_option): Add argument kind.
3453 (handle_option): Rename as read_cmdline_option. Factor out code to...
3454 (handle_option): ... here. New.
3455 (handle_options): Rename as read_cmdline_options.
3456 (decode_options): Update call.
3457 (set_option): Use option index instead of option pointer. Classify
3458 diagnostics correctly.
3459 (enable_warning_as_error): Call handle_option.
3460 * opts.h (set_option): Update declaration.
3461 (handle_option): Declare.
3462 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3463 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3464 * c-opts.c (set_Wimplicit): Delete.
3465 (c_family_lang_mask): New static constant.
3466 (c_common_handle_option): Add argument kind. Use handle_option
3467 instead of set_Wimplicit.
3468 (c_common_post_options): warn_implicit and warn_implicit_int
3469 are disabled by default.
3470 * c-common.c (warn_implicit): Do not define here.
3471 * c-common.h (warn_implicit): Do not declare here.
3472 (c_common_handle_option): Update declaration.
3473 * lto-opts.c (lto_reissue_options): Update call to set_option.
3475 2010-05-06 Richard Guenther <rguenther@suse.de>
3477 PR tree-optimization/43571
3478 * domwalk.c (walk_dominator_tree): Walk the dominator
3479 sons in more optimal order.
3481 2010-05-06 Richard Guenther <rguenther@suse.de>
3483 PR tree-optimization/43934
3484 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3485 (stmt_cost): Likewise.
3486 (extract_true_false_args_from_phi): New helper.
3487 (determine_max_movement): For PHI nodes verify we can hoist them
3488 and compute their cost.
3489 (determine_invariantness_stmt): Handle PHI nodes.
3490 (move_computations_stmt): Likewise. Hoist PHI nodes in
3491 if-converted form using COND_EXPRs.
3492 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3493 (tree_ssa_lim): Likewise.
3494 * tree-flow.h (tree_ssa_lim): Adjust prototype.
3495 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3497 2010-05-06 Richard Guenther <rguenther@suse.de>
3499 PR tree-optimization/43987
3500 * tree-ssa-structalias.c (could_have_pointers): For possibly
3501 address-taken variables force pointers to be recorded.
3502 (create_variable_info_for_1): Likewise.
3503 (push_fields_onto_fieldstack): Pass in wheter all fields
3505 (find_func_aliases): Query types instead of vars whether
3506 they contain pointers where appropriate.
3508 2010-05-06 Jan Hubicka <jh@suse.cz>
3510 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3511 (record_reference, mark_address, mark_load, mark_store): Record
3513 (record_references_in_initializer): Update call of record_references.
3514 (rebuild_cgraph_edges): Remove all references before rebuiding.
3515 * cgraph.c (cgraph_create_node): Clear ref list.
3516 (cgraph_remove_node): Remove references.
3517 (dump_cgraph_node): Dump references.
3518 (cgraph_clone_node): Clone references.
3519 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3520 (struct cgraph_node, varpool_node): Add ref_lst.
3521 * ipa-ref.c: New file.
3522 * ipa-ref.h: New file.
3523 * ipa-ref-inline.h: New file.
3524 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3525 (referenced_from_other_partition_p): New function.
3526 (lto_output_varpool_node): Take set arugment; call
3527 referenced_from_other_partition.
3528 (lto_output_ref): New.
3529 (add_references): New.
3531 (output_cgraph): Compute boundary based on references; output refs.
3532 (output_varpool): Accept cgraph_node_set argument.
3535 (input_cgraph): Call input_refs.
3536 * lto-section-in.c (lto_section_name): Add refs.
3537 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3538 (ipa-ref.o): New file.
3539 * varpool.c (varpool_node): Clear ipa ref list.
3540 (varpool_remove_node): Remove references.
3541 (dump_varpool_node): Dump references.
3542 (varpool_assemble_decl): Only compile finalized ones.
3543 (varpool_extra_name_alias): Initialize ref list.
3544 * lto-streamer.c (lto-get_section_name): Add .refs section.
3545 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3546 (referenced_from_other_partition_p): Declared.
3548 2010-05-06 Ira Rosen <irar@il.ibm.com>
3550 PR tree-optimization/43901
3551 * tree-vect-stmts.c (vectorizable_call): Assert that vector
3552 type is not NULL if it's transformation phase, and return
3553 FALSE if it's analysis.
3554 (vectorizable_conversion, vectorizable_operation,
3555 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3557 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3559 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3561 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3563 * config/mips/mips-protos.h
3564 (mips_small_register_classes_for_mode_p): Delete prototype.
3566 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
3568 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3569 * config/arm/arm.c (multiple_operation_profitable_p,
3570 compute_offset_order): New static functions.
3571 (load_multiple_sequence, store_multiple_sequence): Use them.
3572 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
3573 memory offsets, not register numbers.
3574 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3576 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
3578 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3579 (get_pending_sizes, put_pending_size, put_pending_sizes):
3580 Update the uses of pending_sizes.
3581 * c-decl.c (store_parm_decls): Likewise.
3582 * c-tree.h (struct c_arg_info): Likewise.
3583 * tree.h: Update the prototype for get_pending_sizes and
3586 2010-05-05 Jason Merrill <jason@redhat.com>
3589 * c-common.c (handle_aligned_attribute): Respect
3590 ATTR_FLAG_TYPE_IN_PLACE.
3593 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3594 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3595 (TARGET_INITIALIZER): Use it.
3596 * c-common.c (attribute_takes_identifier_p): Call it.
3597 * c-common.h: Update prototype.
3598 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3599 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3601 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3604 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3605 DW_ID_down_case for Fortran compilation units.
3607 2010-05-05 Jan Hubicka <jh@suse.cz>
3609 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3612 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
3614 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3615 a variable-sized RESULT_DECL.
3617 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
3619 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3621 2010-05-05 Jason Merrill <jason@redhat.com>
3624 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3626 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3628 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
3629 Jakub Jelinek <jakub@redhat.com>
3632 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3633 (dead_debug_init, dead_debug_finish): New functions.
3634 (dead_debug_add, dead_debug_insert_before): Likewise.
3635 (df_note_bb_compute): Initialize a dead_debug object, add dead
3636 debug uses to it, insert debug bind insns before death insns,
3637 reset debug insns that refer to pending uses at the end.
3638 * rtl.h (make_debug_expr_from_rtl): New prototype.
3639 * varasm.c (make_debug_expr_from_rtl): New function.
3641 2010-05-05 Jan Hubicka <jh@suse.cz>
3643 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3644 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3645 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3646 lto_varpool_encoder_deref, lto_varpool_encoder_size,
3647 lto_varpool_encoder_encode_initializer_p,
3648 lto_set_varpool_encoder_encode_initializer): New functions.
3649 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3650 call output_varpool.
3651 (input_varpool_node): Do not always set analyzed.
3652 (input_cgraph_1): Return vector of cgraph nodes.
3653 (input_varpool_1): Return vector of varpools.
3654 (input_cgraph): Free the vectors.
3655 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3656 output only initializers needed.
3657 (lto_output): Only call output_cgraph.
3658 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3659 * lto-section-out.c (lto_new_out_decl_state): Initialize
3660 state->varpool_node_encoder.
3661 * lto-streamer.h (lto_varpool_encoder_d): New.
3662 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3663 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3664 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3665 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3666 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3668 (output_varpool, input_varpool): Remove declarations.
3670 2010-05-05 Jan Hubicka <jh@suse.cz>
3672 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3673 with body can prevail.
3675 2010-05-05 Jan Hubicka <jh@suse.cz>
3677 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3680 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3682 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3684 * gengtype.h (erro_at_line): Constify pos argument.
3686 * gengtype.c: Include hashtab.h.
3687 (enum gc_used): Document GC_MAYBE_POINTED_TO.
3688 (error_at_line): Constify pos argument.
3689 (do_typedef): Initialize p->opt field.
3690 (get_file_gtfilename): Fix comment typo.
3691 (struct walk_type_data): Constify line field.
3692 (get_output_file_for_structure): New function.
3693 (write_local_func_for_structure): Constify orig_s argument.
3694 Use get_output_file_for_structure.
3695 (write_func_for_structure): Use get_output_file_for_structure.
3696 (INDENT): New define.
3697 (dump_pair, dump_type, dump_type_list, dump_typekind)
3698 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3699 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3701 (seen_types): New variable.
3702 (main): New variable do_dump. Process "-d" command line option.
3703 Call dump_everything if dump requested.
3705 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3707 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
3708 in a temporary instead of invoking the macro multiple times.
3709 (track_expr_p): Likewise.
3711 2010-05-04 Neil Vachharajani <nvachhar@google.com>
3713 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3715 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3716 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
3717 conditions for printing notes.
3718 * common.opt (-Wcoverage-mismatch): Allow negative, default to
3719 true, update documentation.
3720 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3722 2010-05-04 Jakub Jelinek <jakub@redhat.com>
3725 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3728 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3731 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3732 (*sse_prologue_save_insn1): Likewise.
3733 (SSE prologue save splitter): Likewise.
3735 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
3737 * tree.c (free_lang_data_in_one_sizepos): New inline function.
3738 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3739 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3740 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3741 all decls. Call it on DECL_FIELD_OFFSET of fields.
3742 (find_decls_types_r): Follow DECL_VALUE_EXPR.
3743 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3745 2010-05-04 Martin Jambor <mjambor@suse.cz>
3747 * tree-sra.c (build_access_from_expr_1): The first parameter type
3748 changed to simple tree.
3749 (build_access_from_expr): Likewise, gsi parameter was eliminated.
3750 (scan_assign_result): Renamed to assignment_mod_result, enum elements
3752 (build_accesses_from_assign): Removed all parameters except for a
3753 simple gimple statement. Now returns a simple bool.
3754 (scan_function): All non-analysis parts moved to separate functions
3755 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
3756 parameters and updated both callers.
3757 (sra_modify_expr): Removed parameter data.
3758 (sra_modify_function_body): New function.
3759 (perform_intra_sra): Call sra_modify_function_body to modify the
3761 (replace_removed_params_ssa_names): Parameter data changed into
3763 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
3764 changed the parameter dont_convert to convert with the opposite
3766 (sra_ipa_modify_assign): Parameter data changed into adjustments
3767 vector, return value changed to bool.
3768 (ipa_sra_modify_function_body): New function.
3769 (sra_ipa_reset_debug_stmts): Updated a comment.
3770 (modify_function): Use ipa_sra_modify_function_body to modify function
3773 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3776 * alias.c (true_dependence): Handle the same VALUE in x and mem.
3777 (canon_true_dependence): Likewise.
3778 (write_dependence_p): Likewise.
3780 2010-05-04 Jan Hubicka <jh@suse.cz>
3782 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
3783 * cgraphbuild.c: Include ipa-utils.h
3784 (record_reference_ctx): New struct.
3785 (record_reference): Simplify to work on initializers; not statements.
3786 (mark_address, mark_load, mark_store): New.
3787 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3789 (record_references_in_initializer): Update use of record_reference.
3790 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3793 2010-05-04 Jan Hubicka <jh@suse.cz>
3795 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
3796 node will be removed anyway.
3797 (lto_varpool_replace_node): Allow also unanalyzed nodes;
3798 relink aliases of node into prevailing node.
3799 * varpool.c (varpool_remove_node): Remove aliases properly;
3800 when removing node, remove all its aliases too; remove DECL_INITIAL
3801 of removed node; ggc_free the varpool node.
3803 2010-05-04 Richard Guenther <rguenther@suse.de>
3805 PR tree-optimization/43879
3806 * tree-ssa-structalias.c (alias_get_name): Use
3807 DECL_ASSEMBLER_NAME if available.
3808 (create_function_info_for): Return the varinfo node.
3809 (ipa_pta_execute): Associate same-body aliases and extra names
3810 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
3812 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
3814 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
3816 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
3819 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
3820 only if HONOR_REG_ALLOC_ORDER is not defined.
3822 2010-05-04 Richard Guenther <rguenther@suse.de>
3824 PR tree-optimization/43949
3825 * tree-vrp.c (extract_range_from_binary_expr): Only handle
3828 2010-04-26 Jason Merrill <jason@redhat.com>
3830 * c.opt (-fstrict-enums): New.
3831 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
3833 2010-05-03 David Ung <davidu@mips.com>
3834 James E. Wilson <wilson@codesourcery.com>
3836 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
3837 emit the trap instruction before the divide for TUNE_74K.
3839 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
3841 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
3842 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
3843 based on the above, for new target hook.
3845 * hooks.c (hook_bool_mode_true): New generic hook.
3846 * hooks.h (hook_bool_mode_true): Add prototype.
3848 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
3850 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
3851 target hook, set to hook_bool_mode_false.
3852 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
3853 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
3854 with targetm.small_register_classes_for_mode_p.
3855 (find_reusable_reload): Likewise.
3856 (combine_reloads): Likewise.
3857 * reload1.c (reload_as_needed): Likewise.
3858 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
3859 * ifcvt.c (noce_process_if_block, check_cond_move_block,
3860 dead_or_predicable): Likewise.
3861 * regmove.c (optimize_reg_copy_1): Likewise.
3862 * calls.c (prepare_call_address): Likewise.
3863 (precompute_register_parameters): Likewise.
3865 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
3867 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
3868 implementation of the hook that considers all register classes
3869 small except for SH64.
3870 (sh_override_options): Use the new hook.
3871 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
3874 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
3876 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
3877 implementation of the hook that considers all register classes
3879 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
3882 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
3884 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
3885 implementation of the hook that considers all register classes
3887 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
3890 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
3892 * config/m32c/m32c.h: Likewise.
3893 * config/pdp11/pdp11.h: Likewise.
3894 * config/avr/avr.h: Likewise.
3895 * config/xtensa/xtensa.h: Likewise.
3896 * config/m68hc11/m68hc11.h: Likewise.
3897 * config/mn10300/mn10300.h: Likewise.
3898 * config/mcore/mcore.h: Likewise.
3899 * config/h8300/h8300.h: Likewise.
3900 * config/bfin/bfin.h: Likewise.
3902 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
3903 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
3905 2010-05-03 Anatoly Sokolov <aesok@post.ru>
3907 * double-int.h (tree_to_double_int): Remove macro.
3908 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
3909 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3910 (tree_to_double_int): New function.
3911 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
3913 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3915 2010-05-03 Richard Guenther <rguenther@suse.de>
3917 PR tree-optimization/43971
3918 * tree-ssa-structalias.c (get_constraint_for_1): Fix
3919 constraints in the !flag_delete_null_pointer_checks case.
3921 2010-05-03 Jakub Jelinek <jakub@redhat.com>
3924 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
3925 result mode matches original rtl mode.
3927 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
3930 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
3932 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3934 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
3935 when processing flag options.
3937 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3939 * gcov-iov.c (main): Change format string placeholder
3940 from %#08x to 0x%08x.
3941 * genchecksum.c (dosum): Change format string placeholder
3942 from %#02x to 0x%02x.
3944 2010-05-02 Richard Guenther <rguenther@suse.de>
3946 PR tree-optimization/43879
3947 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
3949 2010-05-02 Bruno Haible <bruno@clisp.org>
3951 * doc/extend.texi (Function Attributes): Fix a typo.
3953 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3956 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
3957 placeholder from 0x%x to %#x.
3958 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3959 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3960 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3961 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3962 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3963 * config/i386/i386.c (ix86_target_string): Ditto.
3964 * config/i386/i386.c (output_pic_addr_const): Ditto.
3965 (print_operand): Ditto.
3967 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
3969 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
3970 placeholder from 0x%x to %#x.
3971 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
3972 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
3973 (ASM_OUTPUT_DEBUG_DATA): Ditto.
3974 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
3975 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
3976 * optc-gen.awk: Ditto.
3977 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
3978 (HOST_WIDE_INT_PRINT_HEX): Ditto.
3979 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
3980 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3982 2010-05-01 Anatoly Sokolov <aesok@post.ru>
3984 * target.h (struct calls): Add function_value_regno_p field.
3985 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3986 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
3987 * targhooks.c (default_function_value_regno_p): New function.
3988 * targhooks.h (default_function_value_regno_p): Declare function.
3989 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
3990 * builtins.c. (apply_result_size): (Ditto.).
3991 * combine.c. (likely_spilled_retval_p): (Ditto.).
3992 * mode-switching.c. Include 'target.h'.
3993 (create_pre_exit): Use function_value_regno_p hook.
3994 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
3995 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
3996 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
3998 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
3999 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4000 (ix86_function_value_regno_p): Declare as static, change argument
4001 type to const unsigned int.
4002 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4004 2010-05-01 Richard Guenther <rguenther@suse.de>
4006 PR tree-optimization/43949
4007 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4009 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4011 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4013 * rtl.h (CONST_DOUBLE_P): Define.
4014 (rtx_to_double_int): Declare.
4015 * emit-rtl.c (rtx_to_double_int): New function.
4016 * dwarf2out.c (insert_double): New function.
4017 (loc_descriptor, add_const_value_attribute): Clean up, use
4018 rtx_to_double_int and insert_double functions.
4020 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
4022 * doc/extend.texi (Inline): Add missing return keyword to examples.
4023 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4026 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
4028 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4029 the variable part of the offset as well. Use highest_pow2_factor for
4030 all alignment checks.
4032 2010-04-30 Richard Guenther <rguenther@suse.de>
4034 PR tree-optimization/43879
4035 * tree-ssa-structalias.c (type_could_have_pointers): Functions
4038 2010-04-30 Jan Hubicka <jh@suse.cz>
4040 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4042 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4044 2010-04-30 Jan Hubicka <jh@suse.cz>
4046 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4048 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4049 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4050 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4051 cgraph_node_set_needs_ltrans_p): Remove.
4053 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4055 * sdbout.c: Include vec.h, do not include varray.h.
4056 (deferred_global_decls, sdbout_global_decl,
4057 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4058 * toplev.c: Do not include varray.h.
4059 (dump_memory_report): Do not dump VARRAY statistics.
4060 * gengtype.c (open_base_file): Ignore varray.h.
4061 * Makefile.in: Update for abovementioned changes.
4062 Remove all traces of varray.c and varray.h.
4063 * varray.c: Remove file.
4064 * varray.h: Remove file.
4066 2010-04-30 Jan Hubicka <jh@suse.cz>
4068 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4071 2010-04-30 Jan Hubicka <jh@suse.cz>
4073 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4076 2010-04-30 Richard Guenther <rguenther@suse.de>
4078 * tree-ssa-structalias.c (get_constraint_for_1): Generate
4079 constraints for CONSTRUCTOR.
4081 2010-04-30 Richard Guenther <rguenther@suse.de>
4084 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4085 first after all lowering passes.
4087 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4089 * toplev.c: Include varray.h for statistics dumping.
4090 * tree.h: Do not declare varray_head_tag.
4091 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4092 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4093 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4094 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4095 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4096 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4097 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4098 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4100 * Makefile.in: Update for abovementioned changes.
4102 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4105 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4107 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4109 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4110 Use this function to do machine-specific conversion.
4111 (picochip_legitimize_reload_address): Likewise.
4112 (picochip_legitimate_address_p): Check valid base register only if
4114 (picochip_check_conditional_copy): Check for modw only if opnd is
4116 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4117 to call the function in c.
4118 * config/picochip/picochip-protos.h
4119 (picochip_legitimize_reload_address): Define.
4120 * config/picochip/picochip.md (supported_compare1): Define.
4122 2010-04-30 Jan Hubicka <jh@suse.cz>
4124 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4125 (cgraph_global_info): Remove inlined.
4126 (LTO_cgraph_tag_names): Remove.
4127 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4128 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4129 simplify cgraph tags and document.
4130 (lto_output_node): Use only LTO_cgraph_unavail_node and
4131 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4132 for_functions_valid, global info, process and output flags.
4133 (input_overwrite_node): Initialize estimated stack size and
4134 estimated growth. Do not read flags we no longer store.
4135 (input_node): Likewise do not read info no longer stored.
4136 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4139 2010-04-30 Richard Guenther <rguenther@suse.de>
4141 PR tree-optimization/43879
4142 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4143 handle non-zero initializers.
4145 2010-04-30 Richard Guenther <rguenther@suse.de>
4147 * builtins.c (fold_builtin_1): Delete free (0).
4149 2010-04-29 Jan Hubicka <jh@suse.cz>
4151 * gengtype.c (open_base_files): Add lto-streamer.h
4152 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4153 (pass_ipa_cp): GGC collect.
4154 * toplev. (compile_file): Do not output symbols.
4155 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4156 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4157 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4158 * lto-section-in.c: Include ggc.h
4159 (lto_new_in_decl_state): Alloc in GGC.
4160 (lto_delete_in_decl_state): Likewise.
4161 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4164 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4167 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4168 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
4169 (HONOR_REG_ALLOC_ORDER): Describe new macro.
4170 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4171 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4172 account only if HONOR_REG_ALLOC_ORDER is not defined.
4173 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4174 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4176 2010-04-29 Jon Grant <04@jguk.org>
4178 * collect2.c (vflag): Change type from int to bool.
4180 (helpflag): New global bool.
4181 (main): Set vflag and debug with boolean, not integer truth values.
4182 Accept new "--help" option and output usage text if found.
4183 * collect2.h (vflag): Update prototype.
4186 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4189 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4191 2010-04-29 Richard Guenther <rguenther@suse.de>
4194 * plugin.h (invoke_plugin_callbacks): Annotate arguments
4195 with ATTRIBUTE_UNUSED.
4197 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4200 * config/i386/i386.c (get_some_local_dynamic_name): Replace
4201 INSN_P with NONDEBUG_INSN_P.
4202 (distance_non_agu_define): Likewise.
4203 (distance_agu_use): Likewise.
4205 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4207 From Dominique d'Humieres <dominiq@lps.ens.fr>
4209 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4212 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
4214 * plugin.h (invoke_plugin_callbacks): New inline function.
4215 * plugin.c (flag_plugin_added): New global flag.
4216 (add_new_plugin): Initialize above flag.
4217 (invoke_plugin_callbacks): Rename to ...
4218 (invoke_plugin_callbacks_full): ... this.
4220 2010-04-28 Jan Hubicka <jh@suse.cz>
4222 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4223 (lto_varpool_replace_node): New.
4224 (lto_symtab_resolve_symbols): Resolve varpool nodes.
4225 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4226 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4227 * cgraph.h (varpool_node_ptr): New type.
4228 (varpool_node_ptr): New vector.
4229 (varpool_node_set_def): New structure.
4230 (varpool_node_set): New type.
4231 (varpool_node_set): New vector.
4232 (varpool_node_set_element_def): New structure.
4233 (varpool_node_set_element, const_varpool_node_set_element): New types.
4234 (varpool_node_set_iterator): New type.
4235 (varpool_node): Add prev pointers, add used_from_other_partition,
4237 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4238 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4239 varpool_get_node, varpool_remove_node): Declare.
4240 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4241 varpool_node_set_size): New inlines.
4242 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4243 * tree-pass.h (varpool_node_set_def): Forward declare.
4244 (ipa_opt_pass_d): Summary writting takes vnode sets too.
4245 (ipa_write_optimization_summaries): Update prototype.
4246 * ipa-cp.c (ipcp_write_summary): Update.
4247 * ipa-reference.c (ipa_reference_write_summary): Update.
4248 * lto-cgraph.c (lto_output_varpool_node): New static function.
4249 (output_varpool): New function.
4250 (input_varpool_node): New static function.
4251 (input_varpool_1): New function.
4252 (input_cgraph): Input varpool.
4253 * ipa-pure-const.c (pure_const_write_summary): Update.
4254 * lto-streamer-out.c (lto_output): Update, output varpool too.
4255 (write_global_stream): Kill WPA hack.
4256 (produce_asm_for_decls): Update.
4257 (output_alias_pair_p): Handle variables.
4258 (output_unreferenced_globals): Output only needed partition of varpool.
4259 * ipa-inline.c (inline_write_summary): Update.
4260 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4262 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4263 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4264 varpool_node_set_new, varpool_node_set_add,
4265 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4266 debug_varpool_node_set): New functions.
4267 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4268 (execute_one_pass): Process new decls too.
4269 (ipa_write_summaries_2): Pass around vsets.
4270 (ipa_write_summaries_1): Likewise.
4271 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4273 (ipa_write_optimization_summaries_1): Pass around vsets.
4274 (ipa_write_optimization_summaries): Likewise.
4275 * varpool.c (varpool_get_node): New.
4276 (varpool_node): Update doubly linked lists.
4277 (varpool_remove_node): New.
4278 (dump_varpool_node): More dumping.
4279 (varpool_enqueue_needed_node): Update doubly linked lists.
4280 (decide_is_variable_needed): Kill ltrans hack.
4281 (varpool_finalize_decl): Kill lto hack.
4282 (varpool_assemble_decl): Skip decls in other partitions.
4283 (varpool_assemble_pending_decls): Update doubly linkes lists.
4284 (varpool_empty_needed_queue): Likewise.
4285 (varpool_extra_name_alias): Likewise.
4286 * lto-streamer.c (lto_get_section_name): Add vars section.
4287 * lto-streamer.h (lto_section_type): Update.
4288 (output_varpool, input_varpool): Declare.
4290 2010-04-28 Mike Stump <mikestump@comcast.net>
4292 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4294 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4296 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4297 record or union type with RECORD_OR_UNION_TYPE_P predicate.
4298 (lto_input_ts_type_tree_pointers): Likewise.
4299 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4300 (lto_output_ts_type_tree_pointers): Likewise.
4302 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4304 Uniquization of constants at the Tree level
4305 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4306 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4308 (tree_output_constant_def): Declare.
4309 * gimplify.c (gimplify_init_constructor): When using block copy, first
4310 uniquize the constant constructor on the RHS.
4311 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4312 DECL_IN_CONSTANT_POOL flag.
4313 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4314 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4316 (assemble_variable): Deal with symbols belonging to the tree constant
4318 (get_constant_section): Add ALIGN parameter and simplify.
4319 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4320 (assemble_constant_contents): Use the expression of the VAR_DECL.
4321 (output_constant_def_contents): Use the alignment of the VAR_DECL.
4322 (tree_output_constant_def): New global function.
4323 (mark_constant): Use the expression of the VAR_DECL.
4324 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4326 (output_object_block): Likewise and assemble the expression.
4328 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4330 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4331 hash_tree, eq_tree): New tree hash table.
4332 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4333 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4334 lto_orig_address_remove): Reimplement.
4336 2010-04-28 Xinliang David Li <davidxl@google.com>
4339 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4340 (compute_uninit_opnds_pos): New function.
4341 (is_non_loop_exit_postdominating): New function.
4342 (compute_control_dep_chain): New function.
4343 (find_pdom): New function.
4344 (convert_control_dep_chain_into_preds): New function.
4345 (find_predicates): New function.
4346 (find_control_equiv_block): New function.
4347 (collect_phi_def_edges): New function.
4348 (find_def_preds): New function.
4349 (find_dom): New function.
4350 (dump_predicates): New function.
4351 (get_cmp_code): New function.
4352 (is_value_included_in): New function.
4353 (find_matching_predicate_in_rest_chains): New function.
4354 (use_pred_not_overlap_with_undef_path_pred): New function.
4355 (is_use_properly_guarded): New function.
4356 (normalize_cond_1): New function.
4357 (is_and_or_or): New function.
4358 (normalize_cond): New function.
4359 (is_gcond_subset_of): New function.
4360 (is_subset_of_any): New function.
4361 (is_or_set_subset_of): New function.
4362 (is_and_set_subset_of): New function.
4363 (is_norm_cond_subset_of): New function.
4364 (is_pred_expr_subset_of): New function.
4365 (is_pred_chain_subset_of): New function.
4366 (is_included_in): New function.
4367 (is_superset_of): New function.
4368 (find_uninit_use): New function.
4369 (warn_uninitialized_phi): New function.
4370 (compute_possibly_undefined_names): New function.
4371 (ssa_undefined_value_p): New function.
4372 (execute_late_warn_uninitialized): New function.
4373 * tree-ssa.c (ssa_undefined_value_p): Removed.
4374 (warn_uninit): Changed to extern.
4375 (warn_uninitialized_phi): Removed.
4376 (warn_uninitialized_vars): Changed to extern.
4377 (execute_late_warn_uninitialized): Removed
4378 * tree-flow.h: Add new prototypes.
4379 * timevar.def: Add new time variable.
4380 * Makefile.in: Add new build file.
4382 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
4384 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4387 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4390 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4392 2010-04-28 Martin Jambor <mjambor@suse.cz>
4394 * cgraph.h (struct cgraph_node): New field indirect_calls.
4395 (struct cgraph_indirect_call_info): New type.
4396 (struct cgraph_edge): Removed field indirect_call. New fields
4397 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4398 (cgraph_create_indirect_edge): Declare.
4399 (cgraph_make_edge_direct): Likewise.
4400 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4401 * ipa-prop.h (struct ipa_param_call_note): Removed.
4402 (struct ipa_node_params): Removed field param_calls.
4403 (ipa_create_all_structures_for_iinln): Declare.
4404 * cgraph.c: Described indirect edges and uids in initial comment.
4405 (cgraph_add_edge_to_call_site_hash): New function.
4406 (cgraph_edge): Search also among the indirect edges, use
4407 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4408 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4409 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4411 (initialize_inline_failed): Assign a reason to indirect edges.
4412 (cgraph_create_edge_1): New function.
4413 (cgraph_create_edge): Moved some functionality to
4414 cgraph_create_edge_1.
4415 (cgraph_create_indirect_edge): New function.
4416 (cgraph_edge_remove_callee): Add an assert checking for
4418 (cgraph_edge_remove_caller): Special-case indirect edges.
4419 (cgraph_remove_edge): Likewise.
4420 (cgraph_set_edge_callee): New function.
4421 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4422 (cgraph_make_edge_direct): New function.
4423 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4424 the declaration of the call statement matches.
4425 (cgraph_node_remove_callees): Special-case indirect edges.
4426 (cgraph_clone_edge): Likewise.
4427 (cgraph_clone_node): Clone also the indirect edges.
4428 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4429 indirect_call, dump count of indirect_calls edges.
4430 * ipa-prop.c (iinlining_processed_edges): New variable.
4431 (ipa_note_param_call): Create indirect edges instead of
4432 creating notes. New parameter node.
4433 (ipa_analyze_call_uses): New parameter node, pass it on to
4434 ipa_note_param_call.
4435 (ipa_analyze_stmt_uses): Likewise.
4436 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4437 (print_edge_addition_message): Work on edges rather than on notes.
4438 (update_call_notes_after_inlining): Likewise, renamed to
4439 update_indirect_edges_after_inlining.
4440 (ipa_create_all_structures_for_iinln): New function.
4441 (ipa_free_node_params_substructures): Do not free notes.
4442 (ipa_edge_duplication_hook): Propagate bits within
4443 iinlining_processed_edges bitmap.
4444 (ipa_node_duplication_hook): Do not duplicate notes.
4445 (free_all_ipa_structures_after_ipa_cp): Renamed to
4446 ipa_free_all_structures_after_ipa_cp.
4447 (free_all_ipa_structures_after_iinln): Renamed to
4448 ipa_free_all_structures_after_iinln.
4449 (ipa_write_param_call_note): Removed.
4450 (ipa_read_param_call_note): Removed.
4451 (ipa_write_indirect_edge_info): New function.
4452 (ipa_read_indirect_edge_info): Likewise.
4453 (ipa_write_node_info): Do not stream notes, do stream information
4455 (ipa_read_node_info): Likewise.
4456 (lto_ipa_fixup_call_notes): Removed.
4457 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4458 * ipa-inline.c (pass_ipa_inline): Likewise.
4459 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4460 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4461 * tree-inline.c (copy_bb): Removed an unnecessary double check for
4463 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4465 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4466 (output_cgraph): Stream also indirect edges.
4467 (lto_output_edge): Added capability to stream indirect edges.
4468 (input_edge): Likewise.
4469 (input_cgraph_1): Likewise.
4470 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4473 2010-04-28 Richard Guenther <rguenther@suse.de>
4475 PR tree-optimization/43879
4476 PR tree-optimization/43909
4477 * tree-ssa-structalias.c (struct variable_info): Add
4478 only_restrict_pointers flag.
4479 (new_var_info): Initialize it. Increment stats.total_vars here.
4480 (create_function_info_for): Do not increment stats.total_vars here.
4481 (get_function_part_constraint): Fix build with C++.
4482 (insert_into_field_list): Remove.
4483 (push_fields_onto_fieldstack): Properly merge fields.
4484 (create_variable_info_for): Split and simplify.
4485 (create_variable_info_for_1): New piece.
4486 (intra_create_variable_infos): Properly make restrict constraints
4489 2010-04-28 Richard Guenther <rguenther@suse.de>
4492 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4494 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
4495 Jan Hubicka <hubicka@ucw.cz>
4497 * doc/invoke.texi (-Wsuggest-attribute=const,
4498 -Wsuggest-attribute=pure): Document.
4499 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4500 (function_always_visible_to_compiler_p,
4501 suggest_attribute, warn_function_pure, warn_function_const):
4503 (check_call): Improve debug info.
4504 (analyze_function): Do not check availability.
4505 (add_new_function): Check availability.
4506 (propagate): Output warnings.
4507 (skip_function_for_local_pure_const): New function.
4508 (local_pure_const): Use it; output warnings.
4509 * common.opt (Wsuggest-attribute=const,
4510 Wsuggest-attribute=pure): New.
4512 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4514 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4515 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4516 or DW_CFA_def_cfa_offset{,_sf}.
4518 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4520 * tree.h: Fix truncated long macros.
4522 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
4524 * collect2.c (TARGET_64BIT): Redefine to target's default.
4525 * tlink.c: Likewise.
4526 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4527 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4528 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4529 for underscoring __USER_LABEL_PREFIX__.
4530 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4531 (SUB_LINK_ENTRY32): New.
4532 (SUB_LINK_ENTRY64): New.
4533 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4534 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4535 (SUB_LINK_ENTRY64): New.
4536 (SUB_LINK_ENTRY): New.
4537 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4538 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4539 x64 target is choosen.
4540 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4541 * configure: Regenerated.
4542 * configure.ac (leading-mingw64-underscores): Option added.
4544 2010-04-27 Jan Hubicka <jh@suse.cz>
4546 * doc/invoke.texi (-fipa-profile): Document.
4547 * opts.c (decode_options): Enable ipa-profile at -O1.
4548 * timevar.def (TV_IPA_PROFILE): Define.
4549 * common.opt (fipa-profile): Add.
4550 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4552 (cgraph_propagate_frequency): Handle only local ones.
4553 * tree-pass.h (pass_ipa_profile): Declare.
4554 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4555 (pass_ipa_profile): Use TV_IPA_PROFILE.
4556 * ipa.c (ipa_profile): New function.
4557 (gate_ipa_profile): Likewise.
4558 (pass_ipa_profile): New global variable.
4559 * passes.c (pass_ipa_profile): New.
4561 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
4563 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4565 2010-04-27 Martin Jambor <mjambor@suse.cz>
4568 * ipa.c (dissolve_same_comdat_group_list): New function.
4569 (function_and_variable_visibility): Call
4570 dissolve_same_comdat_group_list when comdat group contains external or
4572 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4573 lists are circular and that they contain only DECL_ONE_ONLY nodes.
4575 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4577 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4578 (const_hash_1) <VECTOR_CST>: New case.
4579 (compare_constant) <VECTOR_CST>: Likewise.
4580 <ADDR_EXPR>: Deal with LABEL_REFs.
4581 (copy_constant) <VECTOR_CST>: New case.
4583 2010-04-27 Jan Hubicka <jh@suse.cz>
4585 * cgraph.c (cgraph_propagate_frequency): New function.
4586 * cgraph.h (cgraph_propagate_frequency): Declare.
4587 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4588 cgraph_propagate_frequency.
4590 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4592 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4594 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
4597 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4598 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4599 here to determine which regs to push and how much stack to reserve.
4601 2010-04-27 Jie Zhang <jie@codesourcery.com>
4603 * doc/gimple.texi (gimple_statement_with_ops): Remove
4604 addresses_taken field.
4605 (gimple_statement_with_memory_ops): Likewise.
4607 2010-04-27 Jan Hubicka <jh@suse.cz>
4609 * tree-inline.c (eni_inlining_weights): Remove.
4610 (estimate_num_insns): Special case more builtins.
4612 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
4615 * c-typeck.c (build_binary_op): Move forward check for comparison
4616 pointer with null pointer constant and adjust the diagnostic message.
4618 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
4621 * configure.ac (gcc_cv_as_section_has_align): Set if installed
4622 binutils supports extended .section directive needed by LTO, or
4623 warn if older binutils found.
4624 (LTO_BINARY_READER): New AC_SUBST'd variable.
4625 (LTO_USE_LIBELF): Likewise.
4626 * gcc/config.gcc (lto_binary_reader): New target-specific configure
4628 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4629 (LTO_USE_LIBELF): Likewise.
4630 * configure: Regenerate.
4632 * collect2.c (is_elf): Rename from this ...
4633 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4634 object files in addition to ELF-formatted ones.
4635 (scan_prog_file): Caller updated. Also allow for LTO info marker
4636 symbol to be prefixed or not by an extra underscore.
4638 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4639 * config/i386/winnt.c: Also #include lto-streamer.h
4640 (i386_pe_asm_named_section): Specify 1-byte section alignment for
4642 (i386_pe_asm_output_aligned_decl_common): Add comment.
4643 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4645 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
4648 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4649 Add missing earlyclobber for second alternative.
4651 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
4653 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4654 bits for artificial defs at the top of the block.
4655 * fwprop.c (single_def_use_enter_block): Don't call it.
4657 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
4660 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4661 instead of "$gcc_cv_objdump -T".
4662 Use "-undefined dynamic_lookup" on darwin.
4663 * gcc/configure: Regenerate.
4665 2010-04-26 Jakub Jelinek <jakub@redhat.com>
4668 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4670 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4672 * c-parser.c (struct c_token): Move location field up.
4673 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4674 (struct c_declspecs): Convert typespec_word, storage_class, and
4675 default_int_p into bitfields.
4676 (struct c_declarator): Move loc field up.
4678 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4680 * cfgloop.h (struct loop): Move can_be_parallel field up.
4681 * ipa-prop.h (struct ip_node_params): Move bitfields up.
4682 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4684 (struct iv_cand): Convert pos field into a bitfield.
4685 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4687 (struct _stmt_vec_info): Shuffle fields for better packing.
4689 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4691 * varasm.c (IN_NAMED_SECTION): Remove guard.
4692 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4693 (IN_NAMED_SECTION_P): ...this.
4694 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4695 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4697 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4699 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4700 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
4701 of shadowing it. Fix comments.
4703 2010-04-26 Jan Hubicka <jh@suse.cz>
4705 * cgraph.c (cgraph_create_node): Set node frequency to normal.
4706 (cgraph_clone_node): Copy function frequency.
4707 * cgraph.h (node_frequency): New enum
4708 (struct cgraph_node): Add.
4709 * final.c (rest_of_clean_state): Update.
4710 * lto-cgraph.c (lto_output_node): Output node frequency.
4711 (input_overwrite_node): Input node frequency.
4712 * tre-ssa-loop-ivopts (computation_cost): Update.
4713 * lto-streamer-out.c (output_function): Do not output function
4715 * predict.c (maybe_hot_frequency_p): Update and handle functions
4717 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4719 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4720 (compute_function_frequency): Set noreturn functions to be executed
4722 (choose_function_section): Update.
4723 * lto-streamer-in.c (input_function): Do not input function frequency.
4724 * function.c (allocate_struct_function): Do not initialize function
4726 * function.h (function_frequency): Remove.
4727 (struct function): Remove function frequency.
4728 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4729 (try_update): Update.
4730 * tree-inline.c (initialize_cfun): Do not update function frequency.
4731 * passes.c (pass_init_dump_file): Update.
4732 * i386.c (ix86_compute_frame_layout): Update.
4733 (ix86_pad_returns): Update.
4735 2010-04-26 Jie Zhang <jie@codesourcery.com>
4737 PR tree-optimization/43833
4738 * tree-vrp.c (range_int_cst_p): New.
4739 (range_int_cst_singleton_p): New.
4740 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4741 when both operands are constants. Use range_int_cst_p in
4744 2010-04-26 Jan Hubicka <jh@suse.cz>
4746 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4748 2010-04-26 Richard Guenther <rguenther@suse.de>
4751 * gimple.c (gimple_decl_printable_name): Deal gracefully
4752 with a NULL DECL_NAME.
4754 2010-04-26 Richard Guenther <rguenther@suse.de>
4757 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4758 if emitting debug information and it is either a function
4759 or a namespace decl.
4761 2010-04-26 Ira Rosen <irar@il.ibm.com>
4763 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4764 determine if the statement is vectorizable, and a macro to access it.
4765 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4766 Skip statements that can't be vectorized. If the analysis fails,
4767 mark the statement as unvectorizable if vectorizing basic block.
4768 (vect_compute_data_refs_alignment): Likewise.
4769 (vect_verify_datarefs_alignment): Skip statements marked as
4770 unvectorizable. Add print.
4771 (vect_analyze_group_access): Skip statements that can't be
4772 vectorized. If the analysis fails, mark the statement as
4773 unvectorizable if vectorizing basic block.
4774 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4775 * tree-vect-stmts.c (vectorizable_store): Fix the number of
4776 generated stmts for SLP.
4777 (new_stmt_vec_info): Initialize the new field.
4778 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4779 statements marked as unvectorizable.
4781 2010-04-25 Joseph Myers <joseph@codesourcery.com>
4783 * c-common.c (flag_isoc1x): New.
4784 (flag_isoc99): Update comment.
4785 * c-common.h (flag_isoc1x): New.
4786 (flag_isoc99): Update comment.
4787 * c-cppbuiltin.c (builtin_define_float_constants): Also define
4788 __<type>_DECIMAL_DIG__.
4789 * c-opts.c (set_std_c1x): New.
4790 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
4791 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
4792 * c.opt (-std=c1x, -std=gnu1x): New options.
4793 * doc/cpp.texi: Mention -std=c1x.
4794 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
4795 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
4796 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
4797 * doc/standards.texi: Mention C1X.
4798 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
4799 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
4800 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4803 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
4805 * config/i386/gmon-sol2.c (_mcleanup): Change format string
4806 placeholder from 0x%x to %#x.
4807 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4808 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4809 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4810 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4811 * config/i386/i386.c (ix86_target_string): Ditto.
4812 (output_pic_addr_const): Ditto.
4813 (print_operand): Ditto.
4815 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
4817 * combine.c (find_split_point): Add third argument. Use it
4818 to find nested multiply-accumulate instructions. Adjust calls.
4819 (try_combine): Adjust call to find_split_point.
4821 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4823 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
4825 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
4827 PR tree-optimization/41442
4828 * fold-const.c (merge_truthop_with_opposite_arm): New function.
4829 (fold_binary_loc): Call it.
4831 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4833 * toplev.c (general_init): Set default for fdiagnostics-show-option.
4834 * opts.c (common_handle_option): Allow disabling it.
4835 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
4837 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
4839 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
4840 between modes if both types are integral.
4842 2010-04-23 Richard Guenther <rguenther@suse.de>
4844 PR tree-optimization/43572
4845 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
4847 2010-04-23 Richard Guenther <rguenther@suse.de>
4850 * tree-inline.c (tree_can_inline_p): Also check compatibility
4853 2010-04-23 Martin Jambor <mjambor@suse.cz>
4855 PR tree-optimization/43846
4856 * tree-sra.c (struct access): New flag grp_assignment_read.
4857 (build_accesses_from_assign): Set grp_assignment_read.
4858 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
4859 (enum mark_read_status): New type.
4860 (analyze_access_subtree): Propagate grp_assignment_read, create
4861 accesses also if both direct_read and root->grp_assignment_read.
4863 2010-04-23 Martin Jambor <mjambor@suse.cz>
4866 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
4867 function does not have type attributes.
4869 2010-04-23 Richard Guenther <rguenther@suse.de>
4872 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
4875 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4877 * sese.h (create_if_region_on_edge): Remove.
4879 * sese.c (create_if_region_on_edge): Make static.
4881 * tree-inline.c: Do not include ggc.h.
4883 * expr.c: Do not include ggc.h.
4885 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
4888 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
4891 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4892 in the middle of insns for casesi_worker_2.
4894 2010-04-22 David Edelsohn <edelsohn@gnu.org>
4896 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
4898 2010-04-22 Ira Rosen <irar@il.ibm.com>
4900 PR tree-optimization/43842
4901 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4902 loop unrolling in update of exit phis. Fix comment.
4903 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
4904 least two reduction statements in the loop before starting SLP
4907 2010-04-22 Nick Clifton <nickc@redhat.com>
4909 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
4911 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
4913 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
4916 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4918 * tree-parloops.c (loop_parallel_p): New argument
4919 parloop_obstack. Pass it down.
4920 (parallelize_loops): New variable parloop_obstack. Initialize it,
4921 pass it down, free it.
4923 * tree-loop-linear.c (linear_transform_loops): Pass down
4926 * tree-data-ref.h (lambda_compute_access_matrices): New argument
4927 of type struct obstack *.
4929 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
4930 scratch_obstack. Initialize it, pass down, free it.
4932 * lambda.h (lambda_loop_new): Remove.
4933 (lambda_matrix_new, lambda_matrix_inverse)
4934 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
4935 argument of type struct obstack *.
4937 * lambda-trans.c (lambda_trans_matrix_new): New argument
4938 lambda_obstack. Pass it down, use obstack allocation for ret.
4939 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
4942 * lambda-mat.c (lambda_matrix_get_column)
4943 (lambda_matrix_project_to_null): Remove.
4944 (lambda_matrix_new): New argument lambda_obstack. Use obstack
4946 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
4949 * lambda-code.c (lambda_loop_new): New function.
4950 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
4951 (lambda_compute_auxillary_space, lambda_compute_target_space)
4952 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
4953 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
4954 (build_access_matrix): New argument lambda_obstack. Use obstack
4956 (lambda_compute_step_signs, lambda_compute_access_matrices): New
4957 argument lambda_obstack. Pass it down.
4959 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4961 * optabs.h (expand_widening_mult): Declare.
4963 2010-04-22 Richard Guenther <rguenther@suse.de>
4965 PR tree-optimization/43845
4966 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
4967 lookup the CALL_EXPR function and arguments.
4969 2010-04-22 Nick Clifton <nickc@redhat.com>
4971 * config/stormy16/stormy16.c
4972 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
4973 * config/stormy16/stormy16.h: Tidy up formatting.
4974 (DONT_USE_BUILTIN_SETJMP): Remove definition.
4975 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
4976 (ineqbranchsi): Delete pattern.
4977 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
4978 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
4979 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4980 stormy16-lib2-ucmpsi2.c.
4982 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
4984 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
4985 df_simulate_find_noclobber_defs as appropriate. Keep track of an
4986 extra set merge_set_noclobber, and use it to relax the final test
4988 * df.h (df_simulate_find_noclobber_defs): Declare.
4989 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
4991 (df_simulate_find_noclobber_defs): New function.
4993 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
4995 * config/i386/i386.md: Use {} around multi-line preparation statements.
4997 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4999 * c-tree.h (push_init_level, pop_init_level, set_init_index)
5000 (process_init_element): New argument of type struct obstack *.
5002 * c-typeck.c (push_init_level, pop_init_level, set_designator)
5003 (set_init_index, set_init_label, set_nonincremental_init)
5004 (set_nonincremental_init_from_string, find_init_member)
5005 (output_init_element, output_pending_init_elements)
5006 (process_init_element): New argument braced_init_obstack. Pass it
5008 (push_range_stack, add_pending_init): New argument
5009 braced_init_obstack. Use obstack allocation.
5011 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5012 braced_init_obstack. Pass it down.
5013 (c_parser_braced_init): New variables ret, braced_init_obstack.
5014 Initialize obstack, pass it down and finally free it.
5016 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5019 * tree-pass.h (pass_optimize_widening_mul): Declare.
5020 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5021 gate_optimize_widening_mul): New static functions.
5022 (pass_optimize_widening_mul): New.
5023 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5024 <case MULT_EXPR>: Remove support for widening multiplies.
5025 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5026 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5027 simplify_gen_unary rather than directly building extensions.
5028 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5030 * expmed.c (expand_widening_mult): New function.
5031 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5033 2010-04-21 Jan Hubicka <jh@suse.cz>
5035 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5036 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5037 * lto-wpa-fixup.c: Remove.
5038 * Makefile.in (lto-wpa-fixup.o): Remove.
5039 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5040 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5041 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5043 2010-04-21 Jan Hubicka <jh@suse.cz>
5045 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5046 add write_optimization_summary, read_optimization_summary.
5047 (ipa_write_summaries_of_cgraph_node_set): Remove.
5048 (ipa_write_optimization_summaries): Declare.
5049 (ipa_read_optimization_summaries): Declare.
5050 * ipa-cp.c (pass_ipa_cp): Update.
5051 * ipa-reference.c (pass_ipa_reference): Update.
5052 * ipa-pure-const.c (pass_ipa_pure_const): Update.
5053 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5055 * ipa-inline.c (pass_ipa_inline): Update.
5056 * ipa.c (pass_ipa_whole_program): Update.
5057 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5058 * passes.c (ipa_write_summaries_1): Do not test wpa.
5059 (ipa_write_optimization_summaries_1): New.
5060 (ipa_write_optimization_summaries): New.
5061 (ipa_read_summaries): Do not test ltrans.
5062 (ipa_read_optimization_summaries_1): New.
5063 (ipa_read_optimization_summaries): New.
5065 2010-04-21 Jan Hubicka <jh@suse.cz>
5067 * lto-cgraph.c (lto_output_node): Do not output comdat groups
5069 (output_cgraph): Do not arrange comdat groups for boundary nodes.
5071 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5074 * dwarf2out.c (add_name_and_src_coords_attributes): Add
5075 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5077 2010-04-21 Jan Hubicka <jh@suse.cz>
5079 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5081 2010-04-21 Jan Hubicka <jh@suse.cz>
5083 * varpool.c (decide_is_variable_needed): Variable is always needed
5086 2010-04-21 Jan Hubicka <jh@suse.cz>
5088 * opts.c (decode_options): Enable pure-const pass for whopr.
5090 2010-04-21 Jan Hubicka <jh@suse.cz>
5092 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5093 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5095 (cgraph_decide_inlining): Do not expect callee to be removed in all
5098 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5100 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5102 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5104 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5105 amdfam10_decode attributes.
5107 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5110 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5111 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5112 (lower_copyprivate_clauses): Use private var in outer
5113 context instead of original var. Make sure the types
5114 are correct for VLAs.
5116 2010-04-21 Richard Guenther <rguenther@suse.de>
5118 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5119 to non-pointer objects.
5121 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5123 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5124 last chain entry if it starts with the still current label.
5125 (add_location_or_const_value_attribute): Check that
5126 loc_list->first->next is NULL instead of comparing ->first with ->last.
5127 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5128 to add_var_loc_to_decl.
5130 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5131 >= 4 add also address size and segment size fields into CIE header.
5133 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5134 long as address size is the same as sizeof (void *) and
5136 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5137 address size or segment size is unexpected, return DW_EH_PE_omit.
5138 (classify_object_over_fdes): If get_cie_encoding returned
5139 DW_EH_PE_omit, return -1.
5140 (init_object): If classify_object_over_fdes returned -1,
5141 pretend there were no FDEs at all.
5143 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5145 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5146 bswap{si,di}2 using SWI48 mode iterator.
5147 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5148 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5149 set modrm attribute of bswap insn to 0 and remove length attribute.
5150 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5151 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5152 set mode attribute to <MODE> and remove length attribute.
5154 2010-04-20 James E. Wilson <wilson@codesourcery.com>
5156 PR rtl-optimization/43520
5157 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5158 zero available registers.
5160 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5162 * builtins.c (fold_builtin_cproj): Fold more cases.
5164 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5166 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5167 (fold_builtin_1): Fold builtin cproj.
5168 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5169 Use ATTR_CONST_NOTHROW_LIST.
5171 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
5173 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5174 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
5175 ffsi2_no_cmove for !TARGET_CMOVE.
5176 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
5177 (ffssi2): Remove expander.
5178 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5180 (ctz<mode>2): Ditto from ctz{si,di}2.
5181 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5183 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5186 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5188 * dwarf2out.c (AT_linkage_name): Define.
5189 (clone_as_declaration): Handle DW_AT_linkage_name.
5190 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5191 of DW_AT_MIPS_linkage_name.
5192 (move_linkage_attr): Likewise.
5193 (dwarf2out_finish): Likewise.
5195 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
5198 * fold-const.c (fold_comparison): New folding rule.
5200 2010-04-20 Anatoly Sokolov <aesok@post.ru>
5202 * double-int.h (double_int_setbit): Declare.
5203 * double-int.c (double_int_setbit): New function.
5204 * rtl.h (immed_double_int_const): Declare.
5205 * emit-rtl.c (immed_double_int_const): New function.
5206 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5207 and immed_double_int_const functions.
5208 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5209 expand_copysign_bit): (Ditto.).
5210 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5211 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5212 * dojump.c (prefer_and_bit_test): (Ditto.).
5213 * expr.c (convert_modes, reduce_to_bit_field_precision,
5214 const_vector_from_tree): (Ditto.).
5215 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5217 2010-04-20 Jan Hubicka <jh@suse.cz>
5219 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5220 (dump_cgraph_node): Dump new flags.
5221 * cgraph.h (struct cgraph_node): Add flags
5222 reachable_from_other_partition and in_other_partition.
5223 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5224 other partition can not be removed.
5225 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5226 the other partition must be output; silence sanity checking on
5227 leaking functions bodies from other paritition.
5228 * lto-cgraph.c (reachable_from_other_partition_p): New function.
5229 (lto_output_node): Output new flags; do not sanity check that inline
5230 clones are output; drop lto_forced_extern_inline_p code; do not mock
5231 visibility flags at partition boundaries.
5232 (add_node_to): New function.
5233 (output_cgraph): Use it to sort functions so masters appear before
5235 (input_overwrite_node): Input new flags.
5236 * passes.c (ipa_write_summaries): Do not call
5237 lto_new_extern_inline_states.
5238 * lto-section-out.c (forced_extern_inline,
5239 lto_new_extern_inline_states lto_delete_extern_inline_states,
5240 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5241 * lto-streamer.h (lto_new_extern_inline_states,
5242 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5243 lto_forced_extern_inline_p): Kill.
5245 2010-04-20 Richard Guenther <rguenther@suse.de>
5247 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5248 from vars that can have pointers.
5249 (process_constraint): Dump useless constraints.
5251 2010-04-20 Richard Guenther <rguenther@suse.de>
5253 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5254 (dump_sa_points_to_info): Remove asserts.
5255 (init_base_vars): nothing_id isn't an escape point nor does it
5258 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5260 * tree.h (TYPE_REF_IS_RVALUE): Define.
5261 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5262 should_move_die_to_comdat, prune_unused_types_walk): Handle
5263 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5264 (modified_type_die, gen_reference_type_die): Emit
5265 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5266 if TYPE_REF_IS_RVALUE and -gdwarf-4.
5268 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5271 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5272 calls for -fpic -m31 if they have been sibcall optimized.
5274 2010-04-19 James E. Wilson <wilson@codesourcery.com>
5276 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5277 ar.lc fixed and call-used.
5279 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5281 2010-04-19 Jan Hubicka <jh@suse.cz>
5283 * opts.c (decode_options): Disable whpr incompatible passes.
5284 * lto/lto.c (lto_1_to_1_map): Skip clones.
5285 (read_cgraph_and_symbols): Do not mark everything as needed.
5286 (do_whole_program_analysis): Do map only after optimizing;
5287 set proper cgraph_state; use passmanager.
5289 2010-04-19 DJ Delorie <dj@redhat.com>
5291 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5292 POINTER_PLUS_EXPR and fix them.
5294 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
5296 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5297 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5298 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5299 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5300 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5301 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5302 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5303 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5304 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5305 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5306 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5308 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
5310 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5311 (check_cond_move_block): Likewise.
5312 (cond_move_process_if_block): Likewise.
5313 (noce_find_if_block): Improve formatting.
5314 (find_if_header): Pass 0 to memset and tweak conditions.
5315 (cond_exec_find_if_block): Fix long lines and tweak conditions.
5317 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5319 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5323 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5324 with non-local decl doesn't need chain.
5326 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
5328 * ira-color.c (allocno_reload_assign): Avoid accumulating
5329 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5331 2010-04-19 Martin Jambor <mjambor@suse.cz>
5333 * gimple.h (create_tmp_reg): Declare.
5334 * gimplify.c (create_tmp_reg): New function.
5335 (gimplify_return_expr): Use create_tmp_reg.
5336 (gimplify_omp_atomic): Likewise.
5337 (gimple_regimplify_operands): Likewise.
5338 * tree-dfa.c (make_rename_temp): Likewise.
5339 * tree-predcom.c (predcom_tmp_var): Likewise.
5340 (reassociate_to_the_same_stmt): Likewise.
5341 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5342 (get_replaced_param_substitute): Likewise.
5343 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5344 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5345 * tree-ssa-pre.c (get_representative_for): Likewise.
5346 (create_expression_by_pieces): Likewise.
5347 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5348 (create_tailcall_accumulator): Likewise.
5350 2010-04-19 Martin Jambor <mjambor@suse.cz>
5352 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5354 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5356 2010-04-19 Richard Guenther <rguenther@suse.de>
5358 PR tree-optimization/43796
5359 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5360 from SCEV in the lattice.
5361 (vrp_visit_phi_node): Dump change.
5363 2010-04-19 Richard Guenther <rguenther@suse.de>
5365 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5366 * configure: Re-generated.
5368 2010-04-19 Richard Guenther <rguenther@suse.de>
5370 PR tree-optimization/43783
5371 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5372 constant ARRAY_REF operands two and three if possible.
5374 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
5377 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5379 2010-04-19 Jie Zhang <jie@codesourcery.com>
5382 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5384 2010-04-19 Ira Rosen <irar@il.ibm.com>
5386 PR tree-optimization/37027
5387 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5388 and macro to access it.
5389 (vectorizable_reduction): Add argument.
5390 (vect_get_slp_defs): Likewise.
5391 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5392 statements for possible use in SLP.
5393 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5394 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5395 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5397 (vectorizable_reduction): Likewise.
5398 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5400 (vectorizable_type_demotion, vectorizable_type_promotion,
5401 vectorizable_store): Likewise.
5402 (vect_analyze_stmt): Update call to vectorizable_reduction.
5403 (vect_transform_stmt): Likewise.
5404 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5405 (vect_build_slp_tree): Fix indentation. Check that there are no loads
5406 from different interleaving chains in same node.
5407 (vect_slp_rearrange_stmts): New function.
5408 (vect_supported_load_permutation_p): Allow load permutations for
5409 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5410 inside SLP nodes if necessary.
5411 (vect_analyze_slp_instance): Handle reductions.
5412 (vect_analyze_slp): Try to build SLP instances originating from groups
5414 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5415 (vect_get_constant_vectors): Create initial vectors for reductions
5416 according to reduction code. Add new argument.
5417 (vect_get_slp_defs): Add new argument, pass it to
5418 vect_get_constant_vectors.
5419 (vect_schedule_slp_instance): Remove SLP tree root statements.
5421 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5423 * tree.h (ENUM_IS_SCOPED): Define.
5424 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5425 for ENUM_IS_SCOPED enums.
5427 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5429 * fold-const.c (fold_comparison): Use ssizetype.
5430 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5431 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5432 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5433 * tree-object-size.c (compute_object_sizes): Use size_type_node.
5435 * tree.h (initialize_sizetypes): Remove parameter.
5436 (build_common_tree_nodes): Remove second parameter.
5437 * stor-layout.c (initialize_sizetypes): Remove parameter.
5438 Always create an unsigned type.
5439 (set_sizetype): Assert that the passed type is unsigned and simplify.
5440 * tree.c (build_common_tree_nodes): Remove second parameter.
5441 Adjust call to initialize_sizetypes.
5442 * c-decl.c (c_init_decl_processing): Remove second argument in call to
5443 build_common_tree_nodes.
5445 2010-04-18 Matthias Klose <doko@ubuntu.com>
5447 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5449 2010-04-18 Ira Rosen <irar@il.ibm.com>
5451 PR tree-optimization/43771
5452 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5453 load permutation doesn't have gaps.
5455 2010-04-18 Jan Hubicka <jh@suse.cz>
5457 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5458 (sse_prologue_save_insn expander): Use new pattern.
5459 (sse_prologue_save_insn1): New pattern and splitter.
5460 (sse_prologue_save_insn): Update to deal also with 64bit aligned
5462 * i386.c (setup_incoming_varargs_64): Do not compute jump
5464 (ix86_gimplify_va_arg): Update alignment needed.
5465 (ix86_local_alignment): Do not align all local arrays to 128bit.
5467 2010-04-17 Jan Hubicka <jh@suse.cz>
5469 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5471 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5473 * arm.md (negdi2): Remove redundant code to force values into a
5476 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5478 * arm/bpabi.S: Add EABI alignment attributes to objects.
5479 * arm/bpabi-v6m.S: Likewise.
5480 * arm/crti.asm: Likewise.
5481 * arm/crtn.asm: Likewise.
5482 * arm/lib1funcs.asm: Likewise.
5483 * arm/libunwind.S: Likewise.
5485 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5487 * arm-protos.h (tune_params): New structure.
5488 * arm.c (current_tune): New variable.
5489 (arm_constant_limit): Delete.
5490 (struct processors): Add pointer to the tune parameters.
5491 (arm_slowmul_tune): New tuning option.
5492 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5493 (all_cores): Adjust to pick up the tuning model.
5494 (arm_constant_limit): New function.
5495 (arm_override_options): Select the appropriate tuning model. Delete
5496 initialization of arm_const_limit.
5497 (arm_split_constant): Use the new constant-limit model.
5498 (arm_rtx_costs): Pick up the current tuning model.
5499 * arm.md (is_strongarm, is_xscale): Delete.
5500 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5501 for Xscale variant architectures.
5502 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5504 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5506 * config/arm/arm.c (arm_gen_constant): Remove unused variable
5508 (arm_rtx_costs_1): Remove unused variable extra_cost.
5509 (arm_unwind_emit_set): Use variable offset.
5510 (thumb1_output_casesi): Remove unused variable flags.
5512 2010-04-16 Jeff Law <law@redhat.com>
5514 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5515 needing assignment rather than doing a two-phase assignment. Remove
5516 unused variable 'm'.
5518 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5521 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5523 2010-04-16 Doug Kwan <dougkwan@google.com>
5525 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5526 (next_operand_entry_id): New static variable.
5527 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5528 (add_to_ops_vec): Assigned unique ID to operand entry.
5529 (struct oecount_s): New field ID.
5530 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5531 (undistribute_ops_list): Assign unique IDs to oecounts.
5532 (init_reassoc): reset next_operand_entry_id.
5534 2010-04-16 Doug Kwan <dougkwan@google.com>
5536 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5537 missing left parenthesis.
5539 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
5541 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5542 *btdi_rex64 using SWI48 mode iterator.
5543 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5544 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5545 *jcc_btdi_mask_rex64.
5547 2010-04-16 Anatoly Sokolov <aesok@post.ru>
5549 * double-int.h (tree_to_double_int): Convert to macro.
5550 * double-int.c (tree_to_double_int): Remove.
5552 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5555 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5556 with want_address 2 and in case a single element list might be
5557 possible, call it again with want_address 0.
5559 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5561 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5562 case 'W' print operands for HI mode.
5563 * config/h8300/h8300.h (Y0, Y2) : New constraints.
5564 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5565 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5566 * config/h8300/predicate.md (bit_register_indirect_operand): New.
5568 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5570 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5571 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5572 #xx:3 and #xx:4 mode.
5574 * config/h8300/h8300.md (inverted load with HImode dest): Add
5575 support for H8300SX.
5577 * config/h8300/predicate.md (bit_operand): Allow immediate values that
5578 satisfy 'U' constraint.
5580 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5582 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5583 * configure: Regenerate.
5584 * config.in: Regenerate.
5585 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5588 2010-04-16 Richard Guenther <rguenther@suse.de>
5590 * tree.h (struct tree_decl_minimal): Move pt_uid ...
5591 (struct tree_decl_common): ... here.
5592 (DECL_PT_UID): Adjust.
5593 (SET_DECL_PT_UID): Likewise.
5594 (DECL_PT_UID_SET_P): Likewise.
5596 2010-04-16 Richard Guenther <rguenther@suse.de>
5598 PR tree-optimization/43572
5599 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5600 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5601 * tree-flow.h (is_call_clobbered): Remove.
5602 * tree-flow-inline.h (is_call_clobbered): Likewise.
5603 * tree-dfa.c (dump_variable): Do not dump call clobber state.
5604 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5605 (execute_return_slot_opt): Adjust.
5606 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5607 check for call clobbered vars here.
5608 (find_tail_calls): Move tailcall verification to the
5611 2010-04-16 Diego Novillo <dnovillo@google.com>
5613 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5615 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5618 * config/arm/arm.md (cbranchqi4): New pattern.
5619 * config/arm/predicates.md (const0_operand,
5620 cbranchqi4_comparison_operator): New predicates.
5622 2010-04-16 Richard Guenther <rguenther@suse.de>
5624 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5625 (dump_gimple_stmt): Likewise.
5627 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5629 * recog.h (struct recog_data): New field is_operator.
5630 (struct insn_operand_data): New field is_operator.
5631 * recog.c (extract_insn): Set recog_data.is_operator.
5632 * genoutput.c (output_operand_data): Emit code to set the
5634 * reload.c (find_reloads): Use it rather than testing for an
5635 empty constraint string.
5638 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5639 If the previous insn is a cbranchsi4_insn with the same arguments,
5640 omit the compare instruction.
5642 * config/arm/arm.md (addsi3_cbranch): If destination is a high
5643 register, inputs must be low registers and we need a low register
5644 scratch. Handle alternative 2 like alternative 3.
5646 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5648 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5649 don't call get_addr on both. If one expression is a VALUE and
5650 the other a REG, check VALUE's locs if the REG isn't among them.
5652 2010-04-16 Christian Bruel <christian.bruel@st.com>
5654 * config/sh/sh.h (sh_frame_pointer_required): New function.
5655 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5656 (flag_omit_frame_pointer) Set.
5657 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5658 (rounded_frame_size): Adjust size with outgoing_args_size.
5659 (sh_set_return_address): Must return from stack pointer.
5660 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5661 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5662 (ACCUMULATE_OUTGOING_ARGS): Define.
5663 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5664 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5666 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5669 * config/sh/sh.c (sh_legitimize_reload_address): Use
5670 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5671 Remove a unneeded check for offset_base.
5673 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
5675 * configure: Regenerated.
5677 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5679 * config/s390/s390.c (s390_call_save_register_used): Switch back
5680 to HARD_REGNO_NREGS.
5682 2010-04-15 Richard Guenther <rguenther@suse.de>
5684 * alias.c (alias_set_subset_of): Handle alias-set zero
5687 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
5688 Julian Brown <julian@codesourcery.com>
5690 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5691 alternatives according to use of high and low regs.
5692 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5693 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5694 optimizing for size on Thumb-2.
5696 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
5698 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5700 2010-04-15 Richard Guenther <rguenther@suse.de>
5702 * tree-ssa-structalias.c (struct variable_info): Add
5704 (new_var_info): Initialize it.
5705 (dump_constraints): Support printing last added constraints.
5706 (debug_constraints): Adjust.
5707 (dump_constraint_graph): Likewise.
5708 (make_heapvar_for): Check for NULL cfun.
5709 (get_function_part_constraint): New function.
5710 (get_fi_for_callee): Likewise.
5711 (find_func_aliases): Properly implement IPA PTA constraints.
5712 (process_ipa_clobber): New function.
5713 (find_func_clobbers): Likewise.
5714 (insert_into_field_list_sorted): Remove.
5715 (create_function_info_for): Properly allocate vars for IPA mode.
5716 Do not use insert_into_field_list_sorted.
5717 (create_variable_info_for): Properly generate constraints for
5718 global vars in IPA mode.
5719 (dump_solution_for_var): Always dump the solution.
5720 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5721 (find_what_var_points_to): Adjust.
5722 (pt_solution_set): Change.
5723 (pt_solution_ior_into): New function.
5724 (pt_solution_empty_p): Export.
5725 (pt_solution_includes_global): Adjust.
5726 (pt_solution_includes_1): Likewise.
5727 (pt_solutions_intersect_1): Likewise.
5728 (dump_sa_points_to_info): Check some invariants.
5729 (solve_constraints): Move constraint dumping ...
5730 (compute_points_to_sets): ... here.
5731 (ipa_pta_execute): ... and here.
5732 (compute_may_aliases): Do not re-compute points-to info
5733 locally if IPA info is available.
5734 (ipa_escaped_pt): New global var.
5735 (ipa_pta_execute): Properly implement IPA PTA.
5736 * tree-into-ssa.c (dump_decl_set): Support dumping
5737 decls not in referenced-vars.
5738 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5739 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5740 (dump_points_to_solution): Likewise.
5741 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5742 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5743 (remap_gimple_stmt): Reset call clobber/use information if necessary.
5744 (copy_decl_to_var): Copy DECL_PT_UID.
5745 (copy_result_decl_to_var): Likewise.
5746 * tree.c (make_node_stat): Initialize DECL_PT_UID.
5747 (copy_node_stat): Copy it.
5748 * tree.h (DECL_PT_UID): New macro.
5749 (SET_DECL_PT_UID): Likewise.
5750 (DECL_PT_UID_SET_P): Likewise.
5751 (struct tree_decl_minimal): Add pt_uid member.
5752 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5753 (pt_solution_empty_p): Declare.
5754 (pt_solution_set): Adjust.
5755 (ipa_escaped_pt): Declare.
5756 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5757 * gimple-pretty-print.c (pp_points_to_solution): New function.
5758 (dump_gimple_call): Dump call clobber/use information.
5759 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5760 * tree-pass.h (TDF_ALIAS): New dump option.
5761 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5762 * doc/invoke.texi (-fipa-pta): Update documentation.
5764 2010-04-15 Richard Guenther <rguenther@suse.de>
5766 * Makefile.in (OBJS-common): Add gimple-fold.o.
5767 (gimple-fold.o): New rule.
5768 * tree.h (maybe_fold_offset_to_reference,
5769 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5771 * gimple.h: ... here.
5772 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5773 may_propagate_address_into_dereference): Move prototypes ...
5774 * gimple.h: ... here.
5775 * tree-ssa-ccp.c (get_symbol_constant_value,
5776 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5777 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5778 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5779 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5780 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
5781 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
5782 gimplify_and_update_call_from_tree): Move ...
5783 * gimple-fold.c: ... here. New file.
5784 (ccp_fold_builtin): Rename to ...
5785 (gimple_fold_builtin): ... this.
5786 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
5788 2010-04-15 Richard Guenther <rguenther@suse.de>
5790 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
5791 fit_double_type, force_fit_type_double, add_double_with_sign,
5792 neg_double, mul_double_with_sign, lshift_double, rshift_double,
5793 lrotate_double, rrotate_double, div_and_round_double): Move ...
5794 * double-int.c: ... here.
5795 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
5796 add_double, neg_double, mul_double_with_sign, mul_double,
5797 lshift_double, rshift_double, lrotate_double, rrotate_double,
5798 div_and_round_double): Move prototypes ...
5799 * double-int.h: ... here.
5801 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
5804 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
5805 matching constraints to ensure inputs match the output.
5807 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5810 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
5811 in an input-only operand.
5813 2010-04-15 Anatoly Sokolov <aesok@post.ru>
5815 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
5816 (double_int_not, double_int_lshift, double_int_rshift): Declare.
5817 (double_int_negative_p): Convert to static inline function.
5818 * double-int.c (double_int_lshift, double_int_lshift): New functions.
5819 (double_int_negative_p): Remove.
5820 * tree.h (lshift_double, rshift_double):
5821 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
5822 * fold-const.c (fold_convert_const_int_from_real,
5823 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
5824 (lshift_double): Change type of arith argument to bool.
5825 (rshift_double): Change type of arith argument to bool. Correct
5827 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5829 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
5832 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
5833 at the start and end of the then/else blocks, and omit them from the
5835 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
5836 argument; all callers changed. Pass zero to old_insns_match_p instead.
5837 (flow_find_head_matching_sequence): New function.
5838 (old_insns_match_p): Check REG_EH_REGION notes for calls.
5839 * basic-block.h (flow_find_cross_jump,
5840 flow_find_head_matching_sequence): Declare functions.
5842 2010-04-14 Jason Merrill <jason@redhat.com>
5845 * c-common.c (attribute_takes_identifier_p): New fn.
5846 * c-common.h: Declare it.
5848 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5850 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
5852 (*udivmod<mode>4): Ditto.
5854 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5856 * config/i386/i386.md (maxmin_int): Rename code attribute from
5857 maxminiprefix and update all users.
5858 (maxmin_float): Ditto from maxminfprefix.
5859 (logic): Ditto from logicprefix.
5860 (absneg_mnemonic): Ditto from absnegprefix.
5861 * config/i386/mmx.md: Update all users of maxminiprefix,
5862 maxminfprefix and logicprefix for rename.
5863 * config/i386/sse.md: Ditto.
5864 * config/i386/sync.md (sync_<code><mode>): Update for
5867 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5870 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
5871 warnings converted to errors.
5873 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5875 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
5876 used insn_type variable.
5877 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
5878 to avoid set-but-not-used warning.
5880 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5882 * df-core.c (df_ref_debug): Change format string placeholder
5884 * dwarf2asm.c (dw2_asm_output_data_raw,
5885 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
5886 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
5887 * dwarf2out.c (output_cfi, output_cfi_directive,
5888 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
5889 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
5891 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
5892 * print-rtl.c (print_rtx): Ditto.
5894 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5897 * builtins.c (expand_builtin_pow_root): New function to expand pow
5898 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
5899 series of sqrt and cbrt calls under -ffast-math.
5900 (expand_builtin_pow): Call it.
5902 2010-04-14 Michael Matz <matz@suse.de>
5904 PR tree-optimization/42963
5905 * tree-cfg.c (touched_switch_bbs): New static variable.
5906 (group_case_labels_stmt): New function broken out from ...
5907 (group_case_labels): ... here, use the above.
5908 (start_recording_case_labels): Allocate touched_switch_bbs.
5909 (end_recording_case_labels): Deallocate it, call
5910 group_case_labels_stmt.
5911 (gimple_redirect_edge_and_branch): Remember index of affected BB.
5913 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5915 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
5918 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5920 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
5922 2010-04-13 Jan Hubicka <jh@suse.cz>
5924 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
5925 of optimized out static functions.
5926 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
5927 cost computation. Also sanity check for overflows.
5928 (update_caller_keys): Update cgraph_edge_badness call; properly
5929 update fibheap and sanity check that it is up to date.
5930 (add_new_edges_to_heap): Update cgraph_edge_badness.
5931 (cgraph_decide_inlining_of_small_function): Likewise;
5932 add sanity checking that badness in heap is up to date;
5933 improve dumping of reason; Update badness of calls to the
5934 offline copy of function currently inlined; dump badness
5935 of functions not inlined because of unit growth limits.
5937 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5940 * c-common.c (pointer_int_sum): Disregard overflow that occured only
5941 because of sign-extension change when converting to sizetype here...
5942 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
5944 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
5945 the folding to constants. Remove redundant final conversion.
5946 (fold_binary) <associate>: Do not associate if the re-association of
5947 constants alone overflows.
5948 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
5949 to the end of the list.
5950 (multiple_of_p) <COND_EXPR>: New case.
5952 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5954 * opt-functions.awk (opt_sanitized_name): New.
5956 * optc-gen.awk: Use it
5957 * opth-gen.awk: Use it.
5959 2010-04-13 Martin Jambor <mjambor@suse.cz>
5961 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
5962 (sra_modify_assign): Delete stmts loading dead data even if racc has no
5963 children. Call replace_uses_with_default_def_ssa_name to handle
5966 2010-04-13 Michael Matz <matz@suse.de>
5969 * builtins.c (expand_builtin_interclass_mathfn): Also create
5970 a register if the predicate doesn't match.
5972 2010-04-13 Diego Novillo <dnovillo@google.com>
5974 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
5975 * c-pch.c: Include timevar.h.
5976 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
5977 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
5978 * ggc-common.c: Include timevar.h.
5979 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
5980 * timevar.def (TV_PCH_SAVE): Define.
5981 (TV_PCH_CPP_SAVE): Define.
5982 (TV_PCH_PTR_REALLOC): Define.
5983 (TV_PCH_PTR_SORT): Define.
5984 (TV_PCH_RESTORE): Define.
5985 (TV_PCH_CPP_RESTORE): Define.
5987 2010-04-13 Michael Matz <matz@suse.de>
5989 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
5991 (can_reassociate_p): New function.
5992 (break_up_subtract_bb, reassociate_bb): Use it.
5994 2010-04-13 Richard Guenther <rguenther@suse.de>
5997 * builtins.c (c_readstr): Fix assert.
5999 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
6001 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6002 when generating cltd insn.
6004 (*ashl<mode>3_1): Remove special handling for register operand 2.
6005 (*ashlsi3_1_zext): Ditto.
6006 (*ashlhi3_1): Ditto.
6007 (*ashlhi3_1_lea): Ditto.
6008 (*ashlqi3_1): Ditto.
6009 (*ashlqi3_1_lea): Ditto.
6010 (*<shiftrt_insn><mode>3_1): Ditto.
6011 (*<shiftrt_insn>si3_1_zext): Ditto.
6012 (*<shiftrt_insn>qi3_1_slp): Ditto.
6013 (*<rotate_insn><mode>3_1): Ditto.
6014 (*<rotate_insn>si3_1_zext): Ditto.
6015 (*<rotate_insn>qi3_1_slp): Ditto.
6017 2010-04-13 Richard Guenther <rguenther@suse.de>
6019 * tree-ssa-structalias.c (callused_id): Remove.
6020 (call_stmt_vars): New.
6021 (get_call_vi): Likewise.
6022 (lookup_call_use_vi): Likewise.
6023 (lookup_call_clobber_vi): Likewise.
6024 (get_call_use_vi): Likewise.
6025 (get_call_clobber_vi): Likewise.
6026 (make_transitive_closure_constraints): Likewise.
6027 (handle_const_call): Adjust to do per-call call-used handling.
6028 (handle_pure_call): Likewise.
6029 (find_what_var_points_to): Remove general callused handling.
6030 (init_base_vars): Likewise.
6031 (init_alias_vars): Initialize call_stmt_vars.
6032 (compute_points_to_sets): Process call-used and call-clobbered
6033 vars for call statements.
6034 (delete_points_to_sets): Free call_stmt_vars.
6036 2010-04-13 Richard Guenther <rguenther@suse.de>
6038 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6039 Only add RW dependence for dependence distance zero.
6040 Adjust maximal vectorization factor according to dependences.
6041 Move alignment handling ...
6042 (vect_find_same_alignment_drs): ... here. New function.
6043 (vect_analyze_data_ref_dependences): Adjust.
6044 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6045 (vect_analyze_data_refs): Adjust minimal vectorization factor
6046 according to data references.
6047 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6048 dependences before determining the vectorization factor.
6049 Analyze alignment after determining the vectorization factor.
6050 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6051 dependences before alignment.
6052 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6054 (vect_analyze_data_refs): Likewise.
6055 (MAX_VECTORIZATION_FACTOR): New define.
6057 2010-04-13 Duncan Sands <baldrick@free.fr>
6059 * except.h (lang_eh_type_covers): Remove.
6060 * except.c (lang_eh_type_covers): Likewise.
6062 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6063 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6065 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6066 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6067 UNITS_PER_LONG where it is ABI relevant.
6068 (s390_return_addr_rtx): Likewise.
6069 (s390_back_chain_rtx): Likewise.
6070 (s390_frame_area): Likewise.
6071 (s390_frame_info): Likewise.
6072 (s390_initial_elimination_offset): Likewise.
6073 (save_gprs): Likewise.
6074 (s390_emit_prologue): Likewise.
6075 (s390_emit_epilogue): Likewise.
6076 (s390_function_arg_advance): Likewise.
6077 (s390_function_arg): Likewise.
6078 (s390_va_start): Likewise.
6079 (s390_gimplify_va_arg): Likewise.
6080 (s390_function_profiler): Likewise.
6081 (s390_optimize_prologue): Likewise.
6082 (s390_rtx_costs): Likewise.
6083 (s390_secondary_reload): Likewise.
6084 (s390_promote_function_mode): Likewise.
6085 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6086 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6087 registers available.
6088 (s390_unwind_word_mode): New function.
6089 (s390_function_value): Split 64 bit values into register pair if
6090 used as return value.
6091 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6092 function call parameters. Handle parallels.
6093 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6094 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6095 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6096 (s390_expand_setmem): Remove unused variable src_addr.
6097 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6098 deal with 64 bit registers.
6099 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6100 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6101 (UNITS_PER_LONG): New macro.
6102 * libjava/include/s390-signal.h: Define extended ucontext
6103 structure containing the upper halfs of the 64 bit registers.
6105 2010-04-13 Simon Baldwin <simonb@google.com>
6107 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6109 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6111 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6112 rvalue on the RHS if the LHS is of a non-renamable type.
6113 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6115 2010-04-13 Matthias Klose <doko@ubuntu.com>
6117 * gcc.c (cc1_options): Handle -iplugindir before processing
6118 the cc1 spec. Only add -iplugindir once.
6119 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6121 * common.opt (iplugindir): Remove `Separate' property, initialize.
6122 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6124 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6125 (distclean): Remove plugin dir.
6126 * doc/invoke.texi: Document -iplugindir.
6128 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6130 * doc/plugins.texi (Loading Plugins): Document short
6131 -fplugin=foo option.
6132 (Plugin API): Mention default_plugin_dir_name function.
6134 * gcc.c (find_file_spec_function): Add new declaration.
6135 (static_spec_func): Use it for "find-file".
6136 (find_file_spec_function): Add new function.
6137 (cc1_options): Add -iplugindir option if -fplugin* options found.
6139 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6141 * plugin.c (add_new_plugin): Updated comment, and handle short
6143 (default_plugin_dir_name): Added new function.
6145 * common.opt (iplugindir): New option to set the plugin directory.
6147 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6149 * config/i386/i386.md (any_rotate): New code iterator.
6150 (rotate_insn): New code attribute.
6152 (SWIM124): New mode iterator.
6153 (<rotate_insn>ti3): New expander.
6154 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6155 any_rotate code iterator.
6156 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6157 using any_rotate code iterator and SWIM124 mode iterator.
6158 (ix86_rotlti3): New insn_and_split pattern.
6159 (ix86_rotrti3): Ditto.
6160 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6161 ix86_rotl{di,ti}3 patterns.
6162 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6163 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6164 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6165 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6166 code iterator and SWI mode iterator.
6167 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6168 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6170 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6171 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6172 (bswap rotatert splitter): Add splitter.
6173 (bswap splitter): Macroize splitter using any_rotate code iterator.
6174 Add insn predicate to split only for TARGET_USE_XCHGB or when
6175 optimizing function for size.
6177 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6179 * config/pa/pa.c (emit_move_sequence): Remove use of
6180 deleted variable flag_argument_noalias.
6182 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6184 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6186 Add to unsupported targets list.
6187 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6188 sparc*-sun-solaris2.[567]* from target lists.
6189 * configure: Regenerate.
6190 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6192 Remove Solaris 7 patch references.
6193 (Specific, sparc-sun-solaris2.7): Removed.
6194 (sparc-sun-solaris2*): Update Solaris 7 example.
6195 (sparc64-*-solaris2*): Likewise.
6197 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6199 * config.build (alpha*-dec-osf4*): Remove.
6200 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6201 of obsolete configurations.
6202 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6204 * config/alpha/t-osf4: Renamed to ...
6205 * config/alpha/t-osf5: ... this.
6206 * config/alpha/osf.h: Renamed to ...
6207 * config/alpha/osf5.h: ... this.
6208 Merged old osf5.h contents.
6210 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6211 (EXTRA_SPECS): Removed.
6212 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6213 reflect removal of Tru64 UNIX V4.0/V5.0 support.
6216 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6218 * doc/contrib.texi (Contributors, Rainer Orth): Update.
6220 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
6223 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6224 __thiscall convention.
6226 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6228 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6230 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6232 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6234 * function.c (assign_parms_initialize_all): Add unused attribute
6237 2010-04-12 Richard Guenther <rguenther@suse.de>
6239 * gsstruct.def (GSS_CALL): New.
6240 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6241 * gimple.h: Include tree-ssa-alias.h.
6242 (struct gimple_statement_call): New.
6243 (union gimple_statement_struct_d): Add gimple_call member.
6244 (gimple_call_reset_alias_info): Declare.
6245 (gimple_call_use_set): New function.
6246 (gimple_call_clobber_set): Likewise.
6247 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6248 * gimple.c (gimple_call_reset_alias_info): New function.
6249 (gimple_build_call_1): Call it.
6250 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6251 * tree-inline.c (remap_gimple_stmt): Likewise.
6252 (expand_call_inline): Remove callused handling.
6253 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6254 * tree-dfa.c (dump_variable): Likewise.
6255 * tree-parloops.c (parallelize_loops): Likewise.
6256 * tree-ssa.c (init_tree_ssa): Likewise.
6257 (delete_tree_ssa): Likewise.
6258 * tree-flow-inline.h (is_call_used): Remove.
6259 * tree-flow.h (struct gimple_df): Remove callused member.
6260 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6261 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6262 (ref_maybe_used_by_call_p_1): Simplify.
6263 (call_may_clobber_ref_p_1): Likewise.
6264 * tree-ssa-structalias.c (compute_points_to_sets): Set
6265 the call stmt used and clobbered sets.
6266 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6267 (find_tail_calls): Verify the tail call.
6269 2010-04-12 Richard Guenther <rguenther@suse.de>
6271 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6272 single-iteration always-inline inlining.
6273 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6274 (cgraph_decide_inlining): Do not handle always-inline specially.
6275 (try_inline): Remove always-inline cycle detection special case.
6276 Do not recurse on always-inlines.
6277 (cgraph_early_inlining): Do not iterate if not optimizing.
6278 (cgraph_gate_early_inlining): remove.
6279 (pass_early_inline): Run unconditionally.
6280 (gate_cgraph_decide_inlining): New function.
6281 (pass_ipa_inline): Use it. Do not run the IPA inliner if
6282 not inlining or optimizing.
6283 (cgraph_decide_inlining_of_small_functions): Also consider
6284 always-inline functions.
6285 (cgraph_default_inline_p): Return true for nodes which should
6286 disregard inline limits.
6287 (estimate_function_body_sizes): Assume zero size and time for
6288 nodes which are marked as disregarding inline limits.
6289 (cgraph_decide_recursive_inlining): Do not perform recursive
6290 inlining on always-inline nodes.
6292 2010-04-12 Jakub Jelinek <jakub@redhat.com>
6295 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6296 for exprs satisfying handled_component_p.
6298 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6300 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6301 non-constant aggregate elements.
6303 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6304 is a real initialization.
6306 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
6309 * c-decl.c (start_function): Move forward check for nested function.
6311 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6313 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6314 * config/sh/sh.c: Include reload.h.
6315 (sh_legitimize_reload_address): New.
6316 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6317 sh_legitimize_reload_address.
6319 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6321 * config/sh/sh.md (*movqi_pop): New insn pattern.
6322 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6324 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6326 * config/i386/i386.md (any_shiftrt): New code iterator.
6327 (shiftrt_insn): New code attribute.
6329 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6330 using any_shiftrt code iterator.
6331 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6332 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6333 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6334 pattern from corresponding peephole2 patterns.
6335 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6336 using any_shiftrt code iterator.
6337 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6338 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6339 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6340 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6341 *{ashr,lshr}<mode>3_cmp_zext.
6342 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6344 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6346 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6348 (*lshr<mode>3_cconly): Ditto.
6350 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6352 * config/i386/i386.md (lshr<mode>3): Macroize expander from
6353 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6354 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6355 pattern from *lshr{di,ti}3_1 and corresponding splitters using
6357 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6358 from corresponding peephole2 patterns.
6359 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6360 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6361 and *lshrdi3_1_rex64 using SWI mode iterator.
6362 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6363 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6364 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6365 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6366 and *lshrdi3_cmp_rex64 using SWI mode iterator.
6367 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6368 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6369 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6370 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6373 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
6375 * config/i386/i386.md (ashr<mode>3): Macroize expander from
6376 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6377 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6378 pattern from *ashr{di,ti}3_1 and corresponding splitters using
6380 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6381 from corresponding peephole2 patterns.
6382 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6383 (ashrsi3_cvt): Rename from ashrsi3_31.
6384 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6385 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6386 and x86_64_shift_adj_3 using SWI48 mode iterator.
6387 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6388 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6389 and *ashrdi3_1_rex64 using SWI mode iterator.
6390 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6391 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6392 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6393 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6394 and *ashrdi3_cmp_rex64 using SWI mode iterator.
6395 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6396 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6397 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6398 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6400 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6401 * config/i386/i386.c (ix86_split_ashr): Update for renamed
6402 x86_shift<mode>_adj_3 expanders.
6404 2010-04-10 Wei Guozhi <carrot@google.com>
6407 * config/arm/arm.c (arm_pic_static_addr): New function.
6408 (legitimize_pic_address): Call arm_pic_static_addr when it detects
6410 (arm_output_addr_const_extra): Output expression for new pattern.
6411 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6413 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
6415 * ira-costs.c (record_reg_classes): Ignore alternatives that are
6418 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6419 * web.c: Include "insn-config.h" and "recog.h".
6420 (union_match_dups): New function.
6421 (web_main): Call it.
6422 (union_defs): Don't try to recognize match_dups.
6424 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6425 if doing so would replace the entire pattern.
6427 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6431 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6432 and splitter pattern. Change splitter operand 1 predicate to
6435 2010-04-09 Martin Jambor <mjambor@suse.cz>
6437 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6438 lattices are addresses of CONST_DECLs with the same initial value.
6439 (ipcp_print_all_lattices): Print values of CONST_DECLs.
6440 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6442 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6443 Bernd Schmidt <bernds@codesourcery.com>
6445 * loop-invariant.c (replace_uses): New static function.
6446 (move_invariant_reg): Use it to ensure we can replace the uses.
6448 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6450 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6452 (picochip_override_options): Enable section anchors only above -O1.
6453 (picochip_reorg): Fixed a couple of build warnings.
6455 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6457 * configure.ac (plugin -rdynamic test): Log result.
6458 * configure: Regenerate.
6459 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6460 (RDYNAMIC_SPEC): Define.
6461 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6463 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6465 * configure.ac: Determine Sun ld version numbers.
6466 (comdat_group): Restrict GNU ld version checks to gld.
6467 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6468 (enable_comdat): Support --enable-comdat.
6469 * configure: Regenerate.
6470 * doc/install.texi (Configuration): Document --enable-comdat.
6472 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6474 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
6475 * config/sol2-gld.h: ... here.
6476 * config.gcc (sparc*-*-solaris2*): Reflect this.
6477 (i[34567]86-*-solaris2*): Use it.
6479 2010-04-09 Steve Ellcey <sje@cup.hp.com>
6481 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6483 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6485 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6488 * diagnostic.c (diagnostic_initialize): Initialize
6489 some_warnings_are_errors.
6490 (diagnostic_finish): New.
6491 (diagnostic_action_after_output): Call it before exiting.
6492 (diagnostic_report_diagnostic): Do not print message here. Set
6493 some_warnings_are_errors.
6494 * diagnostic.h (diagnostic_context): Delete
6495 issue_warnings_are_errors_message. Add some_warnings_are_errors.
6496 (diagnostic_finish): Declare.
6497 * toplev.c (toplev_main): Call it before exit.
6499 2010-04-09 Jason Merrill <jason@redhat.com>
6502 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6503 for incomplete type.
6506 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6507 based on a warning flag.
6509 2010-04-09 Richard Guenther <rguenther@suse.de>
6511 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6513 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
6516 * varasm.c (default_assemble_visibility): Wrap vars that are
6517 set, but unused, by targets without GAS.
6518 * config/rs6000/rs6000.c (paired_emit_vector_compare):
6519 Remove set, but unused, vars.
6520 (rs6000_legitimize_tls_address): Likewise.
6521 (altivec_expand_dst_builtin): Likewise.
6522 * config/darwin.c (machopic_classify_symbol): Likewise.
6523 (machopic_indirection_name): Likewise.
6525 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6527 * config/i386/i386.md (DWI): New mode iterator.
6528 (S): New mode attribute.
6529 (shift_operand): Ditto.
6530 (shift_immediate_operand): Ditto.
6531 (ashl_input_operand): Ditto.
6532 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6533 using SDWIM mode iterator.
6534 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
6535 pattern from *ashl{di,ti}3_1 and corresponding splitters using
6537 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6538 from corresponding peephole2 patterns.
6539 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6540 and x86_64_shift_adj_1 using SWI48 mode iterator.
6541 (x86_shift<mode>_adj_2): Ditto.
6542 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6543 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6544 using SWI48 mode iterator.
6545 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6546 *ashldi3_cmp_rex64 using SWI mode iterator.
6547 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6548 *ashldi3_cconly_rex64 using SWI mode iterator.
6549 * config/i386/i386.c (ix86_split_ashl): Update for renamed
6550 x86_shift<mode>_adj_{1,2}.
6551 (ix86_split_ashr): Ditto.
6552 (ix86_split_lshr): Ditto.
6554 2010-04-09 Richard Guenther <rguenther@suse.de>
6556 * target.h (builtin_conversion): Pass in input and output types.
6557 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6558 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6559 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6560 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6562 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6564 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6566 2010-04-09 Richard Guenther <rguenther@suse.de>
6569 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6571 2010-04-09 Richard Guenther <rguenther@suse.de>
6573 * tree-vectorizer.h (struct _stmt_vec_info): Document
6574 that vectype is the type of the LHS.
6575 (supportable_widening_operation, supportable_narrowing_operation):
6576 Get both input and output vector types as arguments.
6577 (vect_is_simple_use_1): Declare.
6578 (get_same_sized_vectype): Likewise.
6579 * tree-vect-loop.c (vect_determine_vectorization_factor):
6580 Set STMT_VINFO_VECTYPE to the vector type of the def.
6581 (vectorizable_reduction): Adjust.
6582 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6583 Adjust. Specify the output vector type.
6584 (vect_pattern_recog_1): Adjust.
6585 * tree-vect-stmts.c (get_same_sized_vectype): New function.
6586 (vectorizable_call): Adjust.
6587 (vectorizable_conversion): Likewise.
6588 (vectorizable_operation): Likewise.
6589 (vectorizable_type_demotion): Likewise.
6590 (vectorizable_type_promotion): Likewise.
6591 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6593 (vect_is_simple_use_1): New function.
6594 (supportable_widening_operation): Get both input and output
6596 (supportable_narrowing_operation): Likewise.
6597 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6599 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
6601 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6602 __thiscall and _thiscall as predefined macros.
6603 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6604 thiscall attribute handling.
6605 (ix86_comp_type_attributes): Likewise.
6606 (ix86_function_regparm): Likewise.
6607 (ix86_return_pops_args): Likewise.
6608 (init_cumulative_args): Likewise.
6609 (find_drap_reg): Likewise.
6610 (ix86_static_chain): Likewise.
6611 (x86_this_parameter): Likewise.
6612 (x86_output_mi_thunk): Likewise.
6613 (ix86_attribute_table): Add description for thiscall attribute.
6614 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6615 * doc/extend.texi: Add documentation for thiscall.
6617 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6620 * c.opt (Wint-to-pointer-cast): Available in C++.
6621 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6623 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
6625 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6626 * calls.c (expand_call): Pass the function type to aggregate_value_p.
6627 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6628 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
6629 function type instead. Reorder and simplify checks.
6631 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6633 2010-04-08 Jing Yu <jingyu@google.com>
6634 Zdenek Dvorak <ook@ucw.cz>
6636 PR tree-optimization/42720
6637 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6638 loop unswitch conditions here from ...
6639 (tree_unswitch_single_loop): ... here.
6641 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6643 * tree-if-conv.c: Fix comments and simplify logic.
6645 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6647 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6648 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
6649 (main_tree_if_conversion): Update call to tree_if_conversion.
6651 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6654 * doc/invoke.texi (-b,-V): Delete.
6655 * doc/tm.texi: Do not mention -b.
6656 * gcc.c (display_help): Delete -b and -V.
6657 (process_command): Delete -b and -V.
6658 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6660 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
6661 Wolfgang Gellerich <gellerich@de.ibm.com>
6663 Implement target hook for loop unrolling
6664 * target.h (loop_unroll_adjust): Add a new target hook function.
6665 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6666 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6667 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6668 (s390_loop_unroll_adjust): Implement the new target hook for s390.
6669 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6671 (decide_unroll_stupid): Likewise.
6673 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6676 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6678 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6681 (Specific, *-*-solaris2*): Likewise.
6682 Don't prefer Sun as over GNU as.
6684 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
6686 * config/s390/s390.c (override_options): Adjust the z10 defaults
6687 for max-unroll-times, max-completely-peeled-insns
6688 and max-completely-peel-times.
6690 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6692 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6693 instructions for z10.
6694 (s390_expand_setmem): Likewise.
6695 (s390_expand_cmpmem): Likewise.
6697 2010-04-08 Richard Guenther <rguenther@suse.de>
6699 PR tree-optimization/43679
6700 * tree-ssa-pre.c (eliminate): Only propagate copies.
6702 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6705 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
6706 set but not used variable warning.
6708 2010-04-08 Wei Guozhi <carrot@google.com>
6711 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6712 (arm_size_rtx_costs): Call the new function when optimized for size.
6714 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6717 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6718 op0 is not a MEM, just return NULL instead of assertion
6720 (discover_nonconstant_array_refs): Don't walk debug stmts.
6722 2010-04-08 Doug Kwan <dougkwan@google.com>
6724 * configure.ac: Recognize gold and do not use its version number
6725 to test ld features.
6726 * configure: Regenerate.
6728 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
6731 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6732 (negate_value): Move code to push elements to broken_up_substracts ...
6733 (eliminate_plus_minus_pair): ... here. Push operands that have no
6734 negative pair to plus_negates.
6735 (repropagate_negates, init_reassoc, fini_reassoc): Update.
6737 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6739 * doc/install.texi (Configuration): Move description of
6740 --enable-lto, --with-libelf*, --enable-gold from Java section to
6743 * doc/generic.texi (Working with declarations)
6744 (Function Properties, C and C++ Trees): Fix typos.
6745 * doc/sourcebuild.texi (Top Level): Likewise.
6747 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6750 * tree.h (DECL_READ_P): Define.
6751 (struct tree_decl_common): Add decl_read_flag.
6752 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6753 a set but not used warning.
6754 (merge_decls): Merge DECL_READ_P flag.
6755 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6756 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6757 * c-common.c (handle_used_attribute, handle_unused_attribute):
6759 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6761 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6763 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6764 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6765 c_parser_binary_expression, c_parser_cast_expression,
6766 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6767 Call default_function_array_read_conversion instead of
6768 default_function_array_conversion where needed.
6769 (c_parser_unary_expression, c_parser_conditional_expression,
6770 c_parser_postfix_expression_after_primary, c_parser_initelt):
6771 Likewise. Call mark_exp_read where needed.
6772 (c_parser_statement_after_labels, c_parser_asm_operands,
6773 c_parser_typeof_specifier, c_parser_sizeof_expression,
6774 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
6776 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6778 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6779 (warn_unused_but_set_parameter): Default to warn_unused
6781 * doc/invoke.texi: Document -Wunused-but-set-variable and
6782 -Wunused-but-set-parameter.
6784 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
6785 used count variable.
6786 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
6787 when operandN variables aren't used in the body of the expander
6789 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
6790 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
6791 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
6792 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
6793 FOR_EACH_IMM_USE_ON_STMT): Likewise.
6794 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
6795 * tree.c (PROCESS_ARG): Likewise.
6797 2010-04-07 Simon Baldwin <simonb@google.com>
6799 * diagnostic.h (diagnostic_override_option_index): New macro to
6800 set a diagnostic's option_index.
6801 * c-tree.h (c_cpp_error): Add warning reason argument.
6802 * opts.c (_warning_as_error_callback): New.
6803 (register_warning_as_error_callback): Store callback for
6804 warnings enabled via enable_warning_as_error.
6805 (enable_warning_as_error): Call callback, minor code tidy.
6806 * opts.h (register_warning_as_error_callback): Declare.
6807 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
6808 response to -Werror=.
6809 (c_common_init_options): Register warning_as_error_callback in opts.c.
6810 * common.opt: Add -Wno-cpp option.
6811 * c-common.c (struct reason_option_codes_t): Map cpp warning
6812 reason codes to gcc option indexes.
6813 * (c_option_controlling_cpp_error): New function, lookup the gcc
6814 option index for a cpp warning reason code.
6815 * (c_cpp_error): Add warning reason argument, call
6816 c_option_controlling_cpp_error for diagnostic_override_option_index.
6817 * doc/invoke.texi: Document -Wno-cpp.
6819 2010-04-07 Richard Guenther <rguenther@suse.de>
6821 * ipa-reference.c (mark_load): Use get_base_address.
6822 (mark_store): Likewise.
6824 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
6825 inserting GIMPLE_NOPs into the IL.
6826 * tree-ssa-structalias.c (get_constraint_for_component_ref):
6827 Explicitly strip handled components and indirect references.
6829 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
6830 folding address expressions.
6831 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
6832 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
6833 operand_equal_p to compare decls.
6834 (ptr_deref_may_alias_decl_p): Likewise.
6835 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
6836 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
6837 Handle reversed comparison ops.
6838 * tree-sra.c (asm_visit_addr): Use get_base_address.
6839 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
6840 * ipa-reference.c (mark_address): Use get_base_address.
6842 2010-04-07 Richard Guenther <rguenther@suse.de>
6844 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
6845 Propagate constants everywhere.
6847 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6850 * tree.c (MAX_INT_CACHED_PREC): Define.
6851 (nonstandard_integer_type_cache): New array.
6852 (build_nonstandard_integer_type): Cache results for precision
6853 <= MAX_INT_CACHED_PREC.
6855 2010-04-07 Richard Guenther <rguenther@suse.de>
6857 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
6858 -fargument-noalias-global, -fargument-noalias-anything): Remove.
6859 * common.opt: Likewise.
6860 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
6861 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
6862 (nonoverlapping_memrefs_p): Likewise.
6863 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6864 * opts.c (common_handle_option): Handle OPT_fargument_alias,
6865 OPT_fargument_noalias, OPT_fargument_noalias_anything and
6866 OPT_fargument_noalias_global for backward compatibility.
6868 2010-04-07 Richard Guenther <rguenther@suse.de>
6870 PR tree-optimization/43270
6871 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
6872 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
6873 * tree-ssa-pre.c (phi_translate_1): Adjust.
6874 (fully_constant_expression): Split out vn_reference handling to ...
6875 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
6876 Fold reads from constant strings.
6877 (vn_reference_lookup): Handle fully constant references.
6878 (vn_reference_lookup_pieces): Likewise.
6879 * Makefile.in (expmed.o-warn): Add -Wno-error.
6881 2010-04-07 Martin Jambor <mjambor@suse.cz>
6883 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
6885 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
6888 * gcc.c: Add -static-libstdc++ to list of recognized options.
6890 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6892 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
6894 2010-04-07 Richard Guenther <rguenther@suse.de>
6897 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
6898 bases build simple mem attributes to retain points-to information.
6900 2010-04-07 Richard Guenther <rguenther@suse.de>
6903 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
6904 preserve points-to related information.
6906 2010-04-07 Richard Guenther <rguenther@suse.de>
6909 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
6910 discard plain indirect references.
6911 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
6912 * tree.c (tree_nop_conversion): Likewise.
6914 2010-04-07 Dodji Seketeli <dodji@redhat.com>
6917 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
6919 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
6921 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
6922 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
6924 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6926 * tree-if-conv.c: Fix indentation and comments.
6928 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6930 * tree-if-conv.c: Sort static functions in topological order.
6932 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
6934 * tree-if-conv.c: Fix indentation and comments.
6936 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6939 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
6940 lang_hooks.types.type_for_size instead of
6941 build_nonstandard_integer_type.
6942 When converting an unsigned type to signed, double its precision.
6943 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
6944 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
6945 (graphite_create_new_loop_guard): When ub + 1 wraps around,
6948 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6951 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6952 POINTER_PLUS_EXPR for pointer types.
6954 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6957 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
6958 * graphite-clast-to-gimple.c: Include langhooks.h.
6959 (max_signed_precision_type): New.
6960 (max_precision_type): Takes two types as arguments.
6961 (precision_for_value): New.
6962 (precision_for_interval): New.
6963 (gcc_type_for_interval): New.
6964 (gcc_type_for_value): New.
6965 (gcc_type_for_clast_term): New.
6966 (gcc_type_for_clast_red): New.
6967 (gcc_type_for_clast_bin): New.
6968 (gcc_type_for_clast_expr): Split up into several functions.
6969 (gcc_type_for_clast_eq): Rewritten.
6970 (compute_bounds_for_level): New.
6971 (compute_type_for_level_1): New.
6972 (compute_type_for_level): New.
6973 (gcc_type_for_cloog_iv): Removed.
6974 (gcc_type_for_iv_of_clast_loop): Rewritten.
6975 (graphite_create_new_loop): Compute the lower and upper bound types
6976 with gcc_type_for_clast_expr.
6977 (graphite_create_new_loop_guard): Same.
6978 (find_cloog_iv_in_expr): Removed.
6979 (compute_cloog_iv_types_1): Removed.
6980 (compute_cloog_iv_types): Removed.
6981 (gloog): Do not call compute_cloog_iv_types.
6982 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
6984 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
6985 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
6986 (GBB_CLOOG_IV_TYPES): Removed.
6988 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6990 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
6991 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
6992 (detect_commutative_reduction): Same.
6994 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
6996 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
6997 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
6999 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7000 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7001 (rewrite_commutative_reductions_out_of_ssa): Same.
7002 * passes.c (execute_function_todo): Call verify_ssa for every pass
7003 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
7004 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7005 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7006 with an extra argument.
7007 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
7008 verify_ssa only when the extra argument is true.
7009 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7010 with an extra argument.
7011 (tree_transform_and_unroll_loop): Same.
7013 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7015 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7016 for all the passes of the LNO having LOOP_CLOSED_SSA.
7017 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7018 * tree-loop-distribution.c (pass_loop_distribution): Same.
7019 * tree-pass.h (TODO_verify_loops): Removed.
7020 * tree-ssa-loop.c (pass_tree_loop_init): Same.
7022 (pass_tree_unswitch): Same.
7023 (pass_predcom): Same.
7024 (pass_vectorize): Same.
7025 (pass_linear_transform): Same.
7026 (pass_graphite_transforms): Same.
7027 (pass_iv_canon): Same.
7028 (pass_complete_unroll): Same.
7029 (pass_complete_unrolli): Same.
7030 (pass_parallelize_loops): Same.
7031 (pass_loop_prefetch): Same.
7032 (pass_iv_optimize): Same.
7034 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
7037 * passes.c (init_optimization_passes): Move pass_lim before
7038 pass_copy_prop and pass_dce_loop.
7040 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7043 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7044 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7045 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7046 MULTI_* defines for 4 argument vpermil2p* builtins.
7048 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7050 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7051 * config/i386/i386.c (x86_maybe_negate_const_int): New.
7052 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7053 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7054 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7055 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7056 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7057 Use x86_maybe_negate_const_int to output insn mnemonic.
7058 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
7059 check from instruction predicate. Update comments.
7060 * config/i386/sync.md (sync_add<mode>): Use
7061 x86_maybe_negate_const_int to output insn mnemonic.
7063 2010-04-06 Jan Hubicka <jh@suse.cz>
7065 PR tree-optimization/42906
7066 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7067 IGNORE_SELF argument. Set visited_control_parents for fully
7069 (find_obviously_necessary_stmts): Update call of
7070 mark_control_dependent_edges_necessary.
7071 (propagate_necessity): Likewise. Handle PHI edges more curefully.
7073 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7075 * config/i386/i386.md: Remove comment about 'e' and 'E'
7078 2010-04-06 Richard Guenther <rguenther@suse.de>
7080 PR tree-optimization/43627
7081 * tree-vrp.c (extract_range_from_unary_expr): Widenings
7082 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7085 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7087 * BASE-VER: Change to 4.6.0.
7090 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7093 2010-04-06 Richard Guenther <rguenther@suse.de>
7096 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7098 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7100 * doc/invoke.texi (Optimize Options): Document that LTO
7101 won't remove object access purely due to incompatible
7104 2010-04-04 Matthias Klose <doko@ubuntu.com>
7106 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7107 Initialize variable.
7109 2010-04-03 Richard Guenther <rguenther@suse.de>
7112 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7113 require a non-NULL MEM_OFFSET.
7115 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7117 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7118 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7119 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7120 config/alpha/predicates.md, config/arm/arm.md,
7121 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7122 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7123 config/darwin9.h, config/darwin.c, config/darwin.h,
7124 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7125 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7126 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7127 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7128 config/mips/mips.md, config/mn10300/mn10300.c,
7129 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7130 config/rs6000/aix.h, config/rs6000/dfp.md,
7131 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7132 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7133 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7134 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7135 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7136 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7137 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7138 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7139 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7140 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7141 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7142 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7143 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7144 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7145 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7146 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7147 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7148 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7149 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7150 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7151 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7152 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7153 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7154 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7155 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7156 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7157 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7158 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7159 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7160 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7161 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7162 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7163 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7164 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7165 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7166 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7168 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7171 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7172 * aclocal.m4: Regenerate.
7174 2010-04-02 Richard Guenther <rguenther@suse.de>
7176 PR tree-optimization/43629
7177 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7178 if we have seen a constant value.
7180 2010-04-02 Joseph Myers <joseph@codesourcery.com>
7182 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7184 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
7187 * arm.c (legitimize_tls_address): Adjust call to
7188 gen_tls_load_dot_plus_four.
7189 (arm_note_pic_base): New function.
7190 (arm_cannot_copy_insn_p): Use it.
7191 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7194 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7199 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7201 * Makefile.in ($(out_object_file)): Depend on
7202 gt-$(basename $(notdir $(out_file))).h.
7204 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
7206 * config.gcc (lm32-*-rtems*): Add t-lm32.
7208 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
7210 * config.gcc: Add lm32-*-rtems*.
7211 * config/lm32/rtems.h: New file.
7213 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
7216 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7218 2010-04-01 Jakub Jelinek <jakub@redhat.com>
7220 * dwarf2out.c (output_compilation_unit_header): For
7221 -gdwarf-4 use version 4 instead of version 3.
7222 (output_line_info): For version 4 and above emit additional
7223 maximum ops per insn header field.
7224 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7226 * dwarf2out.c (is_c_family, is_java): Remove.
7227 (lower_bound_default): New function.
7228 (add_bound_info, gen_descr_array_type_die): Use it.
7230 2010-04-01 Dodji Seketeli <dodji@redhat.com>
7233 * dwarf2out.c (gen_variable_die): Allow debug info for variable
7234 re-declaration when it happens in a function.
7236 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
7238 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7239 (cgraph_remove_function_insertion_hook): Same.
7240 (cgraph_call_function_insertion_hooks): Same.
7242 2010-04-01 Richard Guenther <rguenther@suse.de>
7245 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7246 and TREE_THIS_VOLATILE.
7247 (copy_ref_info): Likewise.
7248 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7249 * tree.c (build6_stat): Ignore side-effects of all but arg5
7250 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
7253 2010-04-01 Richard Guenther <rguenther@suse.de>
7255 PR tree-optimization/43607
7256 * ipa-type-escape.c (check_call): Do not access non-existing
7259 2010-04-01 Richard Guenther <rguenther@suse.de>
7263 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7264 Jack Howarth <howarth@bromo.med.uc.edu>
7266 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7269 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7271 * doc/install.texi (Prerequisites): Document libelf usability on
7272 IRIX 5/6 and Solaris 2.
7273 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7274 Update GNU as, GNU ld requirements.
7275 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7276 Document Sun Studio compiler download.
7277 Update and simplify as, ld recommendations.
7278 (Specific, *-*-solaris2.7): Note obsoletion, removal.
7280 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7282 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7283 with_tune_32 to pentium4.
7285 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
7287 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7289 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7291 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7292 obsoletion, removal.
7294 Document GNU as requirement.
7295 Update configure requirements.
7296 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7297 Recomment IRIX 6.5.18+.
7298 Document IDF/IDL requirement.
7299 Document GNU as requirement.
7300 Document GNU ld bootstrap failure.
7301 Remove freeware.sgi.com reference.
7303 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7305 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7306 UNIX V4.0, V5.0 obsoletion, removal.
7307 Remove --with-gc=simple reference.
7308 Update VM requirements during bootstrap.
7309 Remove -oldas bootstrap description.
7310 Update binutils reference.
7311 Remove comparison failure note.
7313 2010-03-31 Richard Guenther <rguenther@suse.de>
7314 Zdenek Dvorak <ook@ucw.cz>
7315 Sebastian Pop <sebastian.pop@amd.com>
7318 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7319 with multiple arguments.
7320 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7322 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7324 * graphite-dependences.c (print_pddr): Call print_pdr with an
7326 * graphite-poly.c (debug_pdr): Add an extra argument for the
7329 (print_pbb_domain): Same.
7331 (print_scop_context): Same.
7333 (print_cloog): Same.
7334 (debug_pbb_domain): Same.
7338 (debug_scop_context): Same.
7340 (debug_cloog): Same.
7341 (print_scop_params): Same.
7342 (debug_scop_params): Same.
7343 (print_iteration_domain): Same.
7344 (print_iteration_domains): Same.
7345 (debug_iteration_domain): Same.
7346 (debug_iteration_domains): Same.
7347 (print_scattering_function): Same.
7348 (print_scattering_functions): Same.
7349 (debug_scattering_function): Same.
7350 (debug_scattering_functions): Same.
7351 * graphite-poly.h (debug_pdr): Update declaration.
7353 (print_pbb_domain): Same.
7355 (print_scop_context): Same.
7357 (print_cloog): Same.
7358 (debug_pbb_domain): Same.
7362 (debug_scop_context): Same.
7364 (debug_cloog): Same.
7365 (print_scop_params): Same.
7366 (debug_scop_params): Same.
7367 (print_iteration_domain): Same.
7368 (print_iteration_domains): Same.
7369 (debug_iteration_domain): Same.
7370 (debug_iteration_domains): Same.
7371 (print_scattering_function): Same.
7372 (print_scattering_functions): Same.
7373 (debug_scattering_function): Same.
7374 (debug_scattering_functions): Same.
7376 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7378 * graphite-poly.c (print_scattering_function_1): New.
7379 (print_scattering_function): Call it.
7380 (print_scop_params): Remove spaces at the end of lines.
7383 * graphite-poly.h (print_cloog): Declared.
7384 (debug_cloog): Declared.
7386 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7388 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7390 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7391 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7392 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7393 to switch between adding the IV bump in loop->latch or in loop->header.
7395 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7397 * graphite-poly.c (print_scattering_function): Pretty print following
7400 (print_pbb_domain): Same.
7401 (dump_gbb_cases): Same.
7402 (dump_gbb_conditions): Same.
7405 (print_scop_params): Same.
7406 (print_scop_context): Same.
7408 (print_pbb_body): New.
7409 (lst_indent_to): New.
7410 (print_lst): Start new lines with a #.
7411 * graphite-poly.h (pbb_bb): New.
7412 (pbb_index): Use pbb_bb.
7413 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7415 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7417 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7419 * dwarf2out.c (size_of_die): For -gdwarf-4 use
7420 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7421 and 0 instead of 1 for dw_val_class_flag.
7422 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7423 dw_val_class_range_list, dw_val_class_loc_list,
7424 dw_val_class_lineptr and dw_val_class_macptr, use
7425 DW_FORM_flag_present for dw_val_class_flag and
7426 DW_FORM_exprloc for dw_val_class_loc.
7427 (output_die): For -gdwarf-4 print dw_val_class_loc
7428 size as uleb128 instead of 1 or 2 bytes and don't print
7429 anything for dw_val_class_flag.
7431 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7432 instead of cselib_lookup following by tweaking locs->setting_insn.
7435 * cselib.c (cselib_process_insn): Clear cselib_current_insn
7436 even before returning from label, setjmp call or volatile asm
7439 2010-03-31 Richard Guenther <rguenther@suse.de>
7442 * cgraphunit.c (cgraph_output_in_order): Do not allocate
7443 temporary data on stack.
7445 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7447 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7448 (PUSHSECTION_ASM_OP): Remove.
7449 (POPSECTION_ASM_OP): Remove.
7450 (PUSHSECTION_FORMAT): Remove.
7451 * config/sol2.h (PUSHSECTION_FORMAT): Define.
7452 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7453 * config/sol2.c (solaris_output_init_fini): Use it.
7455 2010-03-31 Jie Zhang <jie@codesourcery.com>
7458 * opt-functions.awk (var_type_struct): Use signed char type
7459 for simple variables.
7461 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7463 * config/sol2.c: Include output.h.
7464 (solaris_assemble_visibility): New function.
7465 * config/t-sol2 (sol2.o): Add output.h dependency.
7466 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7467 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7470 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7473 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7474 V2SImode or XFmode on PRE_DEC.
7477 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7480 2010-03-31 Jie Zhang <jie@codesourcery.com>
7483 * reload.h (caller_save_initialized_p): Declare.
7484 * toplev.c (backend_init_target): Don't call
7485 init_caller_save but set caller_save_initialized_p to false.
7486 * caller-save.c (caller_save_initialized_p): Define.
7487 (init_caller_save): Check caller_save_initialized_p.
7488 * ira.c (ira): Call init_caller_save if flag_caller_saves.
7490 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7493 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7494 and soft-fp/t-softfp to tmake_file.
7495 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7496 (LIBGCC2_TF_CEXT): Define.
7499 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
7502 * cselib.c (n_useless_values): Document handling of debug locs.
7503 (n_useless_debug_values, n_debug_values): New variables.
7504 (new_elt_loc_list): Don't add to debug values, keep count.
7505 (promote_debug_loc): New.
7506 (cselib_reset_table): Zero new variables.
7507 (entry_and_rtx_equal_p): Promote debug locs.
7508 (discard_useless_locs): Increment n_useless_debug_values for
7510 (remove_useless_values): Adjust n_useless_values and n_debug_values
7511 with n_useless_debug_values.
7512 (add_mem_for_addr): Promote debug locs.
7513 (cselib_lookup_mem): Likewise.
7514 (cselib_lookup_addr): Renamed to...
7515 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
7516 (cselib_log_lookup): ... this. Turn into...
7517 (cselib_lookup_addr): ... new wrapper.
7518 (cselib_lookup_from_insn): New.
7519 (cselib_invalidate_regno): Increment n_useless_debug_values for
7521 (cselib_invalidate_mem): Likewise.
7522 (cselib_process_insn): Take n_deleted and n_debug_values into
7523 account to guard remove_useless_value call.
7524 (cselib_finish): Zero n_useless_debug_values.
7525 * cselib.h (cselib_lookup_from_insn): Declare.
7526 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7527 (sched_analyze_2): Likewise.
7529 2010-03-30 Jakub Jelinek <jakub@redhat.com>
7531 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7533 (adjust_mems): Replace narrowing SUBREG of expression containing
7534 just PLUS, MINUS, MULT and ASHIFT of registers and constants
7535 with operations in the narrower mode.
7538 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7539 regs_invalidated_by_call instead all call_used_reg_set registers.
7541 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
7544 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7545 pointer comparisons with types_compatible_p.
7546 * tree-vect-stmts.c (vectorizable_call): Same.
7547 (vectorizable_condition): Same.
7549 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7551 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7552 stack check if the mask would be zero.
7554 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7555 Jack Howarth <howarth@bromo.med.uc.edu>
7557 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7560 2010-03-30 Joseph Myers <joseph@codesourcery.com>
7563 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
7565 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7566 Include ___unordxf2 and ___unordtf2.
7567 * config/i386/libgcc-glibc.ver: Do not define inheritance from
7570 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
7572 * config/lm32/t-lm32: New file.
7573 * config.gcc: Use the above file when targetting lm32.
7575 2010-03-28 Duncan Sands <baldrick@free.fr>
7577 * Makefile.in (PLUGIN_HEADERS): Add except.h.
7579 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7582 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7583 Improve vectorization cost model diagnostic.
7585 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7588 * tree-vect-data-refs.c (vect_analyze_data_refs): When
7589 compute_data_dependences_for_loop returns false, early exit
7590 and output an extra diagnostic for the failed data reference
7593 2010-03-29 Richard Guenther <rguenther@suse.de>
7595 PR tree-optimization/43560
7596 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7597 (can_sm_ref_p): Treat stores to readonly locations as trapping.
7599 2010-03-29 Jie Zhang <jie@codesourcery.com>
7602 * toplev.c (process_options): Set optimization_default_node
7603 and optimization_current_node.
7604 * opts.c (decode_options): Don't set optimization_default_node
7605 and optimization_current_node.
7607 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
7609 * config/rtems.h: Abandon -qrtems_debug.
7611 2010-03-28 Jan Hubicka <jh@suse.cz>
7613 PR tree-optimization/43505
7614 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7615 map should not be copied.
7617 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7620 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7621 cdtors, set DECL_PRESERVE_P.
7622 * ipa.c (cgraph_externally_visible_p): Return true if declaration
7625 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
7627 PR tree-optimization/43528
7628 * stor-layout.c (place_field): Check that constant fits into
7629 unsigned HWI when skipping calculation of MS bitfield layout.
7631 2010-03-27 Jan Hubicka <jh@suse.cz>
7634 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7635 notice_global_symbol work.
7637 2010-03-27 Jakub Jelinek <jakub@redhat.com>
7639 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7640 instead of dwarf2out_decl.
7641 (struct var_loc_node): Remove section_label field.
7642 (dwarf2out_function_decl): New function.
7643 (dwarf2out_var_location): Don't set section_label field.
7644 (dwarf2out_begin_function): Don't empty decl_loc_table here.
7646 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7648 PR tree-optimization/43544
7649 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7650 First argument for builtin vectorized function hook is now a
7651 tree to be able to distinguish between machine specific and
7653 * targhooks.c (default_builtin_vectorized_function): Ditto.
7654 * targhooks.h (default_builtin_vectorized_function): Ditto.
7655 * target.h (struct gcc_target): Ditto.
7656 * tree-vect-stmts.c (vectorizable_function): Ditto.
7657 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7658 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7661 2010-03-26 Joseph Myers <joseph@codesourcery.com>
7664 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7665 nested binding iff it is a FUNCTION_DECL.
7666 (store_parm_decls_newstyle): Pass nested=true to bind for
7667 FUNCTION_DECLs amongst parameters.
7669 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7671 * var-tracking.c (vt_expand_loc_callback): Don't run
7672 cselib_expand_value_rtx_cb in dummy mode if
7673 cselib_dummy_expand_value_rtx_cb returned false.
7675 * var-tracking.c (emit_note_insn_var_location): For one part
7676 notes with offset 0, don't add EXPR_LIST around the location.
7677 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7678 add_location_or_const_value_attribute): Adjust for that change.
7681 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7682 into first operand and location into second.
7683 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7684 dw_cfi_oprnd_loc for DW_CFA_expression.
7685 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7686 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7687 assume first argument is regnum and second argument is location.
7689 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7692 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7693 of scratch register to DImode. Split to DImode comparison operator.
7694 Use SImode subreg of scratch register in the multiplication.
7695 (*cmp_sadd_sidi): Ditto.
7696 (*cmp_ssub_si): Ditto.
7697 (*cmp_ssub_sidi): Ditto.
7699 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7702 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7703 Remove invalid assert and wrong comment.
7705 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7708 * flags.h (final_insns_dump_p): New extern.
7709 * final.c (final_insns_dump_p): New variable.
7710 (rest_of_clean_state): Set it before -fdump-final-insns=
7711 dumping, clear afterwards.
7712 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7713 MEM_ALIAS_SET on MEMs.
7715 2010-03-26 David S. Miller <davem@davemloft.net>
7717 * configure.ac: Fix sparc GOTDATA_OP bug check.
7718 * configure: Rebuild.
7720 2010-03-26 Alan Modra <amodra@gmail.com>
7722 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7724 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7726 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7727 TLS_SECTION_ASM_FLAG.
7729 2010-03-25 Jakub Jelinek <jakub@redhat.com>
7732 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7733 Clear first_function_block_is_cold.
7736 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7737 argument if the argument is truth_value_p.
7739 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7741 * config/rs6000/constraints.md: Update copyright year for my changes.
7744 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7745 used in reg+reg addressing, swap registers.
7747 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7750 * target.h (struct gcc_target): Add code_end hook.
7751 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7753 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7754 * toplev.c (compile_file): Call targetm.asm_out.code_end
7755 hook before unwind info/debug info output.
7756 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7757 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7758 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7759 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7760 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7761 * config/i386/i386.c (ix86_file_end): Renamed to...
7762 (ix86_code_end): ... this. Make static. Don't call
7763 file_end_indicate_exec_stack. Emit unwind info using
7764 final_start_function/final_end_function.
7765 (darwin_x86_file_end): Remove.
7766 (TARGET_ASM_CODE_END): Define.
7767 * config/i386/i386.h (TARGET_ASM_FILE_END,
7768 NEED_INDICATE_EXEC_STACK): Don't define.
7769 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7770 (TARGET_ASM_FILE_END): Define to darwin_file_end.
7771 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7772 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7775 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
7776 at the beginning and final_end_function at the end.
7777 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7779 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7781 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
7782 and Sun as TLS syntax.
7783 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
7784 * configure: Regenerate.
7785 * config.in: Regenerate.
7786 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
7787 (default_elf_asm_named_section): Use it.
7788 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
7789 (i386_output_dwarf_dtprel): Likewise.
7790 (output_addr_const_extra): Likewise.
7791 (output_pic_addr_const): Lowercase @GOTTPOFF.
7792 (output_addr_const_extra): Likewise.
7793 (output_pic_addr_const): Lowercase @GOTNTPOFF.
7794 (output_addr_const_extra): Likewise.
7795 (output_pic_addr_const): Lowercase @INDNTPOFF.
7796 (output_addr_const_extra): Likewise.
7797 (output_pic_addr_const): Lowercase @NTPOFF.
7798 (output_addr_const_extra): Likewise.
7799 (output_pic_addr_const): Lowercase @TPOFF.
7800 (output_addr_const_extra): Likewise.
7801 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
7802 (*tls_global_dynamic_64): Likewise.
7803 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
7804 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
7806 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
7807 (ASM_OUTPUT_TLS_COMMON): Use it.
7808 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
7811 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
7812 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7813 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
7814 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
7815 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7816 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
7818 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7820 * config/i386/i386.c (override_options): Don't accept
7821 -mtls-dialect=sun any longer.
7822 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
7823 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
7824 (*tls_local_dynamic_base_32_sun): Likewise.
7825 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7827 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7830 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7831 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
7834 * ira.c (adjust_cleared_regs): New function.
7835 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
7839 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
7841 * expr.c (expand_expr_real): Restore previous
7842 curr_insn_source_location and curr_insn_block after
7843 expand_expr_real_1 call.
7844 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
7845 instead of expand_expr_real_1.
7847 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
7849 PR rtl-optimization/43413
7850 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
7853 2010-03-22 James E. Wilson <wilson@codesourcery.com>
7856 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
7857 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
7859 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
7861 * config/i386/i386.c (ix86_target_string): Add -mfma.
7862 Fix a typo in comment.
7864 2010-03-22 Mike Stump <mikestump@comcast.net>
7867 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
7868 Don't overly align based upon packed packed fields.
7870 2010-03-22 Jason Merrill <jason@redhat.com>
7872 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
7873 Use () rather than [], and move before the element type.
7875 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7877 * doc/configfiles.texi (Configuration Files): Removed
7878 fixinc/Makefile*, intl/Makefile.*.
7879 * doc/makefile.texi: Fixed markup. Abstract from version
7880 control system used.
7881 (Makefile): Removed obsolete gcc/java/parse.y example.
7882 * doc/sourcebuild.texi: Likewise.
7883 (Top Level): Added config, gnattools, libdecnumber, libgcc,
7884 libgomp, libssp. Removed fastjar.
7885 (Miscellaneous Docs): Clarify location.
7886 Added COPYING3, COPYING3.LIB.
7887 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
7889 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7892 * config/i386/i386.c (x86_function_profiler)
7893 [!NO_PROFILE_COUNTERS]: Fix typo.
7894 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
7897 2010-03-22 Janis Johnson <janis187@us.ibm.com>
7898 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7900 * doc/sourcebuild.texi (Test Directives): Split into six
7901 subsections, with most of the current text in new subsections
7902 Directives, Selectors, and Final Actions.
7903 (Directives): Split list of test directives into multiple
7905 (Selectors): Describe use and syntax of selectors.
7906 (Effective-Target Keywords): Describe all existing keywords.
7907 (Add Options): Describe features for dg-add-options.
7908 (Require Support): Describe variants of dg-require-support.
7909 (Final Actions): Describe commands to use in dg-final.
7911 2010-03-22 Michael Matz <matz@suse.de>
7914 * recog.c (validate_replace_rtx_group): Replace also in
7915 REG_EQUAL and REG_EQUIV notes.
7917 2010-03-22 Richard Guenther <rguenther@suse.de>
7919 PR tree-optimization/43390
7920 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
7921 sure vector extracts are type correct.
7923 2010-03-22 Richard Guenther <rguenther@suse.de>
7926 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
7927 x * sqrt (x) even when optimizing for size if the target
7928 has native support for sqrt.
7930 2010-03-22 Jakub Jelinek <jakub@redhat.com>
7932 * varasm.c (make_decl_rtl_for_debug): Also clear
7933 flag_mudflap for the duration of make_decl_rtl call.
7936 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
7937 locs from preserved VALUEs.
7939 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7942 * pa.md (movmemsi): Set align to one if zero.
7943 (movmemdi): Likewise.
7945 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
7948 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
7949 with their corresponding prologue pushes.
7951 2010-03-20 Andrew Pinski <pinskia@gmail.com>
7954 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
7955 at the begining or end.
7956 (spu_expand_epilogue): Likewise.
7958 2010-03-20 Richard Guenther <rguenther@suse.de>
7960 PR rtl-optimization/43438
7961 * combine.c (make_extraction): Properly zero-/sign-extend an
7962 extraction of the low part of a CONST_INT. Also handle
7965 2010-03-19 Mike Stump <mikestump@comcast.net>
7967 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
7968 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
7969 (override_options): Use SUBTARGET32_DEFAULT_CPU.
7971 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
7974 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
7977 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
7979 PR rtl-optimization/42258
7980 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
7981 use that may match DEF.
7984 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
7985 the cost of loading the constant rather than assuming
7987 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
7988 outer code is AND, do the same tests as the andsi3 expander and
7989 return COSTS_N_INSNS (1) if and is cheap.
7991 * optabs.c (avoid_expensive_constant): Fix formatting.
7993 2010-03-19 Michael Matz <matz@suse.de>
7996 * attribs.c (decl_attributes): When rebuilding a function pointer
7997 type use the same qualifiers as the original pointer type.
7999 2010-03-19 Martin Jambor <mjambor@suse.cz>
8001 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8002 and is_gimple_ip_invariant_address.
8004 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8007 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8009 * config/arm/arm.c (arm_override_options): Turn off
8010 flag_dwarf2_cfi_asm for AAPCS variants.
8012 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8015 * config/arm/arm.c (emit_multi_reg_push): Update comments.
8016 Use PRE_MODIFY instead of PRE_DEC.
8017 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8018 (vfp_emit_fstmd): Likewise.
8020 2010-03-19 Michael Matz <matz@suse.de>
8023 * builtins.c (expand_builtin_interclass_mathfn,
8024 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8027 2010-03-19 Richard Guenther <rguenther@suse.de>
8029 PR tree-optimization/43415
8030 * tree-ssa-pre.c (phi_translate): Split out worker to ...
8031 (phi_translate_1): ... this.
8032 (phi_translate): Move all caching here. Cache all NARY
8033 and REFERENCE translations.
8035 2010-03-19 David S. Miller <davem@davemloft.net>
8037 With help from Eric Botcazou.
8038 * config/sparc/sparc.c: Include dwarf2out.h.
8039 (emit_pic_helper): Delete.
8040 (pic_helper_symbol_name): Delete.
8041 (pic_helper_emitted_p): Delete.
8042 (pic_helper_needed): New.
8043 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8044 (get_pc_thunk_name): New.
8045 (load_pic_register): Remove 'delay_pic_helper' arg. Use
8046 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8047 Set pic_helper_needed to true. Don't call emit_pic_helper.
8048 (sparc_expand_prologue): Update load_pic_register call.
8049 (sparc_output_mi_thunk): Likewise.
8050 (sparc_file_end): Emit a hidden comdat symbol for the PIC
8051 thunk if possible. Output CFI information as needed.
8053 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8054 Jack Howarth <howarth@bromo.med.uc.edu>
8057 * config/i386/i386.h: Fix ABI on darwin x86-32.
8059 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
8061 * tree.h: Declare make_decl_rtl_for_debug.
8062 * varasm.c (make_decl_rtl_for_debug): New.
8063 * dwarf2out.c (rtl_for_decl_location): Call it.
8064 * cfgexpand.c (expand_debug_expr): Call it.
8066 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8069 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8073 * var-tracking.c (vt_init_cfa_base): Do nothing if
8074 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8076 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
8079 * var-tracking.c (canonicalize_vars_star): New.
8080 (dataflow_post_merge_adjust): Use it.
8082 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8085 * var-tracking.c (non_suitable_const): New function.
8086 (add_uses): For DEBUG_INSNs with constants, don't record any
8087 value, instead just the constant value itself.
8088 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8089 is not VAR_LOC_UNKNOWN_P, set var to the constant.
8090 (emit_notes_in_bb): Likewise.
8091 (emit_note_insn_var_location): For onepart variables if
8092 cur_loc is a VOIDmode constant, use DECL_MODE.
8094 2010-03-18 Martin Jambor <mjambor@suse.cz>
8097 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8098 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8099 all non-clones. Moved call redirection...
8100 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8101 (cgraph_materialize_all_clones): Dispose of all
8102 combined_args_to_skip bitmaps.
8103 (verify_cgraph_node): Do not check for edges pointing to wrong
8104 nodes in inline clones.
8105 * tree-inline.c (copy_bb): Call
8106 cgraph_redirect_edge_call_stmt_to_callee.
8107 * ipa.c (cgraph_remove_unreachable_nodes): Call
8108 cgraph_node_remove_callees even when there are used clones.
8110 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8112 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8114 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8117 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8120 2010-03-18 Michael Matz <matz@suse.de>
8123 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8124 into sqrt(x) if we need to preserve signed zeros.
8126 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8127 Eric Botcazou <ebotcazou@adacore.com>
8129 PR rtl-optimization/43360
8130 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8131 note if we don't know its invariant status.
8133 2010-03-18 Michael Matz <matz@suse.de>
8135 PR tree-optimization/43402
8136 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8137 PHI chains of ssa names registered for update.
8139 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8142 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8143 non-offsettable and pre_modify update addressing.
8144 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8145 and "2" alternatives "#".
8146 (*movdd_softfloat32): Make all alternatives "#";
8147 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8148 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8149 (*movdf_softfloat32): Make all alternatives "#";
8150 (movdi): Use the new DIFD mode iterator to create a common splitter
8151 for movdi, movdf and movdd patterns.
8153 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
8155 * common.opt (dumpdir): Remove redundant tab.
8157 2010-03-17 Martin Jambor <mjambor@suse.cz>
8159 PR tree-optimization/43347
8160 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8161 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8163 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
8165 PR rtl-optimization/42216
8166 * regrename.c (create_new_chain): New function, broken out from...
8167 (scan_rtx_reg): ... here. Call it. Handle the case where we are
8168 appending a use to an empty chain.
8169 (build_def_use): Remove previous changes that convert OP_INOUT to
8170 OP_OUT operands; instead detect the case where an OP_INOUT operand
8171 uses a previously untracked register and create an empty chain for it.
8173 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8175 * doc/extend.texi (Function Attributes): Rewrite unfinished
8176 sentence in ms_abi documentation.
8178 2010-03-17 Alan Modra <amodra@gmail.com>
8180 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8181 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8182 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8183 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8185 2010-03-16 Richard Henderson <rth@redhat.com>
8188 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8189 (lower_try_finally): Save and restore eh_seq around the expansion
8192 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8194 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8195 statements before splitting block.
8197 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8199 * doc/sourcebuild.texi (Testsuites): Fix markup.
8200 Use pathnames relative to gcc/testsuite.
8201 (Test Directives): Move description of how timeout is determined.
8202 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8203 (C Tests): Correct gcc.misc-tests directory.
8204 Framework tests now live in gcc.test-framework.
8206 2010-03-16 Richard Guenther <rguenther@suse.de>
8209 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8210 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8212 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8213 Alexandre Oliva <aoliva@redhat.com>
8215 PR tree-optimization/42917
8216 * lambda-code.c (remove_iv): Skip debug statements.
8217 (lambda_loopnest_to_gcc_loopnest): Likewise.
8218 (not_interesting_stmt): Debug statements are not interesting.
8220 2010-03-16 Jakub Jelinek <jakub@redhat.com>
8224 * cselib.c (cselib_preserve_constants,
8225 cfa_base_preserved_val): New static variables.
8226 (preserve_only_constants): New function.
8227 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8228 clear its REG_VALUES. If cselib_preserve_constants, don't
8229 empty the whole hash table, but preserve there VALUEs with constants,
8230 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8231 (cselib_preserve_cfa_base_value): New function.
8232 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8233 (cselib_init): Change argument to int bitfield. Set
8234 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8236 (cselib_finish): Clear cselib_preserve_constants and
8237 cfa_base_preserved_val.
8238 * cselib.h (enum cselib_record_what): New enum.
8239 (cselib_init): Change argument to int.
8240 (cselib_preserve_cfa_base_value): New prototype.
8241 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8242 * dse.c (dse_step1): Likewise.
8243 * cfgcleanup.c (thread_jump): Likewise.
8244 * sched-deps.c (sched_analyze): Likewise.
8245 * gcse.c (local_cprop_pass): Likewise.
8246 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8247 If FN is non-NULL, call the callback always and whenever it returns
8248 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
8249 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8250 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8251 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8252 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8253 * var-tracking.c: Include recog.h.
8254 (bb_stack_adjust_offset): Remove.
8255 (vt_stack_adjustments): Don't call it, instead just gather the
8256 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8257 (adjust_stack_reference): Remove.
8258 (compute_cfa_pointer): New function.
8259 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8260 (struct adjust_mem_data): New type.
8261 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8263 (get_address_mode): New function.
8264 (replace_expr_with_values): Use it.
8265 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8266 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
8267 (adjust_sets): Remove.
8268 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8269 Use get_address_mode.
8270 (get_adjusted_src): Remove.
8271 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
8272 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
8273 (add_with_sets): Don't call adjust_sets.
8274 (fp_setter, vt_init_cfa_base): New functions.
8275 (vt_initialize): Change return type to bool. Move most of pool etc.
8276 initialization to the beginning of the function from end. Pass
8277 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8278 If !frame_pointer_needed, call vt_stack_adjustment before mos
8279 vector is filled, call vt_init_cfa_base if argp/framep has been
8280 eliminated to sp. If frame_pointer_needed and argp/framep has
8281 been eliminated to hard frame pointer, set
8282 hard_frame_pointer_adjustment and call vt_init_cfa_base after
8283 encountering fp setter in the prologue. For MO_ADJUST, call
8284 log_op_type before pusing the op into mos vector, not afterwards.
8285 Call adjust_insn before cselib_process_insn/add_with_sets,
8286 call cancel_changes (0) afterwards.
8287 (variable_tracking_main_1): Adjust for vt_initialize calling
8288 vt_stack_adjustments and returning whether it succeeded or not.
8290 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
8292 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8295 2010-03-15 Jakub Jelinek <jakub@redhat.com>
8297 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8299 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8300 drap_reg has not been set.
8302 2010-03-15 Michael Matz <matz@suse.de>
8305 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8306 use it to expand block copies.
8307 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8308 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8309 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8311 2010-03-15 Richard Guenther <rguenther@suse.de>
8313 PR tree-optimization/43367
8314 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8317 2010-03-15 Richard Guenther <rguenther@suse.de>
8319 PR tree-optimization/43317
8320 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8322 2010-03-15 Martin Jambor <mjambor@suse.cz>
8324 PR tree-optimization/43141
8325 * tree-sra.c (create_abstract_origin): New function.
8326 (modify_function): Call create_abstract_origin.
8328 2010-03-15 Chris Demetriou <cgd@google.com>
8330 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8333 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8336 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8337 call insert_out_of_ssa_copy for default definitions.
8339 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8341 * graphite-clast-to-gimple.c (my_long_long): Defined.
8342 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8343 * graphite-sese-to-poly.c (my_long_long): Defined.
8344 (scop_ivs_can_be_represented): Use it.
8346 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8348 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8349 graphite-max-bbs-per-function, and loop-block-tile-size.
8350 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8352 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8354 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8356 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8357 forward declaration.
8358 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8359 (add_upper_bounds_from_estimated_nit): New.
8360 (build_loop_iteration_domains): Use it.
8362 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8364 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8366 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8369 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8370 should be an INTEGER_CST. Also handle CASE_CONVERT.
8372 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8374 * graphite.c (graphite_initialize): To bound the number of bbs per
8375 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8376 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8377 * doc/invoke.texi: Document it.
8379 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8381 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8382 * graphite-sese-to-poly.h (build_poly_scop): Same.
8384 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8386 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8387 the number of parameters in the scop. Use as an upper bound
8388 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8389 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8390 * doc/invoke.texi: Document it.
8392 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
8394 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8395 * doc/c-tree.texi: Remove.
8396 * doc/generic.texi: Merge c-tree.texi here.
8397 * doc/gccint.texi (Trees): Remove menu entry.
8398 (c-tree.texi): Remove @include.
8399 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8400 * doc/languages.texi (Reading RTL): Ditto.
8402 2010-03-12 Steve Ellcey <sje@cup.hp.com>
8405 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8407 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8410 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8411 code added to work around reload clobbering CONST insns.
8413 2010-03-12 Jakub Jelinek <jakub@redhat.com>
8415 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8416 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8417 (cselib_preserve_only_values): Remove retain argument, don't
8418 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8419 * cselib.h (cselib_preserve_only_values): Remove retain argument.
8420 * var-tracking.c (micro_operation): Move insn field before union.
8421 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8422 (struct variable_tracking_info_def): Remove n_mos field, change
8423 mos into a vector of micro_operations.
8424 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8425 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8426 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8427 changing into a vector.
8428 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
8429 come before all other uops generated by add_stores.
8430 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8432 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
8433 a vector. Run just one pass over the bbs instead of separate counting
8434 and computation phase.
8435 (vt_finalize): Free VTI (bb)->mos vector instead of array.
8438 * tree-inline.c (remap_decls): Put old_var rather than origin_var
8439 into *nonlocalized_list vector.
8440 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8441 even if origin is non-NULL.
8442 (gen_variable_die): Likewise.
8443 (process_scope_var): Don't change origin.
8444 (gen_decl_die): Likewise.
8445 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8446 before adding new edges instead of after it, fix moving over
8449 2010-03-11 David S. Miller <davem@davemloft.net>
8451 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8453 * configure: Rebuild.
8455 2010-03-11 Martin Jambor <mjambor@suse.cz>
8457 PR tree-optimization/43257
8458 * tree.c (assign_assembler_name_if_neeeded): New function.
8459 (free_lang_data_in_cgraph): Assembler name assignment moved to the
8461 * tree.h (assign_assembler_name_if_neeeded): Declare.
8462 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8463 the function if needed.
8465 2010-03-11 Chris Demetriou <cgd@google.com>
8467 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8468 include/stdint-gcc.h, and include/stdint.h world-readable.
8470 2010-03-11 Richard Guenther <rguenther@suse.de>
8472 PR tree-optimization/43255
8473 * tree-vrp.c (process_assert_insertions_for): Do not insert
8474 asserts for trivial conditions.
8476 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8478 PR tree-optimization/43280
8479 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8480 generation. Move calculation of size out of the if branch.
8481 (find_bswap): Modify compare number generation.
8483 2010-03-11 Richard Guenther <rguenther@suse.de>
8486 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8487 (input_gimple_stmt): Fixup handled component types during
8488 operand read. Also fix up decls in ADDR_EXPRs.
8490 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8492 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8493 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8495 2010-03-10 Jan Hubicka <jh@suse.cz>
8498 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8499 * varasm.c (get_variable_section): Don't do that here...
8500 (make_decl_rtl): ... and here.
8501 (do_assemble_alias): Produce decl RTL.
8502 (assemble_alias): Likewise.
8504 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8507 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8508 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8510 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8511 (based_loc_descr): Only express drap or vdrap regno based expressions
8512 using DW_OP_fbreg when not optimizing.
8513 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8514 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8515 REG_CFA_SET_VDRAP note.
8517 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
8519 PR tree-optimization/43236
8520 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8521 error in calculation of base address in reverse iteration case.
8522 (generate_builtin): Take number of latch executions if the statement
8525 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
8528 * tree-eh.c: Include pointer-set.h.
8529 (lower_eh_dispatch): Filter out duplicate case labels and
8530 remove the unneeded edge when the label is unused. Return
8531 true when some edges are removed.
8532 (execute_lower_eh_dispatch): When any lowering resulted in
8533 removing an edge, also delete unreachable blocks.
8535 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8538 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8539 UNSPEC_MACHOPIC_OFFSET.
8541 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
8544 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8545 (m68k_delegitimize_address): New function.
8547 2010-03-09 Jakub Jelinek <jakub@redhat.com>
8550 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8553 * var-tracking.c (adjust_sets): New function.
8554 (count_with_sets, add_with_sets): Use it.
8555 (get_adjusted_src): New inline function.
8556 (add_stores): Use it.
8559 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8560 call cselib_dummy_expand_value_rtx_cb instead of
8561 cselib_expand_value_rtx_cb.
8564 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8565 * config/i386/i386.c: Include debug.h and dwarf2out.h.
8566 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8567 and .cfi_endproc around the pic thunks.
8568 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8569 all queued unwind info register saves are saved before the call.
8570 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8571 considered as sp-=4 for unwind info and the pop as sp+=4 which
8572 also clobbers dest, but doesn't actually restore it.
8575 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8576 RTX_FRAME_RELATED_P.
8578 2010-03-09 Jie Zhang <jie@codesourcery.com>
8580 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8581 whitespaces in output template.
8583 2010-03-09 Jie Zhang <jie@codesourcery.com>
8585 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8588 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8590 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8591 builtins.exp in a separate job.
8593 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8595 * graphite-sese-to-poly.c (add_param_constraints): Use
8596 lower_bound_in_type and upper_bound_in_type.
8598 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8600 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8601 instead of unsigned_type_node.
8603 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8604 Reza Yazdani <reza.yazdani@amd.com>
8607 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8608 on pointer type parameters.
8610 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8614 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8615 handle conversions from pointer to integers.
8616 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8617 induction variable, to be able to work with code generated by CLooG.
8618 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8619 (build_poly_scop): Bail out if we cannot codegen a loop.
8621 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8623 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8624 code generation with gloog_error.
8626 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8628 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8629 Call fold_convert on all the returned values.
8630 (expand_scalar_variables_expr): Pass to
8631 expand_scalar_variables_ssa_name the type of the resulting expression.
8633 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8635 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8636 ppl_min_for_le_pointset.
8637 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8638 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8640 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8642 * graphite-dependences.c (map_into_dep_poly): Removed.
8643 (dependence_polyhedron_1): Use combine_context_id_scat.
8645 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8647 * graphite-poly.h (struct poly_scattering): Add layout documentation.
8648 (struct poly_bb): Same.
8649 (combine_context_id_scat): New.
8651 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8654 * sese.c (name_defined_in_loop_p): Return false for default
8657 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8659 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8660 and clean up the logic.
8662 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8664 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8667 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8669 * var-tracking.c (remove_cselib_value_chains): Define only for
8671 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8672 delete_slot_part, emit_notes_for_differences_1): Don't call
8673 remove_cselib_value_chains here.
8674 (set_slot_part, emit_notes_for_differences_2): Don't call
8675 add_cselib_value_chains here.
8676 (preserved_values): New vector.
8677 (preserve_value): New function.
8678 (add_uses, add_stores, vt_add_function_parameters): Use it
8679 instead of cselib_preserve_value.
8680 (changed_values_stack): New vector.
8681 (check_changed_vars_0): New function.
8682 (check_changed_vars_1, check_changed_vars_2): Use it.
8683 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8684 changed_values_stack VALUEs.
8685 (vt_emit_notes): For all preserved_values call
8686 add_cselib_value_chains. If ENABLE_CHECKING call
8687 remove_cselib_value_chains before verifying value_chains is empty.
8688 Initialize and free changed_values_stack.
8689 (vt_initialize): Initialize preserved_values.
8690 (vt_finalize): Free preserved_values.
8692 2010-03-08 Richard Guenther <rguenther@suse.de>
8694 PR tree-optimization/43269
8695 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8698 2010-03-08 Martin Jambor <mjambor@suse.cz>
8700 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8701 (ipa_is_param_called): Removed.
8702 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8703 (ipa_print_node_params): Do not print the called flag.
8704 (ipa_write_node_info): Do not stream the called flag.
8705 (ipa_read_node_info): Likewise.
8707 2010-03-07 Jakub Jelinek <jakub@redhat.com>
8710 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8711 * cselib.c (struct expand_value_data): Add dummy field.
8712 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8714 (cselib_dummy_expand_value_rtx_cb): New function.
8715 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8717 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8718 * var-tracking.c: Include pointer-set.h.
8719 (variable): Change n_var_parts to char from int. Add
8720 cur_loc_changed and in_changed_variables fields.
8721 (variable_canonicalize): Remove.
8722 (shared_var_p): New inline function.
8723 (unshare_variable): Maintain cur_loc_changed and
8724 in_changed_variables fields. If var was in changed_variables,
8725 replace it there with new_var. Just copy cur_loc instead of
8726 resetting it to something else.
8727 (variable_union): Don't recompute cur_loc. Use shared_var_p.
8728 (dataflow_set_union): Don't call variable_canonicalize.
8729 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8730 of their DEBUG_EXPR_TREE_DECLs.
8731 (canonicalize_loc_order_check): Verify that cur_loc is NULL
8732 and in_changed_variables and cur_loc_changed is false.
8733 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8734 and cur_loc_changed. Don't update cur_loc here.
8735 (variable_merge_over_src): Don't call variable_canonicalize.
8736 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
8737 removing loc that is equal to cur_loc, clear cur_loc,
8738 set cur_loc_changed and ensure variable_was_changed is called.
8739 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
8740 compare pointers in cur_loc check, if it is equal to loc,
8741 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
8742 (variable_different_p): Remove compare_current_location argument,
8743 don't compare cur_loc.
8744 (dataflow_set_different_1): Adjust variable_different_p caller.
8745 (variable_was_changed): If dv had some var in changed_variables
8746 already, reset in_changed_variables flag for it and propagate
8747 cur_loc_changed over to the new variable. On empty var
8748 always set cur_loc_changed. Set in_changed_variables on whatever
8749 var is added to changed_variables.
8750 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8751 Use shared_var_p. When removing loc that is equal to cur_loc,
8752 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
8753 end, don't set it to something else, just call variable_was_changed.
8754 (delete_slot_part): Use shared_var_p. When cur_loc equals to
8755 loc being removed, clear cur_loc and set cur_loc_changed.
8756 Set cur_loc_changed if all locations have been removed.
8757 (struct expand_loc_callback_data): New type.
8758 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8759 allocated. Always create SUBREGs if simplify_subreg failed.
8760 Prefer to use cur_loc, when that fails and still in
8761 changed_variables (and seen first time) recompute it. Set
8762 cur_loc_changed of variables which had to change cur_loc and
8763 compute elcd->cur_loc_changed if any of the subexpressions used
8764 had to change cur_loc.
8765 (vt_expand_loc): Adjust to pass arguments in
8766 expand_loc_callback_data structure.
8767 (vt_expand_loc_dummy): New function.
8768 (emitted_notes): New variable.
8769 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8770 that weren't used for any other decl in current
8771 emit_notes_for_changes call call vt_expand_loc_dummy to update
8772 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
8773 first loc_chain location if NULL before. Always use just
8774 cur_loc instead of first loc_chain location. When cur_loc_changed
8775 is false, when not --enable-checking=rtl just don't emit any note.
8776 When rtl checking, compute the note and assert it is the same
8777 as previous note. Clear cur_loc_changed and in_changed_variables
8778 at the end before removing from changed_variables.
8779 (check_changed_vars_3): New function.
8780 (emit_notes_for_changes): Traverse changed_vars to call
8781 check_changed_vars_3 on each changed var.
8782 (emit_notes_for_differences_1): Clear cur_loc_changed and
8783 in_changed_variables. Recompute cur_loc of new_var.
8784 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
8785 (vt_emit_notes): Initialize and destroy emitted_notes.
8787 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
8789 PR rtl-optimization/42220
8790 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
8791 Use verify_reg_tracked to determine if we should use OP_OUT rather
8793 (build_def_use): If we see an in-out operand for a register that we
8794 know nothing about, treat is an output if possible, fail the block if
8797 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8800 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
8803 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8806 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
8807 uses of relevant DEFs that are dead outside the loop too.
8809 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
8811 * var-tracking.c (dataflow_set_merge): Swap src and src2.
8813 2010-01-13 Jakub Jelinek <jakub@redhat.com>
8815 * var-tracking.c (values_to_unmark): New variable.
8816 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8817 values_to_unmark vector. Moved body to...
8818 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
8819 instead queue it into values_to_unmark vector.
8820 (vt_find_locations): Free values_to_unmark vector.
8822 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
8824 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
8825 (site.exp): Export them when plugins are enabled.
8827 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
8830 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
8832 (chrec_fold_multiply): Same.
8834 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8837 * c-decl.c (build_compound_literal): Return early if init is
8840 2010-03-04 Martin Jambor <mjambor@suse.cz>
8842 PR tree-optimization/43164
8843 PR tree-optimization/43191
8844 * tree-sra.c (type_consists_of_records_p): Reject records with
8845 zero-size bit-fields at the end.
8847 2010-03-04 Mike Stump <mikestump@comcast.net>
8849 * Makefile.in (TAGS): Remove *.y.
8851 2010-03-04 Richard Guenther <rguenther@suse.de>
8853 PR tree-optimization/40761
8854 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
8856 (my_rev_post_order_compute): New function.
8857 (init_pre): Call it.
8859 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
8862 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
8863 decrease the cost of an IV candidate when the cost is infinite.
8865 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8867 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
8868 Use '3DNow!' for the extension of that name, ensure normal space
8870 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
8872 2010-03-03 Jeff Law <law@redhat.com>
8874 * PR middle-end/32693
8875 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
8876 than gen_rtx_SUBREG.
8877 (extract_bit_field_1): Likewise.
8879 2010-03-03 Janis Johnson <janis187@us.ibm.com>
8881 * doc/sourcebuild.texi (Test directives): Document that arguments
8882 include-opts and exclude-opts are now optional for dg-skip-if,
8883 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
8885 2010-03-03 Jason Merrill <jason@redhat.com>
8888 * cgraph.h (varpool_node): Add extra_name field.
8889 * varpool.c (varpool_extra_name_alias): New.
8890 (varpool_assemble_decl): Emit extra name aliases.
8891 (varpool_mark_needed_node): Look past an extra name alias.
8892 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
8893 * lto-streamer-in.c (lto_input_tree): Read it.
8894 * lto-streamer-out.c (output_unreferenced_globals): Write it.
8896 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
8898 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
8899 (sparc*-*-solaris2*): ...this.
8901 2010-03-03 Jakub Jelinek <jakub@redhat.com>
8904 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
8905 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
8906 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
8907 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
8910 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
8911 fallthrough to default handling, just with want_address 0 instead of 2.
8912 For single element lists, add_AT_loc directly, otherwise create an
8913 artificial variable DIE and stick location list to it.
8916 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
8917 (VAL_EXPR_HAS_REVERSE): Define.
8918 (reverse_op): New function.
8919 (add_stores): For reversible operations add an extra MO_VAL_USE.
8921 2010-03-02 Jason Merrill <jason@redhat.com>
8923 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
8925 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
8927 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
8928 (sparc64-*-linux*): Likewise.
8929 (sparc64-*-solaris2*): Include assembler files before linker ones.
8930 (sparc-*-solaris2*): Simplify and reorder to match previous case.
8931 * config/sparc/gas.h: Delete.
8932 * config/sparc/sol2-64.h: Add copyright notice.
8933 * config/sparc/sol2-gas-bi.h: Likewise.
8934 * config/sparc/sol2-gld.h: Likewise.
8935 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
8936 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
8937 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
8938 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
8939 (sparc_elf_asm_named_section): Rename into...
8940 (sparc_solaris_elf_asm_named_section): ...this. Always define.
8942 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
8944 * config/alpha/alpha.c (override_options): Fix -mtune error message.
8946 2010-03-02 Jeff Law <law@redhat.com>
8949 * reload1.c (rtx_p, substitute_stack): Declare.
8950 (substitute): Record addresses of changed rtxs.
8951 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
8952 Restore the original rtx when complete.
8953 (reload): Free subsitute_stack when complete.
8955 2010-03-02 Janis Johnson <janis187@us.ibm.com>
8957 * doc/gccint.texi (menu): Add Testsuites as a chapter.
8958 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
8960 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
8961 LTO Testing, gcov Testing, profopt Testing, compat Testing,
8962 Torture Tests): Change from subsection to section.
8964 2010-03-02 Jakub Jelinek <jakub@redhat.com>
8965 Steven Bosscher <steven@gcc.gnu.org>
8967 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
8970 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
8973 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
8974 the assignment from the new induction variable to the assignment
8975 of the value from the original loop PHI function.
8977 2010-03-01 Janis Johnson <janis187@us.ibm.com>
8978 Daniel Jacobowitz <dan@codesourcery.com>
8980 * doc/sourcebuild.texi (Test directives): Clarify options to
8983 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8985 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
8986 Disable cfi directives unless GCC and gas agree on using read-only
8987 .eh_frame sections for 64-bit.
8988 * configure: Regenerate.
8990 2010-03-01 Richard Guenther <rguenther@suse.de>
8992 PR tree-optimization/43220
8993 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
8994 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
8996 2010-03-01 Richard Guenther <rguenther@suse.de>
8997 Martin Jambor <mjambor@suse.cz>
9000 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9001 gimplified parameters.
9003 2010-03-01 Christian Bruel <christian.bruel@st.com>
9005 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9007 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9009 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9011 2010-03-01 Richard Guenther <rguenther@suse.de>
9014 * expr.c (expand_assignment): Use the alias-oracle to tell
9015 if the rhs aliases the result decl.
9017 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9020 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9021 to sol_gt_pch_get_address.
9022 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9023 64-bit, SPARC and x86.
9024 (sol_gt_pch_get_address): New function.
9026 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
9028 * toplev.h (inform_n, error_n): Declare.
9029 * diagnostic.c (inform_n, error_n): New function.
9031 2010-03-01 Jakub Jelinek <jakub@redhat.com>
9033 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9034 has no rtl yet when processing local_decls, queue it and recheck
9035 if deferred stack allocation hasn't assigned it rtl.
9037 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
9039 * config/sh/sh.c (unspec_bbr_uid): New.
9040 (gen_block_redirect): Use it instead of INSN_UID.
9041 (gen_far_branch): Likewise.
9043 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
9045 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9046 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9048 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9050 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9051 (Warning Options): -Wno-conversion-null is valid for
9052 Objective-C++ as well.
9053 * doc/tm.texi (Named Address Spaces): Likewise.
9054 * doc/plugins.texi (Plugins): Replace TABs with spaces.
9055 * doc/tree-ssa.texi (Tree SSA): Likewise.
9057 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9060 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9061 by default. Don't set the default arch for
9062 i[34567]86-*-darwin*|x86_64-*-darwin*.
9064 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9067 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9068 default. Set the default 32bit/64bit archs with $with_arch
9069 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9071 2010-02-27 Richard Guenther <rguenther@suse.de>
9073 PR tree-optimization/43186
9074 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9075 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9076 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9077 unroller iterations.
9079 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9081 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9082 required and i[34567]86-*-* targets don't support 64bit ISA.
9084 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
9087 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9090 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9092 * config.gcc: Set the default arch at least to Prescott for
9093 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9094 if SSE math is enabled.
9096 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9098 * diagnostic.c (diagnostic_initialize): Update.
9099 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9101 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9102 (diagnostic_inhibit_notes): New.
9103 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9105 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9108 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9109 * doc/standards.texi: Likewise.
9110 * doc/extend.texi: Likewise.
9111 * doc/trouble.texi: Likewise.
9112 * doc/cppopts.texi: Likewise.
9113 * doc/install.texi: Likewise.
9114 * c.opt (std=c90,std=gnu90): New options.
9115 * c-opts.c (c_common_handle_option): Handle them.
9117 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9120 * c-decl.c (undeclared_variable): Use an informative note.
9122 2010-02-26 Richard Guenther <rguenther@suse.de>
9124 PR tree-optimization/43186
9125 * gimple.h (gimple_fold): Remove.
9126 * gimple.c (gimple_fold): Remove. Inline into single user ...
9127 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9128 Try harder for conditions.
9130 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9133 * function.c (used_types_insert): Don't skip through named pointer
9134 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9135 and it is different from the main variant's type.
9137 2010-02-26 Nick Clifton <nickc@redhat.com>
9139 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9141 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9143 * config.gcc: Support --with-fpmath=sse for x86.
9145 * config/i386/ssemath.h: New.
9147 * doc/install.texi (--with-fpmath=sse): Documented.
9149 2010-02-26 Richard Guenther <rguenther@suse.de>
9151 PR tree-optimization/43188
9152 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9153 vector types of over-aligned element type.
9155 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
9158 * config/i386/i386.c (expand_vec_perm_blend): Use correct
9159 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
9161 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9163 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9165 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9167 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9168 * var-tracking.c: Include diagnostic.h.
9169 (debug_dv): New function.
9170 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9173 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9174 (add_value_chain, add_value_chains, remove_value_chain,
9175 remove_value_chains): Handle DEBUG_EXPRs.
9176 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9179 * regcprop.c (struct queued_debug_insn_change): New type.
9180 (struct value_data_entry): Add debug_insn_changes field.
9181 (struct value_data): Add n_debug_insn_changes field.
9182 (debug_insn_changes_pool): New variable.
9183 (free_debug_insn_changes, apply_debug_insn_changes,
9184 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9185 (kill_value_one_regno): Call free_debug_insn_changes if needed.
9186 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9188 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9190 (copyprop_hardreg_forward_1): Don't call apply_change_group for
9191 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
9192 changes, call cprop_find_used_regs via note_stores.
9193 (copyprop_hardreg_forward): When copying vd from predecessor
9194 which has any queued DEBUG_INSN changes, make sure the pointers are
9195 cleared. At the end call df_analyze and then if there are any
9196 DEBUG_INSN changes queued at the end of some basic block for still
9197 live registers, apply them.
9198 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9200 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
9202 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9205 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
9207 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9208 targets. Set the default with_cpu/with_arch from arch/cpu.
9209 Allow x86-64 and native for with_cpu/with_arch.
9211 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
9213 * ebitmap.c: Change calls to verify_popcount with calls to
9214 sbitmap_verify_popcount.
9215 (ebitmap_clear_bit): Fixed map->cacheindex test and
9216 map>cache update when bit clearing results in an empty
9219 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9222 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9223 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9224 and support both V2DF and V2DI modes.
9225 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9226 support both V2DF and V2DI modes.
9227 (general): Delete trailing whitespace from a few patterns.
9229 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9230 V2DF/V2DI interleave high/low builtins.
9232 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9235 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9236 interleave high/low functions.
9238 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9240 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9241 #pragma extern_prefix.
9243 2010-02-25 Jakub Jelinek <jakub@redhat.com>
9246 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9247 BLKmode, assert op0 is a MEM and just adjust its mode.
9250 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9251 if bitpos isn't multiple of mode's bitsize.
9253 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9255 * c.opt (-ftemplate-depth=): New.
9256 (-ftemplate-depth-): Deprecate.
9257 * optc-gen.awk: Handle -ftemplate-depth=.
9258 * opth-gen.awk: Likewise.
9259 * c-opts.c (c_common_handle_option): Likewise.
9260 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9262 2010-02-24 Jason Merrill <jason@redhat.com>
9264 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9266 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9268 * cfg.c (alloc_aux_for_block): Remove inline.
9269 (alloc_aux_for_edge): Likewise.
9271 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9273 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9275 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9277 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9278 * config/i386/sol2-gas.h: New file.
9279 * config.gcc (i[34567]86-*-solaris2*): Use it.
9281 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9284 * c-typeck.c (ep_convert_and_check): New.
9285 (build_conditional_expr): Use it.
9286 (build_binary_op): Likewise.
9288 2010-02-24 Jakub Jelinek <jakub@redhat.com>
9290 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9293 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9294 bounds even for -O+.
9295 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9296 expr needs to have DECL_NAME set.
9298 2010-02-24 Nick Clifton <nickc@redhat.com>
9300 * config/mep/mep.c: Include gimple.h.
9301 (mep_function_uses_sp): Delete unused function.
9302 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9303 parameters. Use unsigned integers to count args. Return a
9304 NULL_RTX instead of an error_mark_node. Toidy up formatting.
9306 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9309 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9310 greater or equal to nelt instead of 2 * nelt.
9311 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9314 2010-02-23 Jason Merrill <jason@redhat.com>
9317 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9318 in cfun->local_decls even if they have register types.
9321 * stor-layout.c (place_field): Don't warn about unnecessary
9322 DECL_PACKED if the type is packed.
9324 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9327 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9328 GOTOFF relocs, even when the base reg isn't pic pointer.
9330 2010-02-23 Michael Matz <matz@suse.de>
9333 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9334 (expand_gimple_basic_block): Generate and use debug temps if there
9335 are debug uses left after the last real use of TERed ssa names.
9336 Unlink debug immediate uses when they are expanded.
9338 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9341 * config/i386/i386.c (override_options): Reorganise to provide
9342 better error messages.
9344 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9347 * graphite-scop-detection.c (create_single_exit_edge): Move
9348 the call to find_single_exit_edge to....
9349 (create_sese_edges): ...here. Don't handle multiple edges
9350 exiting the function.
9351 (build_graphite_scops): Don't handle multiple edges
9352 exiting the function.
9354 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9357 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9358 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9360 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9363 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9365 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9368 * c-typeck.c (convert_arguments): Print declaration location.
9369 * c-common.c (validate_nargs): Rename as
9370 builtin_function_validate_nargs.
9371 (check_builtin_function_arguments): Update.
9373 2010-02-22 Richard Guenther <rguenther@suse.de>
9376 * tree-inline.c (declare_return_variable): Use the type of
9377 the call stmt lhs if available.
9379 2010-02-22 Duncan Sands <baldrick@free.fr>
9381 * passes.c (register_pass): Always consider all pass lists when
9382 ref_pass_instance_number is zero.
9384 2010-02-22 Richard Guenther <rguenther@suse.de>
9386 PR tree-optimization/42749
9387 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9388 parameter. Do arithmetic in the original type.
9389 (update_accumulator_with_ops): Likewise.
9390 (adjust_accumulator_values): Adjust.
9392 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9394 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9395 (QI to BLKmode splitter): New splitter.
9397 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
9399 * config/i386/i386.c (initial_ix86_tune_features): Turn on
9400 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9402 2010-02-22 Richard Guenther <rguenther@suse.de>
9404 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9406 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
9408 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9409 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9410 ($(T)crti.o, $(T)crtn.o): Remove rules.
9412 2010-02-21 Tobias Burnus <burnus@net-b.de>
9415 * doc/invoke.texi (-fassociative-math): Document that this
9416 option is automatically enabled for Fortran.
9418 2010-02-20 David S. Miller <davem@davemloft.net>
9420 * configure.ac: Test if linker and assembler properly support
9421 GOTDATA_OP relocations.
9422 * configure: Rebuild.
9423 * config.in: Likewise.
9424 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9425 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9426 (movsi_high_pic): Likewise.
9427 (movdi_lo_sum_pic): Likewise.
9428 (movdi_high_pic): Likewise.
9429 (movsi_pic_gotdata_op): New pattern.
9430 (movdi_pic_gotdata_op): Likewise.
9431 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9432 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9434 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
9437 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9438 attribute to ssemul.
9439 (xop_mulv2div2di3_high): Ditto.
9441 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9444 * c.opt (Wconversion-null): New option.
9445 * doc/invoke.texi (Wconversion-null): Document.
9447 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9449 * common.opt (Wlarger-than-): Add Undocumented.
9451 2010-02-19 Mike Stump <mikestump@comcast.net>
9453 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9455 2010-02-19 Jason Merrill <jason@redhat.com>
9458 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9459 * configure: Likewise.
9461 2010-02-20 Alan Modra <amodra@gmail.com>
9464 * cgraph.h (cgraph_make_decl_local): Declare.
9465 * cgraph.c (cgraph_make_decl_local): New function.
9466 (cgraph_make_node_local): Use it.
9467 * cgraphunit.c (cgraph_function_versioning): Likewise.
9468 * ipa.c (function_and_variable_visibility): Likewise.
9470 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9473 * except.c (sjlj_emit_function_enter): Don't call
9474 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9476 * rtl.h (add_reg_br_prob_note): Remove prototype.
9478 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9481 * c-common.c (conversion_warning): Remove widening conversions
9482 before checking the conversion of integers to reals.
9484 2010-02-19 Mike Stump <mikestump@comcast.net>
9487 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9490 * cgraphunit.c (process_function_and_variable_attributes): Check
9491 DECL_PRESERVE_P instead of looking up attribute "used".
9492 * ipa-pure-const.c (check_decl): Likewise.
9493 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9494 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9495 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9496 instead of attribute "used".
9497 * config/sol2-c.c (solaris_pragma_init): Likewise.
9498 (solaris_pragma_fini): Likewise.
9500 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9502 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9503 Use XCNEW instead of xcalloc.
9504 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9505 XNEW instead of xmalloc.
9506 (get_fields): Use XNEWVEC instead of xmalloc.
9509 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9510 populate vars array.
9511 (create_new_general_access): For debug stmts just reset value.
9512 (get_stmt_accesses): For accesses within debug stmts just record them
9513 using add_access_to_acc_sites instead of preventing the peeling or
9514 counting them as accesses.
9517 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9519 2010-02-19 Richard Guenther <rguenther@suse.de>
9521 PR tree-optimization/42916
9522 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9525 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
9527 * configure.ac: Replace all uses of changequote in macro arguments
9528 with proper quoting.
9530 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9533 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9535 2010-02-19 Richard Guenther <rguenther@suse.de>
9537 PR tree-optimization/42944
9538 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9539 test for aliasing with errno.
9541 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9544 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9545 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9546 * dojump.c: Include output.h.
9547 (inv): New inline function.
9548 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9549 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9550 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9551 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9552 argument, pass it down to other calls.
9553 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
9554 add REG_BR_PROB note to the conditional jump.
9555 * cfgexpand.c (add_reg_br_prob_note): Removed.
9556 (expand_gimple_cond): Don't call it, add the probability
9557 as last argument to jumpif_1/jumpifnot_1.
9558 * Makefile.in (dojump.o): Depend on output.h.
9559 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9561 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9562 * stmt.c (do_jump_if_equal): Likewise.
9563 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9564 * loop-unswitch.c (compare_and_jump_seq): Likewise.
9565 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9567 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9568 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9569 jumpifnot_1 callers.
9570 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9572 (store_expr): Adjust jumpifnot caller.
9573 (store_constructor): Adjust jumpif caller.
9576 * gimplify.c (gimple_boolify): For __builtin_expect call
9577 gimple_boolify also on its first argument.
9579 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
9581 * configure.ac (gnu-unique-object): Wrap regexps using [] in
9583 (__stack_chk_fail): Ditto. Remove quadrigraphs.
9584 * configure: Regenerated.
9586 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9588 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9589 lang_hooks.types_compatible_p instead of comptypes.
9591 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9593 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9594 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9595 if __prefer_thumb__ is defined.
9597 2010-02-18 Martin Jambor <mjambor@suse.cz>
9599 PR tree-optimization/43066
9600 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9601 array with zero-sized element type.
9603 2010-02-18 Jakub Jelinek <jakub@redhat.com>
9605 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9606 rtx, allocate struct var_loc_node here and return it to the
9607 caller, and only if it is actually needed.
9608 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9609 move it earlier and return immediately if it returns NULL.
9611 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
9613 * config/sparc/gas.h: New file. Restore
9614 TARGET_ASM_NAMED_SECTION to its ELF default.
9615 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9617 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9618 Likewise. Add ATTRIBUTE_UNUSED to prototype.
9619 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9620 after sparc/sysv4.h.
9622 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
9624 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9626 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
9628 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9629 patterns from predicated pattern.
9631 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
9634 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9635 for insn mnemonic suffix.
9637 2010-02-17 Richard Guenther <rguenther@suse.de>
9639 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9642 2010-02-17 Jakub Jelinek <jakub@redhat.com>
9645 * caller-save.c (save_call_clobbered_regs): If BB ends with
9646 a DEBUG_INSN, move any notes in between last real insn and the last
9647 DEBUG_INSN after the last DEBUG_INSN.
9649 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
9651 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9652 Fix return type. Fix argument type. Explain meaning of return value.
9654 2010-02-16 Richard Guenther <rguenther@suse.de>
9656 PR tree-optimization/41043
9657 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
9658 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9660 (vrp_visit_phi_node): ... but only for loop PHI nodes.
9662 2010-02-16 Ira Rosen <irar@il.ibm.com>
9664 PR tree-optimization/43074
9665 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9666 * tree-vect-loop.c (vect_analyze_loop_operations): Add
9667 vectorizable cycles in hybrid SLP check.
9668 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9670 2010-02-16 Richard Guenther <rguenther@suse.de>
9672 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9673 (true_dependence): If memrefs_conflict_p computes must-alias
9674 trust it. Move TBAA check after offset-based disambiguation.
9675 (canon_true_dependence): Likewise.
9677 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
9679 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9680 * doc/invoke.texi: Document it.
9681 * var-tracking.c: Include toplev.h and params.h.
9682 (vt_find_locations): Return bool indicating success. Compute
9683 hash sizes unconditionally. Check new parameter, report.
9684 (variable_tracking_main_1): Check vt_find_locations results and
9685 retry. Renamed from...
9686 (variable_tracking_main): ... this. New wrapper to preserve
9687 flag_var_tracking_assignments.
9688 * Makefile.in (var-tracking.o): Adjust dependencies.
9690 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
9691 Jakub Jelinek <jakub@redhat.com>
9694 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9695 if weak_import attribute is present.
9696 * config/darwin.c (machopic_select_section): Likewise.
9698 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
9700 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9701 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9702 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9703 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9705 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
9708 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9711 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9712 Rewrite text to refer to the names.
9714 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
9716 * config/i386/i386-builtin-types.def
9717 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9718 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9719 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9720 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9721 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9722 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9723 IX86_BUILTIN_VPERMIL2PS256.
9724 (MULTI_ARG_4_DF2_DI_I): Defined.
9725 (MULTI_ARG_4_DF2_DI_I1): Defined.
9726 (MULTI_ARG_4_SF2_SI_I): Defined.
9727 (MULTI_ARG_4_SF2_SI_I1): Defined.
9728 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9729 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9730 __builtin_ia32_vpermil2ps256.
9731 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9732 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9733 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
9734 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9735 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9736 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
9737 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9738 CODE_FOR_xop_vpermil2v8sf3.
9739 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9740 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9741 * config/i386/xopintrin.h (_mm_permute2_pd): New.
9742 (_mm256_permute2_pd): New.
9743 (_mm_permute2_ps): New.
9744 (_mm256_permute2_ps): New.
9746 2010-02-15 Nick Clifton <nickc@redhat.com>
9748 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9749 boolean parameters. Use emit_jump_insn when emitting a pop
9750 instruction containing a return insn.
9751 (push): Use 'true' rather than '1' as second parameter to F.
9752 (h8300_expand_prologue): Likewise.
9753 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9754 (h8300_expand_epilogue): Likewise.
9756 2010-02-15 Richard Guenther <rguenther@suse.de>
9759 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9762 2010-02-15 Nick Clifton <nickc@redhat.com>
9764 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9767 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
9769 * intl.c (fake_ngettext): New function.
9770 * intl.h (fake_ngettext): Declare.
9771 (ngettext): Define macro.
9772 * collect2.c (notice_translated): New function.
9773 (main): Use notice_translated and ngettext.
9774 * collect2.h (notice_translated): Declare.
9776 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
9778 * reorg.c (delete_computation): Comment fixes.
9779 * caller-save.c (setup_save_areas): Idem.
9780 * sel-sched-dump.c (dump_lv_set): Idem.
9783 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9785 * config/s390/s390.c (s390_sched_init): New function.
9786 (TARGET_SCHED_INIT): Target hook defined.
9788 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
9789 Jack Howarth <howarth@bromo.med.uc.edu>
9790 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9793 Partial revert of unintended change in fix for PR41605.
9794 * config/darwin.h: Fix typo.
9795 * config/darwin9.h: Same.
9797 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9799 * c-pch.c (pch_init): Clear v.
9801 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9804 * graphite-scop-detection.c (graphite_can_represent_scev): Call
9805 graphite_can_represent_init for MULT_EXPR.
9807 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9811 * graphite-sese-to-poly.c (remove_phi): New.
9812 (translate_scalar_reduction_to_array): Call remove_phi.
9814 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9817 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
9818 * graphite-clast-to-gimple.h (gloog): Update declaration.
9819 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
9820 * graphite-poly.h (struct poly_bb): Add missing comments.
9821 (struct scop): Add poly_scop_p field.
9823 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
9824 * graphite.c (graphite_transform_loops): Build the polyhedral
9825 representation for each scop before code generation.
9826 * sese.c (rename_variables_in_operand): Removed.
9827 (rename_variables_in_expr): Return the renamed expression.
9828 (rename_sese_parameters): New.
9829 * sese.h (rename_sese_parameters): Declared.
9831 2010-02-11 Richard Guenther <rguenther@suse.de>
9833 PR tree-optimization/42998
9834 * tree-ssa-pre.c (create_expression_by_pieces): Treat
9835 POINTER_PLUS_EXPR properly.
9837 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
9838 Changpeng Fang <changpeng.fang@amd.com>
9841 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
9842 the cost of an IV candidate when the IV is used in a test against zero.
9844 * gcc.dg/tree-ssa/ivopts-3.c: New.
9846 2010-02-11 Richard Guenther <rguenther@suse.de>
9849 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
9850 pointer-vs-decl case by swapping refs. Handle some cases
9851 of pointer-vs-decl disambiguations more conservatively.
9852 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
9853 to false after expanding.
9855 2010-02-11 Richard Guenther <rguenther@suse.de>
9858 * gcc.c (process_command): Handle LTO file@offset case more
9861 2010-02-11 Jakub Jelinek <jakub@redhat.com>
9863 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
9864 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
9866 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
9868 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
9869 if MEM's mode size isn't DWARF2_ADDR_SIZE.
9870 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
9871 Optimize eq/ne comparisons when both arguments are known to be
9873 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
9874 Don't mask operands unnecessarily if they are known to be already
9877 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
9879 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
9882 2010-02-10 Richard Guenther <rguenther@suse.de>
9884 PR tree-optimization/43017
9885 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
9886 for wrapping signed arithmetic.
9888 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9891 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
9892 if no debug info should be emitted for it.
9894 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
9896 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
9897 note when flag_exceptions is set.
9899 2010-02-10 Duncan Sands <baldrick@free.fr>
9901 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
9903 2010-02-10 Richard Guenther <rguenther@suse.de>
9906 * tree.c (get_unwidened): Handle constants.
9907 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
9909 2010-02-10 Martin Jambor <mjambor@suse.cz>
9912 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
9913 check for variable argument counts independently.
9915 2010-02-10 Christian Bruel <christian.bruel@st.com>
9918 * config/sh/sh.c (find_barrier): Increase length for non delayed
9919 conditional branches.
9921 2010-02-10 Christian Bruel <christian.bruel@st.com>
9923 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
9925 2010-02-10 Jakub Jelinek <jakub@redhat.com>
9927 * builtins.c (set_builtin_user_assembler_name): Also handle
9928 ffs if int is smaller than word.
9930 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
9933 * ira-conflicts.c (get_dup): Remove.
9934 (process_reg_shuffles): Add new parameter. Use it as an
9935 additional guard for copy generation.
9936 (add_insn_allocno_copies): Rewrite.
9938 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
9940 * common.opt (fsched2-use-traces): Preserved for backward
9942 * doc/invoke.texi: Remove the documentation about option
9943 -fsched2-use-traces.
9944 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
9945 flag_sched2_use_traces.
9946 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
9947 the backward compatibility flag section.
9949 2010-02-09 Richard Guenther <rguenther@suse.de>
9951 PR tree-optimization/43008
9952 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
9953 make HEAP variables initialized from global memory if they
9954 are not known builtin functions.
9955 (find_func_aliases): Adjust.
9957 2010-02-09 Richard Guenther <rguenther@suse.de>
9959 PR tree-optimization/43000
9960 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
9961 arithmetic manually.
9963 2010-02-08 Jakub Jelinek <jakub@redhat.com>
9965 PR tree-optimization/42931
9966 * tree-loop-linear.c (try_interchange_loops): Don't call
9967 double_int_mul if estimated_loop_iterations failed.
9969 2010-02-08 Martin Jambor <mjambor@suse.cz>
9972 * tree-sra.c (build_accesses_from_assign): Do not mark in
9973 should_scalarize_away_bitmap if stmt has volatile ops.
9974 (sra_modify_assign): Do not process assigns piecemeal if if stmt
9977 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
9979 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
9981 2010-02-07 Adam Nemet <adambnmet@gmail.com>
9983 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
9986 2010-02-07 Andrew Pinski <pinskia@gmail.com>
9989 * df-core.c (df_finish_pass): Change type of saved_flags to int.
9991 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
9994 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
9995 to unknown_dependence.
9996 (graphite_legal_transform_dr): Handle the unknown_dependence.
9997 (graphite_carried_dependence_level_k): Same.
9999 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10001 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10003 2010-02-07 Richard Guenther <rguenther@suse.de>
10005 PR middle-end/42991
10006 * expr.c (get_inner_reference): Always initialize *pbitsize.
10008 2010-02-07 Richard Guenther <rguenther@suse.de>
10010 PR middle-end/42956
10011 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10012 new ARRAY_REFs on variable size element or minimal index arrays.
10014 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10015 gimple_fold_indirect_ref.
10017 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
10020 * arm.c (arm_override_options): Just return if the user has specified
10021 an invalid fpu name.
10023 2010-02-03 Jason Merrill <jason@redhat.com>
10026 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10027 i386_pe_maybe_record_exported_symbol.
10029 2010-02-05 Steve Ellcey <sje@cup.hp.com>
10032 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10033 (pa_delegitimize_address): New function.
10035 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
10037 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10038 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10040 2010-02-05 Richard Guenther <rguenther@suse.de>
10043 * lto-streamer-in.c (get_resolution): Deal with references
10044 to undefined functions.
10046 2010-02-05 Richard Guenther <rguenther@suse.de>
10048 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10049 (fold_const_aggregate_ref): Likewise.
10050 (ccp_fold_stmt): Substitute loads.
10051 (maybe_fold_reference): Verify types before substituting.
10053 (fold_gimple_assign): Unshare properly.
10054 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10056 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
10058 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10059 for rs6000_gen_cell_microcode.
10061 2010-02-04 Richard Guenther <rguenther@suse.de>
10063 PR rtl-optimization/42952
10064 * dse.c (const_or_frame_p): Remove MEM handling.
10066 2010-02-04 Nick Clifton <nickc@redhat.com>
10068 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10069 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10070 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10071 (mn10300_asm_output_mi_thunk): New function.
10072 (mn10300_can_output_mu_thunk): New function.
10073 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10074 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
10075 (FUNCTION_ARG): Delete incorrect comment.
10077 2010-02-03 Jason Merrill <jason@redhat.com>
10080 * fold-const.c (operand_equal_p): Handle erroneous types.
10082 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10084 * config/h8300/h8300.md (can_delay): Fix attibute condition.
10086 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
10088 PR rtl-optimization/42941
10089 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10092 2010-02-03 Jason Merrill <jason@redhat.com>
10095 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10097 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10100 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10101 (cselib_reset_table): Renamed from...
10102 (cselib_reset_table_with_next_value): ... this.
10103 (cselib_get_next_uid): Renamed from...
10104 (cselib_get_next_unknown_value): ... this.
10105 * cselib.c (next_uid): Renamed from...
10106 (next_unknown_value): ... this.
10107 (cselib_clear_table): Adjust.
10108 (cselib_reset_table): Adjust. Renamed from...
10109 (cselib_reset_table_with_next_value): ... this.
10110 (cselib_get_next_uid): Adjust. Renamed from...
10111 (cselib_get_next_unknown_value): ... this.
10112 (get_value_hash): Use hash.
10113 (cselib_hash_rtx): Likewise.
10114 (new_cselib_val): Adjust. Set and dump uid.
10115 (cselib_lookup_mem): Pass next_uid as hash.
10116 (cselib_subst_to_values): Likewise.
10117 (cselib_log_lookup): Dump uid.
10118 (cselib_lookup): Pass next_uid as hash. Adjust.
10119 (cselib_process_insn): Adjust.
10120 (cselib_init): Initialize next_uid.
10121 (cselib_finish): Adjust.
10122 (dump_cselib_table): Likewise.
10123 * dse.c (canon_address): Dump value uid.
10124 * print-rtl.c (print_rtx): Print value uid.
10125 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10127 (dv_uid): New function, sort of renamed from...
10128 (dv_htab_hash): ... this, reimplemented in terms of it and...
10129 (dv_uid2hash): ... this. New.
10130 (variable_htab_eq): Drop excess assertions.
10131 (tie_break_pointers): Removed.
10132 (canon_value_cmp): Compare uids.
10133 (variable_post_merge_New_vals): Print uids.
10134 (vt_add_function_parameters): Adjust.
10135 (vt_initialize): Reset table. Adjust.
10137 2010-02-03 Richard Guenther <rguenther@suse.de>
10139 PR tree-optimization/42944
10140 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10141 (call_may_clobber_ref_p_1): Likewise. Properly handle
10142 malloc and calloc clobbering errno.
10144 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10146 * doc/invoke.texi: Fix name of sched1 dump.
10148 * opts.c (decode_options): Set flag_tree_switch_conversion
10149 only conditionally on optimize >= 2.
10151 * gcse.c: Assorted comment fixes in pass description.
10153 2010-02-03 Anthony Green <green@moxielogic.com>
10155 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10156 nop padding in order to maintain alignment of storage location of
10157 target function address.
10158 (moxie_trampoline_init): Store target function address at newly
10160 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10162 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10164 2010-02-03 Richard Guenther <rguenther@suse.de>
10166 PR middle-end/42927
10167 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10169 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10171 * config.gcc: Reenable check for obsolete targets.
10172 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10173 mips-sgi-irix6.[0-4]*.
10175 2010-02-02 Nick Clifton <nickc@redhat.com>
10177 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10178 constant size of 4 as being the same as 0.
10179 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10180 can take values in the range 0..4.
10182 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
10185 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10186 as _darwin10_Unwind_FindEnclosingFunction().
10187 * libgcc-libsystem.ver: New.
10189 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
10192 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10193 implicitly set registers.
10195 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
10197 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10198 (arm_override_options): Allow automatic selection of the thread
10199 pointer register if thumb2.
10200 (legitimize_pic_address): Improve code sequences for Thumb2.
10201 (arm_call_tls_get_addr): Likewise.
10202 (legitimize_tls_address): Likewise.
10203 * arm.md (pic_load_addr_arm): Delete. Replace with ...
10204 (pic_load_addr_32bit): ... this. New named pattern.
10205 * thumb2.md (pic_load_addr_thumb2): Delete.
10206 (pic_load_dot_plus_four): Delete.
10207 (tls_load_dot_plus_four): New named pattern.
10209 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10212 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10213 Document fix for TLS bug.
10215 2010-01-31 Richard Guenther <rguenther@suse.de>
10217 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10218 conservatively correct.
10220 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10224 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10226 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10228 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10230 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10232 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
10234 * config.gcc: Adjust order of makefile fragments for mingw targets.
10236 2010-01-31 Richard Guenther <rguenther@suse.de>
10238 PR middle-end/42898
10239 * gimplify.c (gimplify_init_constructor): For volatile LHS
10240 initialize a temporary.
10242 2010-01-31 Matthias Klose <doko@ubuntu.com>
10244 * configure.ac: Fix __stack_chk_fail check for cross builds configured
10246 * configure: Regenerate.
10248 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
10250 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10251 the same alias set and their sizes different constantness.
10252 (aliasing_component_refs_p): Revert 2009-10-24 change.
10254 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10256 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10259 2010-01-29 Richard Guenther <rguenther@suse.de>
10261 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10262 Assert we successfully updated the call.
10264 2010-01-29 Jakub Jelinek <jakub@redhat.com>
10266 PR rtl-optimization/42889
10267 * df.h (df_set_bb_dirty_nonlr): New prototype.
10268 * df-core.c (df_set_bb_dirty_nonlr): New function.
10269 * df-scan.c (df_insn_rescan): Call it instead of
10270 df_set_bb_dirty for DEBUG_INSNs.
10272 2010-01-29 Richard Guenther <rguenther@suse.de>
10274 PR middle-end/37448
10275 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10276 quadratic behavior in most cases.
10278 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
10281 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10282 in the call to gen_x86_movsicc_0_m1.
10284 2010-01-28 Richard Guenther <rguenther@suse.de>
10286 PR tree-optimization/42871
10287 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10289 2010-01-28 Richard Guenther <rguenther@suse.de>
10291 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10292 into call arguments.
10294 2010-01-28 Richard Guenther <rguenther@suse.de>
10296 PR middle-end/42883
10297 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10298 the forwarder if the destination is an EH landing pad.
10300 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
10302 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10303 block list passed to gimple_duplicate_sese_tail.
10304 (parallelize_loops): Avoid parallelization when the function
10305 has_nonlocal_label.
10306 Avoid parallelization when the preheader is IRREDUCIBLE.
10307 Try to optimize when estimated_loop_iterations_int is unresolved.
10308 Add the loop's location to the dump file.
10309 * tree-cfg.c (add_phi_args_after_redirect): Remove.
10310 (gimple_duplicate_sese_tail): Remove the check for the latch.
10311 Redirect nexits to the exit block.
10312 Remove handling of the incoming edges to the latch.
10313 Redirect the backedge from the copied latch to the exit bb.
10315 2010-01-28 Michael Matz <matz@suse.de>
10318 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10319 Wrap force_reg into a sequence, emit it before user.
10321 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
10323 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10325 (arm_legacy_rev): Likewise.
10326 (thumb_legacy_rev): Likewise.
10328 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10330 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10331 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
10332 on MEM's address failed, try avoid_constant_pool_reference and
10333 recurse if it returned something different.
10334 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10335 address, try avoid_constant_pool_reference and recurse if it
10336 returned something different.
10337 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10338 address and avoid_constant_pool_reference returned something
10339 different, don't set have_address.
10341 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
10344 * var-tracking.c (val_store): Add modified argument, obey it.
10346 (count_uses): Move down logging of main.
10347 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10348 don't need resolution.
10349 (emit_notes_in_bb): Likewise.
10351 2010-01-27 Richard Guenther <rguenther@suse.de>
10353 PR middle-end/42878
10354 * tree-inline.c (remap_decl): Delay remapping of SSA name
10355 default definitions until we need them.
10357 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10359 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10360 (rs6000_delegitimize_address): New function.
10362 * config/s390/s390.c (s390_delegitimize_address): Call
10363 delegitimize_mem_from_attrs.
10365 PR middle-end/42874
10366 * tree-inline.c (cannot_copy_type_1): Removed.
10367 (copy_forbidden): Don't forbid copying of functions containing
10368 records/unions with variable length fields.
10370 2010-01-27 Christian Bruel <christian.bruel@st.com>
10374 * config/sh/sh.c (find_barrier): Increase length for non delayed
10375 conditional branches.
10377 2010-01-27 Matthias Klose <doko@ubuntu.com>
10379 * configure.ac (gnu-unique-object): Fix ldd version check.
10380 * configure: Regenerate.
10382 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10384 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10386 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10387 Test for HAVE_GNU_AS value.
10389 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10391 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10392 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10393 INT64_TYPE): Define.
10394 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10395 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10396 INT_LEAST64_TYPE): Define.
10397 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10398 UINT_LEAST64_TYPE): Define.
10399 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10400 INT_FAST64_TYPE): Define.
10401 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10402 UINT_FAST64_TYPE): Define.
10403 (INTMAX_TYPE, UINTMAX_TYPE): Define.
10404 (INTPTR_TYPE, UINTPTR_TYPE): Define.
10405 (SIG_ATOMIC_TYPE): Define.
10407 2010-01-26 Richard Guenther <rguenther@suse.de>
10409 * df-scan.c (df_scan_set_bb_info): Remove assert.
10410 (df_insn_rescan_debug_internal): Merge asserts.
10411 (df_install_ref): Likewise.
10412 (df_mark_reg): Use bitmap_set_range.
10413 (df_hard_reg_used_p): Remove assert.
10414 (df_hard_reg_used_count): Likewise.
10416 2010-01-26 Richard Guenther <rguenther@suse.de>
10418 PR rtl-optimization/42685
10419 * web.c (web_main): Ignore DEBUG_INSNs.
10421 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
10423 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10425 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10426 Fix types of fndecl and arglist parameters.
10428 2010-01-26 Richard Guenther <rguenther@suse.de>
10430 PR middle-end/42806
10431 * tree-eh.c (unsplit_eh): Skip debug insns.
10433 2010-01-26 Richard Guenther <rguenther@suse.de>
10435 PR tree-optimization/42250
10436 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10438 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10441 * omp-low.c (expand_omp_sections): Only use single_pred if
10442 l2_bb is single_pred_p.
10444 2010-01-25 Christian Bruel <christian.bruel@st.com>
10447 * config/sh/sh.c (find_barrier): Increase length for non delayed
10448 conditional branches.
10449 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10451 2010-01-24 David S. Miller <davem@davemloft.net>
10453 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10454 define if not using GAS.
10455 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10456 Likewise. Delete SECTION_MERGE code, which is only applicable
10459 2010-01-24 Mark Mitchell <mark@codesourcery.com>
10462 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10463 mangling of va_list in system headers.
10465 2010-01-23 Toon Moene <toon@moene.org>
10467 * tree-predcom.c (combine_chains): Return NULL, not false.
10469 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
10471 * tree-loop-distribution.c (distribute_loop): Fix declaration and
10472 initialization of variable res to agree with return type.
10474 2010-01-22 Steve Ellcey <sje@cup.hp.com>
10476 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10477 * tree-sra.c: Add include of expr.h.
10479 2010-01-22 Jakub Jelinek <jakub@redhat.com>
10481 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10482 insert the debug stmt on the single non-EH edge from the stmt.
10484 2010-01-22 Richard Henderson <rth@redhat.com>
10487 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10488 the RHS until after generate_subtree_copies has insertted its
10489 code before the current statement.
10491 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
10493 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10495 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10497 2010-01-21 Martin Jambor <mjambor@suse.cz>
10499 PR tree-optimization/42585
10500 * tree-sra.c (struct access): New field grp_total_scalarization.
10501 (dump_access): Dump the new field.
10502 (should_scalarize_away_bitmap): New variable.
10503 (cannot_scalarize_away_bitmap): Likewise.
10504 (sra_initialize): Allocate new bitmaps.
10505 (sra_deinitialize): Free new bitmaps.
10506 (create_access_1): New function.
10507 (create_access): Parts moved to create_access_1.
10508 (type_consists_of_records_p): New function.
10509 (completely_scalarize_record): Likewise.
10510 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10511 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10512 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10514 (analyze_all_variable_accesses): Completely scalarize small eligible
10517 2010-01-21 Martin Jambor <mjambor@suse.cz>
10519 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10521 2010-01-21 Andrew Haley <aph@redhat.com>
10523 * gcc.c (process_command): Move lang_specific_driver before
10524 setting cc_libexec_prefix.
10526 2010-01-21 Richard Guenther <rguenther@suse.de>
10528 PR middle-end/19988
10529 * fold-const.c (negate_expr_p): Pretend only negative
10530 real constants are easily negatable.
10532 2010-01-20 Janis Johnson <janis187@us.ibm.com>
10533 Jason Merrill <jason@redhat.com>
10535 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10536 (TYPE_TRANSPARENT_AGGR): this, for union and record.
10537 * calls.c (initialize argument_information): Handle it.
10538 * c-common.c (handle_transparent_union_attribute): Use new name.
10539 * c-decl.c (finish_struct): Ditto.
10540 * c-typeck.c (type_lists_compatible_p): Ditto.
10541 (convert_for_assignment): Use new name and also handle record.
10542 * function.c (aggregate_value_p): Handle it.
10543 (pass_by_reference): Ditto.
10544 (assign_parm_data_types): Ditto.
10545 * print-tree.c (print_node): Ditto.
10546 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10547 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10548 * tree.c (first_field): New fn.
10550 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
10553 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10554 even when linking statically, for now.
10556 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10559 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10560 without a cselib val.
10561 (count_uses): Accept MO_VAL_SET with no val on stores.
10562 (add_stores): Likewise.
10564 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10566 * var-tracking.c (check_value_val): Add a compile time assertion.
10567 (dv_is_decl_p): Simplify.
10568 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10569 gcc_assert if ENABLE_CHECKING.
10571 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10574 * var-tracking.c: Include tree-flow.h.
10575 (mem_dies_at_call): New.
10576 (dataflow_set_preserve_mem_locs): Use it.
10577 (dataflow_set_remove_mem_locs): Likewise.
10578 (dump_var): Renamed from dump_variable. Adjust all callers.
10579 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
10580 * Makefile.in (var-tracking.o): Adjust deps.
10582 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
10584 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10586 2010-01-20 Richard Guenther <rguenther@suse.de>
10588 PR tree-optimization/42717
10589 * tree-ssa-dce.c (get_live_post_dom): Remove.
10590 (forward_edge_to_pdom): Take an arbitrary edge to copy
10591 degenerate PHI args from.
10592 (remove_dead_stmt): Use the first post-dominator even if it
10593 does not contain live statements as redirection destination.
10595 2010-01-20 Richard Guenther <rguenther@suse.de>
10597 * tree-inline.c (estimate_num_insns): Handle EH builtins.
10599 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10601 * sel-sched.c (create_speculation_check): Remove set but not used
10603 (try_transformation_cache): Remove set but not used variable ds.
10604 (calculate_privileged_insns): Remove set but not used variables
10605 cur_insn and min_spec_insn.
10606 (find_best_expr): Remove set but not used variable avail_n.
10607 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10609 * cgraphunit.c (assemble_thunk): Remove set but not used variable
10611 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10612 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10613 new_scop_exit_edge.
10615 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
10618 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10619 cpu types. Add support for *-sse3 cpu types.
10620 (x86_64-*-*): Ditto.
10622 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10624 PR middle-end/42803
10625 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10626 argument, call initializer_constant_valid_p_1 instead of
10627 initializer_constant_valid_p, pass CACHE to it, return NULL
10628 immediately if first call returns NULL.
10629 (initializer_constant_valid_p_1): New function.
10630 (initializer_constant_valid_p): Use it.
10632 2010-01-20 Thomas Quinot <quinot@adacore.com>
10634 * tree.def (PLACEHOLDER_EXPR): Fix comment.
10636 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10638 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10639 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10640 (loc_list_from_tree): Don't handle unsigned division. Handle
10641 signed modulo using DW_OP_{over,over,div,mul,minus}.
10642 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10643 modulo instead of signed.
10645 2010-01-20 DJ Delorie <dj@redhat.com>
10647 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10649 (h8300_emit_stack_adjustment): Propogate it.
10651 (h8300_expand_prologue): Likewise.
10652 (h8300_expand_epilogue): Likewise.
10654 2010-01-19 Michael Matz <matz@suse.de>
10656 PR tree-optimization/41783
10657 * tree-data-ref.c (toplevel): Include flags.h.
10658 (dump_data_dependence_relation): Also dump the inputs if the
10659 result will be unknown.
10660 (split_constant_offset_1): Look through some conversions.
10661 * tree-predcom.c (determine_roots_comp): Restart a new chain if
10662 the offset from last element is too large.
10663 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10664 (reassociate_to_the_same_stmt): Handle vector registers.
10665 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10666 (e.g. conversions).
10667 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10668 wide_prolog_niters argument, emit widening instructions.
10669 (vect_do_peeling_for_alignment): Adjust caller, use widened
10670 variant of the iteration cound.
10671 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10673 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10676 * config/arm/neon-testgen.m (emit_automatics): New parameter
10677 features. Adjust for Fixed_return_reg feature.
10678 (test_intrinsic): Call emit_automatics with new feature.
10679 * config/arm/neon.ml: Update copyright years.
10680 (features): New Fixed_return_reg feature.
10681 (ops): Update feature for Vget_low.
10683 2010-01-19 Jakub Jelinek <jakub@redhat.com>
10685 PR tree-optimization/42719
10686 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10690 * fwprop.c (all_uses_available_at): Return false if def_set dest
10691 is a REG that is used in def_insn.
10693 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
10695 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10697 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10698 Add argument names.
10700 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10702 * target.h (struct gcc_target) <secondary_reload>: Change type
10703 of last argument to secondary_reload_info *.
10705 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
10708 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
10709 memory references with unaligned offsets. Remove CQImode handling.
10710 (unaligned_memory_operand): Return 1 for memory references with
10711 unaligned offsets. Remove CQImode handling.
10713 2010-01-18 Richard Guenther <rguenther@suse.de>
10715 PR middle-end/39954
10716 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10719 2010-01-18 Richard Guenther <rguenther@suse.de>
10721 PR tree-optimization/42781
10722 * tree-ssa-structalias.c (find_what_var_points_to): Skip
10723 restrict processing only if the original variable was artificial.
10725 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
10727 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10728 find number of popped argument bytes.
10730 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10731 Fix the text that describes the return value for invalid insns.
10733 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
10735 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10736 Clarify what 'cost of the -dependence' is. Fix quoting.
10738 * toplev.c (default_get_pch_validity): Rename argument to "sz".
10739 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10741 2010-01-17 Jakub Jelinek <jakub@redhat.com>
10743 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10744 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10746 2010-01-17 Richard Guenther <rguenther@suse.de>
10748 PR middle-end/42248
10749 * function.c (split_complex_args): Take a VEC to modify.
10750 (assign_parms_augmented_arg_list): Build a VEC instead of
10751 a chain of PARM_DECLs.
10752 (assign_parms_unsplit_complex): Take a VEC of arguments.
10753 Do not fixup unmodified parms.
10754 (assign_parms): Deal with the VEC.
10755 (gimplify_parameters): Likewise.
10757 2010-01-17 Richard Guenther <rguenther@suse.de>
10759 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10760 node existence check.
10761 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10762 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10763 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10764 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10765 (gimple_execute_on_growing_pred): Likewise.
10767 2010-01-17 Richard Guenther <rguenther@suse.de>
10769 PR tree-optimization/42773
10770 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10771 (compute_antic_aux): Likewise.
10772 (compute_partial_antic_aux): Likewise.
10774 2010-01-17 Jie Zhang <jie.zhang@analog.com>
10777 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10780 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
10782 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
10785 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
10786 Fix markup for strict argument.
10788 (TARGET_SCHED_REORDER2): Fix argument types.
10790 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
10791 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
10793 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
10794 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
10796 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
10799 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
10800 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
10801 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
10802 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
10803 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
10805 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
10807 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
10809 (TARGET_ASM_RELOC_RW_MASK): Add return type.
10810 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
10812 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
10814 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
10817 (TARGET_ASM_NAMED_SECTION): Fix argument list.
10819 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
10820 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
10822 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
10824 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
10826 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
10827 referring to it. Fix language.
10829 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
10831 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
10833 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
10835 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
10837 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
10838 '@var{stream}. Remove stray 'and'.
10840 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
10842 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
10844 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
10846 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
10847 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
10849 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
10850 Fix description of return value.
10851 Rename argument "sz" to "len."
10853 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
10854 Clarify meaning of 'true' return value.
10856 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
10858 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
10859 rep_mode versus mode_rep.
10861 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
10863 (TARGET_BUILTIN_DECL): Fix name.
10865 (TARGET_COMMUTATIVE_P): Fix type of first argument.
10867 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
10869 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
10871 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
10873 (TARGET_RELAXED_ORDERING): Use @deftypevr.
10875 (TARGET_GET_DRAP_RTX): Note that this is a hook.
10878 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
10879 Rename argument tm_fn to md_fn.
10881 (TARGET_OPTION_PRINT): Fix argument list.
10883 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
10886 * config/i386/i386.c (ix86_fixup_binary_operands):
10887 Revert FMA4 fixup of operands.
10889 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10892 * Makefile.in (write_entries_to_file, install-plugin):
10893 Use \012 instead of \n with tr.
10895 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
10897 * configure.ac (HAVE_AS_REF): New C macro.
10898 * configure: Regenerate.
10899 * config.in: Likewise.
10900 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
10902 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
10905 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
10907 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
10909 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
10911 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
10913 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
10915 (TARGET_IN_SMALL_DATA_P): Fix argument type.
10917 (TARGET_BINDS_LOCAL_P): Fix argument type.
10919 (TARGET_ASM_FILE_END): Use prototype.
10921 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
10923 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
10925 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
10927 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
10929 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
10930 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
10932 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
10933 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
10935 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
10936 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
10937 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
10938 (TARGET_ADDR_SPACE_CONVERT): Likewise.
10940 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
10942 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
10944 (TARGET_INIT_BUILTINS): Use prototype.
10946 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
10947 Put 'const char *' in braces. Fix parameter types.
10948 (TARGET_INVALID_CONVERSION): Fix parameter types.
10949 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
10950 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
10952 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
10955 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
10957 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
10959 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
10961 * doc/tm.texi (TARGET_HELP): Fix return type.
10963 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
10964 in braces. Fix argument types.
10966 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
10968 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
10970 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
10972 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
10973 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
10975 (TARGET_MANGLE_TYPE): Fix argument types.
10977 (TARGET_IRA_COVER_CLASSES): Use prototype.
10979 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
10981 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
10983 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
10985 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
10987 (TARGET_CALLEE_COPIES): Fix argument types.
10989 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
10991 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
10993 (TARGET_FUNCTION_VALUE): Fix argument types.
10995 (TARGET_RETURN_IN_MSB): Fix argument type.
10997 (TARGET_RETURN_IN_MEMORY): Fix argument types.
10999 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11001 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11003 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11004 agree with return type.
11006 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11008 2010-01-15 Jing Yu <jingyu@google.com>
11010 PR rtl-optimization/42691
11011 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11012 a pseudo to a constant and are merged, and adjust comments.
11014 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
11016 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11018 2010-01-15 Richard Guenther <rguenther@suse.de>
11020 PR middle-end/42739
11021 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11022 labels of computed or non-local gotos to the destination.
11023 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11024 landing pad label is the first label.
11026 2010-01-15 Richard Guenther <rguenther@suse.de>
11028 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11030 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11033 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11034 to allow generation of the xssqrtdp instruction on power7.
11035 (sqrtdf2_fpr): Ditto.
11037 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11039 PR middle-end/42674
11040 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11041 functions with noreturn attribute.
11044 * varasm.c (declare_weak): Add weak attribute to decl if it
11045 doesn't have one already.
11046 (assemble_external): Only add decls to weak_decls if they also
11047 have weak attribute.
11049 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
11051 * var-tracking.c (var_reg_delete): Don't delete the association
11052 between REGs and values or one-part variables if the register
11055 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11058 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11059 because its first operand is a non-localized variable.
11061 2010-01-14 Martin Jambor <mjambor@suse.cz>
11063 PR tree-optimization/42706
11064 * tree-sra.c (encountered_recursive_call): New variable.
11065 (encountered_unchangable_recursive_call): Likewise.
11066 (sra_initialize): Initialize both new variables.
11067 (callsite_has_enough_arguments_p): New function.
11068 (scan_function): Call decl and flags check only for IPA-SRA, check
11069 whether there is a recursive call and whether it has enough arguments.
11070 (all_callers_have_enough_arguments_p): New function.
11071 (convert_callers): Look for recursive calls only when
11072 encountered_recursive_call is set.
11073 (ipa_early_sra): Bail out either if
11074 !all_callers_have_enough_arguments_p or
11075 encountered_unchangable_recursive_call.
11077 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11079 * sel-sched.c: Add 2010 to copyright years.
11080 * sel-sched-ir.c: Likewise.
11081 * sel-sched-ir.h: Likewise.
11083 2010-01-14 Martin Jambor <mjambor@suse.cz>
11085 PR tree-optimization/42714
11086 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11087 constructors specially.
11089 2010-01-14 Andi Kleen <ak@linux.intel.com>
11091 * config/i386/drivers-i386.c (detect_caches_intel):
11092 Add l2sizekb parameter and fill in.
11093 (host_detect_local_cpu): Add l2sizekb, fill in.
11094 Add Atom small cache heuristic.
11096 2010-01-14 Andi Kleen <ak@linux.intel.com>
11098 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11099 Add level3 parameter and fill in.
11100 (detect_caches_intel): Handle level3 cache.
11102 2010-01-14 Andi Kleen <ak@linux.intel.com>
11104 * config/i386/drivers-i386.c (host_detect_local_cpu):
11105 Fix core duo detection.
11107 2010-01-14 Andi Kleen <ak@linux.intel.com>
11109 * config/i386/drivers-i386.c (host_detect_local_cpu):
11110 Fix Atom detection.
11112 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11114 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11115 (rs6000_variable_issue_1): this. Use...
11116 (rs6000_variable_issue): here. Reimplement. Print debug info.
11118 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11120 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11121 sel_restore_notes. Update all callers. Call reemit_notes
11124 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11126 PR rtl-optimization/42246
11127 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11130 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11132 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11133 all successors is the same as number of successors in current region.
11135 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11137 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11138 to rename is not separable. Otherwise check that its LHS is not NULL.
11140 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11142 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11144 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11146 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11147 available registers when failed to discover LHS register class.
11148 Fix indentation. Update comment.
11150 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11151 Alexander Monakov <amonakov@ispras.ru>
11153 PR rtl-optimization/42389
11154 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11156 (advance_state_on_fence): Likewise.
11157 (sel_target_adjust_priority): Print debug output only when
11158 sched_verbose >= 4, not 2.
11159 (get_expr_cost): Do not issue all unique insns on the next cycle.
11160 (fill_insns): Initialize can_issue_more from the value saved
11162 * sel-sched-ir.c (flist_add): New parameter issue_more.
11163 Init FENCE_ISSUE_MORE with it.
11164 (merge_fences): Likewise.
11165 (init_fences): Update call to flist_add.
11166 (add_to_fences, add_clean_fence_to_fences)
11167 (add_dirty_fence_to_fences): Likewise.
11168 (move_fence_to_fences): Update call to merge_fences.
11169 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11171 * sel-sched-ir.h (struct _fence): New field issue_more.
11172 (FENCE_ISSUE_MORE): New accessor macro.
11174 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11176 PR rtl-optimization/42388
11177 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11178 that have no predecessors nor successors. Do not call move_bb_info
11179 for empty blocks outside of current region.
11181 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11183 PR rtl-optimization/42294
11184 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11185 * sel-sched.c (move_exprs_to_boundary): Transitively add all
11186 originators' originators.
11188 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11190 PR rtl-optimization/39453
11191 PR rtl-optimization/42246
11192 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11194 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11196 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11197 Alexander Monakov <amonakov@ispras.ru>
11199 PR middle-end/42245
11200 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
11201 (maybe_tidy_empty_bb): ... here. Make static. Add new
11202 argument. Update all callers.
11203 (tidy_control_flow): ... and here. Recompute topological order
11204 of basic blocks in region if necessary.
11205 (sel_redirect_edge_and_branch): Change return type. Return true
11206 if topological order might have been invalidated.
11207 (purge_empty_blocks): Export and move from...
11208 * sel-sched.c (purge_empty_blocks): ... here.
11209 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11210 (maybe_tidy_empty_bb): Delete prototype.
11211 (purge_empty_blocks): Declare.
11213 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11215 PR rtl-optimization/42249
11216 * sel-sched.c (try_replace_dest_reg): When chosen register
11217 and original register is the same, do not bail out early, but
11218 still check all original insns for validity of replacing destination
11219 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11222 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11225 Port from no-undefined-overflow branch:
11226 2009-03-09 Richard Guenther <rguenther@suse.de>
11228 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11230 2010-01-14 Richard Guenther <rguenther@suse.de>
11233 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11235 2010-01-14 Ira Rosen <irar@il.ibm.com>
11237 PR tree-optimization/42709
11238 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11239 as scalar type in creation of constant vector operand.
11241 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11244 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11245 (check-parallel-%): Match `testsuite' directory component only
11248 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
11250 PR translation/39521
11251 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11254 2010-01-13 Richard Guenther <rguenther@suse.de>
11256 PR tree-optimization/42730
11257 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11260 2010-01-13 Steve Ellcey <sje@cup.hp.com>
11263 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11264 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11267 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
11269 * config/bfin/libgcc-bfin.ver: Regenerate based on current
11270 libgcc-std.ver. Add entries for ___smulsi3_highpart and
11271 ___umulsi3_highpart.
11273 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11274 rather than schedule_insns if the pass is enabled.
11276 2010-01-13 Martin Jambor <mjambor@suse.cz>
11278 PR tree-optimization/42704
11279 * tree-sra.c (sra_modify_assign): Do not delete assignments to
11282 2010-01-13 Martin Jambor <mjambor@suse.cz>
11284 PR tree-optimization/42703
11285 * tree-sra.c (analyze_access_subtree): Check that we can build a
11286 reference to the original data within the aggregate.
11288 2010-01-13 Richard Guenther <rguenther@suse.de>
11290 PR tree-optimization/42705
11291 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11293 2010-01-13 Richard Guenther <rguenther@suse.de>
11295 PR middle-end/42716
11296 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11298 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11301 * var-tracking.c (values_to_unmark): New variable.
11302 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11303 values_to_unmark vector. Moved body to...
11304 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11305 instead queue it into values_to_unmark vector.
11306 (vt_find_locations): Free values_to_unmark vector.
11308 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
11310 * config/s390/s390.c (override_options): Set
11311 default of max-pending-list-length to 256
11313 2010-01-13 Richard Guenther <rguenther@suse.de>
11316 * tree-pass.h (PROP_gimple_lcx): New.
11317 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11318 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11319 before the final cleanup_eh.
11320 (dump_properties): Dump PROP_gimple_lcx.
11321 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11322 (tree_lower_complex_O0): Remove.
11323 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11324 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
11325 tree_lower_complex, schedule TODO_update_ssa.
11326 * lto-streamer-out.c (output_function): Stream the functions
11328 * lto-streamer-in.c (input_function): Likewise.
11329 (lto_read_body): Do not override them here.
11331 2010-01-12 Joseph Myers <joseph@codesourcery.com>
11334 * c-typeck.c (build_c_cast): Fold value cast to union type before
11335 wrapping it in a CONSTRUCTOR.
11337 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11339 PR rtl-optimization/42699
11340 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11343 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11345 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11346 SUBTARGET_WARN_UNUSED_SPEC): Move ...
11347 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11348 SUBTARGET_WARN_UNUSED_SPEC): ... here
11349 * config/mips/iris5.h (LIBGCC_SPEC): Define.
11351 2010-01-12 Julian Brown <julian@codesourcery.com>
11353 * config/arm/neon-schedgen.ml (Utils): Don't try to
11354 open missing module.
11355 (find_with_result): New.
11357 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11360 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11361 sharing when canonicalizing ({lt,ge}u (plus a b) b).
11363 PR tree-optimization/42645
11364 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
11365 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11366 decl_map, set processing_debug_stmt to -1 and return name without
11369 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
11371 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11372 binutils version, and reword target configuration description.
11374 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11376 * config/avr/avr.h (LINKER_NAME): Remove.
11378 2010-01-11 Janis Johnson <janis187@us.ibm.com>
11381 * config/rs6000/rs6000.c (rs6000_override_options): On targets
11382 that support VSX, warn for -mno-altivec if vsx is not disabled,
11385 2010-01-11 Joseph Myers <joseph@codesourcery.com>
11386 Shujing Zhao <pearly.zhao@oracle.com>
11388 PR translation/42469
11389 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11390 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11391 character between option name and help text.
11392 * c.opt (imultilib): Likewise.
11394 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
11396 * lto-streamer-out.c (output_unreferenced_globals): Output static
11399 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
11401 PR rtl-optimization/42621
11402 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11403 optimizing for size.
11404 (duplicate_computed_gotos): Remove now-redundant check.
11406 2010-01-10 Steve Ellcey <sje@cup.hp.com>
11409 * configure.ac: Save and restore LDFLAGS and LIBS
11410 * configure: Regenerate.
11412 2010-01-10 Richard Guenther <rguenther@suse.de>
11414 PR middle-end/42667
11415 * builtins.c (fold_builtin_strlen): Add type argument and
11416 convert the resulting length to it.
11417 (fold_builtin_1): Adjust.
11419 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11421 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11422 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11424 (num_insns_constant_wide): Adjust for that change.
11426 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11429 * web.c (union_defs): Add used argument, to combine uses of
11430 uninitialized regs.
11431 (entry_register): Adjust type and tests of used argument.
11432 (web_main): Widen used for new use. Pass it to union_defs.
11433 * df.h (union_defs): Adjust prototype.
11435 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11438 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11439 uses in new incoming argument. Free body.
11440 (reset_debug_uses_in_loop): New.
11441 (analyze_insn_to_expand_var): Call the latter if the former found
11442 anything. Fix whitespace. Reject invalid dest overlaps before
11443 going through all insns in the loop.
11445 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11448 * haifa-sched.c (dying_use_p): Debug insns don't count.
11450 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11452 PR middle-end/42363
11453 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11454 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11455 (verify_gimple_call): Reject LHS in noreturn calls.
11457 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11461 * tree-vect-loop-manip.c (adjust_info): New type.
11462 (adjust_vec): New pointer to vector.
11463 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11464 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11465 (slpeel_update_phis_for_duplicate_loop): Use them.
11466 (slpeel_update_phi_nodes_for_guard1): Likewise.
11467 (slpeel_update_phi_nodes_for_guard2): Likewise.
11468 (slpeel_tree_peel_loop_to_edge): Likewise.
11469 (vect_update_ivs_after_vectorizer): Likewise.
11471 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11473 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11474 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11476 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11478 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11479 bogus uninitialized warning.
11481 2010-01-09 Richard Guenther <rguenther@suse.de>
11483 PR middle-end/42512
11484 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11485 the evolution is compatible with the initial condition.
11487 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11489 * gcc.c (process_command): Update copyright notice dates.
11490 * gcov.c (print_version): Likewise.
11491 * gcov-dump.c (print_version): Likewise.
11492 * mips-tfile.c (main): Likewise.
11493 * mips-tdump.c (main): Likewise.
11495 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11498 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11500 (rotlhi3_8): Delete.
11502 (rotlsi3_8): Delete.
11503 (rotlsi3_16): Delete.
11504 (rotlsi3_24): Delete.
11505 (rotl<mode>3): New.
11506 (*rotw<mode>3): New.
11507 (*rotb<mode>3): New.
11508 * config/avr/avr.c (avr_rotate_bytes): New function.
11509 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11511 2010-01-08 Steve Ellcey <sje@cup.hp.com>
11514 * configure.ac: Modify -rdynamic check.
11515 * configure: Regenerate.
11517 2010-01-08 DJ Delorie <dj@redhat.com>
11519 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11520 register popping order.
11522 2010-01-08 Richard Guenther <rguenther@suse.de>
11525 * c.opt (fsigned-char): Also let LTO handle this option.
11526 (funsigned-char): Likewise.
11528 2010-01-07 Richard Guenther <rguenther@suse.de>
11530 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11531 (gimple_op): Likewise.
11532 (gimple_op_ptr): Likewise.
11533 (gimple_assign_set_lhs): Remove gcc_assert.
11534 (gimple_assign_set_rhs1): Likewise.
11535 (gimple_assign_set_rhs2): Likewise.
11536 (gimple_call_set_lhs): Likewise.
11537 (gimple_call_set_fn): Likewise.
11538 (gimple_call_set_fndecl): Likewise.
11539 (gimple_call_fndecl): Likewise.
11540 (gimple_call_return_type): Likewise.
11541 (gimple_call_set_chain): Likewise.
11542 (gimple_call_num_args): Likewise.
11543 (gimple_call_set_arg): Likewise.
11544 (gimple_cond_set_code): Likewise.
11545 (gimple_cond_set_lhs): Likewise.
11546 (gimple_cond_set_rhs): Likewise.
11547 (gimple_cond_set_true_label): Likewise.
11548 (gimple_cond_set_false_label): Likewise.
11549 (gimple_label_set_label): Likewise.
11550 (gimple_goto_set_dest): Likewise.
11551 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11552 (gimple_debug_bind_get_value): Likewise.
11553 (gimple_debug_bind_get_value_ptr): Likewise.
11554 (gimple_debug_bind_set_var): Likewise.
11555 (gimple_debug_bind_set_value): Likewise.
11556 (gimple_debug_bind_reset_value): Likewise.
11557 (gimple_debug_bind_has_value_p): Likewise.
11558 (gimple_return_retval_ptr): Remove gcc_assert.
11559 (gimple_return_retval): Likewise.
11560 (gimple_return_set_retval): Likewise.
11561 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11562 (safe_referenced_var_iterator): Remove.
11563 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11564 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11565 (fill_referenced_var_vec): Remove.
11566 (first_readonly_imm_use): Remove redundant gcc_assert.
11567 (phi_arg_index_from_use): Combine gcc_asserts.
11568 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11569 (first_imm_use_stmt): Remove redundant gcc_assert.
11570 * tree-cfg.c (verify_gimple_call): Verify function and chain
11571 operands. Verify arguments.
11572 (verify_types_in_gimple_stmt): Verify condition code and labels.
11574 2010-01-07 Richard Guenther <rguenther@suse.de>
11576 PR tree-optimization/42641
11577 * sese.c (rename_map_elt_info): Use the SSA name version, do
11580 2010-01-07 Jakub Jelinek <jakub@redhat.com>
11582 PR tree-optimization/42625
11583 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11584 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11586 2010-01-07 Duncan Sands <baldrick@free.fr>
11588 * Makefile.in (PLUGIN_HEADERS): Add version.h.
11590 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
11593 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11594 note itself is not function_invariant_p.
11596 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
11598 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11599 Do not add the DF_NOTE problem.
11600 * store-motion.c (execute_rtl_store_motion): Likewise.
11602 2010-01-07 Martin Jambor <mjambor@suse.cz>
11604 PR tree-optimization/42157
11605 * tree-sra.c (compare_access_positions): Stabilize sort if both
11606 accesses have integer types, return zero immediately if they are the
11609 2010-01-06 Richard Henderson <rth@redhat.com>
11611 PR middle-end/41883
11612 * haifa-sched.c (add_to_note_list): Merge into ...
11613 (concat_note_lists): ... here, and ...
11614 (unlink_other_notes, rm_other_notes): Merge into...
11615 (remove_notes): ... here. Create REG_SAVE_NOTEs for
11616 NOTE_INSN_EPILOGUE_BEG.
11618 2010-01-06 Richard Guenther <rguenther@suse.de>
11620 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11621 not inline regular functions into always-inline functions.
11623 2010-01-06 Nick Clifton <nickc@redhat.com>
11625 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11626 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11628 (OVERRIDE_OPTIONS): Delete.
11629 (OPTIMIZATION_OPTIONS): Define.
11630 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11631 * config/rx/rx.c (rx_handle_option): Issue an error message if
11632 -mcpu=rx200 and -fpu are used together.
11633 (rx_set_optimization_options): New function. Issue an error
11634 message if an optimization attribute attempts to reset the FPU/
11635 math optimization pairing.
11636 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11637 * config/rx/rx.opt: Set the default to 32-bit doubles.
11638 * config/rx/t-rx: Add multilibs for -nofpu option.
11639 * doc/invoke.texi: Update documentation of RX options.
11641 2010-01-06 Richard Guenther <rguenther@suse.de>
11643 * tree-ssa-pre.c (name_to_id): New global.
11644 (alloc_expression_id): Simplify SSA name handling.
11645 (lookup_expression_id): Likewise.
11646 (init_pre): Zero name_to_id.
11647 (fini_pre): Free it.
11649 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
11651 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11653 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
11656 * config/i386/sse.md (smaxv2di3): New.
11657 (umaxv2di3): Likewise.
11658 (sminv2di3): Likewise.
11659 (uminv2di3): Likewise.
11661 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
11664 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11665 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11666 (legitimize_tls_address): Likewise.
11667 (sparc_tls_referenced_p): Likewise.
11668 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11669 and adjust calls to legitimize_pic_address.
11670 (legitimate_constant_p) Use sparc_tls_referenced_p.
11671 (legitimate_pic_operand_p): Likewise.
11672 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11673 (sparc_tls_symbol_ref_1): Delete.
11674 (sparc_tls_referenced_p): Make static, recognize specific patterns.
11675 (legitimize_tls_address): Make static, handle CONST patterns.
11676 (legitimize_pic_address): Make static, remove unused parameter and
11677 adjust recursive calls.
11678 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11679 and adjust call to legitimize_pic_address.
11680 (sparc_output_mi_thunk): Likewise.
11682 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
11683 H.J. Lu <hongjiu.lu@intel.com>
11686 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11687 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11688 operands to make them signed.
11691 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11694 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11695 GTU to GT for V4SI and V2DI.
11697 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11698 (umin<mode>3): Removed.
11700 (uminv4si3): Likewise.
11702 2010-01-05 Martin Jambor <mjambor@suse.cz>
11704 PR tree-optimization/42462
11705 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
11706 current_function_decl to helper functions and macros.
11708 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11711 * flags.h: Don't include real.h.
11712 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11713 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11714 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11715 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11716 * dominance.c: Update copyright.
11717 * gimple.c (walk_gimple_op): Remove inline.
11718 * tree-ssa-reassoc.c: Include real.h.
11719 * Makefile.in (FLAGS_H): Remove $(REAL_H).
11720 (tree-ssa-reassoc.o): Depend on $(REAL_H).
11722 2010-01-05 Nick Clifton <nickc@redhat.com>
11724 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11725 register to push into the stack frame when the accumulator has to
11726 be saved during interrupts.
11728 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
11730 * doc/invoke.texi: Remove the documentation about option
11731 -Wunreachable-code.
11732 * common.opt (Wunreachable-code): Preserved for backward
11734 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11735 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11736 the backward compatibility flag section.
11738 2010-01-05 Richard Guenther <rguenther@suse.de>
11740 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11742 2010-01-05 Jakub Jelinek <jakub@redhat.com>
11745 * cfgexpand.c (expand_one_var): Diagnose too large variables.
11747 PR tree-optimization/42508
11748 * tree-sra.c (convert_callers): Check for recursive call
11749 by comparing cgraph nodes instead of decls.
11750 (modify_function): Call ipa_modify_formal_parameters also
11751 on all same_body aliases.
11753 * cgraphunit.c (cgraph_materialize_all_clones): Compare
11754 cgraph nodes when checking for same_body aliases.
11756 2010-01-05 Richard Guenther <rguenther@suse.de>
11758 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11759 allocation and lookup.
11760 (get_or_alloc_expr_for_constant): Likewise.
11761 (phi_translate): Sink allocation.
11763 2010-01-04 Richard Guenther <rguenther@suse.de>
11765 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11766 a new entry only if needed.
11767 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11768 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11770 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11772 (phi_translate): Handle CONSTANTs early.
11774 2010-01-04 Martin Jambor <mjambor@suse.cz>
11776 PR tree-optimization/42398
11777 * tree-sra.c (struct access): Removed flag grp_different_types.
11778 (dump_access): Do not dump the removed flag.
11779 (sort_and_splice_var_accesses): Do not set the removed flag.
11780 (sra_modify_expr): Check for type compatibility directly.
11782 2010-01-04 Martin Jambor <mjambor@suse.cz>
11784 PR tree-optimization/42366
11785 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
11786 edges with variable number of parameters.
11787 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
11788 flag instead of asserting it.
11789 (ipa_read_node_info): Read uses_analysis_done flag.
11791 2010-01-04 Richard Guenther <rguenther@suse.de>
11793 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
11794 iterative_hash_* as intended.
11795 (vn_reference_compute_hash): Likewise. Simplify hashing
11797 (vn_reference_lookup_2): Likewise.
11798 (vn_nary_op_compute_hash): Likewise.
11799 (vn_phi_compute_hash): Likewise.
11800 (expressions_equal_p): Remove strange code.
11801 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
11802 (pre_expr_hash): Likewise. Simplify hashing SSA names.
11803 (bitmap_insert_into_set_1): Take value-id as parameter.
11804 (add_to_value): Pass it.
11805 (bitmap_insert_into_set): Likewise.
11806 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
11808 2010-01-04 Jakub Jelinek <jakub@redhat.com>
11811 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
11812 (do_self_spec): For switches with SWITCH_IGNORE set set also
11813 SWITCH_IGNORE_PERMANENTLY.
11814 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
11817 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
11819 * lto-streamer-out.c (output_unreferenced_globals): Output the full
11820 tree of an unreferenced global var.
11822 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11825 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11826 GTU to GT for V4SI and V2DI.
11828 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11829 (umin<mode>3): Removed.
11831 (uminv4si3): Likewise.
11833 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11836 * collect2.c (main): Turn on trace in collect2 if -v is passed
11839 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
11841 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
11842 description of expression operand.
11844 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
11846 * configure.ac: Add install-html to target_list for Make-hooks.
11847 * configure: Regenerate.
11848 * fortran/Make-lang.in (F95_HTMLFILES): New.
11849 (fortran.html): Use it.
11850 (fortran.install-html): New.
11851 * Makefile.in (install-html): Add lang.install-html.
11852 * java/Make-lang.in (JAVA_HTMLFILES): New.
11853 (java.html): Use it.
11854 (java.install-html): New.
11855 * objc/Make-lang.in (objc.install-html): New.
11856 * objcp/Make-lang.in (obj-c++.install-html): New.
11857 * cp/Make-lang.in (c++.install-html): New.
11858 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
11859 * lto/Make-lang.in (lto.install-html): New.
11861 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11864 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
11866 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
11868 PR rtl-optimization/41862
11869 * store-motion.c (store_killed_in_insn, compute_store_table,
11870 remove_reachable_equiv_notes, replace_store_insn,
11871 build_store_vectors): Ignore all DEBUG_INSNs.
11873 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
11876 * common.opt: Add dumpdir.
11878 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
11880 (option_map): Add --dumpdir.
11882 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
11884 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
11886 * opts.c (decode_options): Try dump_dir_name first if
11887 dump_base_name isn't an absolute path.
11888 (common_handle_option): Handle OPT_dumpdir.
11890 * toplev.c (dump_dir_name): New.
11891 (print_switch_values): Also ignore -dumpdir.
11893 * toplev.h (dump_dir_name): New.
11895 2010-01-03 Richard Guenther <rguenther@suse.de>
11897 PR tree-optimization/42589
11898 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
11899 double-word expansion of bswap32.
11901 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
11903 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
11904 with BLOCK_FOR_INSN.
11905 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
11906 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
11907 noce_process_if_block): Likewise.
11908 * gcse.c (compute_local_properties, insert_expr_in_table,
11909 insert_set_in_table, canon_list_insert, find_avail_set,
11910 pre_insert_copy_insn): Likewise.
11912 * basic-block.h (BLOCK_NUM): Move from here...
11913 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
11915 2010-01-03 Richard Guenther <rguenther@suse.de>
11917 PR tree-optimization/42438
11918 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
11919 contains_may_not_return_call flag.
11920 (BB_MAY_NOTRETURN): New.
11921 (valid_in_sets): Trapping nary operations are not valid
11922 in blocks that may not return.
11923 (insert_into_preds_of_block): Remove check for trapping expressions.
11924 (compute_avail): Compute also BB_MAY_NOTRETURN.
11926 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
11928 * doc/invoke.texi: Add 2010 to copyright years.
11930 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
11932 * config/sparc/sparc.c: Fix formatting nits.
11934 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11935 Alexander Monakov <amonakov@ispras.ru>
11937 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
11939 2010-01-02 Richard Guenther <rguenther@suse.de>
11941 PR middle-end/42577
11942 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
11943 (simplify_switch_using_ranges): Mark to be removed edges
11946 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11948 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11950 * collect2.c (scan_libraries): Add missing argument in call to
11953 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
11956 * config/alpha/predicates.md (aligned_memory_operand): Return false
11958 (unaligned_memory_operand): Return true for CQImode.
11959 * config/alpha/alpha.c (get_aligned_mem): Assert that location
11960 doesn not cross aligned SImode word boundary.
11962 2010-01-02 Anatoly Sokolov <aesok@post.ru>
11964 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
11966 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
11967 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
11969 2010-01-02 Richard Guenther <rguenther@suse.de>
11972 * toplev.c (compile_file): Emit LTO marker properly. Change
11973 it to __gnu_lto_v1.
11974 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
11976 2010-01-01 Richard Guenther <rguenther@suse.de>
11979 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
11981 2010-01-01 Richard Guenther <rguenther@suse.de>
11984 * c-decl.c (grokdeclarator): For zero-size arrays force
11985 structural equality checks as layout_type does.
11987 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11989 * builtins.c: Update copyright to 2010.
11991 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
11994 * lto-streamer-out.c (produce_asm): Revert the last change.
11995 (copy_function): Likewise.
11997 * lto-streamer.c (lto_get_section_name): Skip any leading
12000 2010-01-01 Richard Guenther <rguenther@suse.de>
12002 PR middle-end/42559
12003 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12007 Copyright (C) 2010 Free Software Foundation, Inc.
12009 Copying and distribution of this file, with or without modification,
12010 are permitted in any medium without royalty provided the copyright
12011 notice and this notice are preserved.