2011-03-21 Andreas Tobler <andreast@fgznet.ch>
[official-gcc.git] / gcc / ChangeLog
blobc1062ca588d98d30b6d0da9cd53ce92c104c9d3e
1 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
3         * config/rs6000/t-freebsd: Remove duplication from file.
5 2011-03-21  Richard Guenther  <rguenther@suse.de>
7         PR middle-end/47661
8         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10 2011-03-21  Richard Guenther  <rguenther@suse.de>
12         PR lto/48210
13         * params.def (lto-partitions): Require at least 1 partition.
15 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17         * gthr-solaris.h: Remove.
18         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
19         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20         (LIB_SPEC): Likewise.
21         * config/sol2.opt (threads): Remove.
22         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads
23         support.
24         (sparc*-*-solaris2*): Likewise.
25         * configure.ac (enable_threads): Enable solaris support.
26         * configure: Regenerate.
27         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove
28         -threads.
29         * doc/install.texi (Configuration, --enable-threads=lib): Remove
30         solaris.
32 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34         * config.gcc: Obsolete *-*-solaris2.8*.
35         * doc/install.texi (Specific, *-*-solaris2*): Document it.
37 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39         PR bootstrap/48135
40         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
41         reference.  Solaris 8 perl works.
43 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
45         PR bootstrap/48135
46         * doc/install.texi (Prerequisites): Move jar etc. up.
47         Explain support library version requirements.
49 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
51         PR bootstrap/48135
52         * doc/install.texi (Prerequisites): Move Perl to build
53         requirements.  Always necessary on Solaris 2 with Sun ld.
55 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
57         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
58         binutils 2.21.
59         (Specific, i?86-*-solaris2.[89]): Likewise.
60         (Specific, i?86-*-solaris2.10): Likewise.
61         (Specific, mips-sgi-irix6): Likewise.
62         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
63         Update for binutils 2.21.
65 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
67         * configure.ac (gcc_cv_lto_plugin): Fix typo.
68         Allow -fuse-linker-plugin for non-default plugin linker.
69         * configure: Regenerate.
71 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
73         PR bootstrap/48167
74         * gengtype.c (files_rules): Added rule for cp/parser.h.
76 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
78         PR target/48213
79         * config/s390/s390.c (s390_delegitimize_address): Don't call
80         lowpart_subreg if orig_x has BLKmode.
82 2011-03-21  Kai Tietz  <ktietz@redhat.com>
84         PR target/12171
85         * doc/plugins.texi: Adjust documentation
86         for plugin register_callback.
87         * tree.h (attribute_spec): Add new member
88         affects_type_identity.
89         - Zitierten Text anzeigen -
90         * attribs.c (empty_attribute_table): Adjust
91         attribute_spec initializers.
92         * config/alpha/alpha.c: Likewise.
93         * config/arc/arc.c: Likewise.
94         * config/arm/arm.c: Likewise.
95         * config/avr/avr.c: Likewise.
96         * config/bfin/bfin.c: Likewise.
97         * config/crx/crx.c: Likewise.
98         * config/darwin.h: Likewise.
99         * config/h8300/h8300.c: Likewise.
100         * config/i386/cygming.h: Likewise.
101         * config/i386/i386.c: Likewise.
102         * config/ia64/ia64.c: Likewise.
103         * config/m32c/m32c.c: Likewise.
104         * config/m32r/m32r.c: Likewise.
105         * config/m68hc11/m68hc11.c: Likewise.
106         * config/m68k/m68k.c: Likewise.
107         * config/mcore/mcore.c: Likewise.
108         * config/mep/mep.c: Likewise.
109         * config/microblaze/microblaze.c: Likewise.
110         * config/mips/mips.c: Likewise.
111         * config/rs6000/rs6000.c: Likewise.
112         * config/rx/rx.c: Likewise.
113         * config/sh/sh.c: Likewise.
114         * config/sol2.h: Likewise.
115         * config/sparc/sparc.c: Likewise.
116         * config/spu/spu.c: Likewise.
117         * config/stormy16/stormy16.c: Likewise.
118         * config/v850/v850.c: Likewise.
120 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
122         * simplify-rtx.c (simplify_binary_operation_1): Handle
123         (xor (and A B) C) case when B and C are both constants.
125 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
127         * tree-dfa.c (add_referenced_var): Fix typo in comment.
129 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
131         PR bootstrap/48168
132         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
134 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
136         PR rtl-optimization/48156
137         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
138         assume df and df_lr are not NULL.
140 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
142         PR debug/48023
143         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
144         between a call and its CALL_ARG_LOCATION note.
146 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
148         PR debug/48178
149         * config/sh/sh.c (find_barrier): Don't emit a constant pool
150         between a call and its corresponding CALL_ARG_LOCATION note.
152 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
154         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
155         instead of loop. Use HARD_REGISTER_NUM_P predicate.
156         * haifa-sched.c (setup_ref_regs): Ditto.
157         * caller-save.c (add_used_regs_1): Ditto.
158         * dse.c (look_for_hardregs): Ditto.
159         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
160         * sched-rgn.c (check_live_1): Ditto.
162 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
164         * c-decl.c (diagnose_mismatched_decls): Give an error for
165         redefining a typedef with variably modified type.
167 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
169         * c-decl.c (grokfield): Don't allow typedefs for structures or
170         unions with no tag by default.
171         * doc/extend.texi (Unnamed Fields): Update.
173 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
175         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
176         Rewrite using indirect functions.
177         (lwp_slwpcb): Ditto.
178         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
179         (avx_vinsertf128<mode>): Ditto.
181 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
183         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
184         unspecs.
186 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
188         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
189         splitting between a call and its corresponding CALL_ARG_LOCATION
190         note.
192 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
194         PR rtl-optimization/48170
195         * gcse.c (hoist_code): Remove bogus asserts.
197 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
199         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
200         computation for prologue/epilogue.
202 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
204         * Makefile.in (check-consistency): Remove.
206 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
208         PR debug/48176
209         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
210         arange_table_in_use is 0, but either text_section_used or
211         cold_text_section_used is true.  Don't call it if
212         !info_section_emitted.
214 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
216         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
217         FUNCTION_VALUE_REGNO_P): Remove.
218         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
219         Remove.
220         * config/avr/avr.c (avr_ret_register): Make static inline.
221         (avr_function_value_regno_p): New function.
222         (avr_libcall_value): Make static. Add 'func' argument.
223         (avr_function_value): Make static. Rename 'func' argument to
224         'fn_decl_or_type', forward it to avr_libcall_value. Call
225         avr_ret_register function instead of RET_REGISTER macro.
226         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
228 2011-03-18  Jason Merrill  <jason@redhat.com>
230         PR c++/23372
231         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
233 2011-03-18  Richard Guenther  <rguenther@suse.de>
235         * doc/install.texi (--enable-gold): Remove.
236         (--with-plugin-ld): Document.
237         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
239 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
241         PR middle-end/47790
242         * expr.c (optimize_bitfield_assignment_op): Revamp to work
243         again after expansion changes.
245 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
247         * combine.c (try_combine): Do simplification only call of
248         subst() on i2 even when i1 is present. Update comments.
250 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
252         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
253         and UNSPEC_PCREL_SYMOFF.
255 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
257         * config/s390/s390.md: Use define_c_enum for the unspec constant
258         definitions.
260 2011-03-18  Richard Henderson  <rth@redhat.com>
261             Jakub Jelinek  <jakub@redhat.com>
263         PR bootstrap/48161
264         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
265         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
267 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
269         PR middle-end/47725
270         * combine.c (cant_combine_insn_p): Don't check zero/sign
271         extended hard registers.
273 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
275         PR middle-end/47725
276         * combine.c (cant_combine_insn_p): Check zero/sign extended
277         hard registers.
279 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
281         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
282         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
283         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
284         Change return type to bool.
285         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
287 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
289         PR debug/48163
290         * var-tracking.c (prepare_call_arguments): If CALL target
291         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
292         pc instead of looking it up using cselib_lookup and use
293         Pmode for it if x has VOIDmode.
294         * dwarf2out.c (gen_subprogram_die): If also both first and
295         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
297         PR debug/48163
298         * function.c (assign_parms): For data.passed_pointer parms
299         use MEM of data.entry_parm instead of data.entry_parm itself
300         as DECL_INCOMING_RTL.
301         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
302         also when passed and declared mode is the same, DECL_RTL
303         is a MEM with pseudo as address and DECL_INCOMING_RTL is
304         a MEM too.
306 2011-03-16  Jeff Law  <law@redhat.com>
308         PR rtl-optimization/37273
309         * ira-costs.c (scan_one_insn): Detect constants living in memory and
310         handle them like argument loads from stack slots.  Do not double
311         count memory for memory constants and argument loads from stack slots.
313 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
315         PR debug/48160
316         * var-tracking.c (prepare_call_arguments): Check SUBREG.
318 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
320         PR target/48171
321         * config/i386/i386.opt: Add Save to -mavx and -mfma.
323 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
325         PR bootstrap/48153
326         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
327         if dwarf_strict.
328         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
329         Clear call_arg_locations and call_arg_loc_last always.
331         PR middle-end/48152
332         * var-tracking.c (prepare_call_arguments): If argument needs to be
333         passed by reference, adjust argtype and mode.
335 2011-03-17  Richard Guenther  <rguenther@suse.de>
337         PR middle-end/48134
338         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
339         a value make sure to fold the statement.
341 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
343         PR target/43872
344         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
345         return condition with !cfun->calls_alloca.
347 2011-03-17  Richard Guenther  <rguenther@suse.de>
349         PR bootstrap/48148
350         * lto-cgraph.c (input_overwrite_node): Clear the abstract
351         origin for decls in other ltrans units.
352         (input_varpool_node): Likewise.
354 2011-03-17  Richard Guenther  <rguenther@suse.de>
356         PR middle-end/48165
357         * tree-object-size.c (compute_object_offset): Properly return
358         the offset operand of MEM_REFs as sizetype.
360 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
362         PR rtl-optimization/48141
363         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
364         * dse.c: Include params.h.
365         (active_local_stores_len): New variable.
366         (add_wild_read, dse_step1): Clear it when setting active_local_stores
367         to NULL.
368         (record_store, check_mem_read_rtx): Decrease it when removing
369         from the chain.
370         (scan_insn): Likewise.  Increase it when adding to chain, if it
371         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
372         set active_local_stores to NULL before the addition.
373         * Makefile.in (dse.o): Depend on $(PARAMS_H).
375         PR rtl-optimization/48141
376         * dse.c (record_store): If no positions are needed in an insn
377         that cannot be deleted, at least unchain it from active_local_stores.
379 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
381         PR debug/47510
382         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
383         (lookup_type_die_strip_naming_typedef): ... here.
384         (get_context_die): Use it.
385         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
386         the anonymous struct named by the naming typedef.
388 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
390         PR target/48154
391         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
392         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
394 2011-03-16  Jeff Law  <law@redhat.com>
396         * tree-vrp.c (identify_jump_threads): Slightly simplify type
397         check for operands of conditional.  Allow type to be a pointer.
399 2011-03-16  Richard Guenther  <rguenther@suse.de>
401         PR tree-optimization/48149
402         * fold-const.c (fold_binary_loc): Fold
403         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
405 2011-03-16  Richard Guenther  <rguenther@suse.de>
407         PR tree-optimization/26134
408         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
409         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
410         (non_rewritable_mem_ref_base): Handle complex type component
411         accesses, constrain offsets for vector and complex extracts
412         more properly.
414 2011-03-16  Richard Guenther  <rguenther@suse.de>
416         PR tree-optimization/48146
417         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
418         operands avoiding the need for renaming.
420 2011-03-16  Richard Guenther  <rguenther@suse.de>
422         * gimple-fold.c (maybe_fold_reference): Open-code relevant
423         constant folding.  Move MEM_REF canonicalization first.
424         Rely on fold_const_aggregate_ref for initializer folding.
425         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
427 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
429         PR middle-end/48136
430         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
431         arg0/arg1 or their arguments are always fold converted to matching
432         types.
434         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
435         to nargs.
437 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
439         PR lto/46944
440         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
441         Handle in-tree gold.
442         (ld_vers): Extract binutils version for gold.
443         (gcc_cv_ld_hidden): Handle gold here.
444         (gcc_cv_lto_plugin): Determine level of linker plugin support.
445         * configure: Regenerate.
446         * config.in: Regenerate.
447         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
448         -fuse-linker-plugin otherwise.
449         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
450         (LINK_COMMAND_SPEC): Use it.
451         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
453 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
455         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
456         * calls.c: Remove debug.h include.
457         (emit_call_1): Don't call virtual_call_token debug hook.
458         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
459         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
460         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
461         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
462         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
463         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
464         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
465         dwarf2out_virtual_call): Remove.
466         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
467         copy_call_info and virtual_call hooks.
468         (dwarf2out_init): Don't initialize vcall_insn_table,
469         debug_dcall_section and debug_vcall_section.
470         (prune_unused_types): Don't mark nodes from dcall_table.
471         (dwarf2out_finish): Don't output dcall or vcall tables.
472         * final.c (final_scan_insn): Don't call direct_call or
473         virtual_call debug hooks.
474         * debug.h (struct gcc_debug_hooks): Remove direct_call,
475         virtual_call_token, copy_call_info and virtual_call hooks.
476         (debug_nothing_uid): Remove prototype.
477         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
478         copy_call_info and virtual_call hooks.
479         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
480         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
481         * debug.c (do_nothing_debug_hooks): Likewise.
482         (debug_nothing_uid): Remove.
483         * doc/invoke.texi (-fenable-icf-debug): Remove.
484         * common.opt (-fenable-icf-debug): Likewise.
486         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
487         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
488         call's MEM.  Handle functions returning aggregate through a hidden
489         first pointer.  For virtual calls add clobbered pc to call arguments
490         chain.
491         * dwarf2out.c (gen_subprogram_die): Emit
492         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
493         can't be emitted.
495         PR debug/45882
496         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
497         * rtl.h (ENTRY_VALUE_EXP): Define.
498         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
499         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
500         * print-rtl.c (print_rtx): Likewise.
501         * gengtype.c (adjust_field_rtx_def): Likewise.
502         * var-tracking.c (vt_add_function_parameter): Adjust
503         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
504         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
505         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
506         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
507         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
509         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
510         Call var_location debug hook even on CALL_INSNs.
511         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
512         * rtl.def (ENTRY_VALUE): New.
513         * dwarf2out.c: Include cfglayout.h.
514         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
515         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
516         (struct call_arg_loc_node): New type.
517         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
518         tail_call_site_count): New variables.
519         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
520         DW_TAG_GNU_call_site_parameter.
521         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
522         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
523         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
524         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
525         and DW_AT_GNU_all_source_call_sites.
526         (mem_loc_descriptor): Handle ENTRY_VALUE.
527         (add_src_coords_attributes): Don't add enything if
528         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
529         (dwarf2out_abstract_function): Save and clear call_arg_location,
530         call_site_count and tail_call_site_count around dwarf2out_decl call.
531         (gen_call_site_die): New function.
532         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
533         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
534         (dwarf2out_function_decl): Clear call_arg_locations,
535         call_arg_loc_last, set call_site_count and tail_call_site_count
536         to -1 and free block_map.
537         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
538         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
539         followed by any real instructions.
540         (dwarf2out_begin_function): Set call_site_count and
541         tail_call_site_count to 0.
542         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
543         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
544         attempt to force a DIE for it and worst case remove the attribute.
545         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
546         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
547         the decl itself.
548         * var-tracking.c: Include tm_p.h.
549         (vt_stack_adjustments): For calls call note_register_arguments.
550         (argument_reg_set): New variable.
551         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
552         ensure the VALUE is resolved.
553         (call_arguments): New variable.
554         (prepare_call_arguments): New function.
555         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
556         (struct expand_loc_callback_data): Add ignore_cur_loc field.
557         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
558         always use the best expression.
559         (vt_expand_loc): Add ignore_cur_loc argument.
560         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
561         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
562         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
563         note for all calls.
564         (vt_add_function_parameter): Use cselib_lookup_from_insn.
565         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
566         argument.  Don't call cselib_preserve_only_values and
567         cselib_reset_table.
568         (note_register_arguments): New function.
569         (vt_initialize): Compute argument_reg_set.  Call
570         vt_add_function_parameters before processing basic blocks instead of
571         afterwards.  For calls call prepare_call_arguments before calling
572         cselib_process_insn.
573         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
574         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
575         (var-tracking.o): Depend on $(TM_P_H).
576         * cfglayout.h (insn_scope): New prototype.
577         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
578         * cfglayout.c (insn_scope): No longer static.
579         * insn-notes.def (CALL_ARG_LOCATION): New.
580         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
581         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
582         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
583         nothing for DECL_EXTERNAL BLOCK_VARS.
585 2011-03-16  Alan Modra  <amodra@gmail.com>
587         PR target/45844
588         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
589         create invalid offset address for vsx splat insn.
590         * config/rs6000/predicates.md (splat_input_operand): New.
591         * config/rs6000/vsx.md (vsx_splat_*): Use it.
593 2011-03-15  Xinliang David Li  <davidxl@google.com>
595         PR c/47837
596         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
597         (normalize_preds): New function.
598         (is_use_properly_guarded): Normalize def predicates.
600 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
602         PR target/46778
603         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
604         in the output template.
606 2011-03-15  Richard Guenther  <rguenther@suse.de>
608         PR middle-end/47650
609         * tree-pretty-print.c (dump_function_declaration): Properly
610         dump unprototyped and varargs function types.
612 2011-03-15  Richard Guenther  <rguenther@suse.de>
614         PR tree-optimization/13954
615         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
616         and friends.
618 2011-03-15  Richard Guenther  <rguenther@suse.de>
620         PR tree-optimization/48037
621         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
622         selects into BIT_FIELD_REFs.
623         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
624         vector select.
626 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
628         PR tree-optimization/48129
629         * builtins.c (fold_builtin_snprintf): Convert to type of
630         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
631         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
633 2011-03-15  Richard Guenther  <rguenther@suse.de>
635         PR tree-optimization/41490
636         * tree-ssa-dce.c (propagate_necessity): Handle returns without
637         value but with VUSE.
638         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
639         return statements.
640         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
641         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
642         * tree-tailcall.c (find_tail_calls): Ignore returns.
644 2011-03-15  Richard Guenther  <rguenther@suse.de>
646         PR middle-end/48031
647         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
648         or variable-indexed array accesses when in gimple form.
650 2011-03-15  Richard Guenther  <rguenther@suse.de>
652         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
654 2011-03-15  Alan Modra  <amodra@gmail.com>
656         PR target/48032
657         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
658         presume symbol_refs without a symbol_ref_decl are suitably
659         aligned, nor other trees we may see here.  Handle anchor symbols.
660         (legitimate_constant_pool_address_p): Comment.  Add mode param.
661         Check cmodel=medium addresses.  Adjust all calls.
662         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
663         creating cmodel=medium optimized access to locals.
664         * config/rs6000/constraints.md (R): Pass QImode to
665         legitimate_constant_pool_address_p.
666         * config/rs6000/predicates.md (input_operand): Pass mode to
667         legitimate_constant_pool_address_p.
668         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
669         Update prototype.
671 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
673         PR target/48053
674         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
675         64-bit constants being loaded into registers other than GPRs such
676         as loading 0 into a VSX register.
678 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
680         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
682 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
684         PR middle-end/47917
685         * builtins.c (fold_builtin_snprintf): New function.
686         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
687         (fold_builtin_4): Likewise.
689         PR middle-end/38878
690         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
691         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
692         and C - X == X also strip nops from +/-/p+ operand.
693         When optimizing -X == C, fold C to arg0's type.
695         PR debug/47946
696         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
697         emit it as add_AT_int instead of add_AT_unsigned.
699 2011-03-14  Tom Tromey  <tromey@redhat.com>
701         * unwind-dw2.c: Include sys/sdt.h if it exists.
702         (_Unwind_DebugHook): Use STAP_PROBE2.
703         * config.in, configure: Rebuild.
704         * configure.ac: Check for sys/sdt.h.
706 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
708         * config/i386/i386.md (ROUND_FLOOR): New constant.
709         (ROUND_CEIL): Ditto.
710         (ROUND_TRUNC): Ditto.
711         (ROUND_MXCSR): Ditto.
712         (ROUND_NO_EXC): Ditto.
713         (rint<mode>2): Use new defines instead of numerical constants.
714         (floor<mode>2): Ditto.
715         (ceil<mode>2): Ditto.
716         (btrunc<mode>2): Ditto.
717         * config/i386/i386-builtin-types.def: Define ROUND function type
718         aliases.
719         * config/i386/i386.c (enum ix86_builtins): Add
720         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
721         (struct builtin_description): Add
722         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
723         (ix86_expand_sse_round): New static function.
724         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
725         function types.
726         (ix86_builtin_vectorized_function): Handle
727         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
729 2011-03-14  Tom Tromey  <tromey@redhat.com>
731         * c-parser.c (c_parser_asm_string_literal): Clear
732         warn_overlength_strings.
734 2011-03-14  Tom Tromey  <tromey@redhat.com>
736         * c-parser.c (disable_extension_diagnostics): Save
737         warn_overlength_strings.
738         (restore_extension_diagnostics): Restore warn_overlength_strings.
740 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
742         * BASE-VER: Change to 4.7.0.
744 2011-03-14  Richard Guenther  <rguenther@suse.de>
746         PR middle-end/48098
747         * tree.c (build_vector_from_val): Adjust assert to requirements
748         and reality.
750 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
752         PR bootstrap/48102
753         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
755 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
757         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
758         terms of target_flags_explicit. Adjust copyright year.
760         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
761         * config/rs6000/t-freebsd: New file. Add override for
762         LIB2FUNCS_EXTRA.
764 2011-03-13  Chris Demetriou  <cgd@google.com>
766         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
767         (-fno-diagnostics-show-option): this, to reflect current default.
768         (-Werror=): Update text about -fno-diagnostics-show-option.
770 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
772         PR target/48053
773         * config/rs6000/predicates.md (easy_vector_constant_add_self,
774         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
775         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
776         mode is not V2DImode or V2DFmode.
777         (vspltis_constant): Do not handle V2DImode and V2DFmode.
778         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
779         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
780         registers to 0.
781         (movdi_internal64): Likewise.
783 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
785         PR tree-optimization/47127
786         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
787         parameter.
788         (set_cloog_options): Same.
789         (scop_to_clast): Same.
790         (print_clast_stmt): Do not call cloog_state_malloc and
791         cloog_state_free.
792         (print_generated_program): Same.
793         (gloog): Same.
794         * graphite-clast-to-gimple.h (cloog_state): Declared.
795         (scop_to_clast): Adjust declaration.
796         * graphite.c (cloog_state): Defined here.
797         (graphite_initialize): Call cloog_state_malloc.
798         (graphite_finalize): Call cloog_state_free.
800 2011-03-11  Jason Merrill  <jason@redhat.com>
802         * attribs.c (lookup_attribute_spec): Take const_tree.
803         * tree.h: Adjust.
805 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
807         * config/sparc/sparc.c (sparc_option_override): Use
808         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
810 2011-03-11  Richard Guenther  <rguenther@suse.de>
812         PR tree-optimization/48067
813         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
814         multiplication result will be only used once on the target
815         stmt.
817 2011-03-11  Richard Guenther  <rguenther@suse.de>
819         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
821 2011-03-11  Richard Guenther  <rguenther@suse.de>
823         PR lto/48073
824         * tree.c (find_decls_types_r): Do not walk types only reachable
825         from IDENTIFIER_NODEs.
827 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
829         PR middle-end/48044
830         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
831         all vnode->force_output nodes as needed.
833 2011-03-11  Jason Merrill  <jason@redhat.com>
835         PR c++/48069
836         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
837         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
839 2011-03-11  Martin Jambor  <mjambor@suse.cz>
841         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
842         cgraph_node.
844 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
846         PR tree-optimization/48063
847         * ipa-inline.c (cgraph_decide_inlining): Don't try to
848         inline functions called once if !tree_can_inline_p (node->callers).
850 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
852         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
853         extra_objs.
854         * config/score/score3.c: Delete.
855         * config/score/score3.h: Delete.
856         * config/score/mul-div.S: Delete.
857         * config/score/sfp-machine.h: Add new file.
858         * config/score/constraints.md: Add new file.
859         * config/score/t-score-softfp: Add new file.
860         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
861         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
862         (score7_extra_constraint): Delete.
863         (score7_option_override): Remove unused code.
864         * config/score/score.c: Remove score3 and score5 define and code.
865         * config/score/score.h: Remove score3 and score5 define and code.
866         * config/score/score.md: Remove score3 template and unusual insn.
867         * config/score/score.opt: Remove score3 and score5 options.
869 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
871         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
872         when _HPUX_SOURCE is defined.
873         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
875 2011-03-10  Jason Merrill  <jason@redhat.com>
877         PR c++/48029
878         * stor-layout.c (layout_type): Don't set structural equality
879         on arrays of incomplete type.
880         * tree.c (type_hash_eq): Handle comparing them properly.
882 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
884         PR debug/48043
885         * config/s390/s390.c (s390_delegitimize_address): Make sure the
886         result mode matches original rtl mode.
888 2011-03-10  Nick Clifton  <nickc@redhat.com>
890         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
891         (andsi3, andsi3_flags): Fix timings for three operand alternative.
893 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
895         PR rtl-optimization/47866
896         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
897         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
898         if target wasn't scalar.
899         * function.c (assign_stack_temp_for_type): Assert that neither
900         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
901         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
902         macro.
903         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
905 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
907         * config/s390/s390-protos.h (s390_label_align): New prototype.
908         * config/s390/s390.c (s390_label_align): New function.
909         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
911 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
913         PR target/47755
914         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
915         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
916         (output_vec_const_move): Ditto.
918 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
920         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
921         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
922         * config/mips/mips.c (mips_preferred_reload_class): Make static.
923         Change 'rclass' argument and result type to reg_class_t.
924         (TARGET_PREFERRED_RELOAD_CLASS): Define.
926 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
928        * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
929        * config/avr/avr.c (TARGET_REGISTER_MOVE_COST,
930        TARGET_MEMORY_MOVE_COST): Define.
931        (avr_register_move_cost, avr_memory_move_cost): New Functions.
933 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
935         PR debug/47881
936         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
937         removed anything.
939         PR tree-optimization/48022
940         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
941         for EQ/NE_EXPR.
943 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
945         PR debug/47991
946         * var-tracking.c (find_use_val): Return NULL for
947         cui->sets && cui->store_p BLKmode MEMs.
949 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
951         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
952         Remove.
953         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
954         xstormy16_print_operand_address): Remove.
955         * config/stormy16/stormy16.c (xstormy16_print_operand,
956         xstormy16_print_operand_address): Make static.
957         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
959 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
961         PR target/47862
962         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
963         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
964         before definition.
966 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
968         PR bootstrap/48000
969         * cfgloopmanip.c (fix_bb_placements): Return immediately
970         if FROM is BASE_LOOP's header.
972 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
974         * gimplify.c (gimplify_function_tree): Fix building calls
975         to __builtin_return_address.
977 2011-03-07  Alan Modra  <amodra@gmail.com>
979         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
980         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
981         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
982         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
983         return_mode args.
984         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
985         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
986         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
987         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
988         * config/rs6000/rs6000.c
989         (rs6000_elf_end_indicate_exec_stack): Rename to..
990         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
991         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
992         (rs6000_file_start): ..here.
993         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
994         file scope variables.
995         (call_ABI_of_interest): New function.
996         (init_cumulative_args): Set above vars when function return value
997         is a float, vector, or small struct.
998         (rs6000_function_arg_advance_1): Likewise for function args.
999         (rs6000_va_start): Set rs6000_passes_float if variable arg function
1000         references float args.
1002 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
1004         * doc/cfg.texi: Remove "See" before @ref.
1005         * doc/invoke.texi: Likewise.
1007 2011-03-05  Jason Merrill  <jason@redhat.com>
1009         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
1011 2011-03-05  Anthony Green  <green@moxielogic.com>
1013         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
1015 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
1017         PR rtl-optimization/47899
1018         * cfgloopmanip.c (fix_bb_placements): Fix first argument
1019         to flow_loop_nested_p when moving the loop upward.
1021 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
1023         PR target/47719
1024         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
1026 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
1028         PR tree-optimization/47967
1029         * ipa-cp.c (build_const_val): Return NULL instead of creating
1030         VIEW_CONVERT_EXPR for mismatching sizes.
1031         (ipcp_create_replace_map): Return NULL if build_const_val failed.
1032         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
1033         give up on versioning.
1035 2011-03-05  Alan Modra  <amodra@gmail.com>
1037         PR target/47986
1038         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1039         full cmodel medium/large lo_sum + high addresses.
1041 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1043         * config/s390/s390.c (s390_decompose_address): Reject non-literal
1044         pool references in UNSPEC_LTREL_OFFSET.
1046 2011-03-04  Jan Hubicka  <jh@suse.cz>
1048         PR lto/47497
1049         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
1050         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
1051         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
1052         Add node pointers.
1053         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
1054         cgraph_add_thunk): Add node pointers.
1055         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
1056         associated to right node.
1057         (input_node): Update use of cgraph_same_body_alias
1058         and cgraph_add_thunk.
1060 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
1062         * config/i386/i386.opt (mprefer-avx128): New flag.
1063         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
1064         modes when the flag -mprefer-avx128 is on.
1066 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
1068         * dwarf2out.c (compare_loc_operands): Fix address handling.
1070 2011-03-04  Alan Modra  <amodra@gmail.com>
1072         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
1074 2011-03-04  Richard Guenther  <rguenther@suse.de>
1076         PR middle-end/47968
1077         * expmed.c (extract_bit_field_1): Prefer vector modes that
1078         vec_extract patterns can handle.
1080 2011-03-04  Richard Guenther  <rguenther@suse.de>
1082         PR middle-end/47975
1083         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
1085 2011-03-04  Richard Henderson  <rth@redhat.com>
1087         * explow.c (emit_stack_save): Remove 'after' parameter.
1088         (emit_stack_restore): Likewise.
1089         * expr.h: Update to match.
1090         * builtins.c, calls.c, stmt.c: Likewise.
1091         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
1092         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
1093         * function.c (expand_function_end): Insert the emit_stack_save
1094         sequence before parm_birth_insn instead of after.
1096 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
1098         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
1099         (ssse3_pmaddubsw128): Ditto.
1100         (ssse3_pmaddubsw): Ditto.
1102 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
1104         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
1106 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
1108         PR c/47963
1109         * gimplify.c (omp_add_variable): Only call omp_notice_variable
1110         on TYPE_SIZE_UNIT if it is a DECL.
1112         PR debug/47283
1113         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
1114         first operand is not is_gimple_mem_ref_addr, try to fold it.
1115         If the operand still isn't is_gimple_mem_ref_addr, clear
1116         MEM_EXPR on op0.
1118 2011-03-03  Richard Guenther  <rguenther@suse.de>
1120         PR middle-end/47283
1121         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
1122         match comment.
1123         (refs_may_alias_p_1): For release branches return true if
1124         we are confused by our input.
1126 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1128         * config/s390/s390.c (s390_function_value): Rename to ...
1129         (s390_function_and_libcall_value): ... this.
1130         (s390_function_value): New function.
1131         (s390_libcall_value): New function.
1132         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
1133         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
1134         target macro definitions.
1135         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
1137 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
1139         * config/i386/freebsd64.h (CC1_SPEC): Define.
1140         * config/i386/linux64.h (CC1_SPEC): Define.
1141         * config/i386/x86-64.h (CC1_SPEC): Don't define.
1143 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
1145         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1146         Remove.
1147         * config/stormy16/stormy16.c: Include reload.h.
1148         (xstormy16_memory_move_cost): New function.
1149         (TARGET_MEMORY_MOVE_COST): Define.
1151 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
1153         PR rtl-optimization/47925
1154         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
1155         with side effects.  Remove the more-specific check for volatile asms.
1157 2011-03-02  Alan Modra  <amodra@gmail.com>
1159         PR target/47935
1160         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
1161         toc relative addresses for valid offsets.
1163 2011-03-01  Richard Guenther  <rguenther@suse.de>
1165         PR tree-optimization/47890
1166         * tree-vect-loop.c (get_initial_def_for_induction): Set
1167         related stmt properly.
1169 2011-03-01  Richard Guenther  <rguenther@suse.de>
1171         PR lto/47924
1172         * lto-streamer.c (lto_record_common_node): Also register
1173         the canonical type.
1175 2011-03-01  Richard Guenther  <rguenther@suse.de>
1177         PR lto/46911
1178         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1179         Do not stream DECL_ABSTRACT_ORIGIN.
1180         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
1181         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
1182         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1183         Do not stream DECL_ABSTRACT_ORIGIN.
1184         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
1185         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
1187 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
1189         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
1190         FUNCTION_VALUE_REGNO_P): Remove.
1191         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
1192         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
1193         Add 'outgoing' argument.
1194         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
1195         function.
1196         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1197         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1199 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
1201         PR debug/28047
1202         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
1203         (lookup_filename): Likewise.
1204         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
1206 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
1207             Jakub Jelinek  <jakub@redhat.com>
1209         PR middle-end/47893
1210         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
1211         (assign_stack_local_1): Change last argument type to int.
1212         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
1213         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
1214         don't record padding space into frame_space_list nor use those areas.
1215         (assign_stack_local): Adjust caller.
1216         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
1217         of assign_stack_local, pass 0 as last argument.
1218         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
1219         callers.
1221 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
1223         PR debug/47283
1224         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
1225         Use target address_mode and pointer_mode hooks instead of hardcoded
1226         Pmode and ptr_mode.  Handle some simple cases of extending if
1227         POINTERS_EXTEND_UNSIGNED < 0.
1228         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
1229         Call convert_debug_memory_address.
1230         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
1231         convert_debug_memory_address.
1233         PR middle-end/46790
1234         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
1235         * configure: Regenerated.
1236         * config.in: Regenerated.
1237         * varasm.c (default_function_section): Return NULL
1238         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1240 2011-02-28  Martin Jambor  <mjambor@suse.cz>
1242         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
1243         the description to match the printed values.
1245 2011-02-28  Richard Guenther  <rguenther@suse.de>
1247         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
1248         of the copied scope tree.
1250 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1252         * doc/extend.texi (Function Attributes): Avoid deeply (and
1253         wrongly) nested tables.
1255 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1257         PR middle-end/47903
1258         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
1259         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
1260         r isn't op0 nor op1.
1262 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
1264         * config/avr/avr.md: Remove magic comment for emacs.
1266 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
1268         PR target/45261
1269         * config/avr/avr.c (avr_option_override): Use error on bad options.
1270         (avr_help): New function.
1271         (TARGET_HELP): Define.
1273 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
1275         PR target/42240
1276         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
1277         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
1279 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
1281         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
1282         (ARM Options): Ditto.
1283         (i386 and x86-64 Options): Ditto.
1284         (RX Options): Ditto.
1285         (SPARC Options): Ditto.
1287 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
1289         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
1290         FreeBSD 6 and later.  Generally use cpu generic.
1292 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
1294         * doc/cpp.texi: Update copyright years.
1296 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
1298         PR target/46898
1299         * config/lm32/lm32.md (ashrsi3): Added needed variable.
1301 2011-02-25  Jon Beniston  <jon@beniston.com>
1303         PR target/46898
1304         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
1305         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
1306         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
1307         (lm32_block_move_inline): Add type cast to remove warning.
1308         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
1309         (gen_int_relational): Move declarations to start of function.
1311 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
1313         PR tree-optimization/45470
1314         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
1315         can throw internally only.
1316         * tree-vect-stmts.c (vectorizable_call): Likewise.
1318 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
1320         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
1321         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1322         * config/stormy16/stormy16-protos.h
1323         (xstormy16_preferred_reload_class): Remove.
1324         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
1325         static. Change 'rclass' argument and return type to reg_class_t.
1326         (TARGET_PREFERRED_RELOAD_CLASS,
1327         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1329 2011-02-24  Richard Guenther  <rguenther@suse.de>
1331         * lto-streamer-in.c (input_bb): Do not find referenced vars
1332         in debug statements.
1334 2011-02-23  Jason Merrill  <jason@redhat.com>
1336         * common.opt (fabi-version): Document v5 and v6.
1338 2011-02-23  Richard Guenther  <rguenther@suse.de>
1340         PR tree-optimization/47849
1341         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
1343 2011-02-23  Jie Zhang  <jie@codesourcery.com>
1345         * opts-common.c (decode_cmdline_option): Print empty string
1346         argument as "" in decoded->orig_option_with_args_text.
1347         * gcc.c (execute): Print empty string argument as ""
1348         in the verbose output.
1349         (do_spec_1): Keep empty string argument.
1351 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
1353         * config.gcc: Declare score-* and crx-* obsolete.
1355 2011-02-23  Jie Zhang  <jie@codesourcery.com>
1357         PR rtl-optimization/47763
1358         * web.c (web_main): Ignore naked clobber when replacing register.
1360 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
1362         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1363         Remove.
1365 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
1367         PR doc/47848
1368         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
1370 2011-02-22  Mike Stump  <mikestump@comcast.net>
1372         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
1373         assembler.
1374         * configure: Regenerate.
1376 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
1378         PR rtl-optimization/46002
1379         * ira-color.c (update_copy_costs): Change class intersection
1380         test to reg_class_contents[] test of 'hard_regno'.
1382 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
1384         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
1385         than Driver option.
1386         * config/hpux11.opt (mt): Likewise.
1387         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
1388         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
1389         * config/vax/elf.opt (mno-asm-pic): Likewise.
1390         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
1392 2011-02-21  Mike Stump  <mikestump@comcast.net>
1394         PR target/47822
1395         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
1396         tree so we can get save the type.
1397         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
1398         for CFString instead of trying to use past the end of the builtins.
1399         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
1400         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
1401         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
1402         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
1403         Rename to darwin_builtin_cfstring.
1404         (darwin_init_cfstring_builtins): Return the built type.
1406 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
1408         PR target/47840
1409         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
1410         (_mm256_insert_epi64): Use _mm_insert_epi64.
1412 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
1414         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1415         * config/stormy16/stormy16-protos.h
1416         (xstormy16_mode_dependent_address_p): Remove.
1417         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
1418         Make static. Change return type to bool. Change argument type to
1419         const_rtx. Remove dead code.
1420         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1422 2011-02-21  Richard Guenther  <rguenther@suse.de>
1424         PR lto/47820
1425         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1426         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
1427         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
1428         TUs context.
1429         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1430         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
1432 2011-02-20  Richard Guenther  <rguenther@suse.de>
1434         PR lto/47822
1435         * tree.c (free_lang_data_in_decl): Clean builtins from
1436         the TU decl BLOCK_VARS.
1438 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
1440         PR debug/47620
1441         PR debug/47630
1442         * haifa-sched.c (fix_tick_ready): Skip tick computation
1443         for debug insns.
1445 2011-02-19  Richard Guenther  <rguenther@suse.de>
1447         PR lto/47647
1448         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1449         Remove lazy BLOCK_VARS streaming.
1450         (lto_input_ts_block_tree_pointers): Likewise.
1451         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1453 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
1455         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
1457 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
1459         * config/i386/biarch32.h, config/i386/mach.h,
1460         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
1462 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
1464         PR target/47800
1465         * config/i386/i386.md (peephole2 for shift and plus): Use
1466         operands[1] original mode in the first insn.
1468 2011-02-18  Mike Stump  <mikestump@comcast.net>
1470         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
1472 2011-02-18  Jan Hubicka  <jh@suse.cz>
1474         PR middle-end/47788
1475         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
1476         to zero when the function is not inlinable at all.
1478 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1480         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
1481         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1482         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
1483         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
1484         * config/pa/t-pa64: Likewise.
1485         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1487 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1489         PR driver/47787
1490         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
1492 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1494         PR target/47792
1495         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
1497 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
1499         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1500         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
1501         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
1502         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1503         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
1504         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
1505         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
1506         m32r_load_postinc_p, m32r_store_preinc_predec_p,
1507         m32r_legitimate_address_p): New functions.
1508         * config/m32r/constraints.md (constraint "S"): Don't use
1509         STORE_PREINC_PREDEC_P.
1510         (constraint "U"): Don't use LOAD_POSTINC_P.
1512 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
1514         PR rtl-optimization/46178
1515         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
1516         compute ira_hard_regno_cover_class[].
1518 2011-02-18  Richard Guenther  <rguenther@suse.de>
1520         PR lto/47798
1521         * lto-streamer.h (lto_global_var_decls): Declare.
1522         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
1523         statics for global var processing.
1525 2011-02-18  Richard Guenther  <rguenther@suse.de>
1527         PR tree-optimization/47737
1528         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
1529         edge dominance check.
1531 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1533         PR debug/47780
1534         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
1535         avoid invalid rtx sharing.
1537 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
1539         * doc/cpp.texi (Obsolete Features): Add background on the
1540         origin of assertions.
1542 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
1544         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
1545         objc_abi == 2.
1546         * config/darwin.c (output_objc_section_asm_op): Added support for
1547         ABI v1 and v2.
1548         (is_objc_metadata): New.
1549         (darwin_objc2_section): New.
1550         (darwin_objc1_section): New.
1551         (machopic_select_section): Added support for ABI v1 and v2.
1552         (darwin_emit_objc_zeroed): New.
1553         (darwin_output_aligned_bss): Detect objc metadata and treat it
1554         appropriately.
1555         (darwin_asm_output_aligned_decl_common): Same.
1556         (darwin_asm_output_aligned_decl_local): Same.
1557         * config/darwin-sections.def: Updated for ABI v1 and v2.
1558         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
1559         compiling Objective-C code for the NeXT runtime, default to using
1560         ABI version 0 for 32-bit, and version 2 for 64-bit.
1562 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1564         * common.opt (optimize_fast): New Variable.
1565         * opts.c (default_options_optimization): Use opts->x_optimize_fast
1566         instead of local variable ofast.
1568 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1570         * doc/invoke.texi (fobjc-abi-version): Documented.
1571         (fobjc-nilcheck): Documented.
1572         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
1573         version.
1575 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1577         PR driver/47390
1578         * common.opt (export-dynamic): New Driver option.
1579         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
1581 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1583         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
1585 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
1586             Jan Hubicka  <jh@suse.cz>
1588         PR debug/47106
1589         PR debug/47402
1590         * cfgexpand.c (account_used_vars_for_block): Remove.
1591         (estimated_stack_frame_size): Use referenced vars.
1592         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
1593         that were referenced in the original function.  Test src_fn
1594         rather than cfun.  Drop redundant get_var_ann.
1595         (setup_one_parameter): Drop redundant get_var_ann.
1596         (declare_return_variable): Likewise.
1597         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
1598         (copy_arguments_for_versioning): Drop redundant get_var_ann.
1599         * ipa-inline.c (compute_inline_parameters): Do not compute
1600         disregard_inline_limits here.
1601         (compute_inlinable_for_current, pass_inlinable): New.
1602         (pass_inline_parameters): Require PROP_referenced_vars.
1603         * cgraphunit.c (cgraph_process_new_functions): Don't run
1604         compute_inline_parameters explicitly unless function is in SSA form.
1605         (cgraph_analyze_function): Set .disregard_inline_limits.
1606         * tree-sra.c (convert_callers): Compute inliner parameters
1607         only for functions already in SSA form.
1609 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1611         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
1612         -mlittle-endian-data.
1614 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1616         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
1617         -mno-fpu, not -fpu and -no-fpu.
1618         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
1619         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
1621 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
1623         PR target/43653
1624         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
1625         input reload with PLUS RTX.
1627 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1629         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
1630         of InverseVar(MDMX).
1632 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1634         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
1635         --m4-340.
1637 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1639         * config/mn10300/mn10300.opt (mno-crt0): New.
1641 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1643         * config/m68k/uclinux.opt (static-libc): New Driver option.
1645 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1647         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
1649 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1651         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
1652         %{muser-extend-enabled}.
1654 2011-02-16  Richard Guenther  <rguenther@suse.de>
1656         PR tree-optimization/47738
1657         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
1658         the TODO from tree_predictive_commoning.
1660 2011-02-15  Jeff Law  <law@redhat.com>
1662         Revert
1663         2011-01-25  Jeff Law  <law@redhat.com>
1665         PR rtl-optimization/37273
1666         * ira-costs.c (scan_one_insn): Detect constants living in memory and
1667         handle them like argument loads from stack slots.  Do not double
1668         count memory for memory constants and argument loads from stack slots.
1670 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
1672         PR middle-end/47725
1673         * combine.c (cant_combine_insn_p): Revert the last change.
1675 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1677         PR target/47755
1678         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
1679         mode for vector constants.  Remove code that checks for TImode.
1681 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1683         PR debug/47106
1684         PR debug/47402
1685         * cgraph.h (compute_inline_parameters): Return void.
1686         * ipa-inline.c (compute_inline_parameters): Adjust.
1688 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1690         PR debug/47106
1691         PR debug/47402
1692         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
1693         rather than decl.
1694         * cfgexpand.c (estimated_stack_frame_size): Likewise.
1695         * ipa-inline.c (compute_inline_parameters): Adjust.
1697 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1699         PR debug/47106
1700         PR debug/47402
1701         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
1702         Adjust all users.  Pass FN to...
1703         * tree-flow-inline.h (first_referenced_var): ... this.  Add
1704         fn argument.
1705         * ipa-struct-reorg.c: Adjust.
1706         * tree-dfa.c: Adjust.
1707         * tree-into-ssa.c: Adjust.
1708         * tree-sra.c: Adjust.
1709         * tree-ssa-alias.c: Adjust.
1710         * tree-ssa-live.c: Adjust.
1711         * tree-ssa.c: Adjust.
1712         * tree-ssanames.c: Adjust.
1713         * tree-tailcall.c: Adjust.
1715 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1717         PR debug/47106
1718         PR debug/47402
1719         * tree-flow.h (referenced_var_lookup): Add fn parameter.
1720         Adjust all callers.
1721         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
1722         * tree-flow-inline.h: Adjust.
1723         * gimple-pretty-print.c: Adjust.
1724         * tree-into-ssa.c: Adjust.
1725         * tree-ssa.c: Adjust.
1726         * cfgexpand.c: Adjust.
1728 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
1730         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
1731         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1732         (EXTRA_CONSTRAINT): Delete.
1733         * config/iq2000/constraints.md: New file.
1734         * config/iq2000/iq2000.md: Include it.
1735         (define_insn ""): Delete.
1736         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
1737         unsupported constraint letters from patterns.
1738         (call_value, call_value_internal1): Likewise.
1739         (call_value_multiple_internal1): Likewise.
1741 2011-02-15  Nick Clifton  <nickc@redhat.com>
1743         * config/mn10300/mn10300.c: Include tm-constrs.h.
1744         (struct liw_data): New data structure describing an LIW candidate
1745         instruction.
1746         (extract_bundle): Use struct liw_data.  Allow small integer
1747         operands for some instructions.
1748         (check_liw_constraints): Use struct liw_data.  Remove swapped
1749         parameter.  Add comments describing the checks.  Fix bug when
1750         assigning the source of liw1 to the source of liw2.
1751         (liw_candidate): Delete.  Code moved into extract_bundle.
1752         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
1753         before swapping.
1754         * config/mn10300/predicates.md (liw_operand): New predicate.
1755         Allows registers and small integer constants.
1756         * config/mn10300/constraints.md (O): New constraint.  Accetps
1757         integers in the range -8 to +7 inclusive.
1758         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
1759         for moving a small integer into a register.  Give this alternative
1760         LIW attributes.
1761         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
1762         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
1763         using the J,K,L and M constraints,
1764         (liw): Remove SI mode on second operands to allow for HI and QI
1765         mode values.
1766         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
1767         instruction.
1769 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
1771         PR middle-end/47725
1772         * combine.c (cant_combine_insn_p): Check zero/sign extended
1773         hard registers.
1775 2011-02-15  Richard Guenther  <rguenther@suse.de>
1777         PR tree-optimization/47743
1778         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
1779         for a non-type-compatible VN lookup bail out.
1781 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
1783         * config/fr30/constraints.md: New file.
1784         * config/fr30/fr30.md: Include it.
1785         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
1786         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1787         (EXTRA_CONSTRAINT): Delete.
1789 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
1791         * config/frv/constraints.md: New file.
1792         * config/frv/predicates.md: Include it.
1793         * config/frv/frv.c (reg_class_from_letter): Delete.
1794         (frv_option_override): Don't initialize it.
1795         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
1796         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
1797         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
1798         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1799         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
1800         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1801         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
1802         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
1803         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
1804         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
1805         (REG_CLASS_FROM_CONSTRAINT): Delete.
1807 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
1809         PR middle-end/47581
1810         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
1811         if frame size is 0 in a leaf function.
1813 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1815         PR pch/14940
1816         * config/alpha/host-osf.c: New file.
1817         * config/alpha/x-osf: New file.
1818         * config.host (alpha*-dec-osf*): Use it.
1820 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
1822         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1823         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
1824         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
1825         (rx_mode_dependent_address_p): ...this. Make static. Change argument
1826         type to const_rtx.
1827         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1829 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
1831         * config/stormy16/constraints.md: New file.
1832         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
1833         Use satisfies_constraint_Q and satisfies_constraint_R.
1834         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
1835         Delete.
1836         (xstormy16_legitiamte_address_p): Declare.
1837         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
1838         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1839         (EXTRA_CONSTRAINT): Delete.
1840         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1841         Un-staticize.
1842         (xstormy16_extra_constraint_p): Delete.
1844 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1846         PR tree-optimization/46494
1847         * loop-unroll.c (split_edge_and_insert): Adjust comment.
1848         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
1849         (pass_rtl_loop_done): Add TODO_verify_flow.
1850         * fwprop.c (pass_rtl_fwprop): Likewise.
1851         * modulo-sched.c (pass_sms): Likewise.
1852         * tree-ssa-dom.c (pass_dominator): Likewise.
1853         * tree-ssa-loop-ch.c (pass_ch): Likewise.
1854         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
1855         (pass_tree_loop_done): Likewise.
1856         * tree-ssa-pre.c (execute_pre): Likewise.
1857         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1858         * tree-ssa-sink.c (pass_sink_code): Likewise.
1859         * tree-vrp.c (pass_vrp): Likewise.
1861 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
1863         * config/v850/constraints.md: New file.
1864         * config/v850/v850.md: Include it.
1865         * config/v850/predicates.md (reg_or_0_operand): Use
1866         satisfies_constraint_G.
1867         (special_symbolref_operand): Use satisfies_constraint_K.
1868         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
1869         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1870         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
1871         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1872         (EXTRA_CONSTRAINT): Delete.
1873         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
1874         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
1875         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
1877 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
1879         PR target/47696
1880         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
1881         description.
1883 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
1885         * config/mcore/constraints.md: New file.
1886         * config/mcore/mcore.md: Include it.
1887         * config/mcore/mcore.c (reg_class_from_letter): Delete.
1888         * config/mcore/mcore.h (reg_class_from_letter): Delete.
1889         (REG_CLASS_FROM_LETTER): Delete.
1890         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
1891         insn_const_int_ok_for_constraint.
1892         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1893         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
1894         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1895         (EXTRA_CONSTRAINT): Delete.
1897 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1899         PR ada/41929
1900         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
1901         (IS_SIGHANDLER): Define.
1902         (sparc64_is_sighandler): New function, split off from
1903         sparc64_fallback_frame_state.
1904         (sparc_is_sighandler): New function, split off from
1905         sparc_fallback_frame_state.
1906         (sparc64_fallback_frame_state): Merge with ...
1907         (sparc_fallback_frame_state): ... this into ...
1908         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
1909         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
1910         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
1911         stack instead of hardcoded offsets.
1913 2011-02-14  Andriy Gapon  <avg@freebsd.org>
1915         PR target/45808
1916         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
1918 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1920         * configure: Regenerate.
1922 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
1924         PR driver/45731
1925         * gcc.c (asm_options): Correct spec matching --target-help.
1927 2011-02-12  Martin Jambor  <mjambor@suse.cz>
1929         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
1930         to gimple call error.
1932 2011-02-12  Mike Stump  <mikestump@comcast.net>
1934         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
1935         comments in backslash regions.
1937 2011-02-12  Mike Stump  <mikestump@comcast.net>
1938             Jakub Jelinek  <jakub@redhat.com>
1939             Iain Sandoe  <iains@gcc.gnu.org>
1941         PR target/47324
1942         * dwarf2out.c (output_cfa_loc): When required, apply the
1943         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
1944         (output_loc_sequence): Likewise.
1945         (output_loc_operands_raw): Likewise.
1946         (output_loc_sequence_raw): Likewise.
1947         (output_cfa_loc): Likewise.
1948         (output_loc_list): Suppress register number adjustment when
1949         calling output_loc_sequence()
1950         (output_die): Likewise.
1952 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
1954         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1955         Remove macros.
1956         * config/xtensa/xtensa.c (xtensa_register_move_cost,
1957         xtensa_memory_move_cost): New functions.
1958         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
1960 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
1962         PR lto/47225
1963         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
1964         in the current directory.
1965         * configure: Rebuilt.
1967 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
1969         * config/darwin.c (darwin_override_options): Add a hunk missed
1970         from the commit of r168571.  Trim comment line lengths and
1971         correct indents of the preceding block.
1973 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
1975         * gcc.c (driver_handle_option): Concatenate the argument to -F with
1976         the switch.
1978 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
1980         * common.opt (nostartfiles): New Driver option.
1982 2011-02-11  Xinliang David Li  <davidxl@google.com>
1984         PR tree-optimization/47707
1985         * tree-chrec.c (convert_affine_scev): Keep type precision.
1987 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
1989         PR tree-optimization/47420
1990         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
1992 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
1994         PR rtl-optimization/47614
1995         * rtl.h (check_for_inc_dec): Declare.
1996         * dse.c (check_for_inc_dec): Externalize...
1997         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
1998         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
2000 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
2002         PR driver/47678
2003         * gcc.c (main): Do not compile inputs if there were errors in
2004         option handling.
2005         * opts-common.c (read_cmdline_option): Check for wrong language
2006         after other error checks.
2008 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
2010         * cgraph.c: Fix comment typos.
2011         * cgraph.h: Likewise.
2012         * cgraphunit.c: Likewise.
2013         * ipa-cp.c: Likewise.
2014         * ipa-inline.c: Likewise.
2015         * ipa-prop.c: Likewise.
2016         * ipa-pure-const.c: Likewise.
2017         * ipa-ref.c: Likewise.
2018         * ipa-reference.c: Likewise.
2020 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
2022         PR debug/47684
2023         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
2025 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2027         PR testsuite/47400
2028         * doc/sourcebuild.texi (Require Support): Document
2029         dg-require-ascii-locale.
2031 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
2033         * doc/lto.texi (Write summary): Fix missing parentheses.
2035 2011-02-10  DJ Delorie  <dj@redhat.com>
2037         * config/m32c/m32c.c (m32c_option_override): Disable
2038         -fcombine-stack-adjustments until flag value tracking and compare
2039         optimization can be rewritten.
2041 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
2043         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
2044         PROCESSOR_POWER7.
2045         (PROCESSOR_DEFAULT64): Likewise.
2047 2011-02-10  Richard Henderson  <rth@redhat.com>
2049         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
2050         change from 2011-02-03.
2051         * config/rx/rx.c (flags_from_code): Likewise.
2052         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
2053         is valid, n/pz otherwise.
2054         (rx_select_cc_mode): Return CCmode if Y is not zero.
2056 2011-02-10  Richard Guenther  <rguenther@suse.de>
2058         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
2060 2011-02-10  Richard Guenther  <rguenther@suse.de>
2062         PR tree-optimization/47677
2063         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
2065 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
2067         PR target/47665
2068         * combine.c (make_compound_operation): Only change shifts into
2069         multiplication for SCALAR_INT_MODE_P.
2071 2011-02-10  Jie Zhang  <jie@codesourcery.com>
2073         PR testsuite/47622
2074         Revert
2075         2011-02-05  Jie Zhang  <jie@codesourcery.com>
2076         PR debug/42631
2077         * web.c (entry_register): Don't clobber the number of the
2078         first uninitialized reference in used[].
2080 2011-02-09  Richard Guenther  <rguenther@suse.de>
2082         PR tree-optimization/47664
2083         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
2084         all edges again.
2086 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
2088         PR target/46481
2089         PR target/47032
2090         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
2091         PROCESSOR_POWER7.
2092         (PROCESSOR_DEFAULT64): Same.
2093         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
2095 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2097         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
2099 2011-02-09  Martin Jambor  <mjambor@suse.cz>
2101         PR middle-end/45505
2102         * tree-sra.c (struct access): New flags grp_scalar_read and
2103         grp_scalar_write.  Changed description of assignment read and write
2104         flags.
2105         (dump_access): Dump new flags, reorder all of them.
2106         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
2107         to detect multiple scalar reads.
2108         (analyze_access_subtree): Use the new scalar read write flags instead
2109         of the old flags.  Adjusted comments.
2111 2011-02-08  DJ Delorie  <dj@redhat.com>
2113         PR target/47548
2114         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
2115         patterns.
2117 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2119         * config/m68k/uclinux.opt: New.
2120         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
2122 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2124         * config/cris/elf.opt (sim): New Driver option.
2126 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2128         * config/xtensa/elf.opt: New.
2129         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
2131 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2133         * config/vax/elf.opt: New.
2134         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
2136 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2138         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
2140 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2142         * config/gnu-user.opt: New.
2143         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
2144         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
2145         *-*-uclinux*): Use gnu-user.opt.
2147 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
2149         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
2150         * config/i386/gnu.h (CPP_SPEC): Likewise.
2152 2011-02-08  Ian Lance Taylor  <iant@google.com>
2154         * common.opt (fcx-limited-range): Add SetByCombined flag.
2155         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
2156         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
2157         (fassociative-math, freciprocal-math): Likewise.
2158         (funsafe-math-optimizations): Likewise.
2159         * opth-gen.awk: Handle SetByCombined.
2160         * optc-gen.awk: Likewise.
2161         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
2162         (set_unsafe_math_optimizations_flags): Likewise.
2163         * doc/options.texi (Option properties): Document SetByCombined.
2165 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
2167         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
2168         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
2169         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
2170         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
2171         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
2173 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
2175         PR tree-optimization/46834
2176         PR tree-optimization/46994
2177         PR tree-optimization/46995
2178         * graphite-sese-to-poly.c (used_outside_reduction): New.
2179         (detect_commutative_reduction): Call used_outside_reduction.
2180         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
2181         translate_scalar_reduction_to_array only when at least one
2182         loop-phi/close-phi tuple has been detected.
2184 2011-02-08  Richard Guenther  <rguenther@suse.de>
2186         PR middle-end/47639
2187         * tree-vect-generic.c (expand_vector_operations_1): Update
2188         stmts here ...
2189         (expand_vector_operations): ... not here.  Cleanup EH info
2190         and the CFG if required.
2192 2011-02-08  Richard Guenther  <rguenther@suse.de>
2194         PR tree-optimization/47641
2195         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
2196         require type compatibility.
2198 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2200         * gimple-low.c (lower_function_body): Don't remove the location of
2201         the return statement here.
2202         (lower_gimple_return): Do it here instead but only if the return
2203         statement is actually used twice.
2205 2011-02-08  Richard Guenther  <rguenther@suse.de>
2207         PR tree-optimization/47632
2208         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
2209         unused up_to_stmt parameter, return whether cfg-cleanup is
2210         necessary, remove EH info properly.
2211         (forward_propagate_into_gimple_cond): Adjust caller.
2212         (forward_propagate_into_cond): Likewise.
2213         (forward_propagate_comparison): Likewise.
2214         (tree_ssa_forward_propagate_single_use_vars): Make
2215         forward_propagate_comparison case similar to the two others.
2217 2011-02-08  Nick Clifton  <nickc@redhat.com>
2219         * config/mn10300/mn10300.opt (mliw): New command line option.
2220         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
2221         (liw_bundling): New automaton.
2222         (liw): New attribute.
2223         (liw_op): New attribute.
2224         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
2225         (movsi_internal): Add LIW attributes.
2226         (andsi3): Likewise.
2227         (iorsi3): Likewise.
2228         (xorsi3): Likewise.
2229         (addsi3): Separate register and immediate alternatives.
2230         Add LIW attributes.
2231         (subsi3): Likewise.
2232         (cmpsi): Likewise.
2233         (aslsi3): Likewise.
2234         (lshrsi3): Likewise.
2235         (ashrsi3): Likewise.
2236         (liw): New pattern.
2237         * config/mn10300/mn10300.c (liw_op_names): New
2238         (mn10300_print_operand): Handle 'W' operand descriptor.
2239         (extract_bundle): New function.
2240         (check_liw_constraints): New function.
2241         (liw_candidate): New function.
2242         (mn10300_bundle_liw): New function.
2243         (mn10300_reorg): New function.
2244         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2245         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
2246         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
2247         __LIW__ or __NO_LIW__.
2248         * doc/invoke.texi: Describe the -mliw command line option.
2250 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2252         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
2253         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2254         pthread_mutex_unlock): Remove.
2255         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
2256         * config/pa/t-pa64: Likewise.
2257         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
2258         shared libc if not linking against libpthread.
2259         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2261 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
2263         PR target/47558
2264         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
2265         on 10.6 and later to ensure that we always use the unwinder from
2266         the system.  Only add -no_compact_unwind when tarteting darwin
2267         10.6 or later.
2269 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
2271         PR target/46997
2272         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
2273         (vec_interleave_lowv2sf): Ditto.
2274         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
2275         (vec_extract_oddv2sf): Ditto.
2277 2011-02-07  Mike Stump  <mikestump@comcast.net>
2279         PR target/42333
2280         Add __ieee_divdc3 entry point.
2281         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
2282         entry point.
2283         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
2284         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
2285         * config/darwin.c (darwin_rename_builtins): Add.
2286         * config/darwin-protos.h (darwin_rename_builtins): Add.
2288 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2290         PR target/47636
2291         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
2292         for the condition.
2294 2011-02-07  Mike Stump  <mikestump@comcast.net>
2296         * config/darwin.opt (mmacosx-version-min): Update default OS version.
2298 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
2300         PR target/47534
2301         * config/avr/libgcc.S (exit): Move .endfunc
2303 2011-02-07  Richard Guenther  <rguenther@suse.de>
2305         PR tree-optimization/47615
2306         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
2307         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
2308         (run_scc_vn): Initialize it.
2309         (visit_reference_op_load): Use it.
2310         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
2312 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2314         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
2315         DImode trapping arithmetic libfuncs.
2317 2011-02-07  Richard Guenther  <rguenther@suse.de>
2319         PR tree-optimization/47621
2320         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
2321         two duplicates ...
2322         (execute_update_addresses_taken): ... here.  Make it more
2323         conservative in what we accept.
2325 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
2327         * config/sparc/freebsd.h (ASM_SPEC): Define.
2328         * config/sparc/vxworks.h (ASM_SPEC): Define.
2330 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
2332         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
2334 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
2336         * doc/invoke.texi: Remove reference to compiler internals from
2337         user documentation.
2339         * reg-notes.def: Remove REG_VALUE_PROFILE.
2340         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
2342 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
2344         PR middle-end/47610
2345         * varasm.c (default_section_type_flags): If decl is NULL,
2346         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
2348 2011-02-05  Jie Zhang  <jie@codesourcery.com>
2350         PR debug/42631
2351         * web.c (entry_register): Don't clobber the number of the
2352         first uninitialized reference in used[].
2354 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
2356         PR tree-optimization/46194
2357         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
2358         (build_classic_dist_vector_1): Do not represent classic distance
2359         vectors when the access functions are variating in different loops.
2361 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
2363         * config/mips/iris6.opt: New.
2364         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
2366 2011-02-04  Richard Henderson  <rth@redhat.com>
2367             Steve Ellcey  <sje@cup.hp.com>
2369         PR target/46997
2370         * config/ia64/predicates.md (mux1_brcst_element): New.
2371         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
2372         * config/ia64/ia64.c (ia64_unpack_assemble): New.
2373         (ia64_unpack_sign): New.
2374         (ia64_expand_unpack): Rewrite using new routines.
2375         (ia64_expand_widen_sum): Ditto.
2376         (ia64_expand_dot_prod_v8qi): Ditto.
2377         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
2378         routines, add endian check.
2379         (pmpy2_even): Rename from pmpy2_r, add endian check.
2380         (pmpy2_odd): Rename from pmpy2_l, add endian check.
2381         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
2382         (vec_widen_smult_hi_v4hi): Ditto.
2383         (vec_widen_umult_lo_v4hi): Ditto.
2384         (vec_widen_umult_hi_v4hi): Ditto.
2385         (mulv2si3): Change endian checks.
2386         (sdot_prodv4hi): Rewrite with new calls.
2387         (udot_prodv4hi): New.
2388         (vec_pack_ssat_v4hi): Add endian check.
2389         (vec_pack_usat_v4hi): Ditto.
2390         (vec_pack_ssat_v2si): Ditto.
2391         (max1_even): Rename from max1_r, add endian check.
2392         (max1_odd): Rename from max1_l, add endian check.
2393         (*mux1_rev): Format change.
2394         (*mux1_mix): Ditto.
2395         (*mux1_shuf): Ditto.
2396         (*mux1_alt): Ditto.
2397         (*mux1_brcst_v8qi): Use new predicate.
2398         (vec_extract_evenv8qi): Remove endian check.
2399         (vec_extract_oddv8qi): Ditto.
2400         (vec_interleave_lowv4hi): Format change.
2401         (vec_interleave_highv4hi): Ditto.
2402         (mix2_even): Rename from mix2_r, add endian check.
2403         (mix2_odd): Rename from mux2_l, add endian check.
2404         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
2405         (vec_extract_evenodd_helper): Format change.
2406         (vec_extract_evenv4hi): Remove endian check.
2407         (vec_extract_oddv4hi): Remove endian check.
2408         (vec_interleave_lowv2si): Format change.
2409         (vec_interleave_highv2si): Format change.
2410         (vec_initv2si): Remove endian check.
2411         (vecinit_v2si): Add endian check.
2412         (reduc_splus_v2sf): Add endian check.
2413         (reduc_smax_v2sf): Ditto.
2414         (reduc_smin_v2sf): Ditto.
2415         (vec_initv2sf): Remove endian check.
2416         (fpack): Add endian check.
2417         (fswap): Add endian check.
2418         (vec_interleave_highv2sf): Add endian check.
2419         (vec_interleave_lowv2sf): Add endian check.
2420         (fmix_lr): Add endian check.
2421         (vec_setv2sf): Format change.
2422         (*vec_extractv2sf_0_be): Use shift to extract operand.
2423         (*vec_extractv2sf_1_be): New.
2424         (vec_pack_trunc_v4hi): Add endian check.
2425         (vec_pack_trunc_v2si): Format change.
2427 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
2429         PR inline-asm/23200
2430         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
2431         do bb, locus and block comparison and disallow loads if it is not set.
2432         (stmt_is_replaceable_p): New function.
2433         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
2434         callers.
2435         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
2436         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
2437         SSA_NAME_DEF_STMT.
2438         * tree-flow.h (stmt_is_replaceable_p): New prototype.
2440 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
2442         * config/rs6000/xilinx.opt: New.
2443         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
2445 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
2447         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
2449 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
2451         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
2452         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2453         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
2454         secondary_reload_info, xtensa_secondary_reload): Remove.
2455         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
2456         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2457         (xtensa_preferred_reload_class): Make static. Change return and
2458         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
2459         Use CONST_DOUBLE_P predicate.
2460         (xtensa_preferred_output_reload_class): New function.
2461         (xtensa_secondary_reload): Make static.
2463 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
2465         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
2466         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
2467         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
2469 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
2471         PR middle-end/31490
2472         * output.h (SECTION_RELRO): Define.
2473         (SECTION_MACH_DEP): Adjust.
2474         (get_variable_section): New prototype.
2475         * varpool.c (varpool_finalize_named_section_flags): New function.
2476         (varpool_assemble_pending_decls): Call it.
2477         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
2478         * cgraphunit.c (cgraph_output_in_order): Call
2479         varpool_finalize_named_section_flags.
2480         * varasm.c (get_section): Allow section flags conflicts between
2481         relro and read-only sections if the section hasn't been declared yet.
2482         Set SECTION_OVERRIDE after diagnosing section type conflict.
2483         (get_variable_section): No longer static.
2484         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
2485         readonly sections that need relocations.
2486         (decl_readonly_section_1): New function.
2487         (decl_readonly_section): Use it.
2489         Revert:
2490         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
2491                     Steve Ellcey  <sje@cup.hp.com>
2493         PR middle-end/31490
2494         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2495         if section attribute used.
2497 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
2499         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
2500         * config/darwin.c (SECTION_NO_ANCHOR): Define.
2501         (darwin_init_sections): Remove assertion.
2503 2011-02-03  Nick Clifton  <nickc@redhat.com>
2505         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
2506         lt and ge.
2507         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
2508         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
2509         instead of "n" and "pz".
2510         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
2511         CC_FLAG_S.
2513 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
2515         PR target/47312
2516         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
2517         fma, expand FMA_EXPR as fma{,f,l} call.
2519         PR lto/47274
2520         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
2521         copy them into a unsigned char variable and pass address of it to
2522         lto_output_data_stream.
2524         PR target/47564
2525         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
2526         around backend_init_target and lang_dependent_init_target calls.
2527         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
2528         (verify_cgraph_node): Don't call set_cfun here.  Use
2529         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
2530         Set error_found for incorrectly represented calls to thunks.
2532 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
2534         PR debug/43092
2535         PR rtl-optimization/43494
2536         * rtl.h (for_each_inc_dec_fn): New type.
2537         (for_each_inc_dec): Declare.
2538         * rtlanal.c (struct for_each_inc_dec_ops): New type.
2539         (for_each_inc_dec_find_inc_dec): New fn.
2540         (for_each_inc_dec_find_mem): New fn.
2541         (for_each_inc_dec): New fn.
2542         * dse.c (struct insn_size): Remove.
2543         (replace_inc_dec, replace_inc_dec_mem): Remove.
2544         (emit_inc_dec_insn_before): New fn.
2545         (check_for_inc_dec): Use it, along with for_each_inc_dec.
2546         (canon_address): Pass mem modes to cselib_lookup.
2547         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
2548         (cselib_lookup_from_insn): Likewise.
2549         (cselib_subst_to_values): Likewise.
2550         * cselib.c (find_slot_memmode): New var.
2551         (cselib_find_slot): New fn.  Use it instead of
2552         htab_find_slot_with_hash everywhere.
2553         (entry_and_rtx_equal_p): Use find_slot_memmode.
2554         (autoinc_split): New fn.
2555         (rtx_equal_for_cselib_p): Rename and implement in terms of...
2556         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
2557         Deal with autoinc.  Special-case recursion into MEMs.
2558         (cselib_hash_rtx): Likewise.
2559         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
2560         address and MEM modes.
2561         (cselib_subst_to_values): Add memmode, pass it on.
2562         Deal with autoinc.
2563         (cselib_lookup): Add memmode argument, pass it on.
2564         (cselib_lookup_from_insn): Add memmode.
2565         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
2566         (struct cselib_record_autoinc_data): New.
2567         (cselib_record_autoinc_cb): New fn.
2568         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
2569         mode to cselib_lookup.  Reset autoinced REGs here instead of...
2570         (cselib_process_insn): ... here.
2571         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
2572         to cselib_lookup.
2573         (add_uses): Likewise, also to cselib_subst_to_values.
2574         (add_stores): Likewise.
2575         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
2576         cselib_subst_to_values.
2577         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
2578         * gcse.c (do_local_cprop): Adjusted.
2579         * postreload.c (reload_cse_simplify_set): Adjusted.
2580         (reload_cse_simplify_operands): Adjusted.
2581         * sel-sched-dump (debug_mem_addr_value): Pass mode.
2583 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
2585         PR tree-optimization/45122
2586         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
2587         unsafe assumptions when there's more than one loop exit.
2589 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2591         PR target/47272
2592         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2593         Document using vector double with the load/store builtins, and
2594         that the load/store builtins always use Altivec instructions.
2596         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
2597         to use altivec memory instructions, even on VSX.
2598         (vector_altivec_store_<mode>): Ditto.
2600         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
2601         function.
2603         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2604         V2DF, V2DI support to load/store overloaded builtins.
2606         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
2607         altivec load/store builtins for V2DF/V2DI types.
2609         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2610         set avoid indexed addresses on power6 if -maltivec.
2611         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
2612         vector_altivec_load/vector_altivec_store builtins.
2613         (altivec_expand_st_builtin): Ditto.
2614         (altivec_expand_builtin): Add VSX memory builtins.
2615         (rs6000_init_builtins): Add V2DI types to internal types.
2616         (altivec_init_builtins): Add support for V2DF/V2DI altivec
2617         load/store builtins.
2618         (rs6000_address_for_altivec): Insure memory address is appropriate
2619         for Altivec.
2621         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
2622         vec_vsx_ld and vec_vsx_st.
2623         (vsx_store_<mode>): Ditto.
2625         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
2626         variables to hold long long types for VSX vector memory builtins.
2627         (RS6000_BTI_unsigned_long_long): Ditto.
2628         (long_long_integer_type_internal_node): Ditti.
2629         (long_long_unsigned_type_internal_node): Ditti.
2631         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
2632         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
2633         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
2635         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
2636         short cuts.
2637         (vec_vsx_st): Ditto.
2639 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
2641         * config/pa/pa-hpux10.opt: New.
2642         * config/hpux11.opt (pthread): New Driver option.
2643         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
2644         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
2646 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
2648         * config/ia64/vms.opt: New.
2649         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
2651 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2653         PR target/47580
2654         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
2655         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
2656         generator functions.
2657         (vsx_floatuns<VSi><mode>2): Ditto.
2658         (vsx_fix_trunc<mode><VSi>2): Ditto.
2659         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
2661 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
2663         * config/i386/djgpp.opt (posix): New Driver option.
2665 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
2667         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
2668         Move to the unsupported targets list.
2670 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
2672         PR rtl-optimization/47525
2673         * df-scan.c: Update copyright years.
2674         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
2675         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
2677 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2679         * config/i386/sysv4.h (TARGET_VERSION): Remove.
2680         (SUBTARGET_RETURN_IN_MEMORY): Remove.
2681         (ASM_OUTPUT_ASCII): Remove.
2682         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
2684 2011-02-02  Jeff Law  <law@redhat.com>
2686         PR middle-end/47543
2687         * reload.c (find_reloads_address): Handle reg+d address where both
2688         components are invalid by reloading the entire address.
2690 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
2691             Richard Guenther  <rguenther@suse.de>
2693         PR tree-optimization/40979
2694         PR bootstrap/47044
2695         * passes.c (init_optimization_passes): After LIM call copy_prop
2696         and DCE to clean up.
2697         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
2699 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
2701         PR tree-optimization/47576
2702         PR tree-optimization/47555
2703         * doc/invoke.texi (scev-max-expr-complexity): Documented.
2704         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2705         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
2706         * tree-scalar-evolution.c (follow_ssa_edge): Use
2707         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
2709 2011-02-02  Richard Guenther  <rguenther@suse.de>
2711         PR tree-optimization/47566
2712         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
2714 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
2716         PR debug/47106
2717         PR debug/47402
2718         * tree-inline.c (declare_return_variable): Remove unused caller
2719         variable.
2721         PR debug/47106
2722         PR debug/47402
2723         * tree-flow-inline.h (clear_is_used, is_used_p): New.
2724         * cfgexpand.c (account_used_vars_for_block): Use them.
2725         * tree-nrv.c (tree_nrv): Likewise.
2726         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
2727         (dump_scope_block): Likewise.
2728         (remove_unused_locals): Likewise.
2730         PR debug/47106
2731         PR debug/47402
2732         * tree-inline.c (declare_return_variable): Add result decl to
2733         local decls only once.
2734         * gimple-low.c (record_vars_into): Mark newly-created variables
2735         as referenced.
2737 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
2739         PR debug/47498
2740         PR debug/47501
2741         PR debug/45136
2742         PR debug/45130
2743         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2744         debug insns.
2745         (no_real_insns_p, schedule_block, set_priorities): Drop special
2746         treatment of boundary debug insns.
2747         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2748         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
2749         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2750         (BOUNDARY_DEBUG_INSN_P): Likewise.
2751         (SCHEDULE_DEBUG_INSN_P): Likewise.
2752         * sched-rgn.c (init_ready_list): Drop special treatment of
2753         boundary debug insns.
2754         * final.c (rest_of_clean_state): Clear notes' BB.
2756 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2758         * config/openbsd.opt (assert=): New Driver option.
2760 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2762         * config/i386/nto.opt: New.
2763         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
2765 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2767         * config/i386/netware.opt: New.
2768         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
2770 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2772         * config/interix.opt (posix): New Driver option.
2774 2011-02-01  DJ Delorie  <dj@redhat.com>
2776         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
2778         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
2779         class for A0/A1.
2781 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
2783         PR tree-optimization/47561
2784         * toplev.c (process_options): Print the Graphite flags.  Add
2785         flag_loop_flatten to the list of options requiring Graphite.
2787 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2789         * config/i386/cygming.opt (posix): New Driver option.
2791 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2793         * config/arm/vxworks.opt: New.
2794         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
2796 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2798         * config/alpha/elf.opt: New.
2799         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
2800         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
2802 2011-02-01  Richard Guenther  <rguenther@suse.de>
2804         PR tree-optimization/47559
2805         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
2806         store-motion on references that can throw.
2808 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
2810         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
2811         * tree-pass.h (TDF_CSELIB): New macro.
2812         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
2813         cselib_lookup): Check for it rather than for TDF_DETAILS.
2815 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
2817         PR driver/47547
2818         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
2819         is HOST_BIT_BUCKET.
2821         * opts.c (finish_options): Don't add x_aux_base_name if it is
2822         HOST_BIT_BUCKET.
2824 2011-02-01  Richard Guenther  <rguenther@suse.de>
2826         PR tree-optimization/47555
2827         Revert
2828         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
2830         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2832 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
2834         PR gcc/46692
2835         * config/lm32/t-lm32: Add multilib for all CPU options.
2837 2011-02-01  Richard Guenther  <rguenther@suse.de>
2839         PR tree-optimization/47541
2840         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2841         sure to have a field at offset zero.
2843 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
2845         * config/arc/arc.opt (EB, EL): New Driver options.
2847 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
2849         * config/alpha/osf5.opt: New.
2850         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
2852 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
2854         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
2856 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
2858         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
2859         -floop-interchange.
2860         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
2861         is an alias of -floop-interchange and that it requires the
2862         Graphite infrastructure.
2863         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
2864         flag_loop_interchange based on the value of flag_tree_loop_linear.
2866 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
2867             Richard Guenther  <rguenther@suse.de>
2869         PR tree-optimization/47538
2870         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
2871         type instead of r1type, except for comparisons.  For right
2872         shifts and comparisons punt if there are mismatches in
2873         sizetype vs. non-sizetype types.
2875 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2877         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2878         avx_runtime.
2880 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2882         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
2883         version number.
2884         * configure: Regenerate.
2886 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2888         * configure.ac (gcc_cv_ld_static_option): Define.
2889         (gcc_cv_ld_dynamic_option): Define.
2890         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
2891         instead.
2892         (HAVE_LD_STATIC_DYNAMIC): Update message.
2893         (LD_STATIC_OPTION): Define.
2894         (LD_DYNAMIC_OPTION): Define.
2895         * configure: Regenerate.
2896         * config.in: Regenerate.
2897         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
2898         HAVE_LD_STATIC_DYNAMIC]: Use them.
2900 2011-01-31  Nick Clifton  <nickc@redhat.com>
2902         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
2903         registers inside interrupt handlers if the handler is not a leaf
2904         function.
2906 2011-01-31  Nick Clifton  <nickc@redhat.com>
2908         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
2909         reg_renumber returning an INVALID_REGNUM.
2911 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
2913         PR libgcj/44341
2914         * doc/install.texi: Document host options discarded when cross
2915         configuring target libraries.
2917 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
2919         Reverted:
2920         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
2921         PR debug/45136
2922         PR debug/45130
2923         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2924         debug insns.
2925         (no_real_insns_p, schedule_block, set_priorities): Drop special
2926         treatment of boundary debug insns.
2927         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2928         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
2929         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2930         (BOUNDARY_DEBUG_INSN_P): Likewise.
2931         (SCHEDULE_DEBUG_INSN_P): Likewise.
2932         * sched-rgn.c (init_ready_list): Drop special treatment of
2933         boundary debug insns.
2934         * final.c (rest_of_clean-state): Clear notes' BB.
2936 2011-01-31  Alan Modra  <amodra@gmail.com>
2938         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
2939         toc relative expressions as we do in print_operand_address.
2941 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
2943         * doc/extend.texi: Follow spelling conventions.
2944         * doc/invoke.texi: Fix a typo.
2946 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
2948         * config/hpux11.opt: New.
2949         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
2950         ia64*-*-hpux*): Use hpux11.opt.
2952 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
2954         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
2955         to tmake_file.
2957 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
2959         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
2960         support sites.
2962 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
2964         * doc/install.texi (Binaries): Remove outdated reference for
2965         Motorola 68HC11/68HC12 downloads.
2967 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
2969         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
2970         Drepper's paper.
2972 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2974         PR bootstrap/47147
2975         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
2976         used by NetBSD.
2978 2011-01-28  Ahmad Sharif  <asharif@google.com>
2980         * value-prof.c (check_counter): Corrected error message.
2982 2011-01-29  Jie Zhang  <jie@codesourcery.com>
2984         * config/arm/arm.c (arm_legitimize_reload_address): New.
2985         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
2986         arm_legitimize_reload_address.
2987         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
2989 2011-01-28  Ian Lance Taylor  <iant@google.com>
2991         * godump.c (go_define): Ignore macros whose definitions include
2992         two adjacent operands.
2994 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
2996         PR target/42894
2997         * varasm.c (force_const_mem): Store copy of x in desc->constant
2998         instead of x itself.
2999         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
3000         itself into REG_EQUAL note.
3002 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
3004         * config/freebsd.opt (posix, rdynamic): New Driver options.
3006 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3008         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
3009         -Bstatic/-Bdynamic.
3010         * configure: Regenerate.
3012 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
3014         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
3015         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
3017 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
3019         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
3020         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
3021         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3022         (s390_preferred_reload_class): Make static. Change return and
3023         'rclass' argument type to reg_class_t.
3025 2011-01-27  Jan Hubicka  <jh@suse.cz>
3027         PR middle-end/46949
3028         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
3029         (process_function_and_variable_attributes): Check defined weakrefs.
3031 2011-01-27  Martin Jambor  <mjambor@suse.cz>
3033         PR tree-optimization/47228
3034         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
3035         build_ref_for_offset.
3037 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3039         * config/spu/spu-elf.h (ASM_SPEC): Remove.
3041 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
3043         PR rtl-optimization/46856
3044         * postreload.c (reload_combine_recognize_const_pattern): Do not
3045         separate cc0 setter and user on cc0 targets.
3047 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
3049         PR c/43082
3050         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
3051         passed a VOID_TYPE expression, immediately emit an error and
3052         return error_mark_node.
3054 2011-01-26  Jeff Law  <law@redhat.com>
3056         PR rtl-optimization/47464
3057         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
3058         rather than may_trap_p as needed.
3060 2011-01-26  DJ Delorie  <dj@redhat.com>
3062         PR rtl-optimization/46878
3063         * combine.c (insn_a_feeds_b): Check for the implicit cc0
3064         setter/user dependency as well.
3066 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
3068         PR rtl-optimization/44469
3069         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
3070         after removing trivially dead basic blocks.
3072 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
3074         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
3075         * config/frv/frv.h (LINK_SPEC): Likewise.
3076         * config/i386/netware.h (LINK_SPEC): Likewise.
3077         * config/m68k/linux.h (ASM_SPEC): Likewise.
3078         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
3079         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
3080         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3081         * config/sparc/linux.h (ASM_SPEC): Likewise.
3082         * config/sparc/linux64.h (ASM_SPEC): Likewise.
3083         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3085 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
3087         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
3088         * config/frv/frv.h (ASM_SPEC): Likewise.
3089         * config/m68k/linux.h (ASM_SPEC): Likewise.
3090         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
3091         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
3092         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3093         * config/sparc/linux.h (ASM_SPEC): Likewise.
3094         * config/sparc/linux64.h (ASM_SPEC): Likewise.
3095         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3097 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
3099         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
3100         * config/frv/frv.h (LINK_SPEC): Likewise.
3101         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
3103 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
3105         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
3106         * config/frv/frv.h (ASM_SPEC): Likewise.
3107         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
3108         * config/m68k/linux.h (ASM_SPEC): Likewise.
3109         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
3110         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
3111         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3112         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
3113         * config/sparc/linux.h (ASM_SPEC): Likewise.
3114         * config/sparc/linux64.h (ASM_SPEC): Likewise.
3115         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3116         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
3118 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
3120         PR target/46997
3121         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
3122         (*mux2): Ditto.
3123         (vec_extract_evenodd_help): Ditto.
3124         (vec_extract_evenv4hi): Ditto.
3125         (vec_extract_oddv4hi): Ditto.
3126         (vec_interleave_lowv2si): Ditto.
3127         (vec_interleave_highv2si): Ditto.
3128         (vec_extract_evenv2si): Ditto.
3129         (vec_extract_oddv2si: Ditto.
3130         (vec_pack_trunc_v2si): Ditto.
3132 2011-01-22  Jan Hubicka  <jh@suse.cz>
3134         PR target/47237
3135         * cgraph.h (cgraph_local_info): New field can_change_signature.
3136         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
3137         signature can change.
3138         (ipcp_estimate_growth): Call sequence simplify only if calle signature
3139         can change.
3140         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
3141         (cgraph_function_versioning): We can not change signature of functions
3142         that don't allow that.
3143         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
3144         (lto_input_node): Likewise.
3145         * ipa-inline.c (compute_inline_parameters): Compute
3146         local.can_change_signature.
3147         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
3148         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
3149         functions that can not change signature.
3150         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
3151         init_cumulative_args): Do not use local calling conventions
3152         for functions that can not change signature.
3154 2011-01-22  Jan Hubicka  <jh@suse.cz>
3156         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
3158 2011-01-26  Richard Guenther  <rguenther@suse.de>
3160         PR tree-optimization/47190
3161         * cgraphunit.c (process_common_attributes): New function.
3162         (process_function_and_variable_attributes): Use it.
3164 2011-01-26  Richard Guenther  <rguenther@suse.de>
3166         PR lto/47423
3167         * cgraphbuild.c (record_eh_tables): Record reference to personality
3168         function.
3170 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
3172         PR debug/45454
3173         * sel-sched.c (moveup_expr): Don't let debug insns prevent
3174         non-debug insns from moving up.
3176 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3178         PR target/40125
3179         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
3180         t-dlldir{,-x} fragment for build and add it to tmake_file.
3181         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
3182         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
3183         * config/i386/t-dlldir: New file.
3184         (SHLIB_DLLDIR): Define.
3185         * config/i386/t-dlldir-x: New file.
3186         (SHLIB_DLLDIR): Define.
3187         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
3188         (SHLIB_INSTALL): Use it.
3190 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
3192         PR target/47246
3193         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
3194         lower bound of the allowed Thumb-2 coprocessor load/store
3195         index range to -256. Add explaining comment.
3197 2011-01-25  Ian Lance Taylor  <iant@google.com>
3199         * godump.c (go_define): Improve lexing of macro expansion to only
3200         accept expressions which match Go spec.
3202 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3204         PR c++/43601
3205         * tree.c (handle_dll_attribute): Handle it.
3206         * doc/extend.texi (@item dllexport): Mention it.
3207         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
3209 2011-01-25  Ian Lance Taylor  <iant@google.com>
3211         PR tree-optimization/26854
3212         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
3213         (decl_jump_unsafe): Move higher in file, with no other change.
3214         (bind): Set has_jump_unsafe_decl if appropriate.
3215         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
3216         (check_earlier_gotos): Likewise.
3217         (c_check_switch_jump_warnings): Likewise.
3219 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
3221         * doc/invoke.texi (Warning Options): Add missing hyphen.
3222         (-fprofile-dir): Minor grammatical fixes.
3223         (-fbranch-probabilities): Likewise.
3225 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
3227         PR debug/45136
3228         PR debug/45130
3229         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
3230         debug insns.
3231         (no_real_insns_p, schedule_block, set_priorities): Drop special
3232         treatment of boundary debug insns.
3233         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
3234         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
3235         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
3236         (BOUNDARY_DEBUG_INSN_P): Likewise.
3237         (SCHEDULE_DEBUG_INSN_P): Likewise.
3238         * sched-rgn.c (init_ready_list): Drop special treatment of
3239         boundary debug insns.
3240         * final.c (rest_of_clean-state): Clear notes' BB.
3242 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3244         * Makefile.in (LAMBDA_H): Removed.
3245         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
3246         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
3247         lambda-trans.o, and tree-loop-linear.o.
3248         (lto-symtab.o): Remove dependence on LAMBDA_H.
3249         (tree-loop-linear.o): Remove rule.
3250         (lambda-mat.o): Same.
3251         (lambda-trans.o): Same.
3252         (lambda-code.o): Same.
3253         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
3254         (tree-vect-slp.o): Same.
3255         * hwint.h (gcd): Moved here.
3256         (least_common_multiple): Same.
3257         * lambda-code.c: Removed.
3258         * lambda-mat.c: Removed.
3259         * lambda-trans.c: Removed.
3260         * lambda.h: Removed.
3261         * tree-loop-linear.c: Removed.
3262         * lto-symtab.c: Do not include lambda.h.
3263         * omega.c (gcd): Removed.
3264         * passes.c (init_optimization_passes): Remove pass_linear_transform.
3265         * tree-data-ref.c (print_lambda_vector): Moved here.
3266         (lambda_vector_copy): Same.
3267         (lambda_matrix_copy): Same.
3268         (lambda_matrix_id): Same.
3269         (lambda_vector_first_nz): Same.
3270         (lambda_matrix_row_add): Same.
3271         (lambda_matrix_row_exchange): Same.
3272         (lambda_vector_mult_const): Same.
3273         (lambda_vector_negate): Same.
3274         (lambda_matrix_row_negate): Same.
3275         (lambda_vector_equal): Same.
3276         (lambda_matrix_right_hermite): Same.
3277         * tree-data-ref.h: Do not include lambda.h.
3278         (lambda_vector): Moved here.
3279         (lambda_matrix): Same.
3280         (dependence_level): Same.
3281         (lambda_transform_legal_p): Removed declaration.
3282         (lambda_collect_parameters): Same.
3283         (lambda_compute_access_matrices): Same.
3284         (lambda_vector_gcd): Same.
3285         (lambda_vector_new): Same.
3286         (lambda_vector_clear): Same.
3287         (lambda_vector_lexico_pos): Same.
3288         (lambda_vector_zerop): Same.
3289         (lambda_matrix_new): Same.
3290         * tree-flow.h (least_common_multiple): Removed declaration.
3291         * tree-parloops.c (lambda_trans_matrix): Moved here.
3292         (LTM_MATRIX): Same.
3293         (LTM_ROWSIZE): Same.
3294         (LTM_COLSIZE): Same.
3295         (LTM_DENOMINATOR): Same.
3296         (lambda_trans_matrix_new): Same.
3297         (lambda_matrix_vector_mult): Same.
3298         (lambda_transform_legal_p): Same.
3299         * tree-pass.h (pass_linear_transform): Removed declaration.
3300         * tree-ssa-loop.c (tree_linear_transform): Removed.
3301         (gate_tree_linear_transform): Removed.
3302         (pass_linear_transform): Removed.
3303         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
3304         flag_loop_interchange.
3306 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
3308         PR tree-optimization/47265
3309         PR tree-optimization/47443
3310         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
3311         if name still has some uses.
3313 2011-01-25  Martin Jambor  <mjambor@suse.cz>
3315         PR tree-optimization/47382
3316         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
3317         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
3319 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
3321         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
3322         sjlj_except_unwind_info.
3324 2011-01-25  Richard Guenther  <rguenther@suse.de>
3326         PR tree-optimization/47426
3327         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
3328         visible functions results escape.
3330 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
3332         PR target/45701
3333         * config/arm/arm.c (any_sibcall_uses_r3): New function.
3334         (arm_get_frame_offsets): Use it.
3336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3337             Jakub Jelinek  <jakub@redhat.com>
3339         PR tree-optimization/47271
3340         * tree-if-conv.c (bb_postdominates_preds): New.
3341         (if_convertible_bb_p): Call bb_postdominates_preds.
3342         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
3343         (predicate_scalar_phi): Call bb_postdominates_preds.
3345 2011-01-25  Nick Clifton  <nickc@redhat.com>
3347         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
3348         * config/rx/rx.c (rx_function_value): Likewise.
3349         (rx_promote_function_mode): Likewise.
3350         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
3351         in order to make it legitimate.
3352         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
3353         make sure that the first operand is the same as the result register.
3354         (addsi3_unspec): Delete.
3355         (subdi3): Do not accept immediate operands.
3356         (subdi3_internal): Likewise.
3358 2011-01-25  Jeff Law  <law@redhat.com>
3360         PR rtl-optimization/37273
3361         * ira-costs.c (scan_one_insn): Detect constants living in memory and
3362         handle them like argument loads from stack slots.  Do not double
3363         count memory for memory constants and argument loads from stack slots.
3365 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
3367         PR tree-optimization/47427
3368         PR tree-optimization/47428
3369         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3370         coalesce if the new root var would be TREE_READONLY.
3372 2011-01-25  Richard Guenther  <rguenther@suse.de>
3374         PR middle-end/47414
3375         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
3376         correct type for TBAA.
3378 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3380         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
3381         (close_phi_written_to_memory): Call for_each_index with
3382         dr_indices_valid_in_loop.
3384 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3386         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
3387         when it is initialized.
3389 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3391         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
3392         call to graphite_find_data_references_in_stmt.
3393         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
3394         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
3395         call to graphite_find_data_references_in_stmt.
3396         (analyze_drs_in_stmts): Same.
3397         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
3398         in which the scalar analysis of indices is performed.
3399         (create_data_ref): Same.  Update call to dr_analyze_indices.
3400         (find_data_references_in_stmt): Update call to create_data_ref.
3401         (graphite_find_data_references_in_stmt): Same.
3402         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
3403         declaration.
3404         (create_data_ref): Same.
3405         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
3406         call to create_data_ref.
3408 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3410         * graphite-sese-to-poly.c (build_poly_scop): Move
3411         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
3413 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3415         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
3416         VAR_DECL, PARM_DECL, and RESULT_DECL.
3418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3420         * graphite-dependences.c (reduction_dr_1): Allow several reductions
3421         in a reduction PBB.
3422         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
3423         that have already been marked as PBB_IS_REDUCTION.
3425 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3427         * graphite-scop-detection.c (same_close_phi_node): New.
3428         (remove_duplicate_close_phi): New.
3429         (make_close_phi_nodes_unique): New.
3430         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
3432 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3434         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
3435         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
3436         of both data references to be the same.
3438 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3440         * graphite-dependences.c (build_lexicographical_constraint): Remove
3441         the gdim parameter.
3442         (build_lexicographical_constraint): Adjust call to
3443         ppl_powerset_is_empty.
3444         (dependence_polyhedron): Same.
3445         (graphite_legal_transform_dr): Same.
3446         (graphite_carried_dependence_level_k): Same.
3447         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
3448         parameter.
3449         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
3451 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3453         * graphite-sese-to-poly.c
3454         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
3455         (close_phi_written_to_memory): New.
3456         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
3457         and unshare_expr.
3459 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3461         * doc/install.texi: Update the expected version number of PPL to 0.11.
3462         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
3463         #if PPL_VERSION_MINOR < 11.
3465 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3467         * graphite-dependences.c: Include graphite-cloog-util.h.
3468         (new_poly_ddr): Inlined into dependence_polyhedron.
3469         (free_poly_ddr): Moved close by new_poly_ddr.
3470         (dependence_polyhedron_1): Renamed dependence_polyhedron.
3471         Early return NULL when ppl_powerset_is_empty returns true.
3472         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
3473         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
3474         (graphite_legal_transform_dr): Call new_poly_ddr.
3475         (graphite_carried_dependence_level_k): Same.
3476         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
3477         (dot_transformed_deps_stmt_1): Removed.
3478         (dot_deps_stmt_1): Call dot_deps_stmt_2.
3479         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
3480         (dot_deps_1): Call dot_deps_2.
3481         * Makefile.in (graphite-dependences.o): Add missing dependence on
3482         graphite-cloog-util.h.
3484 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3486         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
3487         (build_lexicographical_constraint): Same.
3488         (dependence_polyhedron_1): Same.
3489         (graphite_legal_transform_dr): Same.
3490         (graphite_carried_dependence_level_k): Same.
3491         * graphite-ppl.c (ppl_powerset_is_empty): New.
3492         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
3493         * tree-data-ref.c (dump_data_reference): Print the basic block index.
3495 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3497         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
3498         the "a followed by b" relation and document it.
3500 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3502         * graphite-dependences.c (build_lexicographical_constraint): Stop the
3503         iteration when the bag of constraints is empty.
3505 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3507         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
3509 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3511         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
3512         nest and two loop depths as parameters.
3513         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
3514         lst_perfect_nestify.
3516 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3518         * graphite-dependences.c (print_pddr): Call
3519         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
3521 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
3523         * graphite-ppl.c (debug_gmp_value): New.
3524         * graphite-ppl.h (debug_gmp_value): Declared.
3526 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
3528         * doc/install.texi: Document availability of cloog-0.16.
3530 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
3532         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
3533         invalid postdominance info.
3535 2011-01-24  Jan Hubicka  <jh@suse.cz>
3537         PR c/21659
3538         * doc/extend.texi (weak pragma): Drop claim that it must
3539         appear before definition.
3540         * varasm.c (merge_weak, declare_weak): Only sanity check
3541         that DECL is not output at a time it is declared weak.
3543 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
3545         * machmode.def: Fixed comments.
3547 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
3549         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
3551 2011-01-24  Paul Koning  <ni1d@arrl.net>
3553         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
3554         WORDS_BIG_ENDIAN.
3556 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3558         PR target/46519
3559         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
3560         (block_info): Add scanned and prev.
3561         (move_or_delete_vzeroupper_2): Return if the basic block
3562         has been scanned and the upper 128bit state is unchanged
3563         from the last scan.
3564         (move_or_delete_vzeroupper_1): Return true if the exit
3565         state is changed.
3566         (move_or_delete_vzeroupper): Visit basic blocks using the
3567         work-list based algorithm based on vt_find_locations in
3568         var-tracking.c.
3570         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
3572 2011-01-24  Nick Clifton  <nickc@redhat.com>
3574         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
3575         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
3576         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
3577         then define __v850e1__.
3578         * doc/invoke.texi: Document -mv850es.
3580 2011-01-24  Richard Henderson  <rth@redhat.com>
3582         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
3583         compound unordered comparisons.
3584         * config/rx/rx.c (rx_split_fp_compare): Remove.
3585         * config/rx/rx-protos.h: Update.
3586         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
3587         (cbranchsf4): Don't call rx_split_fp_compare.
3588         (*cbranchsf4): Use rx_split_cbranch.
3589         (*cmpsf): Don't accept "i" constraint.
3590         (*conditional_branch): Only valid after reload.
3591         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
3593 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3595         PR target/47385
3596         * config/rs6000/altivec.md (vector constant splitters): Add
3597         support for creating vector single precision constants if -mvsx is
3598         used and we would create the constant using Altivec primitives.
3600 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
3601             Richard Sandiford  <rdsandiford@googlemail.com>
3603         PR rtl-optimization/47166
3604         * reload1.c (emit_reload_insns): Disable the spill_reg_store
3605         mechanism for PRE_MODIFY and POST_MODIFY.
3606         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
3607         reloadreg.
3609 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
3611         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
3613 2011-01-22  Jan Hubicka  <jh@suse.cz>
3615         PR lto/47333
3616         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
3618 2011-01-22  Jan Hubicka  <jh@suse.cz>
3620         PR tree-optimization/43884
3621         PR lto/44334
3622         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
3623         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
3625 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
3627         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3628         * config/s390/s390.c (s390_register_move_cost,
3629         s390_memory_move_cost): New.
3630         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3632 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3634         PR middle-end/47401
3635         * except.c (sjlj_assign_call_site_values): Move setting the
3636         crtl->uses_eh_lsda flag to ...
3637         (sjlj_mark_call_sites): ... here.
3638         (sjlj_emit_function_enter): Support NULL dispatch label.
3639         (sjlj_build_landing_pads): In a function with no landing pads
3640         that still has must-not-throw regions, generate code to register
3641         a personality function with empty LSDA.
3643 2011-01-21  Richard Henderson  <rth@redhat.com>
3645         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
3647         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
3649         * compare-elim.c: New file.
3650         * Makefile.in (OBJS-common): Add it.
3651         (compare-elim.o): New.
3652         * common.opt (fcompare-elim): New.
3653         * opts.c (default_options_table): Add OPT_fcompare_elim.
3654         * tree-pass.h (pass_compare_elim_after_reload): New.
3655         * passes.c (init_optimization_passes): Add it.
3656         * recog.h: Protect against re-inclusion.
3657         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
3658         * doc/invoke.texi (-fcompare-elim): Document it.
3659         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
3660         * doc/tm.texi: Rebuild.
3662 2011-01-22  Nick Clifton  <nickc@redhat.com>
3664         * config/rx/rx.md (cstoresf4): Pass comparison operator to
3665         rx_split_fp_compare.
3667 2011-01-22  Nick Clifton  <nickc@redhat.com>
3669         * config/rx/rx.md (UNSPEC_CONST): New.
3670         (deallocate_and_return): Wrap the amount popped off the stack in
3671         an UNSPEC_CONST in order to stop it being rejected by
3672         -mmax-constant-size.
3673         (pop_and_return): Add a "(return)" rtx.
3674         (call): Drop the immediate operand.
3675         (call_internal): Likewise.
3676         (call_value): Likewise.
3677         (call_value_internal): Likewise.
3678         (sibcall_internal): Likewise.
3679         (sibcall_value_internal): Likewise.
3680         (sibcall): Likewise.  Generate an explicit call using
3681         sibcall_internal.
3682         (sibcall_value): Likewise.
3683         (mov<>): FAIL if a constant operand is not legitimate.
3684         (addsi3_unpsec): New pattern.
3686         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
3687         (ok_for_max_constant): New function.
3688         (gen_safe_add): New function.
3689         (rx_expand_prologue): Use gen_safe_add.
3690         (rx_expand_epilogue): Likewise.
3691         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
3692         UNSPEC CONSTs.
3694 2011-01-21  Jeff Law  <law@redhat.com>
3696         PR tree-optimization/47053
3697         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
3698         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
3699         statements are deleted.
3700         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
3701         is nonempty, then purge dead edges and cleanup the CFG.
3703 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
3705         PR debug/47402
3706         Temporarily revert:
3707         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
3708         PR debug/47106
3709         * tree-dfa.c (create_var_ann): Mark variable as used.
3711 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
3713         PR middle-end/45566
3714         * except.c (convert_to_eh_region_ranges): Emit queued no-region
3715         notes from other section in hot/cold partitioning even if
3716         last_action is -3.  Increment call_site_base.
3718         PR rtl-optimization/47366
3719         * fwprop.c (forward_propagate_into): Return bool.  If
3720         any changes are made, -fnon-call-exceptions is used and
3721         REG_EH_REGION note is present, call purge_dead_edges
3722         and return true if it purged anything.
3723         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
3724         any EH edges were purged.
3726 2011-01-21  Jeff Law  <law@redhat.com>
3728         PR rtl-optimization/41619
3729         * caller-save.c (setup_save_areas): Break out code to determine
3730         which hard regs are live across calls by examining the reload chains
3731         so that it is always used.
3732         Eliminate code which checked REG_N_CALLS_CROSSED.
3734 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
3736         PR tree-optimization/47355
3737         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
3738         NOP has non-debug uses beyond PHIs in new_bb.
3740 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
3742         PR debug/47106
3743         * cfgexpand.c (account_used_vars_for_block): Only account vars
3744         that are annotated as used.
3745         (estimated_stack_frame_size): Don't set TREE_USED.
3746         * tree-dfa.c (create_var_ann): Mark variable as used.
3748 2011-01-21  Richard Guenther  <rguenther@suse.de>
3750         PR middle-end/47395
3751         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
3753 2011-01-21  Richard Guenther  <rguenther@suse.de>
3755         PR tree-optimization/47365
3756         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
3757         (vn_reference_lookup_pieces): Adjust.
3758         (vn_reference_lookup): Likewise.
3759         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
3760         (vn_reference_lookup_3): Only look through kills if in
3761         VN_WALKREWRITE mode.
3762         (vn_reference_lookup_pieces): Adjust.
3763         (vn_reference_lookup): Likewise.
3764         (visit_reference_op_load): Likewise.
3765         (visit_reference_op_store): Likewise.
3766         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
3767         (compute_avail): Likewise.
3768         (eliminate): Likewise.
3770 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
3772         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
3773         DECL_IGNORED_P non-reg vars if they are used.
3775         PR tree-optimization/47391
3776         * varpool.c (const_value_known_p): Return false if
3777         decl is volatile.
3779 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
3781         PR bootstrap/47215
3782         * config/i386/i386.c (ix86_local_alignment): Handle
3783         case for va_list_type_node is nil.
3784         (ix86_canonical_va_list_type): Likewise.
3786 2011-01-21  Alan Modra  <amodra@gmail.com>
3788         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
3789         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
3791 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3793         * config/arm/arm.md (define_attr type): Rename f_load
3794         and f_store to f_fpa_load and f_fpa_store. Update.
3795         (write_conflict): Deal with rename fallout.
3796         (*push_fp_multi): Likewise.
3797         * config/arm/fpa.md (f_load): Use f_fpa_load.
3798         (f_store): Use f_fpa_store.
3799         (*movsf_fpa): Likewise.
3800         (*movdf_fpa): Likewise.
3801         (*movxf_fpa): Likewise.
3802         (*thumb2_movsf_fpa): Likewise.
3803         (*thumb2_movdf_fpa): Likewise.
3804         (*thumb2_movxf_fpa): Likewise.
3805         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
3806         f_loadd and f_stored.
3807         (*thumb2_movdi_vfp): Likewise.
3808         (*thumb2_movsf_vfp): Fix attribute to f_loads.
3809         (*thumb2_movsi_vfp): Likewise.
3810         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
3811         Use f_loads instead of f_load.
3812         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
3814 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
3816         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3817         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
3818         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3819         (xtensa_mode_dependent_address_p): New function.
3820         (constantpool_address_p): Make static. Change return type to bool.
3821         Change argument type to const_rtx. Use CONST_INT_P predicate.
3823 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
3825         PR debug/46583
3826         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
3828 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
3830         PR debug/47283
3831         * cfgexpand.c (expand_debug_expr): Instead of generating
3832         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
3833         etc. handling.
3835 2011-01-20  Richard Guenther  <rguenther@suse.de>
3837         PR middle-end/47370
3838         * tree-inline.c (remap_gimple_op_r): Recurse manually for
3839         the pointer operand of MEM_REFs.
3841 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
3843         PR tree-optimization/46130
3844         * ipa-split.c (consider_split): If return_bb contains non-virtual
3845         PHIs other than for retval or if split_function would not adjust it,
3846         refuse to split.
3848 2011-01-20  Richard Guenther  <rguenther@suse.de>
3850         PR tree-optimization/47167
3851         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3852         Revert previous change, only avoid enumeral type changes.
3854 2011-01-19  Mike Stump  <mikestump@comcast.net>
3856         * doc/tm.texi.in (BRANCH_COST): Englishify.
3857         * doc/tm.texi (BRANCH_COST): Likewise.
3859 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
3861         PR c++/47291
3862         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
3863         (gen_scheduled_generic_parms_dies): New functions.
3864         (gen_struct_or_union_type_die): Schedule template parameters DIEs
3865         generation for the end of CU compilation.
3866         (dwarf2out_finish): Generate template parameters DIEs here.
3868 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
3870         PR debug/46240
3871         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
3872         debug bind stmt on merge edges.
3874 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
3876         PR debug/47079
3877         PR debug/46724
3878         * function.c (instantiate_expr): Instantiate incoming rtl of
3879         implicit arguments, and recurse on VALUE_EXPRs.
3880         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
3881         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
3883 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
3885         * c-parser.c (c_parser_for_statement): Initialize
3886         collection_expression.
3888 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3890         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
3892 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3894         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
3895         (LINK_SHLIB_SPEC): Don't use %(link_path).
3896         (SUBTARGET_EXTRA_SPECS): Remove link_path.
3898 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3900         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
3901         (NO_SHARED_LIB_SUPPORT): Remove.
3902         (LINK_SHLIB_SPEC): Remove one conditional definition.
3904 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3906         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
3907         %{call_shared}.
3908         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
3909         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
3910         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
3911         %{call_shared} and conditionals on these options not being passed.
3912         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
3913         %{call_shared}.
3915 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
3917         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
3918         simplify.
3920         * ipa-split.c: Spelling fixes.
3922 2011-01-19  Richard Henderson  <rth@redhat.com>
3924         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
3925         (*mulsi3): Likewise.
3927         * longlong.h [__mn10300__] (count_leading_zeros): New.
3928         [__mn10300__] (umul_ppmm, smul_ppmm): New.
3929         [__mn10300__] (add_ssaaaa, subddmmss): New.
3930         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
3931         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
3933 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3935         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
3937 2011-01-19  Richard Henderson  <rth@redhat.com>
3939         * config/mn10300/mn10300.md (addsi3_flags): New.
3940         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
3941         (subsi3_flags, subc_internal, subdi3): New.
3942         (subdi3_internal, *subdi3_degenerate): New.
3943         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
3945         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
3946         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
3947         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
3948         * config/mn10300/mn10300-protos.h: Update.
3949         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
3950         (return_ret): Likewise.  Rename from return_internal_regs.
3951         (return_internal): Remove.
3953         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
3954         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
3955         (mn10300_legitimate_constant_p): Likewise.
3956         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
3957         (mn10300_frame_size): New.
3958         (mn10300_expand_prologue): Use it.
3959         (mn10300_expand_epilogue): Likewise.
3960         (mn10300_initial_offset): Likewise.
3961         * config/mn10300/mn10300-protos.h: Update.
3962         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
3963         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
3964         (prologue, epilogue, return_internal): Tidy output code.
3965         (mn10300_store_multiple_operation, return): Likewise.
3966         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
3967         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
3968         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
3969         (load_pic, am33_load_pic): New.
3970         (mn10300_load_pic0, mn10300_load_pic1): New.
3972         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
3973         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
3974         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
3975         (cc_flags_for_mode, cc_flags_for_code): New.
3976         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
3977         overflow flag is not valid.  Validate that the flags we need
3978         for the comparison are valid.
3979         (mn10300_output_cmp): Remove.
3980         (mn10300_output_add): New.
3981         (mn10300_select_cc_mode): Use cc_flags_for_code.
3982         (mn10300_split_cbranch): New.
3983         (mn10300_match_ccmode): New.
3984         (mn10300_split_and_operand_count): New.
3985         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
3986         to the function.
3987         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
3988         (addsi3): ... here.  Use mn10300_output_add.
3989         (*addsi3_flags): New.
3990         (*am33_subsi3, *mn10300_subsi3): Merge...
3991         (subsi3): ... here.  Use attribute isa.
3992         (*subsi3_flags): New.
3993         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
3994         when possible.
3995         (*am33_andsi3, *mn10300_andsi3): Merge...
3996         (andsi3): ... here.
3997         (*andsi3_flags): New.
3998         (andsi3 splitters): New.
3999         (*am33_iorsi3, *mn10300_iorsi3): Merge...
4000         (iorsi3): ... here.
4001         (*iorsi3_flags): New.
4002         (*am33_xorsi3, *mn10300_xorsi3): Merge...
4003         (xorsi3): ... here.
4004         (*xorsi3_flags): New.
4005         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
4006         (one_cmplsi2): ... here.
4007         (*one_cmplsi2_flags): New.
4008         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
4009         instead of "dax" in constraints.  Use mn10300_split_cbranch.
4010         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
4011         use matching constraints to eliminate a self-comparison.
4012         (*integer_conditional_branch): Rename from integer_conditional_branch.
4013         Use int_mode_flags to match CC_REG.
4014         (*cbranchsi4_btst, *btstsi): New.
4015         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
4016         mn10300_split_cbranch.
4017         (*am33_cmpsf): Rename from am33_cmpsf.
4018         (*float_conditional_branch): Rename from float_conditional_branch.
4019         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
4020         (zero_extendqisi2): ... here.
4021         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
4022         (zero_extendhisi2): ... here.
4023         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
4024         (extendqisi2): ... here.
4025         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
4026         (extendhisi2): ... here.
4027         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
4028         (ashlsi3): ... here.
4029         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
4030         (lshrsi3): ... here.
4031         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
4032         (ashrsi3): ... here.
4033         (consecutive add peephole): Remove.
4034         * config/mn10300/predicates.md (label_ref_operand): New.
4035         (int_mode_flags): New.
4036         (CCZN_comparison_operator): New.
4038         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
4039         (throughput_42_latency_43): New reservation.
4040         (mulsidi3, umulsidi3): New expanders.
4041         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
4042         the MDR register to allocation; separately allocate the low and
4043         high parts of the DImode result.
4044         (umulsidi3_internal): Similarly.
4045         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
4046         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
4047         (udivsi3, umodsi3): Remove.
4048         (udivmodsi4, divmodsi4): New expanders.
4049         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
4050         (*divmodsi4): Simiarly.
4051         (ext_internal): New.
4053         * config/mn10300/constraints.md ("z"): New constraint.
4054         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
4055         (FIXED_REGISTERS): Don't fix MDR.
4056         (CALL_USED_REGSITERS): Reformat nicely.
4057         (REG_ALLOC_ORDER): Add MDR.
4058         (enum regclass): Add MDR_REGS.
4059         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
4060         (IRA_COVER_CLASSES): Add MDR_REGS.
4061         (REGNO_REG_CLASS): Handle MDR_REG.
4062         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
4063         (mn10300_register_move_cost): Likewise.
4064         * config/mn10300/mn10300.md (MDR_REG): New.
4065         (*movsi_internal): Handle moves to/from MDR_REGS.
4067         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
4068         POST_MODIFY.
4069         (mn10300_secondary_reload): Tidy combination reload classes.
4070         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
4071         addresses for AM33.  Allow symbolic offsets for reg+imm.
4072         (mn10300_regno_in_class_p): New.
4073         (mn10300_legitimize_reload_address): New.
4074         * config/mn10300/mn10300.h (enum reg_class): Remove
4075         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
4076         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
4077         SP_OR_GENERAL_REGS.
4078         (REG_CLASS_NAMES): Update to match.
4079         (REG_CLASS_CONTENTS): Likewise.
4080         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
4081         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
4082         (REGNO_IN_RANGE_P): Remove.
4083         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
4084         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
4085         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
4086         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
4087         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
4088         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
4089         (REGNO_GENERAL_P): New.
4090         (HAVE_POST_MODIFY_DISP): New.
4091         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
4092         (LEGITIMIZE_RELOAD_ADDRESS): New.
4093         * config/mn10300/mn10300-protos.h: Update.
4095         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
4096         DATA_REGS for AM33 stack-pointer destination.
4097         (mn10300_preferred_output_reload_class): Likewise.
4098         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
4099         into a form appropriate for ...
4100         (TARGET_SECONDARY_RELOAD): New.
4101         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
4102         * config/mn10300/mn10300-protos.h: Update.
4103         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
4104         reload_insi; use the "A" constraint for the scratch; handle AM33
4105         moves of sp to non-address registers.
4107         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
4108         (*movqi_internal): ... here.
4109         (*am33_movhi, *mn10300_movhi): Merge into...
4110         (*movhi_internal): ... here.
4111         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
4112         as the source/destination of moves from/to SP.
4113         (movsf): Only allow for AM33-2.
4114         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
4115         any integer constant constraint.  Only allow for AM33-2.  Tidy
4116         all of the alternative outputs.
4117         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
4118         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
4119         for MN103.
4120         (udivsi3, umodsi3): New patterns for MN103 only.
4122 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
4124         * doc/tm.texi.in: Spell out that a lack of register class unions
4125         can lead to ICEs.
4126         * doc/tm.texi: Regenerate.
4128 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
4130         PR rtl-optimization/47337
4131         * dce.c (check_argument_store): New function.
4132         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
4134         PR tree-optimization/47290
4135         * tree-eh.c (infinite_empty_loop_p): New function.
4136         (cleanup_empty_eh): Use it.
4138 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
4140         PR target/46997
4141         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
4142         (a64_expand_widen_sum): Ditto.
4143         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
4144         (vec_extract_evenodd_help): Ditto.
4145         (vec_extract_evenv4hi): Ditto.
4146         (vec_extract_oddv4hi): Ditto.
4147         (vec_extract_evenv2si): Ditto.
4148         (vec_extract_oddv2si): Ditto.
4149         (vec_extract_evenv2sf): Ditto.
4150         (vec_extract_oddv2sf): Ditto.
4151         (vec_pack_trunc_v4hi: Ditto.
4152         (vec_pack_trunc_v2si): Ditto.
4153         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
4154         (vec_interleave_highv8qi): Ditto.
4155         (mix1_r): Ditto.
4156         (vec_extract_oddv8qi): Ditto.
4157         (vec_interleave_lowv4hi): Ditto.
4158         (vec_interleave_highv4hi): Ditto.
4159         (vec_interleave_lowv2si): Ditto.
4160         (vec_interleave_highv2si): Ditto.
4162 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4164         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
4165         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
4166         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
4167         (pa_c_mode_for_suffix): New.
4168         (TARGET_EXPAND_BUILTIN): Define.
4169         (TARGET_C_MODE_FOR_SUFFIX): Define.
4170         (pa_builtins): Define.
4171         (pa_init_builtins): Register __float128 type and init new support
4172         builtins.
4173         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
4174         * config/pa/quadlib.c (_U_Qfcopysign): New.
4176 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
4178         PR middle-end/46894
4179         * explow.c (allocate_dynamic_stack_space): Do not assume more than
4180         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
4181         are defined.
4183 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4185         PR tree-optimization/47179
4186         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
4187         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
4189 2011-01-18  Richard Guenther  <rguenther@suse.de>
4191         PR rtl-optimization/47216
4192         * emit-rtl.c: Include tree-flow.h.
4193         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
4194         of replicating it with different semantics.
4195         * Makefile.in (emit-rtl.o): Adjust.
4197 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4199         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
4200         (cortex_a9_dp): Handle neon types correctly.
4202 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
4204         PR rtl-optimization/47299
4205         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
4206         subtarget.  Use normal multiplication if both operands are constants.
4207         * expmed.c (expand_widening_mult): Don't try to optimize constant
4208         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
4209         before using it.
4211 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4213         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
4214         spacing after 'e.g.', typos, comma, hyphenation.
4216 2011-01-17  Richard Henderson  <rth@redhat.com>
4218         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
4219         (rx_restricted_mem_operand): New.
4220         (rx_shift_operand): Use register_operand.
4221         (rx_source_operand, rx_compare_operand): Likewise.
4222         * config/rx/rx.md (addsi3_flags): New expander.
4223         (adddi3): Rewrite as expander.
4224         (adc_internal, *adc_flags, adddi3_internal): New patterns.
4225         (subsi3_flags): New expander.
4226         (subdi3): Rewrite as expander.
4227         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
4229         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
4230         (rx_init_builtins): Remove sat builtin.
4231         (rx_expand_builtin): Likewise.
4232         * config/rx/rx.md (ssaddsi3): New.
4233         (*sat): Rename from sat.  Represent the CC_REG input.
4235         * config/rx/predicates.md (rshift_operator): New.
4236         * config/rx/rx.c (rx_expand_insv): Remove.
4237         * config/rx/rx-protos.h: Update.
4238         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
4239         operand to the canonical position.
4240         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
4241         (*bitclr, *bitclr_in_memory): Similarly.
4242         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
4243         (insv): Retain the zero_extract in the expansion.
4245         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
4246         (bswaphi2, bitinvert, revw): Likewise.
4248         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
4249         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
4250         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
4251         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
4252         (bitset, bitset_in_memory): Likewise.
4253         (bitinvert, bitinvert_in_memory): Likewise.
4254         (bitclr, bitclr_in_memory): Likewise.
4255         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
4256         (rx_strend, rx_cmpstrn): Likewise.
4257         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
4258         (bitop peep2 patterns): Remove.
4260         * config/rx/rx.c (rx_match_ccmode): New.
4261         * config/rx/rx-protos.h: Update.
4262         * config/rx/rx.md (abssi2): Clobber, don't set flags.
4263         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
4264         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
4265         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
4266         (fix_truncsfsi2, floatsisf2): Likewise.
4267         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
4268         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
4269         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
4270         (*subsi3_flags, *xorsi3_flags): New.
4272         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
4274         * config/rx/rx.c (rx_print_operand): Remove workaround for
4275         unsplit comparison operations.
4277         * config/rx/rx.md (movsicc): Split after reload.
4278         (*movsicc): Merge *movsieq and *movsine via match_operator.
4279         (*stcc): New pattern.
4281         * config/rx/rx.c (rx_float_compare_mode): Remove.
4282         * config/rx/rx.h (rx_float_compare_mode): Remove.
4283         * config/rx/rx.md (cstoresi4): Split after reload.
4284         (*sccc): New pattern.
4286         * config/rx/predicates.md (label_ref_operand): New.
4287         (rx_z_comparison_operator): New.
4288         (rx_zs_comparison_operator): New.
4289         (rx_fp_comparison_operator): New.
4290         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
4291         Validate that the flags are set properly for the comparison.
4292         (rx_gen_cond_branch_template): Remove.
4293         (rx_cc_modes_compatible): Remove.
4294         (mode_from_flags): New.
4295         (flags_from_code): Rename from flags_needed_for_conditional.
4296         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
4297         (rx_select_cc_mode): Likewise.
4298         (rx_split_fp_compare): New.
4299         (rx_split_cbranch): New.
4300         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
4301         (*cbranchsi4): Use match_operator and rx_split_cbranch.
4302         (*cbranchsf4): Similarly.
4303         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
4304         match_operator and rx_split_cbranch.
4305         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
4306         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
4307         (*cmpsi): Rename from cmpsi.
4308         (*tstsi): Rename from tstsi.
4309         (*cmpsf): Rename from cmpsf; use CC_Fmode.
4310         (*conditional_branch): Rename from conditional_branch.
4311         (*reveresed_conditional_branch): Remove.
4312         (b<code>): Remove expander.
4313         * config/rx/rx-protos.h: Update.
4315         * config/rx/rx.c (rx_compare_redundant): Remove.
4316         * config/rx/rx.md (cmpsi): Don't use it.
4317         * config/rx/rx-protos.h: Update.
4319         * config/rx/rx-modes.def (CC_F): New mode.
4320         * config/rx/rx.c (rx_select_cc_mode): New.
4321         * config/rx/rx.h (SELECT_CC_MODE): Use it.
4322         * config/rx/rx-protos.h: Update.
4324 2011-01-17  Richard Henderson  <rth@redhat.com>
4326         * except.c (dump_eh_tree): Fix stray ; after for statement.
4328 2011-01-17  Richard Guenther  <rguenther@suse.de>
4330         PR tree-optimization/47313
4331         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
4332         handling before copying the body.  Properly deal with
4333         by-reference result in SSA form.
4335 2011-01-17  Ian Lance Taylor  <iant@google.com>
4337         PR target/47219
4338         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
4339         (struct_value_alias_set): Don't define.
4340         (sparc_option_override): Don't set sparc_sr_alias_set and
4341         struct_value_alias_set.
4342         (save_or_restore_regs): Use gen_frame_mem rather than calling
4343         set_mem_alias_set.
4344         (sparc_struct_value_rtx): Likewise.
4346 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4348         PR target/47318
4349         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
4350         __m128i.
4351         (_mm_maskstore_pd): Likewise.
4352         (_mm_maskload_ps): Likewise.
4353         (_mm_maskstore_ps): Likewise.
4354         (_mm256_maskload_pd): Change mask to __m256i.
4355         (_mm256_maskstore_pd): Likewise.
4356         (_mm256_maskload_ps): Likewise.
4357         (_mm256_maskstore_ps): Likewise.
4359         * config/i386/i386-builtin-types.def: Updated.
4360         (ix86_expand_special_args_builtin): Likewise.
4362         * config/i386/i386.c (bdesc_special_args): Update
4363         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
4364         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
4365         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
4366         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
4368         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
4369         Use <avxpermvecmode> on mask register.
4370         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
4372 2011-01-17  Olivier Hainque  <hainque@adacore.com>
4373             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4374             Eric Botcazou  <ebotcazou@adacore.com>
4376         PR target/46655
4377         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
4378         if <= USHRT_MAX in 32-bit mode.
4380 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4382         * doc/install.texi (Configuration, Specific): Wrap long
4383         lines in examples.  Allow line wrapping in long options
4384         and URLs where beneficial for PDF output.
4386 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
4388         * config/mips/mips.c (mips_classify_symbol): Don't return
4389         SYMBOL_PC_RELATIVE for nonlocal labels.
4391 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
4393         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
4395 2011-01-15  Jan Hubicka  <jh@suse.cz>
4397         PR tree-optimization/47276
4398         * ipa.c (function_and_variable_visibility): Do not try to mark alias
4399         declarations as needed.
4401 2011-01-15  Martin Jambor  <mjambor@suse.cz>
4403         * common.opt (fdevirtualize): New flag.
4404         * doc/invoke.texi (Option Summary): Document it.
4405         * opts.c (default_options_table): Add devirtualize flag.
4406         * ipa-prop.c (detect_type_change): Return immediately if
4407         devirtualize flag is not set.
4408         (detect_type_change_ssa): Likewise.
4409         (compute_known_type_jump_func): Likewise.
4410         (ipa_analyze_virtual_call_uses): Likewise.
4412 2011-01-14  Martin Jambor  <mjambor@suse.cz>
4414         PR tree-optimization/45934
4415         PR tree-optimization/46302
4416         * ipa-prop.c (type_change_info): New type.
4417         (stmt_may_be_vtbl_ptr_store): New function.
4418         (check_stmt_for_type_change): Likewise.
4419         (detect_type_change): Likewise.
4420         (detect_type_change_ssa): Likewise.
4421         (compute_complex_assign_jump_func): Check for dynamic type change.
4422         (compute_complex_ancestor_jump_func): Likewise.
4423         (compute_known_type_jump_func): Likewise.
4424         (compute_scalar_jump_functions): Likewise.
4425         (ipa_analyze_virtual_call_uses): Likewise.
4426         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
4428 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4430         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
4431         * config/i386/i386.opt (msse5): New Alias.
4433 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4435         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4436         * config/sparc/linux64.h (CC1_SPEC): Likewise.
4437         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4438         * config/sparc/sparc.h (CC1_SPEC): Likewise.
4440 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4442         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
4443         -mcpu options.
4444         * config/sparc/linux64.h (CC1_SPEC): Likewise.
4445         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4446         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
4447         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
4448         Likewise.
4449         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
4451 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4453         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
4455 2011-01-14  Mike Stump  <mikestump@comcast.net>
4457         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
4458         * config/fr30/fr30.md: Likweise
4459         (movsi_push): Likewise.
4460         (movsi_pop): Likewise.
4461         (enter_func): Likewise.
4462         * config/moxie/moxie.md (movsi_push): Likewise.
4463         (movsi_pop): Likewise.
4465 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4467         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
4468         %{no_archive} %{exact_version}.
4469         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
4470         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
4471         %{no_archive} %{exact_version}.
4472         * config/mips/openbsd.h (LINK_SPEC): Likewise.
4473         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
4474         * config/mips/vxworks.h: Likewise.
4476 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4478         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
4480 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4482         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
4483         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
4485 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4487         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
4488         -nodefaultlib.
4490 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4492         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
4493         for mcpu not cpu.
4494         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
4495         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
4496         not cpu.
4497         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
4498         Don't handle -shlib.
4500 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4502         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
4503         (CC1_SPEC): Don't handle -profile.
4505 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4507         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
4508         * config/mips/mips.h (CC1_SPEC): Likewise.
4510 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4512         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
4513         * config/mips/mips.h (CC1_SPEC): Likewise.
4515 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4517         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
4518         * config/m32r/linux.h (LINK_SPEC): Likewise.
4519         * config/mips/linux.h (LINK_SPEC): Likewise.
4520         * config/mips/linux64.h (LINK_SPEC): Likewise.
4521         * config/sparc/linux.h (LINK_SPEC): Likewise.
4522         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4523         LINK_SPEC): Likewise.
4524         * config/xtensa/linux.h (LINK_SPEC): Likewise.
4526 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4528         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
4529         %{version:-v}.
4530         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
4532 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4534         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
4535         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4537 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
4539         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
4541 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4543         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
4544         supports -Bstatic/-Bdynamic.
4545         * configure: Regenerate.
4547 2011-01-14  Jan Hubicka  <jh@suse.cz>
4548             Jack Howarth  <howarth@bromo.med.uc.edu>
4550         PR target/46037
4551         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
4552         when checking debug_info_level. Test write_symbols instead of
4553         debug_hooks->var_location when setting flag_var_tracking_uninit.
4555 2011-01-14  Richard Guenther  <rguenther@suse.de>
4557         PR tree-optimization/47179
4558         * target.def (ref_may_alias_errno): New target hook.
4559         * targhooks.h (default_ref_may_alias_errno): Declare.
4560         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
4561         (default_ref_may_alias_errno): New function.
4562         * target.h (struct ao_ref_s): Declare.
4563         * tree-ssa-alias.c: Include target.h.
4564         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
4565         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
4566         (targhooks.o): Likewise.
4567         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
4568         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
4570 2011-01-14  Richard Guenther  <rguenther@suse.de>
4572         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
4574 2011-01-14  Richard Guenther  <rguenther@suse.de>
4576         PR tree-optimization/47280
4577         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
4578         return CFG changes.
4579         (tree_ssa_forward_propagate_single_use_vars): Deal with
4580         CFG changes from associate_plusminus.
4582 2011-01-14  Richard Guenther  <rguenther@suse.de>
4584         PR middle-end/47281
4585         Revert
4586         2011-01-11  Richard Guenther  <rguenther@suse.de>
4588         PR tree-optimization/46076
4589         * tree-ssa.c (useless_type_conversion_p): Conversions from
4590         unprototyped to empty argument list function types are useless.
4592 2011-01-14  Richard Guenther  <rguenther@suse.de>
4594         PR tree-optimization/47286
4595         * tree-ssa-structalias.c (new_var_info): Register variables are global.
4597 2011-01-14  Martin Jambor  <mjambor@suse.cz>
4599         PR middle-end/46823
4600         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
4602 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
4604         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
4605         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4606         * config/xtensa/xtensa.c (xtensa_libcall_value,
4607         xtensa_function_value_regno_p): New functions.
4608         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4610 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
4612         PR c++/47213
4613         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
4614         PE specific hook.
4615         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
4616         New function prototype.
4617         * config/i386/winnt.c (i386_pe_assemble_visibility):
4618         Warn only if attribute was specified by user.
4620 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4622         PR target/47251
4623         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
4624         floating point.
4625         (floatunsdidf2_fcfidu): Ditto.
4627 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4629         * config/s390/s390.c (print_operand_address): Replace 'error' with
4630         'output_operand_lossage'.
4631         (print_operand): Likewise.
4633 2011-01-13  Jeff Law  <law@redhat.com>
4635         PR rtl-optimization/39077
4636         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
4637         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
4638         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
4639         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
4640         * gcse.c (prune_insertions_deletions): New function.
4641         (compute_pre_data): Use it.
4643 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
4645         PR debug/PR46973
4646         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
4647         static function.
4648         (prune_unused_types_mark): Use it.
4650 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
4652         PR rtl-optimization/45352
4653         * sel-sched.c: Update copyright years.
4654         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
4655         in the advancing loop when we have issued issue_rate insns.
4657 2011-01-12  Richard Henderson  <rth@redhat.com>
4659         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
4660         (TARGET_MD_ASM_CLOBBERS): New.
4662         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
4663         (TARGET_DELEGITIMIZE_ADDRESS): New.
4665         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
4666         (clzsi2, *bsch): New patterns.
4668         * config/mn10300/mn10300.md (INT): New mode iterator.
4669         (*mov<INT>_clr): New pattern, and peep2 to generate it.
4671         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
4672         flag_split_wide_types.
4674         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
4675         (mn10300_trampoline_init): Rewrite without a template, an immediate
4676         load and a direct branch.
4677         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
4679 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
4681         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4682         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
4683         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
4684         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4686 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
4688         PR debug/47209
4689         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
4690         of type.
4692 2011-01-12  Jan Hubicka  <jh@suse.cz>
4694         PR driver/47244
4695         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
4696         (PLUGIN_COND_CLOSE): New macro.
4697         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
4699 2011-01-12  Richard Guenther  <rguenther@suse.de>
4701         PR lto/47259
4702         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
4703         register variables in a MEM_REF.
4705 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
4707         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
4708         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
4709         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
4710         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4711         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4712         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
4713         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
4714         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
4715         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
4716         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
4717         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
4718         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
4719         * config/gnu-user.h: New.  Copied from linux.h.
4720         (LINUX_TARGET_STARTFILE_SPEC): Rename to
4721         GNU_USER_TARGET_STARTFILE_SPEC.
4722         (LINUX_TARGET_ENDFILE_SPEC): Rename to
4723         GNU_USER_TARGET_ENDFILE_SPEC.
4724         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
4725         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
4726         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
4727         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
4728         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
4729         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
4730         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
4731         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
4732         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
4733         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
4734         * config/arm/linux-eabi.h (CC1_SPEC): Use
4735         GNU_USER_TARGET_CC1_SPEC.
4736         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
4737         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
4738         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
4739         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
4740         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
4741         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
4742         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
4743         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
4745 2011-01-12  Richard Guenther  <rguenther@suse.de>
4747         PR other/46946
4748         * doc/invoke.texi (ffast-math): Document it is turned on
4749         with -Ofast.
4751 2011-01-12  Jan Hubicka  <jh@suse.cz>
4753         PR tree-optimization/47233
4754         * opts.c (common_handle_option): Disable ipa-reference with profile
4755         feedback.
4757 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4759         * c-parser.c (c_parser_objc_at_property_declaration): Improved
4760         error message.
4762 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4764         * c-parser.c (c_lex_one_token): Updated and reindented some
4765         comments.  No changes in code.
4767 2011-01-11  Ian Lance Taylor  <iant@google.com>
4769         * godump.c (go_output_var): Don't output the variable if there is
4770         already a type with the same name.
4772 2011-01-11  Ian Lance Taylor  <iant@google.com>
4774         * godump.c (go_format_type): Don't generate float80.
4776 2011-01-11  Richard Henderson  <rth@redhat.com>
4778         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
4779         declaration.  Rewrite for both speed and size.
4780         (mn10300_address_cost_1): Remove.
4781         (mn10300_register_move_cost): New.
4782         (mn10300_memory_move_cost): New.
4783         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
4784         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
4785         extensions, shifts, BSWAP, CLZ.
4786         (mn10300_wide_const_load_uses_clr): Remove.
4787         (TARGET_REGISTER_MOVE_COST): New.
4788         (TARGET_MEMORY_MOVE_COST): New.
4789         * config/mn10300/mn10300-protos.h: Update.
4790         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
4792         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
4793         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
4794         * config/mn10300/mn10300-protos.h: Update.
4795         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
4796         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
4797         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
4798         (*test_int_bitfield, *test_byte_bitfield): Remove.
4799         (*bit_test, *subreg_bit_test): Remove.
4800         * config/mn10300/predicates.md (const_8bit_operand): Remove.
4802         * config/mn10300/constraints.md ("c"): Rename from "A".
4803         ("A", "D"): New constraint letters.
4804         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
4805         (fmssf4, fnmasf4, fnmssf4): Likewise.
4807         * config/mn10300/mn10300.md (isa): New attribute.
4808         (enabled): New attribute.
4810         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
4811         (abssf2, negsf2): Define only for hardware fp.
4812         (sqrtsf2): Reformat.
4813         (addsf3, subsf3, mulsf3): Merge expander and insn.
4815         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
4816         (DEBUGGER_AUTO_OFFSET): Remove.
4817         (DEBUGGER_ARG_OFFSET): Remove.
4819         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
4820         Emit register stores with the same offsets as the hardware.
4821         (mn10300_store_multiple_operation): Don't check that the register
4822         save offsets are monotonic.
4823         * config/mn10300/mn10300-protos.h: Update.
4825         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
4827         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
4828         in terms of the value on the stack, not the MDR register.
4830 2011-01-11  Jan Hubicka  <jh@suse.cz>
4832         PR lto/45721
4833         PR lto/45375
4834         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
4835         (symbol_alias_set_destroy, symbol_alias_set_contains,
4836         propagate_aliases_backward): Declare.
4837         * lto-streamer-out.c (struct sets): New sturcture.
4838         (trivally_defined_alias): New function.
4839         (output_alias_pair_p): Rewrite.
4840         (output_unreferenced_globals): Fix output of alias pairs.
4841         (produce_symtab): Likewise.
4842         * ipa.c (function_and_variable_visibility): Set weak alias destination
4843         as needed in lto.
4844         * varasm.c (symbol_alias_set_t): Remove.
4845         (symbol_alias_set_destroy): Export.
4846         (propagate_aliases_forward, propagate_aliases_backward): New functions
4847         based on ...
4848         (compute_visible_aliases): ... this one; remove.
4849         (trivially_visible_alias): New
4850         (trivially_defined_alias): New.
4851         (remove_unreachable_alias_pairs): Rewrite.
4852         (finish_aliases_1): Reorganize code checking if alias is defined.
4853         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
4854         in LTO mode.
4856 2011-01-11  Richard Guenther  <rguenther@suse.de>
4858         PR tree-optimization/46076
4859         * tree-ssa.c (useless_type_conversion_p): Conversions from
4860         unprototyped to empty argument list function types are useless.
4862 2011-01-11  Richard Guenther  <rguenther@suse.de>
4864         PR middle-end/45235
4865         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
4866         volatile MEMs as MEM_READONLY_P.
4868 2011-01-11  Richard Guenther  <rguenther@suse.de>
4870         PR tree-optimization/47239
4871         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
4873 2011-01-11  Jeff Law  <law@redhat.com>
4875         PR tree-optimization/47086
4876         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
4877         IVs from statements that might throw.
4879 2011-01-10  Jan Hubicka  <jh@suse.cz>
4881         PR lto/45375
4882         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
4884 2011-01-10  Jan Hubicka  <jh@suse.cz>
4886         PR lto/45375
4887         * profile.c (read_profile_edge_counts): Ignore profile inconistency
4888         when correcting profile.
4890 2011-01-10  Jan Hubicka  <jh@suse.cz>
4892         PR lto/46083
4893         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
4894         DECL_FINI_PRIORITY.
4895         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
4896         Restore DECL_FINI_PRIORITY.
4898 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4900         * doc/gimple.texi: Fix quoting of multi-word return values in
4901         @deftypefn statements.  Ensure presence of return value.  Wrap
4902         overlong @deftypefn lines.
4903         (is_gimple_operand, is_gimple_min_invariant_address): Remove
4904         descriptions of removed functions.
4905         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
4906         of multi-word return value in @deftypefn statement.
4908 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4910         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
4911         (Conditional Expressions, Logical Operators)
4912         (Statement and operand traversals): Do not indent smallexample
4913         code.  Fix duplicate function argument in example.
4915 2011-01-10  Jeff Law  <law@redhat.com>
4917         PR tree-optimization/47141
4918         * ipa-split.c (split_function): Handle case where we are
4919         returning a value and the return block has a virtual operand phi.
4921 2011-01-10  Jan Hubicka  <jh@suse.cz>
4923         PR tree-optimization/47234
4924         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
4925         (pass_feedback_split_functions): Declare.
4926         * passes.c (init_optimization_passes): Add ipa-split as subpass of
4927         tree-profile.
4928         * ipa-split.c (gate_split_functions): Update comments; disable
4929         split-functions for profile_arc_flag and branch_probabilities.
4930         (gate_feedback_split_functions): New function.
4931         (execute_feedback_split_functions): New function.
4932         (pass_feedback_split_functions): New global var.
4934 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4936         PR lto/46760
4937         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
4938         calling gimple_call_set_cannot_inline.
4940 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
4942         * config/darwin-sections.def: Remove unused section.
4944 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
4946         PR c++/47218
4947         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
4949 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
4951         PR objc/47232
4952         * c-parser.c (c_parser_declaration_or_fndef): Improved
4953         error message.
4955 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
4957         * config/i386/winnt.c (i386_pe_start_function): Make sure
4958         to switch back to function's section.
4960 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
4962         PR gcc/46902
4963         PR testsuite/46912
4964         * plugin.c: Move include of dlfcn.h from here...
4965         * system.h: ... to here.
4967 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4969         * doc/cpp.texi (C++ Named Operators): Fix markup for header
4970         file name.
4971         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
4972         two extra empty pages in PDF output.
4974 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
4976         PR objc/47078
4977         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
4978         for error recovery purposes behave as if it was not specified so
4979         that the default type is usd.
4981 2011-01-07  Jan Hubicka  <jh@suse.cz>
4983         PR tree-optmization/46469
4984         * ipa.c (function_and_variable_visibility): Clear needed flags on
4985         nodes with external decls; handle weakrefs merging correctly.
4987 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
4989         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
4990         not false.
4992 2011-01-07  Jan Hubicka  <jh@suse.cz>
4994         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
4995         and no longer claim that gold is required for linker plugin.
4996         * configure: Regenerate.
4997         * gcc.c (PLUGIN_COND): New macro.
4998         (LINK_COMMAND_SPEC): Use it.
4999         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
5000         * config.in (HAVE_LTO_PLUGIN): New.
5001         * configure.ac (--with-lto-plugin): New parameter; autodetect
5002         HAVE_LTO_PLUGIN.
5004 2011-01-07  Jan Hubicka  <jh@suse.cz>
5006         PR tree-optimization/46367
5007         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
5008         when we can update original.
5009         (cgraph_mark_inline_edge): Sanity check.
5010         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
5012 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5014         * config/spu/spu.h (ASM_COMMENT_START): Define.
5016 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5018         PR driver/42445
5019         * gcc.c (%>S): New.
5020         (SWITCH_KEEP_FOR_GCC): Likewise.
5021         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
5022         (do_spec_1): Handle "%>".
5024         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
5026 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
5028         PR target/47201
5029         * config/i386/i386.c (ix86_delegitimize_address): If
5030         simplify_gen_subreg fails, return orig_x.
5032         PR bootstrap/47187
5033         * value-prof.c (gimple_stringop_fixed_value): Handle
5034         lhs of the call properly.
5036 2011-01-07  Jan Hubicka  <jh@suse.cz>
5038         PR lto/45375
5039         * lto-opt.c (lto_reissue_options): Set flag_shlib.
5041 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
5043         * target.def (function_switched_text_sections): New hook.
5044         * doc/tm.texi: Regenerated.
5045         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
5046         * final.c (default_function_switched_text_sections): New.
5047         (final_scan_insn): Call function_switched_text_sections when a
5048         mid-function section change occurs.
5049         * output.h (default_function_switched_text_sections): Declare.
5050         * config/darwin-protos.h (darwin_function_switched_text_sections):
5051         Likewise.
5052         * config/darwin.c (darwin_function_switched_text_sections): New.
5053         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
5055 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
5057         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
5058         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
5059         the secondary code fragment when outputting for DWARF == 2.
5061 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
5063         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5064         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
5065         Remove.
5066         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
5067         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5069 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
5071         PR debug/46704
5072         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
5073         when it is not empty.
5075 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
5077         Bobcat Enablement
5078         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
5079         (case ${target}): Add btver1.
5080         * config/i386/driver-i386.c (host_detect_local_cpu): Let
5081         -march=native recognize btver1 processors.
5082         * config/i386/i386-c.c (ix86_target_macros_internal): Add
5083         btver1 def_and_undef
5084         * config/i386/i386.c (struct processor_costs btver1_cost): New
5085         btver1 cost table.
5086         (m_BTVER1): New definition.
5087         (m_AMD_MULTIPLE): Includes m_BTVER1.
5088         (initial_ix86_tune_features): Add btver1 tune.
5089         (processor_target_table): Add btver1 entry.
5090         (static const char *const cpu_names): Add btver1 entry.
5091         (software_prefetching_beneficial_p): Add btver1.
5092         (ix86_option_override_internal): Add btver1 instruction sets.
5093         (ix86_issue_rate): Add btver1.
5094         (ix86_adjust_cost): Add btver1.
5095         * config/i386/i386.h (TARGET_BTVER1): New definition.
5096         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
5097         (enum processor_type): Add PROCESSOR_BTVER1.
5098         * config/i386/i386.md (define_attr "cpu"): Add btver1.
5100 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5102         PR target/43309
5103         * config/i386/i386.c (legitimize_tls_address)
5104         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
5105         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
5106         (tls_initial_exec_64_sun): New pattern.
5108 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
5110         * doc/invoke.texi (Overall Options): Improve wording and markup
5111         of the description of -wrapper.
5113 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
5115         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
5116         rdynamic, threads): New Driver options.
5118 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5120         PR target/38118
5121         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
5122         if coming from .tdata.
5123         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5125 2011-01-06  Jan Hubicka  <jh@suse.cz>
5127         PR lto/47188
5128         * collect2.c (main): Do not enable LTOmode when plugin is active.
5130 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5132         PR other/45915
5133         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
5134         --version output if supported.
5135         * configure: Regenerate.
5137 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
5139         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
5140         Driver options.
5142 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
5144         PR c/47150
5145         * c-convert.c (convert): When converting a complex expression
5146         other than COMPLEX_EXPR to a different complex type, ensure
5147         c_save_expr is called instead of save_expr, unless in_late_binary_op.
5148         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
5149         when converting COMPLEX_TYPE.
5151 2011-01-06  Ira Rosen  <irar@il.ibm.com>
5153         PR tree-optimization/47139
5154         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
5155         only the last reduction value is used outside the loop.  Update
5156         documentation.
5158 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
5160         * config/rtems.opt: New.
5161         * config.gcc (*-*-rtems*): Use rtems.opt.
5163 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
5165         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
5166         processors do not support 3DNow instructions.
5168 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5170         * config/spu/spu.c (spu_option_override): Set parameter
5171         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
5173 2011-01-05  Jan Hubicka  <jh@suse.cz>
5175         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
5176         at the command line.
5178 2011-01-05  Martin Jambor  <mjambor@suse.cz>
5180         PR lto/47162
5181         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
5182         deltas on streamed outgoing edges.
5183         (output_node_opt_summary): Output info for outgoing edges only when
5184         the node is in new parameter set.
5185         (output_cgraph_opt_summary): New parameter set, passed to the two
5186         aforementioned functions.  Update its forward declaration and its
5187         callee too.
5189 2011-01-05  Tom Tromey  <tromey@redhat.com>
5191         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
5192         operator to c_finish_omp_atomic.
5193         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
5194         (build_unary_op): Update.
5195         (build_modify_expr): Update.
5196         (build_asm_expr): Update.
5198 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5200         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
5201         newly inserted insns.
5202         (pad_bb): Likewise.
5203         (spu_emit_branch_hint): Likewise.
5204         (insert_hbrp_for_ilb_runout): Likewise.
5205         (spu_machine_dependent_reorg): Call df_finish_pass after
5206         schedule_insns returns.
5208 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5210         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
5212 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5214         PR tree-optimization/47005
5215         * tree-sra.c (struct access): Add 'non_addressable' bit.
5216         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
5217         (decide_one_param_reduction): Return 0 if the parameter is passed by
5218         reference and one of the accesses in the group is non_addressable.
5220 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5222         PR tree-optimization/47056
5223         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
5224         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
5225         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
5227 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5229         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
5230         initializer.  Skip view conversions from aggregate types.
5232 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
5234         PR bootstrap/47055
5235         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
5237 2011-01-04  Philipp Thomas  <pth@suse.de>
5239         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
5240         obvious typo.
5242 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5244         * function.c (thread_prologue_and_epilogue_insns): Do not crash
5245         on empty epilogue sequences.
5247 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
5249         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
5250         non-static): New Driver options.
5252 2011-01-04  Jie Zhang  <jie@codesourcery.com>
5254         PR driver/47137
5255         * gcc.c (default_compilers[]): Set combinable field to 0
5256         for all assembly languages.
5258 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
5260         * config/mips/loongson3a.md: New file.
5261         * config/mips/mips.md: Include loongson3a.md.
5262         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
5263         TUNE_LOONGSON_3A.
5265 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
5267         PR middle-end/47017
5268         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
5269         instead of convert_memory_address_addr_space on the base expression.
5271 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5273         * config/spu/spu.c (spu_option_override): Update error text
5274         for bad -march= / -mtune= values.
5276 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5278         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
5279         if branch-hint optimization will be performed.
5281 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
5283         PR tree-optimization/47148
5284         * ipa-split.c (split_function): Convert arguments to
5285         DECL_ARG_TYPE if possible.
5287         PR tree-optimization/47155
5288         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
5289         when computing uns.
5291         PR rtl-optimization/47157
5292         * combine.c (try_combine): If undobuf.other_insn becomes
5293         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
5294         and set *new_direct_jump_p too.
5296 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
5298         PR tree-optimization/47021
5299         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
5301 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
5303         * gcc.c (process_command): Update copyright notice dates.
5304         * gcov.c (print_version): Likewise.
5305         * gcov-dump.c (print_version): Likewise.
5306         * mips-tfile.c (main): Likewise.
5307         * mips-tdump.c (main): Likewise.
5309 2011-01-03  Martin Jambor  <mjambor@suse.cz>
5311         PR tree-optimization/46801
5312         * tree-sra.c (type_internals_preclude_sra_p): Check whether
5313         aggregate fields start at byte boundary instead of the bit-field flag.
5315 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5317         PR driver/47137
5318         * gcc.c (main): Revert revision 168407.
5320 2011-01-03  Martin Jambor  <mjambor@suse.cz>
5322         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
5324 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5326         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
5327         vector optab to expand vector/scalar shift, update gimple to vector.
5329 2011-01-03  Martin Jambor  <mjambor@suse.cz>
5331         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
5332         a thunk.
5334 2011-01-03  Martin Jambor  <mjambor@suse.cz>
5336         PR tree-optimization/46984
5337         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
5338         HOST_WIDE_INT.
5339         (cgraph_create_indirect_edge): Fixed line length.
5340         (cgraph_indirect_call_info): Declare.
5341         (cgraph_make_edge_direct) Update declaration.
5342         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
5343         (cgraph_create_indirect_edge): Use it.
5344         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
5345         callees.
5346         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
5347         the new thunk_delta representation.
5348         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
5349         HOST_WIDE_INT.
5350         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
5351         (ipa_read_indirect_edge_info): Likewise.
5352         * lto-cgraph.c (output_edge_opt_summary): New function.
5353         (output_node_opt_summary): Call it on all outgoing edges.
5354         (input_edge_opt_summary): New function.
5355         (input_node_opt_summary): Call it on all outgoing edges.
5357 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
5359         PR driver/47137
5360         * gcc.c (main): Don't check have_o when settting combine_inputs.
5362 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
5364         * regrename.c: Add general comment describing the pass.
5365         (struct du_head): Remove 'length' field.
5366         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
5367         (regrename_optimize): Do not sort chains.  Rework comments, add others.
5368         Force renaming to the preferred class (if any) in the first pass and do
5369         not consider registers that belong to it in the second pass.
5370         (create_new_chain): Do not set 'length' field.
5371         (scan_rtx_reg): Likewise.
5373 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
5375         PR tree-optimization/47140
5376         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
5377         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
5378         to bit_value_binop.
5380         PR rtl-optimization/47028
5381         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
5382         parm_birth_insn instead of at the beginning of first bb.
5384 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
5386         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
5387         Remove the word "see" before "@pxref".
5388         * doc/rtl.texi: Remove the word "see" before "@pxref".
5390 2011-01-01  Jan Hubicka  <jh@suse.cz>
5392         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
5393         memory.
5395 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
5397         PR target/38662
5398         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
5401 Copyright (C) 2011 Free Software Foundation, Inc.
5403 Copying and distribution of this file, with or without modification,
5404 are permitted in any medium without royalty provided the copyright
5405 notice and this notice are preserved.