2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
[official-gcc.git] / gcc / ChangeLog
bloba1ae80c59ebda13f3cbf4c8d44720cd571321653
1 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3         PR tree-optimization/46728
4         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5         (powi_as_mults): Add gimple_set_location.
6         (build_and_insert_call): New.
7         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
8         0.5, 0.25, 0.75, 1./3., or 1./6.
9         
10 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
12         * doc/contrib.texi: Update copyright years.
13         (Contributors): Add Zdenek Sojka.
15 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
17         * c-decl.c (c_push_function_context): Copy the current statement
18         list stack.
19         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
20         (finish_struct): Call building_stmt_list_p instead of checking
21         cur_stmt_list.
22         * c-parser.c (c_parser_postfix_expression): Likewise.
23         * c-typeck.c (c_end_compound_stmt): Likewise.
24         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
25         * tree-iterator.c (stmt_list_cache): Change to a VEC.
26         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
27         (free_stmt_list): Likewise.
28         * tree.h (struct tree_statement_list): Include typed_tree instead
29         of tree_common.
30         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
31         as TS_TYPED instead of TS_COMMON.
33 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34             Uros Bizjak <ubizjak@gmail.com>
36         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
37         (HAVE_AS_IX86_TLSGDPTL): Define.
38         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
39         (HAVE_AS_IX86_TLSLDMPLT): Define.
40         * configure: Regenerate.
41         * config.in: Regenerate.
42         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
43         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
44         TARGET_SUN_TLS, use @tlsgdplt or @plt.
45         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
46         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
47         @tlsldmplt or @plt.
48         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
50 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
52         * sched-int.h (struct _haifa_deps_insn_data): New members cond
53         and reverse_cond.
54         (INSN_COND, INSN_REVERSE_COND): New macros.
55         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
56         once.
57         (sched_get_condition_with_rev): Cache the results, and look them up
58         if possible.
59         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
60         are clobbered by the current insn.
61         * target.def (exposed_pipline): New sched data hook.
62         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
63         * doc/tm.texi: Regenerate.
65 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
67         PR tree-optimization/49170
68         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
69         sincos or cexp.
71 2011-05-27  Richard Guenther  <rguenther@suse.de>
73         PR middle-end/49189
74         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
75         of comparisons.
77 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
79         * haifa-sched.c (sched_scan_info): Remove.
80         (schedule_block): Call sched_extend_luids rather than sched_init_luids
81         with NULL args.
82         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
83         Remove functions.
84         (sched_scan): Remove.
85         (sched_extend_luids): Renamed from luids_extend_insn and no longer
86         static.  All callers changed.
87         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
88         static.  All callers changed.
89         (sched_init_luids): Remove all arguments except the first.  All
90         callers changed.  Don't use sched_scan.
91         (haifa_init_h_i_d): Likewise.
92         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
93         manually rather than using sched_init_luids.  Likewise with
94         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
95         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
96         rather than sched_init_luids with NULL args.
97         * sel-sched-ir.c (new_insns): Remove variable.
98         (sched_scan): New static function, previously in haifa-sched.c.  Remove
99         all arguments but the first two; all callers changed.
100         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
101         rather than sched_init_luids.
102         (sel_init_bbs): Remove second argument.  All callers changed.
103         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
104         with NULL arguments.
105         (create_insn_rtx_from_pattern): Likewise.
106         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
107         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
108         (sched_init_insn_luid, sched_extend_luids): Declare.
109         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
110         declarations.
112 2011-05-27  Richard Guenther  <rguenther@suse.de>
114         PR middle-end/49177
115         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
116         A CMP B ? (T) true : (T) false for non-integral types T again.
118 2011-05-27  Jan Hubicka  <jh@suse.cz>
120         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
121         so 0 means NULL string.
122         (lto_output_string_with_length): ... here.
123         (lto_output_string, output_string_cst, output_identifier): Update
124         handling of NULL strings.
125         (lto_output_location_bitpack): New function.
126         (lto_output_location): Use it.
127         (lto_output_tree_ref): Use output_record_start.
128         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
129         len values.
130         * lto-streamer-in.c (string_for_index): Break out from ...; offset
131         values by 1.
132         (input_string_internal): ... here; 
133         (input_string_cst, input_identifier, lto_input_string): Update handling
134         of NULL strings.
135         (lto_input_location_bitpack): New function
136         (lto_input_location): Use it.
137         (unpack_ts_type_common_value_fields): Pack align & alias in var len
138         values.
139         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
140         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
141         (bp_pack_value): Sanity check the value range.
142         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
143         New functions.
144         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
145         New functions.
147 2011-05-27  Hariharan Sandanagobalane <hariharan@picochip.com>
149         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
150         call_arg_location instructions down the floor.
152 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
154         PR rtl-optimization/49154
155         * ira.c (setup_pressure_classes): Process class without sublcasses
156         as a candidate for pressure classes.
158 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
160         PR rtl-optimization/48575
161         * genrecog.c (position_type): New enum.
162         (position): New structure.
163         (decision): Use position structure instead of a string.
164         (root_pos, peep2_insn_pos_list): New variables.
165         (next_position, compare_positions): New functions.
166         (new_decision): Use position structures instead of strings.
167         (maybe_both_true): Likewise.
168         (change_state): Likewise.
169         (write_tree): Likewise.
170         (make_insn_sequence): Likewise.
172 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
174         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
175         TS_BASE instead of TS_COMMON.
176         (find_decls_types_r): Check for TS_TYPED structure before looking at
177         TREE_TYPE.
178         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
179         Add chain field.
180         (BLOCK_CHAIN): Use new chain field.
182 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
184         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
185         moves expensive on Power7 also.
187 2011-05-26  Richard Guenther  <rguenther@suse.de>
189         * fold-const.c (fold_unary_loc): Remove bogus code.
191 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
193         * tree.h (struct tree_identifier): Inherit from tree_typed, not
194         tree_common.
195         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
196         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
197         TS_BASE instead of TS_COMMON.
198         * varasm.c (assemble_name): Remove assert.
200 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
202         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
203         substituted first.
204         * libgcc-std.ver: Delete file.
206 2011-05-26  Richard Guenther  <rguenther@suse.de>
208         PR tree-optimization/48702
209         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
210         only when we know the base address is within bounds.
211         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
212         assume the base address of TARGET_MEM_REFs is in bounds.
214 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
216         PR target/49099
217         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
218         declaration in TARGET_SOLARIS.
220 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
222         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
223           The instruction is then expanded explicitly.
224         (supported_compare): Callable instruction.
225         (compare): Likewise.
227 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
229         PR c++/49165
230         * gimplify.c (shortcut_cond_r): Don't special case
231         COND_EXPRs if they have void type on one of their arms.
233 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
235         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
236         to reduce duplication, and to achieve a slightly more logical order
237         of operations.
239 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
241         PR tree-optimization/49161
242         * tree-vrp.c (struct case_info): New type.
243         (compare_case_labels): Sort case_info structs instead of
244         trees, and not primarily by CASE_LABEL uids but by
245         label_for_block indexes.
246         (find_switch_asserts): Put case labels into struct case_info
247         array instead of TREE_VEC, adjust sorting, compare label_for_block
248         values instead of CASE_LABELs.
250 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
252         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
253         ("orndi3_neon"): Likewise.
254         ("bic<mode>3_neon"): Likewise.
256 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
258         PR tree-optimization/49038
259         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
260         Ensure at least one epilogue iteration if required by data
261         accesses with gaps.
262         * tree-vectorizer.h (struct _loop_vec_info): Add new field
263         to mark loops that require peeling for gaps.
264         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
265         (vect_get_known_peeling_cost): Take peeling for gaps into
266         account.
267         (vect_transform_loop): Generate epilogue if required by data
268         access with gaps.
269         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
270         loop as requiring an epilogue if there are gaps in the end of
271         the strided group.
273 2011-05-25  Ian Lance Taylor  <iant@google.com>
275         * godump.c (go_format_type): Output the first field with a usable
276         Go type, if any.
278 2011-05-25  Ian Lance Taylor  <iant@google.com>
280         * godump.c (go_format_type): Check for invalid type names, pointer
281         target types, and struct field types.
283 2011-05-25  Jason Merrill  <jason@redhat.com>
285         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
287 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
289         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
291 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
293         * config/i386/i386.md (*movqi_extv_1)): Put back
294         "register_operand" check in "type" calculation.
295         (*movqi_extzv_2): Likewise.
297 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
299         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
301 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
303         PR bootstrap/49160
304         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
305         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
306         __divxc3, __divtc3): Wrap definitions in #ifndef.
308 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
310         PR target/49142
311         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
312         "register_operand" check and replace q_regs_operand with
313         QIreg_operand in "type" calculation.
314         (*movqi_extv_1): Likewise.
315         (*movqi_extzv_2_rex64): Likewise.
316         (*movqi_extzv_2): Likewise.
318         * config/i386/predicates.md (QIreg_operand): New.
320 2011-05-25  Richard Guenther  <rguenther@suse.de>
322         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
323         type-based offset disambiguation, streamline MEM_REF and
324         TARGET_MEM_REF handling.
326 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
328         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
329         (bdesc_special_args): Add pause intrinsic.
331         * config/i386/i386.md (UNSPEC_PAUSE): New.
332         (pause): Likewise.
333         (*pause): Likewise.
334         * config/i386/ia32intrin.h (__pause): Likewise.
336         * doc/extend.texi (X86 Built-in Functions): Add documentation for
337         pause intrinsic.
339 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
341         PR tree-optimization/46728
342         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
343         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
345 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
347         * tree.h (struct tree_exp): Inherit from struct tree_typed.
348         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
349         instead of TS_COMMON.
351 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
353         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
354         LIBGCC2_GNU_PREFIX is defined.
355         (__N): New macro.
356         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
357         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
358         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
359         __clz_tab): Define using __N.
360         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
361         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
362         * target.def (libfunc_gnu_prefix): New hook.
363         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
364         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
365         * doc/tm.texi: Regenerate.
366         * system.h (LIBGCC2_GNU_PREFIX): Poison.
367         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
368         account.
369         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
370         (init_optabs): Likewise for the bswap libfuncs.
371         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
372         and divide.
373         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
374         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
375         * libgcc-std.ver: Remove.
376         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
377         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
378         libgcc-std.ver.
379         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
380         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
381         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
382         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
383         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
384         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
385         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
386         * config/fixed-bit.h (FIXED_OP): Define differently depending on
387         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
388         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
390 2011-05-25  Jan Hubicka  <jh@suse.cz>
392         * lto-streamer-out.c (output_record_start): Use lto_output_enum
393         (lto_output_tree): Use output_record_start.
394         * lto-streamer-in.c (input_record_start): Use lto_input_enum
395         (lto_get_pickled_tree): Use input_record_start.
396         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
397         (lto_value_range_error): New function.
398         * lto-streamer.h (lto_value_range_error): Declare.
399         (lto_output_int_in_range, lto_input_int_in_range): New functions.
400         (lto_output_enum, lto_input_enum): New macros.
402 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
404         * common.opt (flag_stack_usage_info): New variable.
405         (-Wstack-usage): New option.
406         * doc/invoke.texi (Warning options): Document -Wstack-usage.
407         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
408         <OPT_fstack_usage>: Likewise.
409         * toplev.c (output_stack_usage): Handle -Wstack-usage.
410         * calls.c (expand_call): Test flag_stack_usage_info variable instead
411         of flag_stack_usage.
412         (emit_library_call_value_1): Likewise.
413         * explow.c (allocate_dynamic_stack_space): Likewise.
414         * function.c (instantiate_virtual_regs ): Likewise.
415         (prepare_function_start): Likewise.
416         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
417         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
418         * config/arm/arm.c (arm_expand_prologue): Likewise.
419         (thumb1_expand_prologue): Likewise.
420         * config/avr/avr.c (expand_prologue): Likewise.
421         * config/i386/i386.c (ix86_expand_prologue): Likewise.
422         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
423         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
424         * config/mips/mips.c (mips_expand_prologue): Likewise.
425         * config/pa/pa.c (hppa_expand_prologue): Likewise.
426         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
427         * config/s390/s390.c (s390_emit_prologue): Likewise.
428         * config/sh/sh.c (sh_expand_prologue): Likewise.
429         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
430         * config/spu/spu.c (spu_expand_prologue): Likewise.
432 2011-05-25  Richard Guenther  <rguenther@suse.de>
434         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
435         (gimple_canonical_types_compatible_p): Likewise.
437 2011-05-25  Jan Hubicka  <jh@suse.cz>
439         PR middle-end/49062
440         * ipa.c (function_and_variable_visibility): Only add to same
441         comdat group list if DECL_ONE_ONLY.
443 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
445         PR rtl-optimization/49014
446         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
448 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
450         PR target/49128
451         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
453 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
455         PR rtl-optimization/48757
456         * ira-build.c (loop_with_eh_edge_p): Rename to
457         loop_with_complex_edge_p, check edges on complexity, make function
458         conditional.
459         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
460         conditional.
462 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
464         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
465         force flag_ira_share_save_slots to 0.
467 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
469         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
470         (vt_initialize): Set PROLOGUE_BB unconditionally.
471         Add block comment about CFA_BASE_RTX machinery.
472         Reset FP_CFA_OFFSET to -1 on all invalid paths.
473         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
475 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
477         PR objc/48187
478         * c-parser.c (c_parser_objc_class_instance_variables): More robust
479         parsing of syntax error in ObjC instance variable lists.  In
480         particular, avoid an infinite loop if there is a stray ']'.
481         Updated error message.
483 2011-05-24  Ian Lance Taylor  <iant@google.com>
485         * godump.c (go_define): Don't accept a string immediately after
486         another operand.
488 2011-05-24  Ian Lance Taylor  <iant@google.com>
490         * godump.c (struct godump_container): Add invalid_hash field.
491         (go_format_type): Return false if type is found in invalid_hash.
492         (go_output_typedef): Add invalid type to invalid_hash.
493         (go_finish): Create and delete invalid_hash.
495 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
497         PR tree-optimization/46728
498         * tree-ssa-math-opts.c (powi_table): New.
499         (powi_lookup_cost): New.
500         (powi_cost): New.
501         (powi_as_mults_1): New.
502         (powi_as_mults): New.
503         (gimple_expand_builtin_powi): New.
504         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
505         (gate_cse_sincos): Remove sincos/cexp restriction.
507 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
509         PR target/3746
510         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
511         mips-tdump native.
512         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
513         * mips-tdump.c: Likewise.
515 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
517         PR target/49128
518         * config/i386/driver-i386.c (host_detect_local_cpu): Always
519         add -mno-XXX.  Handle FMA.
521 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
523         PR rtl-optimization/48633
524         * ira-build.c (loop_with_eh_edge_p): New function.
525         (mark_loops_for_removal): Use it.
527 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
529         PR rtl-optimization/48971
530         * ira.c (setup_pressure_classes): Don't check register move cost
531         for classes with one registers.  Don't add pressure class if there
532         is a pressure class with the same available hard registers.
533         Check contains_reg_of_mode.  Fix a typo in collecting
534         temp_hard_regset.  Ignore hard registers not belonging to a class.
536 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
538         PR target/49133
539         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
541 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
542             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
544         PR gcov-profile/48845
545         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
547 2011-05-24  Richard Guenther  <rguenther@suse.de>
549         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
550         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
551         (gimple_types_compatible_p_1): Adjust.
552         (iterative_hash_canonical_type): Do not bother about complete vs.
553         incomplete types.
554         (gimple_canonical_types_compatible_p): Likewise.
556 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
558         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
560 2011-05-24  Richard Guenther  <rguenther@suse.de>
562         PR bootstrap/49078
563         * gimple.c (gimple_register_canonical_type): Revert
564         previous change.
565         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
566         does not for a tree for the case where it matters.  Cache
567         pointer-type alias-sets.
569 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
571         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
572         (OBJS): Remove options.o, opts-common.o and prefix.o.
573         (OBJS-libcommon-target): New.
574         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
575         (BACKEND): Include libcommon-target.a.
576         (MOSTLYCLEANFILES): Include libcommon-target.a.
577         (libcommon-target.a): New.
578         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
579         prefix.o.
581 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
583         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
584         parts of output shared with the driver.
585         * optc-gen.awk: Don't generate parts of output not shared with the
586         driver.
587         * opth-gen.awk: Remove GCC_DRIVER conditionals.
588         * doc/options.texi (SourcerInclude): Mention options-save.c.
589         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
590         (OBJS): Add options-save.o.
591         (options-save.c, options-save.o): New.
592         (options.o): Update dependencies.
593         (gcc-options.o): Remove.
594         (mostlyclean): Remove options-save.c.
596 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
598         PR debug/49032
599         * dbxout.c: Include cgraph.h.
600         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
601         and without value expr, return NULL if no varpool node exists for
602         it or if it is not needed.
603         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
605         PR c/49120
606         * c-decl.c (start_decl): Convert expr to void_type_node.
608 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
610         PR rtl-optimization/48826
611         * emit-rtl.c (try_split): When splitting a call that is followed
612         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
614 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
616         * cfgexpand.c (expand_debug_expr): For unused non-addressable
617         parameters passed in memory prefer using DECL_INCOMING_RTL over
618         the pseudos it will be copied into.
620 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
622         PR target/47315
623         * config/i386/i386.c (ix86_option_override_internal): Save the
624         initial options after checking vzeroupper.
626 2011-05-23  David Li  <davidxl@google.com>
628         PR tree-optimization/48988
629         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
630         Initialize has_valid_pred for each pred chain.
632 2011-05-23  Richard Guenther  <rguenther@suse.de>
634         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
635         (iterative_hash_gimple_type): Always hash type names.
637 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
639         * c-typeck.c (build_function_call_vec): Tweak call to
640         check_function_arguments.
642 2011-05-23  Richard Guenther  <rguenther@suse.de>
644         PR tree-optimization/49115
645         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
646         is not necessarily carried out, do not claim it kills the ref.
647         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
649 2011-05-23  Richard Guenther  <rguenther@suse.de>
651         PR middle-end/15419
652         * builtins.c (fold_builtin_memory_op): Be less restrictive about
653         what pointer types we accept for folding.
655 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
657         * gthr-gnat.c: Remove.
658         * gthr-gnat.h: Remove.
659         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
660         * config/t-freebsd (LIB2ADDEH): Likewise.
661         * config/t-linux (LIB2ADDEH): Likewise.
662         * config/t-sol2 (LIB2ADDEH): Likewise.
663         * config/ia64/t-vms (LIB2ADDEH): Likewise.
664         * configure.ac (target_thread_file): Remove gnat handling.
665         * configure: Regenerate.
666         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
668 2011-05-23  Tristan Gingold  <gingold@adacore.com>
669             Eric Botcazou  <ebotcazou@adacore.com>
671         * gcov.c (create_file_names): If no object directory is specified,
672         keep the directory of the file.
674 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
676         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
677         * configure: Regenerate.
679 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
681         PR middle-end/48973
682         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
683         failed and the comparison has a single bit signed type, use
684         constm1_rtx instead of const1_rtx for true value.
685         (do_store_flag): If ops->type is single bit signed type, disable
686         signel bit test optimization and pass -1 instead of 1 as last
687         parameter to emit_store_flag_force.
689 2011-05-23  Tom de Vries  <tom@codesourcery.com>
691         PR target/45098
692         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
693         function.
694         (infer_loop_bounds_from_undefined): Use new function.
696 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
698         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
699         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
700         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
701         and -O0 otherwise.
702         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
704 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
706         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
707         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
708         returns true.
710 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
712         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
714 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
716         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
717         UNSPEC_MOVE_PIC pattern.
719 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
721         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
722         (sparc-*-rtems*): Likewise.
723         (sparc64-*-elf*): Likewise.
724         (sparc64-*-rtems*): Likewise.
725         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
726         * config/sparc/t-crtin: New file.
727         * config/sparc/t-sol2 (crti.o): Delete rule.
728         (crtn.o): Likewise.
729         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
730         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
731         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
732         (ENDFILE_SPEC): Add crtn.o.
734 2011-05-22  Tom de Vries  <tom@codesourcery.com>
736         PR middle-end/48689
737         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
738         CODE_CONTAINS_STRUCT (TS_COMMON).
740 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
742         PR middle-end/49029
743         * expmed.c (extract_fixed_bit_field): Test whether target can be used
744         only after deciding which mode to use.
746 2011-05-22  Tom de Vries  <tom@codesourcery.com>
748         PR target/45098
749         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
750         for call to get_shiftadd_cost.
752 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
754         PR target/49104
755         * config/i386/cpuid.h (bit_MMXEXT): New define.
757 2011-05-22  Nick Clifton  <nickc@redhat.com>
759         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
760         initialisation of non-existant args[2] element.  Use args[] array
761         not arg[] array to pass arguments to build_function_type_list.
763 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
765         PR tree-optimization/49087
766         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
768 2011-05-21  Jason Merrill  <jason@redhat.com>
770         PR c++/49092
771         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
772         static storage duration.
774 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
776         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
777         frame pointer.
779 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
781         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
782         false if there are call-saved registers here...
783         (sparc_can_use_return_insn_p): ...but here instead.
784         (save_or_restore_regs): Fix thinko.
785         (sparc_expand_prologue): Use current_function_is_leaf.
786         (sparc_frame_pointer_required): Likewise.
788 2011-05-21  Nick Clifton  <nickc@redhat.com>
790         PR target/49098
791         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
793 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
795         * gengtype.c (walk_type): Implemented "atomic" GTY option.
796         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
798 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
800         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
801         * optc-gen.awk: Move common code to opt-read.awk.
802         * opth-gen.awk: Likewise.
803         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
805 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
807         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
809 2011-05-20  Tom de Vries  <tom@codesourcery.com>
811         PR target/45098
812         * tree-ssa-loop-ivopts.c: Include expmed.h.
813         (get_shiftadd_cost): New function.
814         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
816 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
818         PR bootstrap/49086
819         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
820         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
822 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
824         * Makefile.in: Update comment referring to $(OBJS-common).
826 2011-05-20  Ian Lance Taylor  <iant@google.com>
828         * godump.c (go_output_typedef): Put enum constants in the macro
829         hash table to avoid duplicate Go const definitions.
831 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
833         * Makefile.in (LIBDEPS): Add libcommon.a.
834         (LIBS): Likewise.
835         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
836         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
837         pretty-print.o and version.o.
838         (OBJS-libcommon): New.
839         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
840         (BACKEND): Add libcommon.a.
841         (MOSTLYCLEANFILES): Likewise.
842         (libcommon.a): New.
843         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
844         (cpp$(exeext)): Likewise.
845         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
846         pretty-print.o and input.o.
847         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
848         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
849         (errors.o): Remove.
850         (mips-tfile): Don't explicitly use version.o.
851         (mips-tdump): Likewise.
852         (gcov.o): Depend on $(DIAGNOSTIC_H).
853         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
854         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
855         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
856         * gcov-dump.c: Include intl.h and diagnostic.h.
857         (main): Initialize diagnostics.
858         * gcov.c: Include diagnostic.h.
859         (fnotice): Remove.
860         (main): Initialize diagnostics.
861         * lto-wrapper.c: Include diagnostic.h.
862         (main): Initialize diagnostics.
864 2011-05-20  Michael Matz  <matz@suse.de>
866         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
868 2011-05-20  Michael Matz  <matz@suse.de>
869             Richard Guenther  <rguenther@suse.de>
871         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
872         use lto_streamer_cache_append directly instead of returning a VEC.
873         (preload_common_node): Remove.
874         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
875         track seen nodes.
876         (lto_streamer_cache_create): Call lto_preload_common_nodes.
878 2011-05-20  Richard Guenther  <rguenther@suse.de>
880         PR tree-optimization/49079
881         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
882         MEM_REFs correctly for the trailing array access detection.
883         Special case constants the same way as decls for overall size
884         constraining.
886 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
888         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
889         argument expansion.
891 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
893         PR tree-optimization/49073
894         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
895         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
896         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
898 2011-05-20  Richard Guenther  <rguenther@suse.de>
900         PR middle-end/48849
901         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
902         of pointer types the same way the middle-end does.
904 2011-05-20  Richard Guenther  <rguenther@suse.de>
906         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
907         or pointer-to chains.  Delay all fixup to uniquify_nodes.
909 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
911         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
912         (fma4_fmaddsub): Likewise
914 2011-05-19  Jan Hubicka  <jh@suse.cz>
916         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
917         (GIMPLE_TYPE_PAIR_SIZE): New macro.
918         (type_pair_cache): New static var.
919         (lookup_type_pair): Use fixed sized custom hash; make inline.
920         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
921         calls of lookup_type_pair.
922         (print_gimple_types_stats): Remove cache stats.
923         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
924         and gtc_ob.
926 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
928         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
929         when TARGET_RDRND is active.
930         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
931         Generate dummy SImode target register when target is NULL.
933 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
935         * config/arm/arm-fpus.def: New.
936         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
937         arm-fpus.def.
938         * config/arm/arm-tables.opt: Regenerate.
939         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
940         (arm_option_override): Don't decode FPU name to string here.
941         * config/arm/arm.opt (mfpu=): Use Enum.
942         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
943         Update dependencies.
945 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
947         * collect2.c: Include diagnostic.h.
948         (fatal_perror, fatal, error, fancy_abort): Remove.
949         (main): Set progname.  Call xmalloc_set_program_name and
950         diagnostic_initialize.
951         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
952         scan_libraries, resolve_lib_name): Call fatal_error instead of
953         fatal and fatal_perror.
954         * collect2.h (error, fatal, fatal_perror): Don't declare.
955         * tlink.c: Include diagnostic-core.h.
956         (recompile_files): Call fatal_error instead of fatal_perror.
957         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
958         pretty-print.o and input.o.
959         (collect2.o, tlink.o): Update dependencies.
961 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
963         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
965 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
967         PR target/40483
968         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
969         COMDAT group syntax, both SPARC and x86 variants.
970         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
971         * configure: Regenerate.
972         * config/sol2.h (TARGET_SOLARIS): Define.
973         (PUSHSECTION_FORMAT): Remove.
974         (SECTION_NAME_FORMAT): Define.
975         * config/sol2.c: Include hashtab.h.
976         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
977         expansion, using SECTION_NAME_FORMAT.
978         (solaris_comdat_htab): New variable.
979         (struct comdat_entry): Define.
980         (comdat_hash): New function.
981         (comdat_eq): New function.
982         (solaris_elf_asm_comdat_section): New function.
983         (solaris_define_comdat_signature): New function.
984         (solaris_code_end): New function.
985         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
986         (solaris_code_end): Declare.
987         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
988         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
989         solaris_code_end.
990         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
991         Remove ATTRIBUTE_UNUSED.
992         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
993         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
994         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
995         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
996         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
997         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
998         (PUSHSECTION_FORMAT): Remove.
999         (SECTION_NAME_FORMAT): Redefine.
1001 2011-05-19  Kai Tietz  <ktietz@redhat.com>
1003         * tree-cfg.c (verify_gimple_assign_binary): Barf on
1004         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1005         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1007 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
1008             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1010         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1012 2011-05-19  Richard Guenther  <rguenther@suse.de>
1014         PR middle-end/48985
1015         * tree-object-size.c (addr_object_size): If the pointed-to
1016         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1018 2011-05-19  Richard Guenther  <rguenther@suse.de>
1020         * gimple.c (gimple_types_compatible_p_1): Compare names of
1021         the types themselves.
1022         (iterative_hash_gimple_type): And hash them that way.
1023         (gimple_register_type_1): If we register a main variant properly
1024         initialize the leader to ourselves.
1026 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1028         PR target/45098
1029         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1030         get_loop_invariant_expr_id.
1031         (get_loop_invariant_expr_id): Use get_expr_id.
1032         (parm_decl_cost): New function.
1033         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1034         Improve bound cost estimation.  Use different inv_expr_id for elim and
1035         express cases.
1037 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1039         PR target/45098
1040         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1041         cost_base.cost == 0.
1043 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1045         PR target/49002
1046         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1047         Properly handle load cast.
1049 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1051         PR tree-optimization/49039
1052         * tree-vrp.c (extract_range_from_binary_expr): For
1053         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1054         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1056 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1058         PR target/45098
1059         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1061 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1063         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1064         (*tls_global_dynamic_64): Ditto.
1065         (*tls_local_dynamic_base_32_gnu): Ditto.
1066         (*tls_local_dynamic_base_64): Ditto.
1067         (tls_initial_exec_64_sun): Ditto.
1069 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1071         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1072         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1073         bf592-none.
1074         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1075         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1076         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1077         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1078         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1079         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1080         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1082 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1084         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1085         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1086         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1087         target_thread_pointer, arm_structure_size_boundary, struct
1088         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1089         struct abi_name, arm_all_abis): Remove.
1090         (arm_option_override) Don't process most enumerated option values here.
1091         Don't process target_fpe_name here.  Work with integer not string for
1092         structure size boundary; use separate diagnostics for each case.
1093         * config/arm/arm.h (enum float_abi_type, enum
1094         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1095         to arm-opts.h.
1096         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1097         arm_structure_size_boundary): Remove.
1098         * config/arm/arm.opt (mabi=): Use Enum and Init.
1099         (arm_abi_type): New Enum and EnumValue entries.
1100         (mfloat-abi=): Use Enum and Init.
1101         (float_abi_type): New Enum and EnumValue entries.
1102         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1103         (mfp16-format=): Use Enum and Init.
1104         (arm_fp16_format_type): New Enum and EnumValue entries.
1105         (mstructure-size-boundary=): Use UInteger and Init.
1106         (mtp=): Use Enum and Init.
1107         (arm_tp_type): New Enum and EnumValue entries.
1109 2011-05-18  Richard Guenther  <rguenther@suse.de>
1111         PR tree-optimization/49018
1112         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1113         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1114         gimple_has_side_effects.
1116 2011-05-18  Richard Guenther  <rguenther@suse.de>
1118         * gimple.c (gimple_register_type_1): New function, split out from ...
1119         (gimple_register_type): ... here.  Avoid infinite recursion.
1121 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1123         PR tree-optimization/41881
1124         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1125         reduction_chains along with a macro for its access.
1126         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1127         (destroy_loop_vec_info): Free reduction chains.
1128         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1129         (vect_is_slp_reduction): New function.
1130         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1131         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1132         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1133         definition types for reduction chains.
1134         (vect_supported_load_permutation_p): Don't allow permutations for
1135         reduction chains.
1136         (vect_analyze_slp_instance): Support reduction chains.
1137         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1138         (vect_get_constant_vectors):  Handle reduction chains.
1139         (vect_schedule_slp_instance): Mark the first statement of the
1140         reduction chain as reduction.
1142 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1144         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1145         names for group elements access.
1146         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1147         reduction chains as well.  Remove data reference and interleaving
1148         related words from the fields names.
1149         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1150         elements access.
1151         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1152         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1153         vect_update_interleaving_chain, vect_same_range_drs,
1154         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1155         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1156         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1157         vect_analyze_group_access, vect_analyze_data_ref_access,
1158         vect_create_data_ref_ptr, vect_transform_strided_load,
1159         vect_record_strided_load_vectors): Likewise.
1160         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1161         vect_model_load_cost, vectorizable_store, vectorizable_load,
1162         vect_remove_stores, new_stmt_vec_info): Likewise.
1163         * tree-vect-slp.c (vect_build_slp_tree,
1164         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1166 2011-05-18  Richard Guenther  <rguenther@suse.de>
1168         PR middle-end/48989
1169         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1170         operand verification.
1171         (verify_gimple_assign_binary): Likewise.
1172         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1173         to non-1-precision BOOLEAN_TYPEs.
1175 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1177         PR target/45098
1178         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1180 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1182         PR tree-optimization/49000
1183         * tree-ssa.c (execute_update_addresses_taken): Call
1184         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1185         be rewritten and decl has been marked for renaming, reset
1186         the debug stmt.
1188 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1190         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1191         enum_opts_set when testing if attributes have set -mfpmath=.
1193 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1195         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1197 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1199         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1200         info->entry with 0
1201         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1202         id.transform_lang_insert_block with NULL.
1204 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1206         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1207         (output_fp_compare): Change args 3 and 4 to bool.
1208         (ix86_expand_call): Change arg 6 to bool.
1209         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1210         (ix86_attr_length_vex_default): Change arg 3 to bool.
1211         * config/i386/i386.md: Update all uses.
1212         * config/i386/i386.c: Ditto.
1213         (ix86_flags_dependent): Change return type to bool.
1215 2011-05-17  Richard Guenther  <rguenther@suse.de>
1217         * gimple.c (type_hash_pair_compare): Fix comparison.
1219 2011-05-17  Richard Guenther  <rguenther@suse.de>
1221         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1222         case some more, fix final hash value of the non-singleton case.
1224 2011-05-17  Richard Guenther  <rguenther@suse.de>
1226         PR bootstrap/49013
1227         Revert
1228         2011-05-16  Richard Guenther  <rguenther@suse.de>
1230         * gimple.c (gimple_types_compatible_p_1): Use names of the
1231         type itself, not its main variant.
1232         (iterative_hash_gimple_type): Likewise.
1234 2011-05-17  Richard Guenther  <rguenther@suse.de>
1236         * gimple.c (gimple_register_canonical_type): Use the main-variant
1237         leader for computing the canonical type.
1239 2011-05-17  Nick Clifton  <nickc@redhat.com>
1241         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1242         moves.
1244         * config/rx/rx.md: Add peephole to remove redundant extensions
1245         after loads.
1246         (bitset_in_memory): Use rx_restricted_mem_operand.
1247         (bitinvert_in_memory): Likewise.
1248         (bitclr_in_memory): Likewise.
1250 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1251             Nick Clifton  <nickc@redhat.com>
1253         * config/rx/rx.md: Add peepholes to match a register move followed
1254         by a comparison of the moved register.  Replace these with an
1255         addition of zero that does both actions in one instruction.
1257 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1259         PR target/48986
1260         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1261         predicate to allow CONST_INT.
1262         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1264 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1266         * opts-common.c (opt_enum_arg_to_value): New.
1267         * opts.h (opt_enum_arg_to_value): Declare.
1268         * config/i386/i386.opt (fpmath): Remove.
1269         (mfpmath=): Use Enum, Init and Save.
1270         (fpmath_unit): New Enum and EnumValue entries.
1271         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1272         name for function fpmath state.
1273         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1274         * config/i386/i386.c: Include diagnostic.h.
1275         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1276         (ix86_target_string): Take enum fpmath_unit value instead of string.
1277         (ix86_debug_options): Update call to ix86_target_string.
1278         (ix86_option_override_internal): Don't process fpmath strings here.
1279         (x86_function_specific_save, ix86_function_specific_restore):
1280         Don't handle fpmath state specially.
1281         (ix86_function_specific_print): Pass fpmath state to
1282         ix86_target_string instead of printing in this function.
1283         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1284         Handle enum attributes.
1285         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1286         (ix86_valid_target_attribute_tree): Update option_strings
1287         handling.  Handle fpmath as enum option.
1288         (ix86_can_inline_p): Update field names for function fpmath state.
1289         (ix86_expand_builtin): Update call to ix86_target_string.
1290         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1291         (ix86_fpmath): Remove.
1292         * config/i386/t-i386 (i386.o): Update dependencies.
1294 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1296         PR preprocessor/48677
1297         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1298         from decoded_options[0], not from itself.
1300 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1302         * config/i386/constraints.md (z): New constraint.
1303         * config/i386/i386.c (c): New mode attribute.
1304         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1305         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1306         constraint for operand 0.
1307         (*call_vzeroupper): Ditto.
1308         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1309         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1310         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1311         Use "lzm" constraint for operand 0.
1312         (*call_pop_vzeroupper): Ditto.
1313         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1314         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1315         constraint for operand 0.
1316         (*sibcall_vzeroupper): Ditto.
1317         (*sibcall_rex64_ms_sysv): Ditto.
1318         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1319         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1320         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1321         (*sibcall_pop_vzeroupper): Ditto.
1322         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1323         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1324         mode iterator.  Use "<c>zm" constraint for operand 1.
1325         (*call_value_vzeroupper): Ditto.
1326         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1327         for operand 1.
1328         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1329         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1330         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1331         (*call_value_pop_vzeroupper): Ditto.
1332         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1333         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1334         mode iterator.  Use "Uz" constraint for operand 1.
1335         (*sibcall_value_vzeroupper): Ditto.
1336         (*sibcall_value_rex64_ms_sysv): Ditto.
1337         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1338         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1339         constraint for operand 1.
1340         (*sibcall_value_pop_vzeroupper): Ditto.
1341         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1342         and "z" constraint for operand 2.
1343         (*tls_global_dynamic_32_gnu): Ditto.
1344         (*tls_local_dynamic_base_32_gnu): Ditto.
1345         (*tls_local_dynamic_base_64): Ditto.
1346         (*tls_local_dynamic_32_once): Ditto.
1347         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1348         Update all callers.
1349         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1351 2011-05-16  Richard Guenther  <rguenther@suse.de>
1353         * gimple.c (gimple_types_compatible_p_1): Use names of the
1354         type itself, not its main variant.
1355         (iterative_hash_gimple_type): Likewise.
1357 2011-05-16  Richard Guenther  <rguenther@suse.de>
1359         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1360         always visit pointer target and function result and argument types.
1362 2011-05-16  Jason Merrill  <jason@redhat.com>
1364         PR c++/48999
1365         * tree-inline.c (copy_statement_list): Put back recursion.
1367 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1369         PR target/27663
1370         PR target/41076
1371         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1372         * config/avr/avr.md ("*ior<mode>qi.byte0",
1373         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1375 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1377         PR target/45099
1378         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1379         register is needed for a function argument.
1381 2011-05-16  Richard Guenther  <rguenther@suse.de>
1383         * gimple.c (struct type_hash_pair): New type.
1384         (type_hash_pair_compare): New function.
1385         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1387 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1389         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1391 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1393         * config/i386/i386.md (floating point move splitters): Fix
1394         usage of standard_80387_constant_p.
1395         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1397 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1399         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1401 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1403         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1404         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1405         (tree_ssa_lim_finalize): Likewise.
1407 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1409         * config/i386/constraint.md (Yd, Yx): New register constraints.
1410         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1411         Yd conditional register constraint.
1412         (*movtf_internal): Use standard_sse_constant_opcode.
1413         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1414         Yx conditional register constraint.
1415         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1416         Yd conditional register constraint.  Use standard_sse_constant_p to
1417         check for valid SSE constants and call standard_sse_constant_opcode to
1418         output SSE insn.
1419         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1420         constants and call standard_sse_constant_opcode to output SSE insn.
1421         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1422         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1423         optimize_size is set.
1424         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1426 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1428         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1430 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1432         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1433         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1434         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1435         (evaluate_conditions_for_ipcp_clone): Removed.
1436         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1437         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1438         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1440 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1442         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1443         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1444         lieu of MAY_HAVE_DEBUG_STMTS.
1445         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1446         debug statements if !MAY_HAVE_DEBUG_STMTS.
1448 2011-05-13  Martin Thuresson  <martint@google.com>
1450         PR gcov-profile/47793
1451         * libgcov.c (gcov_exit): Support relative profile paths.
1452         * doc/invoke.texi (-fprofile-dir): Update for above change.
1454 2011-05-13  Richard Guenther  <rguenther@suse.de>
1456         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1457         type-pair caching, do not compare hashes.
1459 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1461         PR middle-end/48965
1462         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1463         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1465 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1467         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1468         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1469         compatible type for TRUTH_NOT_EXPR.
1471 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1473         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1474         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1475         can_create_pseudo_p ().
1477 2011-05-13  Richard Guenther  <rguenther@suse.de>
1479         PR lto/48978
1480         * gimple.c (iterative_hash_gimple_type): Revert change in
1481         pointer target and function result and argument hashing.
1483 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1485         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1486         (*movxf_internal_nointeger): Ditto.
1487         (*movdf_internal_rex64): Ditto.
1488         (*movdf_internal): Ditto.
1489         (*movdf_internal_nointeger): Ditto.
1490         (*movsf_internal): Ditto.
1491         (sincos splitters): Use can_create_pseudo ().
1493 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1495         * config/i386/i386-opts.h: New.
1496         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1497         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1498         ix86_section_threshold): Remove.
1499         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1500         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1501         OPT_mbranch_cost_.
1502         (ix86_option_override_internal): Don't decode strings for options
1503         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1504         __attribute__ uses in remaining diagnostics for options with
1505         string arguments.  Don't check for integer arguments being negative.
1506         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1507         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1508         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1509         ix86_branch_cost, ix86_section_threshold): Remove.
1510         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1511         HeaderInclude.
1512         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1513         but not Var.
1514         (masm=): Use Enum and Init.
1515         (asm_dialect): New Enum and EnumValue entries.
1516         (mbranch-cost=): Use UInteger.
1517         (mlarge-data-threshold=): Use UInteger and Init.
1518         (mcmodel=): Use Enum and Init.
1519         (cmodel): New Enum and EnumValue entries.
1520         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1521         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1522         mregparm=): Use UInteger.
1523         (mstringop-strategy=): Use Enum and Init.
1524         (stringop_alg): New Enum and EnumValue entries.
1525         (mtls-dialect=): Use Enum and Init.
1526         (tls_dialect): New Enum and EnumValue entries.
1527         (mabi=): Use Enum and Init.
1528         (calling_abi): New Enum and EnumValue entries.
1529         (mveclibabi=): Use Enum and Init.
1530         (ix86_veclibabi): New Enum and EnumValue entries.
1532 2011-05-13  Nick Clifton  <nickc@redhat.com>
1534         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1535         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1537 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1539         PR middle-end/48984
1540         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1541         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1542         (gimple_boolify): Check for cast for boolean_type_node instead for
1543         BOOLEAN_TYPE.
1545 2011-05-13  Richard Guenther  <rguenther@suse.de>
1547         PR tree-optimization/48172
1548         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1549         multiplying by number of iterations for equal step.
1550         (vect_create_cond_for_alias_checks): Likewise.
1552 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1554         * configure.ac: Use AS_HELP_STRING throughout.
1555         * configure: Regenerate.
1557 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1559         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1560         (ix86_emit_restore_regs_using_mov): Likewise.
1561         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1563 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1565         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1566         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1567         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1568         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1569         RTX_OK_FOR_OLO10_P): ...here.
1570         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1571         SYMBOLIC_CONST.
1573 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1575         * gimplify.c (gimple_boolify): Re-boolify expression
1576         arguments even if expression type is of kind BOOLEAN_TYPE.
1577         (gimplify_boolean_expr): Removed.
1578         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1579         and XOR. Additional take care that we keep expression's type.
1580         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1581         of TRUTH_AND|OR|XOR_EXPR.
1583 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1585         PR tree-optimization/48975
1586         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1587         on all bbs here and free and clear ifc_bbs at the end.
1589 2011-05-12  Richard Guenther  <rguenther@suse.de>
1591         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1592         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1593         until after simple checks.
1594         (gimple_types_compatible_p): Likewise.
1595         (iterative_hash_gimple_type): Always hash pointer targets
1596         and function return and argument types.
1597         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1598         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1599         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1600         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1601         completely in the simple compare section.
1602         (gimple_register_canonical_type): Query the cache again after
1603         registering.
1605 2011-05-12  Richard Guenther  <rguenther@suse.de>
1607         PR tree-optimization/48172
1608         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1609         the number of iterations from the segment size calculation.
1610         (vect_create_cond_for_alias_checks): Adjust.
1612 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1614         PR debug/48967
1615         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1616         if validate_subreg fails.
1618 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1620         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1621         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1622         early.
1624 2011-05-12  DJ Delorie  <dj@redhat.com>
1626         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1627         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1628         created builtin into rx_builtins array.
1629         (rx_builtin_decl): New function.
1630         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1632 2011-05-12  DJ Delorie  <dj@redhat.com>
1633             Nick Clifton  <nickc@redhat.com>
1635         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1636         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1637         (rx_is_legitimate_address): Add pre-decrement and post-increment
1638         addressing in HImode and QImode.  Fix test for out of range
1639         REG+INT addressing.
1640         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1641         (rx_align_for_label): Test label before extracting its usage count.
1642         (rx_adjust_insn_lengths): Fix selection of insn codes.
1643         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1645 2011-05-11  Jason Merrill  <jason@redhat.com>
1647         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1649 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1651         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1652         reindent the subsequent block.
1654 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1655             Paul Pluzhnikov  <ppluzhnikov@google.com>
1657         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1658         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1659         * config.in: Add LINKER_HASH_STYLE.
1660         * configure.ac: Add --with-linker-hash-style.
1661         * configure: Regenerate.
1663 2011-05-11  Richard Guenther  <rguenther@suse.de>
1665         PR middle-end/48964
1666         * gimple.c (iterative_hash_canonical_type): Fix typo.
1668 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1670         * config/i386/i386.c (legitimize_tls_address)
1671         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1672         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1673         __tls_get_addr symbol reference here.  Update call to
1674         gen_tls_global_dynamic_{32,64} for added arguments.
1675         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1676         expanders directly for TARGET_GNU2_TLS.  Determine
1677         __tls_get_addr symbol reference here.  Update call to
1678         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1679         unique UNSPEC REG_EQUIV to libcall block.
1680         (ix86_tls_get_addr): Declare static.
1681         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1682         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1683         Do not determine pic and __tls_get_addr symbol reference here. Do not
1684         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1685         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1686         (tls_global_dynamic_64): Add operand 2.  Do not determine
1687         __tls_get_addr symbol reference here.  Do not call
1688         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1689         (tls_local_dynamic_base64): Ditto for operand 1.
1691 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1693         * function.c (expand_function_start): Initialize stack_check_probe_note
1694         only if the generic stack checking mechanism is used.
1696 2011-05-11  Richard Guenther  <rguenther@suse.de>
1698         PR tree-optimization/15256
1699         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1700         (A & B) | C, combine (A op CST1) op CST2.
1701         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1702         visit assigns that have uses.
1704 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1706         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1707         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1708         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1709         (unpack_value_fields): Adjust for renaming.
1710         (lto_input_ts_type_tree_pointers): Split into...
1711         (lto_input_ts_type_common_tree_pointer): ...this and...
1712         (lto_input_ts_type_non_common_tree_pointers): ...this.
1713         (lto_input_tree_pointers): Adjust for above split.
1714         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1715         (pack_ts_type_common_value_fields): ...this.  Update comment.
1716         (lto_output_ts_type_tree_pointers): Split into...
1717         (lto_output_ts_type_common_tree_pointers): ...this and...
1718         (lto_output_ts_type_non_common_tree_pointers): ...this.
1719         (lto_output_tree_pointers): Adjust for above split.
1720         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1721         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1722         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1723         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1724         Define.
1725         (struct tree_type): Split into...
1726         (struct tree_type_common: ...this and...
1727         (struct tree_type_with_lang_specific): ...this and...
1728         (struct tree_type_non_common): ...this.  Adjust accessor macros
1729         accordingly.
1730         (TYPE_VALUES_RAW): Define.
1731         (union tree_node): Update for above changes.
1732         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1733         TS_TYPE_NON_COMMON.
1734         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1735         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1736         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1737         * treestructu.def (TS_TYPE): Remove.
1738         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1739         Define.
1741 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1743         PR debug/48159
1744         * tree-ssa.c (reset_debug_uses): New function.
1745         * tree-flow.h (reset_debug_uses): New prototype.
1746         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1747         * tree-loop-distribution.c (generate_loops_for_partition): Call
1748         reset_debug_uses on the stmts that will be removed.  Keep around
1749         all debug stmts, don't count them as bits in partition bitmap.
1750         (generate_builtin): Don't count debug stmts or labels as bits in
1751         partition bitmap.
1753 2011-05-11  Richard Guenther  <rguenther@suse.de>
1755         * gimple.c (gimple_type_hash_1): Merge with ...
1756         (gimple_type_hash): ... this.
1757         (gtc_visit): Remove mode parameter and simplify accordingly.
1758         (gimple_types_compatible_p_1): Likewise.
1759         (gimple_types_compatible_p): Likewise.
1760         (iterative_hash_gimple_type): Likewise.
1761         (visit): Likewise.
1762         (gimple_type_eq): Adjust.
1764 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1766         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1767         enters the branch create an anti edge in the opposite direction
1768         to prevent the creation of reg-moves.
1769         * modulo-sched.c: Adjust comment to reflect the fact we are
1770         scheduling closing branch.
1771         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1772         (stage_count): New field in struct partial_schedule.
1773         (calculate_stage_count): New function.
1774         (normalize_sched_times): Rename to reset_sched_times and handle
1775         incrementing the sched time of the nodes by a constant value
1776         passed as parameter.
1777         (duplicate_insns_of_cycles): Skip closing branch.
1778         (sms_schedule_by_order): Schedule closing branch.
1779         (ps_insn_find_column): Handle closing branch.
1780         (sms_schedule): Call reset_sched_times and adjust the code to
1781         support scheduling of the closing branch.
1782         (ps_insert_empty_row): Update calls to normalize_sched_times
1783         and rotate_partial_schedule functions.
1785 2011-05-11  Richard Guenther  <rguenther@suse.de>
1787         PR middle-end/48953
1788         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1790 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1792         * opts.c (finish_options): Move warning settings from process_options.
1793         * toplev.c (process_options): Move warning settings to finish_options.
1795 2011-05-11  Richard Guenther  <rguenther@suse.de>
1797         PR tree-optimization/18041
1798         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1799         (simplify_bitwise_binary): ... this.  Handle operand conversions
1800         by applying them to the result instead.
1801         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1803 2011-05-11  Richard Guenther  <rguenther@suse.de>
1805         * gimple.c (gimple_canonical_types_compatible_p): Split out
1806         from gimple_types_compatible_p and friends.  Do not recurse
1807         to pointed-to types.
1808         (gimple_canonical_type_eq): Use it.
1809         (iterative_hash_canonical_type): Split out from
1810         iterative_hash_gimple_type and friends.  Do not recurse
1811         to pointed-to types.
1812         (gimple_canonical_type_hash): Use it, allocate the hash here.
1814 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1816         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1817         recognizing doloop.
1819 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1821         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1822         instead of PREV_INSN.
1824 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1826         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1827         * loop-doloop.c (doloop_condition_get): Likewise.
1828         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1829         (doloop_end): New.
1830         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1832 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1834         * tree.def (CASE_LABEL_EXPR): Add an operand.
1835         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1837 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1839         * c-decl.c (c_override_global_bindings_to_false): Remove.
1840         (global_bindings_p): Don't check
1841         c_override_global_bindings_to_false.
1842         * c-tree.h (c_override_global_bindings_to_false): Remove.
1843         * c-typeck.c (composite_type): Don't set
1844         c_override_global_bindings_to_false.
1846 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1848         PR target/48857, 48495
1849         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1850         (VSX_MODE): Ditto.
1851         (VSX_MOVE_MODE): Ditto.
1852         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1853         VSX vector types.  Add V2DImode.
1854         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1855         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1856         (MODES_TIEABLE_P): Ditto.
1858         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1859         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1860         VSX_VECTOR_MODE.
1861         (init_cumulative_args): Ditto.
1862         (rs6000_function_arg_boundary): Ditto.
1863         (rs6000_function_arg_advance_1): Ditto.
1864         (rs6000_function_arg): Ditto.
1865         (rs6000_function_ok_for_sibcall): Ditto.
1866         (emit_frame_save): Ditto.
1867         (rs6000_function_value): Ditto.
1868         (rs6000_libcall_value): Ditto.
1870 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1872         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1873         i386/darwin-lib.h to $libgcc_tm_file.
1874         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1876 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1878         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1880 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1882         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1883         * config/rs6000/rs6000-tables.opt: New file (generated).
1884         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1885         rs6000/rs6000-tables.opt to extra_options.
1886         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1887         * config/rs6000/rs6000.c (rs6000_select): Remove.
1888         (processor_target_table): Move contents to rs6000-cpus.def.
1889         (darwin_rs6000_override_options): Check
1890         global_options_set.x_rs6000_cpu_index instead of
1891         rs6000_select[1].string.
1892         (rs6000_option_override_internal): Likewise.
1893         (rs6000_handle_option): Don't assert that global structures are in
1894         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1895         (rs6000_default_cpu): New variable.
1896         (rs6000_file_start): Set it instead of local default_cpu.  Check
1897         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1898         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1899         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1900         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1901         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1902         rs6000_select): Remove.
1903         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1904         Remove.
1905         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1906         * config/rs6000/t-rs6000
1907         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1908         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1909         global_options_set.x_rs6000_cpu_index instead of
1910         rs6000_select[1].string.
1911         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1912         global_options_set.x_rs6000_cpu_index instead of
1913         rs6000_select[1].string.
1915 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1917         * config.gcc (libgcc_tm_file): Define instead of including files
1918         from ../../libgcc/config/ in tm_file.
1919         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1920         * configure: Regenerate.
1921         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1922         libgcc_tm.h, cs-libgcc_tm.h): New.
1923         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1924         (clean): Remove libgcc_tm.h.
1925         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1926         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1927         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1929 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1931         PR target/48896
1932         * config/avr/avr.c (avr_ret_register): Return unsigned int
1933         instead of int.
1934         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1935         it to avr_libcall_value.
1936         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1937         expand_expr.
1938         (avr_expand_binop_builtin): Ditto.
1939         (avr_expand_unop_builtin): Ditto.
1941 2011-05-10  DJ Delorie  <dj@redhat.com>
1943         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1944         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1945         * config/rx/rx.c (rx_align_for_label): Add label and
1946         uses_threshold parameters.  Do not align when the label is not
1947         used enough.
1948         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1950 2011-05-10  Richard Guenther  <rguenther@suse.de>
1952         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1953         a series of conversions and apply foldings similar to what
1954         fold-const does.
1955         (tree_ssa_forward_propagate_single_use_vars): Call it.
1957 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1959         PR tree-optimization/48611
1960         PR tree-optimization/48794
1961         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1962         referenced from RESX or EH_DISPATCH arguments.
1964         PR debug/48928
1965         * dfp.c (decimal_to_decnumber): Handle conversion from
1966         dconst{1,2,m1,half}.
1968 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1970         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1971         for !flag_prefer_avx128.
1972         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1974 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1976         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1977         (fold_ternary_loc): Use expr_location_or.
1979 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1981         PR debug/48853
1982         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1983         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1984         Pmode and mem_mode is not VOIDmode.
1986 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1988         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1989         TYPE_QUAL_RESTRICT): Convert to enum.
1991 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1993         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1994         (const_pow2_1_to_8_operand): Ditto.
1995         (const_pow2_1_to_128_operand): Ditto.
1996         (const_pow2_1_to_32768_operand): Ditto.
1997         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1998         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1999         in insn constraint to check integer value of operand 3.
2000         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2002         (PINSR_MODE): New mode iterator.
2003         (sse2p4_1): New mode attribute.
2004         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2005         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2006         iterator.  Use const_int_operand instead of
2007         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
2008         exact_log2 in insn constraint to check integer value of operand 3.
2010 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2012         * config/i386/sse.md (blendbits): Remove mode attribute.
2013         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2014         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2015         Check integer value of operand 3 in insn constraint.
2017 2011-05-09  Richard Guenther  <rguenther@suse.de>
2019         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2020         for diagnostics.
2021         (lto_symtab_merge): Likewise.  Do not register types here.
2022         (lto_symtab_merge_decls_2): Likewise.
2023         (lto_symtab_merge_decls_1): Likewise.
2024         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2025         * gimple.c (enum gtc_mode): Declare.
2026         (gimple_types_compatible_p): Make static.
2028 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2030         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2031         temporary register to match Pmode.
2033 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2035         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2036         and *vec_concatv4si_1_avx.
2038 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2040         PR rtl-optimization/48927
2041         * ira-conflicts.c (commutative_constraint_p): Use
2042         recog_data.alternative_enabled_p to disable alternatives where
2043         "enabled" attribute is false.
2044         (get_dup_num): Ditto.
2045         * ira-lives.c (single_reg_class): Ditto.
2046         (ira_implicitly_set_insn_hard_regs): Ditto.
2048 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2050         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2051         (dataflow_set_preserve_mem_locs): Likewise.
2053 2011-05-09  Philipp Thomas  <pth@suse.de>
2055         * config/mep/mep.c (mep_validate_vliw): Syntax description
2056         should not be translated.
2058 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2060         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2061         * config/mips/mips-tables.opt: New file (generated).
2062         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2063         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2064         MIPS_ARCH_OPTION_NATIVE): Define.
2065         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2066         mips-cpus.def.
2067         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2068         mips_parse_cpu): Remove.
2069         (mips_cpu_info_from_opt, mips_default_arch): New.
2070         (mips_handle_option): Don't assert that global structures are in
2071         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2072         (mips_option_override): Use new variables and functions to set
2073         state of these options.  Use strcmp to check for individual CPU names.
2074         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2075         definition.
2076         * config/mips/mips.opt (march=): Use ToLower and Enum.
2077         (mips): Use ToLower, Enum and Var.
2078         (mtune=): Use ToLower and Enum.
2079         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2081 2011-05-08  Jan Hubicka  <jh@suse.cz>
2083         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2084         Arrange type pairs to be UID ordered.
2085         (gimple_lookup_type_leader): Make inline.
2087 2011-05-09  Nick Clifton  <nickc@redhat.com>
2089         PR target/48899
2090         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2091         PROCESSOR_DEFAULT.
2093         PR target/48897
2094         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2095         variable 's'.
2097 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2099         * combine.c (simplify_comparison): Abstract out parts into...
2100         (simplify_compare_const): ... new function.
2101         (try_combine): Generalize parallel arithmetic/compare combining
2102         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2104 2011-05-08  Jan Hubicka  <jh@suse.cz>
2106         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2107         (cgraph_create_virtual_clone): Call hooks once virtual clone
2108         is finished.
2109         * cgraph.h (cgraph_clone_node): Update prototype.
2110         * ipa-cp.c (ipcp_estimate_growth): Use
2111         estimate_ipcp_clone_size_and_time.
2112         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2113         * lto-cgraph.c (input_node): Update.
2114         * ipa-inline.c (recursive_inlining): Update.
2115         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2116         (evaluate_conditions_for_known_args): Break out from ...
2117         (evaluate_conditions_for_edge): ... here.
2118         (evaluate_conditions_for_ipcp_clone): New function.
2119         (inline_node_duplication_hook): Update clone summary based
2120         on parameter map.
2121         (estimate_callee_size_and_time): Rename to ...
2122         (estimate_node_size_and_time): take NODE instead of EDGE;
2123         take POSSIBLE_TRUTHS as argument.
2124         (estimate_callee_size_and_time): Update.
2125         (estimate_ipcp_clone_size_and_time): New function.
2126         (do_estimate_edge_time): Update.
2128 2011-05-08  Richard Guenther  <rguenther@suse.de>
2130         PR middle-end/48908
2131         PR middle-end/48905
2132         * expmed.c (expand_shift_1): Compute adjusted constant shift
2133         amount manually.
2135 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2137         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2139 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2141         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2143 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2145         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2147 2011-05-07  Jan Hubicka  <jh@suse.cz>
2149         * ipa-inline-transform.c (inline_call): Account when program size
2150         decreases.
2151         * ipa-inline.c (relative_time_benefit): New function.
2152         (edge_badness): Reorganize to be power 2 based; fix thinko when
2153         computing badness for negative growth; update comments to match
2154         reality; better dumps.
2156 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2158         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2159         type to bool and adjust comment.
2160         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2161         (fold_mathfn_compare): Remove calls to global_bindings_p.
2162         (fold_inf_compare): Likewise.
2163         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2164         * c-tree.h (global_bindings_p): Adjust prototype.
2165         * c-decl.c (global_bindings_p): Return bool and simplify.
2167 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2169         PR tree-optimization/48837
2170         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2171         when accumulator transformation is performed.
2173 2011-05-06  Jan Hubicka  <jh@suse.cz>
2175         * i386.h (ix86_tune_indices): Add
2176         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2177         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2178         * i386.c (initial_ix86_tune_features): Add
2179         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2180         (software_prefetching_beneficial_p): Remove predicate.
2181         (ix86_option_override_internal): Use new macro.
2183 2011-05-06  Jan Hubicka  <jh@suse.cz>
2185         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2187 2011-05-06  Jan Hubicka  <jh@suse.cz>
2189         * cgraph.c (cgraph_add_thunk): Create real function node instead
2190         of alias node; finalize it and mark needed/reachale; arrange visibility
2191         to be right and add it into the corresponding same comdat group list.
2192         (dump_cgraph_node): Dump thunks.
2193         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2194         cgraph_function_with_gimple_body_p,
2195         cgraph_first_function_with_gimple_body,
2196         cgraph_next_function_with_gimple_body): New functions.
2197         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2198         New macros.
2199         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2200         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2201         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2202         devirtualization when optimizing.
2203         (verify_cgraph_node): Verify thunks.
2204         (cgraph_analyze_function): Analyze thunks.
2205         (cgraph_mark_functions_to_output): Output thunks only in combination
2206         with function they are assigned to.
2207         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2208         alias into normal node.
2209         (assemble_thunks): New functoin.
2210         (cgraph_expand_function): Use it.
2211         * lto-cgraph.c (lto_output_node): Stream thunks.
2212         (input_overwrite_node): Stream in thunks.
2213         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2214         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2215         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2216         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2217         (inline_analyze_function): Do not care about thunk jump functions.
2218         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2219         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2220         cgraph_function_with_gimple_body_p.
2221         * passes.c (do_per_function_toporder): Use
2222         cgraph_function_with_gimple_body_p.
2223         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2224         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2225         (function_called_by_processed_nodes_p): Likewise.
2227 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2229         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2230         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2231         entries.
2232         (mabi=): Replace with separate entries for mabi=altivec,
2233         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2234         mabi=ieeelongdouble and mabi=ibmlongdouble.
2235         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2236         check for -mabi=spe without SPE ABI support here.
2237         (rs6000_handle_option): Replace OPT_mabi_ handling with
2238         OPT_mabi_altivec and OPT_mabi_spe handling.
2240 2011-05-06  Cary Coutant  <ccoutant@google.com>
2242         * dwarf2out.c (contains_subprogram_definition): New function.
2243         (should_move_die_to_comdat): Call it.
2245 2011-05-06  Jeff Law  <law@redhat.com>
2247         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2248         remove_ctrl_stmt_and_useless_edges.
2249         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2250         (fixup_template_block, thread_single_edge): Likewise.
2251         (mark_threaded_blocks): Use THREAD_TARGET.
2253 2011-05-06  Alan Modra  <amodra@gmail.com>
2255         PR target/48900
2256         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2257         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2259 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2261         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2262         constraint modifier to "r".
2264 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2266         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2267         fall through for OPT_mcmodel_.
2269 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2271         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2272         instruction sizes.
2273         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2275 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2277         PR target/47930
2278         * config/arm/arm.opt (marm): Document it.
2279         (mthumb): Reject negative variant.
2281 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2283         PR target/48898
2284         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2285         Fix typo in "ccvt" variable name.
2287 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2289         PR target/48895
2290         * config/vms/vms-ar.c (main): Remove cwd variable.
2292 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2294         PR debug/48902
2295         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2297 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2299         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2300         * gimplify.c (gimplify_switch_expr): Likewise.
2301         * omp-low.c (expand_omp_sections): Likewise.
2302         * tree-eh.c (lower_try_finally_switch): Likewise.
2303         (lower_eh_dispatch): Likewise.
2304         * tree.h (build_case_label): Declare.
2305         * tree.c (build_case_label): Define.
2307 2011-05-05  Jason Merrill  <jason@redhat.com>
2309         PR c++/40975
2310         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2311         (copy_statement_list): Don't recurse.
2312         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2313         STATEMENT_LIST.
2315 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2317         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2318         through from -mfpu= handling.
2319         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2321 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2323         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2324         POST_MODIFY.
2326 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2328         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2329         for 11.31.
2330         (hppa[12]*-*-hpux11*): Ditto.
2331         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2332         * config/ia64/hpux-unix2003.h: New.
2333         * config/pa/pa-hpux1131.opt: New.
2334         * config/pa/pa-hpux1131.h: New.
2335         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2336         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2337         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2339 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2341         PR debug/48853
2342         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2343         instead of mode as 3rd argument to recursive call.
2344         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2345         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2346         VOIDmode.
2347         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2348         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2349         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2350         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2352 2011-05-05  Julian Brown  <julian@codesourcery.com>
2354         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2355         parenthesis in D-register case.
2357 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2359         * opt-functions.awk (var_type_struct): Handle Enum options.
2360         * optc-gen.awk: Don't check range of variables of character type.
2361         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2362         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2363         rs6000_sdata_name, rs6000_explicit_options): Remove.
2364         (rs6000_option_override_internal): Check for -malign-power here.
2365         Use global_options_set instead of rs6000_explicit_options.
2366         (rs6000_parse_fpu_option): Remove.
2367         (rs6000_handle_option): Access variables via opts and opts_set
2368         pointers.  Use error_at and warning_at.  Add fall-through
2369         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2370         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2371         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2372         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2373         here.  Don't use rs6000_parse_fpu_option.
2374         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2375         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2376         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2377         (mrecip=): Use Var.
2378         (mspe): Use Var and Save.
2379         (mtraceback=): Use Enum and Var.
2380         (rs6000_traceback_type): New Enum and EnumValue entries.
2381         (mfloat-gprs=): Use Enum, Var and Save.
2382         (rs6000_float_gprs): New Enum and EnumValue entries.
2383         (mlong-double-): use Var and Save.
2384         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2385         (malign-): Use Enum and Var.
2386         (rs6000_alignment_flags): New Enum and EnumValue entries.
2387         (mfpu=): Use Enum.
2388         (fpu_type_t): New Enum and EnumValue entries.
2389         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2390         global_options_set instead of rs6000_explicit_options.
2391         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2392         global_options_set instead of rs6000_explicit_options.
2393         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2394         global_options_set instead of rs6000_explicit_options.
2395         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2396         global_options_set instead of rs6000_explicit_options.
2397         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2398         global_options_set instead of rs6000_explicit_options.
2399         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2400         global_options_set instead of rs6000_explicit_options.
2401         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2402         definition.
2403         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2404         global_options_set instead of rs6000_explicit_options.
2405         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2406         (rs6000_cmodel): New Enum and EnumValue entries.
2407         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2408         global_options_set instead of rs6000_explicit_options.
2409         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2410         (mtls-size=): Use Enum and Var.
2411         (rs6000_tls_size): New Enum and EnumValue entries.
2413 2011-05-05  Michael Matz  <matz@suse.de>
2415         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2416         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2417         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2418         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2419         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2420         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2421         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2422         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2423         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2424         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2425         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2426         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2427         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2428         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2429         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2430         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2432 2011-05-05  Richard Guenther  <rguenther@suse.de>
2434         * expmed.c (expand_variable_shift): Rename to ...
2435         (expand_shift_1): ... this.  Take an expanded shift amount.
2436         For rotates recurse directly not building trees for the shift amount.
2437         (expand_variable_shift): Wrap around expand_shift_1.
2438         (expand_shift): Adjust.
2440 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2442         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2444 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2446         * tree.h (get_pending_sizes): Remove prototype.
2447         (put_pending_size): Likewise.
2448         (put_pending_sizes): Likewise.
2449         * stor-layout.c (pending_sizes): Delete.
2450         (get_pending_sizes): Likewise.
2451         (put_pending_size): Likewise.
2452         (put_pending_sizes): Likewise.
2453         (variable_size): Do not call put_pending_size and tidy up.
2454         * function.h (struct function): Remove dont_save_pending_sizes_p.
2455         * lto-streamer-in.c (input_function): Do not stream it.
2456         * lto-streamer-out.c (output_function): Likewise.
2457         * tree-inline.c (initialize_cfun): Do not copy it.
2458         * c-decl.c (store_parm_decls): Do not set it.
2459         * omp-low.c (create_task_copyfn): Likewise.
2460         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2462 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2464         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2465         conditions.
2466         (*movdf_internal): Ditto.
2467         (*movdf_internal_nointeger): Ditto.
2468         (*movsf_internal): Ditto.
2470 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2472         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2473         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2474         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2475         (c_variable_size): Remove.
2476         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2477         call put_pending_sizes.
2478         (get_parm_info): Add parameter expr.  Use it to set
2479         arg_info->pending_sizes.
2480         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2481         get_pending_sizes.
2482         * c-parser.c (c_parser_parms_declarator): Update call to
2483         c_parser_parms_list_declarator.
2484         (c_parser_parms_list_declarator): Take parameter expr.  Update
2485         call to push_parm_decl.  Update recursive call.  Don't call
2486         get_pending_sizes.  Update calls to get_parm_info.
2487         (c_parser_objc_method_definition): Update calls to
2488         c_parser_objc_method_decl and objc_start_method_definition.
2489         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2490         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2491         grokparm.
2492         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2493         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2494         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2496 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2498         PR pch/45979
2499         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2500         __ARM_EABI__ hosts.
2502 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2504         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2505         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2506         (spu_output_mi_thunk): New function.
2508 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2510         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2511         targetm.asm_out.print_operand.
2512         * config/sol2.c: Include target.h.
2514 2011-05-04  Jan Hubicka  <jh@suse.cz>
2516         * ipa-inline.c (reset_edge_caches): New function.
2517         (update_caller_keys): Add check_inlinablity_for; do not
2518         reset edge caches; remove now unnecesary loop.
2519         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2520         (update_all_callee_keys): Likewise.
2521         (inline_small_functions): Sanity check cache; update code
2522         recomputing it.
2524 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2526         PR rtl-optimization/47612
2527         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2528         as the last insn of the sequence to be moved.
2530 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2532         PR fortran/48864
2533         * doc/invoke.texi (Ofast): Document that it
2534         enables Fortran's -fno-protect-parens.
2536 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2538         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2540 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2542         * stor-layout.c (variable_size): Do not issue errors.
2544 2011-05-04  Richard Guenther  <rguenther@suse.de>
2546         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2547         for array-ref indices.
2548         (tree_coverage_counter_addr): Likewise.
2549         (build_fn_info_type): Use size_int for index types.
2550         (build_gcov_info): Likewise.
2552 2011-05-04  Richard Guenther  <rguenther@suse.de>
2554         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2555         to build_int_cst.
2556         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2557         for constructor indices.
2558         (push_init_level): Likewise.
2560 2011-05-04  Richard Guenther  <rguenther@suse.de>
2562         * explow.c (promote_mode): Move variable declarations before code.
2564 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2566         * tree.h (build_function_type_array): Declare.
2567         (build_varargs_function_type_array): Declare.
2568         (build_function_type_vec, build_varargs_function_type_vec): Define.
2569         * tree.c (build_function_type_array_1): New function.
2570         (build_function_type_array): New function.
2571         (build_varargs_function_type_array): New function.
2573 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2575         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2576         before setting STMT_VINFO_TYPE.
2578 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2580         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2581         instead of spu_pass_by_reference.
2583 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2585         * calls.c (emit_library_call_value_1): Invoke
2586         promote_function_mode hook on libcall arguments.
2587         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2588         argument being NULL.
2589         * targhooks.c (default_promote_function_mode): Lisewise.
2590         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2591         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2593         * doc/tm.texi: Document that TYPE argument might be NULL.
2595 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2597         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2599 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2601         From Bernd Schmidt
2602         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2604 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2606         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2607         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2608         Move ...
2609         * mips-tfile.c: ... here.
2610         Don't include coretypes.h, tm.h, filenames.h.
2611         (saber_stop): Remove definition and all calls.
2612         [__SABER__]: Remove.
2613         (__LINE__): Remove default.
2614         (Size_t, Ptrdiff_t): Remove definitions.
2615         Replace by size_t, ptrdiff_t.
2616         [!MIPS_DEBUGGING_INFO]: Remove.
2617         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2618         (progname): Add const.
2619         (STATIC): Remove.
2620         Replace all uses by static.
2621         (ALIGN_SYMTABLE_OFFSET): Remove default.
2622         * mips-tdump.c: Don't include coretypes.h, tm.h.
2623         Remove !MIPS_IS_STAB guard.
2624         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2625         $(TM_H), filenames.h dependencies.
2626         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2628 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2630         From Jie Zhang
2631         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2632         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2634 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2636         From Bernd Schmidt
2637         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2638         account and save/restore RETS.
2639         (PROFILE_BEFORE_PROLOGUE): Define.
2640         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2641         the push insn to use predecrement.
2643 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2645         From Jie Zhang
2646         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2648 2011-05-04  Nick Clifton  <nickc@redhat.com>
2650         * config/mn10300/mn10300.c: Include cfgloop.h.
2651         (DUMP): New macro.
2652         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2653         Lcc or a FLcc insn into the instruction stream.
2654         (mn10300_block_contains_call): New function.  Returns true if the
2655         given basic block contains a CALL insn.
2656         (mn10300_loop_contains_call_insn): New function.  Returns true if
2657         the given loop contains a CALL insn.
2658         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2659         to use the SETLB and Lcc or FLcc insns.
2660         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2661         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2662         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2663         disable the SETLB optimization.
2664         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2665         __SETLB__ or __NO_SETLB__.
2666         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2667         (movsf_internal): Handle MDR register.
2668         (cmpsi): Make visible.
2669         (setlb): New pattern.
2670         (Lcc): New pattern.
2671         (FLcc): New pattern.
2673 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2675         PR target/48860
2676         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2677         for reg<->xmm moves.
2678         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2679         (vec_concatv2di_rex64_sse): Ditto.
2680         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2681         (*vec_extractv2di_1_rex64): Ditto.
2683         Revert:
2684         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2686         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2687         reg<->xmm moves.
2688         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2690 2011-05-04  Richard Guenther  <rguenther@suse.de>
2692         * tree.h (int_const_binop): Remove notrunc argument.
2693         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2694         create integer constants that are properly truncated.
2695         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2696         (const_binop): Remove zero notrunc argument to int_const_binop.
2697         (size_binop_loc): Likewise.
2698         (fold_div_compare): Likewise.
2699         (maybe_canonicalize_comparison_1): Likewise.
2700         (fold_comparison): Likewise.
2701         (fold_binary_loc): Likewise.
2702         (multiple_of_p): Likewise.
2703         * expr.c (store_constructor): Likewise.
2704         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2705         (maybe_fold_stmt_addition): Likewise.
2706         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2707         * stor-layout.c (layout_type): Likewise.
2708         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2709         * tree-sra.c (build_ref_for_offset): Likewise.
2710         (build_user_friendly_ref_for_offset): Likewise.
2711         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2712         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2713         * tree-ssa-loop-niter.c (inverse): Likewise.
2714         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2715         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2716         * tree-switch-conversion.c (check_range): Likewise.
2717         (build_constructors): Likewise.
2718         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2719         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2720         (extract_range_from_assert): Likewise.
2721         (vrp_int_const_binop): Likewise.
2722         (extract_range_from_binary_expr): Likewise.
2723         (extract_range_from_unary_expr): Likewise.
2724         (check_array_ref): Likewise.
2725         (find_case_label_range): Likewise.
2726         (simplify_div_or_mod_using_ranges): Likewise.
2727         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2728         comparing case labels for merging.
2730 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2732         * dwarf2out.c (debug_str_hash_forced): Removed.
2733         (gen_label_for_indirect_string): Removed.
2734         (get_debug_string_label): Removed.
2735         (AT_string_form): Generate label directly.
2736         (output_indirect_string): Test indirect_string_node for
2737         DW_FORM_strp instead of checking label and refcount.
2738         (prune_indirect_string): Removed.
2739         (prune_unused_types): Don't check debug_str_hash_forced or
2740         call prune_indirect_string.
2742 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2744         PR other/48093
2745         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2747 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2749         PR debug/47994
2750         PR debug/47919
2751         * combine.c (try_combine): Skip debug insns at m_split tests.
2753 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2755         PR42288
2756         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2757         when info_section_emitted.
2759 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2761         * config/mips/mips-opts.h: New.
2762         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2763         to mips-opts.h.
2764         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2765         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2766         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2767         via opts pointer.
2768         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2769         mips-opts.h.
2770         (mips_abi, mips_code_readable): Don't declare.
2771         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2772         (mabi=): Use Enum and Var.
2773         (mips_abi): New Enum and EnumValue entries.
2774         (mcode-readable=): Use Enum and Var.
2775         (mips_code_readable_setting): New Enum and EnumValue entries.
2776         (mr10k-cache-barrier=): Use Enum and Var.
2777         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2779 2011-05-03  Jan Hubicka  <jh@suse.cz>
2781         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2782         replace hash by pointer map.
2783         (cgraph_node_set_element_def, cgraph_node_set_element,
2784         const_cgraph_node_set_element, varpool_node_set_element_def,
2785         varpool_node_set_element, const_varpool_node_set_element): Remove.
2786         (free_cgraph_node_set, free_varpool_node_set): New function.
2787         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2788         * tree-emutls.c: Free varpool node set.
2789         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2790         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2791         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2792         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2793         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2794         Move here from ipa.c; implement using pointer_map
2795         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2796         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2797         debug_cgraph_node_set, varpool_node_set_new,
2798         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2799         dump_varpool_node_set, debug_varpool_node_set):
2800         Move to ipa-uitls.c.
2801         * passes.c (ipa_write_summaries): Update.
2803 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2805         From Mike Frysinger:
2806         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2807         bf542/bf544/bf547/bf548/bf549.
2809 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2811         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2813 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2815         From Bernd Schmidt:
2816         * config/bfin/bfin.md (MOVCC): New mode_macro.
2817         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2818         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2819         comments from generated assembly.
2821 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2823         From Bernd Schmidt
2824         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2825         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2826         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2827         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2828         * config/bfin/lib1funcs.asm (___muldi3): New function.
2830 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2832         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2833         build_function_type_list instead of build_function_type.
2834         Rearrange initialization of `args' to do so.
2836 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2838         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2839         instead of build_function_type.
2841 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2843         * config/rs6000/rs6000.c (spe_init_builtins): Call
2844         build_function_type_list instead of build_function_type.
2845         (paired_init_builtins, altivec_init_builtins): Likewise.
2846         (builtin_function_type): Likewise.
2848 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2850         * config/sh/sh.c (sh_media_init_builtins): Call
2851         build_function_type_list instead of build_function_type.
2853 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2855         * config/sparc/sparc.c (sparc_file_end): Call
2856         build_function_type_list instead of build_function_type.
2858 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2860         * config/alpha/alpha.c (alpha_init_builtins): Call
2861         build_function_type_list instead of build_function_type.
2863 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2865         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2866         build_function_type_list instead of build_function_type.
2868 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2870         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2871         build_function_type_list instead of build_function_type.
2872         Delete `endlink' variable.
2874 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2876         * config/avr/avr.c (avr_init_builtins): Call
2877         build_function_type_list instead of build_function_type.
2879 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2881         * config/picochip/picochip.c (picochip_init_builtins): Call
2882         build_function_type_list instead of build_function_type.
2883         Delete `endlink' variable.
2885 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2887         * config/bfin/bfin.c (bfin_init_builtins): Call
2888         build_function_type_list instead of build_function_type.
2890 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2892         From Bernd Schmidt
2893         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2894         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2896 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2898         From Jie Zhang:
2899         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2900         libbffastfp overrides libgcc when -mfast-fp.
2902 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2904         Originally from Bernd Schmidt
2905         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2906         * config/bfin/bfin.c (override_options): Test it and error if
2907         TARGET_FDPIC.
2909 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2911         Originally From Bernd Schmidt
2912         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2913         FD-PIC.
2915 2011-05-03  Jeff Law  <law@redhat.com>
2917         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2918         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2919         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2920         than accessing AUX field directly.  Free the AUX field before
2921         clearing it.
2922         (thread_block, thread_through_loop_header): Likewise.
2923         (thread_single_edge, mark_threaded_blocks): Likewise.
2924         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2925         (register_jump_thread): Do not attempt to thread to a NULL edge.
2927 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2929         * function.c (init_function_start): Call decide_function_section.
2930         * varasm.c (decide_function_section): New function.
2931         (assemble_start_function): When not using
2932         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2933         or first_function_block_is_cold.
2934         * rtl.h (decide_function_section): Declare.
2936 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2937             Jakub Jelinek  <jakub@redhat.com>
2939         PR target/48774
2940         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2941         only succeed if req_mode is the same as set_mode.
2943 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2945         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2946         * genemit.c (gen_exp): Handle RETURN.
2947         * emit-rtl.c (verify_rtx_sharing): Likewise.
2948         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2949         * rtl.c (copy_rtx): RETURN is shared.
2950         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2951         (ret_rtx): New.
2952         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2953         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2954         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2955         * config/cris/cris.c (cris_expand_return): Likewise.
2956         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2957         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2958         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2959         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2960         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2961         Likewise.
2962         * config/v850/v850.c (expand_epilogue): Likewise.
2963         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2964         * config/arm/arm.md (epilogue): Likewise.
2965         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2966         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2967         variable to ret_reg.
2969 2011-05-03  Richard Guenther  <rguenther@suse.de>
2971         PR lto/48846
2972         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2973         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2974         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2976 2011-05-03  Richard Guenther  <rguenther@suse.de>
2978         * c-decl.c (grokdeclarator): Instead of looking at
2979         TREE_OVERFLOW check if the constant fits in the index type.
2981 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2983         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2984         (vec_store_lanes<mode><mode>): Likewise.
2986 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2988         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2989         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2990         convert_optab_index values.
2991         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2992         * genopinit.c (optabs): Initialize the new optabs.
2993         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2994         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2995         (expand_STORE_LANES): New functions.
2996         * tree.h (build_array_type_nelts): Declare.
2997         * tree.c (build_array_type_nelts): New function.
2998         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2999         (vect_model_load_cost): Likewise.
3000         (vect_store_lanes_supported, vect_load_lanes_supported)
3001         (vect_record_strided_load_vectors): Declare.
3002         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3003         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3004         (vect_transform_strided_load): Split out statement recording into...
3005         (vect_record_strided_load_vectors): ...this new function.
3006         * tree-vect-stmts.c (create_vector_array, read_vector_array)
3007         (write_vector_array, create_array_ref): New functions.
3008         (vect_model_store_cost): Add store_lanes_p argument.
3009         (vect_model_load_cost): Add load_lanes_p argument.
3010         (vectorizable_store): Try to use store-lanes functions for
3011         interleaved stores.
3012         (vectorizable_load): Likewise load-lanes and loads.
3013         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3014         to vect_model_store_cost.
3015         (vect_build_slp_tree): Likewise vect_model_load_cost.
3017 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3019         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3020         * hooks.c (hook_bool_mode_uhwi_false): New function.
3021         * target.def (array_mode_supported_p): New hook.
3022         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3023         * doc/tm.texi: Regenerate.
3024         * stor-layout.c (mode_for_array): New function.
3025         (layout_type): Use it.
3026         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3027         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3029 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3031         PR target/48723
3032         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3033         for -fstack-check if the size to allocate is negative.
3035 2011-05-02  Lawrence Crowl  <crowl@google.com>
3037         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3038         (timevar_cond_start): New for starting a timer only when it is not
3039         already running.
3040         (timevar_cond_stop): New for stopping a timer when it was not already
3041         running.
3043         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3044         (timevar_cond_start): New as above.
3045         (timevar_cond_stop): New as above.
3047         * timevar.def: Add start/stop timers for compiler phases,
3048         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3049         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3050         and TV_PHASE_FINALIZE.
3051         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3052         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3053         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3054         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3055         Make unused TV_OVERLOAD into a start/stop timer.
3057         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3058         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3059         to indicate that they are start/stop timers.
3061         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3062         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3063         Move initialization to do_compile.
3064         (do_compile): Add initialization from above.
3065         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3067         * c-decl.c (c_write_global_declarations): Add start/stop of
3068         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3070         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3071         or TV_PARSE_INLINE, as appropriate.
3072         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3073         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3075 2011-05-02  Jason Merrill  <jason@redhat.com>
3077         PR c++/40975
3078         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3080 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3082         PR c/35445
3083         * c-decl.c (finish_decl): Only create a composite if the types are
3084         compatible.
3086 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3088         * config/fr30/fr30-protos.h (Mmode): Don't define.
3089         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3090         definition where used.
3091         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3092         define.  Expand definitions where used.
3093         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3094         Expand definitions where used.
3095         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3096         rx_function_arg, rx_function_arg_advance,
3097         rx_function_arg_boundary): Expand definitions of those macros.
3098         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3099         definition where used.
3101 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3103         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3104         reg<->xmm moves.
3105         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3106         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3107         with *movv2sf_internal_rex64_avx.
3108         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3109         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3110         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3111         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3112         "vex" in "prefix" attribute calculation.
3113         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3115 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3117         PR target/47951
3118         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3119         inputs match the output.
3121 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3123         PR target/47955
3124         * config/m68k/m68k.c (m68k_expand_prologue): Set
3125         current_function_static_stack_size.
3127 2011-05-02   Jan Hubicka  <jh@suse.cz>
3129         * lto-streamer.c (lto_streamer_cache_insert_1,
3130         lto_streamer_cache_lookup, lto_streamer_cache_create,
3131         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3132         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3134 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3136         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3137         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3138         config/m68k/t-opts: New files.
3139         * config/m68k/m68k-tables.opt: New file (generated).
3140         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3141         extra_options and m68k/t-opts to tmake_file.
3142         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3143         (all_isas): Initialize using m68k-isas.def.
3144         (all_microarchs): Initialize using m68k-microarchs.def.
3145         (m68k_find_selection): Remove.
3146         (m68k_handle_option): Don't assert that global structures are in
3147         use.  Use error_at.  Access variables via opts pointer.  Don't
3148         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3149         directly for -m68020-40 and -m68020-60.
3150         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3151         m68k_tune_entry here.
3152         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3153         to m68k-opts.h.
3154         (m68k_library_id_string): Remove declaration.
3155         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3156         (m68k_library_id_string): New Variable.
3157         (march=, mcpu=, mtune=): Use Enum and Var.
3159 2011-05-02  Richard Guenther  <rguenther@suse.de>
3161         * varasm.c (output_constructor_regular_field): Compute zero-based
3162         index with double-ints.  Make sure to ICE instead of producing
3163         wrong code.
3164         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3165         in asserts.  Properly use a signed type.
3167 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3169         * config/i386/sse.md (V): New mode iterator.
3170         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3171         TARGET_SSE2.
3172         (V_256): Rename from AVX256MODE.
3173         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3174         condition to all users.
3175         (VF1): Ditto.
3176         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3177         condition to all users.
3178         (VF_128): Make V4SF mode unconditional.
3179         (VF_256): Rename from AVX256MODEF2P.
3180         (VI4F_128): Rename from SSEMODE4S.
3181         (VI8F_128): Rename from SSEMODE2D.
3182         (VI4F_256): Rename from AVX256MODE8P.
3183         (VI8F_256): Rename from AVX256MODE4P.
3184         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3185         (ssescalarmodesuffix): Remove SF and DF modes.
3186         (SSEMODE124): Remove.
3187         (SSEMODE1248): Ditto.
3188         (SSEMODEF2P): Ditto.
3189         (AVXMODEF2P): Ditto.
3190         (AVXMODEFDP): Ditto.
3191         (AVXMODEFSP): Ditto.
3192         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3193         unconditional.
3194         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3195         unconditional.
3196         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3197         xop_pcmov_<mode>256.  Use V mode iterator.
3199         Adjust RTX patterns globally for renamed mode attributes.
3201 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3203         * haifa-sched.c (sched_emit_insn): Emit insn before first
3204         non-scheduled insn.  Inform back-end about new insn.  Add
3205         new insn to scheduled_insns list.
3207 2011-05-02  Richard Guenther  <rguenther@suse.de>
3209         PR tree-optimization/48822
3210         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3211         (process_scc): Indicate which iteration we start.
3213 2011-05-02  Jan Hubicka  <jh@suse.cz>
3215         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3216         (lto_section_overrun): New.
3217         * lto-section-out.c (append_block): Rename to ...
3218         (lto_append_block): ... this one; export.
3219         (lto_output_1_stream): Move lto lto-streamer.h
3220         (lto_output_data_stream): Update.
3221         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3222         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3223         functions.
3225 2011-05-02  Richard Guenther  <rguenther@suse.de>
3227         * tree.c (tree_code_counts): New global array.
3228         (record_node_allocation_statistics): Count individual tree codes.
3229         (dump_tree_statistics): Dump individual code stats.
3231 2011-05-01  Jan Hubicka  <jh@suse.cz>
3233         * ipa-inline.c (caller_growth_limits): Fix thinko when
3234         looking for largest stack frame.
3235         * ipa-inline.h (dump_inline_summary): Declare.
3236         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3237         on stack usage.
3238         (dump_inline_summary): Export.
3239         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3241 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3243         * reginfo.c (memory_move_cost): Change rclass argument type form
3244         'enum reg_class' to reg_class_t.
3245         * reload.h (memory_move_cost): Update prototype.
3246         * postreload.c reload_cse_simplify_set): Change type dclass var to
3247         reg_class_t.
3248         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3249         Update prototype.
3250         (ira_allocate_and_set_costs): Change aclass argument type form
3251         'enum reg_class' to reg_class_t.
3252         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3253         Change aclass argument type to reg_class_t.
3254         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3255         to reg_class_t.
3256         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3257         memory_move_cost call.
3259         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3260         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3261         Change type tmp var to reg_class_t.
3263 2011-04-30  Jan Hubicka  <jh@suse.cz>
3265         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3266         inlining into function with flatten attribute.
3267         (want_inline_small_function_p): Be more realistic about inlining
3268         cold calls where callee size grows.
3270 2011-04-30  Jan Hubicka  <jh@suse.cz>
3272         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3273         flags.
3275 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3277         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3278         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3279         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3280         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3281         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3282         (print_operand): Rename to...
3283         (sparc_print_operand): ...this. Make static. Adjust
3284         sparc_print_operand function call.
3285         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3286         functions.
3288 2011-04-30  Jan Hubicka  <jh@suse.cz>
3290         PR middle-end/48752
3291         * ipa-inline.c (early_inliner): Disable when doing late
3292         addition of function.
3294 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3296         * dwarf2out.c (get_address_mode): New inline.
3297         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3298         if not dwarf_strict emit
3299         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3300         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3301         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3302         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3303         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3304         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3305         mem_loc_descriptor callers.
3306         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3307         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3308         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3309         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3310         (base_types): New variable.
3311         (get_base_type_offset, calc_base_type_die_sizes,
3312         base_type_for_mode, mark_base_types, base_type_cmp,
3313         move_marked_base_types): New functions.
3314         (calc_die_sizes): Assert that die_offset is 0 or equal to
3315         next_die_offset.
3316         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3317         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3318         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3319         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3320         (gen_subprogram_die): Don't give up on call site parameters
3321         with non-integral or large integral modes.  Adjust
3322         mem_loc_descriptor callers.
3323         (prune_unused_types): Call prune_unused_types_mark on base_types
3324         vector entries.
3325         (resolve_addr): Call mark_base_types.
3326         (dwarf2out_finish): Call move_marked_base_types.
3328         PR tree-optimization/48809
3329         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3330         type.
3331         (gen_inbound_check): Don't compute index_expr - range_min in utype
3332         again, instead reuse SSA_NAME initialized in build_arrays.
3333         Remove two useless gsi_for_stmt calls.
3335 2011-04-29  Jeff Law  <law@redhat.com>
3337         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3339 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3341         * cgraph.h (cgraph_postorder): Remove declaration.
3342         * ipa-utils.h (ipa_free_postorder_info): Declare.
3343         (ipa_reverse_postorder): Likewise.
3344         * cgraphunit.c: Include ipa-utils.h.
3345         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3346         * ipa-inline.c: Include ipa-utils.h.
3347         (ipa_inline): Update call to ipa_reverse_postorder.
3348         * ipa-pure-const.c (propagate_pure_const): Update call to
3349         ipa_reduced_postorder and ipa_print_order.  Call
3350         ipa_free_postorder_info to clean up.
3351         (propagate_nothrow): Likewise.
3352         * ipa-reference.c (propagate): Removed a useless call to
3353         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3354         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3355         * ipa.c: Include ipa-utils.h.
3356         (ipa_profile): Update call to ipa_reverse_postorder.
3357         (cgraph_postorder): Moved to...
3358         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3359         (ipa_utils_print_order): Renamed to ipa_print_order.
3360         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3361         comments.
3362         (ipa_free_postorder_info): New function.
3363         * passes.c: Include ipa-utils.h.
3364         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3365         (ipa_write_summaries): Likewise.
3366         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3367         (cgraphunit.o): Likewise.
3368         (ipa.o): Likewise.
3369         (ipa-inline.o): Likewise.
3371 2011-04-29  Jan Hubicka  <jh@suse.cz>
3373         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3374         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3375         * ipa-inline.h (clause_t): Turn into unsigned int.
3376         * ipa-inline-analysis.c (add_clause): Do more simplification.
3377         (and_predicates): Shortcut more cases.
3378         (predicates_equal_p): Move forward; check that clauses are properly
3379         ordered.
3380         (or_predicates): Shortcut more cases.
3381         (edge_execution_predicate): Rewrite as...
3382         (set_cond_stmt_execution_predicate): ... this function; handle
3383         __builtin_constant_p.
3384         (set_switch_stmt_execution_predicate): New .
3385         (compute_bb_predicates): New.
3386         (will_be_nonconstant_predicate): Update TODO.
3387         (estimate_function_body_sizes): Use compute_bb_predicates
3388         and free them later, always try to estimate if stmt is constant.
3389         (estimate_time_after_inlining, estimate_size_after_inlining):
3390         Gracefully handle optimized out edges.
3391         (read_predicate): Fix off by one error.
3393 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3395         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3397 2011-04-27  Xinliang David Li  <davidxl@google.com>
3399         * tree-profile.c (init_ic_make_global_vars): Set
3400         tls attribute on ic vars.
3401         * coverage.c (coverage_end_function): Initialize
3402         function_list with zero.
3404 2011-04-29  Richard Guenther  <rguenther@suse.de>
3406         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3407         for the type of the result.
3408         (fold_builtin_isascii): Likewise.
3409         (fold_builtin_toascii): Use integer_type_node where appropriate.
3410         (fold_builtin_logb): Likewise.
3411         (fold_builtin_frexp): Likewise.
3412         (fold_builtin_strstr): Likewise.
3413         (fold_builtin_strpbrk): Likewise.
3414         (fold_builtin_fputs): Likewise.
3415         (fold_builtin_sprintf): Likewise.
3416         (fold_builtin_snprintf): Likewise.
3417         (fold_builtin_printf): Likewise.
3418         (do_mpfr_remquo): Use a proper type for the assigned constant.
3419         (do_mpfr_lgamma_r): Likewise.
3420         * dwarf2out.c (resolve_one_addr): Use size_int.
3421         * except.c (init_eh): Likewise.
3422         (assign_filter_values): Use integer_type_node for filter values.
3423         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3424         indices.
3425         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3426         for EH region numbers.
3427         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3428         for the shift amount.
3430 2011-04-29  Richard Guenther  <rguenther@suse.de>
3432         * expr.h (expand_shift): Rename to ...
3433         (expand_variable_shift): ... this.
3434         (expand_shift): Take a constant shift amount.
3435         * expmed.c (expand_shift): Rename to ...
3436         (expand_variable_shift): ... this.
3437         (expand_shift): New wrapper around expand_variable_shift.
3438         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3439         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3440         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3441         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3442         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3443         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3444         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3445         emit_store_flag_1, emit_store_flag): Likewise.
3446         * builtins.c (expand_builtin_signbit): Likewise.
3447         * calls.c (load_register_parameters): Likewise.
3448         * function.c (assign_parm_setup_block): Likewise.
3449         * lower-subreg.c (resolve_shift_zext): Likewise.
3450         * optabs.c (widen_bswap, expand_abs_nojump,
3451         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3452         * spu/spu.c (spu_expand_extv): Likewise.
3453         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3455 2011-04-29  Richard Guenther  <rguenther@suse.de>
3457         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3458         for the remapped region number.
3459         * predict.c (build_predict_expr): Use integer_type_node for the
3460         predict kind.
3461         * fold-const.c (fold_binary_loc): Use integer_type_node for
3462         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3464 2011-04-29  Michael Matz  <matz@suse.de>
3466         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3467         other trees that just builtins.
3468         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3470 2011-04-29  Richard Guenther  <rguenther@suse.de>
3472         * tree-nested.c (get_trampoline_type): Use size_int.
3473         (get_nl_goto_field): Likewise.
3474         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3475         for all indexes.
3476         (lower_eh_constructs_2): Likewise.
3477         (lower_resx): Likewise.
3478         (lower_eh_dispatch): Likewise.
3479         * tree-mudflap.c (mf_build_string): Use size_int.
3480         (mudflap_register_call): Use integer_type_node for the flag.
3481         (mudflap_enqueue_constant): Use size_int.
3482         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3483         instead of rebuilding it.
3485 2011-04-29  Richard Guenther  <rguenther@suse.de>
3487         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3488         Handle OBJ_TYPE_REF.
3489         (find_func_aliases_for_call): Use it more consistently.
3491 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3493         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3494         (rank_for_schedule): Use it.
3495         (schedule_block): Set it.
3497 2011-04-28  David Li  <davidxl@google.com>
3499         * tree.c (crc32_string): Use crc32_byte.
3500         (crc32_byte): New function.
3501         * tree.h (crc32_byte): New function.
3502         * gcov.c (read_graph_file): Handle new cfg_cksum.
3503         (read_count_file): Ditto.
3504         * profile.c (instrument_values): Ditto.
3505         (get_exec_counts): Ditto.
3506         (read_profile_edge_counts): Ditto.
3507         (compute_branch_probabilities): Ditto.
3508         (compute_value_histograms): Ditto.
3509         (branch_prob): Ditto.
3510         (end_branch_prob): Ditto.
3511         * coverage.c (read_counts_file): Ditto.
3512         (get_coverage_counts): Ditto.
3513         (tree_coverage_counter_addr): Ditto.
3514         (coverage_checksum_string): Ditto.
3515         (coverage_begin_output): Ditto.
3516         (coverage_end_function): Ditto.
3517         (build_fn_info_type): Ditto.
3518         (build_fn_info_value): Ditto.
3519         * libgcov.c (gcov_exit): Ditto.
3520         * gcov-dump.c (tag_function): Ditto.
3521         (compute_checksum): Remove.
3523 2011-04-29  Alan Modra  <amodra@gmail.com>
3525         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3526         unspec plus offset.  Tidy macho code.
3528 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3530         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3531         node instead of a decl.  Update all callers.
3532         * cgraph.h: Update declaration.
3534 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3536         PR tree-optimization/48765
3537         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3538         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3539         to indicate if loop aware SLP is being used.  Scan the statements
3540         and update the vectorization factor according to the type of
3541         vectorization before statement analysis.
3542         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3543         pass it to vect_analyze_loop_operations.
3544         (vectorizable_reduction): Set number of copies to 1 in case of pure
3545         SLP statement.
3546         * tree-vect-stmts.c (vectorizable_conversion,
3547         vectorizable_assignment, vectorizable_shift,
3548         vectorizable_operation, vectorizable_type_demotion,
3549         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3550         Likewise.
3551         (vectorizable_condition): Move the check that it is not SLP
3552         vectorization before the number of copies check.
3553         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3554         to vectorize the loop using SLP.
3556 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3558         PR middle-end/48597
3559         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3560         inline asm.
3562 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3564         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3565         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3566         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3567         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3568         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3569         linux*.h headers.
3570         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3571         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3572         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3573         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3574         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3575         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3576         REG_NAME.
3577         * config/i386/linux.h (REG_NAME): Don't define.
3578         * config/i386/linux64.h (REG_NAME): Don't define.
3579         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3580         Undefine before defining.
3582 2011-04-28  Jan Hubicka  <jh@suse.cz>
3584         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3585         nonconstant_names array.
3586         (estimate_function_body_sizes): Build nonconstant_names array; handle
3587         BUILT_IN_CONSTANT_P.
3589 2011-04-28  Richard Guenther  <rguenther@suse.de>
3591         PR bootstrap/48804
3592         Revert
3593         2011-04-28  Richard Guenther  <rguenther@suse.de>
3595         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3596         as late as possible.
3598 2011-04-28  Richard Guenther  <rguenther@suse.de>
3600         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3601         (debug_constraint): Do it here.
3602         (dump_constraints): And here.
3603         (rewrite_constraints): And here.
3604         (dump_constraint_edge): Remove.
3605         (dump_constraint_graph): Rewrite to produce DOT output.
3606         (solve_constraints): Build succ graph as late as possible.
3607         Dump constraint graphs before and after solving.
3609 2011-04-28  Richard Guenther  <rguenther@suse.de>
3611         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3612         New function split out from ...
3613         (find_func_aliases): ... here.  Call it.
3614         (find_func_aliases_for_call): Likewise.
3616 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3618         * internal-fn.h (internal_fn_name_array): Declare.
3619         (internal_fn_flags_array): Likewise.
3621 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3623         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3624         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3625         Move from sse.md.
3626         (ssemodefsuffix): Remove.
3627         (ssevecmodesuffix): New mode attribute.
3628         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3629         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3630         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3631         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3632         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3633         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3634         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3635         ssemodesuffix mode attribute.
3636         (float splitters): Use ssevecmodesuffix mode attribute.
3637         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3638         (sseinsmode): Rename from avxvecmode.
3639         (avxsizesuffix): Rename from avxmodesuffix.
3640         (sseintvecmode): Rename from avxpermvecmode.
3641         (ssedoublevecmode): Rename from ssedoublesizemode.
3642         (ssehalfvecmode): Rename from avxhalfvecmode.
3643         (ssescalarmode): Rename from avxscalarmode.
3644         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3645         templates for ssemodesuffix mode attribute.
3646         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3647         mode attribute.
3649         Adjust RTX patterns globally for renamed mode attributes.
3651 2011-04-27  Jan Hubcika  <jh@suse.cz>
3653         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3654         * ipa-inline-analysis.c: Include alloc-pool.h.
3655         (edge_predicate_pool): New.
3656         (trye_predicate_p): New function
3657         (false_predicate_p): New function.
3658         (add_clause): Sanity check that false clauses are "optimized";
3659         never add clauses to predicate that is already known to be false.
3660         (and_predicate): Use flase_predicate_p.
3661         (evaulate_predicate): Rename to ...
3662         (evaluate_predicate): ... this one; update all callers; assert
3663         that false is not listed among possible truths.
3664         (dump_predicate): Use true_predicate_p.
3665         (account_size_time): Use false_predicate_p.
3666         (evaulate_conditions_for_edge): Rename to ...
3667         (evaluate_conditions_for_edge) ... this one.
3668         (edge_set_predicate): New function.
3669         (inline_edge_duplication_hook): Duplicate edge predicates.
3670         (inline_edge_removal_hook): Free edge predicates.
3671         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3672         (dump_inline_summary): Update.
3673         (estimate_function_body_sizes): Set edge predicates.
3674         (estimate_calls_size_and_time): Handle predicates.
3675         (estimate_callee_size_and_time): Update.
3676         (remap_predicate): Add toplev_predicate; update comment.
3677         (remap_edge_predicates): New function.
3678         (inline_merge_summary): Compute toplev predicate; update.
3679         (read_predicate): New function.
3680         (read_inline_edge_summary): Use it.
3681         (inline_read_section): Likewise.
3682         (write_predicate): New function.
3683         (write_inline_edge_summary): Use it.
3684         (inline_write_summary): Likewise.
3685         (inline_free_summary): Free alloc pool and edge summary vec.
3687 2011-04-27  Richard Guenther  <rguenther@suse.de>
3689         * tree-ssa-structalias.c (changed_count): Remove.
3690         (changed): Use a bitmap.
3691         (unify_nodes): Adjust.
3692         (do_sd_constraint): Likewise.
3693         (do_ds_constraint): Likewise.
3694         (do_complex_constraint): Likewise.
3695         (solve_graph): Likewise.
3697 2011-04-27  Jan Hubicka  <jh@suse.cz>
3699         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3701 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3703         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3704         (avx_vperm2f128_*_operand): Ditto.
3705         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3706         Use avx_vpermilp_parallel in insn condition.
3707         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3708         Use avx_vperm2f128_parallel in insn condition.
3710 2011-04-27  Richard Guenther  <rguenther@suse.de>
3712         * Makefile.in (tree-ssa-structalias.o): Remove
3713         gt-tree-ssa-structalias.h dependency.
3714         (GTFILES): Remove tree-ssa-structalias.c.
3715         * tree.c (allocate_decl_uid): New function.
3716         (make_node_stat): Use it.
3717         (copy_node_stat): Likewise.
3718         * tree.h (allocate_decl_uid): Declare.
3719         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3720         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3721         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3722         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3723         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3724         (struct heapvar_map): Likewise.
3725         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3726         heapvar_insert): Likewise.
3727         (make_heapvar_for): Rename to ...
3728         (make_heapvar): ... this.  Simplify.
3729         (fake_var_decl_obstack): New global var.
3730         (build_fake_var_decl): New function.
3731         (make_constraint_from_heapvar): Adjust.
3732         (handle_lhs_call): Likewise.
3733         (create_function_info_for): Likewise.
3734         (intra_create_variable_infos): Likewise.
3735         (init_alias_vars): Allocate fake_var_decl_obstack.
3736         (init_alias_heapvars, delete_alias_heapvars): Remove.
3737         (compute_points_to_sets): Do not call init_alias_heapvars.
3738         (ipa_pta_execute): Likewise.
3739         (delete_points_to_sets): Free fake_var_decl_obstack.
3741 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3743         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3744         (si_from_UTItype, si_to_UTItype): New functions.
3745         (__udivmodti4): Use them to implement type-punning.
3746         * config/spu/multi3.c (union qword_TItype): New data type.
3747         (si_from_TItype, si_to_TItype): New functions.
3748         (__multi3): Use them to implement type-punning.
3750 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3752         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3754 2011-04-27  Jan Hubicka  <jh@suse.cz>
3756         * ipa-prop.c (function_insertion_hook_holder): New holder.
3757         (ipa_add_new_function): New function.
3758         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3759         Register/deregister holder.
3761 2011-04-27  Richard Guenther  <rguenther@suse.de>
3763         PR tree-optimization/48772
3764         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3766 2011-04-27  Richard Guenther  <rguenther@suse.de>
3768         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3769         TARGET_MEM_REF handling.
3771 2011-04-27  Nick Clifton  <nickc@redhat.com>
3773         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3774         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3775         (REG_CLASS_NAMES): Likewise.
3776         (REG_CLASS_CONTENTS): Likewise.
3777         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3778         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3779         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3780         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3781         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3782         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3783         duplicate register classes.
3784         (frv_class_likely_spilled_p): Likewise.
3785         (frv_register_move_cost): Likewise.
3787         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3788         end of the regno_reg_class array.
3790 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3792         PR c/48742
3793         * c-typeck.c (build_binary_op): Don't wrap arguments if
3794         int_operands is true.
3796 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3798         PR target/48767
3799         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3800         targetm.calls.must_pass_in_stack for void type.
3802 2011-04-26  Jan Hubicka  <jh@suse.cz>
3804         * cgraphbuild.c (build_cgraph_edges): Update call
3805         of cgraph_create_edge and cgraph_create_indirect_edge.
3806         * cgraph.c (cgraph_create_edge_including_clones,
3807         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3808         cgraph_update_edges_for_call_stmt_node): Do not take nest
3809         argument; do not initialize call_stmt_size/time.
3810         (dump_cgraph_node): Do not dump nest.
3811         (cgraph_clone_edge): Do not take loop_nest argument;
3812         do not propagate it; do not clone call_stmt_size/time.
3813         (cgraph_clone_node): Likewise.
3814         (cgraph_create_virtual_clone): Update.
3815         * cgraph.h (struct cgraph_edge): Remove
3816         call_stmt_size/call_stmt_time/loop_nest.
3817         (cgraph_create_edge, cgraph_create_indirect_edge,
3818         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3819         prototype.
3820         * tree-emutls.c (gen_emutls_addr): Update.
3821         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3822         loop_nest; handle indirect calls, too.
3823         (clone_inlined_nodes): Do not care about updating inline summaries.
3824         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3825         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3826         stream call_stmt_size/call_stmt_time/loop_nest.
3827         * ipa-inline.c (edge_badness): Update.
3828         (ipa_inline): dump summaries after inlining.
3829         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3830         New.
3831         (inline_edge_summary): New function.
3832         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3833         (inline_edge_removal_hook): Handle edge summaries.
3834         (inline_edge_duplication_hook): New hook.
3835         (inline_summary_alloc): Alloc hooks.
3836         (initialize_growth_caches): Do not register removal hooks.
3837         (free_growth_caches); Do not free removal hook.
3838         (dump_inline_edge_summary): New function.
3839         (dump_inline_summary): Use it.
3840         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3841         (inline_update_callee_summaries): New function.
3842         (inline_merge_summary): Use it.
3843         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3844         (read_inline_edge_summary): New function.
3845         (inline_read_section): Use it.
3846         (write_inline_edge_summary): New function.
3847         (inline_write_summary): Use it.
3848         (inline_free_summary): Free edge new holders.
3849         * tree-inline.c (copy_bb): Update.
3851 2011-04-26  Jason Merrill  <jason@redhat.com>
3853         * tree-eh.c (lower_try_finally_switch): Create the label along with
3854         the CASE_LABEL_EXPR.
3856 2011-04-26  David S. Miller  <davem@davemloft.net>
3857             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3859         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3860         * configure: Regenerate.
3862 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3864         PR target/48258
3865         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3866         reduction.
3867         (VEC_reduc): New code iterator and splitters for vector reduction.
3868         (VEC_reduc_name): Ditto.
3869         (VEC_reduc_rtx): Ditto.
3870         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3871         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3873         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3874         support for extracting SF on VSX.
3876         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3877         generating xscvspdp.
3878         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3879         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3880         double add, minimum, maximum vector reduction.
3881         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3882         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3883         optimize double vector reduction.
3884         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3886 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3888         * config/fr30/fr30.h (inhibit_libc): Don't define.
3889         * config/m32r/m32r-protos.h: Correct comment.
3890         * config/v850/v850.h (GHS_default_section_names,
3891         GHS_current_section_names): Use tree, not union tree_node *.
3893 2011-04-26  Xinliang David Li  <davidxl@google.com>
3895         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3896         * c-family/c-opts.c (c_common_handle_option): Set
3897         warn_maybe_uninitialized.
3898         * opts.c (common_handle_option): Ditto.
3899         * common.opt:  New option.
3900         * tree-ssa.c (warn_uninit): Add one more parameter.
3901         (warn_uninitialized_var): Pass warning code.
3902         * tree-flow.h: Interface change.
3905 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3907         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3908         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3909         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3911 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3913         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3914         * config/mips/mips.opt (mmips-tfile): Remove.
3916         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3917         mips-tdump reference to ...
3918         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3919         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3920         reference by Tru64 UNIX.
3922 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3924         PR debug/48768
3925         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3926         is error_mark_node, set value to NULL.
3928         PR tree-optimization/48734
3929         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3930         if return value from maybe_fold_*_comparsions isn't something
3931         the code is prepared to handle.
3933 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3935         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3936         mode check.
3937         (ext_QIreg_nomode_operands): Remove.
3938         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3939         (*andsi_1): Ditto.
3940         (*andhi_1): Ditto.
3942 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3944         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3946 2011-04-26  Richard Guenther  <rguenther@suse.de>
3948         * c-typeck.c (build_unary_op): Do not expand array-refs via
3949         pointer arithmetic.  Only adjust qualifiers for function types.
3951 2011-04-26  Richard Guenther  <rguenther@suse.de>
3953         PR middle-end/48694
3954         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3955         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3956         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3957         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3959 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3961         * doc/extend.texi: Document __underlying_type.
3963 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3965         * config/rs6000/titan.md (automata_option "progress"): Remove.
3967 2011-04-25  Jeff Law  <law@redhat.com>
3969         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3971 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3973         * system.h (ENUM_BITFIELD): Remove.
3975 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3976             Eric Botcazou  <ebotcazou@adacore.com>
3978         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3979         for STORE_FLAG_VALUE==-1 case.
3981 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3983         PR target/43804
3984         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3985         LEGITIMATE_PIC_OPERAND_P.
3987 2011-04-24  Jan Hubicka  <jh@suse.cz>
3989         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3990         WPA hack.
3991         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3992         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3993         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3994         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3995         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3996         Sanity check predicate length.
3997         (remap_predicate): Likewise; sanity check jump functions.
3998         (inline_read_section, inline_write_summary): Sanity check
3999         predicate length.
4001 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4003         PR other/48748
4004         * doc/extend.texi (Type Traits): Document __is_standard_layout,
4005         __is_literal_type, and __is_trivial; update throughout about
4006         possibly cv-qualified void types.
4008 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4010         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4011         testsuite and make it version agnostic.
4013 2011-04-22  Jan Hubicka  <jh@suse.cz>
4015         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4017 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4019         PR c/48685
4020         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4021         to VOID_TYPE even around MODIFY_EXPR.
4023 2011-04-22  Mike Stump  <mikestump@comcast.net>
4025         * gensupport.c (read_md_rtx): Fix typo in comment.
4026         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4027         comment.
4029 2011-04-22  Jan Hubicka  <jh@suse.cz>
4031         * gengtype.c (open_base_files): Add ipa-inline.h include.
4032         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4033         ipa-prop.c; update all uses.
4034         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4035         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4036         merge summary of inlined function into former caller.
4037         * ipa-inline.c (max_benefit): Remove.
4038         (edge_badness): Compensate for removal of benefits.
4039         (update_caller_keys): Use
4040         reset_node_growth_cache/reset_edge_growth_cache.
4041         (update_callee_keys): Likewise.
4042         (update_all_callee_keys): Likewise.
4043         (inline_small_functions): Do not collect max_benefit; do not reset
4044         estimated_growth; call free_growth_caches and initialize_growth_caches.
4045         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4046         struct size_time_entry): New structures.
4047         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4048         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4049         and estimated_growth.
4050         (edge_growth_cache_entry): New structure.
4051         (node_growth_cache, edge_growth_cache): New global vars.
4052         (estimate_growth): Turn into inline.
4053         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4054         initialize_growth_caches, free_growth_caches): Declare.
4055         (estimate_edge_growth): Rewrite.
4056         (estimate_edge_time): Implement as inline cache lookup.
4057         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4058         functions.
4059         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4060         (NUM_CONDITIONS): New constant.
4061         (predicate_conditions): New enum.
4062         (IS_NOT_CONSTANT): New constant.
4063         (edge_removal_hook_holder): New var.
4064         (node_growth_cache, edge_growth_cache): New global vars.
4065         (true_predicate, single_cond_predicate, false_predicate,
4066         not_inlined_predicate, add_condition, add_clause, and_predicates,
4067         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4068         dump_clause, dump_predicate, account_size_time,
4069         evaulate_conditions_for_edge): New functions.
4070         (inline_summary_alloc): Move to heap.
4071         (inline_node_removal_hook): Clear condition and entry vectors.
4072         (inline_edge_removal_hook): New function.
4073         (initialize_growth_caches, free_growth_caches): New function.
4074         (dump_inline_summary): Update.
4075         (edge_execution_predicate): New function.
4076         (will_be_nonconstant_predicate): New function.
4077         (estimate_function_body_sizes): Compute BB and constantness predicates.
4078         (compute_inline_parameters): Do not clear estimated_growth.
4079         (estimate_edge_size_and_time): New function.
4080         (estimate_calls_size_and_time): New function.
4081         (estimate_callee_size_and_time): New function.
4082         (remap_predicate): New function.
4083         (inline_merge_summary): New function.
4084         (do_estimate_edge_time): New function based on...
4085         (estimate_edge_time): ... this one.
4086         (do_estimate_edge_growth): New function.
4087         (do_estimate_growth): New function based on....
4088         (estimate_growth): ... this one.
4089         (inline_analyze_function): Analyze after deciding on jump functions.
4090         (inline_read_section): New function.
4091         (inline_read_summary): Use it.
4092         (inline_write_summary): Write all the new data.
4093         * ipa-prop.c (ipa_get_param_decl_index): Export.
4094         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4095         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4096         Declare.
4097         (ipa_get_lattice): Move here from ipa-cp.c
4098         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4099         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4100         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4101         cgraph_edge_inlinable_p): Remove.
4102         * cgraphunit.c: Include ipainline.h
4103         (cgraph_process_new_functions): Update call of
4104         compute_inline_parameters.
4106 2011-04-22  Richard Guenther  <rguenther@suse.de>
4108         * tree.c (build_int_cst): Properly create canonicalized integer
4109         constants.
4110         (build_int_cst_type): Remove scary comments.
4112 2011-04-22  Xinliang David Li  <davidxl@google.com>
4114         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4115         by default when -Wno-error is not specified.
4116         * opts-global.c (decode_options): Remove call to
4117         control_warning_options.
4119 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4121         PR tree-optimization/48717
4122         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4123         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4125 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4127         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4128         definition where used.
4130 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4132         PR c/48716
4133         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4134         TREE_STATIC variables declared inside of some OpenMP construct.
4136 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4138         PR middle-end/48585
4139         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4141 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4143         PR c/36750
4144         * c-typeck.c (pop_init_level): Do not warn about initializing
4145         with ` = {0}'.
4147 2011-04-22  Alan Modra  <amodra@gmail.com>
4149         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4150         when returning call_cookie.
4151         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4152         pointers, to functions with no more vector args than the current
4153         function, and some non-local calls for ABI_V4.
4154         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4155         sibcall_nonlocal_aix64): Combine to ..
4156         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4157         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4158         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4159         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4160         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4161         operand.
4162         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4163         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4164         sibcall_value_symbolic_64): Delete.
4166 2011-04-21  Xinliang David Li  <davidxl@google.com>
4168         * cgraph.h: Remove pid.
4169         * cgraph.c: Remove pid.
4170         * value-prof.c (init_node_map): New function.
4171         (del_node_map): New function.
4172         (find_func_by_funcdef_no): New function.
4173         (gimple_ic_transform): Call new function.
4174         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4175         * function.c (get_last_funcdef_no): New function.
4176         * function.h (get_last_funcdef_no): New function.
4177         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4178         to libgcov function.
4179         (tree-profiling): Call node map init and delete function.
4181 2011-04-21  Ian Lance Taylor  <iant@google.com>
4183         * godump.c (go_format_type): Use exported Go name for anonymous
4184         field name.
4186 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4188         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4189         Call builtin_function_type_list instead of builtin_function_type.
4190         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4192 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4194         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4195         build_function_type_list instead of build_function_type.
4196         Delete variable `endlink'.
4198 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4200         * config/s390/s390.c (s390_init_builtins): Call
4201         build_function_type_list instead of build_function_type.
4203 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4205         * config/ia64/ia64.c (ia64_init_builtins): Call
4206         build_function_type_list instead of builtin_function_type.
4208 2011-04-21  Easwaran Raman  <eraman@google.com>
4210         * cfgexpand.c (stack_var): Remove OFFSET...
4211         (add_stack_var): ...and its reference here...
4212         (expand_stack_vars): ...and here.
4213         (stack_var_cmp): Sort by descending order of size.
4214         (partition_stack_vars): Change heuristic.
4215         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4216         (dump_stack_var_partition): Add newline after each partition.
4218 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4219             Jeff Law  <law@redhat.com>
4221         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4222         * gengtype.c (matching_file_name_substitute): Likewise.
4224 2011-04-21  Richard Guenther  <rguenther@suse.de>
4226         PR lto/48703
4227         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4229 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4231         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4233 2011-04-21  Richard Guenther  <rguenther@suse.de>
4235         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4236         file name.
4238 2011-04-21  Richard Guenther  <rguenther@suse.de>
4240         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4241         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4242         Use DECL_P, not SSA_VAR_P.
4243         (ptr_derefs_may_alias_p): Likewise.
4244         (ptr_deref_may_alias_ref_p_1): Likewise.
4245         (decl_refs_may_alias_p): Likewise.
4246         (refs_may_alias_p_1): Likewise.
4247         (ref_maybe_used_by_call_p_1): Likewise.
4248         (call_may_clobber_ref_p_1): Likewise.
4249         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4250         are either MEM_REF or TARGET_MEM_REF.
4251         (indirect_refs_may_alias_p): Likewise.
4252         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4253         for MEM_EXPR of indirect calls.
4255 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4257         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4258         (dst_file_info_struct): Remove flen field.
4259         (lookup_filename): Remove code that set flen field.
4261 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4263         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4265 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4267         PR target/48708
4268         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4269         vec_extract and vec_concat for non-SSE4_1 targets.
4271 2011-04-21  Richard Guenther  <rguenther@suse.de>
4273         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4274         return statements.
4276 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4278         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4279         undefine.
4280         (FILE): Don't undefine.
4282 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4284         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4285         struct rtx_def *.
4286         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4287         struct rtx_def *.
4288         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4289         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4290         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4291         rtx_def *.
4292         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4293         definitions where used.
4294         * config/microblaze/microblaze.h (struct microblaze_args): Use
4295         rtx, not struct rtx_def *.
4296         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4297         rtx_def *.
4298         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4299         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4300         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4301         not struct rtx_def *.
4302         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4303         struct rtx_def *.
4304         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4305         rtx_def *.
4306         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4308 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4310         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4311         operand_equal_p to compare DR_BASE_ADDRESSes.
4312         (vect_check_interleaving): Likewise.
4314 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4316         PR target/46329
4317         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4318         for all Neon struct constants.
4320 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4322         * target.def (legitimate_constant_p): New hook.
4323         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4324         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4325         * doc/tm.texi: Regenerate.
4326         * hooks.h (hook_bool_mode_rtx_true): Declare.
4327         * hooks.c (hook_bool_mode_rtx_true): Define.
4328         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4329         * calls.c (precompute_register_parameters): Replace uses of
4330         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4331         (emit_library_call_value_1): Likewise.
4332         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4333         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4334         * ira-costs.c (scan_one_insn): Likewise.
4335         * recog.c (general_operand, immediate_operand): Likewise.
4336         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4337         * reload1.c (init_eliminable_invariants): Likewise.
4339         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4340         mode argument.
4341         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4342         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4343         argument.
4344         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4345         * config/alpha/predicates.md (input_operand): Update call to
4346         alpha_legitimate_constant_p.
4348         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4349         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4350         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4351         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4352         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4353         (arm_legitimate_constant_p): New functions.
4354         (arm_cannot_force_const_mem): Make static.
4356         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4358         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4359         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4360         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4361         instead of bfin_legitimate_constant_p.
4362         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4363         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4365         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4367         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4369         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4370         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4371         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4372         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4374         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4375         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4376         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4378         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4379         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4380         * config/i386/i386.c (legitimate_constant_p): Rename to...
4381         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4382         argument.
4383         (ix86_cannot_force_const_mem): Update accordingly.
4384         (ix86_legitimate_address_p): Likewise.
4385         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4386         * config/i386/i386.md: Update commentary.
4388         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4389         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4390         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4391         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4393         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4395         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4396         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4397         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4398         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4400         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4401         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4402         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4404         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4405         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4406         (m32r_legitimate_constant_p): New function.
4408         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4409         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4410         LEGITIMATE_CONSTANT_P.
4411         (LEGITIMATE_CONSTANT_P): Delete.
4412         * config/m68k/m68k.c (m68k_expand_prologue): Call
4413         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4414         (m68k_legitimate_constant_p): New function.
4415         * config/m68k/m68k.md: Update comments.
4417         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4418         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4419         (mcore_legitimate_constant_p): New function.
4421         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4422         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4423         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4424         Add a mode argument.
4425         (mep_legitimate_address): Update accordingly.
4426         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4428         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4429         Delete.
4430         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4431         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4432         static.  Check OP's mode for VOIDmode.
4433         (microblaze_legitimate_constant_p): New function.
4434         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4436         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4437         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4438         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4439         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4440         * config/mips/predicates.md: Update comments.
4442         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4443         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4444         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4445         (mmix_legitimate_constant_p): Make static, return a bool, and take
4446         a mode argument.
4447         (mmix_print_operand_address): Update accordingly.
4449         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4450         Delete.
4451         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4452         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4453         static.  Add a mode argument.
4454         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4456         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4458         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4459         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4460         (pa_legitimate_constant_p): New function.
4462         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4464         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4465         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4466         (pdp11_legitimate_constant_p): New function.
4468         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4469         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4470         (rs6000_legitimate_constant_p): New function.
4472         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4473         (rx_legitimate_constant_p): ...this.
4474         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4475         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4476         (rx_legitimate_constant_p): ...this.
4477         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4478         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4480         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4481         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4482         * config/s390/s390.c (legitimate_constant_p): Rename to...
4483         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4484         and add a mode argument.
4485         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4487         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4489         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4490         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4491         (sh_legitimate_constant_p): New function.
4493         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4494         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4495         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4496         (legitimate_constant_p): Rename to...
4497         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4498         argument.
4499         (constant_address_p): Update accordingly.
4501         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4502         argument and return a bool.
4503         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4504         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4505         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4506         (spu_rtx_costs): Update accordingly.
4507         * config/spu/predicates.md (vec_imm_operand): Likewise.
4509         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4511         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4512         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4513         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4515         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4516         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4517         * config/vax/vax.c (legitimate_constant_p): Likewise.
4519         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4520         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4521         (xtensa_legitimate_constant_p): New function.
4523 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4525         * target.def (cannot_force_const_mem): Add a mode argument.
4526         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4527         * doc/tm.texi: Regenerate.
4528         * hooks.h (hook_bool_mode_rtx_false): Declare.
4529         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4530         (hook_bool_mode_const_rtx_true): Likewise.
4531         (hook_bool_mode_rtx_false): New function.
4532         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4533         to be non-VOID.  Update call to cannot_force_const_mem.
4534         (find_reloads): Update accordingly.
4535         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4536         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4537         argument.
4538         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4539         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4540         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4541         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4542         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4543         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4544         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4545         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4546         (m68k_cannot_force_const_mem): ...this new function.
4547         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4548         argument.
4549         (mips_const_insns, mips_legitimize_const_move): Update calls.
4550         (mips_secondary_reload_class): Likewise.
4551         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4552         (pa_cannot_force_const_mem): ...this new function.
4553         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4554         (rs6000_cannot_force_const_mem): ...this new function.
4555         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4556         argument.
4557         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4558         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4559         to...
4560         (xtensa_cannot_force_const_mem): ...this new function.
4562 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4564         * config/mips/mips.c (mips16_build_function_stub): Call
4565         build_function_type_list instead of build_function_type.
4566         (mips16_build_call_stub): Likewise.
4568 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4570         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4571         instead of build_function_type.
4573 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4575         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4576         instead of build_function_type.
4578 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4580         PR target/48678
4581         * config/i386/i386.md (insv): Change operand 0 constraint to
4582         "register_operand".  Change operand 1 and 2 constraint to
4583         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4584         * config/i386/sse.md (sse4_1_pinsrb): Export.
4585         (sse2_pinsrw): Ditto.
4586         (sse4_1_pinsrd): Ditto.
4587         (sse4_1_pinsrq): Ditto.
4588         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4589         * config/i386/i386.c (ix86_expand_pinsr): New.
4591 2011-04-20  Easwaran Raman  <eraman@google.com>
4593         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4594         containing union type only with -fstrict-aliasing.
4596 2011-04-20  Jim Meyering  <meyering@redhat.com>
4598         Remove useless if-before-free tests.
4599         * calls.c (expand_call, save_area): Likewise.
4600         * cfgcleanup.c (try_forward_edges): Likewise.
4601         * collect2.c (collect_execute): Likewise.
4602         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4603         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4604         * coverage.c (coverage_checksum_string): Likewise.
4605         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4606         * cselib.c (cselib_init): Likewise.
4607         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4608         (df_set_clean_cfg): Likewise.
4609         * function.c (free_after_compilation): Likewise.
4610         * gcc.c (do_spec_1, main): Likewise.
4611         * gcov.c (create_file_names): Likewise.
4612         * gensupport.c (identify_predicable_attribute): Likewise.
4613         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4614         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4615         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4616         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4617         * ipa-pure-const.c (local_pure_const): Likewise.
4618         * ipa-reference.c (propagate): Likewise.
4619         * ira-costs.c (free_ira_costs): Likewise.
4620         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4621         * matrix-reorg.c (mat_free): Likewise.
4622         * prefix.c (get_key_value): Likewise.
4623         * profile.c (compute_value_histograms): Likewise.
4624         * reload1.c (free_reg_equiv): Likewise.
4625         * sched-deps.c (free_deps): Likewise.
4626         * sel-sched-ir.c (fence_clear): Likewise.
4627         * sese.c (set_rename, if_region_set_false_region): Likewise.
4628         * tree-data-ref.c (free_rdg): Likewise.
4629         * tree-eh.c (lower_try_finally): Likewise.
4630         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4631         * tree-ssa-live.c (delete_var_map): Likewise.
4632         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4633         * tree-ssa-pre.c (phi_trans_add): Likewise.
4635 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4637         PR tree-optimization/48611
4638         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4639         beyond ERT_MUST_NOT_THROW region.
4641 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4643         * config/mips/mips.opt (mfix-24k): New.
4644         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4645         * config/mips/mips.md (length): Increase by 4 for stores if
4646         fixing 24K errata.
4647         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4648         all noreorder if fixing 24K errata.
4649         * doc/invoke.texi: Document mfix-24k.
4651 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4653         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4654         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4656 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4658         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4659         (const_ok_for_op): ... to here.
4661 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4663         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4664         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4666 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4668         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4670 2011-04-20  Richard Guenther  <rguenther@suse.de>
4672         PR tree-optimization/47892
4673         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4674         are if-convertible.
4676 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4678         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4680 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4682         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4684 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4686         PR target/18145
4688         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4689         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4690         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4691         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4692         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4694         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4695         New prototype.
4697         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4698         (avr_asm_named_section, avr_asm_output_aligned_common,
4699         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4700         New functions to update...
4701         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4702         (avr_asm_init_sections): Overwrite section callbacks for
4703         data_section, bss_section.
4704         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4705         from here to...
4706         (avr_file_end): ...here.
4708 2011-04-20  Richard Guenther  <rguenther@suse.de>
4710         PR middle-end/48695
4711         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4712         objects and types here.  Adjust for their offset before comparing.
4714 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4716         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4717         statement per copy.
4719 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4721         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4722         (GIMPLE_H): Include $(INTERNAL_FN_H).
4723         (OBJS-common): Add internal-fn.o.
4724         (internal-fn.o): New rule.
4725         * internal-fn.def: New file.
4726         * internal-fn.h: Likewise.
4727         * internal-fn.c: Likewise.
4728         * gimple.h: Include internal-fn.h.
4729         (GF_CALL_INTERNAL): New gf_mask.
4730         (gimple_statement_call): Put fntype into a union with a new
4731         internal_fn field.
4732         (gimple_build_call_internal): Declare.
4733         (gimple_build_call_internal_vec): Likewise.
4734         (gimple_call_same_target_p): Likewise.
4735         (gimple_call_internal_p): New function.
4736         (gimple_call_internal_fn): Likewise.
4737         (gimple_call_fntype): Return null for internal calls.
4738         (gimple_call_set_fntype): Assert that the function is not internal.
4739         (gimple_call_set_fn): Likewise.
4740         (gimple_call_set_fndecl): Likewise.
4741         (gimple_call_set_internal_fn): New function.
4742         (gimple_call_addr_fndecl): Handle null functions.
4743         (gimple_call_return_type): Likewise null types.
4744         * gimple.c (gimple_build_call_internal_1): New function.
4745         (gimple_build_call_internal): Likewise.
4746         (gimple_build_call_internal_vec): Likewise.
4747         (gimple_call_same_target_p): Likewise.
4748         (gimple_call_flags): Handle calls to internal functions.
4749         (gimple_call_fnspec): New function.
4750         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4751         (gimple_has_side_effects): Handle null functions.
4752         (gimple_rhs_has_side_effects): Likewise.
4753         (gimple_call_copy_skip_args): Handle calls to internal functions.
4754         * cfgexpand.c (expand_call_stmt): Likewise.
4755         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4756         * gimple-fold.c (gimple_fold_call): Handle null functions.
4757         (gimple_fold_stmt_to_constant_1): Don't fold
4758         calls to internal functions.
4759         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4760         functions.
4761         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4762         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4763         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4764         (do_warn_unused_result): Likewise.
4765         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4766         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4767         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4768         the target of a call.
4769         (initialize_hash_element): Update accordingly.
4770         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4771         (iterative_hash_hashable_expr): Handle calls to internal functions.
4772         (print_expr_hash_elt): Likewise.
4773         * tree-ssa-pre.c (can_value_number_call): Likewise.
4774         (eliminate): Handle null functions.
4775         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4776         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4777         (find_func_aliases): Likewise.
4778         * value-prof.c (gimple_ic_transform): Likewise.
4779         (gimple_indirect_call_to_profile): Likewise.
4780         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4781         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4783 2011-04-19  Jan Hubicka  <jh@suse.cz>
4785         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4786         * ipa-inline.c (inline_small_functions): Compute summaries first,
4787         populate heap later.
4789 2011-04-19  Jan Hubicka  <jh@suse.cz>
4791         * cgraph.h (save_inline_function_body): Remove.
4792         * ipa-inline-transform.c: New file, broke out of...
4793         * ipa-inline.c: ... this one; Update toplevel comment.
4794         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4795         make global.
4796         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4797         (cgraph_mark_inline_edge): Rename to inline_call; move to
4798         ipa-inline-transform.c.
4799         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4800         move to ipa-inline-transform.c
4801         (recursive_inlining, inline_small_functions, flatten_function,
4802         ipa_inline, inline_always_inline_functions,
4803         early_inline_small_functions): Update.
4804         (inline_transform): Move to ipa-inline-transform.c.
4805         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4806         Declare.
4807         * Makefile.in (ipa-inline-transform.o): New file.
4808         * cgraphunit.c (save_inline_function_body): Move to
4809         ipa-inline-transform.c
4811 2011-04-19  DJ Delorie  <dj@redhat.com>
4813         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4814         registers if we already know there aren't any.
4815         (m32c_emit_epilogue): Don't emit a barrier here.
4816         (m32c_emit_eh_epilogue): Likewise.
4817         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4818         operands at expand time.
4819         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4820         int" wchar type.
4821         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4822         duplicates.  Provide aliases instead.
4823         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4824         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4825         the compiler.
4827 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4829         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4830         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4831         (general_or_i64_p, sparc_register_move_cost): New function.
4833 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4835         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4836         Add lynx, mipssde.  Sort table.
4838 2011-04-19  Xinliang David Li  <davidxl@google.com>
4840         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4841         not negative.
4843 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4845         PR target/48678
4846         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4847         is a SUBREG with non-MODE_INT mode inside of it.
4849 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4851         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4852         also according to actual contants.
4853         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4854         (gimple_fold_call): Use it.
4855         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4857 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4859         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4860         non-pointer assignments.
4862 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4864         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4865         account anc_offset and otr_type from the indirect edge info.
4866         * ipa-prop.c (get_ancestor_addr_info): New function.
4867         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4868         get_ancestor_addr_info, call it.
4869         (ipa_note_param_call): Do not initialize information about polymorphic
4870         calls, return the indirect call graph edge.  Remove the last
4871         parameter, adjust all callers.
4872         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4873         parameters.  Initialize polymorphic information in the indirect edge.
4875 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4877         PR lto/48148
4878         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4879         the types if they have different enumeration identifiers.
4881 2011-04-19  Jan Hubicka  <jh@suse.cz>
4883         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4884         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4885         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4886         (optimize_function_for_size_p) ... here.
4888 2011-04-19  Richard Guenther  <rguenther@suse.de>
4890         PR lto/48207
4891         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4892         langhook.
4894 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4896         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4897         if DECL_NO_INLINE_WARNING_P is set on the function.
4899 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4901         PR fortran/47976
4902         * reload1.c (inc_for_reload): Return void. All callers changed.
4903         (emit_input_reload_insns): Don't try to delete previous output
4904         reloads to a register, or record spill_reg_store for autoincs.
4906 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4908         * gengtype.h: Updated copyright year.
4909         (struct input_file_st): Add inpisplugin field.
4910         (type_fileloc): New function.
4911         * gengtype.c
4912         (write_typed_struct_alloc_def): Add gcc_assert.
4913         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4914         (write_typed_alloc_defns): Don't output for plugin files.
4915         (input_file_by_name): Clear inpisplugin field.
4916         (main): Set inpisplugin field for plugin files.
4918 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4920         * gengtype-state.c (string_eq): New.
4921         (read_state): Use string_eq instead of strcmp when creating the
4922         state_ident_tab.
4924 2011-04-19  Wei Guozhi  <carrot@google.com>
4926         PR target/47855
4927         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4928         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4929         linkage.
4930         * config/arm/constraints.md (Uu): New constraint.
4931         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4933 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4935         * config.gcc (-*-*-*vms): Added.
4936         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4937         definitions moved.
4938         * config/vms/vms-ld.c: New file.
4939         * config/vms/vms-ar.c: New file.
4940         * config/vms/t-vmsnative: New file.
4942 2011-04-18  Xinliang David Li  <davidxl@google.com>
4944         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4946 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4948         PR middle-end/48661
4949         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4950         if TREE_TYPE (v) is non-NULL.
4952         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4953         gimple_get_virt_mehtod_for_binfo.
4954         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4955         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4956         callers.
4957         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4959 2011-04-18  Michael Matz  <matz@suse.de>
4960             Steve Ellcey  <sje@cup.hp.com>
4962         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4963         use its mode as source mode if it isn't VOIDmode.
4965 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4967         * doc/passes.texi: Fill crossref nodes.
4969 2011-04-18  Jim Meyering  <meyering@redhat.com>
4971         Fix doubled-word typos in comments and strings
4972         * config/alpha/vms-unwind.h: s/for for/for/
4973         * config/arm/unwind-arm.h: Likewise.
4974         * config/microblaze/microblaze.c: Likewise.
4975         * config/sh/constraints.md: s/in in/in/
4976         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4978 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4980         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4981         (AVX_FLOAT_MODE_P): Ditto.
4982         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4983         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4984         (AVX_VEC_FLOAT_MODE_P): Ditto.
4985         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4986         (UNSPEC_MASKSTORE): Ditto.
4987         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4988         Merge from <sse>_movmsk<ssemodesuffix> and
4989         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4990         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4991         iterator.
4992         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4993         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4994         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4996 2011-04-18  Jan Hubicka  <jh@suse.cz>
4998         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5000         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5001         (want_inline_function_called_once_p): Break out the logic from
5002         ipa_inline.
5003         (edge_badness): Ensure that profile is not misupdated.
5004         (lookup_recursive_calls): Prioritize by call frequencies.
5005         (inline_small_functions): Move program size estimates here;
5006         actually process whole queue even when unit growth has been
5007         met. (to properly compute inline_failed reasons and for the
5008         case unit size decrease.) Revisit comments on recursive inlining.
5009         (ipa_inline): Remove unit summary code; first inline hot calls
5010         of functions called once, cold calls next.
5011         (order, nnodes): Remove unused variables.
5012         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5013         (GTFILES): Remove ipa-inline.c
5014         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5016 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5018         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5020 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5021             Richard Earnshaw  <rearnsha@arm.com>
5023         * arm.c (neon_builtin_type_bits): Remove.
5024         (typedef enum neon_builtin_mode): New.
5025         (T_MAX): Don't define.
5026         (typedef enum neon_builtin_datum): Remove bits, codes[],
5027         num_vars and base_fcode.  Add mode, code and fcode.
5028         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5029         VAR10): Change accordingly.
5030         (neon_builtin_data[]): Change accordingly
5031         (arm_init_neon_builtins): Change accordingly.
5032         (neon_builtin_compare): Remove.
5033         (locate_neon_builtin_icode): Remove.
5034         (arm_expand_neon_builtin): Change accordingly.
5036         * arm.h (enum arm_builtins): Move to ...
5037         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5039         * arm.c (arm_builtin_decl): Declare.
5040         (TARGET_BUILTIN_DECL): Define.
5041         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5042         (arm_builtin_decls[]): New.
5043         (arm_init_neon_builtins): Store builtin declarations in
5044         arm_builtin_decls[].
5045         (arm_init_tls_builtins): Likewise.
5046         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5047         (arm_builtin_decl): New.
5049 2011-04-18  Richard Guenther  <rguenther@suse.de>
5051         * tree.c (upper_bound_in_type): Build properly canonicalized
5052         INTEGER_CSTs.
5053         (lower_bound_in_type): Likewise.
5055 2011-04-18  Richard Guenther  <rguenther@suse.de>
5057         * gimple.h (gimple_call_addr_fndecl): New function.
5058         (gimple_call_fndecl): Use it.
5059         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5060         for direct calls.
5061         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5062         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5064 2011-04-18  Richard Guenther  <rguenther@suse.de>
5066         PR middle-end/48650
5067         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5069 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5071         PR lto/48492
5072         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5073         DECL_IN_CONSTANT_POOL without RTL.
5075 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5076             Ira Rosen  <ira.rosen@linaro.org>
5078         PR target/48252
5079         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5080         to match neon_vzip/vuzp/vtrn_internal.
5081         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5082         outputs explicitly dependent on both inputs.
5083         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5085 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5087         PR tree-optimization/48616
5088         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5089         whether the shift is by scalar or vector based on whether all SLP
5090         scalar stmts have the same rhs.
5092 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5094         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5095         memory operands.
5097 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5099         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5100         registers.
5102 2011-04-17  Jan Hubicka  <jh@suse.cz>
5104         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5105         * cgrpahunit.c (cgraph_finalize_function): Do not set
5106         finalized_by_frontend.
5107         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5108         finalized_by_frontend.
5110 2011-04-17  Jan Hubicka  <jh@suse.cz>
5112         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5113         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5114         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5115         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5116         method.
5117         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5118         gimple-fold.c
5119         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5121 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5123         PR lto/48538
5124         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5125         is non-null before accessing it.
5126         (input_cgraph): Remove trailing spaces.
5128 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5130         * params.def (sms-min-sc): New param flag.
5131         * modulo-sched.c (sms_schedule): Use it.
5132         * doc/invoke.texi (sms-min-sc): Document it.
5134 2011-04-17  Jan Hubicka  <jh@suse.cz>
5136         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5137         present, also set gimple_call_set_cannot_inline.
5138         * ipa-inline.c: Update toplevel comment.
5139         (MAX_TIME): Remove.
5140         (cgraph_clone_inlined_nodes): Fix linebreaks.
5141         (cgraph_check_inline_limits): Restructure to ...
5142         (caller_growth_limits): ... this one; be more tolerant
5143         on growth in nested inline chains; add explanatory comment;
5144         fix stack accounting thinko introduced by previous patch.
5145         (cgraph_default_inline_p): Remove.
5146         (report_inline_failed_reason): New function.
5147         (can_inline_edge_p): New function.
5148         (can_early_inline_edge_p): New function.
5149         (leaf_node_p): Move upwards in file.
5150         (want_early_inline_function_p): New function.
5151         (want_inline_small_function_p): New function.
5152         (want_inline_self_recursive_call_p): New function.
5153         (cgraph_edge_badness): Rename to ...
5154         (edge_badness) ... this one; fix linebreaks.
5155         (update_edge_key): Update call of edge_baddness; add
5156         detailed dump about queue updates.
5157         (update_caller_keys): Use can_inline_edge_p and
5158         want_inline_small_function_p.
5159         (cgraph_decide_recursive_inlining): Rename to...
5160         (recursive_inlining): Use can_inline_edge_p and
5161         want_inline_self_recursive_call_p; simplify and remove no longer
5162         valid FIXME.
5163         (cgraph_set_inline_failed): Remove.
5164         (add_new_edges_to_heap): Use can_inline_edge_p and
5165         want_inline_small_function_p.
5166         (cgraph_decide_inlining_of_small_functions): Rename to ...
5167         (inline_small_functions): ... this one; cleanup; use
5168         can/want predicates; cleanup debug ouput; work edges till fibheap
5169         is exhausted and do not stop once unit growth is reached; remove
5170         later loop processing remaining edges.
5171         (cgraph_flatten): Rename to ...
5172         (flatten_function): ... this one; use can_inline_edge_p
5173         and can_early_inline_edge_p predicates.
5174         (cgraph_decide_inlining): Rename to ...
5175         (ipa_inline): ... this one; remove unreachable nodes before
5176         inlining functions called once; simplify the pass.
5177         (cgraph_perform_always_inlining): Rename to ...
5178         (inline_always_inline_functions): ... this one; use
5179         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5180         (cgraph_decide_inlining_incrementally): Rename to ...
5181         (early_inline_small_functions): ... this one; simplify
5182         using new predicates; cleanup; make dumps prettier.
5183         (cgraph_early_inlining): Rename to ...
5184         (early_inliner): newer inline regular functions into always-inlines;
5185         fix updating of call stmt summaries.
5186         (pass_early_inline): Update for new names.
5187         (inline_transform): Fix formating.
5188         (gate_cgraph_decide_inlining): Rename to ...
5189         (pass_ipa_inline): ... this one.
5190         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5191         * ipa-inline-analysis.c (dump_inline_summary): Update.
5192         (compute_inline_parameters): Do not compute disregard_inline_limits;
5193         look for mismatching arguments.
5194         (estimate_growth): Fix handlig of non-trivial self recursion.
5195         (inline_read_summary): Do not read info->disregard_inline_limits.
5196         (inline_write_summary): Do not write info->disregard_inline_limits.
5197         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5198         and move all checks into can_inline_edge_p predicate; re-enable code
5199         comparing optimization levels.
5200         (expand_call_inline): Do not test inline_forbidden_into_p.
5201         * Makefile.in (ipa-inline.o): Update arguments.
5203 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5205         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5207 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5209         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5211 2011-04-17  Michael Matz  <matz@suse.de>
5213         PR tree-optimization/48622
5214         PR lto/48645
5215         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5216         in same order as they're written.
5218 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5220         * config/pa/predicates.md: Reorganize and simplify predicates.
5221         Eliminate duplicate code checks.
5222         (arith_operand): Rename to arith14_operand
5223         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5224         * config/pa/pa.md: Use renamed operands.
5225         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5226         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5227         arith11_operand, adddi3_operand, indexed_memory_operand,
5228         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5229         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5230         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5231         move_dest_operand, move_src_operand, prefetch_cc_operand,
5232         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5233         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5234         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5235         div_operand, int5_operand, movb_comparison_operator,
5236         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5237         arith_double_operand, ireg_operand, lhs_lshift_operand,
5238         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5239         integer_store_memory_operand): Likewise.
5240         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5241         (integer_store_memory_operand, read_only_operand,
5242         function_label_operand, borx_reg_operand,
5243         non_hard_reg_operand): Likewise.
5244         (eq_neq_comparison_operator): Delete unused operator.
5245         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5246         function_label_operand.
5247         (emit_move_sequence): Likewise.
5249 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5251         * config/i386/sse.md (sseunpackmode): New mode attribute.
5252         (ssepackmode): Ditto.
5253         (vec_pack_trunc_<mode>): Macroize expander from
5254         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5255         (vec_unpacks_lo_<mode>): Macroize expander from
5256         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5257         (vec_unpacks_hi_<mode>): Macroize expander from
5258         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5259         (vec_unpacku_lo_<mode>): Macroize expander from
5260         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5261         (vec_unpacku_hi_<mode>): Macroize expander from
5262         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5263         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5264         ix86_expand_sse4_unpack.
5265         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5267 2011-04-16  Jan Hubicka  <jh@suse.cz>
5269         * cgraphbuild.c: Include ipa-inline.h.
5270         (reset_inline_failed): Use initialize_inline_failed.
5271         * cgraph.c: Include ipa-inline.h.
5272         (cgraph_create_node_1): Do not initialize estimated_growth.
5273         (initialize_inline_failed): More to ipa-inline-analysis.c
5274         (dump_cgraph_node): Do not dump inline flags.
5275         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5276         and disregard_inline_limits flags.
5277         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5278         time, size, estimated_growth.
5279         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5280         Update.
5281         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5282         DECL_DISREGARD_INLINE_LIMITS.
5283         (cgraph_analyze_function): Do not initialize
5284         node->local.disregard_inline_limits.
5285         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5286         inlinable, versionable and disregard_inline_limits.
5287         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5288         cgraph_check_inline_limits, cgraph_default_inline_p,
5289         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5290         add_new_edges_to_heap): Update.
5291         (cgraph_decide_inlining_of_small_function): Update; set
5292         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5293         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5294         cgraph_decide_inlining_incrementally): Update.
5295         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5296         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5297         time, size and estimated_growth parameters.
5298         (estimate_edge_growth): Update.
5299         (initialize_inline_failed): Declare.
5300         * ipa-split.c: Include ipa-inline.h
5301         (execute_split_functions): Update.
5302         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5303         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5304         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5305         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5306         estimated_growth to INT_MIN.
5307         (inline_node_duplication_hook): Likewise.
5308         (dump_inline_summary): Dump new fields.
5309         (compute_inline_parameters): Update.
5310         (estimate_edge_time, estimate_time_after_inlining,
5311         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5312         inline_write_summary):
5313         (initialize_inline_failed): Move here from cgraph.c.
5314         * tree-sra.c: Include ipa-inline.h.
5315         (ipa_sra_preliminary_function_checks): Update.
5316         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5317         ipa-inline.h.
5319 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5321         * config/i386/sse.md (V16): New mode iterator.
5322         (VI1, VI8): Ditto.
5323         (AVXMODEQI, AVXMODEDI): Remove.
5324         (sse2, sse3): New mode attribute.
5325         (mov<mode>): Use V16 mode iterator.
5326         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5327         (push<mode>1): Use V16 mode iterator.
5328         (movmisalign<mode>): Ditto.
5329         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5330         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5331         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5332         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5333         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5334         avx_movdqu<avxmodesuffix>.
5335         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5336         *avx_movdqu<avxmodesuffix>.
5337         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5338         avx_lddqu<avxmodesuffix>.
5339         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5340         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5341         avx_movnt<AVXMODEDI:mode>.
5342         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5343         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5345 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5347         PR target/48629
5348         * haifa-sched.c (prune_ready_list, schedule_block): Use
5349         sched_pressure_p rather than flag_sched_pressure.
5351 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5353         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5354         cgraph_get_node instead of cgraph_get_create_node.
5356 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5358         * cfgexpand.c (expand_debug_expr): Use
5359         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5361 2011-04-15  Michael Matz  <matz@suse.de>
5363         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5364         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5365         * function.c (gimplify_parameters): Ditto.
5366         * gimplify.c (gimplify_vla_decl): Ditto.
5368         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5369         (gimple_call_set_alloca_for_var): New inline function.
5370         (gimple_call_alloca_for_var_p): Ditto.
5371         * gimple.c (gimple_build_call_from_tree): Remember
5372         CALL_ALLOCA_FOR_VAR_P state.
5373         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5375         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5376         calls if they were for VLA objects.
5378 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5380         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5381         of ADR_EXPRs.
5383 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5385         PR middle-end/48601
5386         * tree-emutls.c (lower_emutls_function_body): Call
5387         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5388         result is non-NULL.
5390 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5392         * c-decl.c (detect_field_duplicates): Call
5393         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5395 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5397         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5398         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5399         * ipa-pure-const.c (check_stmt): Call it.
5400         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5402 2011-04-15  Richard Guenther  <rguenther@suse.de>
5404         PR tree-optimization/48290
5405         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5406         Properly decide inhibiting propagation based on the valueized
5407         operand.  Do loop-closed SSA form preserving here ...
5408         (init_copy_prop): ... not here.
5410 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5412         PR target/48612
5413         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5414         (*ieee_smax<mode>3): Likewise.
5416 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5418         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5419         Replace match_operand with match_dup for the third operand in
5420         these expanders.
5422 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5424         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5425         to track processing of conditionals.  Update all callers.
5426         (try_combine, simplify_if_then_else): Update.
5428 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5430         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5431         -fsched-pressure.
5433 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5435         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5436         instead of match_operand for operand 3.
5438 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5440         * recog.h (insn_operand_data): Add an "allows_mem" field.
5441         * genoutput.c (output_operand_data): Initialize it.
5442         * optabs.c (maybe_legitimize_operand_same_code): New function.
5443         (maybe_legitimize_operand): Use it when matching the original
5444         op->value.
5446 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5448         * gimplify.c: Fix issues in comments throughout.
5449         (voidify_wrapper_expr): Fix long line.
5450         (build_stack_save_restore): Likewise.
5451         (gimplify_loop_expr): Likewise.
5452         (gimplify_compound_lval): Likewise.
5453         (gimplify_init_ctor_eval): Likewise.
5454         (gimplify_modify_expr_rhs): Likewise.
5455         (omp_notice_threadprivate_variable): Likewise.
5457 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5459         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5460         original one if this is not a builtin function.
5462 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5464         PR target/48605
5465         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5466         offset it as needed based on top 2 bits in operands[3], change
5467         MEM mode to SFmode and mask those 2 bits away from operands[3].
5469 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5471         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5472         change from objc_declare_protocols() to objc_declare_protocol().
5474 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5476         * config/i386/sse.md (sse4_1): New mode attribute.
5477         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5478         avx_blend<ssemodesuffix><avxmodesuffix> and
5479         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5480         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5481         avx_blendv<ssemodesuffix><avxmodesuffix> and
5482         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5483         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5484         avx_dp<ssemodesuffix><avxmodesuffix> and
5485         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5486         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5487         (sse4_1_packusdw): Merge with *avx_packusdw.
5488         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5489         (sse4_1_pblendw): Merge with *avx_pblendw.
5490         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5491         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5492         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5493         VF mode iterator.
5494         (sse4_1_round<ssescalarmodesuffix>): Merge with
5495         *avx_round<ssescalarmodesuffix>.
5496         (aesenc): Merge with *avx_aesenc.
5497         (aesenclast): Merge with *avx_aesenclast.
5498         (aesdec): Merge with *avx_aesdec.
5499         (aesdeclast): Merge with *avx_aesdeclast.
5500         (pclmulqdq): Merge with *pclmulqdq.
5501         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5502         New predicate.
5503         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5505 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5507         PR middle-end/48608
5508         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5509         (align_local_variable): This.  Update DECL_ALIGN.
5510         (add_stack_var): Updated.
5511         (expand_one_stack_var): Likewise.
5513 2011-04-14  Richard Guenther  <rguenther@suse.de>
5515         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5516         Remove.
5517         (dse_initialize_block_local_data, dse_leave_block,
5518         record_voperand_set, get_stmt_uid): Likewise.
5519         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5520         (dse_optimize_stmt): Remove voperand set handling code.
5521         Simplify and improve to handle any kind of killing stmt.
5522         (dse_record_phi): Remove.
5523         (dse_enter_block): Simplify.
5524         (tree_ssa_dse): Likewise.
5525         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5527 2011-04-14  Jan Hubicka  <jh@suse.cz>
5529         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5530         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5531         (cgraph_local_info): Remove inline_summary.
5532         * ipa-cp.c: Include ipa-inline.h.
5533         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5534         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5535         accesor.
5536         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5537         (input_overwrite_node): Do not set inline summary.
5538         (input_node): Do not stream inline summary.
5539         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5540         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5541         growth; we do not have inline parameters computed for that anyway.
5542         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5543         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5544         (inline_summary_t): New type and VECtor.
5545         (debug_inline_summary, dump_inline_summaries): Declare.
5546         (inline_summary): Use VOCtor.
5547         (estimate_edge_growth): Kill hack computing call stmt size directly.
5548         * lto-section-in.c (lto_section_name): Add inline section.
5549         * ipa-inline-analysis.c: Include lto-streamer.h
5550         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5551         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5552         (inline_summary_vec): Define.
5553         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5554         dump_inline_summaries): New functions.
5555         (estimate_function_body_sizes): Properly compute size/time of outgoing
5556         calls.
5557         (compute_inline_parameters): Alloc inline_summary; do not compute
5558         size/time of incomming calls.
5559         (estimate_edge_time): Avoid missing time summary hack.
5560         (inline_read_summary): Read inline summary info.
5561         (inline_write_summary): Write inline summary info.
5562         (inline_free_summary): Free all hooks and inline summary vector.
5563         * lto-streamer.h: Add LTO_section_inline_summary section.
5564         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5565         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5567 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5569         * tree-vectorizer.h (vect_strided_store_supported): Add a
5570         HOST_WIDE_INT argument.
5571         (vect_strided_load_supported): Likewise.
5572         (vect_permute_store_chain): Return void.
5573         (vect_transform_strided_load): Likewise.
5574         (vect_permute_load_chain): Delete.
5575         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5576         count argument.  Check that the count is a power of two.
5577         (vect_strided_load_supported): Likewise.
5578         (vect_permute_store_chain): Return void.  Update after above changes.
5579         Assert that the access is supported.
5580         (vect_permute_load_chain): Likewise.
5581         (vect_transform_strided_load): Return void.
5582         * tree-vect-stmts.c (vectorizable_store): Update calls after
5583         above interface changes.
5584         (vectorizable_load): Likewise.
5585         (vect_analyze_stmt): Don't check for strided powers of two here.
5587 2011-04-14  Richard Guenther  <rguenther@suse.de>
5589         PR tree-optimization/48590
5590         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5591         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5592         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5593         BUILT_IN_STACK_SAVE.
5594         * tree-ssa-dce.c (propagate_necessity): Handle
5595         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5597 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5599         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5600         objc_declare_class.
5602 2011-04-14  Richard Guenther  <rguenther@suse.de>
5604         * tree.h (get_object_alignment_1): Declare.
5605         * builtins.c (get_object_alignment_1): Split out worker from ...
5606         (get_object_alignment): ... here.
5607         * fold-const.c (get_pointer_modulus_and_residue): Use
5608         get_object_alignment_1.
5610 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5612         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5613         type parameter.
5614         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5615         parameter.  Generalise code to handle arrays as well as vectors.
5616         (vect_setup_realignment): Update accordingly.
5617         * tree-vect-stmts.c (vectorizable_store): Likewise.
5618         (vectorizable_load): Likewise.
5620 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5622         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5623         within the per-copy loop.
5625 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5627         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5628         in the dump file.
5630 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5632         * doc/options.texi (Negative): Explicitly mention that the
5633         Negative chain must be circular.
5635 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5637         * function.h (block_chainon): Declare.
5638         * function.c (block_chainon): Define.
5640 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5641             Eric Weddington  <eric.weddington@atmel.com>
5642             Georg-Johann Lay  <avr@gjlay.de>
5644         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5645         New Includes
5646         (avr_init_builtins, avr_expand_builtin,
5647         avr_expand_delay_cycles, avr_expand_unop_builtin,
5648         avr_expand_binop_builtin ): New functions.
5649         (avr_builtin_id): New enum
5650         (struct avr_builtin_description): New struct
5651         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5652         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5654         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5655         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5656         UNSPECV_DELAY_CYCLES): new enumeration values
5657         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5658         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5659         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5660         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5661         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5662         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5663         "fmulsu"): New insns
5665         * config/avr/avr-c.c: fix line endings
5666         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5667         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5668         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5669         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5670         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5672         * doc/extend.texi (AVR Built-in Functions): New node
5673         (Target Builtins): Add documentation of AVR
5674         built-in functions.
5676 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5678         PR target/44643
5679         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5680         alone. Error if non-const data has attribute progmem.
5682 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5684         * tree.h (struct tree_constructor): Include tree_typed instead of
5685         tree_common.
5686         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5687         TS_TYPED instead of TS_COMMON.
5689 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5691         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5692         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5693         (sse2_psadbw): Merge with *avx_psadbw.
5694         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5695         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5696         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5697         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5698         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5699         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5700         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5701         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5702         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5703         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5704         (ssse3_palignrti): Merge with *avx_palignrti.
5706 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5708         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5709         * tree-ssanames.c (fini_ssanames): VEC_free it.
5710         (make_ssa_name_fn): Update for VECness of free_ssanames.
5711         (release_ssa_name, release_dead_ssa_names): Likewise.
5712         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5713         tree_common.
5714         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5715         TS_TYPED instead of TS_COMMON.
5717 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5719         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5720         statistics_counter_event.
5721         * tree-ssa-copyrename.c (stats): Define.
5722         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5723         statistics_counter_event.
5724         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5725         (bswap_stats, widen_mul_stats): Define.
5726         (insert_reciprocals): Increment rdivs_inserted.
5727         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5728         rfuncs_inserted.  Add calls to statistics_counter_event.
5729         (execute_cse_sincos_1): Increment inserted.
5730         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5731         statistics_counter_event.
5732         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5733         of bswap_stats.  Add calls to statistics_counter_event.
5734         (convert_mult_to_widen): Increment widen_mults_inserted.
5735         (convert_plusminus_to_widen): Increment maccs_inserted.
5736         (convert_mult_to_fma): Increment fmas_inserted.
5737         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5738         calls to statistics_counter_event.
5740 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5742         PR rtl-optimization/48455
5743         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5744         `temp_costs->mem_cost'.
5746 2011-04-13  Jan Hubicka  <jh@suse.cz>
5748         * ipa-inline.h: New file.
5749         * ipa-inline-analysis.c: New file. Broken out of ...
5750         * ipa-inline.c: ... this file; update toplevel comment;
5751         include ipa-inline.h
5752         (inline_summary): Move to ipa-inline.h
5753         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5754         ipa-inline-analysis.c.
5755         (cgraph_estimate_time_after_inlining): Rename to
5756         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5757         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5758         to estimate_edge_growth.
5759         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5760         rename to estimate_size_after_inlining.
5761         (cgraph_mark_inline_edge): Update for new naming convention.
5762         (cgraph_check_inline_limits): Likewise.
5763         (cgraph_edge_badness): Likewise.
5764         (cgraph_decide_recursive_inlining): Likewise.
5765         (cgraph_decide_inlining_of_small_functions): Likewise.
5766         (cgraph_decide_inlining_incrementally): Likewise.
5767         (cgraph_estimate_growth): Rename to estimate_growth; move to
5768         ipa-inline-analysis.c.
5769         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5770         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5771         (compute_inline_parameters): Likewise.
5772         (compute_inline_parameters_for_current): Likewise.
5773         (pass_inline_parameters): Likewise.
5774         (inline_indirect_intraprocedural_analysis): Likewise.
5775         (analyze_function): Rename to inline_analyze_function; likewise.
5776         (add_new_function): Move to ipa-inline-analysis.c.
5777         (inline_generate_summary): Likewise.
5778         (inline_read_summary): Likewise.
5779         (inline_write_summary): Likewise.
5780         * Makefile.in (ipa-inline-analysis.c): New file.
5782 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5784         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5785         * configure: Regenerate.
5787 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5789         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5790         instead of tree_common.
5791         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5792         Likewise.
5793         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5794         TS_TYPED rather than TS_COMMON.
5795         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5797 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5799         PR target/45263
5800         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5801         r20 around calls of __tablejump_elpm__
5803 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5805         PR middle-end/48591
5806         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5807         NULL.
5808         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5810 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5812         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5813         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5814         (cfi_vec): New typedef.
5815         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5816         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5817         (cie_cfi_vec): New static variable.
5818         (cie_cfi_head): Delete.
5819         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5820         declaration changed. Use vector rather than list operations.
5821         (new_cfi): Don't initialize the dw_cfi_next field.
5822         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5823         rather than list operations.
5824         (lookup_cfa): Use vector rather than list operations.
5825         (output_cfis): New argument upto. Accept a cfi_vec rather than
5826         a dw_cfi_ref list head as argument. All callers changed.
5827         Iterate over the vector using upto as a maximum index.
5828         (output_all_cfis): New static function.
5829         (output_fde): Use vector rather than list operations. Use the
5830         new upto argument for output_cfis rather than manipulating a
5831         list.
5832         (dwarf2out_begin_prologue): Change initializations to match
5833         new struct members.
5834         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5835         from the vector length rather than searching for the end of a list.
5836         Use output_all_cfis.
5837         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5839 2011-04-13  Nick Clifton  <nickc@redhat.com>
5841         * config/rx/rx.md (movmemsi): Do not use this pattern when
5842         volatile pointers are involved.
5844 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5846         * config/i386/sse.md (pinsrbits): Remove.
5847         (sse2_packsswb): Merge with *avx_packsswb.
5848         (sse2_packssdw): Merge with *avx_packssdw.
5849         (sse2_packuswb): Merge with *avx_packuswb.
5850         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5851         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5852         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5853         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5854         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5855         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5856         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5857         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5858         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5859         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5860         (sse2_loadld): Merge with *avx_loadld.
5861         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5862         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5863         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5864         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5865         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5867 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5869         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5870         calling TREE_CHAIN.
5871         * print-tree.c (print_node): Likewise.
5872         * tree-inline.c (copy_tree_r): Likewise.
5873         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5874         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5875         instead of TS_COMMON.
5876         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5877         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5878         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5879         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5880         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5881         ...and these...
5882         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5883         * tree.h: ...here.
5884         (TREE_CHAIN): Check for a TS_COMMON structure.
5885         (TREE_TYPE): Check for a TS_TYPED structure.
5887 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5889         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5890         cgraph_get_create_node instead of cgraph_node.
5892 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5894         * c-parser.c (c_parser_initelt): Updated call to
5895         objc_build_message_expr.
5896         (c_parser_postfix_expression): Likewise.
5898 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5900         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5901         MASK_MS_BITFIELD_LAYOUT bit.
5903 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5905         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5906         assert it is always true.
5907         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5908         moves.
5910 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5912         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5913         compiling Objective-C to be more efficient.
5915 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5917         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5918         argv_copied.
5920 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5922         * recog.h, genoutput.c, optabs.c: Revert last patch.
5924 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5926         PR target/48090
5927         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5929 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5931         * recog.h (insn_operand_data): Add an "allows_mem" field.
5932         * genoutput.c (output_operand_data): Initialize it.
5933         * optabs.c (maybe_legitimize_operand_same_code): New function.
5934         (maybe_legitimize_operand): Use it when matching the original
5935         op->value.
5937 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5939         * genpreds.c (process_define_predicate): Move most processing
5940         to gensupport.c.  Continue to validate the expression.
5941         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5942         (process_define_predicate): Move processing to gensupport.c.
5943         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5944         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5945         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5946         argument.
5947         (valid_predicate_name_p): New function, split out from old
5948         genpreds.c:process_define_predicate.
5949         (process_define_predicate): New function, combining code from
5950         old genpreds.c and genrecog.c functions.
5951         (process_rtx): Call it for DEFINE_PREDICATE and
5952         DEFINE_SPECIAL_PREDICATE.
5954 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5956         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5957         size of a '%A' memory reference.
5958         (T_DREG, T_QREG): New neon_builtin_type_bits.
5959         (arm_init_neon_builtins): Assert that the load and store operands
5960         are neon_struct_operands.
5961         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5962         (NEON_ARG_MEMORY): New builtin_arg.
5963         (neon_dereference_pointer): New function.
5964         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5965         Handle NEON_ARG_MEMORY.
5966         (arm_expand_neon_builtin): Update after above interface changes.
5967         Use NEON_ARG_MEMORY for loads and stores.
5968         * config/arm/predicates.md (neon_struct_operand): New predicate.
5969         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5970         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5971         (V_four_elem): Tweak formatting.
5972         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5973         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5974         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5975         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5976         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5977         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5978         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5979         Use %A in the output template.
5980         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5981         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5982         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5983         the width of the memory access.  Remove post-increment.
5984         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5986 2011-04-12  Nick Clifton  <nickc@redhat.com>
5988         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5989         instruction for interrupt handlers if the target is the basic V850
5990         architecture.
5991         (expand_epilogue): Likewise.
5993 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5995         PR rtl-optimization/48549
5996         * combine.c (propagate_for_debug): Also stop after BB_END of
5997         this_basic_block.  Process LAST and just stop processing after it.
5998         (combine_instructions): If last_combined_insn has been deleted,
5999         set last_combined_insn to its PREV_INSN.
6001 2011-04-12  Richard Guenther  <rguenther@suse.de>
6003         PR tree-optimization/46076
6004         * gimple.h (struct gimple_statement_call): Add fntype field.
6005         (gimple_call_fntype): Adjust.
6006         (gimple_call_set_fntype): New function.
6007         * gimple.c (gimple_build_call_1): Set the call function type.
6008         * gimplify.c (gimplify_call_expr): Preserve the function
6009         type the frontend used for the call.
6010         (gimplify_modify_expr): Likewise.
6011         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6012         function type.
6013         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6014         function type.
6015         * tree-ssa.c (useless_type_conversion_p): Function pointer
6016         conversions are useless.
6018 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6020         * cgraph.h (cgraph_node): Remove function declaration.
6021         (cgraph_create_node): Declare.
6022         (cgraph_get_create_node): Likewise.
6023         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6024         Updated all callers.
6025         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6026         the decl does not already exist.  Call cgraph_get_create_node instead
6027         of cgraph_node.
6028         (cgraph_get_create_node): New function.
6029         (cgraph_same_body_alias): Update comment.
6030         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6031         assert it does not return NULL.
6032         (cgraph_update_edges_for_call_stmt): Likewise.
6033         (cgraph_clone_edge): Likewise.
6034         (cgraph_create_virtual_clone): Likewise.
6035         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6036         instead of cgraph_node.
6037         (cgraph_add_new_function): Call cgraph_create_node or
6038         cgraph_get_create_node instead of cgraph_node.
6039         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6040         instead of cgraph_node.
6041         (record_eh_tables): Likewise.
6042         (mark_address): Likewise.
6043         (mark_load): Likewise.
6044         (build_cgraph_edges): Call cgraph_get_create_node instead
6045         of cgraph_node.
6046         (rebuild_cgraph_edges): Likewise.
6047         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6048         instead of cgraph_node.
6049         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6050         cgraph_node.
6051         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6052         cgraph_create_node instead of cgraph_node.
6053         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6054         of cgraph_node.
6055         * lto-cgraph.c (input_node): Likewise.
6056         * lto-streamer-in.c (input_function): Likewise.
6057         * varasm.c (mark_decl_referenced): Likewise.
6058         (assemble_alias): Likewise.
6060 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6062         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6063         instead of cgraph_node and assert it does not return NULL.
6064         * lto-streamer-in.c (lto_read_body): Likewise.
6065         * omp-low.c (new_omp_context): Likewise.
6066         (create_task_copyfn): Likewise.
6067         * tree-emutls.c (lower_emutls_function_body): Likewise.
6068         * matrix-reorg.c (transform_allocation_sites): Likewise.
6070 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6072         PR c/48552
6073         * c-typeck.c (build_asm_expr): Error out on attempts to use
6074         void type outputs or inputs for constraints that allow reg or
6075         don't allow memory.
6077 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6078             Richard Earnshaw  <rearnsha@arm.com>
6080         PR target/48250
6081         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6082         to use sign-magnitude offsets. Reject unsupported unaligned
6083         cases. Add detailed description in comments.
6084         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6085         condition from TARGET_32BIT to TARGET_ARM.
6087 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6089         * tree.h (struct typed_tree): New.
6090         (struct tree_common): Include it instead of tree_base.
6091         (TREE_TYPE): Update for new location of type field.
6092         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6093         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6094         (union tree_node): Add typed field.
6095         * treestruct.def (TS_TYPED): New.
6096         * lto-streamer.c (check_handled_ts_structures): Handle it.
6097         * tree.c (MARK_TS_TYPED): New macro.
6098         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6100 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6102         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6103         (force_nonfallthru): Do not alter the loop nest if no basic block
6104         was created.
6106 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6108         * config/i386/sse.md (VI): New mode iterator.
6109         (SSEMODEI): Remove.
6110         (AVX256MODEI): Ditto.
6111         (AVXMODEF4P): Ditto.
6112         (avxvecpsmode): Ditto.
6113         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6114         (sse2_andnot<mode>3): New expander.
6115         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6116         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6117         (<any_logic:code><mode>3): Use VI mode iterator.
6118         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6119         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6120         (*andnottf3): Handle AVX three-operand constraints.
6121         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6123 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6124             Robert Millan  <rmh@gnu.org>
6126         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6127         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6128         GNU_USER_DYNAMIC_LINKER64): Define.
6129         (REG_NAME): Don't undefine.
6130         (MD_UNWIND_SUPPORT): Undefine.
6131         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6132         (REG_NAME): Don't undefine.
6133         (MD_UNWIND_SUPPORT): Undefine.
6134         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6136 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6138         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6139         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6141 2011-04-11  Xinliang David Li  <davidxl@google.com>
6143         * value-profile.c (check_ic_target): New function.
6144         (gimple_ic_transform): Sanity check indirect call target.
6145         * gimple-low.c (gimple_check_call_args): Interface change.
6146         (gimple_check_call_matching_types): New function.
6147         * tree-inline.c (tree_can_inline_p): Call new function.
6149 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6151         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6152         tree-pretty-print.h & realmpfr.h.
6154 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6156         PR middle-end/48464
6157         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6158         (setup_allocno_and_important_classes): Ditto.
6160 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6162         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6163         GNU_USER_DYNAMIC_LINKER.
6164         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6165         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6166         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6167         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6168         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6169         GNU_USER_TARGET_OS_CPP_BUILTINS.
6170         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6171         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6172         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6173         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6174         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6175         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6176         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6177         GNU_USER_TARGET_OS_CPP_BUILTINS.
6178         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6179         GNU_USER_DYNAMIC_LINKER.
6180         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6181         GNU_USER_TARGET_OS_CPP_BUILTINS.
6182         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6183         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6184         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6185         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6186         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6187         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6188         GNU_USER_DYNAMIC_LINKER64): Remove.
6189         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6190         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6191         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6192         GNU_USER_DYNAMIC_LINKER.
6193         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6194         GNU_USER_TARGET_OS_CPP_BUILTINS.
6195         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6196         GNU_USER_TARGET_OS_CPP_BUILTINS.
6197         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6198         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6199         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6200         GNU_USER_TARGET_OS_CPP_BUILTINS.
6201         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6202         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6203         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6204         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6205         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6206         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6207         GNU_USER_DYNAMIC_LINKER.
6208         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6209         GNU_USER_TARGET_OS_CPP_BUILTINS.
6210         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6211         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6212         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6213         GNU_USER_DYNAMIC_LINKER.
6214         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6215         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6216         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6217         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6218         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6219         GNU_USER_DYNAMIC_LINKER.
6220         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6221         GNU_USER_DYNAMIC_LINKERN32.
6222         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6223         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6224         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6225         GNU_USER_DYNAMIC_LINKER32.
6226         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6227         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6228         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6229         GNU_USER_DYNAMIC_LINKER.
6230         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6231         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6232         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6233         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6234         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6235         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6236         GNU_USER_DYNAMIC_LINKER32.
6237         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6238         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6239         GNU_USER_DYNAMIC_LINKER.
6240         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6241         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6242         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6243         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6244         GNU_USER_DYNAMIC_LINKER64.
6245         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6246         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6247         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6248         GNU_USER_DYNAMIC_LINKER.
6249         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6250         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6251         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6252         GNU_USER_DYNAMIC_LINKER.
6253         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6254         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6255         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6256         GNU_USER_DYNAMIC_LINKER32.
6257         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6258         GNU_USER_DYNAMIC_LINKER64.
6259         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6260         GNU_USER_DYNAMIC_LINKER64.
6261         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6262         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6263         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6264         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6265         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6267 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6269         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6270         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6271         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6272         GNU_USER_DYNAMIC_LINKER.
6273         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6274         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6275         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6276         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6277         GNU_USER_DYNAMIC_LINKER64.
6278         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6279         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6280         GNU_USER_LINK_EMULATION.
6281         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6282         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6283         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6284         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6285         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6286         CPP_SPEC, CC1_SPEC): Remove.
6287         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6288         (GNU_USER_DYNAMIC_LINKER): Define.
6289         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6290         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6291         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6292         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6293         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6294         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6295         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6296         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6297         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6298         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6299         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6300         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6301         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6302         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6303         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6304         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6305         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6306         GNU_USER_DYNAMIC_LINKER.
6307         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6308         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6309         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6310         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6311         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6312         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6313         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6314         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6315         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6316         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6318 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6320         PR target/9601
6321         PR target/11772
6322         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6323         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6324         comment.
6325         (ix86_is_msabi_thiscall): Removed.
6326         (ix86_is_type_thiscall): Likewise.
6327         (ix86_get_callcvt): New function.
6328         (ix86_comp_type_attributes): Simplify check.
6329         (ix86_function_regparm): Use ix86_get_callcvt for calling
6330         convention attribute checks.
6331         (ix86_return_pops_args): Likewise.
6332         (ix86_static_chain): Likewise.
6333         (x86_this_parameter): Likewise.
6334         (x86_output_mi_thunk): Likewise.
6335         (ix86_function_type_abi): Optimize check for types without attributes.
6336         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6337         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6338         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6339         by flag-values.
6340         (IX86_BASE_CALLCVT): Helper macro.
6341         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6342         Use ix86_get_callcvt for calling convention attribute checks and avoid
6343         symbol-decoration for stdcall in TARGET_RTD case.
6344         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6345         Likewise.
6346         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6347         for declaration.
6349 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6351         * config/i386/sse.md (VI_128): New mode iterator.
6352         (VI12_128): Rename from SSEMODE12.
6353         (VI14_128): Rename from SSEMODE14.
6354         (VI124_128): New mode iterator.
6355         (VI24_128): Rename from SSEMODE248.
6356         (VI248_128): Rename from SSEMODE248.
6357         (SSEMODE124C8): Remove.
6358         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6359         (*sse2_<plusminus_insn><mode>3): Merge with
6360         *avx_<plusminus_insn><mode>3.
6361         (*mulv8hi3): Merge with *avx_mulv8hi3.
6362         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6363         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6364         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6365         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6366         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6367         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6368         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6369         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6370         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6371         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6372         (*<smaxmin:code>v8hi3): Ditto.
6373         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6374         (*<smaxmin:code>v16qi3): Ditto.
6375         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6376         (*sse2_eq<mode>3): Ditto.
6377         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6378         (*sse2_gt<mode>3): Ditto.
6379         (vcondv2di): Split out of vcond<mode>.
6380         (vconduv2di): Split out of vcondu<mode>.
6382 2011-04-11  Richard Guenther  <rguenther@suse.de>
6384         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6385         before calling tree_low_cst.
6387 2011-04-11  Richard Guenther  <rguenther@suse.de>
6389         * stor-layout.c (layout_type): Compute all array index size operations
6390         in the original type.
6391         (initialize_sizetypes): Add comment.
6392         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6394 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6396         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6398 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6400         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6401         of cgraph_node, handle NULL return value.
6402         (cgraph_global_info): Likewise.
6403         (cgraph_rtl_info): Likewise.
6404         * tree-inline.c (estimate_num_insns): Likewise.
6405         * gimplify.c (unshare_body): Likewise.
6406         (unvisit_body): Likewise.
6407         (gimplify_body): Likewise.
6408         * predict.c (optimize_function_for_size_p): Likewise.
6409         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6410         (call_may_clobber_ref_p_1): Likewise.
6411         * varasm.c (function_section_1): Likewise.
6412         (assemble_start_function): Likewise.
6414 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6416         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6417         of cgraph_node.
6418         * final.c (rest_of_clean_state): Likewise.
6419         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6420         * passes.c (pass_init_dump_file): Likewise.
6421         (execute_all_ipa_transforms): Likewise.
6422         (function_called_by_processed_nodes_p): Likewise.
6423         * predict.c (maybe_hot_frequency_p): Likewise.
6424         (probably_never_executed_bb_p): Likewise.
6425         (compute_function_frequency): Likewise.
6426         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6427         (unnest_nesting_tree_1): Likewise.
6428         (lower_nested_functions): Likewise.
6429         * tree-optimize.c (execute_fixup_cfg): Likewise.
6430         (tree_rest_of_compilation): Likewise.
6431         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6432         * tree-sra.c (ipa_early_sra): Likewise.
6433         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6434         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6435         * ipa.c (record_cdtor_fn): Likewise.
6436         * ipa-inline.c (cgraph_early_inlining): Likewise.
6437         (compute_inline_parameters_for_current): Likewise.
6438         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6439         * ipa-pure-const.c (local_pure_const): Likewise.
6440         * ipa-split.c (split_function): Likewise.
6441         (execute_split_functions): Likewise.
6442         * cgraphbuild.c (build_cgraph_edges): Likewise.
6443         (rebuild_cgraph_edges): Likewise.
6444         (cgraph_rebuild_references): Likewise.
6445         (remove_cgraph_callee_edges): Likewise.
6446         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6447         (verify_cgraph_node): Likewise.
6448         (cgraph_analyze_functions): Likewise.
6449         (cgraph_preserve_function_body_p): Likewise.
6450         (save_inline_function_body): Likewise.
6451         (save_inline_function_body): Likewise.
6452         * tree-inline.c (copy_bb): Likewise.
6453         (optimize_inline_calls): Likewise.
6455 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6457         PR tree-optimization/48195
6458         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6459         ipa_check_create_edge_args.
6460         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6461         ipa_check_create_edge_args.
6462         * ipa-inline.c (inline_generate_summary): Do not call
6463         ipa_check_create_node_params and ipa_check_create_edge_args.
6464         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6465         ipa_check_create_edge_args.
6467 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6469         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6470         instead of loop.
6471         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6472         * function.c (record_hard_reg_sets): Likewise.
6473         * ira.c (compute_regs_asm_clobbered): Likewise.
6474         * sched-deps.c (sched_analyze_1): Likewise.
6475         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6477 2011-04-09  Xinliang David Li  <davidxl@google.com>
6479         PR tree-optimization/PR48484
6480         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6481         has_valid_pred lazily
6483 2011-04-09  Duncan Sands  <baldrick@free.fr>
6485         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6487 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6489         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6490         cost of I0 to zero at the end, if any.
6492 2011-04-08  Xinliang David Li  <davidxl@google.com>
6494         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6495         to insane profile data.
6497 2011-04-08  Xinliang David Li  <davidxl@google.com>
6499         * ipa-cp.c (ipcp_update_profiling): Correct
6500          negative scale factor due to insane profile data.
6502 2011-04-08  Xinliang David Li  <davidxl@google.com>
6504         * final.c (dump_basic_block_info): New function.
6505         (final): Dump basic block.
6506         (final_scan_insn): Remove old dump.
6508 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6510         PR target/47829
6511         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6512         crtbegin/crtend.
6514 2011-04-08  Michael Matz  <matz@suse.de>
6516         PR middle-end/48389
6517         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6518         functions.
6519         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6520         * rtl.h (rebuild_jump_labels_chain): Declare.
6521         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6522         insns inserted on edges.
6524 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6526         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6527         * config/arm/arm-arches.def: New.
6528         * config/arm/arm-opts.h: New.
6529         * config/arm/genopt.sh: New.
6530         * config/arm/arm-tables.opt: New (generated).
6531         * config/arm/arm.c (arm_handle_option, arm_target_help,
6532         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6533         (all_architectures): Get most table contents from arm-arches.def.
6534         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6535         arm_selected_tune here.
6536         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6537         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6538         (march=, mcpu=, mtune=): Use Enum and Var.
6539         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6540         (arm.o): Update dependencies.
6542 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6544         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6545         of header_file.
6546         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6547         (write_typed_alloc_defns): Likewise.
6548         (main): Calls write_typed_alloc_defns with output_header.
6550 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6552         PR inline-asm/48435
6553         * ira-color.c (setup_profitable_hard_regs): Add comments.
6554         Don't take prohibited hard regs into account.
6555         (setup_conflict_profitable_regs): Rename to
6556         get_conflict_profitable_regs.
6557         (check_hard_reg_p): Check prohibited hard regs.
6559 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6561         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6562         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6563         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6565 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6567         PR target/48366
6568         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6569         move from floating point to shift amount register.
6570         (emit_move_sequence): Remove secondary reload support for floating
6571         point to shift amount amount register copies.
6572         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6573         amount register copies.
6574         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6575         register, return false if mode isn't a scalar integer mode.
6576         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6578 2011-04-08  Richard Guenther  <rguenther@suse.de>
6580         * gimple.c (gimple_call_flags): Remove kludge.
6582 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6584         * sel-sched.c (sel_region_init): Move call to
6585         sel_setup_region_sched_flags after setup_current_loop_nest.
6587 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6589         PR rtl-optimization/48272
6590         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6591         init_insn_reg_pressure_info.  Adjust a caller.
6592         * sched-int.h (init_insn_reg_pressure_info): Declare.
6593         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6594         when sched-pressure is enabled.
6596 2011-04-08  Richard Guenther  <rguenther@suse.de>
6598         * gimple.c (gimple_set_modified): Do not queue calls to
6599         MODIFIED_NORETURN_CALLS here ...
6600         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6602 2011-04-08  Richard Guenther  <rguenther@suse.de>
6604         PR lto/48467
6605         * toplev.c (lang_dependent_init): Do not open asm_out_file
6606         in WPA mode, nor perform debug machinery initialization.
6607         (finalize): Do not unlink asm_out_file in WPA mode.
6609 2011-04-08  Richard Guenther  <rguenther@suse.de>
6611         * gimple.h (gimple_call_fntype): New function.
6612         (gimple_call_return_type): Use it.
6613         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6614         * gimple-low.c (gimple_check_call_args): Likewise.
6615         * gimple.c (gimple_call_flags): Likewise.
6616         (gimple_call_arg_flags): Likewise.
6617         (gimple_call_return_flags): Likewise.
6618         * tree-cfg.c (verify_gimple_call): Likewise.
6619         (do_warn_unused_result): Likewise.
6620         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6621         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6623 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6625         PR rtl-optimization/48235
6626         * sel-sched.c (code_motion_process_successors): Recompute the last
6627         insn in basic block if control flow changed.
6628         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6629         Update condition for ilist_remove.
6631 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6633         PR rtl-optimization/48302
6634         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6635         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6636         it to record added preheader blocks.
6637         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6638         on to sel_add_loop_preheaders.
6639         (sel_region_init): Move call to setup_current_loop_nest after
6640         sel_init_bbs.
6642 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6644         PR target/48273
6645         * cfgloop.h (loop_has_exit_edges): New helper.
6646         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6647         non-clonable.
6648         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6649         that have no exit edges.
6651 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6653         PR rtl-optimization/48442
6654         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6655         all callers.  Adjust assert.
6657 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6659         PR tree-optimization/48377
6660         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6661         is_packed to true even for types with smaller TYPE_ALIGN than
6662         TYPE_SIZE.
6664 2011-04-08  Richard Guenther  <rguenther@suse.de>
6666         PR bootstrap/48513
6667         * doc/tm.texi: Re-generate.
6669 2011-04-08  Wei Guozhi  <carrot@google.com>
6671         PR target/47855
6672         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6673         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6674         * config/arm/arm.md (*push_multi): Change the length computation to
6675         call a C function.
6677 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6679         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6680         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6681         * doc/tm.texi: Regenerate.
6682         * system.h (ASM_OUTPUT_BSS): Poison.
6683         * varasm.c (asm_output_bss): Remove function.
6684         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6686         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6687         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6688         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6689         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6690         Likewise.
6691         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6692         Likewise.
6693         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6694         Likewise.
6695         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6697 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6699         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6700         EnumValue lines.
6702 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6704         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6705         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6706         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6707         OPT_mcpu32.
6708         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6709         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6710         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6711         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6712         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6713         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6714         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6715         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6716         options.  Don't map other m68k options manually.  Don't handle
6717         old-style options as canonical.
6718         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6719         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6721 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6723         * basic-block.h (force_nonfallthru): Move to...
6724         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6725         (force_nonfallthru): ...here.
6726         * cfghooks.c (force_nonfallthru): New function.
6727         * cfgrtl.c (force_nonfallthru): Rename into...
6728         (rtl_force_nonfallthru): ...this.
6729         (commit_one_edge_insertion): Do not set AUX field.
6730         (commit_edge_insertions): Do not discover new basic blocks.
6731         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6732         (cfg_layout_rtl_cfg_hooks): Likewise.
6733         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6734         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6735         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6737 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6739         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6740         Remove macros.
6742 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6744         * config/i386/sse.md: Update copyright year.
6745         (avxcvtvecmode): Remove.
6746         (sse_movhlps): Merge with *avx_movhlps.
6747         (sse_movlhps): Merge with *avx_movlhps.
6748         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6749         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6750         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6751         (sse_loadhps): Merge with *avx_loadhps.
6752         (sse_storelps): Merge with *avx_storelps.
6753         (sse_loadlps): Merge with *avx_loadlps.
6754         (sse_movss): Merge with *avx_movss.
6755         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6756         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6757         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6758         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6759         (vec_set<mode>_0): Ditto.
6760         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6761         (sse4_1_insertps): Merge with *avx_insertps.
6762         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6763         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6764         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6765         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6766         (sse2_storehpd): Merge with *avx_storehpd.
6767         (sse2_loadhpd): Merge with *avx_loadhpd.
6768         (sse2_loadlpd): Merge with *avx_loadlpd.
6769         (sse2_movsd): Merge with *avx_movsd.
6770         (*vec_concatv2df): Merge with *vec_concatv2df.
6772 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6774         PR debug/48343
6775         * combine.c (combine_instructions): Add last_combined_insn,
6776         update it if insn is after it, pass it to all try_combine calls.
6777         (try_combine): Add last_combined_insn parameter, pass it instead of
6778         i3 to propagate_for_debug.
6780 2011-04-07  Nick Clifton  <nickc@redhat.com>
6782         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6783         to handle MDR <-> data register transfers.
6784         (movhi_internal): Likewise.
6786 2011-04-07  Alan Modra  <amodra@gmail.com>
6788         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6789         previous stack info.
6791 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6793         PR target/43920
6794         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6795         flow_find_cross_jump.  Swap variables to implement backward replacement.
6796         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6798 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6800         PR target/43920
6801         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6802         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6803         and bb2.
6804         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6805         src1 or src2.  Redirect edges to the last basic block.  Update
6806         frequency and count on multiple basic blocks in case of fallthru.
6808 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6810         PR target/43920
6811         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6812         function.
6813         (old_insns_match_p): Change return type.  Replace return false/true
6814         with return dir_none/dir_both.  Use can_replace_by.
6815         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6816         direction from dir_p.  Register replacement direction in dir, last_dir
6817         and afterlast_dir.  Handle new return type of old_insns_match_p using
6818         merge_dir.  Return replacement direction in dir_p.
6819         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6820         return type of old_insns_match_p.
6821         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6822         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6823         flow_find_cross_jump.
6824         * basic-block.h (enum replace_direction): New type.
6825         (flow_find_cross_jump): Add parameter to declaration.
6827 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6829         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6830         (AVXMODEDCVTPS2DQ): Ditto.
6831         (VEC_FLOAT_MODE): Ditto.
6832         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6833         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6834         (<any_logic:code><mode>3): Use VF mode iterator.
6835         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6836         Use VF mode iterator.
6837         (copysign<mode>3): Use VF mode iterator.
6838         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6839         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6840         (*<any_logic:code><MODEF:mode>3): Merge with
6841         *avx_<any_logic:code><MODEF:mode>3.
6842         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6843         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6844         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6845         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6846         (sse2_cvtdq2ps): Use %v modifier.
6847         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6848         (avx_cvtps2dq<avxmodesuffix>): Remove.
6849         (sse2_cvtps2dq): Use %v modifier.
6850         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6851         (avx_cvttps2dq<avxmodesuffix>): Remove.
6852         (sse2_cvttps2dq): Use %v modifier.
6853         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6854         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6855         (sse2_cvtsd2siq): Fix insn template.
6856         (sse2_cvtsd2siq_2): Ditto.
6857         (sse2_cvttsd2siq): Ditto.
6858         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6859         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6861 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6863         * gcov-io.c: Use GCC Runtime Library Exception.
6865 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6867         PR debug/48466
6868         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6869         as base_reg whatever register reg has been eliminated to, instead
6870         of hardcoding STACK_POINTER_REGNUM.
6872 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6874         * doc/tm.texi.in: Document C target hooks as separate from general
6875         target hooks.
6876         * doc/tm.texi: Regenerate.
6877         * genhooks.c (struct hook_desc): Add docname field.
6878         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6879         docname field.
6880         (hook_array): Include c-target.def.
6881         (emit_documentation): Use docname field in output.
6882         (emit_init_macros): Take docname argument.  Only emit definitions
6883         for hooks matching docname.
6884         (main): Expect additional arguments in all cases.  Pass argument
6885         to emit_init_macros.
6886         * target.def: Move initial macro definitions and comments to
6887         target-hooks-macros.h.
6888         (gcc_targetcm): Move to c-family/c-target.def.
6889         * target.h (targetcm): Move declaration to c-family/c-target.h.
6890         * targhooks.c (default_handle_c_option): Move to
6891         c-family/c-opts.c.
6892         * targhooks.h (default_handle_c_option): Move declaration to
6893         c-family/c-common.h.
6894         * target-hooks-macros.h: New file.
6895         * config.gcc (target_has_targetcm): Define and use to add to
6896         c_target_objs and cxx_target_objs.
6897         * config/default-c.c: New file.
6898         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6899         of target.h and target-def.h.
6900         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6901         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6902         darwin_check_cfstring_format_arg): Make static.
6903         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6904         TARGET_STRING_OBJECT_REF_TYPE_P,
6905         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6906         * config/darwin-protos.h (darwin_objc_construct_string,
6907         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6908         declare.
6909         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6910         TARGET_STRING_OBJECT_REF_TYPE_P,
6911         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6912         * config/t-darwin (darwin-c.o): Update dependencies.
6913         * system.h (TARGET_HAS_TARGETCM): Poison.
6914         * Makefile.in (TARGET_H): Update.
6915         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6916         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6917         (default-c.o): New target.
6918         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6919         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6920         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6921         c-target.def.
6922         (build/genhooks.o): Update dependencies.
6924 2011-04-06  Richard Guenther  <rguenther@suse.de>
6926         * ipa-inline.c (enum inlining_mode): Remove.
6927         (cgraph_flatten): Use some other token.
6928         (cgraph_edge_early_inlinable_p): New function, split out from ...
6929         (cgraph_perform_always_inlining): New function, split out from ...
6930         (cgraph_decide_inlining_incrementally): ... here.
6931         (cgraph_mark_inline_edge): Adjust.
6932         (cgraph_early_inlining): Re-structure.
6933         (pass_early_inline): Require SSA form.
6935 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6936             Julian Brown  <julian@codesourcery.com>
6937             Mark Shinwell  <shinwell@codesourcery.com>
6939         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6940         LO_REGS only for Thumb-1.
6941         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6942         be used in short instructions when optimising for size on Thumb-2.
6944 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6946         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6947         associated with user returns to be preserved.
6949 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6951         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6952         symbol_queue_size, DBXOUT_DECR_NESTING,
6953         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6954         if XCOFF_DEBUGGING_INFO.
6956 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6958         * config/i386/i386.md (attribute isa): New.
6959         (attribute enabled): New.
6960         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6961         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6962         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6963         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6964         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6965         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6966         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6967         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6969         * config/i386/sse.md (VF): New mode iterator.
6970         (VF1): Ditto.
6971         (VF2): Ditto.
6972         (VF_128): Ditto.
6973         (SSEMODEF4): Remove.
6974         (attribute sse): Handle V8SF and V4DF modes.
6975         (<absneg:code><mode>2): Use VF mode iterator.
6976         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6977         mode iterator.
6978         (<plusminus_insn><mode>3): Use VF mode iterator.
6979         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6980         Use VF mode iterator.
6981         (<sse>_vm<plusminus_insn><mode>3): Merge with
6982         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6983         (mul<mode>3): Use VF mode iterator.
6984         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6985         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6986         mode iterator.
6987         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6988         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6989         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6990         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6991         mode iterator.
6992         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6993         Use VF1 mode iterator.
6994         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6995         (sqrt<VF2:mode>2): New expander.
6996         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6997         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6998         and sqrtv2df2.  Use VF mode iterator.
6999         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
7000         mode iterator.
7001         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7002         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7003         Use VF1 mode iterator.
7004         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7005         (<smaxmin:code><mode>3): Use VF mode iterator.
7006         (*<smaxmin:code><mode>3_finite): Merge with
7007         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
7008         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7009         (<sse>_vm<smaxmin:code><mode>2): Merge with
7010         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7011         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7012         mode iterator.
7013         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7014         mode iterator.
7015         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7016         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7017         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7018         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7019         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7020         VF mode iterator.
7021         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7022         Use VF_128 mode iterator.
7023         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7024         mode iterator.
7025         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7026         VF_128 mode iterator.
7027         (vcond<mode>): Use VF mode iterator.
7028         * config/i386/predicates.md (sse_comparison_operator): Merge with
7029         avx_comparison_float_operator.  Do not declare as special_predicate.
7030         * config/i386/i386.c (struct builtin_description): Update for renamed
7031         compare patterns.
7032         (ix86_expand_args_builtin): Ditto.
7033         (ix86_expand_sse_compare_mask): Ditto.
7035 2011-04-06  Richard Guenther  <rguenther@suse.de>
7037         * tree-inline.c (estimate_num_insns): For calls simply account
7038         for all passed arguments and a used return value.
7040 2011-04-06  Richard Guenther  <rguenther@suse.de>
7042         PR tree-optimization/47663
7043         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7044         call_stmt_time fields.
7045         (cgraph_edge_inlinable_p): Declare.
7046         (cgraph_edge_recursive_p): New inline function.
7047         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7048         (cgraph_clone_edge): Copy it.
7049         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7050         Account for call stmt time.
7051         (cgraph_estimate_time_after_inlining): Take edge argument.
7052         (cgraph_estimate_edge_growth): Account call stmt size.
7053         (cgraph_estimate_size_after_inlining): Take edge argument.
7054         (cgraph_mark_inline_edge): Adjust.
7055         (cgraph_check_inline_limits): Likewise.
7056         (cgraph_recursive_inlining_p): Remove.
7057         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7058         (cgraph_decide_recursive_inlining): Take edge argument and
7059         adjust.
7060         (cgraph_decide_inlining_of_small_functions): Do not avoid
7061         diags for recursive inlining here.
7062         (cgraph_flatten): Adjust.
7063         (cgraph_decide_inlining_incrementally): Likewise.
7064         (estimate_function_body_sizes): Remove call cost handling.
7065         (compute_inline_parameters): Initialize caller edge call costs.
7066         (cgraph_estimate_edge_growth): New function.
7067         (cgraph_estimate_growth): Use it.
7068         (cgraph_edge_badness): Likewise.
7069         (cgraph_check_inline_limits): Take an edge argument.
7070         (cgraph_decide_inlining_of_small_functions): Adjust.
7071         (cgraph_decide_inlining): Likewise.
7072         * tree-inline.c (estimate_num_insns): Only account for call
7073         return value if it is used.
7074         (expand_call_inline): Avoid diagnostics on recursive inline
7075         functions here.
7076         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7077         (input_edge): Input edge call costs.
7079 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7081         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7083 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7085         * doc/invoke.texi (Spec Files): Fix typo.
7087 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7089         * profile.c (branch_prob): Move declaration of local variable.  Remove
7090         obsolete ??? comment.  Expand the location explicitly instead of using
7091         the LOCATION_FILE and LOCATION_LINE macros.
7093 2011-04-06  Wei Guozhi  <carrot@google.com>
7095         PR target/47855
7096         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7097         (arm_cond_branch): Likewise.
7098         (arm_cond_branch_reversed): Likewise.
7099         (arm_jump): Likewise.
7100         (push_multi): Likewise.
7101         * config/arm/constraints.md (Py): New constraint.
7103 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7105         PR bootstrap/48471
7106         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7107         Move these...
7108         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7109         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7110         #ifdef DBX_DEBUGGING_INFO.
7112 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7114         PR bootstrap/48403
7115         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7116         if old and new states differ.
7118 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7120         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7121         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7122         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7123         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7124         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7125         mcfv4e): Use Alias.
7126         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7127         ColdFire options to -mcpu= options.
7129 2011-04-05  Jeff Law  <law@redhat.com>
7131         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7132         check if BB is a successor of LOOP->header and return
7133         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7135 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7137         * cprop.c (struct reg_use): Remove.
7138         (reg_use_table): Make an array of RTX.
7139         (find_used_regs, constprop_register, local_cprop_pass,
7140         bypass_block): Simplify users of reg_use_table.
7141         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7142         on one of the uses found by find_used_regs.
7144 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7146         PR bootstrap/48469
7147         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7148         declaration.
7150 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7152         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7153         as an rtx.
7154         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7156 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7158         PR middle-end/48441
7159         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7161 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7163         * combine.c: Include obstack.h.
7164         (struct insn_link): Define.
7165         (uid_log_links): Adjust type.
7166         (FOR_EACH_LOG_LINK): New macro.
7167         (insn_link_obstack): Declare.
7168         (alloc_insn_link): Define.
7169         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7170         type of link variables.
7171         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7172         (try_combine, record_promoted_values, distribute_notes): Likewise.
7173         (distribute_links): Likewise.  Tweak prototype.
7174         (clear_log_links): Delete.
7175         (adjust_for_new_dest): Call alloc_insn_link.
7176         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7178 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7180         * gcse.c (modify_mem_list): Convert to an array of VECs.
7181         (canon_modify_mem_list, compute_transp): Tweak formatting.
7182         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7183         (load_killed_in_block_p): Likewise.
7184         (record_last_mem_set_info): Likewise.
7185         (clear_modify_mem_tables): Likewise.
7187 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7189         PR middle-end/48461
7190         * function.c (emit_use_return_register_into_block): Only define if
7191         HAVE_return.
7193 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7195         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7197 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7199         * config/rx/rx-opts.h: New.
7200         * config/rx/rx.c (rx_cpu_type): Remove.
7201         (rx_handle_option): Don't assert that global structures are in
7202         use.  Access variables via opts pointer.  Defer most handling of
7203         OPT_mint_register_.  Use error_at.
7204         (rx_option_override): Handle deferred OPT_mint_register_ here.
7205         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7206         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7207         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7208         (rx_cpu_types): New Enum and EnumValue entries.
7209         (mint-register=): Use Defer and use Var accordingly.
7211 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7213         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7214         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7215         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7216         Move these...
7217         (debug_free_queue, debug_nesting, symbol_queue_index):
7218         ...and these...
7219         * dbxout.c: ...to here.  Make static.
7221 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7223         * gcse.c (modify_pair): Define.  Define a VEC of it.
7224         (canon_modify_mem_list): Convert to an array of VECs.
7225         (free_insn_expr_list_list): Delete.
7226         (clear_modify_mem_tables): Call VEC_free instead.
7227         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7228         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7229         (canon_list_insert, compute_transp): Likewise.
7231 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7233         PR target/43920
7234         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7235         for size.
7237 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7239         PR target/43920
7240         * function.c (emit_use_return_register_into_block): New function.
7241         (thread_prologue_and_epilogue_insns): Use
7242         emit_use_return_register_into_block.
7244 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7246         PR target/43920
7247         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7248         insn.
7250 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7252         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7254 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7256         * config/arm/arm.md (define_constants for unspec): Replace with
7257         define_c_enum.
7258         (define_constants for unspecv): Replace with define_c_enum.
7259         * config/arm/neon.md (define_constants for unspec): Replace with
7260         define_c_enum.
7262 2011-04-04  Richard Henderson  <rth@redhat.com>
7264         PR bootstrap/48400
7265         * dwarf2out.c (output_line_info): Always emit line info from
7266         at least one section.
7267         (dwarf2out_init): Create text_section_line_info here ...
7268         (set_cur_line_info_table): ... not here.
7270 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7272         PR target/48380
7273         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7274         not called.
7276         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7278 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7280         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7281         (expr_equiv_p): Remove.
7282         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7283         (hash_scan_set): Update call to insert_set_in_table.
7284         (dump_hash_table): Dump <dest, src> pair.
7285         (lookup_set): Simplify.  Lookup <dest, src> pair.
7286         (compute_transp): Remove, fold heavily simplified code into...
7287         (compute_local_properties): ...here.  Expect COMP and TRANSP
7288         unconditionally.
7289         (find_avail_set): Take set directly from struct expr.
7290         (find_bypass-set): Likewise.
7291         (bypass_block): Likewise.
7292         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7294         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7295         checks on form of COND from find_implicit_sets to here.
7296         (find_implicit_sets): Cleanup control flow. Split critical edges
7297         if it exposes implicit sets.  Allocate/resize implicit_sets as
7298         necessary.
7299         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7300         changed something.  Run df_analyze after find_implicit_sets if any
7301         edges were split.  Do not allocate implicit_sets here.
7303         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7304         (gcse_obstack): Renamed to cprop_obstack.
7305         (GNEW, GNEWVEC, GNEWVAR): Remove.
7306         (gmalloc): Remove.
7307         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7308         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7309         (gcse_alloc): Likewise, and rename to cprop_alloc.
7310         (alloc_gcse_men, free_gcse_mem): Remove.
7311         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7312         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7313         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7315         * cprop.c (oprs_not_set_p): Remove.
7316         (mark_set, mark_clobber): Remove.
7317         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7318         (reg_not_set_p): New function.
7319         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7320         (cprop_insn): Likewise.
7321         (cprop_jump): Use FOR_EACH_EDGE.
7323 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7325         PR bootstrap/48403
7326         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7327         (rank_for_schedule): Use scheduled_insns vector instead of
7328         last_scheduled_insn.
7329         (ok_for_early_queue_removal): Likewise.
7330         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7331         we have a dbg_cnt.
7332         (choose_ready): Likewise.
7333         (commit_schedule): Use VEC_iterate.
7334         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7335         a dbg_cnt, use it and ensure the first insn is in the ready list.
7336         (haifa_sched_init): Allocate scheduled_insns.
7337         (sched_extend_ready_list): Don't allocate it; reserve space.
7338         (haifa_sched_finish): Free it.
7340 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7342         * optc-gen.awk: Always remove type from Variable entry before
7343         recording in var_seen.
7345 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7347         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7348         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7349         call to tidy_fallthru_edges.
7351 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7353         * doc/options.texi (ToLower): Document.
7354         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7355         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7356         * opts.h (cl_option): Add cl_tolower field.
7357         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7358         arguments with lowercase strings.
7359         * config/rx/rx.opt (mcpu=): Add ToLower.
7360         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7361         argument.
7363 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7365         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7367 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7369         * config/vax/vax.c: Include reload.h.
7371 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7373         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7374         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7375         (sparc_preferred_reload_class): New function.
7377 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7379         PR debug/48401
7380         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7381         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7383 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7385         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7386         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7388 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7390         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7391         (ASM_OUTPUT_ALIGNED_BSS): Define.
7393 2011-04-03  Michael Matz  <matz@suse.de>
7395         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7396         and next_slot members.
7397         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7398         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7399         (lto_streamer_cache_append): Declare.
7400         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7401         unsigned index, remove offset parameter, ensure that we append
7402         or update existing entries.
7403         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7404         parameter, update next_slot for append.
7405         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7406         parameter.
7407         (lto_streamer_cache_insert_at): Likewise.
7408         (lto_streamer_cache_append): New function.
7409         (lto_streamer_cache_lookup): Use unsigned index.
7410         (lto_streamer_cache_get): Likewise.
7411         (lto_record_common_node): Don't test tree_node_can_be_shared.
7412         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7413         (lto_streamer_cache_delete): Don't free offsets member.
7414         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7415         (lto_output_string_with_length): Use lto_output_data_stream.
7416         (lto_output_tree_header): Remove ix parameter, don't write it.
7417         (lto_output_builtin_tree): Likewise.
7418         (lto_write_tree): Adjust callers to above, don't track and write
7419         offset, write unsigned index.
7420         (output_unreferenced_globals): Don't emit all global vars.
7421         (write_global_references): Use unsigned indices.
7422         (lto_output_decl_state_refs): Likewise.
7423         (write_symbol): Likewise.
7424         * lto-streamer-in.c (lto_input_chain): Move earlier.
7425         (input_function): Use unsigned index.
7426         (input_alias_pairs): Don't read and then ignore all global vars.
7427         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7428         don't pass it back, use lto_streamer_cache_append.
7429         (lto_register_var_decl_in_symtab): Use unsigned index.
7430         (lto_register_function_decl_in_symtab): Likewise.
7431         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7432         index.
7433         (lto_get_builtin_tree): Don't read index, use
7434         lto_streamer_cache_append.
7435         (lto_read_tree): Adjust call to lto_materialize_tree.
7437         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7438         don't use function calls in arguments to MIN.
7440         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7441         twice.
7443         * gimple.c (gimple_type_leader_entry): Mark deletable.
7445 2011-04-03  Alan Modra  <amodra@gmail.com>
7447         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7449 2011-04-03  Michael Matz  <matz@suse.de>
7451         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7452         an integer.
7453         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7455 2011-04-03  Michael Matz  <matz@suse.de>
7457         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7458         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7459         without function context.
7460         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7461         current_function_decl and cfun.
7463 2011-04-03  Michael Matz  <matz@suse.de>
7465         * tree.c (decl_init_priority_insert): Don't create entry for
7466         default priority.
7467         (decl_fini_priority_insert): Ditto.
7468         (fields_compatible_p, find_compatible_field): Remove.
7469         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7470         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7472 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7474         * combine.c (try_combine): Remove useless local variable.
7476 2011-04-03  Richard Guenther  <rguenther@suse.de>
7477             Ira Rosen  <ira.rosen@linaro.org>
7479         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7480         non-variable offsets and compare the remaining bases of the two
7481         accesses instead of looking for exact same data-ref.
7483 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7485         PR target/48416
7486         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7488         * i386.c (ix86_is_msabi_thiscall): New helper function.
7489         (ix86_is_type_thiscall): New helper function.
7490         (ix86_comp_type_attributes): Handle thiscall for method-functions
7491         special.
7492         (init_cumulative_args): Likewise.
7493         (find_drap_reg): Likewise.
7494         (ix86_static_chain): Likewise.
7495         (x86_this_parameter): Likewise.
7496         (x86_output_mi_thunk): Likewise.
7498 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7499             Nicolas Setton  <setton@adacore.com>
7500             Eric Botcazou  <ebotcazou@adacore.com>
7502         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7503         (add_gnat_descriptive_type_attribute): New function.
7504         (gen_array_type_die): Call it.
7505         (gen_enumeration_type_die): Likewise.
7506         (gen_struct_or_union_type_die): Likewise.
7507         (modified_type_die): Likewise.
7508         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7509         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7510         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7512 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7514         PR bootstrap/48148
7515         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7516         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7518         Revert:
7519         2011-03-17  Richard Guenther  <rguenther@suse.de>
7521         PR bootstrap/48148
7522         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7523         origin for decls in other ltrans units.
7524         (input_varpool_node): Likewise.
7526 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7528         PR middle-end/48335
7529         * expr.c (expand_assignment): Handle all possibilities
7530         if TO_RTX is CONCAT.
7531         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7532         (store_split_bit_field): If SUBREG_REG (op0) or
7533         op0 itself has smaller mode than word, return it
7534         for offset 0 and const0_rtx for out-of-bounds stores.
7535         If word is const0_rtx, skip it.
7537 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7539         * config/h8300/h8300.c (print_operand_address): Rename to...
7540         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7541         Call h8300_print_operand and h8300_print_operand_address instead of
7542         print_operand and print_operand_address. Declare.
7543         (print_operand): Renake to...
7544         (h8300_print_operand): ...this. Make static. Adjust comments.
7545         Call h8300_print_operand instead of print_operand. Declare.
7546         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7547         (h8300_register_move_cost): Likewise.
7548         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7549         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7550         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7551         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7552         * config/h8300/h8300-protos.h (print_operand): Delete.
7553         (print_operand_address): Delete.
7555 2011-04-01  Richard Henderson  <rth@redhat.com>
7557         PR 48400
7558         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7559         in strict mode before dwarf4.  Re-order tests to early out
7560         before switching sections.
7562 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7564         * config/h8300/constraints.md: New file.
7565         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7566         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7567         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7568         * config/h8300/predicates.md (bit_operand): Likewise.
7569         (incdec_operand): Use satisfies_constraint_M and
7570         satisfies_constraint_O.  Don't use C code block.
7571         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7572         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7573         (compute_mov_length): Use satisfies_constraint_G.
7574         (fix_bit_operand): Use satisfies_constraint_U.
7575         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7576         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7577         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7578         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7579         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7580         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7581         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7582         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7583         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7584         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7585         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7586         (EXTRA_MEMORY_CONSTRAINT): Delete.
7588 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7589             Michael Meissner  <meissner@linux.vnet.ibm.com>
7591         PR target/48262
7592         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7593         operands, as per the specifications.
7595         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7596         (vec_extract_evenv4sf): Ditto.
7597         (vec_extract_evenv8hi): Ditto.
7598         (vec_extract_evenv16qi): Ditto.
7599         (vec_extract_oddv4si): Ditto.
7601 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7603         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7604         high_pc attribute if the CU has no associated code. Only output
7605         DW_AT_entry_pc for CU if not generating strict dwarf and
7606         dwarf_version < 4.
7608 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7610         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7611         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7612         out of ...
7613         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7614         * final.c (final_start_function): Call the new function rather
7615         than using a NULL argument for dwarf2out_frame_debug.
7617         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7618         that contains the prologue.
7620         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7621         changed.  Print it in debugging output.
7623         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7625         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7626         Split most of the code into...
7627         (begin_move_insn): ... here.  New function.
7628         (ebb_sched_info): Add a pointer to it.
7629         * haifa-sched.c (scheduled_insns): New static variable.
7630         (sched_extend_ready_list): Allocate it.
7631         (schedule_block): Use it to record the order of scheduled insns.
7632         Perform RTL changes to move insns only after all scheduling
7633         decisions have been made.
7634         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7635         begin_move_insn field.
7636         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7637         * sched-int.h (struct haifa_sched_info): Remove second argument
7638         from begin_schedule_ready hook.  Add new member begin_move_insn.
7639         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7640         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7642         * haifa-sched.c (prune_ready_list): New function, broken out of
7643         schedule_block.
7644         (schedule_block): Use it.
7646 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7648         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7650 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7652         * config.gcc (*-*-mingw*): Allow as option the
7653         posix threading model.
7654         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7655         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7656         definition.
7657         (CPP_SPEC): Add pthread/no-pthread handling.
7658         (LIB_SPEC): Likewise.
7659         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7660         (LIB_SPEC): Likewise.
7661         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7662         flag to pass -pthread option for shared libgcc build.
7663         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7664         for shared libgcc build.
7665         * config/i386/t-mingw-pthread: New file.
7666         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7667         New define to enable use of library pthread by default.
7668         * config/i386/mingw.opt (pthread): New driver option.
7669         (no-pthread): New driver option.
7670         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7671         * config/i386/mingw-w64.opt: Likewise.
7673 2011-04-01  Gary Funck  <gary@intrepid.com>
7675         * c-decl.c (grokdeclarator): Fix formatting.
7677 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7679         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7680         instead of n_operands.
7681         (set_storage_via_setmem): Likewise.
7682         * optabs.c (maybe_gen_insn): Likewise.
7683         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7684         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7685         (mips_expand_builtin_direct): Likewise.
7686         * config/spu/spu.c (expand_builtin_args): Likewise.
7688 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7690         * recog.h (insn_data_d): Add n_generator_args.
7691         * genoutput.c (data): Likewise.
7692         (output_insn_data): Print it.
7693         (max_opno, num_dups): Delete.
7694         (scan_operands): Just fill in "d->operand[...]".
7695         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7697 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7699         * gensupport.h (pattern_stats): New structure.
7700         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7701         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7702         (max_operand_1, max_operand_vec): Delete.
7703         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7705 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7707         * emit-rtl.c (emit_pattern_after_setloc): New function.
7708         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7709         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7710         (emit_pattern_after): New function.
7711         (emit_insn_after, emit_jump_insn_after): Call it.
7712         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7713         (emit_pattern_before_setloc): New function.
7714         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7715         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7716         Likewise.
7717         (emit_pattern_before): New function.
7718         (emit_insn_before, emit_jump_insn_before): Call it.
7719         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7721 2011-03-31  Richard Henderson  <rth@redhat.com>
7723         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7724         (dw_separate_line_info_entry): Remove.
7725         (enum dw_line_info_opcode): New.
7726         (dw_line_info_entry): Use it.
7727         (dw_line_info_table, dw_line_info_table_p): New.
7728         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7729         (line_info_table, line_info_label_num): Remove.
7730         (line_info_table_in_use): Remove.
7731         (separate_line_info_table): Remove.
7732         (separate_line_info_table_allocated): Remove.
7733         (separate_line_info_table_in_use): Remove.
7734         (LINE_INFO_TABLE_INCREMENT): Remove.
7735         (line_info_label_num): New.
7736         (cur_line_info_table): New.
7737         (text_section_line_info, cold_text_section_line_info): New.
7738         (separate_line_info): New.
7739         (SEPARATE_LINE_CODE_LABEL): Remove.
7740         (print_dwarf_line_table): Remove.
7741         (debug_dwarf): Don't dump it.
7742         (output_one_line_info_table): New.
7743         (output_line_info): Use it.
7744         (new_line_info_table): New.
7745         (set_cur_line_info_table): New.
7746         (dwarf2out_switch_text_section): Use it.
7747         (dwarf2out_begin_function): Likewise.
7748         (push_dw_line_info_entry): New.
7749         (dwarf2out_source_line): Rewrite for new line info tables.
7750         (dwarf2out_init): Remove dead initailizations.
7752 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7754         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7755         various flags.
7756         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7757         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7758         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7759         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7760         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7761         * opt-functions.awk (flag_init, switch_bit_fields): New.
7762         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7763         generate CL_MISSING_OK or CL_SAVE.
7764         * optc-gen.awk: Update to generate bit-field output as well as
7765         flags field.
7766         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7767         bit-field instead of CL_REJECT_DRIVER flag.
7768         * opts-common.c (generate_canonical_option,
7769         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7770         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7771         instead of CL_REJECT_NEGATIVE flag.
7772         * toplev.c (print_switch_values): Use cl_report bit-field instead
7773         of CL_REPORT flag.
7775 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7777         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7778         a zero minimum index only if it is redundant.
7780 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7782         PR rtl-optimization/48381
7783         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7784         instead of ira_class_hard_reg_index for calculating conflicting
7785         hard registers.
7787 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7789         * cprop.c: Clean up hash table building.
7790         (reg_avail_info): Remove.
7791         (oprs_available_p): Remove.
7792         (record_last_reg_set_info): Remove.
7793         (record_last_set_info): Remove.
7794         (reg_available_p): New function.
7795         (gcse_constant_p): Do not treat unfolded conditions as constants.
7796         (make_set_regs_unavailable): New function.
7797         (hash_scan_set): Simplify with new reg_available_p.
7798         (compute_hash_table_work): Traverse insns stream only once.
7799         Do not compute reg_avail_info. Traverse insns in reverse order.
7800         Record implicit sets after recording explicit sets from the block.
7802 2011-03-31  Michael Matz  <matz@suse.de>
7804         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7806 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7808         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7809         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7810         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7811         (h8300_mode_dependent_address_p): New function.
7812         (h8300_get_index): Make static.
7814 2011-03-31  Jeff Law  <law@redhat.com>
7816         * reload1.c (elimination_effects): Fix typo in recent change.
7818         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7819         typo potentially leading to null pointer dereference.
7821         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7822         (setup_save_areas): Corresponding changes to avoid useless
7823         assignments.
7825         * jump.c (reversed_comparison_code_parts): Avoid successive return
7826         statements when REVERSE_CONDITION is defined.
7828         * expr.c (expand_assignment): Avoid useless assignments.
7829         (expand_expr_real_1): Likewise.
7830         (expand_expr_real_2): Avoid useless statements.
7832         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7834         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7836         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7837         statements.
7839         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7841 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7843         PR target/47109
7844         * doc/tm.texi.in (TARGET_VERSION): Remove.
7845         * doc/tm.texi: Regenerate.
7846         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7847         * collect2.c (main): Don't use TARGET_VERSION.
7848         * mips-tdump.c (main): Don't use TARGET_VERSION.
7849         * mips-tfile.c (main): Don't use TARGET_VERSION.
7850         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7851         * config/rs6000/vxworksae.h: Remove.
7852         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7853         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7854         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7855         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7856         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7857         * config/arm/arm.h (TARGET_VERSION): Remove.
7858         * config/arm/coff.h (TARGET_VERSION): Remove.
7859         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7860         * config/arm/elf.h (TARGET_VERSION): Remove.
7861         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7862         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7863         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7864         * config/arm/pe.h (TARGET_VERSION): Remove.
7865         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7866         * config/arm/semi.h (TARGET_VERSION): Remove.
7867         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7868         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7869         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7870         * config/avr/avr.h (TARGET_VERSION): Remove.
7871         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7872         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7873         * config/frv/frv.h (TARGET_VERSION): Remove.
7874         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7875         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7876         * config/i386/darwin.h (TARGET_VERSION): Remove.
7877         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7878         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7879         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7880         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7881         * config/i386/gnu.h (TARGET_VERSION): Remove.
7882         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7883         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7884         * config/i386/linux.h (TARGET_VERSION): Remove.
7885         * config/i386/linux64.h (TARGET_VERSION): Remove.
7886         * config/i386/lynx.h (TARGET_VERSION): Remove.
7887         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7888         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7889         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7890         * config/i386/netware.h (TARGET_VERSION): Remove.
7891         * config/i386/nto.h (TARGET_VERSION): Remove.
7892         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7893         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7894         * config/ia64/elf.h (TARGET_VERSION): Remove.
7895         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7896         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7897         * config/ia64/linux.h (TARGET_VERSION): Remove.
7898         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7899         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7900         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7901         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7902         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7903         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7904         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7905         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7906         * config/m68k/linux.h (TARGET_VERSION): Remove.
7907         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7908         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7909         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7910         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7911         * config/mep/mep.h (TARGET_VERSION): Remove.
7912         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7913         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7914         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7915         * config/mips/linux.h (TARGET_VERSION): Remove.
7916         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7917         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7918         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7919         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7920         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7921         * config/pa/pa.h (TARGET_VERSION): Remove.
7922         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7923         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7924         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7925         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7926         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7927         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7928         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7929         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7930         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7931         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7932         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7933         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7934         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7935         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7936         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7937         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7938         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7939         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7940         * config/s390/linux.h (TARGET_VERSION): Remove.
7941         * config/s390/s390.h (TARGET_VERSION): Remove.
7942         * config/s390/tpf.h (TARGET_VERSION): Remove.
7943         * config/score/score.h (TARGET_VERSION): Remove.
7944         * config/sh/linux.h (TARGET_VERSION): Remove.
7945         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7946         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7947         * config/sh/sh.h (TARGET_VERSION): Remove.
7948         * config/sh/sh64.h (TARGET_VERSION): Remove.
7949         * config/sh/superh.h (TARGET_VERSION): Remove.
7950         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7951         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7952         * config/sparc/linux.h (TARGET_VERSION): Remove.
7953         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7954         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7955         TARGET_NAME32, TARGET_NAME): Remove.
7956         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7957         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7958         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7959         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7960         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7961         * config/spu/spu.h (TARGET_VERSION): Remove.
7962         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7963         * config/v850/v850.h (TARGET_VERSION): Remove.
7964         * config/vax/linux.h (TARGET_VERSION): Remove.
7965         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7966         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7967         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7969 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7971         PR target/48142
7972         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7973         frame-related from frame-unrelated adjustments to the stack pointer.
7975 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7977         * common.opt (fdebug-types-section): Move earlier.
7978         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7980 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7982         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7983         var.
7985 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7987         * tree.h (CASE_CHAIN): Define.
7988         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7989         (gimple_redirect_edge_and_branch): Likewise.
7991 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7993         PR middle-end/48367
7994         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7995         calculation.
7997 2011-03-30  Jeff Law  <law@redhat.com>
7999         * PR bootstrap/48371
8000         * reload1.c (reload): Fix botch in last change.
8002         * reload.h (struct reload): Fix typo introduced in last change.
8004 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8006         * config/arm/arm.opt (mhard-float, msoft-float): Mark
8007         Undocumented.  Remove help text.
8008         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8009         -mhard-float.
8011 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8013         * doc/options.texi (NegativeAlias): Document.
8014         (Alias): Mention NegativeAlias.
8015         * opt-functions.awk: Handle NegativeAlias.
8016         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8017         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8018         * opts.h (CL_NEGATIVE_ALIAS): Define.
8019         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8020         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8021         OPT_mspe_.
8022         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8023         Alias entries.
8024         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8025         mno-spe and mno-isel instead of mspe=no and -misel=no.
8027 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8029         * common.opt (fdebug-types-section): New flag.
8030         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8031         * dwarf2out.c (use_debug_types): New define.
8032         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8033         (print_die): Guard output of type unit signatures using
8034         use_debug_types.
8035         (build_abbrev_table): Replace assert of dwarf_version >= 4
8036         with assert on use_debug_types.
8037         (size_of_die): Likewise.
8038         (unmark_dies): Likewise.
8039         (value_format): Decide AT_ref_external form on use_debug_types.
8040         (output_die): Replace dwarf_version version check guard with
8041         use_debug_types where appropriate.
8042         (modified_type_die): Likewise.
8043         (gen_reference_type_die): Likewise.
8044         (dwarf2out_start_source_file): Likewise.
8045         (dwarf2out_end_source_file): Likewise.
8046         (prune_unused_types_walk_attribs): Likewise.
8047         (dwarf2out_finish): Likewise.
8049 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8051         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8053 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8055         PR rtl-optimization/48332
8056         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8057         mode of input operand N and modeN to its actual mode.
8059 2011-03-30  Jeff Law  <law@redhat.com>
8061         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8062         define accessor macro.
8063         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8064         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8065         (reg_equiv_init): Likewise.
8066         (reg_equivs_size): New variable.
8067         (reg_equiv_init_size): Remove.
8068         (allocate_initial_values): Move prototype to here from....
8069         * integrate.h (allocate_initial_values): Remove prototype.
8070         * integrate.c: Include reload.h.
8071         (allocate_initial_values): Corresponding changes.
8072         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8073         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8074         (update_equiv_regs): Corresponding changes.
8075         (ira): Corresponding changes.
8076         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8077         (push_secondary_reload): Corresponding changes.
8078         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8079         (make_memloc, find_reloads_address): Corresponding changes.
8080         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8081         (find_reloads_address_1): Corresponding changes.
8082         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8083         (refers_to_regno_for_reload_p): Corresponding changes.
8084         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8085         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8086         * reload1.c: Include ggc.h.
8087         (grow_reg_equivs): New function.
8088         (replace_pseudos_in, reload): Corresponding changes.
8089         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8090         (eliminate_regs_1, elimination_effects): Corresponding changes.
8091         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8092         (delete_output_reload): Likewise.
8093         * caller-save.c (mark_referenced_regs): Corresponding changes.
8094         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8095         * frv/predicates.md (frv_load_operand): Corresponding changes.
8096         * microblaze/microblaze.c (double_memory_operand): Corresponding
8097         changes.
8098         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8099         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8100         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8101         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8102         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8103         changes.
8104         * pa/pa.c (emit_move_sequence): Corresponding changes.
8105         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8107 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8109         PR target/47551
8110         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8111         structure modes.  Don't check neon_vector_mem_operand for
8112         vector or structure modes.
8114 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8115             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8117         PR target/43590
8118         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8119         operand 1 and reshuffle the operands to match.
8120         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8122 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8124         PR driver/48208
8125         * config/c.opt (F): Added 'Driver' to -F option.
8127         PR driver/48260
8128         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8129           handler function.
8130         * config/darwin.opt: Added '-arch' option.
8132 2011-03-30  Nick Clifton  <nickc@redhat.com>
8134         * config/rx/rx.md: Add peepholes and patterns to combine
8135         extending loads and simple arithmetic instructions.
8136         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8137         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8138         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8139         modes to use pre-decrement and post-increment addressing.
8140         (rx_is_restricted_memory_address): Add range checking of REG+INT
8141         addresses.
8142         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8143         (rx_memory_move_cost): Adjust cost of stores.
8144         (rx_adjust_insn_length): New function.
8146 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8148         PR c/48305
8149         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8150         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8151         matching arg00/arg01 types.
8153 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8155         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8156         last_location to UNKNOWN_LOCATION.
8158 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8160         PR target/48349
8161         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8162         FLOAT_SSE_REGS.
8164 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8165             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8167         PR bootstrap/48337
8168         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8169         Init(PROCESSOR_V7).
8170         (sparc_cpu): Likewise.
8171         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8172         PROCESSOR_V7.
8174 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8176         PR target/48336
8177         PR middle-end/48342
8178         PR rtl-optimization/48345
8179         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8180         hard regs for given mode from profitable regs when doing secondary
8181         allocation.
8183 2011-03-29  Jeff Law  <law@redhat.com>
8185         PR bootstrap/48327
8186         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8187         do_not_duplicate field.
8188         (lookup_redirection_data): Corresponding changes.
8189         (create_duplicates): Always create a template block.
8190         (redirect_edges): Remove code which reused the original block
8191         when it was going to become unreachable code.
8192         (thread_block): Don't set do_not_duplicate field.
8194 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8196         * lto-opts.c (register_user_option_p, lto_register_user_option):
8197         Make type argument unsigned.
8198         * lto-streamer.h (lto_register_user_option): Make type argument
8199         unsigned.
8200         * opth-gen.awk: Make CL_* macros unsigned.
8201         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8202         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8203         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8204         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8205         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8206         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8207         (find_opt): Make lang_mask argument unsigned.
8209 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8211         PR rtl-optimization/48331
8212         PR rtl-optimization/48334
8213         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8214         for any used algorithm.
8216 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8218         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8219         to parent_max.
8221 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8223         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8224         (alpha_option_override): Don't set alpha_sr_alias_set.
8225         (emit_frame_store_1): Use gen_frame_mem rather than calling
8226         set_mem_alias_set.
8227         (alpha_expand_epilogue): Ditto.
8229 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8231         PR tree-optimization/48290
8232         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8233         vectorization, check that relevant phis in the basic block after
8234         the inner loop are really inner loop's exit phis.
8236 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8238         PR debug/48190
8239         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8240         (cached_dw_loc_list_def): New structure.
8241         (cached_dw_loc_list): New typedef.
8242         (cached_dw_loc_list_table): New variable.
8243         (cached_dw_loc_list_table_hash): New function.
8244         (cached_dw_loc_list_table_eq): Likewise.
8245         (add_location_or_const_value_attribute): Take a bool cache_p.
8246         Cache the list when the parameter is true.
8247         (gen_formal_parameter_die): Update caller.
8248         (gen_variable_die): Likewise.
8249         (dwarf2out_finish): Likewise.
8250         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8251         while generating debug info for the decl.
8252         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8253         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8254         (resolve_addr): Cache the result of resolving a chain of
8255         location lists.
8257 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8259         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8260         conflict object hard regset nodes have intersecting hard reg sets.
8262         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8263         after regstat_init_n_sets_and_refs.
8265         * ira.c: Add more comments at the top.
8266         (setup_stack_reg_pressure_class, setup_pressure_classes):
8267         Add comments how we compute the register pressure classes.
8268         (setup_allocno_and_important_classes): Add more comments.
8269         (setup_class_translate_array, reorder_important_classes)
8270         (setup_reg_class_relations): Add comments.
8272         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8273         start of the file.
8275         * ira-color.c: Add 2011 to the Copyright line.
8276         (assign_hard_reg):  Add more comments.
8277         (improve_allocation): Ditto.
8279         * ira-costs.c: Add 2011 to the Copyright line.
8280         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8281         comments.
8282         (setup_regno_cost_classes_by_mode): Ditto.
8284         Initial patches from ira-improv branch:
8286         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8288         * ira-build.c (ira_create_object): Remove initialization of
8289         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8290         (ira_create_allocno): Remove initialization of
8291         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8292         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8293         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8294         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8295         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8296         Initialize ALLOCNO_ADD_DATA.
8297         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8298         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8299         ALLOCNO_REG.
8300         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8301         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8303         * ira.c (ira_reallocate): Remove.
8304         (setup_pressure_classes): Call
8305         ira_init_register_move_cost_if_necessary.  Use
8306         ira_register_move_cost instead of ira_get_register_move_cost.
8307         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8308         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8310         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8311         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8312         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8313         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8314         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8315         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8316         Fix formatting.
8317         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8318         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8319         (struct allocno_color_data): New.
8320         (allocno_color_data_t): New typedef.
8321         (allocno_color_data): New definition.
8322         (ALLOCNO_COLOR_DATA): New macro.
8323         (struct object_color_data): New.
8324         (object_color_data_t): New typedef.
8325         (object_color_data): New definition.
8326         (OBJECT_COLOR_DATA): New macro.
8327         (update_copy_costs, calculate_allocno_spill_cost): Call
8328         ira_init_register_move_cost_if_necessary.  Use
8329         ira_register_move_cost instead of ira_get_register_move_cost.
8330         (move_spill_restore, update_curr_costs): Ditto.
8331         (allocno_spill_priority): Make it inline.
8332         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8333         (struct coalesce_data, coalesce_data_t): New.
8334         (allocno_coalesce_data): New definition.
8335         (ALLOCNO_COALESCE_DATA): New macro.
8336         (merge_allocnos, coalesced_allocno_conflict_p): Use
8337         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8338         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8339         (coalesce_allocnos): Ditto.
8340         (setup_coalesced_allocno_costs_and_nums): Ditto.
8341         (collect_spilled_coalesced_allocnos): Ditto.
8342         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8343         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8344         (coalesce_spill_slots): Ditto.
8345         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8346         free allocno_coalesce_data.
8348         * ira-conflicts.c: Fix formatting.
8349         (process_regs_for_copy): Call
8350         ira_init_register_move_cost_if_necessary.  Use
8351         ira_register_move_cost instead of ira_get_register_move_cost.
8352         (build_object_conflicts): Optimize.
8354         * ira-costs.c (record_reg_classes): Optimize.  Call
8355         ira_init_register_move_cost_if_necessary.  Use
8356         ira_register_move_cost, ira_may_move_in_cost, and
8357         ira_may_move_out_cost instead of ira_get_register_move_cost and
8358         ira_get_may_move_cost.
8359         (record_address_regs): Ditto.
8360         (scan_one_insn): Optimize.
8361         (find_costs_and_classes): Optimize.
8362         (process_bb_node_for_hard_reg_moves): Call
8363         ira_init_register_move_cost_if_necessary.  Use
8364         ira_register_move_cost instead of ira_get_register_move_cost.
8366         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8367         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8368         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8369         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8370         definitions.
8371         (ira_initiate_emit_data, ira_finish_emit_data)
8372         (create_new_allocno): New functions.
8373         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8374         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8375         Use ira_register_move_cost instead of ira_get_register_move_cost.
8377         * ira-int.h: Fix some comments.
8378         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8379         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8380         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8381         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8382         add_data.
8383         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8384         bitfield after mode.  Make hard_regno a short int.  Make
8385         hard_regno short.  Remove first_coalesced_allocno and
8386         next_coalesced_allocno.  Move mem_optimized_dest_p,
8387         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8388         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8389         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8390         temp, colorable_p.  Add new member add_data.
8391         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8392         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8393         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8394         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8395         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8396         (ALLOCNO_ADD_DATA): New macro.
8397         (ira_emit_data_t): New typedef.
8398         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8399         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8400         from struct ira_allocno.
8401         (ALLOCNO_EMIT_DATA): New macro.
8402         (ira_allocno_emit_data, allocno_emit_reg): New.
8403         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8404         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8405         (OBJECT_ADD_DATA): New macro.
8406         (ira_reallocate): Remove.
8407         (ira_initiate_emit_data, ira_finish_emit_data): New.
8408         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8409         (ira_init_register_move_cost_if_necessary): New.
8410         (ira_object_conflict_iter_next): Merge into
8411         ira_object_conflict_iter_cond.
8412         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8414         * ira-live.c (process_single_reg_class_operands): Call
8415         ira_init_register_move_cost_if_necessary.  Use
8416         ira_register_move_cost instead of ira_get_register_move_cost.
8418         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8420         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8422         * ira-costs.c: Fix formatting.
8423         (cost_classes, cost_classes_num): Remove.
8424         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8425         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8426         (cost_classes_del, cost_classes_htab): New.
8427         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8428         (initiate_regno_cost_classes, setup_cost_classes): New.
8429         (setup_regno_cost_classes_by_aclass): New.
8430         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8431         (record_reg_classes): Use regno_cost_classes instead of
8432         cost_classes.  Move checking opposite operand up.
8433         (record_address_regs): Use regno_cost_classes
8434         instead of cost_classes.
8435         (scan_one_insn): Ditto.  Use always general register.
8436         (print_allocno_costs): Use regno_cost_classes instead of
8437         cost_classes.
8438         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8439         (find_costs_and_classes): Set up cost classes for each registers.
8440         Use also their mode for this.  Use regno_cost_classes instead of
8441         cost_classes.
8442         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8443         cost_classes.
8444         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8445         (ira_costs, ira_set_pseudo_classes): Call
8446         initiate_regno_cost_classes and finish_regno_cost_classes.
8448         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8450         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8452         * target.def (ira_cover_classes): Remove.
8454         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8456         * doc/tm.texi.in: Ditto.
8458         * ira-conflicts.c: Remove mentioning cover classes from the file.
8459         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8460         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8462         * targhooks.c (default_ira_cover_classes): Remove.
8464         * targhooks.h (default_ira_cover_classes): Ditto.
8466         * haifa-sched.c: Remove mentioning cover classes from the file.
8467         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8468         ira_pressure_classes and ira_pressure_classes_num instead of
8469         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8470         sched_regno_pressure_class instead of sched_regno_cover_class.
8471         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8472         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8474         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8475         classes from the file.
8476         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8477         (struct object_hard_regs, struct object_hard_regs_node): New.
8478         (struct ira_object): New members profitable_hard_regs,
8479         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8480         (struct ira_allocno): Rename cover_class to aclass.  Rename
8481         cover_class_cost and updated_cover_class_cost to class_cost and
8482         updated_class_cost.  Remove splay_removed_p and
8483         left_conflict_size.  Add new members colorable_p.
8484         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8485         (ALLOCNO_COLORABLE_P): New macro.
8486         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8487         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8488         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8489         (OBJECT_...): Rename parameter C to O.
8490         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8491         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8492         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8493         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8494         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8495         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8496         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8497         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8498         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8499         x_ira_reg_class_subunion.
8500         (ira_max_memory_move_cost, ira_max_register_move_cost)
8501         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8502         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8503         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8504         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8505         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8506         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8507         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8508         (ira_tune_allocno_costs_and_cover_classes): Rename to
8509         ira_tune_allocno_costs.
8510         (ira_debug_hard_regs_forest): New.
8511         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8512         (ira_object_conflict_iter_next): Fix comments.
8513         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8514         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8515         cover_class to aclass.
8516         (ira_allocate_and_accumulate_costs): Ditto.
8517         (ira_allocate_and_set_or_copy_costs): Ditto.
8519         * opts.c (decode_options): Remove ira_cover_class check.
8521         * ira-color.c: Remove mentioning cover classes from the file.  Use
8522         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8523         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8524         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8525         (splay-tree.h): Remove include.
8526         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8527         before copy_freq_compare_func.
8528         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8529         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8530         New definitions.
8531         (hard_regs_roots, hard_regs_node_vec): Ditto.
8532         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8533         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8534         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8535         (create_new_object_hard_regs_node): Ditto.
8536         (add_new_object_hard_regs_node_to_forest): Ditto.
8537         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8538         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8539         Ditto.
8540         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8541         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8542         (remove_unused_object_hard_regs_nodes): Ditto.
8543         (enumerate_object_hard_regs_nodes): Ditto.
8544         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8545         (object_hard_regs_subnode_t): Ditto.
8546         (struct object_hard_regs_subnode): Ditto.
8547         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8548         (setup_object_hard_regs_subnode_index): Ditto.
8549         (get_object_hard_regs_subnodes_num): Ditto.
8550         (form_object_hard_regs_nodes_forest): Ditto.
8551         (finish_object_hard_regs_nodes_tree): Ditto.
8552         (finish_object_hard_regs_nodes_forest): Ditto.
8553         (allocnos_have_intersected_live_ranges_p): Rename to
8554         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8555         (pseudos_have_intersected_live_ranges_p): Rename to
8556         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8557         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8558         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8559         (update_copy_costs): Remove assert.  Skip cost update if the hard
8560         reg does not belong the class.
8561         (assign_hard_reg): Process only profitable hard regs.
8562         (uncolorable_allocnos_num): Make it scalar.
8563         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8564         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8565         and ira_reg_class_max_nregs.
8566         (bucket_allocno_compare_func): Check frequency first.
8567         (sort_bucket): Add compare function as a parameter.
8568         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8569         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8570         (push_allocno_to_stack): Rewrite for checking new allocno
8571         colorability.
8572         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8573         (push_only_colorable): Pass new parameter to sort_bucket.
8574         (push_allocno_to_spill): Remove.
8575         (allocno_spill_priority_compare): Make it inline and rewrite.
8576         (splay_tree_allocate, splay_tree_free): Remove.
8577         (allocno_spill_sort_compare): New function.
8578         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8579         build and use splay tree.  Choose first allocno in uncolorable
8580         allocno bucket to spill.  Remove setting spill cost.
8581         (all_conflicting_hard_regs): Remove.
8582         (setup_allocno_available_regs_num): Check only profitable hard
8583         regs.  Print info about hard regs nodes.
8584         (setup_allocno_left_conflicts_size): Remove.
8585         (put_allocno_into_bucket): Don't call
8586         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8587         (improve_allocation): New.
8588         (color_allocnos): Call setup_profitable_hard_regs,
8589         form_object_hard_regs_nodes_forest, improve_allocation,
8590         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8591         (print_loop_title): Use pressure classes.
8592         (color_allocnso): Ditto.
8593         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8594         and allocnos_for_spilling.
8595         (ira_sort_regnos_for_alter_reg): Don't setup members
8596         {first,next}_coalesced_allocno.
8597         (color): Remove allocating and freeing removed_splay_allocno_vec.
8598         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8599         prohibited_class_mode_regs.
8601         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8602         formatting.
8603         (update_allocno_pressure_excess_length): Use pressure classes.
8604         (inc_register_pressure, dec_register_pressure): Check for pressure
8605         class.
8606         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8607         pressure class.  Use ira_reg_class_nregs instead of
8608         ira_reg_class_max_nregs.
8609         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8610         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8611         (single_reg_class): Use ira_reg_class_nregs instead of
8612         ira_reg_class_max_nregs.
8613         (process_bb_node_lives): Use pressure classes.
8615         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8616         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8617         (change_loop): Use pressure classes.
8618         (modify_move_list): Call ira_set_allocno_class instead of
8619         ira_set_allocno_cover_class.
8621         * ira-build.c: Remove mentioning cover classes from the file.  Use
8622         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8623         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8624         ALLOCNO_UPDATED_CLASS_COST instead of
8625         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8626         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8627         (ira_create_allocno): Remove initialization of
8628         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8629         ALLOCNO_COLORABLE_P.
8630         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8631         Update conflict regs for the objects.
8632         (create_cap_allocno): Remove assert.  Don't propagate
8633         ALLOCNO_AVAILABLE_REGS_NUM.
8634         (ira_free_allocno_costs): New function.
8635         (finish_allocno): Change a part of code into call of
8636         ira_free_allocno_costs.
8637         (low_pressure_loop_node_p): Use pressure classes.
8638         (object_range_compare_func): Don't compare classes.
8639         (setup_min_max_conflict_allocno_ids): Ditto.
8641         * loop-invariant.c: Remove mentioning cover classes from the file.
8642         Use ira_pressure_classes and ira_pressure_classes_num instead of
8643         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8644         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8645         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8646         Use reg_allocno_class instead of reg_cover_class.
8647         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8648         STACK_REG_COVER_CLASS.
8649         (get_regno_cover_class): Rename to get_regno_pressure_class.
8650         (move_loop_invariants): Initialize and finalize regstat.
8652         * ira.c: Remove mentioning cover classes from the file.  Add
8653         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8654         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8655         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8656         setup_class_subset_and_memory_move_costs.
8657         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8658         (setup_cover_and_important_classes): Rename to
8659         setup_allocno_and_important_classes.
8660         (setup_class_translate_array): New.
8661         (setup_class_translate): Call it for allocno and pressure classes.
8662         (cover_class_order): Rename to allocno_class_order.
8663         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8664         of ira_class_translate.
8665         (reorder_important_classes): Set up ira_important_class_nums.
8666         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8667         (print_class_cover): Rename to print_classes.  Add parameter.
8668         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8669         Print pressure classes too.
8670         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8671         setup_reg_subclasses.
8672         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8673         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8674         (setup_prohibited_class_mode_regs): Use
8675         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8676         (clarify_prohibited_class_mode_regs): New function.
8677         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8678         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8679         (ira_init_once): Initialize them.
8680         (free_register_move_costs): Process them.
8681         (ira_init): Move calls of find_reg_classes and
8682         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8683         Call clarify_prohibited_class_mode_regs.
8684         (ira_no_alloc_reg): Remove.
8685         (too_high_register_pressure_p): Use pressure classes.
8687         * sched-deps.c: Remove mentioning cover classes from the file.
8688         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8689         ira_pressure_classes and ira_pressure_classes_num instead of
8690         ira_reg_class_cover_size and ira_reg_class_cover.
8691         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8692         sched_regno_pressure_class instead of sched_regno_cover_class.
8693         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8694         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8696         * ira.h: Add 2010 to Copyright.
8697         (ira_no_alloc_reg): Remove external.
8698         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8699         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8700         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8701         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8702         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8703         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8704         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8705         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8706         x_ira_no_alloc_regs.
8707         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8708         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8709         ira_allocno_classes_num and ira_allocno_classes.
8710         (ira_class_translate): Rename to ira_allocno_class_translate.
8711         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8712         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8713         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8714         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8715         (ira_no_alloc_regs): New.
8717         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8718         classes from the file.  Use ALLOCNO_CLASS instead of
8719         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8720         ALLOCNO_COVER_CLASS_COST.
8721         (regno_cover_class): Rename to regno_aclass.
8722         (record_reg_classes): Use ira_reg_class_subunion instead of
8723         ira_reg_class_union.
8724         (record_address_regs): Check overflow.
8725         (scan_one_insn): Ditto.
8726         (print_allocno_costs): Print total mem cost fore regional allocation.
8727         (print_pseudo_costs): Use REG_N_REFS.
8728         (find_costs_and_classes): Use classes intersected with them on the
8729         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8730         ira_reg_class_union.  Use ira_allocno_class_translate and
8731         regno_aclass instead of ira_class_translate and regno_cover_class.
8732         Modify code for finding regno_aclass.  Setup preferred classes for
8733         the next pass.
8734         (setup_allocno_cover_class_and_costs): Rename to
8735         setup_allocno_class_and_costs.  Use regno_aclass instead of
8736         regno_cover_class.  Use ira_set_allocno_class instead of
8737         ira_set_allocno_cover_class.
8738         (init_costs, finish_costs): Use regno_aclass instead of
8739         regno_cover_class.
8740         (ira_costs): Use setup_allocno_class_and_costs instead of
8741         setup_allocno_cover_class_and_costs.
8742         (ira_tune_allocno_costs_and_cover_classes): Rename to
8743         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8744         by processing objects.  Use ira_reg_class_max_nregs instead of
8745         ira_reg_class_nregs.
8747         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8749         * sched-int.h: Remove mentioning cover classes from the file.
8750         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8752         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8753         classes from the file.
8754         (struct reg_pref): Rename coverclass into allocnoclass.
8755         (reg_cover_class): Rename to reg_allocno_class.
8757         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8759         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8761         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8763         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8765         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8767         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8769         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8771         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8773         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8775         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8777         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8778         (i386_ira_cover_classes): Ditto.
8780         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8782         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8784         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8786         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8788         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8790         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8792         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8793         (mips_ira_cover_classes): Ditto.
8795         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8797         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8799         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8801         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8803         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8805         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8806         (IRA_COVER_CLASSES_VSX): Ditto.
8808         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8809         (rs6000_ira_cover_classes): Ditto.
8811         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8813         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8815         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8817         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8819         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8821         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8823         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8825         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8827         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8829         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8831 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8833         PR debug/48253
8834         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8835         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8836         dw_fde_unlikely_section_end_label, cold_in_std_section,
8837         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8838         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8839         fields.
8840         (output_fde): Use dw_fde_second_{begin,end} if second is
8841         true, otherwise dw_fde_{begin,end}.
8842         (output_call_frame_info): Test dw_fde_second_begin != NULL
8843         instead of dw_fde_switched_sections.
8844         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8845         fields, initialize new fields.  Initialize in_std_section
8846         unconditionally from the first partition.
8847         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8848         dw_fde_second_begin is non-NULL.
8849         (dwarf2out_switch_text_section): Stop initializing removed
8850         dw_fde_struct fields, initialize new fields, initialize
8851         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8852         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8853         (struct var_loc_list_def): Add last_before_switch field.
8854         (arange_table, arange_table_allocated, arange_table_in_use,
8855         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8856         (size_of_aranges): Count !in_std_section and !second_in_std_section
8857         hunks in fdes, instead of looking at arange_table_in_use.
8858         (output_aranges): Add aranges_length argument, don't call
8859         size_of_aranges here.  Instead of using aranges_table*
8860         emit ranges for fdes when !in_std_section resp.
8861         !second_in_std_section.
8862         (dw_loc_list): Break ranges crossing section switch.
8863         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8864         use dw_fde_second_end instead of dw_fde_end as end of last range.
8865         (gen_subprogram_die): Don't call add_arange.  Use
8866         dw_fde_{begin,end} for first partition and if switched
8867         section dw_fde_second_{begin,end} for the second.
8868         (var_location_switch_text_section_1,
8869         var_location_switch_text_section): New functions.
8870         (dwarf2out_begin_function): Initialize cold_text_section even
8871         when function_section () isn't text_section.
8872         (prune_unused_types): Don't walk arange_table.
8873         (dwarf2out_finish): Don't needlessly test
8874         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8875         If info_section_emitted, call size_of_aranges and if it indicates
8876         non-empty .debug_aranges, call output_aranges with the computed
8877         size.  Stop using removed dw_fde_struct fields, use
8878         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8879         for second.
8881         PR debug/48203
8882         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8883         create ENTRY_VALUE if incoming or address of incoming's MEM
8884         is a hard REG.
8885         * dwarf2out.c (mem_loc_descriptor): Don't emit
8886         DW_OP_GNU_entry_value of DW_OP_fbreg.
8887         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8888         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8889         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8890         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8891         ENTRY_VALUE_EXPs.
8892         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8893         is a REG_P or MEM_P with REG_P address, compute hash directly
8894         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8895         (preserve_only_constants): Don't clear VALUES forwaring
8896         ENTRY_VALUE to some other VALUE.
8898 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8900         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8901         instead of GEN_INT.
8903 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8905         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8906         block before expanding the statement.
8907         (expand_gimple_stmt_1): Likewise.  Set them here...
8908         (expand_gimple_stmt): ...and not here.  Tidy.
8909         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8910         unknown.
8912 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8914         * Makefile.in: New rule for cprop.o.
8915         * gcse.c: Move constant/copy propagation to cprop.c.
8916         (compute_local_properties): Only handle expression tables.
8917         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8918         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8919         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8920         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8921         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8922         compute_cprop_data, find_used_regs, try_replace_reg,
8923         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8924         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8925         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8926         find_bypass_set, reg_killed_on_edge, bypass_block,
8927         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8928         execute_rtl_cprop, pass_rtl_cprop): Move to...
8929         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8930         moved from gcse.c to here with minor cleanups in duplicated code.
8932 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8934         * config/i386/i386.c (flag_opts): Fix a typo in
8935         -mavx256-split-unaligned-store.
8937 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8939         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8940         LIBCALL_VALUE): Remove macros.
8941         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8942         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8943         (h8300_function_value, h8300_libcall_value,
8944         h8300_function_value_regno_p): New functions.
8946 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8948         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8950 2011-03-28  Jeff Law  <law@redhat.com>
8952         * tree-ssa-threadupdate.c (redirect_edges): Call
8953         create_edge_and_update_destination_phis as needed.
8954         (create_edge_and_update_destination_phis): Accept new BB argument.
8955         All callers updated.
8956         (thread_block): Do not update the profile when threading around
8957         intermediate blocks.
8958         (thread_single_edge): Likewise.
8959         (determine_bb_domination_status): If BB is not a successor of the
8960         loop header, return NONDOMINATING.
8961         (register_jump_thread): Note when we register a jump thread around
8962         an intermediate block.
8963         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8964         (thread_across_edge): Use it.
8966 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8968         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8969         when for_return is 2.
8971 2011-03-28  Jeff Law  <law@redhat.com>
8973         * var-tracking.c (canonicalize_values_mark): Delete unused
8974         lhs assignment.
8975         (canonicalize_values_star, set_variable_part): Likewise.
8976         (clobber_variable_part, delete_variable_part): Likewise.
8978 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8980         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8982 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8984         * tree-inline.c (expand_call_inline): Do not check that destination
8985         node is analyzed.
8986         (optimize_inline_calls): Assert that destination node is analyzed.
8987         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8988         not call tree_lowering_passes.
8989         * cgraph.h (cgraph_analyze_function): Declare.
8990         * cgraphunit.c (cgraph_analyze_function): Make public.
8992 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8994         * config/sparc/sparc-opts.h: New.
8995         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8996         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8997         (sparc_option_override): Store processor_type enumeration rather
8998         than string in cpu_default.  Remove name and enumeration from
8999         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
9000         without using sparc_select.  Use target_flags_explicit instead of
9001         fpu_option_set.
9002         * config/sparc/sparc.h (enum processor_type): Move to
9003         sparc-opts.h.
9004         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9005         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9006         HeaderInclude entry.
9007         (mcpu=, mtune=): Use Var and Enum.
9008         (sparc_processor_type): New Enum and EnumValue entries.
9010 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9011             Iain Sandoe  <iains@gcc.gnu.org>
9013         PR target/48245
9014         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9016 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9018         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9019         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9020         Insert new statements at it in lieu of STMT.
9021         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9022         * tree-vect-stmts.c (vectorizable_store): Likewise.
9023         (vectorizable_load): Likewise.
9025 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9027         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9028         (divtf3): Ditto.
9029         (multf3): Ditto.
9030         (subtf3): Ditto.
9032 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9034         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9035         unaligned 256bit load/store.
9036         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9037         (*avx_movdqu<avxmodesuffix>): Likewise.
9039 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9041         PR target/48288
9042         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9043         * config/pa/pa.md (iordi3): Use new predicate in expander.
9044         (iorsi3): Likewise.
9046 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9048         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9049         FUNCTION_VALUE_REGNO_P): Remove macros.
9050         * config/mips/mips-protos.h (mips_function_value): Remove.
9051         * config/mips/mips.c (mips_function_value): Rename to...
9052         (mips_function_value_1): ... this. Make static.  Handle receiving
9053         the function type in 'fn_decl_or_type' argument.
9054         (mips_function_value, mips_libcall_value,
9055         mips_function_value_regno_p): New function.
9056         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9057         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9059 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9061         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9062         and -mavx256-split-unaligned-store.
9063         (ix86_option_override_internal): Split 32-byte AVX unaligned
9064         load/store by default.
9065         (ix86_avx256_split_vector_move_misalign): New.
9066         (ix86_expand_vector_move_misalign): Use it.
9068         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9069         -mavx256-split-unaligned-store.
9071         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9072         256bit load/store.  Generate unaligned store on misaligned memory
9073         operand.
9074         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9075         256bit load/store.
9076         (*avx_movdqu<avxmodesuffix>): Likewise.
9078         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9079         -mavx256-split-unaligned-store.
9081 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9083         PR target/38598
9084         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9085         Update commentary.
9087 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9089         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9090         opno arguments with an expand_operand.  Use create_input_operand.
9091         (mips_prepare_builtin_target): Delete.
9092         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9093         functions.
9094         (mips_expand_builtin_direct): Use create_output_operand and
9095         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9096         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9097         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9099 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9101         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9102         function.
9103         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9105 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9107         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9108         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9109         basic blocks and call commit_edge_insertions directly.
9110         (fixup_abnormal_edges): Move from here to...
9111         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9112         on the edges and return whether some have actually been inserted.
9113         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9114         compensation code.
9116 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9118         PR rtl-optimization/48144
9119         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9120         (merge_expr_data): ... here.
9121         (av_set_intersect): Rename to av_set_code_motion_filter.
9122         Update all callers.  Call merge_history_vect when an expression
9123         is found in both sets.
9124         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9126 2011-03-26  Alan Modra  <amodra@gmail.com>
9128         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9129         cmodel medium addresses.
9130         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9131         64-bit gpr loads and stores.
9132         (rs6000_secondary_reload_ppc64): New function.
9133         * config/rs6000/rs6000-protos.h: Declare it.
9134         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9136 2011-03-26  Alan Modra  <amodra@gmail.com>
9138         PR target/47487
9139         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9140         GNU Go in traceback table.
9142 2011-03-25  Richard Henderson  <rth@redhat.com>
9144         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9145         if there are exactly 6 operands.
9146         (set_storage_via_setmem): Similarly.
9148 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9150         * collect2.c (write_c_file_stat): Handle backslash
9151         as right-hand directory separator.
9152         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9153         checking just for slash.
9154         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9155         instead of checking for trailing slash.
9156         * gcc.c (record_temp_file): Use filename_cmp instead
9157         of strcmp.
9158         (do_spec_1): Likewise.
9159         (replace_outfile_spec_function): Likewise.
9160         (is_directory): Use filename_ncmp instead of strncmp.
9161         (print_multilib_info): Likewise.
9162         * gcov.c (find_source): Use filename_cmp instead
9163         instead of strcmp.
9164         (make_gcov_file_name): Fix order of slash/backslash
9165         checks.
9166         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9167         (add_standard_paths): Likewise.
9168         * mips-tfile.c (saber_stop): Handle backslash.
9169         * prefix.c (update_path): Use filename_ncmp instead of
9170         strncmp.
9171         * profile.c (output_location): Use filename_cmp instead
9172         of strcmp.
9173         * read-md.c (handle_toplevel_file): Handle backslash.
9174         * tlink.c (frob_extension):  Likewise.
9175         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9176         strcmp.
9177         * tree-dump.c (dequeue_and_dump): Handle backslash.
9178         * tree.c (get_file_function_name): Likewise.
9179         * gengtype.c (read_input_list): Likewise.
9180         (get_file_realbasename): Likewise.
9181         (get_output_file_with_visibility): Use filename_cmp
9182         instead of strcmp.
9184 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9186         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9187         case to VFPv1.
9189 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9191         * fold-const.c (expr_location_or): New function.
9192         (fold_truth_not_expr): Call it.
9194 2011-03-25  Jeff Law  <law@redhat.com>
9196         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9197         va_end.
9198         * c-family/c-common.c (def_fn_type): Likewise.
9199         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9200         * emit-rtl.c (gen_rtvec): Likewise.
9201         * lto/lto-lang.c (def_fn_type): Likewise.
9203 2011-03-25  Richard Guenther  <rguenther@suse.de>
9205         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9206         also generate copies.
9207         (fini_copy_prop): Handle constant values properly.
9209 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9211         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9212         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9213         (hash_loc_operands, compare_loc_operands): Handle
9214         DW_OP_GNU_entry_value.
9216 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9218         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9219         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9220         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9221         comment and use macro TARGET_64BIT_MS_ABI instead.
9222         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9223         and change default behavior for 32-bit MS_ABI.
9224         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9225         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9226         32-bit, too.
9227         (ix86_cfun_abi): Likewise.
9228         (ix86_maybe_switch_abi): Adjust comment.
9229         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9230         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9231         instead of checking for SYSV_ABI.
9232         (ix86_nsaved_sseregs): Likewise.
9233         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9234         to 16 bytes.
9235         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9236         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9237         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9238         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9239         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9241 2011-03-25  Richard Guenther  <rguenther@suse.de>
9243         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9244         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9245         (verify_gimple): Remove.
9246         * tree-cfg.c (verify_gimple_call): Merge verification
9247         from verify_stmts.
9248         (verify_gimple_phi): Merge verification from verify_stmts.
9249         (verify_gimple_label): New function.
9250         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9251         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9252         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9253         (verify_stmts): Rename to verify_gimple_in_cfg.
9254         (verify_gimple_in_cfg): New function.
9255         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9256         * tree-ssa.c (verify_ssa): Likewise.
9257         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9259 2011-03-25  Richard Guenther  <rguenther@suse.de>
9261         * passes.c (init_optimization_passes): Add FRE pass after
9262         early SRA.
9264 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9265             Andrew Stubbs  <ams@codesourcery.com>
9267         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9268         for Cortex-A8.
9269         (arm_movdi_vfp_cortexa8): New pattern.
9270         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9271         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9272         instructions when tuning for Cortex-A8.  Set attribute "arch".
9273         * config/arm/arm.md: Move include arm-tune.md up a bit.
9274         (define_attr "arch"): Add "onlya8" and "nota8" values.
9275         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9277 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9279         PR bootstrap/48282
9280         Revert:
9281         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9283         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9284         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9285         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9286         * passes.c (init_optimization_passes): Move
9287         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9289 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9291         * c-typeck.c (comptypes_internal): Replace target
9292         hook call of comp_type_attributes by version in tree.c file.
9293         * gimple.c (gimple_types_compatible_p_1): Likewise.
9294         * tree-ssa.c (useless_type_conversion_p): Likewise.
9295         * tree.c (build_type_attribute_qual_variant): Likewise.
9296         (attribute_value_equal): New static helper function.
9297         (comp_type_attributes): New function.
9298         (merge_attributes): Use attribute_value_equal for comparison.
9299         (attribute_list_contained): Likewise.
9300         * tree.h (comp_type_attributes): New prototype.
9302 2011-03-25  Richard Guenther  <rguenther@suse.de>
9304         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9305         of complex types at -O0.
9306         (verify_gimple_assign_binary): Likewise.
9307         (verify_gimple_assign_ternary): Likewise.
9309 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9311         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9312         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9314 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9316         PR debug/48041
9317         * dwarf2out.c (output_abbrev_section): Only write table when
9318         abbrev_die_table_in_use > 1.
9320 2011-02-24  Richard Henderson  <rth@redhat.com>
9322         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9323         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9324         (alpha_expand_unaligned_load_words): Use extql.
9325         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9326         (emit_insxl): Handle all modes for consistency.
9328 2011-02-24  Richard Henderson  <rth@redhat.com>
9330         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9331         (alpha_expand_unaligned_load): Likewise.
9332         (alpha_expand_unaligned_store): Likewise.
9333         (alpha_expand_unaligned_load_words): Likewise.
9334         (alpha_expand_unaligned_store_words): Likewise.
9335         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9336         (alpha_split_lock_test_and_set_12): Likewise.
9337         (print_operand, alpha_fold_builtin_extxx): Likewise.
9338         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9339         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9340         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9341         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9342         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9343         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9344         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9345         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9346         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9347         (extwl, extll, extql): Similarly.
9348         (inswh, inslh, insqh): Similarly.
9349         (mskbl, mskwl, mskll, mskql): Similarly.
9350         (mskwh, msklh, mskqh): Similarly.
9352 2011-02-24  Richard Henderson  <rth@redhat.com>
9354         * config/alpha/alpha.md (attribute isa): Add er, ner.
9355         (attribute enabled): Handle them.
9356         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9358 2011-02-24  Richard Henderson  <rth@redhat.com>
9360         * config/alpha/alpha.md (attribute isa): Add vms.
9361         (attribute enabled): Handle it.
9362         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9363         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9364         (*movtf): Rename from *movtf_internal for consistency.
9365         (*movsi): Merge with *movsi_nt_vms.
9366         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9367         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9368         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9369         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9371 2011-02-24  Richard Henderson  <rth@redhat.com>
9373         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9374         (extendqisi2, extendhisi2): Likewise.
9375         (extendqidi2): Simplify BWX/non-BWX expansions.
9376         (extendhidi2): Similarly.
9378 2011-02-24  Richard Henderson  <rth@redhat.com>
9380         * config/alpha/alpha.md (attribute isa): New.
9381         (attribute enabled): New.
9382         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9383         (zero_extendqisi2, zero_extendqidi2): Similarly.
9384         (zero_extendhisi2, zero_extendhidi2): Similarly.
9385         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9387 2011-02-24  Richard Henderson  <rth@redhat.com>
9389         * config/alpha/predicates.md (input_operand): Revert last change;
9390         update comment to mention 32-bit VMS rather than Windows.
9392 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9394         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9395         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9396         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9397         * passes.c (init_optimization_passes): Move
9398         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9400 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9402         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9404 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9406         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9407         correctly.
9409 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9411         PR debug/48204
9412         * simplify-rtx.c (simplify_const_unary_operation): Call
9413         real_convert when changing mode class with FLOAT_EXTEND.
9415 2011-03-24  Nick Clifton  <nickc@redhat.com>
9417         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9418         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9419         * config/rx/rx.c (rx_option_override): Set align_jumps,
9420         align_loops and align_labels if not set by the user.
9421         (rx_align_for_label): New function.
9422         (rx_max_skip_for_label): New function.
9423         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9424         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9425         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9426         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9427         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9429 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9431         PR rtl-optimization/48263
9432         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9433         and original commutative_p handling.  Use maybe_gen_insn.
9435 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9437         * reload.c (find_reloads_subreg_address): Add address_reloaded
9438         parameter and return true there if the full address has been
9439         reloaded.
9440         (find_reloads_toplev): Pass address_reloaded flag.
9441         (find_reloads_address_1): Don't use address_reloaded parameter.
9443 2011-03-24  Jeff Law  <law@redhat.com>
9445         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9446         unused variable "ann".
9447         (remove_unused_locals): Likewise.
9449         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9450         statement.
9452         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9453         after it is freed.
9455 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9457         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9458         for invalid symbolic addresses.
9459         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9460         larl operands.
9462 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9464         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9465         the argument in calls to fold_truth_not_expr.
9467 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9469         * tree.c (record_node_allocation_statistics): New function.
9470         (make_node_stat, copy_node_stat, build_string): Call it.
9471         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9472         (build1_stat, build_omp_clause): Likewise.
9474 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9476         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9477         last commit.
9479 2011-03-24  Richard Guenther  <rguenther@suse.de>
9481         PR tree-optimization/48271
9482         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9483         blocks that still exist.
9485 2011-03-24  Richard Guenther  <rguenther@suse.de>
9487         PR tree-optimization/48270
9488         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9489         not free datarefs before ddrs.
9491 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9493         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9494         from the address built for a reference with variable offset.
9496 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9498         PR target/48237
9499         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9500         alternatives that can be handled with movq or movabsq insn.
9501         (*movdf_internal): Disable for !TARGET_64BIT.
9502         (*movdf_internal_nointeger): Ditto.
9503         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9505 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9507         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9508         (FUNCTION_ARG_ADVANCE): Likewise.
9509         * tm.texi.in: Change references to them to hook references.
9510         * tm.texi: Regenerate.
9511         * targhooks.c (default_function_arg): Eliminate check for target macro.
9512         (default_function_incoming_arg): Likewise.
9513         (default_function_arg_advance): Likewise.
9514         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9515         (function_arg_advance): Likewise.
9516         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9518 2011-03-24  Richard Guenther  <rguenther@suse.de>
9520         PR middle-end/48269
9521         * tree-object-size.c (addr_object_size): Do not double-account
9522         for MEM_REF offsets.
9524 2011-03-24  Diego Novillo  <dnovillo@google.com>
9526         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9527         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9528         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9529         Update all users.
9530         (lto_input_string): Rename from input_string.  Make extern.
9531         Update all users.
9532         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9533         output_string_with_length.
9534         Output 0 to indicate a non-NULL string.  Update all callers to
9535         not emit 0.
9536         (lto_output_string): Rename from output_string.  Make extern.
9537         Update all users.
9538         (lto_output_decl_state_streams): Make extern.
9539         (lto_output_decl_state_refs): Make extern.
9540         * lto-streamer.h (lto_input_string): Declare.
9541         (lto_input_data_block): Declare.
9542         (lto_output_string): Declare.
9543         (lto_output_string_with_length): Declare.
9544         (lto_output_decl_state_streams): Declare.
9545         (lto_output_decl_state_refs): Declare.
9547 2011-03-24  Richard Guenther  <rguenther@suse.de>
9549         PR tree-optimization/46562
9550         * tree.c (build_invariant_address): New function.
9551         * tree.h (build_invariant_address): Declare.
9552         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9553         a renamed function moved ...
9554         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9555         Take valueization callback parameter.
9556         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9557         * gimple-fold.h: New file.
9558         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9559         (ccp_fold, fold_const_aggregate_ref,
9560         fold_ctor_reference, fold_nonarray_ctor_reference,
9561         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9562         get_base_constructor): Move ...
9563         * gimple-fold.c: ... here.
9564         (gimple_fold_stmt_to_constant_1): New function
9565         split out from ccp_fold.  Take a valueization callback parameter.
9566         Valueize all operands.
9567         (gimple_fold_stmt_to_constant): New wrapper function.
9568         (fold_const_aggregate_ref_1): New function split out from
9569         fold_const_aggregate_ref.  Take a valueization callback parameter.
9570         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9571         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9572         invariant POINTER_PLUS_EXPRs to invariant form.
9573         (vn_valueize): New function.
9574         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9575         * tree-vrp.c (vrp_valueize): New function.
9576         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9577         to fold statements to constants.
9578         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9579         function declarations.
9580         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9581         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9583 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9585         * config/h8300/predicates.md (jump_address_operand): Fix register
9586         mode check.
9588 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9590         * doc/invoke.texi (max-stores-to-sink): Document.
9591         * params.h (MAX_STORES_TO_SINK): Define.
9592         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9593         if either vectorization or if-conversion is disabled.
9594         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9595         tree-vect-data-refs.c vect_equal_offsets.
9596         (dr_equal_offsets_p): New function.
9597         (find_data_references_in_bb): Remove static.
9598         * tree-data-ref.h (find_data_references_in_bb): Declare.
9599         (dr_equal_offsets_p): Likewise.
9600         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9601         (vect_drs_dependent_in_basic_block): Update calls to
9602         vect_equal_offsets.
9603         (vect_check_interleaving): Likewise.
9604         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9605         (cond_if_else_store_replacement): Rename to...
9606         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9607         documentation.
9608         (cond_if_else_store_replacement): New function.
9609         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9610         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9612 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9614         PR target/46934
9615         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9616         to subtract lower bound instead of GEN_INT().
9618 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9620         PR other/48179
9621         PR other/48221
9622         PR other/48234
9623         * doc/extend.texi (Alignment): Move section to match order in TOC.
9624         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9625         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9627 2011-03-23  Jeff Law  <law@redhat.com>
9629         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9630         before removing the edge.
9632         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9633         it may have been freed by redirect_branch_edge or
9634         redirect_edge_succ_nodup.
9636 2011-03-23  Richard Guenther  <rguenther@suse.de>
9638         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9639         (check_va_list_escapes): Likewise.
9640         (check_all_va_list_escapes): Likewise.
9642 2011-03-23  Richard Guenther  <rguenther@suse.de>
9644         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9645         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9646         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9647         (alias.o): Likewise.
9648         (ipa-type-escape.o): Remove.
9649         (ipa-struct-reorg.o): Likewise.
9650         (GTFILES): Remove ipa-struct-reorg.c.
9651         * alias.c: Do not include ipa-type-escape.h.
9652         * tree-ssa-alias.c: Likewise.
9653         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9654         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9655         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9656         and ipa-type-escape passes.
9657         * tree-pass.h (pass_ipa_type_escape): Remove.
9658         (pass_ipa_struct_reorg): Likewise.
9659         * ipa-struct-reorg.h: Remove.
9660         * ipa-struct-reorg.c: Likewise.
9661         * ipa-type-escape.h: Likewise.
9662         * ipa-type-escape.c: Likewise.
9663         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9664         (--param struct-reorg-cold-struct-ratio): Likewise.
9665         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9666         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9667         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9669 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9671         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9672         cpu attribute value.
9673         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9674         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9675         * config/s390/s390.c (processor_flags_table): New constant array.
9676         (s390_handle_arch_option): Remove.
9677         (s390_handle_option): Remove s390_handle_arch_option invocations
9678         and OPT_mwarn_framesize_ handling.
9679         (s390_option_override): Remove s390_handle_arch_option invocation.
9680         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9681         warnings.
9682         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9683         * config/s390/s390.opt (s390_tune, s390_arch)
9684         (march=): Replace s390_arch_option enum and values with
9685         processor_type.  Set variable name to s390_arch.  Set
9686         initialization value.
9687         (mtune=): Replace s390_arch_option with processor_type.  Set
9688         variable name to s390_tune.  Set initialization value.
9690 2011-03-23  Julian Brown  <julian@codesourcery.com>
9692         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9693         accesses which are not naturally aligned.
9695 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9697         PR target/47553
9698         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9700 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9702         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9703         parameter from "int" to "enum insn_code".
9704         (expand_operand_type): New enum.
9705         (expand_operand): New structure.
9706         (create_expand_operand): New function.
9707         (create_fixed_operand, create_output_operand): Likewise
9708         (create_input_operand, create_convert_operand_to): Likewise.
9709         (create_convert_operand_from, create_address_operand): Likewise.
9710         (create_integer_operand): Likewise.
9711         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9712         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9713         (expand_insn, expand_jump_insn): Likewise.
9714         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9715         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9716         (expand_movstr, expand_builtin___clear_cache): Likewise.
9717         (expand_builtin_lock_release): Likewise.
9718         * explow.c (allocate_dynamic_stack_space): Likewise.
9719         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9720         and use the default handling in that case.
9721         * expmed.c (check_predicate_volatile_ok): Delete.
9722         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9723         (emit_cstore): Likewise.
9724         * expr.c (emit_block_move_via_movmem): Likewise.
9725         (set_storage_via_setmem, expand_assignment): Likewise.
9726         (emit_storent_insn, try_casesi): Likewise.
9727         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9728         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9729         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9730         (expand_twoval_unop, expand_twoval_binop): Likewise.
9731         (expand_unop_direct, emit_indirect_jump): Likewise.
9732         (emit_conditional_move, vector_compare_rtx): Likewise.
9733         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9734         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9735         (expand_sync_lock_test_and_set): Likewise.
9736         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9737         (emit_unop_insn): Likewise.
9738         (expand_copysign_absneg): Change icode to an insn_code.
9739         (create_convert_operand_from_type): New function.
9740         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9741         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9742         (expand_insn, expand_jump_insn): Likewise.
9743         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9744         than const_int_operand for operand 2.
9746 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9748         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9749         if possible.
9751 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9753         * emit-rtl.c (emit_pattern_before_noloc): New function.
9754         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9755         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9756         (emit_pattern_after_noloc): New function.
9757         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9758         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9760 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9762         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9763         (__ffsDI2): Likewise.
9765 2011-03-22  Richard Henderson  <rth@redhat.com>
9767         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9768         of !TARGET_ABI_OPEN_VMS.
9769         (alpha_trampoline_init, alpha_start_function): Likewise.
9770         (alpha_expand_epilogue, alpha_file_start): Likewise.
9771         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9772         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9773         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9774         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9775         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9777 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9779         * config/s390/s390-opts.h: New.
9780         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9781         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9782         s390_stack_guard): Remove.
9783         (s390_handle_arch_option): Return void.  Take enum
9784         s390_arch_option value instead of string and searching array.
9785         (s390_handle_option): Don't assert that global structures are in
9786         use.  Access variables via opts pointer.  Use error_at.  Don't use
9787         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9788         s390_handle_arch_option.
9789         (s390_option_override): Update call to s390_handle_arch_option.
9790         (s390_emit_prologue): Use %d format for s390_stack_size in
9791         diagnostic.  Use %wd for HOST_WIDE_INT.
9792         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9793         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9794         * config/s390/s390.opt (config/s390/s390-opts.h): New
9795         HeaderInclude entry.
9796         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9797         s390_arch_flags, s390_warn_framesize): New Variable entries.
9798         (s390_arch_option): New Enum and EnumValue entries.
9799         (march=): Use Enum instead of Var.
9800         (mstack-guard=, mstack-size=): Use UInteger and Var.
9801         (mtune=): Use Enum.
9803 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9805         * config/score/score.c (score_handle_option): Don't assert that
9806         global structures are in use.  Access target_flags via opts
9807         pointer.  Use value of -march= option to determine target_flags
9808         settings.
9809         * config/score/score.opt (march=): Use Enum.
9810         (score_arch): New Enum and EnumValue entries.
9812 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9814         * config/mep/mep.c (option_mtiny_specified): Remove.
9815         (mep_option_override): Move register handling for -mivc2 from
9816         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9817         instead of option_mtiny_specified.
9818         (mep_handle_option): Access target_flags via opts pointer.  Don't
9819         assert that global structures are in use.  Defer part of -mivc2
9820         handling and move it to mep_option_override.
9821         * config/mep/mep.opt (IVC2): New Mask entry.
9822         (mivc2): Use Var and Defer instead of Mask.
9824 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9826         * config/v850/v850-opts.h: New.
9827         * config/v850/v850.c (small_memory): Replace with
9828         small_memory_physical_max array.  Make that array static const.
9829         (v850_handle_memory_option): Take integer value of argument.  Take
9830         gcc_options pointer, option text and location.  Return void.
9831         Update for changes to small memory structures.
9832         (v850_handle_option): Access target_flags via opts pointer.  Don't
9833         assert that global structures are in use.  Update calls to
9834         v850_handle_memory_option.
9835         (v850_encode_data_area): Update references to small memory settings.
9836         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9837         (enum small_memory_type): Move to v850-opts.h.
9838         * config/v850/v850.opt (config/v850/v850-opts.h): New
9839         HeaderInclude entry.
9840         (small_memory_max): New Variable entry.
9841         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9842         (mtda, mzda): Likewise.
9844 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9846         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9847         pointer.  Don't assert that global structures are in use.
9849 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9851         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9852         via opts pointer.  Don't assert that global structures are in use.
9854 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9856         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9857         (munix=93): Use Var.
9858         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9859         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9860         * config/pa/pa-opts.h: New.
9861         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9862         (pa_handle_option): Don't assert that global structures are in
9863         use.  Access target_flags via opts pointer.  Don't handle
9864         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9865         OPT_munix_98 here.
9866         (pa_option_override): Handle deferred OPT_mfixed_range_.
9868 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9870         * config/mn10300/mn10300-opts.h: New.
9871         * config/mn10300/mn10300.c (mn10300_processor,
9872         mn10300_tune_string): Remove.
9873         (mn10300_handle_option): Don't assert that global structures are
9874         in use.  Access mn10300_processor via opts pointer.  Don't handle
9875         OPT_mtune_ here.
9876         * config/mn10300/mn10300.h (enum processor_type): Move to
9877         mn10300-opts.h.
9878         (mn10300_processor): Remove.
9879         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9880         HeaderInclude entry.
9881         (mn10300_processor): New Variable entry.
9882         (mtune=): Use Var.
9884 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9886         * config/microblaze/microblaze.c: Don't include opts.h.
9887         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9888         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9889         (mno-clearbss): Use Var and Warn.
9891 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9893         * config/m32r/m32r-opts.h: New.
9894         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9895         (m32r_handle_option): Don't assert that global structures are in
9896         use.  Access target_flags and m32r_cache_flush_func via opts
9897         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9898         OPT_mno_flush_trap here.
9899         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9900         include of m32r-opts.h.
9901         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9902         HeaderInclude entry.
9903         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9904         (mmodel=): Use Enum and Var.
9905         (m32r_model): New Enum and EnumValue entries.
9906         (mno-flush-trap): Use Var.
9907         (msdata=): Use Enum and Var.
9908         (m32r_sdata): New Enum and EnumValue entries.
9910 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9912         * config/m32c/m32c.c: Don't include opts.h.
9913         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9914         m32c_handle_option): Remove.
9915         (m32c_option_override): Check global_options_set.x_target_memregs
9916         instead of target_memregs_set.
9917         * config/m32c/m32c.h (target_memregs): Remove.
9918         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9919         variable.
9921 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9923         * config/iq2000/iq2000-opts.h: New.
9924         * config/iq2000/iq2000.c: Don't include opts.h.
9925         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9926         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9927         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9928         HeaderInclude entry.
9929         (iq2000_tune): New Variable entry.
9930         (march=): Add comment.  Use Enum.
9931         (iq2000_arch): New Enum and EnumValue entries.
9932         (mcpu=): Use Enum and Var.
9933         (iq2000_tune): New Enum and EnumValue entries.
9935 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9937         * config/ia64/ia64-opts.h: New.
9938         * config/ia64/ia64.c (ia64_tune): Remove.
9939         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9940         here.  Use error_at.
9941         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9942         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9943         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9944         HeaderInclude entry.
9945         (ia64_tune): New Variable entry.
9946         (mfixed-range=): Use Defer and Var.
9947         (mtune=): Use Enum and Var.
9948         (ia64_tune): New Enum and EnumValue entries.
9950 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9952         * config/frv/frv-opts.h: New.
9953         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9954         frv-opts.h.
9955         (frv_cpu_type): Remove.
9956         * config/frv/frv.c: Don't include opts.h.
9957         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9958         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9959         (frv_cpu_type): New Variable entry.
9960         (frv_cpu): New Enum and EnumValue entries.
9962 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9964         * config/cris/cris.c (cris_handle_option): Access target_flags via
9965         opts pointer.  Don't assert that global structures are in use.
9966         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9967         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9969 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9971         * config/bfin/bfin-opts.h: New.
9972         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9973         bfin_si_revision, bfin_workarounds): Remove.
9974         (bfin_cpus): Make static const.
9975         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9976         not bfin_lib_id_given.
9977         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9978         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9979         pointer. Use error_at.  Don't assert that global structures are in use.
9980         * config/bfin/bfin.h: Include bfin-opts.h.
9981         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9982         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9983         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9984         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9985         entries.
9987 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9989         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9990         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9991         or -msoft-float here.
9992         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9993         -msoft-float and -mhard-float.
9994         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9995         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9996         msoft-float.
9997         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9998         -msoft-float.
9999         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10000         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10001         not mhard-float.
10002         (LIBGCC_SPEC): Don't handle -msoft-float.
10003         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10004         -mhard-float.
10005         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10006         msoft-float.
10007         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10008         -mfloat-abi=*, not -msoft-float and -mhard-float.
10009         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10010         -msoft-float.
10011         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10012         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10013         mhard-float and msoft-float.
10014         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10015         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10016         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10017         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10018         mhard-float.
10019         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10020         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10021         msoft-float.
10022         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10023         not mhard-float.
10024         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10025         not msoft-float.
10027 2011-03-22  Richard Henderson  <rth@redhat.com>
10029         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10030         TARGET_ABI_WINDOWS_NT.
10031         (alpha_output_function_end_prologue): Likewise.
10032         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10033         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10034         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10035         (trap, *movsi_nt_vms): Likewise.
10036         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10037         (*tablejump_osf_nt_internal): Remove.
10038         * config/alpha/predicates.md (input_operand): Only test Pmode.
10040 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10042         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10043         via opts pointer.  Use error_at.  Don't assert that global
10044         structures are in use.
10046 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10048         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10049         (ix86_handle_option): Access ix86_isa_flags and
10050         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10051         global structures are in use.
10052         (ix86_function_specific_save, ix86_function_specific_restore):
10053         Update ix86_isa_flags_explicit field name.
10054         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10055         (ix86_isa_flags_explicit): Rename TargetSave entry to
10056         x_ix86_isa_flags_explicit.
10058 2011-03-22  Richard Henderson  <rth@redhat.com>
10060         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10061         (alpha_option_override, direct_return): Likewise.
10062         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10063         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10064         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10065         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10066         (alpha_expand_epilogue, alpha_end_function): Likewise.
10067         (alpha_init_libfuncs): Likewise.
10068         (struct machine_function): Remove unicosmk members.
10069         (print_operand) ['t']: Remove.
10070         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10071         unicosmk_output_module_name, unicosmk_output_common,
10072         current_section_align, unicosmk_output_text_section_asm_op,
10073         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10074         unicosmk_section_type_flags, unicosmk_unique_section,
10075         unicosmk_asm_named_section, unicosmk_insert_attributes,
10076         unicosmk_output_align, unicosmk_defer_case_vector,
10077         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10078         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10079         unicosmk_output_ssib, unicosmk_add_call_info_word,
10080         unicosmk_extern_head, unicosmk_output_default_externs,
10081         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10082         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10083         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10084         * config/alpha/alpha-protos.h: Update.
10085         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10086         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10087         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10088         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10089         (*mulsi_se, mulvsi3): Likewise.
10090         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10091         (*divmodsi_internal, call, call_value, realign): Likewise.
10092         (moddi3, umoddi3): Likewise; remove duplicate expander.
10093         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10094         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10095         (*movdi_nofix): Remove r/U alternative.
10096         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10097         * config/alpha/constraints.md ("U"): Remove.
10098         * config/alpha/predicates.md (call_operand"): Don't test
10099         TARGET_ABI_UNICOSMK.
10101 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10103         * target.def (handle_option): Take gcc_options and
10104         cl_decoded_option pointers and location_t.
10105         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10106         * doc/tm.texi: Regenerate.
10107         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10108         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10109         * lto-opts.c (lto_reissue_options): Generate option structure for
10110         targetm.handle_option call.
10111         * opts.c (target_handle_option): Update call to
10112         targetm.handle_option.  Remove assertions about values now passed
10113         down to hook.
10114         * targhooks.c (default_target_handle_option): New.
10115         * targhooks.h (default_target_handle_option): Declare.
10116         * config/alpha/alpha.c: Include opts.h.
10117         (alpha_handle_option): Update to new hook interface.
10118         * config/arm/arm.c: Include opts.h.
10119         (arm_handle_option): Update to new hook interface.
10120         * config/arm/t-arm (arm.o): Update dependencies.
10121         * config/bfin/bfin.c: Include opts.h.
10122         (bfin_handle_option): Update to new hook interface.
10123         * config/cris/cris.c: Include opts.h.
10124         (cris_handle_option): Update to new hook interface.
10125         * config/frv/frv.c: Include opts.h.
10126         (frv_handle_option): Update to new hook interface.
10127         * config/i386/i386.c: Include opts.h.
10128         (ix86_handle_option): Update to new hook interface.
10129         (ix86_valid_target_attribute_inner_p): Generate option structure
10130         for call to ix86_handle_option.
10131         * config/i386/t-i386 (i386.o): Update dependencies.
10132         * config/ia64/ia64.c: Include opts.h.
10133         (ia64_handle_option): Update to new hook interface.
10134         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10135         * config/iq2000/iq2000.c: Include opts.h.
10136         (iq2000_handle_option): Update to new hook interface.
10137         * config/m32c/m32c.c: Include opts.h.
10138         (m32c_handle_option): Update to new hook interface.
10139         * config/m32r/m32r.c: Include opts.h.
10140         (m32r_handle_option): Update to new hook interface.
10141         * config/m68k/m68k.c: Include opts.h.
10142         (m68k_handle_option): Update to new hook interface.
10143         * config/mep/mep.c: Include opts.h.
10144         (mep_handle_option): Update to new hook interface.
10145         * config/microblaze/microblaze.c: Include opts.h.
10146         (microblaze_handle_option): Update to new hook interface.
10147         * config/mips/mips.c: Include opts.h.
10148         (mips_handle_option): Update to new hook interface.
10149         * config/mn10300/mn10300.c: Include opts.h.
10150         (mn10300_handle_option): Update to new hook interface.
10151         * config/pa/pa.c: Include opts.h.
10152         (pa_handle_option): Update to new hook interface.
10153         * config/pdp11/pdp11.c: Include opts.h.
10154         (pdp11_handle_option): Update to new hook interface.
10155         * config/rs6000/rs6000.c: Include opts.h.
10156         (rs6000_handle_option): Update to new hook interface.
10157         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10158         * config/rx/rx.c: Include opts.h.
10159         (rx_handle_option): Update to new hook interface.
10160         * config/s390/s390.c: Include opts.h.
10161         (s390_handle_option): Update to new hook interface.
10162         * config/score/score.c: Include opts.h.
10163         (score_handle_option): Update to new hook interface.
10164         * config/sh/sh.c: Include opts.h.
10165         (sh_handle_option): Update to new hook interface.
10166         * config/sparc/sparc.c: Include opts.h.
10167         (sparc_handle_option): Update to new hook interface.
10168         * config/v850/v850.c: Include opts.h.
10169         (v850_handle_option): Update to new hook interface.
10171 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10173         * gcc.c (driver_unknown_option_callback): Only permit and save
10174         unknown -Wno- options.
10175         (driver_wrong_lang_callback): Save options directly instead of via
10176         driver_unknown_option_callback.
10178 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10180         * combine.c (simplify_set): Try harder to find the best CC mode when
10181         simplifying a nested COMPARE on the RHS.
10183 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10185         * config/alpha/gnu.h: Remove.
10186         * config/arc: Remove directory.
10187         * config/arm/netbsd.h: Remove.
10188         * config/arm/t-pe: Remove.
10189         * config/crx: Remove directory.
10190         * config/i386/netbsd.h: Remove.
10191         * config/m68hc11: Remove directory.
10192         * config/m68k/uclinux-oldabi.h: Remove.
10193         * config/mcore/mcore-pe.h: Remove.
10194         * config/mcore/t-mcore-pe: Remove.
10195         * config/netbsd-aout.h: Remove.
10196         * config/rs6000/gnu.h: Remove.
10197         * config/sh/sh-symbian.h: Remove.
10198         * config/sh/symbian-base.c: Remove.
10199         * config/sh/symbian-c.c: Remove.
10200         * config/sh/symbian-cxx.c: Remove.
10201         * config/sh/symbian-post.h: Remove.
10202         * config/sh/symbian-pre.h: Remove.
10203         * config/sh/t-symbian: Remove.
10204         * config/svr3.h: Remove.
10205         * config/vax/netbsd.h: Remove.
10206         * config.build: Don't handle i[34567]86-*-pe.
10207         * config.gcc: Remove handling of deprecations for most deprecated
10208         targets.
10209         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10210         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10211         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10212         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10213         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10214         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10215         Remove cases.
10216         * config.host: Don't handle i[34567]86-*-pe.
10217         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10218         (ASM_SPEC32): Don't handle -mcall-gnu.
10219         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10220         -mcall-gnu.
10221         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10222         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10223         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10224         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10225         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10226         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10227         conditional on SYMBIAN.
10228         * configure.ac: Don't handle powerpc*-*-gnu*.
10229         * configure: Regenerate.
10230         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10231         * doc/install-old.texi (m6811, m6812): Don't mention.
10232         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10233         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10234         (m68k-uclinuxoldabi): Don't mention.
10235         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10236         Remove.
10237         (-mcall-gnu): Remove.
10238         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10239         families): Remove constraint documentation.
10241 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10243         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10244         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10245         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10247 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10249         PR target/48226
10250         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10251         vector when peeking at the next token for vector, don't expand the
10252         keywords.
10254 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10256         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10257         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10258         * config/avr/avr.c (init_cumulative_args)
10259         (avr_function_arg_advance): Use it.
10260         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10261         sibcall epilogues.
10262         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10263         (avr_function_ok_for_sibcall): ...this new function.
10264         (avr_lookup_function_attribute1): New static Function.
10265         (avr_naked_function_p, interrupt_function_p)
10266         (signal_function_p, avr_OS_task_function_p)
10267         (avr_OS_main_function_p): Use it.
10268         * config/avr/avr.md ("sibcall", "sibcall_value")
10269         ("sibcall_epilogue"): New expander.
10270         ("*call_insn", "*call_value_insn"): New insn.
10271         ("call_insn", "call_value_insn"): Remove
10272         ("call", "call_value", "epilogue"): Change expander to handle
10273         sibling calls.
10275 2011-03-21  Nick Clifton  <nickc@redhat.com>
10277         * doc/invoke.texi (Overall Options): Move closing brace to end of
10278         options list.
10279         (Optimization Options): Add missing @gol.
10280         (Directory Options): Likewise.
10281         (i386 and x86-64 Options): Likewise.
10282         (RS6000 and PowerPC Options): Likewise.
10283         (i386 and x86-64 Windows Options): Likewise.
10284         (V850 Options): Add text missing from descriptions.
10286 2011-03-22  Richard Henderson  <rth@redhat.com>
10288         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10289         (avr_incoming_return_addr_rtx): New.
10290         (emit_push_byte): New.
10291         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10292         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10293         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10294         (emit_pop_byte): New.
10295         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10296         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10297         (INCOMING_RETURN_ADDR_RTX): New.
10298         (INCOMING_FRAME_SP_OFFSET): New.
10299         (ARG_POINTER_CFA_OFFSET): New.
10300         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10301         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10302         (pophi): Remove.
10304         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10306 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10308         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10309         (FUNCTION_ARG_ADVANCE): Likewise.
10310         * tm.texi.in: Change references to them to hook references.
10311         * tm.texi: Regenerate.
10312         * targhooks.c (default_function_arg): Eliminate check for target
10313         macro.
10314         (default_function_incoming_arg): Likewise.
10315         (default_function_arg_advance): Likewise.
10316         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10317         (function_arg_advance): Likewise.
10318         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10320 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10322         * tree.c (build_call_1): New function.
10323         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10325 2011-03-22  Richard Guenther  <rguenther@suse.de>
10327         PR tree-optimization/48228
10328         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10329         for single-arg PHIs.
10331 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10333         PR rtl-optimization/48143
10334         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10335         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10336         sse2_cvtps2pd): Likewise.
10338 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10340         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10342 2011-03-22  Richard Guenther  <rguenther@suse.de>
10344         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10345         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10346         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10347         and REALIGN_LOAD_EXPR.
10348         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10349         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10350         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10351         DOT_PROD_EXPR case ...
10352         (expand_expr_real_2): ... here.
10353         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10354         and REALIGN_LOAD_EXPR.
10355         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10356         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10357         (vect_create_epilog_for_reduction): Likewise.
10358         (vectorizable_reduction): Likewise.
10359         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10360         * tree-vect-stmts.c (vectorizable_load): Likewise.
10362 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10364         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10366 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10368         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10369         handling for PLTOFF/GOTOFF.
10371 2011-03-22  Nick Clifton  <nickc@redhat.com>
10373         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10374         trailing backslash from the end of the macro definition.
10376 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10378         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10379         and PLT unspecs.
10381 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10383         * expr.h (prepare_operand): Move to...
10384         * optabs.h (prepare_operand): ...here and change the insn code
10385         parameter from "int" to "enum insn_code".
10386         (insn_operand_matches): Declare.
10387         * expr.c (init_expr_target): Use insn_operand_matches.
10388         (compress_float_constant): Likewise.
10389         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10390         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10391         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10392         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10393         Likewise.
10394         (gen_cond_trap): Likewise.
10395         (prepare_operand): Likewise.  Change icode to an insn_code.
10396         (insn_operand_matches): New function.
10397         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10398         * reload1.c (gen_reload): Likewise.
10399         * targhooks.c (default_secondary_reload): Likewise.
10401 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10403         * config/alpha/alpha.md (unspec): New define_c_enum.
10404         (unspecv): Ditto.
10406 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10408         PR debug/48214
10409         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10410         between a call and its CALL_ARG_LOCATION note.
10412 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10414         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10416 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10418         PR c/42544
10419         PR c/48197
10420         * c-common.c (shorten_compare): If primopN is first sign-extended
10421         to opN and then zero-extended to result type, set primopN to opN.
10423 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10425         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10426         for barrier handlers.
10428 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10430         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10431         UNSPEC constants to be in the unspec enumeration, and redefine
10432         all UNSPECV constants to be in the unspecv enumeration, so that
10433         dumps print which unspec/unspec_volatile this is.
10434         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10435         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10436         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10437         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10438         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10440         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10441         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10442         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10443         * config/rs6000/sync.md (isync, lwsync): Ditto.
10445 2011-03-21  Richard Guenther  <rguenther@suse.de>
10447         * params.def (lto-min-partition): Fix typo.
10449 2011-03-21  Richard Guenther  <rguenther@suse.de>
10451         PR c/47939
10452         * c-decl.c (grokdeclarator): Drop to the main variant only
10453         for array types.  Drop flag_gen_aux_info check.
10455 2011-03-21  Richard Guenther  <rguenther@suse.de>
10457         PR translation/47911
10458         * params.def (lto-partitions): Fix typo.
10459         (lto-min-partition): Fix wording.
10461 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10463         * config/rs6000/t-freebsd: Remove duplication from file.
10465 2011-03-21  Richard Guenther  <rguenther@suse.de>
10467         PR middle-end/47661
10468         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10470 2011-03-21  Richard Guenther  <rguenther@suse.de>
10472         PR lto/48210
10473         * params.def (lto-partitions): Require at least 1 partition.
10475 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10477         * gthr-solaris.h: Remove.
10478         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10479         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10480         (LIB_SPEC): Likewise.
10481         * config/sol2.opt (threads): Remove.
10482         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10483         (sparc*-*-solaris2*): Likewise.
10484         * configure.ac (enable_threads): Enable solaris support.
10485         * configure: Regenerate.
10486         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10487         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10488         solaris.
10490 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10492         * config.gcc: Obsolete *-*-solaris2.8*.
10493         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10495 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10497         PR bootstrap/48135
10498         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10499         reference.  Solaris 8 perl works.
10501 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10503         PR bootstrap/48135
10504         * doc/install.texi (Prerequisites): Move jar etc. up.
10505         Explain support library version requirements.
10507 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10509         PR bootstrap/48135
10510         * doc/install.texi (Prerequisites): Move Perl to build
10511         requirements.  Always necessary on Solaris 2 with Sun ld.
10513 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10515         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10516         binutils 2.21.
10517         (Specific, i?86-*-solaris2.[89]): Likewise.
10518         (Specific, i?86-*-solaris2.10): Likewise.
10519         (Specific, mips-sgi-irix6): Likewise.
10520         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10521         Update for binutils 2.21.
10523 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10525         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10526         Allow -fuse-linker-plugin for non-default plugin linker.
10527         * configure: Regenerate.
10529 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10531         PR bootstrap/48167
10532         * gengtype.c (files_rules): Added rule for cp/parser.h.
10534 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10536         PR target/48213
10537         * config/s390/s390.c (s390_delegitimize_address): Don't call
10538         lowpart_subreg if orig_x has BLKmode.
10540 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10542         PR target/12171
10543         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10544         * tree.h (attribute_spec): Add new member affects_type_identity.
10545         * attribs.c (empty_attribute_table): Adjust attribute_spec
10546         initializers.
10547         * config/alpha/alpha.c: Likewise.
10548         * config/arc/arc.c: Likewise.
10549         * config/arm/arm.c: Likewise.
10550         * config/avr/avr.c: Likewise.
10551         * config/bfin/bfin.c: Likewise.
10552         * config/crx/crx.c: Likewise.
10553         * config/darwin.h: Likewise.
10554         * config/h8300/h8300.c: Likewise.
10555         * config/i386/cygming.h: Likewise.
10556         * config/i386/i386.c: Likewise.
10557         * config/ia64/ia64.c: Likewise.
10558         * config/m32c/m32c.c: Likewise.
10559         * config/m32r/m32r.c: Likewise.
10560         * config/m68hc11/m68hc11.c: Likewise.
10561         * config/m68k/m68k.c: Likewise.
10562         * config/mcore/mcore.c: Likewise.
10563         * config/mep/mep.c: Likewise.
10564         * config/microblaze/microblaze.c: Likewise.
10565         * config/mips/mips.c: Likewise.
10566         * config/rs6000/rs6000.c: Likewise.
10567         * config/rx/rx.c: Likewise.
10568         * config/sh/sh.c: Likewise.
10569         * config/sol2.h: Likewise.
10570         * config/sparc/sparc.c: Likewise.
10571         * config/spu/spu.c: Likewise.
10572         * config/stormy16/stormy16.c: Likewise.
10573         * config/v850/v850.c: Likewise.
10575 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10577         * simplify-rtx.c (simplify_binary_operation_1): Handle
10578         (xor (and A B) C) case when B and C are both constants.
10580 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10582         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10584 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10586         PR bootstrap/48168
10587         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10589 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10591         PR rtl-optimization/48156
10592         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10593         assume df and df_lr are not NULL.
10595 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10597         PR debug/48023
10598         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10599         between a call and its CALL_ARG_LOCATION note.
10601 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10603         PR debug/48178
10604         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10605         between a call and its corresponding CALL_ARG_LOCATION note.
10607 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10609         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10610         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10611         * haifa-sched.c (setup_ref_regs): Ditto.
10612         * caller-save.c (add_used_regs_1): Ditto.
10613         * dse.c (look_for_hardregs): Ditto.
10614         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10615         * sched-rgn.c (check_live_1): Ditto.
10617 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10619         * c-decl.c (diagnose_mismatched_decls): Give an error for
10620         redefining a typedef with variably modified type.
10622 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10624         * c-decl.c (grokfield): Don't allow typedefs for structures or
10625         unions with no tag by default.
10626         * doc/extend.texi (Unnamed Fields): Update.
10628 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10630         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10631         Rewrite using indirect functions.
10632         (lwp_slwpcb): Ditto.
10633         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10634         (avx_vinsertf128<mode>): Ditto.
10636 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10638         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10639         unspecs.
10641 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10643         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10644         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10646 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10648         PR rtl-optimization/48170
10649         * gcse.c (hoist_code): Remove bogus asserts.
10651 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10653         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10654         computation for prologue/epilogue.
10656 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10658         * Makefile.in (check-consistency): Remove.
10660 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10662         PR debug/48176
10663         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10664         arange_table_in_use is 0, but either text_section_used or
10665         cold_text_section_used is true.  Don't call it if
10666         !info_section_emitted.
10668 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10670         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10671         FUNCTION_VALUE_REGNO_P): Remove.
10672         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10673         Remove.
10674         * config/avr/avr.c (avr_ret_register): Make static inline.
10675         (avr_function_value_regno_p): New function.
10676         (avr_libcall_value): Make static. Add 'func' argument.
10677         (avr_function_value): Make static. Rename 'func' argument to
10678         'fn_decl_or_type', forward it to avr_libcall_value. Call
10679         avr_ret_register function instead of RET_REGISTER macro.
10680         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10682 2011-03-18  Jason Merrill  <jason@redhat.com>
10684         PR c++/23372
10685         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10687 2011-03-18  Richard Guenther  <rguenther@suse.de>
10689         * doc/install.texi (--enable-gold): Remove.
10690         (--with-plugin-ld): Document.
10691         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10693 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10695         PR middle-end/47790
10696         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10697         again after expansion changes.
10699 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10701         * combine.c (try_combine): Do simplification only call of
10702         subst() on i2 even when i1 is present. Update comments.
10704 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10706         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10707         and UNSPEC_PCREL_SYMOFF.
10709 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10711         * config/s390/s390.md: Use define_c_enum for the unspec constant
10712         definitions.
10714 2011-03-18  Richard Henderson  <rth@redhat.com>
10715             Jakub Jelinek  <jakub@redhat.com>
10717         PR bootstrap/48161
10718         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10719         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10721 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10723         PR middle-end/47725
10724         * combine.c (cant_combine_insn_p): Don't check zero/sign
10725         extended hard registers.
10727 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10729         PR middle-end/47725
10730         * combine.c (cant_combine_insn_p): Check zero/sign extended
10731         hard registers.
10733 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10735         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10736         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10737         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10738         Change return type to bool.
10739         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10741 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10743         PR debug/48163
10744         * var-tracking.c (prepare_call_arguments): If CALL target
10745         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10746         pc instead of looking it up using cselib_lookup and use
10747         Pmode for it if x has VOIDmode.
10748         * dwarf2out.c (gen_subprogram_die): If also both first and
10749         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10751         PR debug/48163
10752         * function.c (assign_parms): For data.passed_pointer parms
10753         use MEM of data.entry_parm instead of data.entry_parm itself
10754         as DECL_INCOMING_RTL.
10755         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10756         also when passed and declared mode is the same, DECL_RTL
10757         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10758         a MEM too.
10760 2011-03-16  Jeff Law  <law@redhat.com>
10762         PR rtl-optimization/37273
10763         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10764         handle them like argument loads from stack slots.  Do not double
10765         count memory for memory constants and argument loads from stack slots.
10767 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10769         PR debug/48160
10770         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10772 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10774         PR target/48171
10775         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10777 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10779         PR bootstrap/48153
10780         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10781         if dwarf_strict.
10782         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10783         Clear call_arg_locations and call_arg_loc_last always.
10785         PR middle-end/48152
10786         * var-tracking.c (prepare_call_arguments): If argument needs to be
10787         passed by reference, adjust argtype and mode.
10789 2011-03-17  Richard Guenther  <rguenther@suse.de>
10791         PR middle-end/48134
10792         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10793         a value make sure to fold the statement.
10795 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10797         PR target/43872
10798         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10799         return condition with !cfun->calls_alloca.
10801 2011-03-17  Richard Guenther  <rguenther@suse.de>
10803         PR bootstrap/48148
10804         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10805         origin for decls in other ltrans units.
10806         (input_varpool_node): Likewise.
10808 2011-03-17  Richard Guenther  <rguenther@suse.de>
10810         PR middle-end/48165
10811         * tree-object-size.c (compute_object_offset): Properly return
10812         the offset operand of MEM_REFs as sizetype.
10814 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10816         PR rtl-optimization/48141
10817         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10818         * dse.c: Include params.h.
10819         (active_local_stores_len): New variable.
10820         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10821         to NULL.
10822         (record_store, check_mem_read_rtx): Decrease it when removing
10823         from the chain.
10824         (scan_insn): Likewise.  Increase it when adding to chain, if it
10825         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10826         set active_local_stores to NULL before the addition.
10827         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10829         PR rtl-optimization/48141
10830         * dse.c (record_store): If no positions are needed in an insn
10831         that cannot be deleted, at least unchain it from active_local_stores.
10833 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10835         PR debug/47510
10836         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10837         (lookup_type_die_strip_naming_typedef): ... here.
10838         (get_context_die): Use it.
10839         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10840         the anonymous struct named by the naming typedef.
10842 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10844         PR target/48154
10845         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10846         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10848 2011-03-16  Jeff Law  <law@redhat.com>
10850         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10851         check for operands of conditional.  Allow type to be a pointer.
10853 2011-03-16  Richard Guenther  <rguenther@suse.de>
10855         PR tree-optimization/48149
10856         * fold-const.c (fold_binary_loc): Fold
10857         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10859 2011-03-16  Richard Guenther  <rguenther@suse.de>
10861         PR tree-optimization/26134
10862         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10863         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10864         (non_rewritable_mem_ref_base): Handle complex type component
10865         accesses, constrain offsets for vector and complex extracts
10866         more properly.
10868 2011-03-16  Richard Guenther  <rguenther@suse.de>
10870         PR tree-optimization/48146
10871         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10872         operands avoiding the need for renaming.
10874 2011-03-16  Richard Guenther  <rguenther@suse.de>
10876         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10877         constant folding.  Move MEM_REF canonicalization first.
10878         Rely on fold_const_aggregate_ref for initializer folding.
10879         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10881 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10883         PR middle-end/48136
10884         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10885         arg0/arg1 or their arguments are always fold converted to matching
10886         types.
10888         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10889         to nargs.
10891 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10893         PR lto/46944
10894         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10895         Handle in-tree gold.
10896         (ld_vers): Extract binutils version for gold.
10897         (gcc_cv_ld_hidden): Handle gold here.
10898         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10899         * configure: Regenerate.
10900         * config.in: Regenerate.
10901         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10902         -fuse-linker-plugin otherwise.
10903         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10904         (LINK_COMMAND_SPEC): Use it.
10905         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10907 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10909         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10910         * calls.c: Remove debug.h include.
10911         (emit_call_1): Don't call virtual_call_token debug hook.
10912         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10913         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10914         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10915         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10916         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10917         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10918         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10919         dwarf2out_virtual_call): Remove.
10920         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10921         copy_call_info and virtual_call hooks.
10922         (dwarf2out_init): Don't initialize vcall_insn_table,
10923         debug_dcall_section and debug_vcall_section.
10924         (prune_unused_types): Don't mark nodes from dcall_table.
10925         (dwarf2out_finish): Don't output dcall or vcall tables.
10926         * final.c (final_scan_insn): Don't call direct_call or
10927         virtual_call debug hooks.
10928         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10929         virtual_call_token, copy_call_info and virtual_call hooks.
10930         (debug_nothing_uid): Remove prototype.
10931         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10932         copy_call_info and virtual_call hooks.
10933         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10934         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10935         * debug.c (do_nothing_debug_hooks): Likewise.
10936         (debug_nothing_uid): Remove.
10937         * doc/invoke.texi (-fenable-icf-debug): Remove.
10938         * common.opt (-fenable-icf-debug): Likewise.
10940         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10941         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10942         call's MEM.  Handle functions returning aggregate through a hidden
10943         first pointer.  For virtual calls add clobbered pc to call arguments
10944         chain.
10945         * dwarf2out.c (gen_subprogram_die): Emit
10946         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10947         can't be emitted.
10949         PR debug/45882
10950         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10951         * rtl.h (ENTRY_VALUE_EXP): Define.
10952         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10953         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10954         * print-rtl.c (print_rtx): Likewise.
10955         * gengtype.c (adjust_field_rtx_def): Likewise.
10956         * var-tracking.c (vt_add_function_parameter): Adjust
10957         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10958         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10959         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10960         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10961         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10963         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10964         Call var_location debug hook even on CALL_INSNs.
10965         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10966         * rtl.def (ENTRY_VALUE): New.
10967         * dwarf2out.c: Include cfglayout.h.
10968         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10969         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10970         (struct call_arg_loc_node): New type.
10971         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10972         tail_call_site_count): New variables.
10973         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10974         DW_TAG_GNU_call_site_parameter.
10975         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10976         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10977         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10978         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10979         and DW_AT_GNU_all_source_call_sites.
10980         (mem_loc_descriptor): Handle ENTRY_VALUE.
10981         (add_src_coords_attributes): Don't add enything if
10982         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10983         (dwarf2out_abstract_function): Save and clear call_arg_location,
10984         call_site_count and tail_call_site_count around dwarf2out_decl call.
10985         (gen_call_site_die): New function.
10986         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10987         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10988         (dwarf2out_function_decl): Clear call_arg_locations,
10989         call_arg_loc_last, set call_site_count and tail_call_site_count
10990         to -1 and free block_map.
10991         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10992         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10993         followed by any real instructions.
10994         (dwarf2out_begin_function): Set call_site_count and
10995         tail_call_site_count to 0.
10996         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10997         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10998         attempt to force a DIE for it and worst case remove the attribute.
10999         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11000         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11001         the decl itself.
11002         * var-tracking.c: Include tm_p.h.
11003         (vt_stack_adjustments): For calls call note_register_arguments.
11004         (argument_reg_set): New variable.
11005         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11006         ensure the VALUE is resolved.
11007         (call_arguments): New variable.
11008         (prepare_call_arguments): New function.
11009         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11010         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11011         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11012         always use the best expression.
11013         (vt_expand_loc): Add ignore_cur_loc argument.
11014         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11015         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11016         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11017         note for all calls.
11018         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11019         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11020         argument.  Don't call cselib_preserve_only_values and
11021         cselib_reset_table.
11022         (note_register_arguments): New function.
11023         (vt_initialize): Compute argument_reg_set.  Call
11024         vt_add_function_parameters before processing basic blocks instead of
11025         afterwards.  For calls call prepare_call_arguments before calling
11026         cselib_process_insn.
11027         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11028         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11029         (var-tracking.o): Depend on $(TM_P_H).
11030         * cfglayout.h (insn_scope): New prototype.
11031         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11032         * cfglayout.c (insn_scope): No longer static.
11033         * insn-notes.def (CALL_ARG_LOCATION): New.
11034         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11035         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11036         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11037         nothing for DECL_EXTERNAL BLOCK_VARS.
11039 2011-03-16  Alan Modra  <amodra@gmail.com>
11041         PR target/45844
11042         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11043         create invalid offset address for vsx splat insn.
11044         * config/rs6000/predicates.md (splat_input_operand): New.
11045         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11047 2011-03-15  Xinliang David Li  <davidxl@google.com>
11049         PR c/47837
11050         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11051         (normalize_preds): New function.
11052         (is_use_properly_guarded): Normalize def predicates.
11054 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11056         PR target/46788
11057         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11058         in the output template.
11060 2011-03-15  Richard Guenther  <rguenther@suse.de>
11062         PR middle-end/47650
11063         * tree-pretty-print.c (dump_function_declaration): Properly
11064         dump unprototyped and varargs function types.
11066 2011-03-15  Richard Guenther  <rguenther@suse.de>
11068         PR tree-optimization/13954
11069         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11070         and friends.
11072 2011-03-15  Richard Guenther  <rguenther@suse.de>
11074         PR tree-optimization/48037
11075         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11076         selects into BIT_FIELD_REFs.
11077         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11078         vector select.
11080 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11082         PR tree-optimization/48129
11083         * builtins.c (fold_builtin_snprintf): Convert to type of
11084         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11085         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11087 2011-03-15  Richard Guenther  <rguenther@suse.de>
11089         PR tree-optimization/41490
11090         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11091         value but with VUSE.
11092         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11093         return statements.
11094         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11095         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11096         * tree-tailcall.c (find_tail_calls): Ignore returns.
11098 2011-03-15  Richard Guenther  <rguenther@suse.de>
11100         PR middle-end/48031
11101         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11102         or variable-indexed array accesses when in gimple form.
11104 2011-03-15  Richard Guenther  <rguenther@suse.de>
11106         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11108 2011-03-15  Alan Modra  <amodra@gmail.com>
11110         PR target/48032
11111         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11112         presume symbol_refs without a symbol_ref_decl are suitably
11113         aligned, nor other trees we may see here.  Handle anchor symbols.
11114         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11115         Check cmodel=medium addresses.  Adjust all calls.
11116         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11117         creating cmodel=medium optimized access to locals.
11118         * config/rs6000/constraints.md (R): Pass QImode to
11119         legitimate_constant_pool_address_p.
11120         * config/rs6000/predicates.md (input_operand): Pass mode to
11121         legitimate_constant_pool_address_p.
11122         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11123         Update prototype.
11125 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11127         PR target/48053
11128         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11129         64-bit constants being loaded into registers other than GPRs such
11130         as loading 0 into a VSX register.
11132 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11134         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11136 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11138         PR middle-end/47917
11139         * builtins.c (fold_builtin_snprintf): New function.
11140         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11141         (fold_builtin_4): Likewise.
11143         PR middle-end/38878
11144         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11145         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11146         and C - X == X also strip nops from +/-/p+ operand.
11147         When optimizing -X == C, fold C to arg0's type.
11149         PR debug/47946
11150         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11151         emit it as add_AT_int instead of add_AT_unsigned.
11153 2011-03-14  Tom Tromey  <tromey@redhat.com>
11155         * unwind-dw2.c: Include sys/sdt.h if it exists.
11156         (_Unwind_DebugHook): Use STAP_PROBE2.
11157         * config.in, configure: Rebuild.
11158         * configure.ac: Check for sys/sdt.h.
11160 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11162         * config/i386/i386.md (ROUND_FLOOR): New constant.
11163         (ROUND_CEIL): Ditto.
11164         (ROUND_TRUNC): Ditto.
11165         (ROUND_MXCSR): Ditto.
11166         (ROUND_NO_EXC): Ditto.
11167         (rint<mode>2): Use new defines instead of numerical constants.
11168         (floor<mode>2): Ditto.
11169         (ceil<mode>2): Ditto.
11170         (btrunc<mode>2): Ditto.
11171         * config/i386/i386-builtin-types.def: Define ROUND function type
11172         aliases.
11173         * config/i386/i386.c (enum ix86_builtins): Add
11174         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11175         (struct builtin_description): Add
11176         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11177         (ix86_expand_sse_round): New static function.
11178         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11179         function types.
11180         (ix86_builtin_vectorized_function): Handle
11181         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11183 2011-03-14  Tom Tromey  <tromey@redhat.com>
11185         * c-parser.c (c_parser_asm_string_literal): Clear
11186         warn_overlength_strings.
11188 2011-03-14  Tom Tromey  <tromey@redhat.com>
11190         * c-parser.c (disable_extension_diagnostics): Save
11191         warn_overlength_strings.
11192         (restore_extension_diagnostics): Restore warn_overlength_strings.
11194 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11196         * BASE-VER: Change to 4.7.0.
11198 2011-03-14  Richard Guenther  <rguenther@suse.de>
11200         PR middle-end/48098
11201         * tree.c (build_vector_from_val): Adjust assert to requirements
11202         and reality.
11204 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11206         PR bootstrap/48102
11207         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11209 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11211         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11212         terms of target_flags_explicit. Adjust copyright year.
11214         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11215         * config/rs6000/t-freebsd: New file. Add override for
11216         LIB2FUNCS_EXTRA.
11218 2011-03-13  Chris Demetriou  <cgd@google.com>
11220         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11221         (-fno-diagnostics-show-option): this, to reflect current default.
11222         (-Werror=): Update text about -fno-diagnostics-show-option.
11224 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11226         PR target/48053
11227         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11228         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11229         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11230         mode is not V2DImode or V2DFmode.
11231         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11232         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11233         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11234         registers to 0.
11235         (movdi_internal64): Likewise.
11237 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11239         PR tree-optimization/47127
11240         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11241         parameter.
11242         (set_cloog_options): Same.
11243         (scop_to_clast): Same.
11244         (print_clast_stmt): Do not call cloog_state_malloc and
11245         cloog_state_free.
11246         (print_generated_program): Same.
11247         (gloog): Same.
11248         * graphite-clast-to-gimple.h (cloog_state): Declared.
11249         (scop_to_clast): Adjust declaration.
11250         * graphite.c (cloog_state): Defined here.
11251         (graphite_initialize): Call cloog_state_malloc.
11252         (graphite_finalize): Call cloog_state_free.
11254 2011-03-11  Jason Merrill  <jason@redhat.com>
11256         * attribs.c (lookup_attribute_spec): Take const_tree.
11257         * tree.h: Adjust.
11259 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11261         * config/sparc/sparc.c (sparc_option_override): Use
11262         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11264 2011-03-11  Richard Guenther  <rguenther@suse.de>
11266         PR tree-optimization/48067
11267         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11268         multiplication result will be only used once on the target
11269         stmt.
11271 2011-03-11  Richard Guenther  <rguenther@suse.de>
11273         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11275 2011-03-11  Richard Guenther  <rguenther@suse.de>
11277         PR lto/48073
11278         * tree.c (find_decls_types_r): Do not walk types only reachable
11279         from IDENTIFIER_NODEs.
11281 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11283         PR middle-end/48044
11284         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11285         all vnode->force_output nodes as needed.
11287 2011-03-11  Jason Merrill  <jason@redhat.com>
11289         PR c++/48069
11290         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11291         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11293 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11295         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11296         cgraph_node.
11298 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11300         PR tree-optimization/48063
11301         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11302         inline functions called once if !tree_can_inline_p (node->callers).
11304 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11306         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11307         extra_objs.
11308         * config/score/score3.c: Delete.
11309         * config/score/score3.h: Delete.
11310         * config/score/mul-div.S: Delete.
11311         * config/score/sfp-machine.h: Add new file.
11312         * config/score/constraints.md: Add new file.
11313         * config/score/t-score-softfp: Add new file.
11314         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11315         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11316         (score7_extra_constraint): Delete.
11317         (score7_option_override): Remove unused code.
11318         * config/score/score.c: Remove score3 and score5 define and code.
11319         * config/score/score.h: Remove score3 and score5 define and code.
11320         * config/score/score.md: Remove score3 template and unusual insn.
11321         * config/score/score.opt: Remove score3 and score5 options.
11323 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11325         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11326         when _HPUX_SOURCE is defined.
11327         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11329 2011-03-10  Jason Merrill  <jason@redhat.com>
11331         PR c++/48029
11332         * stor-layout.c (layout_type): Don't set structural equality
11333         on arrays of incomplete type.
11334         * tree.c (type_hash_eq): Handle comparing them properly.
11336 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11338         PR debug/48043
11339         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11340         result mode matches original rtl mode.
11342 2011-03-10  Nick Clifton  <nickc@redhat.com>
11344         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11345         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11347 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11349         PR rtl-optimization/47866
11350         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11351         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11352         if target wasn't scalar.
11353         * function.c (assign_stack_temp_for_type): Assert that neither
11354         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11355         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11356         macro.
11357         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11359 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11361         * config/s390/s390-protos.h (s390_label_align): New prototype.
11362         * config/s390/s390.c (s390_label_align): New function.
11363         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11365 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11367         PR target/47755
11368         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11369         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11370         (output_vec_const_move): Ditto.
11372 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11374         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11375         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11376         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11377         Change 'rclass' argument and result type to reg_class_t.
11378         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11380 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11382         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11383         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11384         (TARGET_MEMORY_MOVE_COST): Define.
11385         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11387 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11389         PR debug/47881
11390         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11391         removed anything.
11393         PR tree-optimization/48022
11394         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11395         for EQ/NE_EXPR.
11397 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11399         PR debug/47991
11400         * var-tracking.c (find_use_val): Return NULL for
11401         cui->sets && cui->store_p BLKmode MEMs.
11403 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11405         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11406         Remove.
11407         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11408         xstormy16_print_operand_address): Remove.
11409         * config/stormy16/stormy16.c (xstormy16_print_operand,
11410         xstormy16_print_operand_address): Make static.
11411         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11413 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11415         PR target/47862
11416         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11417         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11418         before definition.
11420 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11422         PR bootstrap/48000
11423         * cfgloopmanip.c (fix_bb_placements): Return immediately
11424         if FROM is BASE_LOOP's header.
11426 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11428         * gimplify.c (gimplify_function_tree): Fix building calls
11429         to __builtin_return_address.
11431 2011-03-07  Alan Modra  <amodra@gmail.com>
11433         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11434         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11435         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11436         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11437         return_mode args.
11438         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11439         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11440         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11441         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11442         * config/rs6000/rs6000.c
11443         (rs6000_elf_end_indicate_exec_stack): Rename to..
11444         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11445         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11446         (rs6000_file_start): ..here.
11447         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11448         file scope variables.
11449         (call_ABI_of_interest): New function.
11450         (init_cumulative_args): Set above vars when function return value
11451         is a float, vector, or small struct.
11452         (rs6000_function_arg_advance_1): Likewise for function args.
11453         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11454         references float args.
11456 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11458         * doc/cfg.texi: Remove "See" before @ref.
11459         * doc/invoke.texi: Likewise.
11461 2011-03-05  Jason Merrill  <jason@redhat.com>
11463         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11465 2011-03-05  Anthony Green  <green@moxielogic.com>
11467         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11469 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11471         PR rtl-optimization/47899
11472         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11473         to flow_loop_nested_p when moving the loop upward.
11475 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11477         PR target/47719
11478         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11480 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11482         PR tree-optimization/47967
11483         * ipa-cp.c (build_const_val): Return NULL instead of creating
11484         VIEW_CONVERT_EXPR for mismatching sizes.
11485         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11486         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11487         give up on versioning.
11489 2011-03-05  Alan Modra  <amodra@gmail.com>
11491         PR target/47986
11492         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11493         full cmodel medium/large lo_sum + high addresses.
11495 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11497         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11498         pool references in UNSPEC_LTREL_OFFSET.
11500 2011-03-04  Jan Hubicka  <jh@suse.cz>
11502         PR lto/47497
11503         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11504         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11505         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11506         Add node pointers.
11507         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11508         cgraph_add_thunk): Add node pointers.
11509         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11510         associated to right node.
11511         (input_node): Update use of cgraph_same_body_alias
11512         and cgraph_add_thunk.
11514 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11516         * config/i386/i386.opt (mprefer-avx128): New flag.
11517         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11518         modes when the flag -mprefer-avx128 is on.
11520 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11522         * dwarf2out.c (compare_loc_operands): Fix address handling.
11524 2011-03-04  Alan Modra  <amodra@gmail.com>
11526         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11528 2011-03-04  Richard Guenther  <rguenther@suse.de>
11530         PR middle-end/47968
11531         * expmed.c (extract_bit_field_1): Prefer vector modes that
11532         vec_extract patterns can handle.
11534 2011-03-04  Richard Guenther  <rguenther@suse.de>
11536         PR middle-end/47975
11537         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11539 2011-03-04  Richard Henderson  <rth@redhat.com>
11541         * explow.c (emit_stack_save): Remove 'after' parameter.
11542         (emit_stack_restore): Likewise.
11543         * expr.h: Update to match.
11544         * builtins.c, calls.c, stmt.c: Likewise.
11545         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11546         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11547         * function.c (expand_function_end): Insert the emit_stack_save
11548         sequence before parm_birth_insn instead of after.
11550 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11552         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11553         (ssse3_pmaddubsw128): Ditto.
11554         (ssse3_pmaddubsw): Ditto.
11556 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11558         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11560 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11562         PR c/47963
11563         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11564         on TYPE_SIZE_UNIT if it is a DECL.
11566         PR debug/47283
11567         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11568         first operand is not is_gimple_mem_ref_addr, try to fold it.
11569         If the operand still isn't is_gimple_mem_ref_addr, clear
11570         MEM_EXPR on op0.
11572 2011-03-03  Richard Guenther  <rguenther@suse.de>
11574         PR middle-end/47283
11575         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11576         match comment.
11577         (refs_may_alias_p_1): For release branches return true if
11578         we are confused by our input.
11580 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11582         * config/s390/s390.c (s390_function_value): Rename to ...
11583         (s390_function_and_libcall_value): ... this.
11584         (s390_function_value): New function.
11585         (s390_libcall_value): New function.
11586         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11587         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11588         target macro definitions.
11589         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11591 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11593         * config/i386/freebsd64.h (CC1_SPEC): Define.
11594         * config/i386/linux64.h (CC1_SPEC): Define.
11595         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11597 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11599         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11600         Remove.
11601         * config/stormy16/stormy16.c: Include reload.h.
11602         (xstormy16_memory_move_cost): New function.
11603         (TARGET_MEMORY_MOVE_COST): Define.
11605 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11607         PR rtl-optimization/47925
11608         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11609         with side effects.  Remove the more-specific check for volatile asms.
11611 2011-03-02  Alan Modra  <amodra@gmail.com>
11613         PR target/47935
11614         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11615         toc relative addresses for valid offsets.
11617 2011-03-01  Richard Guenther  <rguenther@suse.de>
11619         PR tree-optimization/47890
11620         * tree-vect-loop.c (get_initial_def_for_induction): Set
11621         related stmt properly.
11623 2011-03-01  Richard Guenther  <rguenther@suse.de>
11625         PR lto/47924
11626         * lto-streamer.c (lto_record_common_node): Also register
11627         the canonical type.
11629 2011-03-01  Richard Guenther  <rguenther@suse.de>
11631         PR lto/46911
11632         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11633         Do not stream DECL_ABSTRACT_ORIGIN.
11634         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11635         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11636         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11637         Do not stream DECL_ABSTRACT_ORIGIN.
11638         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11639         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11641 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11643         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11644         FUNCTION_VALUE_REGNO_P): Remove.
11645         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11646         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11647         Add 'outgoing' argument.
11648         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11649         function.
11650         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11651         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11653 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11655         PR debug/28047
11656         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11657         (lookup_filename): Likewise.
11658         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11660 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11661             Jakub Jelinek  <jakub@redhat.com>
11663         PR middle-end/47893
11664         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11665         (assign_stack_local_1): Change last argument type to int.
11666         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11667         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11668         don't record padding space into frame_space_list nor use those areas.
11669         (assign_stack_local): Adjust caller.
11670         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11671         of assign_stack_local, pass 0 as last argument.
11672         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11673         callers.
11675 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11677         PR debug/47283
11678         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11679         Use target address_mode and pointer_mode hooks instead of hardcoded
11680         Pmode and ptr_mode.  Handle some simple cases of extending if
11681         POINTERS_EXTEND_UNSIGNED < 0.
11682         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11683         Call convert_debug_memory_address.
11684         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11685         convert_debug_memory_address.
11687         PR middle-end/46790
11688         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11689         * configure: Regenerated.
11690         * config.in: Regenerated.
11691         * varasm.c (default_function_section): Return NULL
11692         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11694 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11696         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11697         the description to match the printed values.
11699 2011-02-28  Richard Guenther  <rguenther@suse.de>
11701         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11702         of the copied scope tree.
11704 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11706         * doc/extend.texi (Function Attributes): Avoid deeply (and
11707         wrongly) nested tables.
11709 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11711         PR middle-end/47903
11712         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11713         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11714         r isn't op0 nor op1.
11716 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11718         * config/avr/avr.md: Remove magic comment for emacs.
11720 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11722         PR target/45261
11723         * config/avr/avr.c (avr_option_override): Use error on bad options.
11724         (avr_help): New function.
11725         (TARGET_HELP): Define.
11727 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11729         PR target/42240
11730         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11731         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11733 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11735         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11736         (ARM Options): Ditto.
11737         (i386 and x86-64 Options): Ditto.
11738         (RX Options): Ditto.
11739         (SPARC Options): Ditto.
11741 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11743         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11744         FreeBSD 6 and later.  Generally use cpu generic.
11746 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11748         * doc/cpp.texi: Update copyright years.
11750 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11752         PR target/46898
11753         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11755 2011-02-25  Jon Beniston  <jon@beniston.com>
11757         PR target/46898
11758         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11759         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11760         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11761         (lm32_block_move_inline): Add type cast to remove warning.
11762         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11763         (gen_int_relational): Move declarations to start of function.
11765 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11767         PR tree-optimization/45470
11768         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11769         can throw internally only.
11770         * tree-vect-stmts.c (vectorizable_call): Likewise.
11772 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11774         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11775         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11776         * config/stormy16/stormy16-protos.h
11777         (xstormy16_preferred_reload_class): Remove.
11778         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11779         static. Change 'rclass' argument and return type to reg_class_t.
11780         (TARGET_PREFERRED_RELOAD_CLASS,
11781         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11783 2011-02-24  Richard Guenther  <rguenther@suse.de>
11785         * lto-streamer-in.c (input_bb): Do not find referenced vars
11786         in debug statements.
11788 2011-02-23  Jason Merrill  <jason@redhat.com>
11790         * common.opt (fabi-version): Document v5 and v6.
11792 2011-02-23  Richard Guenther  <rguenther@suse.de>
11794         PR tree-optimization/47849
11795         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11797 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11799         * opts-common.c (decode_cmdline_option): Print empty string
11800         argument as "" in decoded->orig_option_with_args_text.
11801         * gcc.c (execute): Print empty string argument as ""
11802         in the verbose output.
11803         (do_spec_1): Keep empty string argument.
11805 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11807         * config.gcc: Declare score-* and crx-* obsolete.
11809 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11811         PR rtl-optimization/47763
11812         * web.c (web_main): Ignore naked clobber when replacing register.
11814 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11816         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11817         Remove.
11819 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11821         PR doc/47848
11822         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11824 2011-02-22  Mike Stump  <mikestump@comcast.net>
11826         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11827         assembler.
11828         * configure: Regenerate.
11830 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11832         PR rtl-optimization/46002
11833         * ira-color.c (update_copy_costs): Change class intersection
11834         test to reg_class_contents[] test of 'hard_regno'.
11836 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11838         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11839         than Driver option.
11840         * config/hpux11.opt (mt): Likewise.
11841         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11842         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11843         * config/vax/elf.opt (mno-asm-pic): Likewise.
11844         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11846 2011-02-21  Mike Stump  <mikestump@comcast.net>
11848         PR target/47822
11849         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11850         tree so we can get save the type.
11851         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11852         for CFString instead of trying to use past the end of the builtins.
11853         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11854         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11855         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11856         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11857         Rename to darwin_builtin_cfstring.
11858         (darwin_init_cfstring_builtins): Return the built type.
11860 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11862         PR target/47840
11863         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11864         (_mm256_insert_epi64): Use _mm_insert_epi64.
11866 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11868         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11869         * config/stormy16/stormy16-protos.h
11870         (xstormy16_mode_dependent_address_p): Remove.
11871         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11872         Make static. Change return type to bool. Change argument type to
11873         const_rtx. Remove dead code.
11874         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11876 2011-02-21  Richard Guenther  <rguenther@suse.de>
11878         PR lto/47820
11879         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11880         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11881         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11882         TUs context.
11883         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11884         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11886 2011-02-20  Richard Guenther  <rguenther@suse.de>
11888         PR lto/47822
11889         * tree.c (free_lang_data_in_decl): Clean builtins from
11890         the TU decl BLOCK_VARS.
11892 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11894         PR debug/47620
11895         PR debug/47630
11896         * haifa-sched.c (fix_tick_ready): Skip tick computation
11897         for debug insns.
11899 2011-02-19  Richard Guenther  <rguenther@suse.de>
11901         PR lto/47647
11902         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11903         Remove lazy BLOCK_VARS streaming.
11904         (lto_input_ts_block_tree_pointers): Likewise.
11905         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11907 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11909         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11911 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11913         * config/i386/biarch32.h, config/i386/mach.h,
11914         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11916 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11918         PR target/47800
11919         * config/i386/i386.md (peephole2 for shift and plus): Use
11920         operands[1] original mode in the first insn.
11922 2011-02-18  Mike Stump  <mikestump@comcast.net>
11924         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11926 2011-02-18  Jan Hubicka  <jh@suse.cz>
11928         PR middle-end/47788
11929         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11930         to zero when the function is not inlinable at all.
11932 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11934         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11935         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11936         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11937         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11938         * config/pa/t-pa64: Likewise.
11939         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11941 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11943         PR driver/47787
11944         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11946 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11948         PR target/47792
11949         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11951 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11953         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11954         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11955         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11956         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11957         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11958         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11959         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11960         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11961         m32r_legitimate_address_p): New functions.
11962         * config/m32r/constraints.md (constraint "S"): Don't use
11963         STORE_PREINC_PREDEC_P.
11964         (constraint "U"): Don't use LOAD_POSTINC_P.
11966 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11968         PR rtl-optimization/46178
11969         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11970         compute ira_hard_regno_cover_class[].
11972 2011-02-18  Richard Guenther  <rguenther@suse.de>
11974         PR lto/47798
11975         * lto-streamer.h (lto_global_var_decls): Declare.
11976         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11977         statics for global var processing.
11979 2011-02-18  Richard Guenther  <rguenther@suse.de>
11981         PR tree-optimization/47737
11982         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11983         edge dominance check.
11985 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11987         PR debug/47780
11988         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11989         avoid invalid rtx sharing.
11991 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11993         * doc/cpp.texi (Obsolete Features): Add background on the
11994         origin of assertions.
11996 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11998         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11999         objc_abi == 2.
12000         * config/darwin.c (output_objc_section_asm_op): Added support for
12001         ABI v1 and v2.
12002         (is_objc_metadata): New.
12003         (darwin_objc2_section): New.
12004         (darwin_objc1_section): New.
12005         (machopic_select_section): Added support for ABI v1 and v2.
12006         (darwin_emit_objc_zeroed): New.
12007         (darwin_output_aligned_bss): Detect objc metadata and treat it
12008         appropriately.
12009         (darwin_asm_output_aligned_decl_common): Same.
12010         (darwin_asm_output_aligned_decl_local): Same.
12011         * config/darwin-sections.def: Updated for ABI v1 and v2.
12012         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12013         compiling Objective-C code for the NeXT runtime, default to using
12014         ABI version 0 for 32-bit, and version 2 for 64-bit.
12016 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12018         * common.opt (optimize_fast): New Variable.
12019         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12020         instead of local variable ofast.
12022 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12024         * doc/invoke.texi (fobjc-abi-version): Documented.
12025         (fobjc-nilcheck): Documented.
12026         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12027         version.
12029 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12031         PR driver/47390
12032         * common.opt (export-dynamic): New Driver option.
12033         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12035 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12037         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12039 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12040             Jan Hubicka  <jh@suse.cz>
12042         PR debug/47106
12043         PR debug/47402
12044         * cfgexpand.c (account_used_vars_for_block): Remove.
12045         (estimated_stack_frame_size): Use referenced vars.
12046         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12047         that were referenced in the original function.  Test src_fn
12048         rather than cfun.  Drop redundant get_var_ann.
12049         (setup_one_parameter): Drop redundant get_var_ann.
12050         (declare_return_variable): Likewise.
12051         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12052         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12053         * ipa-inline.c (compute_inline_parameters): Do not compute
12054         disregard_inline_limits here.
12055         (compute_inlinable_for_current, pass_inlinable): New.
12056         (pass_inline_parameters): Require PROP_referenced_vars.
12057         * cgraphunit.c (cgraph_process_new_functions): Don't run
12058         compute_inline_parameters explicitly unless function is in SSA form.
12059         (cgraph_analyze_function): Set .disregard_inline_limits.
12060         * tree-sra.c (convert_callers): Compute inliner parameters
12061         only for functions already in SSA form.
12063 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12065         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12066         -mlittle-endian-data.
12068 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12070         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12071         -mno-fpu, not -fpu and -no-fpu.
12072         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12073         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12075 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12077         PR target/43653
12078         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12079         input reload with PLUS RTX.
12081 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12083         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12084         of InverseVar(MDMX).
12086 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12088         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12089         --m4-340.
12091 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12093         * config/mn10300/mn10300.opt (mno-crt0): New.
12095 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12097         * config/m68k/uclinux.opt (static-libc): New Driver option.
12099 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12101         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12103 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12105         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12106         %{muser-extend-enabled}.
12108 2011-02-16  Richard Guenther  <rguenther@suse.de>
12110         PR tree-optimization/47738
12111         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12112         the TODO from tree_predictive_commoning.
12114 2011-02-15  Jeff Law  <law@redhat.com>
12116         Revert
12117         2011-01-25  Jeff Law  <law@redhat.com>
12119         PR rtl-optimization/37273
12120         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12121         handle them like argument loads from stack slots.  Do not double
12122         count memory for memory constants and argument loads from stack slots.
12124 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12126         PR middle-end/47725
12127         * combine.c (cant_combine_insn_p): Revert the last change.
12129 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12131         PR target/47755
12132         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12133         mode for vector constants.  Remove code that checks for TImode.
12135 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12137         PR debug/47106
12138         PR debug/47402
12139         * cgraph.h (compute_inline_parameters): Return void.
12140         * ipa-inline.c (compute_inline_parameters): Adjust.
12142 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12144         PR debug/47106
12145         PR debug/47402
12146         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12147         rather than decl.
12148         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12149         * ipa-inline.c (compute_inline_parameters): Adjust.
12151 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12153         PR debug/47106
12154         PR debug/47402
12155         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12156         Adjust all users.  Pass FN to...
12157         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12158         fn argument.
12159         * ipa-struct-reorg.c: Adjust.
12160         * tree-dfa.c: Adjust.
12161         * tree-into-ssa.c: Adjust.
12162         * tree-sra.c: Adjust.
12163         * tree-ssa-alias.c: Adjust.
12164         * tree-ssa-live.c: Adjust.
12165         * tree-ssa.c: Adjust.
12166         * tree-ssanames.c: Adjust.
12167         * tree-tailcall.c: Adjust.
12169 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12171         PR debug/47106
12172         PR debug/47402
12173         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12174         Adjust all callers.
12175         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12176         * tree-flow-inline.h: Adjust.
12177         * gimple-pretty-print.c: Adjust.
12178         * tree-into-ssa.c: Adjust.
12179         * tree-ssa.c: Adjust.
12180         * cfgexpand.c: Adjust.
12182 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12184         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12185         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12186         (EXTRA_CONSTRAINT): Delete.
12187         * config/iq2000/constraints.md: New file.
12188         * config/iq2000/iq2000.md: Include it.
12189         (define_insn ""): Delete.
12190         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12191         unsupported constraint letters from patterns.
12192         (call_value, call_value_internal1): Likewise.
12193         (call_value_multiple_internal1): Likewise.
12195 2011-02-15  Nick Clifton  <nickc@redhat.com>
12197         * config/mn10300/mn10300.c: Include tm-constrs.h.
12198         (struct liw_data): New data structure describing an LIW candidate
12199         instruction.
12200         (extract_bundle): Use struct liw_data.  Allow small integer
12201         operands for some instructions.
12202         (check_liw_constraints): Use struct liw_data.  Remove swapped
12203         parameter.  Add comments describing the checks.  Fix bug when
12204         assigning the source of liw1 to the source of liw2.
12205         (liw_candidate): Delete.  Code moved into extract_bundle.
12206         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12207         before swapping.
12208         * config/mn10300/predicates.md (liw_operand): New predicate.
12209         Allows registers and small integer constants.
12210         * config/mn10300/constraints.md (O): New constraint.  Accetps
12211         integers in the range -8 to +7 inclusive.
12212         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12213         for moving a small integer into a register.  Give this alternative
12214         LIW attributes.
12215         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12216         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12217         using the J,K,L and M constraints,
12218         (liw): Remove SI mode on second operands to allow for HI and QI
12219         mode values.
12220         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12221         instruction.
12223 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12225         PR middle-end/47725
12226         * combine.c (cant_combine_insn_p): Check zero/sign extended
12227         hard registers.
12229 2011-02-15  Richard Guenther  <rguenther@suse.de>
12231         PR tree-optimization/47743
12232         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12233         for a non-type-compatible VN lookup bail out.
12235 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12237         * config/fr30/constraints.md: New file.
12238         * config/fr30/fr30.md: Include it.
12239         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12240         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12241         (EXTRA_CONSTRAINT): Delete.
12243 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12245         * config/frv/constraints.md: New file.
12246         * config/frv/predicates.md: Include it.
12247         * config/frv/frv.c (reg_class_from_letter): Delete.
12248         (frv_option_override): Don't initialize it.
12249         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12250         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12251         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12252         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12253         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12254         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12255         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12256         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12257         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12258         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12259         (REG_CLASS_FROM_CONSTRAINT): Delete.
12261 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12263         PR middle-end/47581
12264         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12265         if frame size is 0 in a leaf function.
12267 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12269         PR pch/14940
12270         * config/alpha/host-osf.c: New file.
12271         * config/alpha/x-osf: New file.
12272         * config.host (alpha*-dec-osf*): Use it.
12274 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12276         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12277         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12278         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12279         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12280         type to const_rtx.
12281         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12283 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12285         * config/stormy16/constraints.md: New file.
12286         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12287         Use satisfies_constraint_Q and satisfies_constraint_R.
12288         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12289         Delete.
12290         (xstormy16_legitiamte_address_p): Declare.
12291         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12292         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12293         (EXTRA_CONSTRAINT): Delete.
12294         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12295         Un-staticize.
12296         (xstormy16_extra_constraint_p): Delete.
12298 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12300         PR tree-optimization/46494
12301         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12302         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12303         (pass_rtl_loop_done): Add TODO_verify_flow.
12304         * fwprop.c (pass_rtl_fwprop): Likewise.
12305         * modulo-sched.c (pass_sms): Likewise.
12306         * tree-ssa-dom.c (pass_dominator): Likewise.
12307         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12308         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12309         (pass_tree_loop_done): Likewise.
12310         * tree-ssa-pre.c (execute_pre): Likewise.
12311         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12312         * tree-ssa-sink.c (pass_sink_code): Likewise.
12313         * tree-vrp.c (pass_vrp): Likewise.
12315 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12317         * config/v850/constraints.md: New file.
12318         * config/v850/v850.md: Include it.
12319         * config/v850/predicates.md (reg_or_0_operand): Use
12320         satisfies_constraint_G.
12321         (special_symbolref_operand): Use satisfies_constraint_K.
12322         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12323         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12324         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12325         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12326         (EXTRA_CONSTRAINT): Delete.
12327         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12328         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12329         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12331 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12333         PR target/47696
12334         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12335         description.
12337 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12339         * config/mcore/constraints.md: New file.
12340         * config/mcore/mcore.md: Include it.
12341         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12342         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12343         (REG_CLASS_FROM_LETTER): Delete.
12344         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12345         insn_const_int_ok_for_constraint.
12346         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12347         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12348         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12349         (EXTRA_CONSTRAINT): Delete.
12351 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12353         PR ada/41929
12354         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12355         (IS_SIGHANDLER): Define.
12356         (sparc64_is_sighandler): New function, split off from
12357         sparc64_fallback_frame_state.
12358         (sparc_is_sighandler): New function, split off from
12359         sparc_fallback_frame_state.
12360         (sparc64_fallback_frame_state): Merge with ...
12361         (sparc_fallback_frame_state): ... this into ...
12362         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12363         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12364         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12365         stack instead of hardcoded offsets.
12367 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12369         PR target/45808
12370         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12372 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12374         * configure: Regenerate.
12376 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12378         PR driver/45731
12379         * gcc.c (asm_options): Correct spec matching --target-help.
12381 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12383         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12384         to gimple call error.
12386 2011-02-12  Mike Stump  <mikestump@comcast.net>
12388         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12389         comments in backslash regions.
12391 2011-02-12  Mike Stump  <mikestump@comcast.net>
12392             Jakub Jelinek  <jakub@redhat.com>
12393             Iain Sandoe  <iains@gcc.gnu.org>
12395         PR target/47324
12396         * dwarf2out.c (output_cfa_loc): When required, apply the
12397         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12398         (output_loc_sequence): Likewise.
12399         (output_loc_operands_raw): Likewise.
12400         (output_loc_sequence_raw): Likewise.
12401         (output_cfa_loc): Likewise.
12402         (output_loc_list): Suppress register number adjustment when
12403         calling output_loc_sequence()
12404         (output_die): Likewise.
12406 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12408         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12409         Remove macros.
12410         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12411         xtensa_memory_move_cost): New functions.
12412         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12414 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12416         PR lto/47225
12417         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12418         in the current directory.
12419         * configure: Rebuilt.
12421 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12423         * config/darwin.c (darwin_override_options): Add a hunk missed
12424         from the commit of r168571.  Trim comment line lengths and
12425         correct indents of the preceding block.
12427 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12429         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12430         the switch.
12432 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12434         * common.opt (nostartfiles): New Driver option.
12436 2011-02-11  Xinliang David Li  <davidxl@google.com>
12438         PR tree-optimization/47707
12439         * tree-chrec.c (convert_affine_scev): Keep type precision.
12441 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12443         PR tree-optimization/47420
12444         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12446 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12448         PR rtl-optimization/47614
12449         * rtl.h (check_for_inc_dec): Declare.
12450         * dse.c (check_for_inc_dec): Externalize...
12451         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12452         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12454 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12456         PR driver/47678
12457         * gcc.c (main): Do not compile inputs if there were errors in
12458         option handling.
12459         * opts-common.c (read_cmdline_option): Check for wrong language
12460         after other error checks.
12462 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12464         * cgraph.c: Fix comment typos.
12465         * cgraph.h: Likewise.
12466         * cgraphunit.c: Likewise.
12467         * ipa-cp.c: Likewise.
12468         * ipa-inline.c: Likewise.
12469         * ipa-prop.c: Likewise.
12470         * ipa-pure-const.c: Likewise.
12471         * ipa-ref.c: Likewise.
12472         * ipa-reference.c: Likewise.
12474 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12476         PR debug/47684
12477         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12479 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12481         PR testsuite/47400
12482         * doc/sourcebuild.texi (Require Support): Document
12483         dg-require-ascii-locale.
12485 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12487         * doc/lto.texi (Write summary): Fix missing parentheses.
12489 2011-02-10  DJ Delorie  <dj@redhat.com>
12491         * config/m32c/m32c.c (m32c_option_override): Disable
12492         -fcombine-stack-adjustments until flag value tracking and compare
12493         optimization can be rewritten.
12495 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12497         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12498         PROCESSOR_POWER7.
12499         (PROCESSOR_DEFAULT64): Likewise.
12501 2011-02-10  Richard Henderson  <rth@redhat.com>
12503         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12504         change from 2011-02-03.
12505         * config/rx/rx.c (flags_from_code): Likewise.
12506         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12507         is valid, n/pz otherwise.
12508         (rx_select_cc_mode): Return CCmode if Y is not zero.
12510 2011-02-10  Richard Guenther  <rguenther@suse.de>
12512         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12514 2011-02-10  Richard Guenther  <rguenther@suse.de>
12516         PR tree-optimization/47677
12517         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12519 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12521         PR target/47665
12522         * combine.c (make_compound_operation): Only change shifts into
12523         multiplication for SCALAR_INT_MODE_P.
12525 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12527         PR testsuite/47622
12528         Revert
12529         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12530         PR debug/42631
12531         * web.c (entry_register): Don't clobber the number of the
12532         first uninitialized reference in used[].
12534 2011-02-09  Richard Guenther  <rguenther@suse.de>
12536         PR tree-optimization/47664
12537         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12538         all edges again.
12540 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12542         PR target/46481
12543         PR target/47032
12544         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12545         PROCESSOR_POWER7.
12546         (PROCESSOR_DEFAULT64): Same.
12547         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12549 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12551         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12553 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12555         PR middle-end/45505
12556         * tree-sra.c (struct access): New flags grp_scalar_read and
12557         grp_scalar_write.  Changed description of assignment read and write
12558         flags.
12559         (dump_access): Dump new flags, reorder all of them.
12560         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12561         to detect multiple scalar reads.
12562         (analyze_access_subtree): Use the new scalar read write flags instead
12563         of the old flags.  Adjusted comments.
12565 2011-02-08  DJ Delorie  <dj@redhat.com>
12567         PR target/47548
12568         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12569         patterns.
12571 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12573         * config/m68k/uclinux.opt: New.
12574         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12576 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12578         * config/cris/elf.opt (sim): New Driver option.
12580 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12582         * config/xtensa/elf.opt: New.
12583         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12585 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12587         * config/vax/elf.opt: New.
12588         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12590 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12592         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12594 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12596         * config/gnu-user.opt: New.
12597         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12598         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12599         *-*-uclinux*): Use gnu-user.opt.
12601 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12603         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12604         * config/i386/gnu.h (CPP_SPEC): Likewise.
12606 2011-02-08  Ian Lance Taylor  <iant@google.com>
12608         * common.opt (fcx-limited-range): Add SetByCombined flag.
12609         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12610         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12611         (fassociative-math, freciprocal-math): Likewise.
12612         (funsafe-math-optimizations): Likewise.
12613         * opth-gen.awk: Handle SetByCombined.
12614         * optc-gen.awk: Likewise.
12615         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12616         (set_unsafe_math_optimizations_flags): Likewise.
12617         * doc/options.texi (Option properties): Document SetByCombined.
12619 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12621         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12622         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12623         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12624         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12625         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12627 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12629         PR tree-optimization/46834
12630         PR tree-optimization/46994
12631         PR tree-optimization/46995
12632         * graphite-sese-to-poly.c (used_outside_reduction): New.
12633         (detect_commutative_reduction): Call used_outside_reduction.
12634         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12635         translate_scalar_reduction_to_array only when at least one
12636         loop-phi/close-phi tuple has been detected.
12638 2011-02-08  Richard Guenther  <rguenther@suse.de>
12640         PR middle-end/47639
12641         * tree-vect-generic.c (expand_vector_operations_1): Update
12642         stmts here ...
12643         (expand_vector_operations): ... not here.  Cleanup EH info
12644         and the CFG if required.
12646 2011-02-08  Richard Guenther  <rguenther@suse.de>
12648         PR tree-optimization/47641
12649         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12650         require type compatibility.
12652 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12654         * gimple-low.c (lower_function_body): Don't remove the location of
12655         the return statement here.
12656         (lower_gimple_return): Do it here instead but only if the return
12657         statement is actually used twice.
12659 2011-02-08  Richard Guenther  <rguenther@suse.de>
12661         PR tree-optimization/47632
12662         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12663         unused up_to_stmt parameter, return whether cfg-cleanup is
12664         necessary, remove EH info properly.
12665         (forward_propagate_into_gimple_cond): Adjust caller.
12666         (forward_propagate_into_cond): Likewise.
12667         (forward_propagate_comparison): Likewise.
12668         (tree_ssa_forward_propagate_single_use_vars): Make
12669         forward_propagate_comparison case similar to the two others.
12671 2011-02-08  Nick Clifton  <nickc@redhat.com>
12673         * config/mn10300/mn10300.opt (mliw): New command line option.
12674         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12675         (liw_bundling): New automaton.
12676         (liw): New attribute.
12677         (liw_op): New attribute.
12678         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12679         (movsi_internal): Add LIW attributes.
12680         (andsi3): Likewise.
12681         (iorsi3): Likewise.
12682         (xorsi3): Likewise.
12683         (addsi3): Separate register and immediate alternatives.
12684         Add LIW attributes.
12685         (subsi3): Likewise.
12686         (cmpsi): Likewise.
12687         (aslsi3): Likewise.
12688         (lshrsi3): Likewise.
12689         (ashrsi3): Likewise.
12690         (liw): New pattern.
12691         * config/mn10300/mn10300.c (liw_op_names): New
12692         (mn10300_print_operand): Handle 'W' operand descriptor.
12693         (extract_bundle): New function.
12694         (check_liw_constraints): New function.
12695         (liw_candidate): New function.
12696         (mn10300_bundle_liw): New function.
12697         (mn10300_reorg): New function.
12698         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12699         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12700         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12701         __LIW__ or __NO_LIW__.
12702         * doc/invoke.texi: Describe the -mliw command line option.
12704 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12706         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12707         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12708         pthread_mutex_unlock): Remove.
12709         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12710         * config/pa/t-pa64: Likewise.
12711         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12712         shared libc if not linking against libpthread.
12713         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12715 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12717         PR target/47558
12718         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12719         on 10.6 and later to ensure that we always use the unwinder from
12720         the system.  Only add -no_compact_unwind when tarteting darwin
12721         10.6 or later.
12723 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12725         PR target/46997
12726         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12727         (vec_interleave_lowv2sf): Ditto.
12728         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12729         (vec_extract_oddv2sf): Ditto.
12731 2011-02-07  Mike Stump  <mikestump@comcast.net>
12733         PR target/42333
12734         Add __ieee_divdc3 entry point.
12735         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12736         entry point.
12737         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12738         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12739         * config/darwin.c (darwin_rename_builtins): Add.
12740         * config/darwin-protos.h (darwin_rename_builtins): Add.
12742 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12744         PR target/47636
12745         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12746         for the condition.
12748 2011-02-07  Mike Stump  <mikestump@comcast.net>
12750         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12752 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12754         PR target/47534
12755         * config/avr/libgcc.S (exit): Move .endfunc
12757 2011-02-07  Richard Guenther  <rguenther@suse.de>
12759         PR tree-optimization/47615
12760         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12761         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12762         (run_scc_vn): Initialize it.
12763         (visit_reference_op_load): Use it.
12764         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12766 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12768         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12769         DImode trapping arithmetic libfuncs.
12771 2011-02-07  Richard Guenther  <rguenther@suse.de>
12773         PR tree-optimization/47621
12774         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12775         two duplicates ...
12776         (execute_update_addresses_taken): ... here.  Make it more
12777         conservative in what we accept.
12779 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12781         * config/sparc/freebsd.h (ASM_SPEC): Define.
12782         * config/sparc/vxworks.h (ASM_SPEC): Define.
12784 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12786         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12788 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12790         * doc/invoke.texi: Remove reference to compiler internals from
12791         user documentation.
12793         * reg-notes.def: Remove REG_VALUE_PROFILE.
12794         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12796 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12798         PR middle-end/47610
12799         * varasm.c (default_section_type_flags): If decl is NULL,
12800         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12802 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12804         PR debug/42631
12805         * web.c (entry_register): Don't clobber the number of the
12806         first uninitialized reference in used[].
12808 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12810         PR tree-optimization/46194
12811         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12812         (build_classic_dist_vector_1): Do not represent classic distance
12813         vectors when the access functions are variating in different loops.
12815 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12817         * config/mips/iris6.opt: New.
12818         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12820 2011-02-04  Richard Henderson  <rth@redhat.com>
12821             Steve Ellcey  <sje@cup.hp.com>
12823         PR target/46997
12824         * config/ia64/predicates.md (mux1_brcst_element): New.
12825         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12826         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12827         (ia64_unpack_sign): New.
12828         (ia64_expand_unpack): Rewrite using new routines.
12829         (ia64_expand_widen_sum): Ditto.
12830         (ia64_expand_dot_prod_v8qi): Ditto.
12831         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12832         routines, add endian check.
12833         (pmpy2_even): Rename from pmpy2_r, add endian check.
12834         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12835         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12836         (vec_widen_smult_hi_v4hi): Ditto.
12837         (vec_widen_umult_lo_v4hi): Ditto.
12838         (vec_widen_umult_hi_v4hi): Ditto.
12839         (mulv2si3): Change endian checks.
12840         (sdot_prodv4hi): Rewrite with new calls.
12841         (udot_prodv4hi): New.
12842         (vec_pack_ssat_v4hi): Add endian check.
12843         (vec_pack_usat_v4hi): Ditto.
12844         (vec_pack_ssat_v2si): Ditto.
12845         (max1_even): Rename from max1_r, add endian check.
12846         (max1_odd): Rename from max1_l, add endian check.
12847         (*mux1_rev): Format change.
12848         (*mux1_mix): Ditto.
12849         (*mux1_shuf): Ditto.
12850         (*mux1_alt): Ditto.
12851         (*mux1_brcst_v8qi): Use new predicate.
12852         (vec_extract_evenv8qi): Remove endian check.
12853         (vec_extract_oddv8qi): Ditto.
12854         (vec_interleave_lowv4hi): Format change.
12855         (vec_interleave_highv4hi): Ditto.
12856         (mix2_even): Rename from mix2_r, add endian check.
12857         (mix2_odd): Rename from mux2_l, add endian check.
12858         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12859         (vec_extract_evenodd_helper): Format change.
12860         (vec_extract_evenv4hi): Remove endian check.
12861         (vec_extract_oddv4hi): Remove endian check.
12862         (vec_interleave_lowv2si): Format change.
12863         (vec_interleave_highv2si): Format change.
12864         (vec_initv2si): Remove endian check.
12865         (vecinit_v2si): Add endian check.
12866         (reduc_splus_v2sf): Add endian check.
12867         (reduc_smax_v2sf): Ditto.
12868         (reduc_smin_v2sf): Ditto.
12869         (vec_initv2sf): Remove endian check.
12870         (fpack): Add endian check.
12871         (fswap): Add endian check.
12872         (vec_interleave_highv2sf): Add endian check.
12873         (vec_interleave_lowv2sf): Add endian check.
12874         (fmix_lr): Add endian check.
12875         (vec_setv2sf): Format change.
12876         (*vec_extractv2sf_0_be): Use shift to extract operand.
12877         (*vec_extractv2sf_1_be): New.
12878         (vec_pack_trunc_v4hi): Add endian check.
12879         (vec_pack_trunc_v2si): Format change.
12881 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12883         PR inline-asm/23200
12884         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12885         do bb, locus and block comparison and disallow loads if it is not set.
12886         (stmt_is_replaceable_p): New function.
12887         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12888         callers.
12889         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12890         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12891         SSA_NAME_DEF_STMT.
12892         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12894 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12896         * config/rs6000/xilinx.opt: New.
12897         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12899 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12901         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12903 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12905         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12906         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12907         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12908         secondary_reload_info, xtensa_secondary_reload): Remove.
12909         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12910         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12911         (xtensa_preferred_reload_class): Make static. Change return and
12912         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12913         Use CONST_DOUBLE_P predicate.
12914         (xtensa_preferred_output_reload_class): New function.
12915         (xtensa_secondary_reload): Make static.
12917 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12919         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12920         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12921         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12923 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12925         PR middle-end/31490
12926         * output.h (SECTION_RELRO): Define.
12927         (SECTION_MACH_DEP): Adjust.
12928         (get_variable_section): New prototype.
12929         * varpool.c (varpool_finalize_named_section_flags): New function.
12930         (varpool_assemble_pending_decls): Call it.
12931         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12932         * cgraphunit.c (cgraph_output_in_order): Call
12933         varpool_finalize_named_section_flags.
12934         * varasm.c (get_section): Allow section flags conflicts between
12935         relro and read-only sections if the section hasn't been declared yet.
12936         Set SECTION_OVERRIDE after diagnosing section type conflict.
12937         (get_variable_section): No longer static.
12938         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12939         readonly sections that need relocations.
12940         (decl_readonly_section_1): New function.
12941         (decl_readonly_section): Use it.
12943         Revert:
12944         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12945                     Steve Ellcey  <sje@cup.hp.com>
12947         PR middle-end/31490
12948         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12949         if section attribute used.
12951 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12953         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12954         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12955         (darwin_init_sections): Remove assertion.
12957 2011-02-03  Nick Clifton  <nickc@redhat.com>
12959         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12960         lt and ge.
12961         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12962         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12963         instead of "n" and "pz".
12964         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12965         CC_FLAG_S.
12967 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12969         PR target/47312
12970         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12971         fma, expand FMA_EXPR as fma{,f,l} call.
12973         PR lto/47274
12974         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12975         copy them into a unsigned char variable and pass address of it to
12976         lto_output_data_stream.
12978         PR target/47564
12979         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12980         around backend_init_target and lang_dependent_init_target calls.
12981         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12982         (verify_cgraph_node): Don't call set_cfun here.  Use
12983         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12984         Set error_found for incorrectly represented calls to thunks.
12986 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12988         PR debug/43092
12989         PR rtl-optimization/43494
12990         * rtl.h (for_each_inc_dec_fn): New type.
12991         (for_each_inc_dec): Declare.
12992         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12993         (for_each_inc_dec_find_inc_dec): New fn.
12994         (for_each_inc_dec_find_mem): New fn.
12995         (for_each_inc_dec): New fn.
12996         * dse.c (struct insn_size): Remove.
12997         (replace_inc_dec, replace_inc_dec_mem): Remove.
12998         (emit_inc_dec_insn_before): New fn.
12999         (check_for_inc_dec): Use it, along with for_each_inc_dec.
13000         (canon_address): Pass mem modes to cselib_lookup.
13001         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
13002         (cselib_lookup_from_insn): Likewise.
13003         (cselib_subst_to_values): Likewise.
13004         * cselib.c (find_slot_memmode): New var.
13005         (cselib_find_slot): New fn.  Use it instead of
13006         htab_find_slot_with_hash everywhere.
13007         (entry_and_rtx_equal_p): Use find_slot_memmode.
13008         (autoinc_split): New fn.
13009         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13010         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13011         Deal with autoinc.  Special-case recursion into MEMs.
13012         (cselib_hash_rtx): Likewise.
13013         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13014         address and MEM modes.
13015         (cselib_subst_to_values): Add memmode, pass it on.
13016         Deal with autoinc.
13017         (cselib_lookup): Add memmode argument, pass it on.
13018         (cselib_lookup_from_insn): Add memmode.
13019         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13020         (struct cselib_record_autoinc_data): New.
13021         (cselib_record_autoinc_cb): New fn.
13022         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13023         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13024         (cselib_process_insn): ... here.
13025         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13026         to cselib_lookup.
13027         (add_uses): Likewise, also to cselib_subst_to_values.
13028         (add_stores): Likewise.
13029         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13030         cselib_subst_to_values.
13031         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13032         * gcse.c (do_local_cprop): Adjusted.
13033         * postreload.c (reload_cse_simplify_set): Adjusted.
13034         (reload_cse_simplify_operands): Adjusted.
13035         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13037 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13039         PR tree-optimization/45122
13040         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13041         unsafe assumptions when there's more than one loop exit.
13043 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13045         PR target/47272
13046         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13047         Document using vector double with the load/store builtins, and
13048         that the load/store builtins always use Altivec instructions.
13050         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13051         to use altivec memory instructions, even on VSX.
13052         (vector_altivec_store_<mode>): Ditto.
13054         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13055         function.
13057         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13058         V2DF, V2DI support to load/store overloaded builtins.
13060         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13061         altivec load/store builtins for V2DF/V2DI types.
13063         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13064         set avoid indexed addresses on power6 if -maltivec.
13065         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13066         vector_altivec_load/vector_altivec_store builtins.
13067         (altivec_expand_st_builtin): Ditto.
13068         (altivec_expand_builtin): Add VSX memory builtins.
13069         (rs6000_init_builtins): Add V2DI types to internal types.
13070         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13071         load/store builtins.
13072         (rs6000_address_for_altivec): Insure memory address is appropriate
13073         for Altivec.
13075         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13076         vec_vsx_ld and vec_vsx_st.
13077         (vsx_store_<mode>): Ditto.
13079         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13080         variables to hold long long types for VSX vector memory builtins.
13081         (RS6000_BTI_unsigned_long_long): Ditto.
13082         (long_long_integer_type_internal_node): Ditti.
13083         (long_long_unsigned_type_internal_node): Ditti.
13085         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13086         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13087         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13089         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13090         short cuts.
13091         (vec_vsx_st): Ditto.
13093 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13095         * config/pa/pa-hpux10.opt: New.
13096         * config/hpux11.opt (pthread): New Driver option.
13097         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13098         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13100 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13102         * config/ia64/vms.opt: New.
13103         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13105 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13107         PR target/47580
13108         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13109         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13110         generator functions.
13111         (vsx_floatuns<VSi><mode>2): Ditto.
13112         (vsx_fix_trunc<mode><VSi>2): Ditto.
13113         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13115 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13117         * config/i386/djgpp.opt (posix): New Driver option.
13119 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13121         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13122         Move to the unsupported targets list.
13124 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13126         PR rtl-optimization/47525
13127         * df-scan.c: Update copyright years.
13128         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13129         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13131 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13133         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13134         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13135         (ASM_OUTPUT_ASCII): Remove.
13136         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13138 2011-02-02  Jeff Law  <law@redhat.com>
13140         PR middle-end/47543
13141         * reload.c (find_reloads_address): Handle reg+d address where both
13142         components are invalid by reloading the entire address.
13144 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13145             Richard Guenther  <rguenther@suse.de>
13147         PR tree-optimization/40979
13148         PR bootstrap/47044
13149         * passes.c (init_optimization_passes): After LIM call copy_prop
13150         and DCE to clean up.
13151         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13153 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13155         PR tree-optimization/47576
13156         PR tree-optimization/47555
13157         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13158         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13159         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13160         * tree-scalar-evolution.c (follow_ssa_edge): Use
13161         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13163 2011-02-02  Richard Guenther  <rguenther@suse.de>
13165         PR tree-optimization/47566
13166         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13168 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13170         PR debug/47106
13171         PR debug/47402
13172         * tree-inline.c (declare_return_variable): Remove unused caller
13173         variable.
13175         PR debug/47106
13176         PR debug/47402
13177         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13178         * cfgexpand.c (account_used_vars_for_block): Use them.
13179         * tree-nrv.c (tree_nrv): Likewise.
13180         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13181         (dump_scope_block): Likewise.
13182         (remove_unused_locals): Likewise.
13184         PR debug/47106
13185         PR debug/47402
13186         * tree-inline.c (declare_return_variable): Add result decl to
13187         local decls only once.
13188         * gimple-low.c (record_vars_into): Mark newly-created variables
13189         as referenced.
13191 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13193         PR debug/47498
13194         PR debug/47501
13195         PR debug/45136
13196         PR debug/45130
13197         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13198         debug insns.
13199         (no_real_insns_p, schedule_block, set_priorities): Drop special
13200         treatment of boundary debug insns.
13201         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13202         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13203         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13204         (BOUNDARY_DEBUG_INSN_P): Likewise.
13205         (SCHEDULE_DEBUG_INSN_P): Likewise.
13206         * sched-rgn.c (init_ready_list): Drop special treatment of
13207         boundary debug insns.
13208         * final.c (rest_of_clean_state): Clear notes' BB.
13210 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13212         * config/openbsd.opt (assert=): New Driver option.
13214 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13216         * config/i386/nto.opt: New.
13217         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13219 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13221         * config/i386/netware.opt: New.
13222         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13224 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13226         * config/interix.opt (posix): New Driver option.
13228 2011-02-01  DJ Delorie  <dj@redhat.com>
13230         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13232         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13233         class for A0/A1.
13235 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13237         PR tree-optimization/47561
13238         * toplev.c (process_options): Print the Graphite flags.  Add
13239         flag_loop_flatten to the list of options requiring Graphite.
13241 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13243         * config/i386/cygming.opt (posix): New Driver option.
13245 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13247         * config/arm/vxworks.opt: New.
13248         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13250 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13252         * config/alpha/elf.opt: New.
13253         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13254         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13256 2011-02-01  Richard Guenther  <rguenther@suse.de>
13258         PR tree-optimization/47559
13259         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13260         store-motion on references that can throw.
13262 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13264         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13265         * tree-pass.h (TDF_CSELIB): New macro.
13266         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13267         cselib_lookup): Check for it rather than for TDF_DETAILS.
13269 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13271         PR driver/47547
13272         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13273         is HOST_BIT_BUCKET.
13275         * opts.c (finish_options): Don't add x_aux_base_name if it is
13276         HOST_BIT_BUCKET.
13278 2011-02-01  Richard Guenther  <rguenther@suse.de>
13280         PR tree-optimization/47555
13281         Revert
13282         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13284         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13286 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13288         PR gcc/46692
13289         * config/lm32/t-lm32: Add multilib for all CPU options.
13291 2011-02-01  Richard Guenther  <rguenther@suse.de>
13293         PR tree-optimization/47541
13294         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13295         sure to have a field at offset zero.
13297 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13299         * config/arc/arc.opt (EB, EL): New Driver options.
13301 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13303         * config/alpha/osf5.opt: New.
13304         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13306 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13308         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13310 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13312         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13313         -floop-interchange.
13314         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13315         is an alias of -floop-interchange and that it requires the
13316         Graphite infrastructure.
13317         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13318         flag_loop_interchange based on the value of flag_tree_loop_linear.
13320 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13321             Richard Guenther  <rguenther@suse.de>
13323         PR tree-optimization/47538
13324         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13325         type instead of r1type, except for comparisons.  For right
13326         shifts and comparisons punt if there are mismatches in
13327         sizetype vs. non-sizetype types.
13329 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13331         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13332         avx_runtime.
13334 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13336         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13337         version number.
13338         * configure: Regenerate.
13340 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13342         * configure.ac (gcc_cv_ld_static_option): Define.
13343         (gcc_cv_ld_dynamic_option): Define.
13344         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13345         instead.
13346         (HAVE_LD_STATIC_DYNAMIC): Update message.
13347         (LD_STATIC_OPTION): Define.
13348         (LD_DYNAMIC_OPTION): Define.
13349         * configure: Regenerate.
13350         * config.in: Regenerate.
13351         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13352         HAVE_LD_STATIC_DYNAMIC]: Use them.
13354 2011-01-31  Nick Clifton  <nickc@redhat.com>
13356         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13357         registers inside interrupt handlers if the handler is not a leaf
13358         function.
13360 2011-01-31  Nick Clifton  <nickc@redhat.com>
13362         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13363         reg_renumber returning an INVALID_REGNUM.
13365 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13367         PR libgcj/44341
13368         * doc/install.texi: Document host options discarded when cross
13369         configuring target libraries.
13371 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13373         Reverted:
13374         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13375         PR debug/45136
13376         PR debug/45130
13377         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13378         debug insns.
13379         (no_real_insns_p, schedule_block, set_priorities): Drop special
13380         treatment of boundary debug insns.
13381         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13382         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13383         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13384         (BOUNDARY_DEBUG_INSN_P): Likewise.
13385         (SCHEDULE_DEBUG_INSN_P): Likewise.
13386         * sched-rgn.c (init_ready_list): Drop special treatment of
13387         boundary debug insns.
13388         * final.c (rest_of_clean-state): Clear notes' BB.
13390 2011-01-31  Alan Modra  <amodra@gmail.com>
13392         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13393         toc relative expressions as we do in print_operand_address.
13395 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13397         * doc/extend.texi: Follow spelling conventions.
13398         * doc/invoke.texi: Fix a typo.
13400 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13402         * config/hpux11.opt: New.
13403         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13404         ia64*-*-hpux*): Use hpux11.opt.
13406 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13408         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13409         to tmake_file.
13411 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13413         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13414         support sites.
13416 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13418         * doc/install.texi (Binaries): Remove outdated reference for
13419         Motorola 68HC11/68HC12 downloads.
13421 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13423         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13424         Drepper's paper.
13426 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13428         PR bootstrap/47147
13429         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13430         used by NetBSD.
13432 2011-01-28  Ahmad Sharif  <asharif@google.com>
13434         * value-prof.c (check_counter): Corrected error message.
13436 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13438         * config/arm/arm.c (arm_legitimize_reload_address): New.
13439         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13440         arm_legitimize_reload_address.
13441         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13443 2011-01-28  Ian Lance Taylor  <iant@google.com>
13445         * godump.c (go_define): Ignore macros whose definitions include
13446         two adjacent operands.
13448 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13450         PR target/42894
13451         * varasm.c (force_const_mem): Store copy of x in desc->constant
13452         instead of x itself.
13453         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13454         itself into REG_EQUAL note.
13456 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13458         * config/freebsd.opt (posix, rdynamic): New Driver options.
13460 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13462         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13463         -Bstatic/-Bdynamic.
13464         * configure: Regenerate.
13466 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13468         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13469         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13471 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13473         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13474         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13475         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13476         (s390_preferred_reload_class): Make static. Change return and
13477         'rclass' argument type to reg_class_t.
13479 2011-01-27  Jan Hubicka  <jh@suse.cz>
13481         PR middle-end/46949
13482         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13483         (process_function_and_variable_attributes): Check defined weakrefs.
13485 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13487         PR tree-optimization/47228
13488         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13489         build_ref_for_offset.
13491 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13493         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13495 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13497         PR rtl-optimization/46856
13498         * postreload.c (reload_combine_recognize_const_pattern): Do not
13499         separate cc0 setter and user on cc0 targets.
13501 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13503         PR c/43082
13504         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13505         passed a VOID_TYPE expression, immediately emit an error and
13506         return error_mark_node.
13508 2011-01-26  Jeff Law  <law@redhat.com>
13510         PR rtl-optimization/47464
13511         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13512         rather than may_trap_p as needed.
13514 2011-01-26  DJ Delorie  <dj@redhat.com>
13516         PR rtl-optimization/46878
13517         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13518         setter/user dependency as well.
13520 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13522         PR rtl-optimization/44469
13523         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13524         after removing trivially dead basic blocks.
13526 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13528         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13529         * config/frv/frv.h (LINK_SPEC): Likewise.
13530         * config/i386/netware.h (LINK_SPEC): Likewise.
13531         * config/m68k/linux.h (ASM_SPEC): Likewise.
13532         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13533         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13534         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13535         * config/sparc/linux.h (ASM_SPEC): Likewise.
13536         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13537         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13539 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13541         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13542         * config/frv/frv.h (ASM_SPEC): Likewise.
13543         * config/m68k/linux.h (ASM_SPEC): Likewise.
13544         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13545         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13546         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13547         * config/sparc/linux.h (ASM_SPEC): Likewise.
13548         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13549         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13551 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13553         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13554         * config/frv/frv.h (LINK_SPEC): Likewise.
13555         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13557 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13559         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13560         * config/frv/frv.h (ASM_SPEC): Likewise.
13561         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13562         * config/m68k/linux.h (ASM_SPEC): Likewise.
13563         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13564         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13565         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13566         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13567         * config/sparc/linux.h (ASM_SPEC): Likewise.
13568         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13569         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13570         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13572 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13574         PR target/46997
13575         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13576         (*mux2): Ditto.
13577         (vec_extract_evenodd_help): Ditto.
13578         (vec_extract_evenv4hi): Ditto.
13579         (vec_extract_oddv4hi): Ditto.
13580         (vec_interleave_lowv2si): Ditto.
13581         (vec_interleave_highv2si): Ditto.
13582         (vec_extract_evenv2si): Ditto.
13583         (vec_extract_oddv2si: Ditto.
13584         (vec_pack_trunc_v2si): Ditto.
13586 2011-01-22  Jan Hubicka  <jh@suse.cz>
13588         PR target/47237
13589         * cgraph.h (cgraph_local_info): New field can_change_signature.
13590         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13591         signature can change.
13592         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13593         can change.
13594         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13595         (cgraph_function_versioning): We can not change signature of functions
13596         that don't allow that.
13597         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13598         (lto_input_node): Likewise.
13599         * ipa-inline.c (compute_inline_parameters): Compute
13600         local.can_change_signature.
13601         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13602         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13603         functions that can not change signature.
13604         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13605         init_cumulative_args): Do not use local calling conventions
13606         for functions that can not change signature.
13608 2011-01-22  Jan Hubicka  <jh@suse.cz>
13610         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13612 2011-01-26  Richard Guenther  <rguenther@suse.de>
13614         PR tree-optimization/47190
13615         * cgraphunit.c (process_common_attributes): New function.
13616         (process_function_and_variable_attributes): Use it.
13618 2011-01-26  Richard Guenther  <rguenther@suse.de>
13620         PR lto/47423
13621         * cgraphbuild.c (record_eh_tables): Record reference to personality
13622         function.
13624 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13626         PR debug/45454
13627         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13628         non-debug insns from moving up.
13630 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13632         PR target/40125
13633         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13634         t-dlldir{,-x} fragment for build and add it to tmake_file.
13635         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13636         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13637         * config/i386/t-dlldir: New file.
13638         (SHLIB_DLLDIR): Define.
13639         * config/i386/t-dlldir-x: New file.
13640         (SHLIB_DLLDIR): Define.
13641         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13642         (SHLIB_INSTALL): Use it.
13644 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13646         PR target/47246
13647         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13648         lower bound of the allowed Thumb-2 coprocessor load/store
13649         index range to -256. Add explaining comment.
13651 2011-01-25  Ian Lance Taylor  <iant@google.com>
13653         * godump.c (go_define): Improve lexing of macro expansion to only
13654         accept expressions which match Go spec.
13656 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13658         PR c++/43601
13659         * tree.c (handle_dll_attribute): Handle it.
13660         * doc/extend.texi (@item dllexport): Mention it.
13661         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13663 2011-01-25  Ian Lance Taylor  <iant@google.com>
13665         PR tree-optimization/26854
13666         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13667         (decl_jump_unsafe): Move higher in file, with no other change.
13668         (bind): Set has_jump_unsafe_decl if appropriate.
13669         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13670         (check_earlier_gotos): Likewise.
13671         (c_check_switch_jump_warnings): Likewise.
13673 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13675         * doc/invoke.texi (Warning Options): Add missing hyphen.
13676         (-fprofile-dir): Minor grammatical fixes.
13677         (-fbranch-probabilities): Likewise.
13679 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13681         PR debug/45136
13682         PR debug/45130
13683         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13684         debug insns.
13685         (no_real_insns_p, schedule_block, set_priorities): Drop special
13686         treatment of boundary debug insns.
13687         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13688         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13689         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13690         (BOUNDARY_DEBUG_INSN_P): Likewise.
13691         (SCHEDULE_DEBUG_INSN_P): Likewise.
13692         * sched-rgn.c (init_ready_list): Drop special treatment of
13693         boundary debug insns.
13694         * final.c (rest_of_clean-state): Clear notes' BB.
13696 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13698         * Makefile.in (LAMBDA_H): Removed.
13699         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13700         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13701         lambda-trans.o, and tree-loop-linear.o.
13702         (lto-symtab.o): Remove dependence on LAMBDA_H.
13703         (tree-loop-linear.o): Remove rule.
13704         (lambda-mat.o): Same.
13705         (lambda-trans.o): Same.
13706         (lambda-code.o): Same.
13707         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13708         (tree-vect-slp.o): Same.
13709         * hwint.h (gcd): Moved here.
13710         (least_common_multiple): Same.
13711         * lambda-code.c: Removed.
13712         * lambda-mat.c: Removed.
13713         * lambda-trans.c: Removed.
13714         * lambda.h: Removed.
13715         * tree-loop-linear.c: Removed.
13716         * lto-symtab.c: Do not include lambda.h.
13717         * omega.c (gcd): Removed.
13718         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13719         * tree-data-ref.c (print_lambda_vector): Moved here.
13720         (lambda_vector_copy): Same.
13721         (lambda_matrix_copy): Same.
13722         (lambda_matrix_id): Same.
13723         (lambda_vector_first_nz): Same.
13724         (lambda_matrix_row_add): Same.
13725         (lambda_matrix_row_exchange): Same.
13726         (lambda_vector_mult_const): Same.
13727         (lambda_vector_negate): Same.
13728         (lambda_matrix_row_negate): Same.
13729         (lambda_vector_equal): Same.
13730         (lambda_matrix_right_hermite): Same.
13731         * tree-data-ref.h: Do not include lambda.h.
13732         (lambda_vector): Moved here.
13733         (lambda_matrix): Same.
13734         (dependence_level): Same.
13735         (lambda_transform_legal_p): Removed declaration.
13736         (lambda_collect_parameters): Same.
13737         (lambda_compute_access_matrices): Same.
13738         (lambda_vector_gcd): Same.
13739         (lambda_vector_new): Same.
13740         (lambda_vector_clear): Same.
13741         (lambda_vector_lexico_pos): Same.
13742         (lambda_vector_zerop): Same.
13743         (lambda_matrix_new): Same.
13744         * tree-flow.h (least_common_multiple): Removed declaration.
13745         * tree-parloops.c (lambda_trans_matrix): Moved here.
13746         (LTM_MATRIX): Same.
13747         (LTM_ROWSIZE): Same.
13748         (LTM_COLSIZE): Same.
13749         (LTM_DENOMINATOR): Same.
13750         (lambda_trans_matrix_new): Same.
13751         (lambda_matrix_vector_mult): Same.
13752         (lambda_transform_legal_p): Same.
13753         * tree-pass.h (pass_linear_transform): Removed declaration.
13754         * tree-ssa-loop.c (tree_linear_transform): Removed.
13755         (gate_tree_linear_transform): Removed.
13756         (pass_linear_transform): Removed.
13757         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13758         flag_loop_interchange.
13760 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13762         PR tree-optimization/47265
13763         PR tree-optimization/47443
13764         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13765         if name still has some uses.
13767 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13769         PR tree-optimization/47382
13770         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13771         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13773 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13775         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13776         sjlj_except_unwind_info.
13778 2011-01-25  Richard Guenther  <rguenther@suse.de>
13780         PR tree-optimization/47426
13781         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13782         visible functions results escape.
13784 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13786         PR target/45701
13787         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13788         (arm_get_frame_offsets): Use it.
13790 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13791             Jakub Jelinek  <jakub@redhat.com>
13793         PR tree-optimization/47271
13794         * tree-if-conv.c (bb_postdominates_preds): New.
13795         (if_convertible_bb_p): Call bb_postdominates_preds.
13796         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13797         (predicate_scalar_phi): Call bb_postdominates_preds.
13799 2011-01-25  Nick Clifton  <nickc@redhat.com>
13801         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13802         * config/rx/rx.c (rx_function_value): Likewise.
13803         (rx_promote_function_mode): Likewise.
13804         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13805         in order to make it legitimate.
13806         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13807         make sure that the first operand is the same as the result register.
13808         (addsi3_unspec): Delete.
13809         (subdi3): Do not accept immediate operands.
13810         (subdi3_internal): Likewise.
13812 2011-01-25  Jeff Law  <law@redhat.com>
13814         PR rtl-optimization/37273
13815         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13816         handle them like argument loads from stack slots.  Do not double
13817         count memory for memory constants and argument loads from stack slots.
13819 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13821         PR tree-optimization/47427
13822         PR tree-optimization/47428
13823         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13824         coalesce if the new root var would be TREE_READONLY.
13826 2011-01-25  Richard Guenther  <rguenther@suse.de>
13828         PR middle-end/47414
13829         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13830         correct type for TBAA.
13832 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13834         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13835         (close_phi_written_to_memory): Call for_each_index with
13836         dr_indices_valid_in_loop.
13838 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13840         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13841         when it is initialized.
13843 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13845         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13846         call to graphite_find_data_references_in_stmt.
13847         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13848         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13849         call to graphite_find_data_references_in_stmt.
13850         (analyze_drs_in_stmts): Same.
13851         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13852         in which the scalar analysis of indices is performed.
13853         (create_data_ref): Same.  Update call to dr_analyze_indices.
13854         (find_data_references_in_stmt): Update call to create_data_ref.
13855         (graphite_find_data_references_in_stmt): Same.
13856         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13857         declaration.
13858         (create_data_ref): Same.
13859         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13860         call to create_data_ref.
13862 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13864         * graphite-sese-to-poly.c (build_poly_scop): Move
13865         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13867 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13869         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13870         VAR_DECL, PARM_DECL, and RESULT_DECL.
13872 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13874         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13875         in a reduction PBB.
13876         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13877         that have already been marked as PBB_IS_REDUCTION.
13879 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13881         * graphite-scop-detection.c (same_close_phi_node): New.
13882         (remove_duplicate_close_phi): New.
13883         (make_close_phi_nodes_unique): New.
13884         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13886 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13888         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13889         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13890         of both data references to be the same.
13892 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13894         * graphite-dependences.c (build_lexicographical_constraint): Remove
13895         the gdim parameter.
13896         (build_lexicographical_constraint): Adjust call to
13897         ppl_powerset_is_empty.
13898         (dependence_polyhedron): Same.
13899         (graphite_legal_transform_dr): Same.
13900         (graphite_carried_dependence_level_k): Same.
13901         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13902         parameter.
13903         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13907         * graphite-sese-to-poly.c
13908         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13909         (close_phi_written_to_memory): New.
13910         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13911         and unshare_expr.
13913 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13915         * doc/install.texi: Update the expected version number of PPL to 0.11.
13916         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13917         #if PPL_VERSION_MINOR < 11.
13919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13921         * graphite-dependences.c: Include graphite-cloog-util.h.
13922         (new_poly_ddr): Inlined into dependence_polyhedron.
13923         (free_poly_ddr): Moved close by new_poly_ddr.
13924         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13925         Early return NULL when ppl_powerset_is_empty returns true.
13926         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13927         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13928         (graphite_legal_transform_dr): Call new_poly_ddr.
13929         (graphite_carried_dependence_level_k): Same.
13930         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13931         (dot_transformed_deps_stmt_1): Removed.
13932         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13933         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13934         (dot_deps_1): Call dot_deps_2.
13935         * Makefile.in (graphite-dependences.o): Add missing dependence on
13936         graphite-cloog-util.h.
13938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13940         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13941         (build_lexicographical_constraint): Same.
13942         (dependence_polyhedron_1): Same.
13943         (graphite_legal_transform_dr): Same.
13944         (graphite_carried_dependence_level_k): Same.
13945         * graphite-ppl.c (ppl_powerset_is_empty): New.
13946         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13947         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13949 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13951         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13952         the "a followed by b" relation and document it.
13954 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13956         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13957         iteration when the bag of constraints is empty.
13959 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13961         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13963 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13965         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13966         nest and two loop depths as parameters.
13967         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13968         lst_perfect_nestify.
13970 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13972         * graphite-dependences.c (print_pddr): Call
13973         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13975 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13977         * graphite-ppl.c (debug_gmp_value): New.
13978         * graphite-ppl.h (debug_gmp_value): Declared.
13980 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13982         * doc/install.texi: Document availability of cloog-0.16.
13984 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13986         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13987         invalid postdominance info.
13989 2011-01-24  Jan Hubicka  <jh@suse.cz>
13991         PR c/21659
13992         * doc/extend.texi (weak pragma): Drop claim that it must
13993         appear before definition.
13994         * varasm.c (merge_weak, declare_weak): Only sanity check
13995         that DECL is not output at a time it is declared weak.
13997 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13999         * machmode.def: Fixed comments.
14001 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
14003         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14005 2011-01-24  Paul Koning  <ni1d@arrl.net>
14007         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14008         WORDS_BIG_ENDIAN.
14010 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14012         PR target/46519
14013         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14014         (block_info): Add scanned and prev.
14015         (move_or_delete_vzeroupper_2): Return if the basic block
14016         has been scanned and the upper 128bit state is unchanged
14017         from the last scan.
14018         (move_or_delete_vzeroupper_1): Return true if the exit
14019         state is changed.
14020         (move_or_delete_vzeroupper): Visit basic blocks using the
14021         work-list based algorithm based on vt_find_locations in
14022         var-tracking.c.
14024         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14026 2011-01-24  Nick Clifton  <nickc@redhat.com>
14028         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14029         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14030         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14031         then define __v850e1__.
14032         * doc/invoke.texi: Document -mv850es.
14034 2011-01-24  Richard Henderson  <rth@redhat.com>
14036         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14037         compound unordered comparisons.
14038         * config/rx/rx.c (rx_split_fp_compare): Remove.
14039         * config/rx/rx-protos.h: Update.
14040         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14041         (cbranchsf4): Don't call rx_split_fp_compare.
14042         (*cbranchsf4): Use rx_split_cbranch.
14043         (*cmpsf): Don't accept "i" constraint.
14044         (*conditional_branch): Only valid after reload.
14045         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14047 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14049         PR target/47385
14050         * config/rs6000/altivec.md (vector constant splitters): Add
14051         support for creating vector single precision constants if -mvsx is
14052         used and we would create the constant using Altivec primitives.
14054 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14055             Richard Sandiford  <rdsandiford@googlemail.com>
14057         PR rtl-optimization/47166
14058         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14059         mechanism for PRE_MODIFY and POST_MODIFY.
14060         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14061         reloadreg.
14063 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14065         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14067 2011-01-22  Jan Hubicka  <jh@suse.cz>
14069         PR lto/47333
14070         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14072 2011-01-22  Jan Hubicka  <jh@suse.cz>
14074         PR tree-optimization/43884
14075         PR lto/44334
14076         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14077         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14079 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14081         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14082         * config/s390/s390.c (s390_register_move_cost,
14083         s390_memory_move_cost): New.
14084         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14086 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14088         PR middle-end/47401
14089         * except.c (sjlj_assign_call_site_values): Move setting the
14090         crtl->uses_eh_lsda flag to ...
14091         (sjlj_mark_call_sites): ... here.
14092         (sjlj_emit_function_enter): Support NULL dispatch label.
14093         (sjlj_build_landing_pads): In a function with no landing pads
14094         that still has must-not-throw regions, generate code to register
14095         a personality function with empty LSDA.
14097 2011-01-21  Richard Henderson  <rth@redhat.com>
14099         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14101         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14103         * compare-elim.c: New file.
14104         * Makefile.in (OBJS-common): Add it.
14105         (compare-elim.o): New.
14106         * common.opt (fcompare-elim): New.
14107         * opts.c (default_options_table): Add OPT_fcompare_elim.
14108         * tree-pass.h (pass_compare_elim_after_reload): New.
14109         * passes.c (init_optimization_passes): Add it.
14110         * recog.h: Protect against re-inclusion.
14111         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14112         * doc/invoke.texi (-fcompare-elim): Document it.
14113         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14114         * doc/tm.texi: Rebuild.
14116 2011-01-22  Nick Clifton  <nickc@redhat.com>
14118         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14119         rx_split_fp_compare.
14121 2011-01-22  Nick Clifton  <nickc@redhat.com>
14123         * config/rx/rx.md (UNSPEC_CONST): New.
14124         (deallocate_and_return): Wrap the amount popped off the stack in
14125         an UNSPEC_CONST in order to stop it being rejected by
14126         -mmax-constant-size.
14127         (pop_and_return): Add a "(return)" rtx.
14128         (call): Drop the immediate operand.
14129         (call_internal): Likewise.
14130         (call_value): Likewise.
14131         (call_value_internal): Likewise.
14132         (sibcall_internal): Likewise.
14133         (sibcall_value_internal): Likewise.
14134         (sibcall): Likewise.  Generate an explicit call using
14135         sibcall_internal.
14136         (sibcall_value): Likewise.
14137         (mov<>): FAIL if a constant operand is not legitimate.
14138         (addsi3_unpsec): New pattern.
14140         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14141         (ok_for_max_constant): New function.
14142         (gen_safe_add): New function.
14143         (rx_expand_prologue): Use gen_safe_add.
14144         (rx_expand_epilogue): Likewise.
14145         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14146         UNSPEC CONSTs.
14148 2011-01-21  Jeff Law  <law@redhat.com>
14150         PR tree-optimization/47053
14151         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14152         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14153         statements are deleted.
14154         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14155         is nonempty, then purge dead edges and cleanup the CFG.
14157 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14159         PR debug/47402
14160         Temporarily revert:
14161         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14162         PR debug/47106
14163         * tree-dfa.c (create_var_ann): Mark variable as used.
14165 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14167         PR middle-end/45566
14168         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14169         notes from other section in hot/cold partitioning even if
14170         last_action is -3.  Increment call_site_base.
14172         PR rtl-optimization/47366
14173         * fwprop.c (forward_propagate_into): Return bool.  If
14174         any changes are made, -fnon-call-exceptions is used and
14175         REG_EH_REGION note is present, call purge_dead_edges
14176         and return true if it purged anything.
14177         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14178         any EH edges were purged.
14180 2011-01-21  Jeff Law  <law@redhat.com>
14182         PR rtl-optimization/41619
14183         * caller-save.c (setup_save_areas): Break out code to determine
14184         which hard regs are live across calls by examining the reload chains
14185         so that it is always used.
14186         Eliminate code which checked REG_N_CALLS_CROSSED.
14188 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14190         PR tree-optimization/47355
14191         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14192         NOP has non-debug uses beyond PHIs in new_bb.
14194 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14196         PR debug/47106
14197         * cfgexpand.c (account_used_vars_for_block): Only account vars
14198         that are annotated as used.
14199         (estimated_stack_frame_size): Don't set TREE_USED.
14200         * tree-dfa.c (create_var_ann): Mark variable as used.
14202 2011-01-21  Richard Guenther  <rguenther@suse.de>
14204         PR middle-end/47395
14205         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14207 2011-01-21  Richard Guenther  <rguenther@suse.de>
14209         PR tree-optimization/47365
14210         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14211         (vn_reference_lookup_pieces): Adjust.
14212         (vn_reference_lookup): Likewise.
14213         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14214         (vn_reference_lookup_3): Only look through kills if in
14215         VN_WALKREWRITE mode.
14216         (vn_reference_lookup_pieces): Adjust.
14217         (vn_reference_lookup): Likewise.
14218         (visit_reference_op_load): Likewise.
14219         (visit_reference_op_store): Likewise.
14220         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14221         (compute_avail): Likewise.
14222         (eliminate): Likewise.
14224 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14226         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14227         DECL_IGNORED_P non-reg vars if they are used.
14229         PR tree-optimization/47391
14230         * varpool.c (const_value_known_p): Return false if
14231         decl is volatile.
14233 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14235         PR bootstrap/47215
14236         * config/i386/i386.c (ix86_local_alignment): Handle
14237         case for va_list_type_node is nil.
14238         (ix86_canonical_va_list_type): Likewise.
14240 2011-01-21  Alan Modra  <amodra@gmail.com>
14242         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14243         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14245 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14247         * config/arm/arm.md (define_attr type): Rename f_load
14248         and f_store to f_fpa_load and f_fpa_store. Update.
14249         (write_conflict): Deal with rename fallout.
14250         (*push_fp_multi): Likewise.
14251         * config/arm/fpa.md (f_load): Use f_fpa_load.
14252         (f_store): Use f_fpa_store.
14253         (*movsf_fpa): Likewise.
14254         (*movdf_fpa): Likewise.
14255         (*movxf_fpa): Likewise.
14256         (*thumb2_movsf_fpa): Likewise.
14257         (*thumb2_movdf_fpa): Likewise.
14258         (*thumb2_movxf_fpa): Likewise.
14259         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14260         f_loadd and f_stored.
14261         (*thumb2_movdi_vfp): Likewise.
14262         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14263         (*thumb2_movsi_vfp): Likewise.
14264         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14265         Use f_loads instead of f_load.
14266         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14268 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14270         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14271         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14272         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14273         (xtensa_mode_dependent_address_p): New function.
14274         (constantpool_address_p): Make static. Change return type to bool.
14275         Change argument type to const_rtx. Use CONST_INT_P predicate.
14277 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14279         PR debug/46583
14280         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14282 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14284         PR debug/47283
14285         * cfgexpand.c (expand_debug_expr): Instead of generating
14286         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14287         etc. handling.
14289 2011-01-20  Richard Guenther  <rguenther@suse.de>
14291         PR middle-end/47370
14292         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14293         the pointer operand of MEM_REFs.
14295 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14297         PR tree-optimization/46130
14298         * ipa-split.c (consider_split): If return_bb contains non-virtual
14299         PHIs other than for retval or if split_function would not adjust it,
14300         refuse to split.
14302 2011-01-20  Richard Guenther  <rguenther@suse.de>
14304         PR tree-optimization/47167
14305         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14306         Revert previous change, only avoid enumeral type changes.
14308 2011-01-19  Mike Stump  <mikestump@comcast.net>
14310         * doc/tm.texi.in (BRANCH_COST): Englishify.
14311         * doc/tm.texi (BRANCH_COST): Likewise.
14313 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14315         PR c++/47291
14316         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14317         (gen_scheduled_generic_parms_dies): New functions.
14318         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14319         generation for the end of CU compilation.
14320         (dwarf2out_finish): Generate template parameters DIEs here.
14322 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14324         PR debug/46240
14325         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14326         debug bind stmt on merge edges.
14328 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14330         PR debug/47079
14331         PR debug/46724
14332         * function.c (instantiate_expr): Instantiate incoming rtl of
14333         implicit arguments, and recurse on VALUE_EXPRs.
14334         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14335         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14337 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14339         * c-parser.c (c_parser_for_statement): Initialize
14340         collection_expression.
14342 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14344         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14346 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14348         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14349         (LINK_SHLIB_SPEC): Don't use %(link_path).
14350         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14352 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14354         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14355         (NO_SHARED_LIB_SUPPORT): Remove.
14356         (LINK_SHLIB_SPEC): Remove one conditional definition.
14358 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14360         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14361         %{call_shared}.
14362         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14363         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14364         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14365         %{call_shared} and conditionals on these options not being passed.
14366         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14367         %{call_shared}.
14369 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14371         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14372         simplify.
14374         * ipa-split.c: Spelling fixes.
14376 2011-01-19  Richard Henderson  <rth@redhat.com>
14378         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14379         (*mulsi3): Likewise.
14381         * longlong.h [__mn10300__] (count_leading_zeros): New.
14382         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14383         [__mn10300__] (add_ssaaaa, subddmmss): New.
14384         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14385         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14387 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14389         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14391 2011-01-19  Richard Henderson  <rth@redhat.com>
14393         * config/mn10300/mn10300.md (addsi3_flags): New.
14394         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14395         (subsi3_flags, subc_internal, subdi3): New.
14396         (subdi3_internal, *subdi3_degenerate): New.
14397         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14399         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14400         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14401         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14402         * config/mn10300/mn10300-protos.h: Update.
14403         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14404         (return_ret): Likewise.  Rename from return_internal_regs.
14405         (return_internal): Remove.
14407         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14408         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14409         (mn10300_legitimate_constant_p): Likewise.
14410         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14411         (mn10300_frame_size): New.
14412         (mn10300_expand_prologue): Use it.
14413         (mn10300_expand_epilogue): Likewise.
14414         (mn10300_initial_offset): Likewise.
14415         * config/mn10300/mn10300-protos.h: Update.
14416         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14417         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14418         (prologue, epilogue, return_internal): Tidy output code.
14419         (mn10300_store_multiple_operation, return): Likewise.
14420         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14421         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14422         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14423         (load_pic, am33_load_pic): New.
14424         (mn10300_load_pic0, mn10300_load_pic1): New.
14426         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14427         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14428         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14429         (cc_flags_for_mode, cc_flags_for_code): New.
14430         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14431         overflow flag is not valid.  Validate that the flags we need
14432         for the comparison are valid.
14433         (mn10300_output_cmp): Remove.
14434         (mn10300_output_add): New.
14435         (mn10300_select_cc_mode): Use cc_flags_for_code.
14436         (mn10300_split_cbranch): New.
14437         (mn10300_match_ccmode): New.
14438         (mn10300_split_and_operand_count): New.
14439         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14440         to the function.
14441         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14442         (addsi3): ... here.  Use mn10300_output_add.
14443         (*addsi3_flags): New.
14444         (*am33_subsi3, *mn10300_subsi3): Merge...
14445         (subsi3): ... here.  Use attribute isa.
14446         (*subsi3_flags): New.
14447         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14448         when possible.
14449         (*am33_andsi3, *mn10300_andsi3): Merge...
14450         (andsi3): ... here.
14451         (*andsi3_flags): New.
14452         (andsi3 splitters): New.
14453         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14454         (iorsi3): ... here.
14455         (*iorsi3_flags): New.
14456         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14457         (xorsi3): ... here.
14458         (*xorsi3_flags): New.
14459         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14460         (one_cmplsi2): ... here.
14461         (*one_cmplsi2_flags): New.
14462         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14463         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14464         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14465         use matching constraints to eliminate a self-comparison.
14466         (*integer_conditional_branch): Rename from integer_conditional_branch.
14467         Use int_mode_flags to match CC_REG.
14468         (*cbranchsi4_btst, *btstsi): New.
14469         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14470         mn10300_split_cbranch.
14471         (*am33_cmpsf): Rename from am33_cmpsf.
14472         (*float_conditional_branch): Rename from float_conditional_branch.
14473         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14474         (zero_extendqisi2): ... here.
14475         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14476         (zero_extendhisi2): ... here.
14477         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14478         (extendqisi2): ... here.
14479         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14480         (extendhisi2): ... here.
14481         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14482         (ashlsi3): ... here.
14483         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14484         (lshrsi3): ... here.
14485         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14486         (ashrsi3): ... here.
14487         (consecutive add peephole): Remove.
14488         * config/mn10300/predicates.md (label_ref_operand): New.
14489         (int_mode_flags): New.
14490         (CCZN_comparison_operator): New.
14492         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14493         (throughput_42_latency_43): New reservation.
14494         (mulsidi3, umulsidi3): New expanders.
14495         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14496         the MDR register to allocation; separately allocate the low and
14497         high parts of the DImode result.
14498         (umulsidi3_internal): Similarly.
14499         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14500         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14501         (udivsi3, umodsi3): Remove.
14502         (udivmodsi4, divmodsi4): New expanders.
14503         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14504         (*divmodsi4): Simiarly.
14505         (ext_internal): New.
14507         * config/mn10300/constraints.md ("z"): New constraint.
14508         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14509         (FIXED_REGISTERS): Don't fix MDR.
14510         (CALL_USED_REGSITERS): Reformat nicely.
14511         (REG_ALLOC_ORDER): Add MDR.
14512         (enum regclass): Add MDR_REGS.
14513         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14514         (IRA_COVER_CLASSES): Add MDR_REGS.
14515         (REGNO_REG_CLASS): Handle MDR_REG.
14516         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14517         (mn10300_register_move_cost): Likewise.
14518         * config/mn10300/mn10300.md (MDR_REG): New.
14519         (*movsi_internal): Handle moves to/from MDR_REGS.
14521         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14522         POST_MODIFY.
14523         (mn10300_secondary_reload): Tidy combination reload classes.
14524         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14525         addresses for AM33.  Allow symbolic offsets for reg+imm.
14526         (mn10300_regno_in_class_p): New.
14527         (mn10300_legitimize_reload_address): New.
14528         * config/mn10300/mn10300.h (enum reg_class): Remove
14529         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14530         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14531         SP_OR_GENERAL_REGS.
14532         (REG_CLASS_NAMES): Update to match.
14533         (REG_CLASS_CONTENTS): Likewise.
14534         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14535         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14536         (REGNO_IN_RANGE_P): Remove.
14537         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14538         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14539         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14540         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14541         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14542         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14543         (REGNO_GENERAL_P): New.
14544         (HAVE_POST_MODIFY_DISP): New.
14545         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14546         (LEGITIMIZE_RELOAD_ADDRESS): New.
14547         * config/mn10300/mn10300-protos.h: Update.
14549         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14550         DATA_REGS for AM33 stack-pointer destination.
14551         (mn10300_preferred_output_reload_class): Likewise.
14552         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14553         into a form appropriate for ...
14554         (TARGET_SECONDARY_RELOAD): New.
14555         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14556         * config/mn10300/mn10300-protos.h: Update.
14557         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14558         reload_insi; use the "A" constraint for the scratch; handle AM33
14559         moves of sp to non-address registers.
14561         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14562         (*movqi_internal): ... here.
14563         (*am33_movhi, *mn10300_movhi): Merge into...
14564         (*movhi_internal): ... here.
14565         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14566         as the source/destination of moves from/to SP.
14567         (movsf): Only allow for AM33-2.
14568         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14569         any integer constant constraint.  Only allow for AM33-2.  Tidy
14570         all of the alternative outputs.
14571         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14572         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14573         for MN103.
14574         (udivsi3, umodsi3): New patterns for MN103 only.
14576 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14578         * doc/tm.texi.in: Spell out that a lack of register class unions
14579         can lead to ICEs.
14580         * doc/tm.texi: Regenerate.
14582 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14584         PR rtl-optimization/47337
14585         * dce.c (check_argument_store): New function.
14586         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14588         PR tree-optimization/47290
14589         * tree-eh.c (infinite_empty_loop_p): New function.
14590         (cleanup_empty_eh): Use it.
14592 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14594         PR target/46997
14595         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14596         (a64_expand_widen_sum): Ditto.
14597         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14598         (vec_extract_evenodd_help): Ditto.
14599         (vec_extract_evenv4hi): Ditto.
14600         (vec_extract_oddv4hi): Ditto.
14601         (vec_extract_evenv2si): Ditto.
14602         (vec_extract_oddv2si): Ditto.
14603         (vec_extract_evenv2sf): Ditto.
14604         (vec_extract_oddv2sf): Ditto.
14605         (vec_pack_trunc_v4hi: Ditto.
14606         (vec_pack_trunc_v2si): Ditto.
14607         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14608         (vec_interleave_highv8qi): Ditto.
14609         (mix1_r): Ditto.
14610         (vec_extract_oddv8qi): Ditto.
14611         (vec_interleave_lowv4hi): Ditto.
14612         (vec_interleave_highv4hi): Ditto.
14613         (vec_interleave_lowv2si): Ditto.
14614         (vec_interleave_highv2si): Ditto.
14616 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14618         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14619         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14620         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14621         (pa_c_mode_for_suffix): New.
14622         (TARGET_EXPAND_BUILTIN): Define.
14623         (TARGET_C_MODE_FOR_SUFFIX): Define.
14624         (pa_builtins): Define.
14625         (pa_init_builtins): Register __float128 type and init new support
14626         builtins.
14627         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14628         * config/pa/quadlib.c (_U_Qfcopysign): New.
14630 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14632         PR middle-end/46894
14633         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14634         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14635         are defined.
14637 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14639         PR tree-optimization/47179
14640         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14641         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14643 2011-01-18  Richard Guenther  <rguenther@suse.de>
14645         PR rtl-optimization/47216
14646         * emit-rtl.c: Include tree-flow.h.
14647         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14648         of replicating it with different semantics.
14649         * Makefile.in (emit-rtl.o): Adjust.
14651 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14653         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14654         (cortex_a9_dp): Handle neon types correctly.
14656 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14658         PR rtl-optimization/47299
14659         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14660         subtarget.  Use normal multiplication if both operands are constants.
14661         * expmed.c (expand_widening_mult): Don't try to optimize constant
14662         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14663         before using it.
14665 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14667         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14668         spacing after 'e.g.', typos, comma, hyphenation.
14670 2011-01-17  Richard Henderson  <rth@redhat.com>
14672         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14673         (rx_restricted_mem_operand): New.
14674         (rx_shift_operand): Use register_operand.
14675         (rx_source_operand, rx_compare_operand): Likewise.
14676         * config/rx/rx.md (addsi3_flags): New expander.
14677         (adddi3): Rewrite as expander.
14678         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14679         (subsi3_flags): New expander.
14680         (subdi3): Rewrite as expander.
14681         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14683         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14684         (rx_init_builtins): Remove sat builtin.
14685         (rx_expand_builtin): Likewise.
14686         * config/rx/rx.md (ssaddsi3): New.
14687         (*sat): Rename from sat.  Represent the CC_REG input.
14689         * config/rx/predicates.md (rshift_operator): New.
14690         * config/rx/rx.c (rx_expand_insv): Remove.
14691         * config/rx/rx-protos.h: Update.
14692         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14693         operand to the canonical position.
14694         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14695         (*bitclr, *bitclr_in_memory): Similarly.
14696         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14697         (insv): Retain the zero_extract in the expansion.
14699         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14700         (bswaphi2, bitinvert, revw): Likewise.
14702         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14703         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14704         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14705         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14706         (bitset, bitset_in_memory): Likewise.
14707         (bitinvert, bitinvert_in_memory): Likewise.
14708         (bitclr, bitclr_in_memory): Likewise.
14709         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14710         (rx_strend, rx_cmpstrn): Likewise.
14711         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14712         (bitop peep2 patterns): Remove.
14714         * config/rx/rx.c (rx_match_ccmode): New.
14715         * config/rx/rx-protos.h: Update.
14716         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14717         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14718         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14719         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14720         (fix_truncsfsi2, floatsisf2): Likewise.
14721         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14722         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14723         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14724         (*subsi3_flags, *xorsi3_flags): New.
14726         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14728         * config/rx/rx.c (rx_print_operand): Remove workaround for
14729         unsplit comparison operations.
14731         * config/rx/rx.md (movsicc): Split after reload.
14732         (*movsicc): Merge *movsieq and *movsine via match_operator.
14733         (*stcc): New pattern.
14735         * config/rx/rx.c (rx_float_compare_mode): Remove.
14736         * config/rx/rx.h (rx_float_compare_mode): Remove.
14737         * config/rx/rx.md (cstoresi4): Split after reload.
14738         (*sccc): New pattern.
14740         * config/rx/predicates.md (label_ref_operand): New.
14741         (rx_z_comparison_operator): New.
14742         (rx_zs_comparison_operator): New.
14743         (rx_fp_comparison_operator): New.
14744         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14745         Validate that the flags are set properly for the comparison.
14746         (rx_gen_cond_branch_template): Remove.
14747         (rx_cc_modes_compatible): Remove.
14748         (mode_from_flags): New.
14749         (flags_from_code): Rename from flags_needed_for_conditional.
14750         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14751         (rx_select_cc_mode): Likewise.
14752         (rx_split_fp_compare): New.
14753         (rx_split_cbranch): New.
14754         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14755         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14756         (*cbranchsf4): Similarly.
14757         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14758         match_operator and rx_split_cbranch.
14759         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14760         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14761         (*cmpsi): Rename from cmpsi.
14762         (*tstsi): Rename from tstsi.
14763         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14764         (*conditional_branch): Rename from conditional_branch.
14765         (*reveresed_conditional_branch): Remove.
14766         (b<code>): Remove expander.
14767         * config/rx/rx-protos.h: Update.
14769         * config/rx/rx.c (rx_compare_redundant): Remove.
14770         * config/rx/rx.md (cmpsi): Don't use it.
14771         * config/rx/rx-protos.h: Update.
14773         * config/rx/rx-modes.def (CC_F): New mode.
14774         * config/rx/rx.c (rx_select_cc_mode): New.
14775         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14776         * config/rx/rx-protos.h: Update.
14778 2011-01-17  Richard Henderson  <rth@redhat.com>
14780         * except.c (dump_eh_tree): Fix stray ; after for statement.
14782 2011-01-17  Richard Guenther  <rguenther@suse.de>
14784         PR tree-optimization/47313
14785         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14786         handling before copying the body.  Properly deal with
14787         by-reference result in SSA form.
14789 2011-01-17  Ian Lance Taylor  <iant@google.com>
14791         PR target/47219
14792         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14793         (struct_value_alias_set): Don't define.
14794         (sparc_option_override): Don't set sparc_sr_alias_set and
14795         struct_value_alias_set.
14796         (save_or_restore_regs): Use gen_frame_mem rather than calling
14797         set_mem_alias_set.
14798         (sparc_struct_value_rtx): Likewise.
14800 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14802         PR target/47318
14803         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14804         (_mm_maskstore_pd): Likewise.
14805         (_mm_maskload_ps): Likewise.
14806         (_mm_maskstore_ps): Likewise.
14807         (_mm256_maskload_pd): Change mask to __m256i.
14808         (_mm256_maskstore_pd): Likewise.
14809         (_mm256_maskload_ps): Likewise.
14810         (_mm256_maskstore_ps): Likewise.
14812         * config/i386/i386-builtin-types.def: Updated.
14813         (ix86_expand_special_args_builtin): Likewise.
14815         * config/i386/i386.c (bdesc_special_args): Update
14816         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14817         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14818         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14819         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14821         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14822         Use <avxpermvecmode> on mask register.
14823         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14825 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14826             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14827             Eric Botcazou  <ebotcazou@adacore.com>
14829         PR target/46655
14830         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14831         if <= USHRT_MAX in 32-bit mode.
14833 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14835         * doc/install.texi (Configuration, Specific): Wrap long
14836         lines in examples.  Allow line wrapping in long options
14837         and URLs where beneficial for PDF output.
14839 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14841         * config/mips/mips.c (mips_classify_symbol): Don't return
14842         SYMBOL_PC_RELATIVE for nonlocal labels.
14844 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14846         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14848 2011-01-15  Jan Hubicka  <jh@suse.cz>
14850         PR tree-optimization/47276
14851         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14852         declarations as needed.
14854 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14856         * common.opt (fdevirtualize): New flag.
14857         * doc/invoke.texi (Option Summary): Document it.
14858         * opts.c (default_options_table): Add devirtualize flag.
14859         * ipa-prop.c (detect_type_change): Return immediately if
14860         devirtualize flag is not set.
14861         (detect_type_change_ssa): Likewise.
14862         (compute_known_type_jump_func): Likewise.
14863         (ipa_analyze_virtual_call_uses): Likewise.
14865 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14867         PR tree-optimization/45934
14868         PR tree-optimization/46302
14869         * ipa-prop.c (type_change_info): New type.
14870         (stmt_may_be_vtbl_ptr_store): New function.
14871         (check_stmt_for_type_change): Likewise.
14872         (detect_type_change): Likewise.
14873         (detect_type_change_ssa): Likewise.
14874         (compute_complex_assign_jump_func): Check for dynamic type change.
14875         (compute_complex_ancestor_jump_func): Likewise.
14876         (compute_known_type_jump_func): Likewise.
14877         (compute_scalar_jump_functions): Likewise.
14878         (ipa_analyze_virtual_call_uses): Likewise.
14879         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14881 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14883         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14884         * config/i386/i386.opt (msse5): New Alias.
14886 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14888         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14889         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14890         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14891         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14893 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14895         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14896         -mcpu options.
14897         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14898         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14899         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14900         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14901         Likewise.
14902         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14904 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14906         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14908 2011-01-14  Mike Stump  <mikestump@comcast.net>
14910         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14911         * config/fr30/fr30.md: Likweise
14912         (movsi_push): Likewise.
14913         (movsi_pop): Likewise.
14914         (enter_func): Likewise.
14915         * config/moxie/moxie.md (movsi_push): Likewise.
14916         (movsi_pop): Likewise.
14918 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14920         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14921         %{no_archive} %{exact_version}.
14922         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14923         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14924         %{no_archive} %{exact_version}.
14925         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14926         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14927         * config/mips/vxworks.h: Likewise.
14929 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14931         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14933 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14935         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14936         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14938 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14940         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14941         -nodefaultlib.
14943 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14945         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14946         for mcpu not cpu.
14947         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14948         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14949         not cpu.
14950         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14951         Don't handle -shlib.
14953 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14955         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14956         (CC1_SPEC): Don't handle -profile.
14958 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14960         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14961         * config/mips/mips.h (CC1_SPEC): Likewise.
14963 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14965         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14966         * config/mips/mips.h (CC1_SPEC): Likewise.
14968 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14970         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14971         * config/m32r/linux.h (LINK_SPEC): Likewise.
14972         * config/mips/linux.h (LINK_SPEC): Likewise.
14973         * config/mips/linux64.h (LINK_SPEC): Likewise.
14974         * config/sparc/linux.h (LINK_SPEC): Likewise.
14975         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14976         LINK_SPEC): Likewise.
14977         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14979 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14981         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14982         %{version:-v}.
14983         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14985 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14987         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14988         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14990 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14992         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14994 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14996         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14997         supports -Bstatic/-Bdynamic.
14998         * configure: Regenerate.
15000 2011-01-14  Jan Hubicka  <jh@suse.cz>
15001             Jack Howarth  <howarth@bromo.med.uc.edu>
15003         PR target/46037
15004         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15005         when checking debug_info_level. Test write_symbols instead of
15006         debug_hooks->var_location when setting flag_var_tracking_uninit.
15008 2011-01-14  Richard Guenther  <rguenther@suse.de>
15010         PR tree-optimization/47179
15011         * target.def (ref_may_alias_errno): New target hook.
15012         * targhooks.h (default_ref_may_alias_errno): Declare.
15013         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15014         (default_ref_may_alias_errno): New function.
15015         * target.h (struct ao_ref_s): Declare.
15016         * tree-ssa-alias.c: Include target.h.
15017         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15018         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15019         (targhooks.o): Likewise.
15020         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15021         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15023 2011-01-14  Richard Guenther  <rguenther@suse.de>
15025         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15027 2011-01-14  Richard Guenther  <rguenther@suse.de>
15029         PR tree-optimization/47280
15030         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15031         return CFG changes.
15032         (tree_ssa_forward_propagate_single_use_vars): Deal with
15033         CFG changes from associate_plusminus.
15035 2011-01-14  Richard Guenther  <rguenther@suse.de>
15037         PR middle-end/47281
15038         Revert
15039         2011-01-11  Richard Guenther  <rguenther@suse.de>
15041         PR tree-optimization/46076
15042         * tree-ssa.c (useless_type_conversion_p): Conversions from
15043         unprototyped to empty argument list function types are useless.
15045 2011-01-14  Richard Guenther  <rguenther@suse.de>
15047         PR tree-optimization/47286
15048         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15050 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15052         PR middle-end/46823
15053         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15055 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15057         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15058         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15059         * config/xtensa/xtensa.c (xtensa_libcall_value,
15060         xtensa_function_value_regno_p): New functions.
15061         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15063 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15065         PR c++/47213
15066         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15067         PE specific hook.
15068         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15069         New function prototype.
15070         * config/i386/winnt.c (i386_pe_assemble_visibility):
15071         Warn only if attribute was specified by user.
15073 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15075         PR target/47251
15076         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15077         floating point.
15078         (floatunsdidf2_fcfidu): Ditto.
15080 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15082         * config/s390/s390.c (print_operand_address): Replace 'error' with
15083         'output_operand_lossage'.
15084         (print_operand): Likewise.
15086 2011-01-13  Jeff Law  <law@redhat.com>
15088         PR rtl-optimization/39077
15089         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15090         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15091         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15092         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15093         * gcse.c (prune_insertions_deletions): New function.
15094         (compute_pre_data): Use it.
15096 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15098         PR debug/PR46973
15099         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15100         static function.
15101         (prune_unused_types_mark): Use it.
15103 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15105         PR rtl-optimization/45352
15106         * sel-sched.c: Update copyright years.
15107         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15108         in the advancing loop when we have issued issue_rate insns.
15110 2011-01-12  Richard Henderson  <rth@redhat.com>
15112         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15113         (TARGET_MD_ASM_CLOBBERS): New.
15115         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15116         (TARGET_DELEGITIMIZE_ADDRESS): New.
15118         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15119         (clzsi2, *bsch): New patterns.
15121         * config/mn10300/mn10300.md (INT): New mode iterator.
15122         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15124         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15125         flag_split_wide_types.
15127         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15128         (mn10300_trampoline_init): Rewrite without a template, an immediate
15129         load and a direct branch.
15130         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15132 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15134         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15135         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15136         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15137         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15139 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15141         PR debug/47209
15142         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15143         of type.
15145 2011-01-12  Jan Hubicka  <jh@suse.cz>
15147         PR driver/47244
15148         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15149         (PLUGIN_COND_CLOSE): New macro.
15150         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15152 2011-01-12  Richard Guenther  <rguenther@suse.de>
15154         PR lto/47259
15155         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15156         register variables in a MEM_REF.
15158 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15160         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15161         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15162         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15163         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15164         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15165         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15166         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15167         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15168         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15169         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15170         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15171         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15172         * config/gnu-user.h: New.  Copied from linux.h.
15173         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15174         GNU_USER_TARGET_STARTFILE_SPEC.
15175         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15176         GNU_USER_TARGET_ENDFILE_SPEC.
15177         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15178         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15179         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15180         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15181         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15182         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15183         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15184         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15185         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15186         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15187         * config/arm/linux-eabi.h (CC1_SPEC): Use
15188         GNU_USER_TARGET_CC1_SPEC.
15189         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15190         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15191         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15192         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15193         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15194         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15195         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15196         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15198 2011-01-12  Richard Guenther  <rguenther@suse.de>
15200         PR other/46946
15201         * doc/invoke.texi (ffast-math): Document it is turned on
15202         with -Ofast.
15204 2011-01-12  Jan Hubicka  <jh@suse.cz>
15206         PR tree-optimization/47233
15207         * opts.c (common_handle_option): Disable ipa-reference with profile
15208         feedback.
15210 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15212         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15213         error message.
15215 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15217         * c-parser.c (c_lex_one_token): Updated and reindented some
15218         comments.  No changes in code.
15220 2011-01-11  Ian Lance Taylor  <iant@google.com>
15222         * godump.c (go_output_var): Don't output the variable if there is
15223         already a type with the same name.
15225 2011-01-11  Ian Lance Taylor  <iant@google.com>
15227         * godump.c (go_format_type): Don't generate float80.
15229 2011-01-11  Richard Henderson  <rth@redhat.com>
15231         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15232         declaration.  Rewrite for both speed and size.
15233         (mn10300_address_cost_1): Remove.
15234         (mn10300_register_move_cost): New.
15235         (mn10300_memory_move_cost): New.
15236         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15237         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15238         extensions, shifts, BSWAP, CLZ.
15239         (mn10300_wide_const_load_uses_clr): Remove.
15240         (TARGET_REGISTER_MOVE_COST): New.
15241         (TARGET_MEMORY_MOVE_COST): New.
15242         * config/mn10300/mn10300-protos.h: Update.
15243         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15245         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15246         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15247         * config/mn10300/mn10300-protos.h: Update.
15248         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15249         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15250         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15251         (*test_int_bitfield, *test_byte_bitfield): Remove.
15252         (*bit_test, *subreg_bit_test): Remove.
15253         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15255         * config/mn10300/constraints.md ("c"): Rename from "A".
15256         ("A", "D"): New constraint letters.
15257         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15258         (fmssf4, fnmasf4, fnmssf4): Likewise.
15260         * config/mn10300/mn10300.md (isa): New attribute.
15261         (enabled): New attribute.
15263         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15264         (abssf2, negsf2): Define only for hardware fp.
15265         (sqrtsf2): Reformat.
15266         (addsf3, subsf3, mulsf3): Merge expander and insn.
15268         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15269         (DEBUGGER_AUTO_OFFSET): Remove.
15270         (DEBUGGER_ARG_OFFSET): Remove.
15272         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15273         Emit register stores with the same offsets as the hardware.
15274         (mn10300_store_multiple_operation): Don't check that the register
15275         save offsets are monotonic.
15276         * config/mn10300/mn10300-protos.h: Update.
15278         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15280         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15281         in terms of the value on the stack, not the MDR register.
15283 2011-01-11  Jan Hubicka  <jh@suse.cz>
15285         PR lto/45721
15286         PR lto/45375
15287         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15288         (symbol_alias_set_destroy, symbol_alias_set_contains,
15289         propagate_aliases_backward): Declare.
15290         * lto-streamer-out.c (struct sets): New sturcture.
15291         (trivally_defined_alias): New function.
15292         (output_alias_pair_p): Rewrite.
15293         (output_unreferenced_globals): Fix output of alias pairs.
15294         (produce_symtab): Likewise.
15295         * ipa.c (function_and_variable_visibility): Set weak alias destination
15296         as needed in lto.
15297         * varasm.c (symbol_alias_set_t): Remove.
15298         (symbol_alias_set_destroy): Export.
15299         (propagate_aliases_forward, propagate_aliases_backward): New functions
15300         based on ...
15301         (compute_visible_aliases): ... this one; remove.
15302         (trivially_visible_alias): New
15303         (trivially_defined_alias): New.
15304         (remove_unreachable_alias_pairs): Rewrite.
15305         (finish_aliases_1): Reorganize code checking if alias is defined.
15306         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15307         in LTO mode.
15309 2011-01-11  Richard Guenther  <rguenther@suse.de>
15311         PR tree-optimization/46076
15312         * tree-ssa.c (useless_type_conversion_p): Conversions from
15313         unprototyped to empty argument list function types are useless.
15315 2011-01-11  Richard Guenther  <rguenther@suse.de>
15317         PR middle-end/45235
15318         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15319         volatile MEMs as MEM_READONLY_P.
15321 2011-01-11  Richard Guenther  <rguenther@suse.de>
15323         PR tree-optimization/47239
15324         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15326 2011-01-11  Jeff Law  <law@redhat.com>
15328         PR tree-optimization/47086
15329         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15330         IVs from statements that might throw.
15332 2011-01-10  Jan Hubicka  <jh@suse.cz>
15334         PR lto/45375
15335         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15337 2011-01-10  Jan Hubicka  <jh@suse.cz>
15339         PR lto/45375
15340         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15341         when correcting profile.
15343 2011-01-10  Jan Hubicka  <jh@suse.cz>
15345         PR lto/46083
15346         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15347         DECL_FINI_PRIORITY.
15348         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15349         Restore DECL_FINI_PRIORITY.
15351 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15353         * doc/gimple.texi: Fix quoting of multi-word return values in
15354         @deftypefn statements.  Ensure presence of return value.  Wrap
15355         overlong @deftypefn lines.
15356         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15357         descriptions of removed functions.
15358         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15359         of multi-word return value in @deftypefn statement.
15361 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15363         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15364         (Conditional Expressions, Logical Operators)
15365         (Statement and operand traversals): Do not indent smallexample
15366         code.  Fix duplicate function argument in example.
15368 2011-01-10  Jeff Law  <law@redhat.com>
15370         PR tree-optimization/47141
15371         * ipa-split.c (split_function): Handle case where we are
15372         returning a value and the return block has a virtual operand phi.
15374 2011-01-10  Jan Hubicka  <jh@suse.cz>
15376         PR tree-optimization/47234
15377         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15378         (pass_feedback_split_functions): Declare.
15379         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15380         tree-profile.
15381         * ipa-split.c (gate_split_functions): Update comments; disable
15382         split-functions for profile_arc_flag and branch_probabilities.
15383         (gate_feedback_split_functions): New function.
15384         (execute_feedback_split_functions): New function.
15385         (pass_feedback_split_functions): New global var.
15387 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15389         PR lto/46760
15390         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15391         calling gimple_call_set_cannot_inline.
15393 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15395         * config/darwin-sections.def: Remove unused section.
15397 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15399         PR c++/47218
15400         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15402 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15404         PR objc/47232
15405         * c-parser.c (c_parser_declaration_or_fndef): Improved
15406         error message.
15408 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15410         * config/i386/winnt.c (i386_pe_start_function): Make sure
15411         to switch back to function's section.
15413 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15415         PR gcc/46902
15416         PR testsuite/46912
15417         * plugin.c: Move include of dlfcn.h from here...
15418         * system.h: ... to here.
15420 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15422         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15423         file name.
15424         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15425         two extra empty pages in PDF output.
15427 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15429         PR objc/47078
15430         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15431         for error recovery purposes behave as if it was not specified so
15432         that the default type is usd.
15434 2011-01-07  Jan Hubicka  <jh@suse.cz>
15436         PR tree-optmization/46469
15437         * ipa.c (function_and_variable_visibility): Clear needed flags on
15438         nodes with external decls; handle weakrefs merging correctly.
15440 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15442         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15443         not false.
15445 2011-01-07  Jan Hubicka  <jh@suse.cz>
15447         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15448         and no longer claim that gold is required for linker plugin.
15449         * configure: Regenerate.
15450         * gcc.c (PLUGIN_COND): New macro.
15451         (LINK_COMMAND_SPEC): Use it.
15452         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15453         * config.in (HAVE_LTO_PLUGIN): New.
15454         * configure.ac (--with-lto-plugin): New parameter; autodetect
15455         HAVE_LTO_PLUGIN.
15457 2011-01-07  Jan Hubicka  <jh@suse.cz>
15459         PR tree-optimization/46367
15460         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15461         when we can update original.
15462         (cgraph_mark_inline_edge): Sanity check.
15463         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15465 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15467         * config/spu/spu.h (ASM_COMMENT_START): Define.
15469 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15471         PR driver/42445
15472         * gcc.c (%>S): New.
15473         (SWITCH_KEEP_FOR_GCC): Likewise.
15474         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15475         (do_spec_1): Handle "%>".
15477         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15479 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15481         PR target/47201
15482         * config/i386/i386.c (ix86_delegitimize_address): If
15483         simplify_gen_subreg fails, return orig_x.
15485         PR bootstrap/47187
15486         * value-prof.c (gimple_stringop_fixed_value): Handle
15487         lhs of the call properly.
15489 2011-01-07  Jan Hubicka  <jh@suse.cz>
15491         PR lto/45375
15492         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15494 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15496         * target.def (function_switched_text_sections): New hook.
15497         * doc/tm.texi: Regenerated.
15498         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15499         * final.c (default_function_switched_text_sections): New.
15500         (final_scan_insn): Call function_switched_text_sections when a
15501         mid-function section change occurs.
15502         * output.h (default_function_switched_text_sections): Declare.
15503         * config/darwin-protos.h (darwin_function_switched_text_sections):
15504         Likewise.
15505         * config/darwin.c (darwin_function_switched_text_sections): New.
15506         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15508 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15510         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15511         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15512         the secondary code fragment when outputting for DWARF == 2.
15514 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15516         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15517         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15518         Remove.
15519         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15520         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15522 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15524         PR debug/46704
15525         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15526         when it is not empty.
15528 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15530         Bobcat Enablement
15531         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15532         (case ${target}): Add btver1.
15533         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15534         -march=native recognize btver1 processors.
15535         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15536         btver1 def_and_undef
15537         * config/i386/i386.c (struct processor_costs btver1_cost): New
15538         btver1 cost table.
15539         (m_BTVER1): New definition.
15540         (m_AMD_MULTIPLE): Includes m_BTVER1.
15541         (initial_ix86_tune_features): Add btver1 tune.
15542         (processor_target_table): Add btver1 entry.
15543         (static const char *const cpu_names): Add btver1 entry.
15544         (software_prefetching_beneficial_p): Add btver1.
15545         (ix86_option_override_internal): Add btver1 instruction sets.
15546         (ix86_issue_rate): Add btver1.
15547         (ix86_adjust_cost): Add btver1.
15548         * config/i386/i386.h (TARGET_BTVER1): New definition.
15549         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15550         (enum processor_type): Add PROCESSOR_BTVER1.
15551         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15553 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15555         PR target/43309
15556         * config/i386/i386.c (legitimize_tls_address)
15557         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15558         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15559         (tls_initial_exec_64_sun): New pattern.
15561 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15563         * doc/invoke.texi (Overall Options): Improve wording and markup
15564         of the description of -wrapper.
15566 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15568         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15569         rdynamic, threads): New Driver options.
15571 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15573         PR target/38118
15574         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15575         if coming from .tdata.
15576         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15578 2011-01-06  Jan Hubicka  <jh@suse.cz>
15580         PR lto/47188
15581         * collect2.c (main): Do not enable LTOmode when plugin is active.
15583 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15585         PR other/45915
15586         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15587         --version output if supported.
15588         * configure: Regenerate.
15590 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15592         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15593         Driver options.
15595 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15597         PR c/47150
15598         * c-convert.c (convert): When converting a complex expression
15599         other than COMPLEX_EXPR to a different complex type, ensure
15600         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15601         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15602         when converting COMPLEX_TYPE.
15604 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15606         PR tree-optimization/47139
15607         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15608         only the last reduction value is used outside the loop.  Update
15609         documentation.
15611 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15613         * config/rtems.opt: New.
15614         * config.gcc (*-*-rtems*): Use rtems.opt.
15616 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15618         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15619         processors do not support 3DNow instructions.
15621 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15623         * config/spu/spu.c (spu_option_override): Set parameter
15624         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15626 2011-01-05  Jan Hubicka  <jh@suse.cz>
15628         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15629         at the command line.
15631 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15633         PR lto/47162
15634         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15635         deltas on streamed outgoing edges.
15636         (output_node_opt_summary): Output info for outgoing edges only when
15637         the node is in new parameter set.
15638         (output_cgraph_opt_summary): New parameter set, passed to the two
15639         aforementioned functions.  Update its forward declaration and its
15640         callee too.
15642 2011-01-05  Tom Tromey  <tromey@redhat.com>
15644         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15645         operator to c_finish_omp_atomic.
15646         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15647         (build_unary_op): Update.
15648         (build_modify_expr): Update.
15649         (build_asm_expr): Update.
15651 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15653         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15654         newly inserted insns.
15655         (pad_bb): Likewise.
15656         (spu_emit_branch_hint): Likewise.
15657         (insert_hbrp_for_ilb_runout): Likewise.
15658         (spu_machine_dependent_reorg): Call df_finish_pass after
15659         schedule_insns returns.
15661 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15663         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15665 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15667         PR tree-optimization/47005
15668         * tree-sra.c (struct access): Add 'non_addressable' bit.
15669         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15670         (decide_one_param_reduction): Return 0 if the parameter is passed by
15671         reference and one of the accesses in the group is non_addressable.
15673 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15675         PR tree-optimization/47056
15676         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15677         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15678         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15680 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15682         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15683         initializer.  Skip view conversions from aggregate types.
15685 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15687         PR bootstrap/47055
15688         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15690 2011-01-04  Philipp Thomas  <pth@suse.de>
15692         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15693         obvious typo.
15695 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15697         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15698         on empty epilogue sequences.
15700 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15702         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15703         non-static): New Driver options.
15705 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15707         PR driver/47137
15708         * gcc.c (default_compilers[]): Set combinable field to 0
15709         for all assembly languages.
15711 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15713         * config/mips/loongson3a.md: New file.
15714         * config/mips/mips.md: Include loongson3a.md.
15715         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15716         TUNE_LOONGSON_3A.
15718 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15720         PR middle-end/47017
15721         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15722         instead of convert_memory_address_addr_space on the base expression.
15724 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15726         * config/spu/spu.c (spu_option_override): Update error text
15727         for bad -march= / -mtune= values.
15729 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15731         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15732         if branch-hint optimization will be performed.
15734 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15736         PR tree-optimization/47148
15737         * ipa-split.c (split_function): Convert arguments to
15738         DECL_ARG_TYPE if possible.
15740         PR tree-optimization/47155
15741         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15742         when computing uns.
15744         PR rtl-optimization/47157
15745         * combine.c (try_combine): If undobuf.other_insn becomes
15746         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15747         and set *new_direct_jump_p too.
15749 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15751         PR tree-optimization/47021
15752         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15754 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15756         * gcc.c (process_command): Update copyright notice dates.
15757         * gcov.c (print_version): Likewise.
15758         * gcov-dump.c (print_version): Likewise.
15759         * mips-tfile.c (main): Likewise.
15760         * mips-tdump.c (main): Likewise.
15762 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15764         PR tree-optimization/46801
15765         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15766         aggregate fields start at byte boundary instead of the bit-field flag.
15768 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15770         PR driver/47137
15771         * gcc.c (main): Revert revision 168407.
15773 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15775         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15777 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15779         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15780         vector optab to expand vector/scalar shift, update gimple to vector.
15782 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15784         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15785         a thunk.
15787 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15789         PR tree-optimization/46984
15790         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15791         HOST_WIDE_INT.
15792         (cgraph_create_indirect_edge): Fixed line length.
15793         (cgraph_indirect_call_info): Declare.
15794         (cgraph_make_edge_direct) Update declaration.
15795         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15796         (cgraph_create_indirect_edge): Use it.
15797         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15798         callees.
15799         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15800         the new thunk_delta representation.
15801         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15802         HOST_WIDE_INT.
15803         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15804         (ipa_read_indirect_edge_info): Likewise.
15805         * lto-cgraph.c (output_edge_opt_summary): New function.
15806         (output_node_opt_summary): Call it on all outgoing edges.
15807         (input_edge_opt_summary): New function.
15808         (input_node_opt_summary): Call it on all outgoing edges.
15810 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15812         PR driver/47137
15813         * gcc.c (main): Don't check have_o when settting combine_inputs.
15815 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15817         * regrename.c: Add general comment describing the pass.
15818         (struct du_head): Remove 'length' field.
15819         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15820         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15821         Force renaming to the preferred class (if any) in the first pass and do
15822         not consider registers that belong to it in the second pass.
15823         (create_new_chain): Do not set 'length' field.
15824         (scan_rtx_reg): Likewise.
15826 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15828         PR tree-optimization/47140
15829         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15830         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15831         to bit_value_binop.
15833         PR rtl-optimization/47028
15834         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15835         parm_birth_insn instead of at the beginning of first bb.
15837 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15839         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15840         Remove the word "see" before "@pxref".
15841         * doc/rtl.texi: Remove the word "see" before "@pxref".
15843 2011-01-01  Jan Hubicka  <jh@suse.cz>
15845         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15846         memory.
15848 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15850         PR target/38662
15851         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15854 Copyright (C) 2011 Free Software Foundation, Inc.
15856 Copying and distribution of this file, with or without modification,
15857 are permitted in any medium without royalty provided the copyright
15858 notice and this notice are preserved.