1 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * gthr-solaris.h: Remove.
4 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7 * config/sol2.opt (threads): Remove.
8 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads
10 (sparc*-*-solaris2*): Likewise.
11 * configure.ac (enable_threads): Enable solaris support.
12 * configure: Regenerate.
13 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove
15 * doc/install.texi (Configuration, --enable-threads=lib): Remove
18 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20 * config.gcc: Obsolete *-*-solaris2.8*.
21 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
27 reference. Solaris 8 perl works.
29 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32 * doc/install.texi (Prerequisites): Move jar etc. up.
33 Explain support library version requirements.
35 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38 * doc/install.texi (Prerequisites): Move Perl to build
39 requirements. Always necessary on Solaris 2 with Sun ld.
41 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
45 (Specific, i?86-*-solaris2.[89]): Likewise.
46 (Specific, i?86-*-solaris2.10): Likewise.
47 (Specific, mips-sgi-irix6): Likewise.
48 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
49 Update for binutils 2.21.
51 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
53 * configure.ac (gcc_cv_lto_plugin): Fix typo.
54 Allow -fuse-linker-plugin for non-default plugin linker.
55 * configure: Regenerate.
57 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
60 * gengtype.c (files_rules): Added rule for cp/parser.h.
62 2011-03-21 Jakub Jelinek <jakub@redhat.com>
65 * config/s390/s390.c (s390_delegitimize_address): Don't call
66 lowpart_subreg if orig_x has BLKmode.
68 2011-03-21 Kai Tietz <ktietz@redhat.com>
71 * doc/plugins.texi: Adjust documentation
72 for plugin register_callback.
73 * tree.h (attribute_spec): Add new member
74 affects_type_identity.
75 - Zitierten Text anzeigen -
76 * attribs.c (empty_attribute_table): Adjust
77 attribute_spec initializers.
78 * config/alpha/alpha.c: Likewise.
79 * config/arc/arc.c: Likewise.
80 * config/arm/arm.c: Likewise.
81 * config/avr/avr.c: Likewise.
82 * config/bfin/bfin.c: Likewise.
83 * config/crx/crx.c: Likewise.
84 * config/darwin.h: Likewise.
85 * config/h8300/h8300.c: Likewise.
86 * config/i386/cygming.h: Likewise.
87 * config/i386/i386.c: Likewise.
88 * config/ia64/ia64.c: Likewise.
89 * config/m32c/m32c.c: Likewise.
90 * config/m32r/m32r.c: Likewise.
91 * config/m68hc11/m68hc11.c: Likewise.
92 * config/m68k/m68k.c: Likewise.
93 * config/mcore/mcore.c: Likewise.
94 * config/mep/mep.c: Likewise.
95 * config/microblaze/microblaze.c: Likewise.
96 * config/mips/mips.c: Likewise.
97 * config/rs6000/rs6000.c: Likewise.
98 * config/rx/rx.c: Likewise.
99 * config/sh/sh.c: Likewise.
100 * config/sol2.h: Likewise.
101 * config/sparc/sparc.c: Likewise.
102 * config/spu/spu.c: Likewise.
103 * config/stormy16/stormy16.c: Likewise.
104 * config/v850/v850.c: Likewise.
106 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
108 * simplify-rtx.c (simplify_binary_operation_1): Handle
109 (xor (and A B) C) case when B and C are both constants.
111 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
113 * tree-dfa.c (add_referenced_var): Fix typo in comment.
115 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
118 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
120 2011-03-20 Jakub Jelinek <jakub@redhat.com>
122 PR rtl-optimization/48156
123 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
124 assume df and df_lr are not NULL.
126 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
129 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
130 between a call and its CALL_ARG_LOCATION note.
132 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
135 * config/sh/sh.c (find_barrier): Don't emit a constant pool
136 between a call and its corresponding CALL_ARG_LOCATION note.
138 2011-03-19 Anatoly Sokolov <aesok@post.ru>
140 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
141 instead of loop. Use HARD_REGISTER_NUM_P predicate.
142 * haifa-sched.c (setup_ref_regs): Ditto.
143 * caller-save.c (add_used_regs_1): Ditto.
144 * dse.c (look_for_hardregs): Ditto.
145 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
146 * sched-rgn.c (check_live_1): Ditto.
148 2011-03-18 Joseph Myers <joseph@codesourcery.com>
150 * c-decl.c (diagnose_mismatched_decls): Give an error for
151 redefining a typedef with variably modified type.
153 2011-03-18 Joseph Myers <joseph@codesourcery.com>
155 * c-decl.c (grokfield): Don't allow typedefs for structures or
156 unions with no tag by default.
157 * doc/extend.texi (Unnamed Fields): Update.
159 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
161 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
162 Rewrite using indirect functions.
164 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
165 (avx_vinsertf128<mode>): Ditto.
167 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
169 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
172 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
174 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
175 splitting between a call and its corresponding CALL_ARG_LOCATION
178 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
180 PR rtl-optimization/48170
181 * gcse.c (hoist_code): Remove bogus asserts.
183 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
185 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
186 computation for prologue/epilogue.
188 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190 * Makefile.in (check-consistency): Remove.
192 2011-03-18 Jakub Jelinek <jakub@redhat.com>
195 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
196 arange_table_in_use is 0, but either text_section_used or
197 cold_text_section_used is true. Don't call it if
198 !info_section_emitted.
200 2011-03-18 Anatoly Sokolov <aesok@post.ru>
202 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
203 FUNCTION_VALUE_REGNO_P): Remove.
204 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
206 * config/avr/avr.c (avr_ret_register): Make static inline.
207 (avr_function_value_regno_p): New function.
208 (avr_libcall_value): Make static. Add 'func' argument.
209 (avr_function_value): Make static. Rename 'func' argument to
210 'fn_decl_or_type', forward it to avr_libcall_value. Call
211 avr_ret_register function instead of RET_REGISTER macro.
212 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
214 2011-03-18 Jason Merrill <jason@redhat.com>
217 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
219 2011-03-18 Richard Guenther <rguenther@suse.de>
221 * doc/install.texi (--enable-gold): Remove.
222 (--with-plugin-ld): Document.
223 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
225 2011-03-18 Andrew Pinski <pinskia@gmail.com>
228 * expr.c (optimize_bitfield_assignment_op): Revamp to work
229 again after expansion changes.
231 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
233 * combine.c (try_combine): Do simplification only call of
234 subst() on i2 even when i1 is present. Update comments.
236 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
238 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
239 and UNSPEC_PCREL_SYMOFF.
241 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
243 * config/s390/s390.md: Use define_c_enum for the unspec constant
246 2011-03-18 Richard Henderson <rth@redhat.com>
247 Jakub Jelinek <jakub@redhat.com>
250 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
251 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
253 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
256 * combine.c (cant_combine_insn_p): Don't check zero/sign
257 extended hard registers.
259 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
262 * combine.c (cant_combine_insn_p): Check zero/sign extended
265 2011-03-17 Anatoly Sokolov <aesok@post.ru>
267 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
268 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
269 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
270 Change return type to bool.
271 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
273 2011-03-17 Jakub Jelinek <jakub@redhat.com>
276 * var-tracking.c (prepare_call_arguments): If CALL target
277 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
278 pc instead of looking it up using cselib_lookup and use
279 Pmode for it if x has VOIDmode.
280 * dwarf2out.c (gen_subprogram_die): If also both first and
281 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
284 * function.c (assign_parms): For data.passed_pointer parms
285 use MEM of data.entry_parm instead of data.entry_parm itself
286 as DECL_INCOMING_RTL.
287 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
288 also when passed and declared mode is the same, DECL_RTL
289 is a MEM with pseudo as address and DECL_INCOMING_RTL is
292 2011-03-16 Jeff Law <law@redhat.com>
294 PR rtl-optimization/37273
295 * ira-costs.c (scan_one_insn): Detect constants living in memory and
296 handle them like argument loads from stack slots. Do not double
297 count memory for memory constants and argument loads from stack slots.
299 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
302 * var-tracking.c (prepare_call_arguments): Check SUBREG.
304 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
307 * config/i386/i386.opt: Add Save to -mavx and -mfma.
309 2011-03-17 Jakub Jelinek <jakub@redhat.com>
312 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
314 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
315 Clear call_arg_locations and call_arg_loc_last always.
318 * var-tracking.c (prepare_call_arguments): If argument needs to be
319 passed by reference, adjust argtype and mode.
321 2011-03-17 Richard Guenther <rguenther@suse.de>
324 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
325 a value make sure to fold the statement.
327 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
330 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
331 return condition with !cfun->calls_alloca.
333 2011-03-17 Richard Guenther <rguenther@suse.de>
336 * lto-cgraph.c (input_overwrite_node): Clear the abstract
337 origin for decls in other ltrans units.
338 (input_varpool_node): Likewise.
340 2011-03-17 Richard Guenther <rguenther@suse.de>
343 * tree-object-size.c (compute_object_offset): Properly return
344 the offset operand of MEM_REFs as sizetype.
346 2011-03-17 Jakub Jelinek <jakub@redhat.com>
348 PR rtl-optimization/48141
349 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
350 * dse.c: Include params.h.
351 (active_local_stores_len): New variable.
352 (add_wild_read, dse_step1): Clear it when setting active_local_stores
354 (record_store, check_mem_read_rtx): Decrease it when removing
356 (scan_insn): Likewise. Increase it when adding to chain, if it
357 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
358 set active_local_stores to NULL before the addition.
359 * Makefile.in (dse.o): Depend on $(PARAMS_H).
361 PR rtl-optimization/48141
362 * dse.c (record_store): If no positions are needed in an insn
363 that cannot be deleted, at least unchain it from active_local_stores.
365 2011-03-16 Dodji Seketeli <dodji@redhat.com>
368 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
369 (lookup_type_die_strip_naming_typedef): ... here.
370 (get_context_die): Use it.
371 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
372 the anonymous struct named by the naming typedef.
374 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
377 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
378 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
380 2011-03-16 Jeff Law <law@redhat.com>
382 * tree-vrp.c (identify_jump_threads): Slightly simplify type
383 check for operands of conditional. Allow type to be a pointer.
385 2011-03-16 Richard Guenther <rguenther@suse.de>
387 PR tree-optimization/48149
388 * fold-const.c (fold_binary_loc): Fold
389 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
391 2011-03-16 Richard Guenther <rguenther@suse.de>
393 PR tree-optimization/26134
394 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
395 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
396 (non_rewritable_mem_ref_base): Handle complex type component
397 accesses, constrain offsets for vector and complex extracts
400 2011-03-16 Richard Guenther <rguenther@suse.de>
402 PR tree-optimization/48146
403 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
404 operands avoiding the need for renaming.
406 2011-03-16 Richard Guenther <rguenther@suse.de>
408 * gimple-fold.c (maybe_fold_reference): Open-code relevant
409 constant folding. Move MEM_REF canonicalization first.
410 Rely on fold_const_aggregate_ref for initializer folding.
411 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
413 2011-03-16 Jakub Jelinek <jakub@redhat.com>
416 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
417 arg0/arg1 or their arguments are always fold converted to matching
420 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
423 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
426 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
428 (ld_vers): Extract binutils version for gold.
429 (gcc_cv_ld_hidden): Handle gold here.
430 (gcc_cv_lto_plugin): Determine level of linker plugin support.
431 * configure: Regenerate.
432 * config.in: Regenerate.
433 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
434 -fuse-linker-plugin otherwise.
435 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
436 (LINK_COMMAND_SPEC): Use it.
437 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
439 2011-03-16 Jakub Jelinek <jakub@redhat.com>
441 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
442 * calls.c: Remove debug.h include.
443 (emit_call_1): Don't call virtual_call_token debug hook.
444 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
445 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
446 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
447 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
448 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
449 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
450 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
451 dwarf2out_virtual_call): Remove.
452 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
453 copy_call_info and virtual_call hooks.
454 (dwarf2out_init): Don't initialize vcall_insn_table,
455 debug_dcall_section and debug_vcall_section.
456 (prune_unused_types): Don't mark nodes from dcall_table.
457 (dwarf2out_finish): Don't output dcall or vcall tables.
458 * final.c (final_scan_insn): Don't call direct_call or
459 virtual_call debug hooks.
460 * debug.h (struct gcc_debug_hooks): Remove direct_call,
461 virtual_call_token, copy_call_info and virtual_call hooks.
462 (debug_nothing_uid): Remove prototype.
463 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
464 copy_call_info and virtual_call hooks.
465 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
466 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
467 * debug.c (do_nothing_debug_hooks): Likewise.
468 (debug_nothing_uid): Remove.
469 * doc/invoke.texi (-fenable-icf-debug): Remove.
470 * common.opt (-fenable-icf-debug): Likewise.
472 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
473 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
474 call's MEM. Handle functions returning aggregate through a hidden
475 first pointer. For virtual calls add clobbered pc to call arguments
477 * dwarf2out.c (gen_subprogram_die): Emit
478 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
482 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
483 * rtl.h (ENTRY_VALUE_EXP): Define.
484 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
485 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
486 * print-rtl.c (print_rtx): Likewise.
487 * gengtype.c (adjust_field_rtx_def): Likewise.
488 * var-tracking.c (vt_add_function_parameter): Adjust
489 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
490 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
491 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
492 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
493 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
495 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
496 Call var_location debug hook even on CALL_INSNs.
497 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
498 * rtl.def (ENTRY_VALUE): New.
499 * dwarf2out.c: Include cfglayout.h.
500 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
501 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
502 (struct call_arg_loc_node): New type.
503 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
504 tail_call_site_count): New variables.
505 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
506 DW_TAG_GNU_call_site_parameter.
507 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
508 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
509 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
510 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
511 and DW_AT_GNU_all_source_call_sites.
512 (mem_loc_descriptor): Handle ENTRY_VALUE.
513 (add_src_coords_attributes): Don't add enything if
514 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
515 (dwarf2out_abstract_function): Save and clear call_arg_location,
516 call_site_count and tail_call_site_count around dwarf2out_decl call.
517 (gen_call_site_die): New function.
518 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
519 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
520 (dwarf2out_function_decl): Clear call_arg_locations,
521 call_arg_loc_last, set call_site_count and tail_call_site_count
522 to -1 and free block_map.
523 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
524 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
525 followed by any real instructions.
526 (dwarf2out_begin_function): Set call_site_count and
527 tail_call_site_count to 0.
528 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
529 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
530 attempt to force a DIE for it and worst case remove the attribute.
531 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
532 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
534 * var-tracking.c: Include tm_p.h.
535 (vt_stack_adjustments): For calls call note_register_arguments.
536 (argument_reg_set): New variable.
537 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
538 ensure the VALUE is resolved.
539 (call_arguments): New variable.
540 (prepare_call_arguments): New function.
541 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
542 (struct expand_loc_callback_data): Add ignore_cur_loc field.
543 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
544 always use the best expression.
545 (vt_expand_loc): Add ignore_cur_loc argument.
546 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
547 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
548 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
550 (vt_add_function_parameter): Use cselib_lookup_from_insn.
551 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
552 argument. Don't call cselib_preserve_only_values and
554 (note_register_arguments): New function.
555 (vt_initialize): Compute argument_reg_set. Call
556 vt_add_function_parameters before processing basic blocks instead of
557 afterwards. For calls call prepare_call_arguments before calling
559 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
560 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
561 (var-tracking.o): Depend on $(TM_P_H).
562 * cfglayout.h (insn_scope): New prototype.
563 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
564 * cfglayout.c (insn_scope): No longer static.
565 * insn-notes.def (CALL_ARG_LOCATION): New.
566 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
567 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
568 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
569 nothing for DECL_EXTERNAL BLOCK_VARS.
571 2011-03-16 Alan Modra <amodra@gmail.com>
574 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
575 create invalid offset address for vsx splat insn.
576 * config/rs6000/predicates.md (splat_input_operand): New.
577 * config/rs6000/vsx.md (vsx_splat_*): Use it.
579 2011-03-15 Xinliang David Li <davidxl@google.com>
582 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
583 (normalize_preds): New function.
584 (is_use_properly_guarded): Normalize def predicates.
586 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
589 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
590 in the output template.
592 2011-03-15 Richard Guenther <rguenther@suse.de>
595 * tree-pretty-print.c (dump_function_declaration): Properly
596 dump unprototyped and varargs function types.
598 2011-03-15 Richard Guenther <rguenther@suse.de>
600 PR tree-optimization/13954
601 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
604 2011-03-15 Richard Guenther <rguenther@suse.de>
606 PR tree-optimization/48037
607 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
608 selects into BIT_FIELD_REFs.
609 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
612 2011-03-15 Jakub Jelinek <jakub@redhat.com>
614 PR tree-optimization/48129
615 * builtins.c (fold_builtin_snprintf): Convert to type of
616 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
617 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
619 2011-03-15 Richard Guenther <rguenther@suse.de>
621 PR tree-optimization/41490
622 * tree-ssa-dce.c (propagate_necessity): Handle returns without
624 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
626 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
627 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
628 * tree-tailcall.c (find_tail_calls): Ignore returns.
630 2011-03-15 Richard Guenther <rguenther@suse.de>
633 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
634 or variable-indexed array accesses when in gimple form.
636 2011-03-15 Richard Guenther <rguenther@suse.de>
638 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
640 2011-03-15 Alan Modra <amodra@gmail.com>
643 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
644 presume symbol_refs without a symbol_ref_decl are suitably
645 aligned, nor other trees we may see here. Handle anchor symbols.
646 (legitimate_constant_pool_address_p): Comment. Add mode param.
647 Check cmodel=medium addresses. Adjust all calls.
648 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
649 creating cmodel=medium optimized access to locals.
650 * config/rs6000/constraints.md (R): Pass QImode to
651 legitimate_constant_pool_address_p.
652 * config/rs6000/predicates.md (input_operand): Pass mode to
653 legitimate_constant_pool_address_p.
654 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
657 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
660 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
661 64-bit constants being loaded into registers other than GPRs such
662 as loading 0 into a VSX register.
664 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
666 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
668 2011-03-14 Jakub Jelinek <jakub@redhat.com>
671 * builtins.c (fold_builtin_snprintf): New function.
672 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
673 (fold_builtin_4): Likewise.
676 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
677 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
678 and C - X == X also strip nops from +/-/p+ operand.
679 When optimizing -X == C, fold C to arg0's type.
682 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
683 emit it as add_AT_int instead of add_AT_unsigned.
685 2011-03-14 Tom Tromey <tromey@redhat.com>
687 * unwind-dw2.c: Include sys/sdt.h if it exists.
688 (_Unwind_DebugHook): Use STAP_PROBE2.
689 * config.in, configure: Rebuild.
690 * configure.ac: Check for sys/sdt.h.
692 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
694 * config/i386/i386.md (ROUND_FLOOR): New constant.
696 (ROUND_TRUNC): Ditto.
697 (ROUND_MXCSR): Ditto.
698 (ROUND_NO_EXC): Ditto.
699 (rint<mode>2): Use new defines instead of numerical constants.
700 (floor<mode>2): Ditto.
701 (ceil<mode>2): Ditto.
702 (btrunc<mode>2): Ditto.
703 * config/i386/i386-builtin-types.def: Define ROUND function type
705 * config/i386/i386.c (enum ix86_builtins): Add
706 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
707 (struct builtin_description): Add
708 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
709 (ix86_expand_sse_round): New static function.
710 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
712 (ix86_builtin_vectorized_function): Handle
713 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
715 2011-03-14 Tom Tromey <tromey@redhat.com>
717 * c-parser.c (c_parser_asm_string_literal): Clear
718 warn_overlength_strings.
720 2011-03-14 Tom Tromey <tromey@redhat.com>
722 * c-parser.c (disable_extension_diagnostics): Save
723 warn_overlength_strings.
724 (restore_extension_diagnostics): Restore warn_overlength_strings.
726 2011-03-14 Jakub Jelinek <jakub@redhat.com>
728 * BASE-VER: Change to 4.7.0.
730 2011-03-14 Richard Guenther <rguenther@suse.de>
733 * tree.c (build_vector_from_val): Adjust assert to requirements
736 2011-03-14 Jakub Jelinek <jakub@redhat.com>
739 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
741 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
743 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
744 terms of target_flags_explicit. Adjust copyright year.
746 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
747 * config/rs6000/t-freebsd: New file. Add override for
750 2011-03-13 Chris Demetriou <cgd@google.com>
752 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
753 (-fno-diagnostics-show-option): this, to reflect current default.
754 (-Werror=): Update text about -fno-diagnostics-show-option.
756 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
759 * config/rs6000/predicates.md (easy_vector_constant_add_self,
760 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
761 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
762 mode is not V2DImode or V2DFmode.
763 (vspltis_constant): Do not handle V2DImode and V2DFmode.
764 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
765 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
767 (movdi_internal64): Likewise.
769 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
771 PR tree-optimization/47127
772 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
774 (set_cloog_options): Same.
775 (scop_to_clast): Same.
776 (print_clast_stmt): Do not call cloog_state_malloc and
778 (print_generated_program): Same.
780 * graphite-clast-to-gimple.h (cloog_state): Declared.
781 (scop_to_clast): Adjust declaration.
782 * graphite.c (cloog_state): Defined here.
783 (graphite_initialize): Call cloog_state_malloc.
784 (graphite_finalize): Call cloog_state_free.
786 2011-03-11 Jason Merrill <jason@redhat.com>
788 * attribs.c (lookup_attribute_spec): Take const_tree.
791 2011-03-11 Joseph Myers <joseph@codesourcery.com>
793 * config/sparc/sparc.c (sparc_option_override): Use
794 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
796 2011-03-11 Richard Guenther <rguenther@suse.de>
798 PR tree-optimization/48067
799 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
800 multiplication result will be only used once on the target
803 2011-03-11 Richard Guenther <rguenther@suse.de>
805 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
807 2011-03-11 Richard Guenther <rguenther@suse.de>
810 * tree.c (find_decls_types_r): Do not walk types only reachable
811 from IDENTIFIER_NODEs.
813 2011-03-11 Jakub Jelinek <jakub@redhat.com>
816 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
817 all vnode->force_output nodes as needed.
819 2011-03-11 Jason Merrill <jason@redhat.com>
822 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
823 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
825 2011-03-11 Martin Jambor <mjambor@suse.cz>
827 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
830 2011-03-11 Jakub Jelinek <jakub@redhat.com>
832 PR tree-optimization/48063
833 * ipa-inline.c (cgraph_decide_inlining): Don't try to
834 inline functions called once if !tree_can_inline_p (node->callers).
836 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
838 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
840 * config/score/score3.c: Delete.
841 * config/score/score3.h: Delete.
842 * config/score/mul-div.S: Delete.
843 * config/score/sfp-machine.h: Add new file.
844 * config/score/constraints.md: Add new file.
845 * config/score/t-score-softfp: Add new file.
846 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
847 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
848 (score7_extra_constraint): Delete.
849 (score7_option_override): Remove unused code.
850 * config/score/score.c: Remove score3 and score5 define and code.
851 * config/score/score.h: Remove score3 and score5 define and code.
852 * config/score/score.md: Remove score3 template and unusual insn.
853 * config/score/score.opt: Remove score3 and score5 options.
855 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
857 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
858 when _HPUX_SOURCE is defined.
859 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
861 2011-03-10 Jason Merrill <jason@redhat.com>
864 * stor-layout.c (layout_type): Don't set structural equality
865 on arrays of incomplete type.
866 * tree.c (type_hash_eq): Handle comparing them properly.
868 2011-03-10 Jakub Jelinek <jakub@redhat.com>
871 * config/s390/s390.c (s390_delegitimize_address): Make sure the
872 result mode matches original rtl mode.
874 2011-03-10 Nick Clifton <nickc@redhat.com>
876 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
877 (andsi3, andsi3_flags): Fix timings for three operand alternative.
879 2011-03-09 Jakub Jelinek <jakub@redhat.com>
881 PR rtl-optimization/47866
882 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
883 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
884 if target wasn't scalar.
885 * function.c (assign_stack_temp_for_type): Assert that neither
886 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
887 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
889 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
891 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
893 * config/s390/s390-protos.h (s390_label_align): New prototype.
894 * config/s390/s390.c (s390_label_align): New function.
895 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
897 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
900 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
901 V2DI/V2DF constants. Only all 0's or all 1's are easy.
902 (output_vec_const_move): Ditto.
904 2011-03-08 Anatoly Sokolov <aesok@post.ru>
906 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
907 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
908 * config/mips/mips.c (mips_preferred_reload_class): Make static.
909 Change 'rclass' argument and result type to reg_class_t.
910 (TARGET_PREFERRED_RELOAD_CLASS): Define.
912 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
914 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
915 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST,
916 TARGET_MEMORY_MOVE_COST): Define.
917 (avr_register_move_cost, avr_memory_move_cost): New Functions.
919 2011-03-08 Jakub Jelinek <jakub@redhat.com>
922 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
925 PR tree-optimization/48022
926 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
929 2011-03-07 Jakub Jelinek <jakub@redhat.com>
932 * var-tracking.c (find_use_val): Return NULL for
933 cui->sets && cui->store_p BLKmode MEMs.
935 2011-03-07 Anatoly Sokolov <aesok@post.ru>
937 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
939 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
940 xstormy16_print_operand_address): Remove.
941 * config/stormy16/stormy16.c (xstormy16_print_operand,
942 xstormy16_print_operand_address): Make static.
943 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
945 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
948 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
949 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
952 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
955 * cfgloopmanip.c (fix_bb_placements): Return immediately
956 if FROM is BASE_LOOP's header.
958 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
960 * gimplify.c (gimplify_function_tree): Fix building calls
961 to __builtin_return_address.
963 2011-03-07 Alan Modra <amodra@gmail.com>
965 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
966 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
967 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
968 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
970 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
971 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
972 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
973 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
974 * config/rs6000/rs6000.c
975 (rs6000_elf_end_indicate_exec_stack): Rename to..
976 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
977 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
978 (rs6000_file_start): ..here.
979 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
980 file scope variables.
981 (call_ABI_of_interest): New function.
982 (init_cumulative_args): Set above vars when function return value
983 is a float, vector, or small struct.
984 (rs6000_function_arg_advance_1): Likewise for function args.
985 (rs6000_va_start): Set rs6000_passes_float if variable arg function
986 references float args.
988 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
990 * doc/cfg.texi: Remove "See" before @ref.
991 * doc/invoke.texi: Likewise.
993 2011-03-05 Jason Merrill <jason@redhat.com>
995 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
997 2011-03-05 Anthony Green <green@moxielogic.com>
999 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
1001 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
1003 PR rtl-optimization/47899
1004 * cfgloopmanip.c (fix_bb_placements): Fix first argument
1005 to flow_loop_nested_p when moving the loop upward.
1007 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
1010 * arm.md (movhi_insn_arch4): Accept any immediate constant.
1012 2011-03-05 Jakub Jelinek <jakub@redhat.com>
1014 PR tree-optimization/47967
1015 * ipa-cp.c (build_const_val): Return NULL instead of creating
1016 VIEW_CONVERT_EXPR for mismatching sizes.
1017 (ipcp_create_replace_map): Return NULL if build_const_val failed.
1018 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
1019 give up on versioning.
1021 2011-03-05 Alan Modra <amodra@gmail.com>
1024 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1025 full cmodel medium/large lo_sum + high addresses.
1027 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1029 * config/s390/s390.c (s390_decompose_address): Reject non-literal
1030 pool references in UNSPEC_LTREL_OFFSET.
1032 2011-03-04 Jan Hubicka <jh@suse.cz>
1035 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
1036 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
1037 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
1039 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
1040 cgraph_add_thunk): Add node pointers.
1041 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
1042 associated to right node.
1043 (input_node): Update use of cgraph_same_body_alias
1044 and cgraph_add_thunk.
1046 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
1048 * config/i386/i386.opt (mprefer-avx128): New flag.
1049 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
1050 modes when the flag -mprefer-avx128 is on.
1052 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
1054 * dwarf2out.c (compare_loc_operands): Fix address handling.
1056 2011-03-04 Alan Modra <amodra@gmail.com>
1058 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
1060 2011-03-04 Richard Guenther <rguenther@suse.de>
1063 * expmed.c (extract_bit_field_1): Prefer vector modes that
1064 vec_extract patterns can handle.
1066 2011-03-04 Richard Guenther <rguenther@suse.de>
1069 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
1071 2011-03-04 Richard Henderson <rth@redhat.com>
1073 * explow.c (emit_stack_save): Remove 'after' parameter.
1074 (emit_stack_restore): Likewise.
1075 * expr.h: Update to match.
1076 * builtins.c, calls.c, stmt.c: Likewise.
1077 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
1078 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
1079 * function.c (expand_function_end): Insert the emit_stack_save
1080 sequence before parm_birth_insn instead of after.
1082 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
1084 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
1085 (ssse3_pmaddubsw128): Ditto.
1086 (ssse3_pmaddubsw): Ditto.
1088 2011-03-03 Steve Ellcey <sje@cup.hp.com>
1090 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
1092 2011-03-03 Jakub Jelinek <jakub@redhat.com>
1095 * gimplify.c (omp_add_variable): Only call omp_notice_variable
1096 on TYPE_SIZE_UNIT if it is a DECL.
1099 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
1100 first operand is not is_gimple_mem_ref_addr, try to fold it.
1101 If the operand still isn't is_gimple_mem_ref_addr, clear
1104 2011-03-03 Richard Guenther <rguenther@suse.de>
1107 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
1109 (refs_may_alias_p_1): For release branches return true if
1110 we are confused by our input.
1112 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1114 * config/s390/s390.c (s390_function_value): Rename to ...
1115 (s390_function_and_libcall_value): ... this.
1116 (s390_function_value): New function.
1117 (s390_libcall_value): New function.
1118 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
1119 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
1120 target macro definitions.
1121 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
1123 2011-03-02 Joseph Myers <joseph@codesourcery.com>
1125 * config/i386/freebsd64.h (CC1_SPEC): Define.
1126 * config/i386/linux64.h (CC1_SPEC): Define.
1127 * config/i386/x86-64.h (CC1_SPEC): Don't define.
1129 2011-03-02 Anatoly Sokolov <aesok@post.ru>
1131 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1133 * config/stormy16/stormy16.c: Include reload.h.
1134 (xstormy16_memory_move_cost): New function.
1135 (TARGET_MEMORY_MOVE_COST): Define.
1137 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
1139 PR rtl-optimization/47925
1140 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
1141 with side effects. Remove the more-specific check for volatile asms.
1143 2011-03-02 Alan Modra <amodra@gmail.com>
1146 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
1147 toc relative addresses for valid offsets.
1149 2011-03-01 Richard Guenther <rguenther@suse.de>
1151 PR tree-optimization/47890
1152 * tree-vect-loop.c (get_initial_def_for_induction): Set
1153 related stmt properly.
1155 2011-03-01 Richard Guenther <rguenther@suse.de>
1158 * lto-streamer.c (lto_record_common_node): Also register
1161 2011-03-01 Richard Guenther <rguenther@suse.de>
1164 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1165 Do not stream DECL_ABSTRACT_ORIGIN.
1166 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
1167 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
1168 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1169 Do not stream DECL_ABSTRACT_ORIGIN.
1170 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
1171 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
1173 2011-02-28 Anatoly Sokolov <aesok@post.ru>
1175 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
1176 FUNCTION_VALUE_REGNO_P): Remove.
1177 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
1178 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
1179 Add 'outgoing' argument.
1180 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
1182 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1183 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1185 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
1188 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
1189 (lookup_filename): Likewise.
1190 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
1192 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
1193 Jakub Jelinek <jakub@redhat.com>
1196 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
1197 (assign_stack_local_1): Change last argument type to int.
1198 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
1199 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
1200 don't record padding space into frame_space_list nor use those areas.
1201 (assign_stack_local): Adjust caller.
1202 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
1203 of assign_stack_local, pass 0 as last argument.
1204 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
1207 2011-02-28 Jakub Jelinek <jakub@redhat.com>
1210 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
1211 Use target address_mode and pointer_mode hooks instead of hardcoded
1212 Pmode and ptr_mode. Handle some simple cases of extending if
1213 POINTERS_EXTEND_UNSIGNED < 0.
1214 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
1215 Call convert_debug_memory_address.
1216 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
1217 convert_debug_memory_address.
1220 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
1221 * configure: Regenerated.
1222 * config.in: Regenerated.
1223 * varasm.c (default_function_section): Return NULL
1224 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1226 2011-02-28 Martin Jambor <mjambor@suse.cz>
1228 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
1229 the description to match the printed values.
1231 2011-02-28 Richard Guenther <rguenther@suse.de>
1233 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
1234 of the copied scope tree.
1236 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1238 * doc/extend.texi (Function Attributes): Avoid deeply (and
1239 wrongly) nested tables.
1241 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1244 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
1245 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
1246 r isn't op0 nor op1.
1248 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
1250 * config/avr/avr.md: Remove magic comment for emacs.
1252 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
1255 * config/avr/avr.c (avr_option_override): Use error on bad options.
1256 (avr_help): New function.
1257 (TARGET_HELP): Define.
1259 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
1262 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
1263 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
1265 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
1267 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
1268 (ARM Options): Ditto.
1269 (i386 and x86-64 Options): Ditto.
1270 (RX Options): Ditto.
1271 (SPARC Options): Ditto.
1273 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
1275 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
1276 FreeBSD 6 and later. Generally use cpu generic.
1278 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
1280 * doc/cpp.texi: Update copyright years.
1282 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
1285 * config/lm32/lm32.md (ashrsi3): Added needed variable.
1287 2011-02-25 Jon Beniston <jon@beniston.com>
1290 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
1291 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
1292 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
1293 (lm32_block_move_inline): Add type cast to remove warning.
1294 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
1295 (gen_int_relational): Move declarations to start of function.
1297 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
1299 PR tree-optimization/45470
1300 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
1301 can throw internally only.
1302 * tree-vect-stmts.c (vectorizable_call): Likewise.
1304 2011-02-24 Anatoly Sokolov <aesok@post.ru>
1306 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
1307 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1308 * config/stormy16/stormy16-protos.h
1309 (xstormy16_preferred_reload_class): Remove.
1310 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
1311 static. Change 'rclass' argument and return type to reg_class_t.
1312 (TARGET_PREFERRED_RELOAD_CLASS,
1313 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1315 2011-02-24 Richard Guenther <rguenther@suse.de>
1317 * lto-streamer-in.c (input_bb): Do not find referenced vars
1318 in debug statements.
1320 2011-02-23 Jason Merrill <jason@redhat.com>
1322 * common.opt (fabi-version): Document v5 and v6.
1324 2011-02-23 Richard Guenther <rguenther@suse.de>
1326 PR tree-optimization/47849
1327 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
1329 2011-02-23 Jie Zhang <jie@codesourcery.com>
1331 * opts-common.c (decode_cmdline_option): Print empty string
1332 argument as "" in decoded->orig_option_with_args_text.
1333 * gcc.c (execute): Print empty string argument as ""
1334 in the verbose output.
1335 (do_spec_1): Keep empty string argument.
1337 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
1339 * config.gcc: Declare score-* and crx-* obsolete.
1341 2011-02-23 Jie Zhang <jie@codesourcery.com>
1343 PR rtl-optimization/47763
1344 * web.c (web_main): Ignore naked clobber when replacing register.
1346 2011-02-22 Anatoly Sokolov <aesok@post.ru>
1348 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1351 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
1354 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
1356 2011-02-22 Mike Stump <mikestump@comcast.net>
1358 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
1360 * configure: Regenerate.
1362 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
1364 PR rtl-optimization/46002
1365 * ira-color.c (update_copy_costs): Change class intersection
1366 test to reg_class_contents[] test of 'hard_regno'.
1368 2011-02-21 Joseph Myers <joseph@codesourcery.com>
1370 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
1372 * config/hpux11.opt (mt): Likewise.
1373 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
1374 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
1375 * config/vax/elf.opt (mno-asm-pic): Likewise.
1376 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
1378 2011-02-21 Mike Stump <mikestump@comcast.net>
1381 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
1382 tree so we can get save the type.
1383 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
1384 for CFString instead of trying to use past the end of the builtins.
1385 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
1386 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
1387 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
1388 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
1389 Rename to darwin_builtin_cfstring.
1390 (darwin_init_cfstring_builtins): Return the built type.
1392 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
1395 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
1396 (_mm256_insert_epi64): Use _mm_insert_epi64.
1398 2011-02-21 Anatoly Sokolov <aesok@post.ru>
1400 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1401 * config/stormy16/stormy16-protos.h
1402 (xstormy16_mode_dependent_address_p): Remove.
1403 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
1404 Make static. Change return type to bool. Change argument type to
1405 const_rtx. Remove dead code.
1406 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1408 2011-02-21 Richard Guenther <rguenther@suse.de>
1411 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1412 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
1413 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
1415 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1416 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
1418 2011-02-20 Richard Guenther <rguenther@suse.de>
1421 * tree.c (free_lang_data_in_decl): Clean builtins from
1422 the TU decl BLOCK_VARS.
1424 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
1428 * haifa-sched.c (fix_tick_ready): Skip tick computation
1431 2011-02-19 Richard Guenther <rguenther@suse.de>
1434 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1435 Remove lazy BLOCK_VARS streaming.
1436 (lto_input_ts_block_tree_pointers): Likewise.
1437 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1439 2011-02-19 Joseph Myers <joseph@codesourcery.com>
1441 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
1443 2011-02-19 Joseph Myers <joseph@codesourcery.com>
1445 * config/i386/biarch32.h, config/i386/mach.h,
1446 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
1448 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1451 * config/i386/i386.md (peephole2 for shift and plus): Use
1452 operands[1] original mode in the first insn.
1454 2011-02-18 Mike Stump <mikestump@comcast.net>
1456 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
1458 2011-02-18 Jan Hubicka <jh@suse.cz>
1461 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
1462 to zero when the function is not inlinable at all.
1464 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1466 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
1467 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1468 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
1469 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
1470 * config/pa/t-pa64: Likewise.
1471 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1473 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1476 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
1478 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1481 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
1483 2011-02-18 Anatoly Sokolov <aesok@post.ru>
1485 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1486 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
1487 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
1488 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1489 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
1490 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
1491 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
1492 m32r_load_postinc_p, m32r_store_preinc_predec_p,
1493 m32r_legitimate_address_p): New functions.
1494 * config/m32r/constraints.md (constraint "S"): Don't use
1495 STORE_PREINC_PREDEC_P.
1496 (constraint "U"): Don't use LOAD_POSTINC_P.
1498 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
1500 PR rtl-optimization/46178
1501 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
1502 compute ira_hard_regno_cover_class[].
1504 2011-02-18 Richard Guenther <rguenther@suse.de>
1507 * lto-streamer.h (lto_global_var_decls): Declare.
1508 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
1509 statics for global var processing.
1511 2011-02-18 Richard Guenther <rguenther@suse.de>
1513 PR tree-optimization/47737
1514 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
1515 edge dominance check.
1517 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1520 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
1521 avoid invalid rtx sharing.
1523 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1525 * doc/cpp.texi (Obsolete Features): Add background on the
1526 origin of assertions.
1528 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1530 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
1532 * config/darwin.c (output_objc_section_asm_op): Added support for
1534 (is_objc_metadata): New.
1535 (darwin_objc2_section): New.
1536 (darwin_objc1_section): New.
1537 (machopic_select_section): Added support for ABI v1 and v2.
1538 (darwin_emit_objc_zeroed): New.
1539 (darwin_output_aligned_bss): Detect objc metadata and treat it
1541 (darwin_asm_output_aligned_decl_common): Same.
1542 (darwin_asm_output_aligned_decl_local): Same.
1543 * config/darwin-sections.def: Updated for ABI v1 and v2.
1544 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
1545 compiling Objective-C code for the NeXT runtime, default to using
1546 ABI version 0 for 32-bit, and version 2 for 64-bit.
1548 2011-02-17 Joseph Myers <joseph@codesourcery.com>
1550 * common.opt (optimize_fast): New Variable.
1551 * opts.c (default_options_optimization): Use opts->x_optimize_fast
1552 instead of local variable ofast.
1554 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
1556 * doc/invoke.texi (fobjc-abi-version): Documented.
1557 (fobjc-nilcheck): Documented.
1558 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
1561 2011-02-17 Joseph Myers <joseph@codesourcery.com>
1564 * common.opt (export-dynamic): New Driver option.
1565 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
1567 2011-02-17 Joseph Myers <joseph@codesourcery.com>
1569 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
1571 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
1572 Jan Hubicka <jh@suse.cz>
1576 * cfgexpand.c (account_used_vars_for_block): Remove.
1577 (estimated_stack_frame_size): Use referenced vars.
1578 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
1579 that were referenced in the original function. Test src_fn
1580 rather than cfun. Drop redundant get_var_ann.
1581 (setup_one_parameter): Drop redundant get_var_ann.
1582 (declare_return_variable): Likewise.
1583 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
1584 (copy_arguments_for_versioning): Drop redundant get_var_ann.
1585 * ipa-inline.c (compute_inline_parameters): Do not compute
1586 disregard_inline_limits here.
1587 (compute_inlinable_for_current, pass_inlinable): New.
1588 (pass_inline_parameters): Require PROP_referenced_vars.
1589 * cgraphunit.c (cgraph_process_new_functions): Don't run
1590 compute_inline_parameters explicitly unless function is in SSA form.
1591 (cgraph_analyze_function): Set .disregard_inline_limits.
1592 * tree-sra.c (convert_callers): Compute inliner parameters
1593 only for functions already in SSA form.
1595 2011-02-17 Joseph Myers <joseph@codesourcery.com>
1597 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
1598 -mlittle-endian-data.
1600 2011-02-17 Joseph Myers <joseph@codesourcery.com>
1602 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
1603 -mno-fpu, not -fpu and -no-fpu.
1604 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
1605 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
1607 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
1610 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
1611 input reload with PLUS RTX.
1613 2011-02-16 Joseph Myers <joseph@codesourcery.com>
1615 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
1616 of InverseVar(MDMX).
1618 2011-02-16 Joseph Myers <joseph@codesourcery.com>
1620 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
1623 2011-02-16 Joseph Myers <joseph@codesourcery.com>
1625 * config/mn10300/mn10300.opt (mno-crt0): New.
1627 2011-02-16 Joseph Myers <joseph@codesourcery.com>
1629 * config/m68k/uclinux.opt (static-libc): New Driver option.
1631 2011-02-16 Joseph Myers <joseph@codesourcery.com>
1633 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
1635 2011-02-16 Joseph Myers <joseph@codesourcery.com>
1637 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
1638 %{muser-extend-enabled}.
1640 2011-02-16 Richard Guenther <rguenther@suse.de>
1642 PR tree-optimization/47738
1643 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
1644 the TODO from tree_predictive_commoning.
1646 2011-02-15 Jeff Law <law@redhat.com>
1649 2011-01-25 Jeff Law <law@redhat.com>
1651 PR rtl-optimization/37273
1652 * ira-costs.c (scan_one_insn): Detect constants living in memory and
1653 handle them like argument loads from stack slots. Do not double
1654 count memory for memory constants and argument loads from stack slots.
1656 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
1659 * combine.c (cant_combine_insn_p): Revert the last change.
1661 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1664 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
1665 mode for vector constants. Remove code that checks for TImode.
1667 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
1671 * cgraph.h (compute_inline_parameters): Return void.
1672 * ipa-inline.c (compute_inline_parameters): Adjust.
1674 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
1678 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
1680 * cfgexpand.c (estimated_stack_frame_size): Likewise.
1681 * ipa-inline.c (compute_inline_parameters): Adjust.
1683 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
1687 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
1688 Adjust all users. Pass FN to...
1689 * tree-flow-inline.h (first_referenced_var): ... this. Add
1691 * ipa-struct-reorg.c: Adjust.
1692 * tree-dfa.c: Adjust.
1693 * tree-into-ssa.c: Adjust.
1694 * tree-sra.c: Adjust.
1695 * tree-ssa-alias.c: Adjust.
1696 * tree-ssa-live.c: Adjust.
1697 * tree-ssa.c: Adjust.
1698 * tree-ssanames.c: Adjust.
1699 * tree-tailcall.c: Adjust.
1701 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
1705 * tree-flow.h (referenced_var_lookup): Add fn parameter.
1707 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
1708 * tree-flow-inline.h: Adjust.
1709 * gimple-pretty-print.c: Adjust.
1710 * tree-into-ssa.c: Adjust.
1711 * tree-ssa.c: Adjust.
1712 * cfgexpand.c: Adjust.
1714 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
1716 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
1717 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1718 (EXTRA_CONSTRAINT): Delete.
1719 * config/iq2000/constraints.md: New file.
1720 * config/iq2000/iq2000.md: Include it.
1721 (define_insn ""): Delete.
1722 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
1723 unsupported constraint letters from patterns.
1724 (call_value, call_value_internal1): Likewise.
1725 (call_value_multiple_internal1): Likewise.
1727 2011-02-15 Nick Clifton <nickc@redhat.com>
1729 * config/mn10300/mn10300.c: Include tm-constrs.h.
1730 (struct liw_data): New data structure describing an LIW candidate
1732 (extract_bundle): Use struct liw_data. Allow small integer
1733 operands for some instructions.
1734 (check_liw_constraints): Use struct liw_data. Remove swapped
1735 parameter. Add comments describing the checks. Fix bug when
1736 assigning the source of liw1 to the source of liw2.
1737 (liw_candidate): Delete. Code moved into extract_bundle.
1738 (mn10300_bundle_liw): Use struct liw_data. Check constraints
1740 * config/mn10300/predicates.md (liw_operand): New predicate.
1741 Allows registers and small integer constants.
1742 * config/mn10300/constraints.md (O): New constraint. Accetps
1743 integers in the range -8 to +7 inclusive.
1744 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
1745 for moving a small integer into a register. Give this alternative
1747 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
1748 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
1749 using the J,K,L and M constraints,
1750 (liw): Remove SI mode on second operands to allow for HI and QI
1752 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
1755 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
1758 * combine.c (cant_combine_insn_p): Check zero/sign extended
1761 2011-02-15 Richard Guenther <rguenther@suse.de>
1763 PR tree-optimization/47743
1764 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
1765 for a non-type-compatible VN lookup bail out.
1767 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
1769 * config/fr30/constraints.md: New file.
1770 * config/fr30/fr30.md: Include it.
1771 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
1772 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1773 (EXTRA_CONSTRAINT): Delete.
1775 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
1777 * config/frv/constraints.md: New file.
1778 * config/frv/predicates.md: Include it.
1779 * config/frv/frv.c (reg_class_from_letter): Delete.
1780 (frv_option_override): Don't initialize it.
1781 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
1782 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
1783 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
1784 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1785 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
1786 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1787 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
1788 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
1789 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
1790 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
1791 (REG_CLASS_FROM_CONSTRAINT): Delete.
1793 2011-02-15 Jakub Jelinek <jakub@redhat.com>
1796 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
1797 if frame size is 0 in a leaf function.
1799 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1802 * config/alpha/host-osf.c: New file.
1803 * config/alpha/x-osf: New file.
1804 * config.host (alpha*-dec-osf*): Use it.
1806 2011-02-14 Anatoly Sokolov <aesok@post.ru>
1808 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1809 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
1810 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
1811 (rx_mode_dependent_address_p): ...this. Make static. Change argument
1813 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1815 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
1817 * config/stormy16/constraints.md: New file.
1818 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
1819 Use satisfies_constraint_Q and satisfies_constraint_R.
1820 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
1822 (xstormy16_legitiamte_address_p): Declare.
1823 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
1824 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1825 (EXTRA_CONSTRAINT): Delete.
1826 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1828 (xstormy16_extra_constraint_p): Delete.
1830 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
1832 PR tree-optimization/46494
1833 * loop-unroll.c (split_edge_and_insert): Adjust comment.
1834 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
1835 (pass_rtl_loop_done): Add TODO_verify_flow.
1836 * fwprop.c (pass_rtl_fwprop): Likewise.
1837 * modulo-sched.c (pass_sms): Likewise.
1838 * tree-ssa-dom.c (pass_dominator): Likewise.
1839 * tree-ssa-loop-ch.c (pass_ch): Likewise.
1840 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
1841 (pass_tree_loop_done): Likewise.
1842 * tree-ssa-pre.c (execute_pre): Likewise.
1843 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1844 * tree-ssa-sink.c (pass_sink_code): Likewise.
1845 * tree-vrp.c (pass_vrp): Likewise.
1847 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
1849 * config/v850/constraints.md: New file.
1850 * config/v850/v850.md: Include it.
1851 * config/v850/predicates.md (reg_or_0_operand): Use
1852 satisfies_constraint_G.
1853 (special_symbolref_operand): Use satisfies_constraint_K.
1854 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
1855 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1856 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
1857 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1858 (EXTRA_CONSTRAINT): Delete.
1859 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
1860 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
1861 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
1863 2011-02-14 Anatoly Sokolov <aesok@post.ru>
1866 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
1869 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
1871 * config/mcore/constraints.md: New file.
1872 * config/mcore/mcore.md: Include it.
1873 * config/mcore/mcore.c (reg_class_from_letter): Delete.
1874 * config/mcore/mcore.h (reg_class_from_letter): Delete.
1875 (REG_CLASS_FROM_LETTER): Delete.
1876 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
1877 insn_const_int_ok_for_constraint.
1878 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1879 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
1880 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1881 (EXTRA_CONSTRAINT): Delete.
1883 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1886 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
1887 (IS_SIGHANDLER): Define.
1888 (sparc64_is_sighandler): New function, split off from
1889 sparc64_fallback_frame_state.
1890 (sparc_is_sighandler): New function, split off from
1891 sparc_fallback_frame_state.
1892 (sparc64_fallback_frame_state): Merge with ...
1893 (sparc_fallback_frame_state): ... this into ...
1894 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
1895 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
1896 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
1897 stack instead of hardcoded offsets.
1899 2011-02-14 Andriy Gapon <avg@freebsd.org>
1902 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
1904 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1906 * configure: Regenerate.
1908 2011-02-12 Joseph Myers <joseph@codesourcery.com>
1911 * gcc.c (asm_options): Correct spec matching --target-help.
1913 2011-02-12 Martin Jambor <mjambor@suse.cz>
1915 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
1916 to gimple call error.
1918 2011-02-12 Mike Stump <mikestump@comcast.net>
1920 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
1921 comments in backslash regions.
1923 2011-02-12 Mike Stump <mikestump@comcast.net>
1924 Jakub Jelinek <jakub@redhat.com>
1925 Iain Sandoe <iains@gcc.gnu.org>
1928 * dwarf2out.c (output_cfa_loc): When required, apply the
1929 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
1930 (output_loc_sequence): Likewise.
1931 (output_loc_operands_raw): Likewise.
1932 (output_loc_sequence_raw): Likewise.
1933 (output_cfa_loc): Likewise.
1934 (output_loc_list): Suppress register number adjustment when
1935 calling output_loc_sequence()
1936 (output_die): Likewise.
1938 2011-02-12 Anatoly Sokolov <aesok@post.ru>
1940 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1942 * config/xtensa/xtensa.c (xtensa_register_move_cost,
1943 xtensa_memory_move_cost): New functions.
1944 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
1946 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
1949 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
1950 in the current directory.
1951 * configure: Rebuilt.
1953 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
1955 * config/darwin.c (darwin_override_options): Add a hunk missed
1956 from the commit of r168571. Trim comment line lengths and
1957 correct indents of the preceding block.
1959 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
1961 * gcc.c (driver_handle_option): Concatenate the argument to -F with
1964 2011-02-11 Joseph Myers <joseph@codesourcery.com>
1966 * common.opt (nostartfiles): New Driver option.
1968 2011-02-11 Xinliang David Li <davidxl@google.com>
1970 PR tree-optimization/47707
1971 * tree-chrec.c (convert_affine_scev): Keep type precision.
1973 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
1975 PR tree-optimization/47420
1976 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
1978 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
1980 PR rtl-optimization/47614
1981 * rtl.h (check_for_inc_dec): Declare.
1982 * dse.c (check_for_inc_dec): Externalize...
1983 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
1984 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
1986 2011-02-11 Joseph Myers <joseph@codesourcery.com>
1989 * gcc.c (main): Do not compile inputs if there were errors in
1991 * opts-common.c (read_cmdline_option): Check for wrong language
1992 after other error checks.
1994 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
1996 * cgraph.c: Fix comment typos.
1997 * cgraph.h: Likewise.
1998 * cgraphunit.c: Likewise.
1999 * ipa-cp.c: Likewise.
2000 * ipa-inline.c: Likewise.
2001 * ipa-prop.c: Likewise.
2002 * ipa-pure-const.c: Likewise.
2003 * ipa-ref.c: Likewise.
2004 * ipa-reference.c: Likewise.
2006 2011-02-11 Jakub Jelinek <jakub@redhat.com>
2009 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
2011 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2014 * doc/sourcebuild.texi (Require Support): Document
2015 dg-require-ascii-locale.
2017 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
2019 * doc/lto.texi (Write summary): Fix missing parentheses.
2021 2011-02-10 DJ Delorie <dj@redhat.com>
2023 * config/m32c/m32c.c (m32c_option_override): Disable
2024 -fcombine-stack-adjustments until flag value tracking and compare
2025 optimization can be rewritten.
2027 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
2029 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
2031 (PROCESSOR_DEFAULT64): Likewise.
2033 2011-02-10 Richard Henderson <rth@redhat.com>
2035 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
2036 change from 2011-02-03.
2037 * config/rx/rx.c (flags_from_code): Likewise.
2038 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
2039 is valid, n/pz otherwise.
2040 (rx_select_cc_mode): Return CCmode if Y is not zero.
2042 2011-02-10 Richard Guenther <rguenther@suse.de>
2044 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
2046 2011-02-10 Richard Guenther <rguenther@suse.de>
2048 PR tree-optimization/47677
2049 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
2051 2011-02-10 Jakub Jelinek <jakub@redhat.com>
2054 * combine.c (make_compound_operation): Only change shifts into
2055 multiplication for SCALAR_INT_MODE_P.
2057 2011-02-10 Jie Zhang <jie@codesourcery.com>
2061 2011-02-05 Jie Zhang <jie@codesourcery.com>
2063 * web.c (entry_register): Don't clobber the number of the
2064 first uninitialized reference in used[].
2066 2011-02-09 Richard Guenther <rguenther@suse.de>
2068 PR tree-optimization/47664
2069 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
2072 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
2076 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
2078 (PROCESSOR_DEFAULT64): Same.
2079 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
2081 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2083 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
2085 2011-02-09 Martin Jambor <mjambor@suse.cz>
2088 * tree-sra.c (struct access): New flags grp_scalar_read and
2089 grp_scalar_write. Changed description of assignment read and write
2091 (dump_access): Dump new flags, reorder all of them.
2092 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
2093 to detect multiple scalar reads.
2094 (analyze_access_subtree): Use the new scalar read write flags instead
2095 of the old flags. Adjusted comments.
2097 2011-02-08 DJ Delorie <dj@redhat.com>
2100 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
2103 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2105 * config/m68k/uclinux.opt: New.
2106 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
2108 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2110 * config/cris/elf.opt (sim): New Driver option.
2112 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2114 * config/xtensa/elf.opt: New.
2115 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
2117 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2119 * config/vax/elf.opt: New.
2120 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
2122 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2124 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
2126 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2128 * config/gnu-user.opt: New.
2129 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
2130 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
2131 *-*-uclinux*): Use gnu-user.opt.
2133 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
2135 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
2136 * config/i386/gnu.h (CPP_SPEC): Likewise.
2138 2011-02-08 Ian Lance Taylor <iant@google.com>
2140 * common.opt (fcx-limited-range): Add SetByCombined flag.
2141 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
2142 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
2143 (fassociative-math, freciprocal-math): Likewise.
2144 (funsafe-math-optimizations): Likewise.
2145 * opth-gen.awk: Handle SetByCombined.
2146 * optc-gen.awk: Likewise.
2147 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
2148 (set_unsafe_math_optimizations_flags): Likewise.
2149 * doc/options.texi (Option properties): Document SetByCombined.
2151 2011-02-08 Joseph Myers <joseph@codesourcery.com>
2153 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
2154 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
2155 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
2156 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
2157 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
2159 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
2161 PR tree-optimization/46834
2162 PR tree-optimization/46994
2163 PR tree-optimization/46995
2164 * graphite-sese-to-poly.c (used_outside_reduction): New.
2165 (detect_commutative_reduction): Call used_outside_reduction.
2166 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
2167 translate_scalar_reduction_to_array only when at least one
2168 loop-phi/close-phi tuple has been detected.
2170 2011-02-08 Richard Guenther <rguenther@suse.de>
2173 * tree-vect-generic.c (expand_vector_operations_1): Update
2175 (expand_vector_operations): ... not here. Cleanup EH info
2176 and the CFG if required.
2178 2011-02-08 Richard Guenther <rguenther@suse.de>
2180 PR tree-optimization/47641
2181 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
2182 require type compatibility.
2184 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2186 * gimple-low.c (lower_function_body): Don't remove the location of
2187 the return statement here.
2188 (lower_gimple_return): Do it here instead but only if the return
2189 statement is actually used twice.
2191 2011-02-08 Richard Guenther <rguenther@suse.de>
2193 PR tree-optimization/47632
2194 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
2195 unused up_to_stmt parameter, return whether cfg-cleanup is
2196 necessary, remove EH info properly.
2197 (forward_propagate_into_gimple_cond): Adjust caller.
2198 (forward_propagate_into_cond): Likewise.
2199 (forward_propagate_comparison): Likewise.
2200 (tree_ssa_forward_propagate_single_use_vars): Make
2201 forward_propagate_comparison case similar to the two others.
2203 2011-02-08 Nick Clifton <nickc@redhat.com>
2205 * config/mn10300/mn10300.opt (mliw): New command line option.
2206 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
2207 (liw_bundling): New automaton.
2208 (liw): New attribute.
2209 (liw_op): New attribute.
2210 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
2211 (movsi_internal): Add LIW attributes.
2215 (addsi3): Separate register and immediate alternatives.
2220 (lshrsi3): Likewise.
2221 (ashrsi3): Likewise.
2223 * config/mn10300/mn10300.c (liw_op_names): New
2224 (mn10300_print_operand): Handle 'W' operand descriptor.
2225 (extract_bundle): New function.
2226 (check_liw_constraints): New function.
2227 (liw_candidate): New function.
2228 (mn10300_bundle_liw): New function.
2229 (mn10300_reorg): New function.
2230 (TARGET_MACHINE_DEPENDENT_REORG): Define.
2231 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
2232 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
2233 __LIW__ or __NO_LIW__.
2234 * doc/invoke.texi: Describe the -mliw command line option.
2236 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2238 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
2239 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2240 pthread_mutex_unlock): Remove.
2241 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
2242 * config/pa/t-pa64: Likewise.
2243 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
2244 shared libc if not linking against libpthread.
2245 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2247 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
2250 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
2251 on 10.6 and later to ensure that we always use the unwinder from
2252 the system. Only add -no_compact_unwind when tarteting darwin
2255 2011-02-07 Steve Ellcey <sje@cup.hp.com>
2258 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
2259 (vec_interleave_lowv2sf): Ditto.
2260 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
2261 (vec_extract_oddv2sf): Ditto.
2263 2011-02-07 Mike Stump <mikestump@comcast.net>
2266 Add __ieee_divdc3 entry point.
2267 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
2269 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
2270 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
2271 * config/darwin.c (darwin_rename_builtins): Add.
2272 * config/darwin-protos.h (darwin_rename_builtins): Add.
2274 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
2277 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
2280 2011-02-07 Mike Stump <mikestump@comcast.net>
2282 * config/darwin.opt (mmacosx-version-min): Update default OS version.
2284 2011-02-07 Denis Chertykov <chertykov@gmail.com>
2287 * config/avr/libgcc.S (exit): Move .endfunc
2289 2011-02-07 Richard Guenther <rguenther@suse.de>
2291 PR tree-optimization/47615
2292 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
2293 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
2294 (run_scc_vn): Initialize it.
2295 (visit_reference_op_load): Use it.
2296 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
2298 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2300 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
2301 DImode trapping arithmetic libfuncs.
2303 2011-02-07 Richard Guenther <rguenther@suse.de>
2305 PR tree-optimization/47621
2306 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
2308 (execute_update_addresses_taken): ... here. Make it more
2309 conservative in what we accept.
2311 2011-02-06 Joseph Myers <joseph@codesourcery.com>
2313 * config/sparc/freebsd.h (ASM_SPEC): Define.
2314 * config/sparc/vxworks.h (ASM_SPEC): Define.
2316 2011-02-06 Joseph Myers <joseph@codesourcery.com>
2318 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
2320 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
2322 * doc/invoke.texi: Remove reference to compiler internals from
2325 * reg-notes.def: Remove REG_VALUE_PROFILE.
2326 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
2328 2011-02-05 Jakub Jelinek <jakub@redhat.com>
2331 * varasm.c (default_section_type_flags): If decl is NULL,
2332 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
2334 2011-02-05 Jie Zhang <jie@codesourcery.com>
2337 * web.c (entry_register): Don't clobber the number of the
2338 first uninitialized reference in used[].
2340 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
2342 PR tree-optimization/46194
2343 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
2344 (build_classic_dist_vector_1): Do not represent classic distance
2345 vectors when the access functions are variating in different loops.
2347 2011-02-04 Joseph Myers <joseph@codesourcery.com>
2349 * config/mips/iris6.opt: New.
2350 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
2352 2011-02-04 Richard Henderson <rth@redhat.com>
2353 Steve Ellcey <sje@cup.hp.com>
2356 * config/ia64/predicates.md (mux1_brcst_element): New.
2357 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
2358 * config/ia64/ia64.c (ia64_unpack_assemble): New.
2359 (ia64_unpack_sign): New.
2360 (ia64_expand_unpack): Rewrite using new routines.
2361 (ia64_expand_widen_sum): Ditto.
2362 (ia64_expand_dot_prod_v8qi): Ditto.
2363 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
2364 routines, add endian check.
2365 (pmpy2_even): Rename from pmpy2_r, add endian check.
2366 (pmpy2_odd): Rename from pmpy2_l, add endian check.
2367 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
2368 (vec_widen_smult_hi_v4hi): Ditto.
2369 (vec_widen_umult_lo_v4hi): Ditto.
2370 (vec_widen_umult_hi_v4hi): Ditto.
2371 (mulv2si3): Change endian checks.
2372 (sdot_prodv4hi): Rewrite with new calls.
2373 (udot_prodv4hi): New.
2374 (vec_pack_ssat_v4hi): Add endian check.
2375 (vec_pack_usat_v4hi): Ditto.
2376 (vec_pack_ssat_v2si): Ditto.
2377 (max1_even): Rename from max1_r, add endian check.
2378 (max1_odd): Rename from max1_l, add endian check.
2379 (*mux1_rev): Format change.
2381 (*mux1_shuf): Ditto.
2383 (*mux1_brcst_v8qi): Use new predicate.
2384 (vec_extract_evenv8qi): Remove endian check.
2385 (vec_extract_oddv8qi): Ditto.
2386 (vec_interleave_lowv4hi): Format change.
2387 (vec_interleave_highv4hi): Ditto.
2388 (mix2_even): Rename from mix2_r, add endian check.
2389 (mix2_odd): Rename from mux2_l, add endian check.
2390 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
2391 (vec_extract_evenodd_helper): Format change.
2392 (vec_extract_evenv4hi): Remove endian check.
2393 (vec_extract_oddv4hi): Remove endian check.
2394 (vec_interleave_lowv2si): Format change.
2395 (vec_interleave_highv2si): Format change.
2396 (vec_initv2si): Remove endian check.
2397 (vecinit_v2si): Add endian check.
2398 (reduc_splus_v2sf): Add endian check.
2399 (reduc_smax_v2sf): Ditto.
2400 (reduc_smin_v2sf): Ditto.
2401 (vec_initv2sf): Remove endian check.
2402 (fpack): Add endian check.
2403 (fswap): Add endian check.
2404 (vec_interleave_highv2sf): Add endian check.
2405 (vec_interleave_lowv2sf): Add endian check.
2406 (fmix_lr): Add endian check.
2407 (vec_setv2sf): Format change.
2408 (*vec_extractv2sf_0_be): Use shift to extract operand.
2409 (*vec_extractv2sf_1_be): New.
2410 (vec_pack_trunc_v4hi): Add endian check.
2411 (vec_pack_trunc_v2si): Format change.
2413 2011-02-04 Jakub Jelinek <jakub@redhat.com>
2416 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
2417 do bb, locus and block comparison and disallow loads if it is not set.
2418 (stmt_is_replaceable_p): New function.
2419 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
2421 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
2422 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
2424 * tree-flow.h (stmt_is_replaceable_p): New prototype.
2426 2011-02-04 Joseph Myers <joseph@codesourcery.com>
2428 * config/rs6000/xilinx.opt: New.
2429 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
2431 2011-02-04 Joseph Myers <joseph@codesourcery.com>
2433 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
2435 2011-02-03 Anatoly Sokolov <aesok@post.ru>
2437 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
2438 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2439 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
2440 secondary_reload_info, xtensa_secondary_reload): Remove.
2441 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
2442 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2443 (xtensa_preferred_reload_class): Make static. Change return and
2444 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
2445 Use CONST_DOUBLE_P predicate.
2446 (xtensa_preferred_output_reload_class): New function.
2447 (xtensa_secondary_reload): Make static.
2449 2011-02-03 Joseph Myers <joseph@codesourcery.com>
2451 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
2452 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
2453 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
2455 2011-02-03 Jakub Jelinek <jakub@redhat.com>
2458 * output.h (SECTION_RELRO): Define.
2459 (SECTION_MACH_DEP): Adjust.
2460 (get_variable_section): New prototype.
2461 * varpool.c (varpool_finalize_named_section_flags): New function.
2462 (varpool_assemble_pending_decls): Call it.
2463 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
2464 * cgraphunit.c (cgraph_output_in_order): Call
2465 varpool_finalize_named_section_flags.
2466 * varasm.c (get_section): Allow section flags conflicts between
2467 relro and read-only sections if the section hasn't been declared yet.
2468 Set SECTION_OVERRIDE after diagnosing section type conflict.
2469 (get_variable_section): No longer static.
2470 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
2471 readonly sections that need relocations.
2472 (decl_readonly_section_1): New function.
2473 (decl_readonly_section): Use it.
2476 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
2477 Steve Ellcey <sje@cup.hp.com>
2480 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2481 if section attribute used.
2483 2011-02-03 Jakub Jelinek <jakub@redhat.com>
2485 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
2486 * config/darwin.c (SECTION_NO_ANCHOR): Define.
2487 (darwin_init_sections): Remove assertion.
2489 2011-02-03 Nick Clifton <nickc@redhat.com>
2491 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
2493 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
2494 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
2495 instead of "n" and "pz".
2496 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
2499 2011-02-03 Jakub Jelinek <jakub@redhat.com>
2502 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
2503 fma, expand FMA_EXPR as fma{,f,l} call.
2506 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
2507 copy them into a unsigned char variable and pass address of it to
2508 lto_output_data_stream.
2511 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
2512 around backend_init_target and lang_dependent_init_target calls.
2513 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
2514 (verify_cgraph_node): Don't call set_cfun here. Use
2515 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
2516 Set error_found for incorrectly represented calls to thunks.
2518 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
2521 PR rtl-optimization/43494
2522 * rtl.h (for_each_inc_dec_fn): New type.
2523 (for_each_inc_dec): Declare.
2524 * rtlanal.c (struct for_each_inc_dec_ops): New type.
2525 (for_each_inc_dec_find_inc_dec): New fn.
2526 (for_each_inc_dec_find_mem): New fn.
2527 (for_each_inc_dec): New fn.
2528 * dse.c (struct insn_size): Remove.
2529 (replace_inc_dec, replace_inc_dec_mem): Remove.
2530 (emit_inc_dec_insn_before): New fn.
2531 (check_for_inc_dec): Use it, along with for_each_inc_dec.
2532 (canon_address): Pass mem modes to cselib_lookup.
2533 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
2534 (cselib_lookup_from_insn): Likewise.
2535 (cselib_subst_to_values): Likewise.
2536 * cselib.c (find_slot_memmode): New var.
2537 (cselib_find_slot): New fn. Use it instead of
2538 htab_find_slot_with_hash everywhere.
2539 (entry_and_rtx_equal_p): Use find_slot_memmode.
2540 (autoinc_split): New fn.
2541 (rtx_equal_for_cselib_p): Rename and implement in terms of...
2542 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
2543 Deal with autoinc. Special-case recursion into MEMs.
2544 (cselib_hash_rtx): Likewise.
2545 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
2546 address and MEM modes.
2547 (cselib_subst_to_values): Add memmode, pass it on.
2549 (cselib_lookup): Add memmode argument, pass it on.
2550 (cselib_lookup_from_insn): Add memmode.
2551 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
2552 (struct cselib_record_autoinc_data): New.
2553 (cselib_record_autoinc_cb): New fn.
2554 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
2555 mode to cselib_lookup. Reset autoinced REGs here instead of...
2556 (cselib_process_insn): ... here.
2557 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
2559 (add_uses): Likewise, also to cselib_subst_to_values.
2560 (add_stores): Likewise.
2561 * sched-deps.c (add_insn_mem_dependence): Pass mode to
2562 cselib_subst_to_values.
2563 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
2564 * gcse.c (do_local_cprop): Adjusted.
2565 * postreload.c (reload_cse_simplify_set): Adjusted.
2566 (reload_cse_simplify_operands): Adjusted.
2567 * sel-sched-dump (debug_mem_addr_value): Pass mode.
2569 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
2571 PR tree-optimization/45122
2572 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
2573 unsafe assumptions when there's more than one loop exit.
2575 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2578 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2579 Document using vector double with the load/store builtins, and
2580 that the load/store builtins always use Altivec instructions.
2582 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
2583 to use altivec memory instructions, even on VSX.
2584 (vector_altivec_store_<mode>): Ditto.
2586 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
2589 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2590 V2DF, V2DI support to load/store overloaded builtins.
2592 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
2593 altivec load/store builtins for V2DF/V2DI types.
2595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2596 set avoid indexed addresses on power6 if -maltivec.
2597 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
2598 vector_altivec_load/vector_altivec_store builtins.
2599 (altivec_expand_st_builtin): Ditto.
2600 (altivec_expand_builtin): Add VSX memory builtins.
2601 (rs6000_init_builtins): Add V2DI types to internal types.
2602 (altivec_init_builtins): Add support for V2DF/V2DI altivec
2603 load/store builtins.
2604 (rs6000_address_for_altivec): Insure memory address is appropriate
2607 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
2608 vec_vsx_ld and vec_vsx_st.
2609 (vsx_store_<mode>): Ditto.
2611 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
2612 variables to hold long long types for VSX vector memory builtins.
2613 (RS6000_BTI_unsigned_long_long): Ditto.
2614 (long_long_integer_type_internal_node): Ditti.
2615 (long_long_unsigned_type_internal_node): Ditti.
2617 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
2618 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
2619 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
2621 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
2623 (vec_vsx_st): Ditto.
2625 2011-02-02 Joseph Myers <joseph@codesourcery.com>
2627 * config/pa/pa-hpux10.opt: New.
2628 * config/hpux11.opt (pthread): New Driver option.
2629 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
2630 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
2632 2011-02-02 Joseph Myers <joseph@codesourcery.com>
2634 * config/ia64/vms.opt: New.
2635 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
2637 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2640 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
2641 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
2642 generator functions.
2643 (vsx_floatuns<VSi><mode>2): Ditto.
2644 (vsx_fix_trunc<mode><VSi>2): Ditto.
2645 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
2647 2011-02-02 Joseph Myers <joseph@codesourcery.com>
2649 * config/i386/djgpp.opt (posix): New Driver option.
2651 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
2653 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
2654 Move to the unsupported targets list.
2656 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
2658 PR rtl-optimization/47525
2659 * df-scan.c: Update copyright years.
2660 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
2661 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
2663 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2665 * config/i386/sysv4.h (TARGET_VERSION): Remove.
2666 (SUBTARGET_RETURN_IN_MEMORY): Remove.
2667 (ASM_OUTPUT_ASCII): Remove.
2668 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
2670 2011-02-02 Jeff Law <law@redhat.com>
2673 * reload.c (find_reloads_address): Handle reg+d address where both
2674 components are invalid by reloading the entire address.
2676 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
2677 Richard Guenther <rguenther@suse.de>
2679 PR tree-optimization/40979
2681 * passes.c (init_optimization_passes): After LIM call copy_prop
2682 and DCE to clean up.
2683 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
2685 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
2687 PR tree-optimization/47576
2688 PR tree-optimization/47555
2689 * doc/invoke.texi (scev-max-expr-complexity): Documented.
2690 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2691 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
2692 * tree-scalar-evolution.c (follow_ssa_edge): Use
2693 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
2695 2011-02-02 Richard Guenther <rguenther@suse.de>
2697 PR tree-optimization/47566
2698 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
2700 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
2704 * tree-inline.c (declare_return_variable): Remove unused caller
2709 * tree-flow-inline.h (clear_is_used, is_used_p): New.
2710 * cfgexpand.c (account_used_vars_for_block): Use them.
2711 * tree-nrv.c (tree_nrv): Likewise.
2712 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
2713 (dump_scope_block): Likewise.
2714 (remove_unused_locals): Likewise.
2718 * tree-inline.c (declare_return_variable): Add result decl to
2719 local decls only once.
2720 * gimple-low.c (record_vars_into): Mark newly-created variables
2723 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
2729 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2731 (no_real_insns_p, schedule_block, set_priorities): Drop special
2732 treatment of boundary debug insns.
2733 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2734 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
2735 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2736 (BOUNDARY_DEBUG_INSN_P): Likewise.
2737 (SCHEDULE_DEBUG_INSN_P): Likewise.
2738 * sched-rgn.c (init_ready_list): Drop special treatment of
2739 boundary debug insns.
2740 * final.c (rest_of_clean_state): Clear notes' BB.
2742 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2744 * config/openbsd.opt (assert=): New Driver option.
2746 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2748 * config/i386/nto.opt: New.
2749 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
2751 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2753 * config/i386/netware.opt: New.
2754 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
2756 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2758 * config/interix.opt (posix): New Driver option.
2760 2011-02-01 DJ Delorie <dj@redhat.com>
2762 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
2764 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
2767 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
2769 PR tree-optimization/47561
2770 * toplev.c (process_options): Print the Graphite flags. Add
2771 flag_loop_flatten to the list of options requiring Graphite.
2773 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2775 * config/i386/cygming.opt (posix): New Driver option.
2777 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2779 * config/arm/vxworks.opt: New.
2780 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
2782 2011-02-01 Joseph Myers <joseph@codesourcery.com>
2784 * config/alpha/elf.opt: New.
2785 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
2786 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
2788 2011-02-01 Richard Guenther <rguenther@suse.de>
2790 PR tree-optimization/47559
2791 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
2792 store-motion on references that can throw.
2794 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
2796 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
2797 * tree-pass.h (TDF_CSELIB): New macro.
2798 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
2799 cselib_lookup): Check for it rather than for TDF_DETAILS.
2801 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
2804 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
2807 * opts.c (finish_options): Don't add x_aux_base_name if it is
2810 2011-02-01 Richard Guenther <rguenther@suse.de>
2812 PR tree-optimization/47555
2814 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
2816 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2818 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
2821 * config/lm32/t-lm32: Add multilib for all CPU options.
2823 2011-02-01 Richard Guenther <rguenther@suse.de>
2825 PR tree-optimization/47541
2826 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2827 sure to have a field at offset zero.
2829 2011-01-31 Joseph Myers <joseph@codesourcery.com>
2831 * config/arc/arc.opt (EB, EL): New Driver options.
2833 2011-01-31 Joseph Myers <joseph@codesourcery.com>
2835 * config/alpha/osf5.opt: New.
2836 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
2838 2011-01-31 Joseph Myers <joseph@codesourcery.com>
2840 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
2842 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
2844 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
2846 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
2847 is an alias of -floop-interchange and that it requires the
2848 Graphite infrastructure.
2849 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
2850 flag_loop_interchange based on the value of flag_tree_loop_linear.
2852 2011-01-31 Jakub Jelinek <jakub@redhat.com>
2853 Richard Guenther <rguenther@suse.de>
2855 PR tree-optimization/47538
2856 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
2857 type instead of r1type, except for comparisons. For right
2858 shifts and comparisons punt if there are mismatches in
2859 sizetype vs. non-sizetype types.
2861 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2863 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2866 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2868 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
2870 * configure: Regenerate.
2872 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2874 * configure.ac (gcc_cv_ld_static_option): Define.
2875 (gcc_cv_ld_dynamic_option): Define.
2876 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
2878 (HAVE_LD_STATIC_DYNAMIC): Update message.
2879 (LD_STATIC_OPTION): Define.
2880 (LD_DYNAMIC_OPTION): Define.
2881 * configure: Regenerate.
2882 * config.in: Regenerate.
2883 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
2884 HAVE_LD_STATIC_DYNAMIC]: Use them.
2886 2011-01-31 Nick Clifton <nickc@redhat.com>
2888 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
2889 registers inside interrupt handlers if the handler is not a leaf
2892 2011-01-31 Nick Clifton <nickc@redhat.com>
2894 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
2895 reg_renumber returning an INVALID_REGNUM.
2897 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
2900 * doc/install.texi: Document host options discarded when cross
2901 configuring target libraries.
2903 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
2906 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
2909 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2911 (no_real_insns_p, schedule_block, set_priorities): Drop special
2912 treatment of boundary debug insns.
2913 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2914 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
2915 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2916 (BOUNDARY_DEBUG_INSN_P): Likewise.
2917 (SCHEDULE_DEBUG_INSN_P): Likewise.
2918 * sched-rgn.c (init_ready_list): Drop special treatment of
2919 boundary debug insns.
2920 * final.c (rest_of_clean-state): Clear notes' BB.
2922 2011-01-31 Alan Modra <amodra@gmail.com>
2924 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
2925 toc relative expressions as we do in print_operand_address.
2927 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
2929 * doc/extend.texi: Follow spelling conventions.
2930 * doc/invoke.texi: Fix a typo.
2932 2011-01-30 Joseph Myers <joseph@codesourcery.com>
2934 * config/hpux11.opt: New.
2935 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
2936 ia64*-*-hpux*): Use hpux11.opt.
2938 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
2940 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
2943 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
2945 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
2948 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
2950 * doc/install.texi (Binaries): Remove outdated reference for
2951 Motorola 68HC11/68HC12 downloads.
2953 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
2955 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
2958 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2961 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
2964 2011-01-28 Ahmad Sharif <asharif@google.com>
2966 * value-prof.c (check_counter): Corrected error message.
2968 2011-01-29 Jie Zhang <jie@codesourcery.com>
2970 * config/arm/arm.c (arm_legitimize_reload_address): New.
2971 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
2972 arm_legitimize_reload_address.
2973 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
2975 2011-01-28 Ian Lance Taylor <iant@google.com>
2977 * godump.c (go_define): Ignore macros whose definitions include
2978 two adjacent operands.
2980 2011-01-28 Jakub Jelinek <jakub@redhat.com>
2983 * varasm.c (force_const_mem): Store copy of x in desc->constant
2984 instead of x itself.
2985 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
2986 itself into REG_EQUAL note.
2988 2011-01-28 Joseph Myers <joseph@codesourcery.com>
2990 * config/freebsd.opt (posix, rdynamic): New Driver options.
2992 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2994 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
2996 * configure: Regenerate.
2998 2011-01-27 Joseph Myers <joseph@codesourcery.com>
3000 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
3001 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
3003 2011-01-27 Anatoly Sokolov <aesok@post.ru>
3005 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
3006 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
3007 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3008 (s390_preferred_reload_class): Make static. Change return and
3009 'rclass' argument type to reg_class_t.
3011 2011-01-27 Jan Hubicka <jh@suse.cz>
3014 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
3015 (process_function_and_variable_attributes): Check defined weakrefs.
3017 2011-01-27 Martin Jambor <mjambor@suse.cz>
3019 PR tree-optimization/47228
3020 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
3021 build_ref_for_offset.
3023 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3025 * config/spu/spu-elf.h (ASM_SPEC): Remove.
3027 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3029 PR rtl-optimization/46856
3030 * postreload.c (reload_combine_recognize_const_pattern): Do not
3031 separate cc0 setter and user on cc0 targets.
3033 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
3036 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
3037 passed a VOID_TYPE expression, immediately emit an error and
3038 return error_mark_node.
3040 2011-01-26 Jeff Law <law@redhat.com>
3042 PR rtl-optimization/47464
3043 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
3044 rather than may_trap_p as needed.
3046 2011-01-26 DJ Delorie <dj@redhat.com>
3048 PR rtl-optimization/46878
3049 * combine.c (insn_a_feeds_b): Check for the implicit cc0
3050 setter/user dependency as well.
3052 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
3054 PR rtl-optimization/44469
3055 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
3056 after removing trivially dead basic blocks.
3058 2011-01-26 Joseph Myers <joseph@codesourcery.com>
3060 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
3061 * config/frv/frv.h (LINK_SPEC): Likewise.
3062 * config/i386/netware.h (LINK_SPEC): Likewise.
3063 * config/m68k/linux.h (ASM_SPEC): Likewise.
3064 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
3065 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
3066 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3067 * config/sparc/linux.h (ASM_SPEC): Likewise.
3068 * config/sparc/linux64.h (ASM_SPEC): Likewise.
3069 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3071 2011-01-26 Joseph Myers <joseph@codesourcery.com>
3073 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
3074 * config/frv/frv.h (ASM_SPEC): Likewise.
3075 * config/m68k/linux.h (ASM_SPEC): Likewise.
3076 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
3077 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
3078 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3079 * config/sparc/linux.h (ASM_SPEC): Likewise.
3080 * config/sparc/linux64.h (ASM_SPEC): Likewise.
3081 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3083 2011-01-26 Joseph Myers <joseph@codesourcery.com>
3085 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
3086 * config/frv/frv.h (LINK_SPEC): Likewise.
3087 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
3089 2011-01-26 Joseph Myers <joseph@codesourcery.com>
3091 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
3092 * config/frv/frv.h (ASM_SPEC): Likewise.
3093 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
3094 * config/m68k/linux.h (ASM_SPEC): Likewise.
3095 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
3096 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
3097 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3098 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
3099 * config/sparc/linux.h (ASM_SPEC): Likewise.
3100 * config/sparc/linux64.h (ASM_SPEC): Likewise.
3101 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3102 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
3104 2011-01-26 Steve Ellcey <sje@cup.hp.com>
3107 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
3109 (vec_extract_evenodd_help): Ditto.
3110 (vec_extract_evenv4hi): Ditto.
3111 (vec_extract_oddv4hi): Ditto.
3112 (vec_interleave_lowv2si): Ditto.
3113 (vec_interleave_highv2si): Ditto.
3114 (vec_extract_evenv2si): Ditto.
3115 (vec_extract_oddv2si: Ditto.
3116 (vec_pack_trunc_v2si): Ditto.
3118 2011-01-22 Jan Hubicka <jh@suse.cz>
3121 * cgraph.h (cgraph_local_info): New field can_change_signature.
3122 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
3123 signature can change.
3124 (ipcp_estimate_growth): Call sequence simplify only if calle signature
3126 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
3127 (cgraph_function_versioning): We can not change signature of functions
3128 that don't allow that.
3129 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
3130 (lto_input_node): Likewise.
3131 * ipa-inline.c (compute_inline_parameters): Compute
3132 local.can_change_signature.
3133 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
3134 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
3135 functions that can not change signature.
3136 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
3137 init_cumulative_args): Do not use local calling conventions
3138 for functions that can not change signature.
3140 2011-01-22 Jan Hubicka <jh@suse.cz>
3142 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
3144 2011-01-26 Richard Guenther <rguenther@suse.de>
3146 PR tree-optimization/47190
3147 * cgraphunit.c (process_common_attributes): New function.
3148 (process_function_and_variable_attributes): Use it.
3150 2011-01-26 Richard Guenther <rguenther@suse.de>
3153 * cgraphbuild.c (record_eh_tables): Record reference to personality
3156 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
3159 * sel-sched.c (moveup_expr): Don't let debug insns prevent
3160 non-debug insns from moving up.
3162 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3165 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
3166 t-dlldir{,-x} fragment for build and add it to tmake_file.
3167 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
3168 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
3169 * config/i386/t-dlldir: New file.
3170 (SHLIB_DLLDIR): Define.
3171 * config/i386/t-dlldir-x: New file.
3172 (SHLIB_DLLDIR): Define.
3173 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
3174 (SHLIB_INSTALL): Use it.
3176 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
3179 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
3180 lower bound of the allowed Thumb-2 coprocessor load/store
3181 index range to -256. Add explaining comment.
3183 2011-01-25 Ian Lance Taylor <iant@google.com>
3185 * godump.c (go_define): Improve lexing of macro expansion to only
3186 accept expressions which match Go spec.
3188 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3191 * tree.c (handle_dll_attribute): Handle it.
3192 * doc/extend.texi (@item dllexport): Mention it.
3193 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
3195 2011-01-25 Ian Lance Taylor <iant@google.com>
3197 PR tree-optimization/26854
3198 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
3199 (decl_jump_unsafe): Move higher in file, with no other change.
3200 (bind): Set has_jump_unsafe_decl if appropriate.
3201 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
3202 (check_earlier_gotos): Likewise.
3203 (c_check_switch_jump_warnings): Likewise.
3205 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
3207 * doc/invoke.texi (Warning Options): Add missing hyphen.
3208 (-fprofile-dir): Minor grammatical fixes.
3209 (-fbranch-probabilities): Likewise.
3211 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
3215 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
3217 (no_real_insns_p, schedule_block, set_priorities): Drop special
3218 treatment of boundary debug insns.
3219 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
3220 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
3221 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
3222 (BOUNDARY_DEBUG_INSN_P): Likewise.
3223 (SCHEDULE_DEBUG_INSN_P): Likewise.
3224 * sched-rgn.c (init_ready_list): Drop special treatment of
3225 boundary debug insns.
3226 * final.c (rest_of_clean-state): Clear notes' BB.
3228 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3230 * Makefile.in (LAMBDA_H): Removed.
3231 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
3232 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
3233 lambda-trans.o, and tree-loop-linear.o.
3234 (lto-symtab.o): Remove dependence on LAMBDA_H.
3235 (tree-loop-linear.o): Remove rule.
3236 (lambda-mat.o): Same.
3237 (lambda-trans.o): Same.
3238 (lambda-code.o): Same.
3239 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
3240 (tree-vect-slp.o): Same.
3241 * hwint.h (gcd): Moved here.
3242 (least_common_multiple): Same.
3243 * lambda-code.c: Removed.
3244 * lambda-mat.c: Removed.
3245 * lambda-trans.c: Removed.
3246 * lambda.h: Removed.
3247 * tree-loop-linear.c: Removed.
3248 * lto-symtab.c: Do not include lambda.h.
3249 * omega.c (gcd): Removed.
3250 * passes.c (init_optimization_passes): Remove pass_linear_transform.
3251 * tree-data-ref.c (print_lambda_vector): Moved here.
3252 (lambda_vector_copy): Same.
3253 (lambda_matrix_copy): Same.
3254 (lambda_matrix_id): Same.
3255 (lambda_vector_first_nz): Same.
3256 (lambda_matrix_row_add): Same.
3257 (lambda_matrix_row_exchange): Same.
3258 (lambda_vector_mult_const): Same.
3259 (lambda_vector_negate): Same.
3260 (lambda_matrix_row_negate): Same.
3261 (lambda_vector_equal): Same.
3262 (lambda_matrix_right_hermite): Same.
3263 * tree-data-ref.h: Do not include lambda.h.
3264 (lambda_vector): Moved here.
3265 (lambda_matrix): Same.
3266 (dependence_level): Same.
3267 (lambda_transform_legal_p): Removed declaration.
3268 (lambda_collect_parameters): Same.
3269 (lambda_compute_access_matrices): Same.
3270 (lambda_vector_gcd): Same.
3271 (lambda_vector_new): Same.
3272 (lambda_vector_clear): Same.
3273 (lambda_vector_lexico_pos): Same.
3274 (lambda_vector_zerop): Same.
3275 (lambda_matrix_new): Same.
3276 * tree-flow.h (least_common_multiple): Removed declaration.
3277 * tree-parloops.c (lambda_trans_matrix): Moved here.
3279 (LTM_ROWSIZE): Same.
3280 (LTM_COLSIZE): Same.
3281 (LTM_DENOMINATOR): Same.
3282 (lambda_trans_matrix_new): Same.
3283 (lambda_matrix_vector_mult): Same.
3284 (lambda_transform_legal_p): Same.
3285 * tree-pass.h (pass_linear_transform): Removed declaration.
3286 * tree-ssa-loop.c (tree_linear_transform): Removed.
3287 (gate_tree_linear_transform): Removed.
3288 (pass_linear_transform): Removed.
3289 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
3290 flag_loop_interchange.
3292 2011-01-25 Jakub Jelinek <jakub@redhat.com>
3294 PR tree-optimization/47265
3295 PR tree-optimization/47443
3296 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
3297 if name still has some uses.
3299 2011-01-25 Martin Jambor <mjambor@suse.cz>
3301 PR tree-optimization/47382
3302 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
3303 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
3305 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
3307 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
3308 sjlj_except_unwind_info.
3310 2011-01-25 Richard Guenther <rguenther@suse.de>
3312 PR tree-optimization/47426
3313 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
3314 visible functions results escape.
3316 2011-01-25 Jakub Jelinek <jakub@redhat.com>
3319 * config/arm/arm.c (any_sibcall_uses_r3): New function.
3320 (arm_get_frame_offsets): Use it.
3322 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3323 Jakub Jelinek <jakub@redhat.com>
3325 PR tree-optimization/47271
3326 * tree-if-conv.c (bb_postdominates_preds): New.
3327 (if_convertible_bb_p): Call bb_postdominates_preds.
3328 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
3329 (predicate_scalar_phi): Call bb_postdominates_preds.
3331 2011-01-25 Nick Clifton <nickc@redhat.com>
3333 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
3334 * config/rx/rx.c (rx_function_value): Likewise.
3335 (rx_promote_function_mode): Likewise.
3336 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
3337 in order to make it legitimate.
3338 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
3339 make sure that the first operand is the same as the result register.
3340 (addsi3_unspec): Delete.
3341 (subdi3): Do not accept immediate operands.
3342 (subdi3_internal): Likewise.
3344 2011-01-25 Jeff Law <law@redhat.com>
3346 PR rtl-optimization/37273
3347 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3348 handle them like argument loads from stack slots. Do not double
3349 count memory for memory constants and argument loads from stack slots.
3351 2011-01-25 Jakub Jelinek <jakub@redhat.com>
3353 PR tree-optimization/47427
3354 PR tree-optimization/47428
3355 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3356 coalesce if the new root var would be TREE_READONLY.
3358 2011-01-25 Richard Guenther <rguenther@suse.de>
3361 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
3362 correct type for TBAA.
3364 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3366 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
3367 (close_phi_written_to_memory): Call for_each_index with
3368 dr_indices_valid_in_loop.
3370 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3372 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
3373 when it is initialized.
3375 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3377 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
3378 call to graphite_find_data_references_in_stmt.
3379 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
3380 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
3381 call to graphite_find_data_references_in_stmt.
3382 (analyze_drs_in_stmts): Same.
3383 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
3384 in which the scalar analysis of indices is performed.
3385 (create_data_ref): Same. Update call to dr_analyze_indices.
3386 (find_data_references_in_stmt): Update call to create_data_ref.
3387 (graphite_find_data_references_in_stmt): Same.
3388 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
3390 (create_data_ref): Same.
3391 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
3392 call to create_data_ref.
3394 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3396 * graphite-sese-to-poly.c (build_poly_scop): Move
3397 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
3399 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3401 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
3402 VAR_DECL, PARM_DECL, and RESULT_DECL.
3404 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3406 * graphite-dependences.c (reduction_dr_1): Allow several reductions
3408 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
3409 that have already been marked as PBB_IS_REDUCTION.
3411 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3413 * graphite-scop-detection.c (same_close_phi_node): New.
3414 (remove_duplicate_close_phi): New.
3415 (make_close_phi_nodes_unique): New.
3416 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
3418 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3420 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
3421 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
3422 of both data references to be the same.
3424 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3426 * graphite-dependences.c (build_lexicographical_constraint): Remove
3428 (build_lexicographical_constraint): Adjust call to
3429 ppl_powerset_is_empty.
3430 (dependence_polyhedron): Same.
3431 (graphite_legal_transform_dr): Same.
3432 (graphite_carried_dependence_level_k): Same.
3433 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
3435 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
3437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3439 * graphite-sese-to-poly.c
3440 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
3441 (close_phi_written_to_memory): New.
3442 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
3445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3447 * doc/install.texi: Update the expected version number of PPL to 0.11.
3448 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
3449 #if PPL_VERSION_MINOR < 11.
3451 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3453 * graphite-dependences.c: Include graphite-cloog-util.h.
3454 (new_poly_ddr): Inlined into dependence_polyhedron.
3455 (free_poly_ddr): Moved close by new_poly_ddr.
3456 (dependence_polyhedron_1): Renamed dependence_polyhedron.
3457 Early return NULL when ppl_powerset_is_empty returns true.
3458 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
3459 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
3460 (graphite_legal_transform_dr): Call new_poly_ddr.
3461 (graphite_carried_dependence_level_k): Same.
3462 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
3463 (dot_transformed_deps_stmt_1): Removed.
3464 (dot_deps_stmt_1): Call dot_deps_stmt_2.
3465 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
3466 (dot_deps_1): Call dot_deps_2.
3467 * Makefile.in (graphite-dependences.o): Add missing dependence on
3468 graphite-cloog-util.h.
3470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3472 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
3473 (build_lexicographical_constraint): Same.
3474 (dependence_polyhedron_1): Same.
3475 (graphite_legal_transform_dr): Same.
3476 (graphite_carried_dependence_level_k): Same.
3477 * graphite-ppl.c (ppl_powerset_is_empty): New.
3478 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
3479 * tree-data-ref.c (dump_data_reference): Print the basic block index.
3481 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3483 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
3484 the "a followed by b" relation and document it.
3486 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3488 * graphite-dependences.c (build_lexicographical_constraint): Stop the
3489 iteration when the bag of constraints is empty.
3491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3493 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
3495 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3497 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
3498 nest and two loop depths as parameters.
3499 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
3500 lst_perfect_nestify.
3502 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3504 * graphite-dependences.c (print_pddr): Call
3505 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
3507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3509 * graphite-ppl.c (debug_gmp_value): New.
3510 * graphite-ppl.h (debug_gmp_value): Declared.