OSDN Git Service

2011-05-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-30  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/49218
4         * tree-vrp.c (adjust_range_with_scev): Properly check whether
5         overflow occured.
6
7 2011-05-30  Richard Guenther  <rguenther@suse.de>
8
9         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10         New function split out from ...
11         (forward_propagate_into_gimple_cond): ... here.  Adjust.
12         (forward_propagate_into_cond): Likewise.
13         (forward_propagate_comparison): Also propagate into
14         comparisons on assignment RHS.  Change return value to
15         behave similar to forward_propagate_into_cond.
16         (tree_ssa_forward_propagate_single_use_vars): Handle
17         strict-overflow warnings properly for forward_propagate_comparison.
18
19 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20
21         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
22         from plugin linker.
23         * configure: Regenerate.
24
25 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
26
27         PR tree-optimization/49199
28         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
29         non-reduction operands are either defined in the loop or
30         by induction.
31
32 2011-05-29  Xinliang David Li  <davidxl@google.com>
33
34         * opts-global.c (handle_common_deferred_options): Handle new options.
35         * passes.c (register_one_dump_file): Call register_pass_name.
36         (execute_one_pass): Check explicit enable/disable flag.
37         (passr_hash): New function.
38         (passr_eq): Ditto.
39         (register_pass_name): Ditto.
40         (get_pass_by_name): Ditto.
41         (pass_hash): Ditto.
42         (pass_eq): Ditto.
43         (enable_pass): Ditto.
44         (disable_pass): Ditto.
45         (is_pass_explicitly_enabled_or_disabled): Ditto.
46
47 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
48
49         * config/i386/i386.md (*movoi_internal_avx): Use
50         standard_sse_constant_opcode for alternative 0.
51         (*movti_internal_sse): Ditto.
52         (*movti_internal_rex64): Use standard_sse_constant_opcode for
53         alternative 2.
54         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
55         sselog1 type moves.
56         (*movsi_internal): Ditto.
57         (*movdi_internal): Ditto.  Add ssecvt type moves.
58
59 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
60
61         PR target/48830
62         * rtlanal.c (simplify_subreg_regno): Adjust comment.
63
64 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
65
66         PR rtl-optimization/49095
67         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
68         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
69
70 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
71
72         PR target/43995
73         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
74         recurse_p argument.  Only follow register copies if it is set,
75         and prevent mips_find_pic_call_symbol from recursing.
76         (mips_find_pic_call_symbol): Add a recurse_p argument.
77         Pass it to mips_pic_call_symbol_from_set.
78         (mips_annotate_pic_calls): Update accordingly.
79
80 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
81
82         * emit-rtl.c (try_split): Use a loop to search for
83         NOTE_INSN_CALL_ARG_LOCATIONs.
84
85 2011-05-29  Richard Guenther  <rguenther@suse.de>
86
87         PR tree-optimization/49217
88         * ipa-pure-const.c (propagate_pure_const): Fix typos.
89
90 2011-05-28  Jan Hubicka  <jh@suse.cz>
91
92         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
93         length.
94         (string_slot_free): Remove
95         (create_output_block): Initialize obstack.
96         (destroy_output_block): Free obstack.
97         (lto_string_index): Add PERSISTENT parameter; do not duplicate
98         the string unless it needs to be added into the hash.
99         (lto_output_string_with_length): Add persistent attribute;
100         handle NULL strings.
101         (lto_output_string): Add PERSISTENT parameter.
102         (output_string_cst, output_identifier): Simplify.
103         (lto_output_location_bitpack): Update.
104         (lto_output_builtin_tree): Update.
105         * lto-streamer.h (struct output_block): Add obstack.
106         (lto_output_string, lto_output_string_with_length): Remove
107         declarations; functions are static now.
108
109 2011-05-28  Jan Hubicka  <jh@suse.cz>
110
111         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
112         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
113         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
114         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
115         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
116         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
117         unpack_ts_decl_with_vis_value_fields,
118         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
119         lto_get_builtin_tree): Use enum and variable length i/o.
120         * basic-block.h (profile_status_d): Add PROFILE_LAST.
121         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
122         New functions.
123         (bp_pack_enum, bp_unpack_enum): New macros.
124
125 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
126
127         * genrecog.c: Remove redundant forward declarations.
128
129 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
130
131         * config.gcc: Deprecate mips*-*-openbsd*.
132
133 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
134
135         PR bootstrap/49195
136         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
137         for match_op_dup.
138
139 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
140
141         PR middle-end/48981
142         * gengtype.c (vec_prefix_type): New function.
143         (note_def_vec): Use vec_prefix_type and change the length
144         attribute to be based on the prefix.
145         * vec.c: Include coretypes.h before vec.h.
146         (struct vec_prefix): Remove.
147         (vec_gc_p_reserve): Change the offsetof to sizeof.
148         (vec_gc_p_reserve_exact): Likewise.
149         (vec_heap_p_reserve): Likewise.
150         (vec_heap_p_reserve_exact): Likewise.
151         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
152         (vec_stack_p_reserve): Change the offsetof to sizeof.
153         (vec_stack_p_reserve_exact): Likewise.
154         * vec.h (struct vec_prefix): New struct definition.
155         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
156         (VEC_T_GTY(T,B)): Likewise.
157         (DEF_VEC_FUNC_P(T)): Use prefix field.
158         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
159         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
160
161 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
162
163         PR tree-optimization/46728
164         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
165         (powi_as_mults): Add gimple_set_location.
166         (build_and_insert_call): New.
167         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
168         0.5, 0.25, 0.75, 1./3., or 1./6.
169
170 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
171
172         * doc/contrib.texi: Update copyright years.
173         (Contributors): Add Zdenek Sojka.
174
175 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
176
177         * c-decl.c (c_push_function_context): Copy the current statement
178         list stack.
179         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
180         (finish_struct): Call building_stmt_list_p instead of checking
181         cur_stmt_list.
182         * c-parser.c (c_parser_postfix_expression): Likewise.
183         * c-typeck.c (c_end_compound_stmt): Likewise.
184         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
185         * tree-iterator.c (stmt_list_cache): Change to a VEC.
186         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
187         (free_stmt_list): Likewise.
188         * tree.h (struct tree_statement_list): Include typed_tree instead
189         of tree_common.
190         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
191         as TS_TYPED instead of TS_COMMON.
192
193 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
194             Uros Bizjak <ubizjak@gmail.com>
195
196         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
197         (HAVE_AS_IX86_TLSGDPTL): Define.
198         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
199         (HAVE_AS_IX86_TLSLDMPLT): Define.
200         * configure: Regenerate.
201         * config.in: Regenerate.
202         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
203         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
204         TARGET_SUN_TLS, use @tlsgdplt or @plt.
205         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
206         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
207         @tlsldmplt or @plt.
208         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
209
210 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
211
212         * sched-int.h (struct _haifa_deps_insn_data): New members cond
213         and reverse_cond.
214         (INSN_COND, INSN_REVERSE_COND): New macros.
215         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
216         once.
217         (sched_get_condition_with_rev): Cache the results, and look them up
218         if possible.
219         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
220         are clobbered by the current insn.
221         * target.def (exposed_pipline): New sched data hook.
222         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
223         * doc/tm.texi: Regenerate.
224
225 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
226
227         PR tree-optimization/49170
228         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
229         sincos or cexp.
230
231 2011-05-27  Richard Guenther  <rguenther@suse.de>
232
233         PR middle-end/49189
234         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
235         of comparisons.
236
237 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
238
239         * haifa-sched.c (sched_scan_info): Remove.
240         (schedule_block): Call sched_extend_luids rather than sched_init_luids
241         with NULL args.
242         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
243         Remove functions.
244         (sched_scan): Remove.
245         (sched_extend_luids): Renamed from luids_extend_insn and no longer
246         static.  All callers changed.
247         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
248         static.  All callers changed.
249         (sched_init_luids): Remove all arguments except the first.  All
250         callers changed.  Don't use sched_scan.
251         (haifa_init_h_i_d): Likewise.
252         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
253         manually rather than using sched_init_luids.  Likewise with
254         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
255         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
256         rather than sched_init_luids with NULL args.
257         * sel-sched-ir.c (new_insns): Remove variable.
258         (sched_scan): New static function, previously in haifa-sched.c.  Remove
259         all arguments but the first two; all callers changed.
260         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
261         rather than sched_init_luids.
262         (sel_init_bbs): Remove second argument.  All callers changed.
263         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
264         with NULL arguments.
265         (create_insn_rtx_from_pattern): Likewise.
266         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
267         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
268         (sched_init_insn_luid, sched_extend_luids): Declare.
269         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
270         declarations.
271
272 2011-05-27  Richard Guenther  <rguenther@suse.de>
273
274         PR middle-end/49177
275         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
276         A CMP B ? (T) true : (T) false for non-integral types T again.
277
278 2011-05-27  Jan Hubicka  <jh@suse.cz>
279
280         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
281         so 0 means NULL string.
282         (lto_output_string_with_length): ... here.
283         (lto_output_string, output_string_cst, output_identifier): Update
284         handling of NULL strings.
285         (lto_output_location_bitpack): New function.
286         (lto_output_location): Use it.
287         (lto_output_tree_ref): Use output_record_start.
288         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
289         len values.
290         * lto-streamer-in.c (string_for_index): Break out from ...; offset
291         values by 1.
292         (input_string_internal): ... here;
293         (input_string_cst, input_identifier, lto_input_string): Update handling
294         of NULL strings.
295         (lto_input_location_bitpack): New function
296         (lto_input_location): Use it.
297         (unpack_ts_type_common_value_fields): Pack align & alias in var len
298         values.
299         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
300         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
301         (bp_pack_value): Sanity check the value range.
302         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
303         New functions.
304         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
305         New functions.
306
307 2011-05-27  Hariharan Sandanagobalane <hariharan@picochip.com>
308
309         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
310         call_arg_location instructions down the floor.
311
312 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
313
314         PR rtl-optimization/49154
315         * ira.c (setup_pressure_classes): Process class without sublcasses
316         as a candidate for pressure classes.
317
318 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
319
320         PR rtl-optimization/48575
321         * genrecog.c (position_type): New enum.
322         (position): New structure.
323         (decision): Use position structure instead of a string.
324         (root_pos, peep2_insn_pos_list): New variables.
325         (next_position, compare_positions): New functions.
326         (new_decision): Use position structures instead of strings.
327         (maybe_both_true): Likewise.
328         (change_state): Likewise.
329         (write_tree): Likewise.
330         (make_insn_sequence): Likewise.
331
332 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
333
334         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
335         TS_BASE instead of TS_COMMON.
336         (find_decls_types_r): Check for TS_TYPED structure before looking at
337         TREE_TYPE.
338         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
339         Add chain field.
340         (BLOCK_CHAIN): Use new chain field.
341
342 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
343
344         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
345         moves expensive on Power7 also.
346
347 2011-05-26  Richard Guenther  <rguenther@suse.de>
348
349         * fold-const.c (fold_unary_loc): Remove bogus code.
350
351 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
352
353         * tree.h (struct tree_identifier): Inherit from tree_typed, not
354         tree_common.
355         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
356         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
357         TS_BASE instead of TS_COMMON.
358         * varasm.c (assemble_name): Remove assert.
359
360 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
361
362         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
363         substituted first.
364         * libgcc-std.ver: Delete file.
365
366 2011-05-26  Richard Guenther  <rguenther@suse.de>
367
368         PR tree-optimization/48702
369         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
370         only when we know the base address is within bounds.
371         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
372         assume the base address of TARGET_MEM_REFs is in bounds.
373
374 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
375
376         PR target/49099
377         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
378         declaration in TARGET_SOLARIS.
379
380 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
381
382         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
383         The instruction is then expanded explicitly.
384         (supported_compare): Callable instruction.
385         (compare): Likewise.
386
387 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
388
389         PR c++/49165
390         * gimplify.c (shortcut_cond_r): Don't special case
391         COND_EXPRs if they have void type on one of their arms.
392
393 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
394
395         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
396         to reduce duplication, and to achieve a slightly more logical order
397         of operations.
398
399 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
400
401         PR tree-optimization/49161
402         * tree-vrp.c (struct case_info): New type.
403         (compare_case_labels): Sort case_info structs instead of
404         trees, and not primarily by CASE_LABEL uids but by
405         label_for_block indexes.
406         (find_switch_asserts): Put case labels into struct case_info
407         array instead of TREE_VEC, adjust sorting, compare label_for_block
408         values instead of CASE_LABELs.
409
410 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
411
412         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
413         ("orndi3_neon"): Likewise.
414         ("bic<mode>3_neon"): Likewise.
415
416 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
417
418         PR tree-optimization/49038
419         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
420         Ensure at least one epilogue iteration if required by data
421         accesses with gaps.
422         * tree-vectorizer.h (struct _loop_vec_info): Add new field
423         to mark loops that require peeling for gaps.
424         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
425         (vect_get_known_peeling_cost): Take peeling for gaps into
426         account.
427         (vect_transform_loop): Generate epilogue if required by data
428         access with gaps.
429         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
430         loop as requiring an epilogue if there are gaps in the end of
431         the strided group.
432
433 2011-05-25  Ian Lance Taylor  <iant@google.com>
434
435         * godump.c (go_format_type): Output the first field with a usable
436         Go type, if any.
437
438 2011-05-25  Ian Lance Taylor  <iant@google.com>
439
440         * godump.c (go_format_type): Check for invalid type names, pointer
441         target types, and struct field types.
442
443 2011-05-25  Jason Merrill  <jason@redhat.com>
444
445         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
446
447 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
448
449         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
450
451 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
452
453         * config/i386/i386.md (*movqi_extv_1)): Put back
454         "register_operand" check in "type" calculation.
455         (*movqi_extzv_2): Likewise.
456
457 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
458
459         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
460
461 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
462
463         PR bootstrap/49160
464         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
465         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
466         __divxc3, __divtc3): Wrap definitions in #ifndef.
467
468 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
469
470         PR target/49142
471         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
472         "register_operand" check and replace q_regs_operand with
473         QIreg_operand in "type" calculation.
474         (*movqi_extv_1): Likewise.
475         (*movqi_extzv_2_rex64): Likewise.
476         (*movqi_extzv_2): Likewise.
477
478         * config/i386/predicates.md (QIreg_operand): New.
479
480 2011-05-25  Richard Guenther  <rguenther@suse.de>
481
482         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
483         type-based offset disambiguation, streamline MEM_REF and
484         TARGET_MEM_REF handling.
485
486 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
487
488         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
489         (bdesc_special_args): Add pause intrinsic.
490
491         * config/i386/i386.md (UNSPEC_PAUSE): New.
492         (pause): Likewise.
493         (*pause): Likewise.
494         * config/i386/ia32intrin.h (__pause): Likewise.
495
496         * doc/extend.texi (X86 Built-in Functions): Add documentation for
497         pause intrinsic.
498
499 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
500
501         PR tree-optimization/46728
502         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
503         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
504
505 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
506
507         * tree.h (struct tree_exp): Inherit from struct tree_typed.
508         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
509         instead of TS_COMMON.
510
511 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
512
513         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
514         LIBGCC2_GNU_PREFIX is defined.
515         (__N): New macro.
516         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
517         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
518         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
519         __clz_tab): Define using __N.
520         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
521         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
522         * target.def (libfunc_gnu_prefix): New hook.
523         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
524         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
525         * doc/tm.texi: Regenerate.
526         * system.h (LIBGCC2_GNU_PREFIX): Poison.
527         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
528         account.
529         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
530         (init_optabs): Likewise for the bswap libfuncs.
531         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
532         and divide.
533         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
534         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
535         * libgcc-std.ver: Remove.
536         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
537         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
538         libgcc-std.ver.
539         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
540         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
541         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
542         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
543         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
544         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
545         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
546         * config/fixed-bit.h (FIXED_OP): Define differently depending on
547         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
548         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
549
550 2011-05-25  Jan Hubicka  <jh@suse.cz>
551
552         * lto-streamer-out.c (output_record_start): Use lto_output_enum
553         (lto_output_tree): Use output_record_start.
554         * lto-streamer-in.c (input_record_start): Use lto_input_enum
555         (lto_get_pickled_tree): Use input_record_start.
556         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
557         (lto_value_range_error): New function.
558         * lto-streamer.h (lto_value_range_error): Declare.
559         (lto_output_int_in_range, lto_input_int_in_range): New functions.
560         (lto_output_enum, lto_input_enum): New macros.
561
562 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
563
564         * common.opt (flag_stack_usage_info): New variable.
565         (-Wstack-usage): New option.
566         * doc/invoke.texi (Warning options): Document -Wstack-usage.
567         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
568         <OPT_fstack_usage>: Likewise.
569         * toplev.c (output_stack_usage): Handle -Wstack-usage.
570         * calls.c (expand_call): Test flag_stack_usage_info variable instead
571         of flag_stack_usage.
572         (emit_library_call_value_1): Likewise.
573         * explow.c (allocate_dynamic_stack_space): Likewise.
574         * function.c (instantiate_virtual_regs ): Likewise.
575         (prepare_function_start): Likewise.
576         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
577         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
578         * config/arm/arm.c (arm_expand_prologue): Likewise.
579         (thumb1_expand_prologue): Likewise.
580         * config/avr/avr.c (expand_prologue): Likewise.
581         * config/i386/i386.c (ix86_expand_prologue): Likewise.
582         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
583         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
584         * config/mips/mips.c (mips_expand_prologue): Likewise.
585         * config/pa/pa.c (hppa_expand_prologue): Likewise.
586         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
587         * config/s390/s390.c (s390_emit_prologue): Likewise.
588         * config/sh/sh.c (sh_expand_prologue): Likewise.
589         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
590         * config/spu/spu.c (spu_expand_prologue): Likewise.
591
592 2011-05-25  Richard Guenther  <rguenther@suse.de>
593
594         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
595         (gimple_canonical_types_compatible_p): Likewise.
596
597 2011-05-25  Jan Hubicka  <jh@suse.cz>
598
599         PR middle-end/49062
600         * ipa.c (function_and_variable_visibility): Only add to same
601         comdat group list if DECL_ONE_ONLY.
602
603 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
604
605         PR rtl-optimization/49014
606         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
607
608 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
609
610         PR target/49128
611         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
612
613 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
614
615         PR rtl-optimization/48757
616         * ira-build.c (loop_with_eh_edge_p): Rename to
617         loop_with_complex_edge_p, check edges on complexity, make function
618         conditional.
619         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
620         conditional.
621
622 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
623
624         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
625         force flag_ira_share_save_slots to 0.
626
627 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
628
629         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
630         (vt_initialize): Set PROLOGUE_BB unconditionally.
631         Add block comment about CFA_BASE_RTX machinery.
632         Reset FP_CFA_OFFSET to -1 on all invalid paths.
633         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
634
635 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
636
637         PR objc/48187
638         * c-parser.c (c_parser_objc_class_instance_variables): More robust
639         parsing of syntax error in ObjC instance variable lists.  In
640         particular, avoid an infinite loop if there is a stray ']'.
641         Updated error message.
642
643 2011-05-24  Ian Lance Taylor  <iant@google.com>
644
645         * godump.c (go_define): Don't accept a string immediately after
646         another operand.
647
648 2011-05-24  Ian Lance Taylor  <iant@google.com>
649
650         * godump.c (struct godump_container): Add invalid_hash field.
651         (go_format_type): Return false if type is found in invalid_hash.
652         (go_output_typedef): Add invalid type to invalid_hash.
653         (go_finish): Create and delete invalid_hash.
654
655 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
656
657         PR tree-optimization/46728
658         * tree-ssa-math-opts.c (powi_table): New.
659         (powi_lookup_cost): New.
660         (powi_cost): New.
661         (powi_as_mults_1): New.
662         (powi_as_mults): New.
663         (gimple_expand_builtin_powi): New.
664         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
665         (gate_cse_sincos): Remove sincos/cexp restriction.
666
667 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
668
669         PR target/3746
670         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
671         mips-tdump native.
672         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
673         * mips-tdump.c: Likewise.
674
675 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
676
677         PR target/49128
678         * config/i386/driver-i386.c (host_detect_local_cpu): Always
679         add -mno-XXX.  Handle FMA.
680
681 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
682
683         PR rtl-optimization/48633
684         * ira-build.c (loop_with_eh_edge_p): New function.
685         (mark_loops_for_removal): Use it.
686
687 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
688
689         PR rtl-optimization/48971
690         * ira.c (setup_pressure_classes): Don't check register move cost
691         for classes with one registers.  Don't add pressure class if there
692         is a pressure class with the same available hard registers.
693         Check contains_reg_of_mode.  Fix a typo in collecting
694         temp_hard_regset.  Ignore hard registers not belonging to a class.
695
696 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
697
698         PR target/49133
699         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
700
701 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
702             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
703
704         PR gcov-profile/48845
705         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
706
707 2011-05-24  Richard Guenther  <rguenther@suse.de>
708
709         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
710         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
711         (gimple_types_compatible_p_1): Adjust.
712         (iterative_hash_canonical_type): Do not bother about complete vs.
713         incomplete types.
714         (gimple_canonical_types_compatible_p): Likewise.
715
716 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
717
718         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
719
720 2011-05-24  Richard Guenther  <rguenther@suse.de>
721
722         PR bootstrap/49078
723         * gimple.c (gimple_register_canonical_type): Revert
724         previous change.
725         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
726         does not for a tree for the case where it matters.  Cache
727         pointer-type alias-sets.
728
729 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
730
731         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
732         (OBJS): Remove options.o, opts-common.o and prefix.o.
733         (OBJS-libcommon-target): New.
734         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
735         (BACKEND): Include libcommon-target.a.
736         (MOSTLYCLEANFILES): Include libcommon-target.a.
737         (libcommon-target.a): New.
738         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
739         prefix.o.
740
741 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
742
743         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
744         parts of output shared with the driver.
745         * optc-gen.awk: Don't generate parts of output not shared with the
746         driver.
747         * opth-gen.awk: Remove GCC_DRIVER conditionals.
748         * doc/options.texi (SourcerInclude): Mention options-save.c.
749         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
750         (OBJS): Add options-save.o.
751         (options-save.c, options-save.o): New.
752         (options.o): Update dependencies.
753         (gcc-options.o): Remove.
754         (mostlyclean): Remove options-save.c.
755
756 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
757
758         PR debug/49032
759         * dbxout.c: Include cgraph.h.
760         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
761         and without value expr, return NULL if no varpool node exists for
762         it or if it is not needed.
763         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
764
765         PR c/49120
766         * c-decl.c (start_decl): Convert expr to void_type_node.
767
768 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
769
770         PR rtl-optimization/48826
771         * emit-rtl.c (try_split): When splitting a call that is followed
772         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
773
774 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
775
776         * cfgexpand.c (expand_debug_expr): For unused non-addressable
777         parameters passed in memory prefer using DECL_INCOMING_RTL over
778         the pseudos it will be copied into.
779
780 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
781
782         PR target/47315
783         * config/i386/i386.c (ix86_option_override_internal): Save the
784         initial options after checking vzeroupper.
785
786 2011-05-23  David Li  <davidxl@google.com>
787
788         PR tree-optimization/48988
789         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
790         Initialize has_valid_pred for each pred chain.
791
792 2011-05-23  Richard Guenther  <rguenther@suse.de>
793
794         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
795         (iterative_hash_gimple_type): Always hash type names.
796
797 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
798
799         * c-typeck.c (build_function_call_vec): Tweak call to
800         check_function_arguments.
801
802 2011-05-23  Richard Guenther  <rguenther@suse.de>
803
804         PR tree-optimization/49115
805         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
806         is not necessarily carried out, do not claim it kills the ref.
807         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
808
809 2011-05-23  Richard Guenther  <rguenther@suse.de>
810
811         PR middle-end/15419
812         * builtins.c (fold_builtin_memory_op): Be less restrictive about
813         what pointer types we accept for folding.
814
815 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
816
817         * gthr-gnat.c: Remove.
818         * gthr-gnat.h: Remove.
819         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
820         * config/t-freebsd (LIB2ADDEH): Likewise.
821         * config/t-linux (LIB2ADDEH): Likewise.
822         * config/t-sol2 (LIB2ADDEH): Likewise.
823         * config/ia64/t-vms (LIB2ADDEH): Likewise.
824         * configure.ac (target_thread_file): Remove gnat handling.
825         * configure: Regenerate.
826         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
827
828 2011-05-23  Tristan Gingold  <gingold@adacore.com>
829             Eric Botcazou  <ebotcazou@adacore.com>
830
831         * gcov.c (create_file_names): If no object directory is specified,
832         keep the directory of the file.
833
834 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
835
836         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
837         * configure: Regenerate.
838
839 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
840
841         PR middle-end/48973
842         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
843         failed and the comparison has a single bit signed type, use
844         constm1_rtx instead of const1_rtx for true value.
845         (do_store_flag): If ops->type is single bit signed type, disable
846         signel bit test optimization and pass -1 instead of 1 as last
847         parameter to emit_store_flag_force.
848
849 2011-05-23  Tom de Vries  <tom@codesourcery.com>
850
851         PR target/45098
852         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
853         function.
854         (infer_loop_bounds_from_undefined): Use new function.
855
856 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
857
858         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
859         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
860         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
861         and -O0 otherwise.
862         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
863
864 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
865
866         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
867         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
868         returns true.
869
870 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
871
872         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
873
874 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
875
876         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
877         UNSPEC_MOVE_PIC pattern.
878
879 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
880
881         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
882         (sparc-*-rtems*): Likewise.
883         (sparc64-*-elf*): Likewise.
884         (sparc64-*-rtems*): Likewise.
885         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
886         * config/sparc/t-crtin: New file.
887         * config/sparc/t-sol2 (crti.o): Delete rule.
888         (crtn.o): Likewise.
889         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
890         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
891         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
892         (ENDFILE_SPEC): Add crtn.o.
893
894 2011-05-22  Tom de Vries  <tom@codesourcery.com>
895
896         PR middle-end/48689
897         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
898         CODE_CONTAINS_STRUCT (TS_COMMON).
899
900 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
901
902         PR middle-end/49029
903         * expmed.c (extract_fixed_bit_field): Test whether target can be used
904         only after deciding which mode to use.
905
906 2011-05-22  Tom de Vries  <tom@codesourcery.com>
907
908         PR target/45098
909         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
910         for call to get_shiftadd_cost.
911
912 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
913
914         PR target/49104
915         * config/i386/cpuid.h (bit_MMXEXT): New define.
916
917 2011-05-22  Nick Clifton  <nickc@redhat.com>
918
919         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
920         initialisation of non-existant args[2] element.  Use args[] array
921         not arg[] array to pass arguments to build_function_type_list.
922
923 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
924
925         PR tree-optimization/49087
926         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
927
928 2011-05-21  Jason Merrill  <jason@redhat.com>
929
930         PR c++/49092
931         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
932         static storage duration.
933
934 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
935
936         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
937         frame pointer.
938
939 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
940
941         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
942         false if there are call-saved registers here...
943         (sparc_can_use_return_insn_p): ...but here instead.
944         (save_or_restore_regs): Fix thinko.
945         (sparc_expand_prologue): Use current_function_is_leaf.
946         (sparc_frame_pointer_required): Likewise.
947
948 2011-05-21  Nick Clifton  <nickc@redhat.com>
949
950         PR target/49098
951         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
952
953 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
954
955         * gengtype.c (walk_type): Implemented "atomic" GTY option.
956         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
957
958 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
959
960         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
961         * optc-gen.awk: Move common code to opt-read.awk.
962         * opth-gen.awk: Likewise.
963         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
964
965 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
966
967         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
968
969 2011-05-20  Tom de Vries  <tom@codesourcery.com>
970
971         PR target/45098
972         * tree-ssa-loop-ivopts.c: Include expmed.h.
973         (get_shiftadd_cost): New function.
974         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
975
976 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
977
978         PR bootstrap/49086
979         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
980         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
981
982 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
983
984         * Makefile.in: Update comment referring to $(OBJS-common).
985
986 2011-05-20  Ian Lance Taylor  <iant@google.com>
987
988         * godump.c (go_output_typedef): Put enum constants in the macro
989         hash table to avoid duplicate Go const definitions.
990
991 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
992
993         * Makefile.in (LIBDEPS): Add libcommon.a.
994         (LIBS): Likewise.
995         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
996         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
997         pretty-print.o and version.o.
998         (OBJS-libcommon): New.
999         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1000         (BACKEND): Add libcommon.a.
1001         (MOSTLYCLEANFILES): Likewise.
1002         (libcommon.a): New.
1003         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1004         (cpp$(exeext)): Likewise.
1005         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1006         pretty-print.o and input.o.
1007         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1008         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1009         (errors.o): Remove.
1010         (mips-tfile): Don't explicitly use version.o.
1011         (mips-tdump): Likewise.
1012         (gcov.o): Depend on $(DIAGNOSTIC_H).
1013         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1014         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1015         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1016         * gcov-dump.c: Include intl.h and diagnostic.h.
1017         (main): Initialize diagnostics.
1018         * gcov.c: Include diagnostic.h.
1019         (fnotice): Remove.
1020         (main): Initialize diagnostics.
1021         * lto-wrapper.c: Include diagnostic.h.
1022         (main): Initialize diagnostics.
1023
1024 2011-05-20  Michael Matz  <matz@suse.de>
1025
1026         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1027
1028 2011-05-20  Michael Matz  <matz@suse.de>
1029             Richard Guenther  <rguenther@suse.de>
1030
1031         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1032         use lto_streamer_cache_append directly instead of returning a VEC.
1033         (preload_common_node): Remove.
1034         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1035         track seen nodes.
1036         (lto_streamer_cache_create): Call lto_preload_common_nodes.
1037
1038 2011-05-20  Richard Guenther  <rguenther@suse.de>
1039
1040         PR tree-optimization/49079
1041         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1042         MEM_REFs correctly for the trailing array access detection.
1043         Special case constants the same way as decls for overall size
1044         constraining.
1045
1046 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
1047
1048         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1049         argument expansion.
1050
1051 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1052
1053         PR tree-optimization/49073
1054         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1055         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1056         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1057
1058 2011-05-20  Richard Guenther  <rguenther@suse.de>
1059
1060         PR middle-end/48849
1061         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1062         of pointer types the same way the middle-end does.
1063
1064 2011-05-20  Richard Guenther  <rguenther@suse.de>
1065
1066         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1067         or pointer-to chains.  Delay all fixup to uniquify_nodes.
1068
1069 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
1070
1071         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1072         (fma4_fmaddsub): Likewise
1073
1074 2011-05-19  Jan Hubicka  <jh@suse.cz>
1075
1076         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1077         (GIMPLE_TYPE_PAIR_SIZE): New macro.
1078         (type_pair_cache): New static var.
1079         (lookup_type_pair): Use fixed sized custom hash; make inline.
1080         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1081         calls of lookup_type_pair.
1082         (print_gimple_types_stats): Remove cache stats.
1083         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1084         and gtc_ob.
1085
1086 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
1087
1088         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1089         when TARGET_RDRND is active.
1090         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1091         Generate dummy SImode target register when target is NULL.
1092
1093 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1094
1095         * config/arm/arm-fpus.def: New.
1096         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1097         arm-fpus.def.
1098         * config/arm/arm-tables.opt: Regenerate.
1099         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1100         (arm_option_override): Don't decode FPU name to string here.
1101         * config/arm/arm.opt (mfpu=): Use Enum.
1102         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1103         Update dependencies.
1104
1105 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1106
1107         * collect2.c: Include diagnostic.h.
1108         (fatal_perror, fatal, error, fancy_abort): Remove.
1109         (main): Set progname.  Call xmalloc_set_program_name and
1110         diagnostic_initialize.
1111         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1112         scan_libraries, resolve_lib_name): Call fatal_error instead of
1113         fatal and fatal_perror.
1114         * collect2.h (error, fatal, fatal_perror): Don't declare.
1115         * tlink.c: Include diagnostic-core.h.
1116         (recompile_files): Call fatal_error instead of fatal_perror.
1117         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1118         pretty-print.o and input.o.
1119         (collect2.o, tlink.o): Update dependencies.
1120
1121 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1122
1123         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1124
1125 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1126
1127         PR target/40483
1128         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1129         COMDAT group syntax, both SPARC and x86 variants.
1130         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1131         * configure: Regenerate.
1132         * config/sol2.h (TARGET_SOLARIS): Define.
1133         (PUSHSECTION_FORMAT): Remove.
1134         (SECTION_NAME_FORMAT): Define.
1135         * config/sol2.c: Include hashtab.h.
1136         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1137         expansion, using SECTION_NAME_FORMAT.
1138         (solaris_comdat_htab): New variable.
1139         (struct comdat_entry): Define.
1140         (comdat_hash): New function.
1141         (comdat_eq): New function.
1142         (solaris_elf_asm_comdat_section): New function.
1143         (solaris_define_comdat_signature): New function.
1144         (solaris_code_end): New function.
1145         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1146         (solaris_code_end): Declare.
1147         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1148         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1149         solaris_code_end.
1150         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1151         Remove ATTRIBUTE_UNUSED.
1152         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1153         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1154         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1155         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1156         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1157         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1158         (PUSHSECTION_FORMAT): Remove.
1159         (SECTION_NAME_FORMAT): Redefine.
1160
1161 2011-05-19  Kai Tietz  <ktietz@redhat.com>
1162
1163         * tree-cfg.c (verify_gimple_assign_binary): Barf on
1164         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1165         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1166
1167 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
1168             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1169
1170         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1171
1172 2011-05-19  Richard Guenther  <rguenther@suse.de>
1173
1174         PR middle-end/48985
1175         * tree-object-size.c (addr_object_size): If the pointed-to
1176         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1177
1178 2011-05-19  Richard Guenther  <rguenther@suse.de>
1179
1180         * gimple.c (gimple_types_compatible_p_1): Compare names of
1181         the types themselves.
1182         (iterative_hash_gimple_type): And hash them that way.
1183         (gimple_register_type_1): If we register a main variant properly
1184         initialize the leader to ourselves.
1185
1186 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1187
1188         PR target/45098
1189         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1190         get_loop_invariant_expr_id.
1191         (get_loop_invariant_expr_id): Use get_expr_id.
1192         (parm_decl_cost): New function.
1193         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1194         Improve bound cost estimation.  Use different inv_expr_id for elim and
1195         express cases.
1196
1197 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1198
1199         PR target/45098
1200         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1201         cost_base.cost == 0.
1202
1203 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1204
1205         PR target/49002
1206         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1207         Properly handle load cast.
1208
1209 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1210
1211         PR tree-optimization/49039
1212         * tree-vrp.c (extract_range_from_binary_expr): For
1213         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1214         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1215
1216 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1217
1218         PR target/45098
1219         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1220
1221 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1222
1223         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1224         (*tls_global_dynamic_64): Ditto.
1225         (*tls_local_dynamic_base_32_gnu): Ditto.
1226         (*tls_local_dynamic_base_64): Ditto.
1227         (tls_initial_exec_64_sun): Ditto.
1228
1229 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1230
1231         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1232         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1233         bf592-none.
1234         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1235         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1236         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1237         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1238         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1239         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1240         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1241
1242 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1243
1244         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1245         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1246         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1247         target_thread_pointer, arm_structure_size_boundary, struct
1248         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1249         struct abi_name, arm_all_abis): Remove.
1250         (arm_option_override) Don't process most enumerated option values here.
1251         Don't process target_fpe_name here.  Work with integer not string for
1252         structure size boundary; use separate diagnostics for each case.
1253         * config/arm/arm.h (enum float_abi_type, enum
1254         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1255         to arm-opts.h.
1256         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1257         arm_structure_size_boundary): Remove.
1258         * config/arm/arm.opt (mabi=): Use Enum and Init.
1259         (arm_abi_type): New Enum and EnumValue entries.
1260         (mfloat-abi=): Use Enum and Init.
1261         (float_abi_type): New Enum and EnumValue entries.
1262         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1263         (mfp16-format=): Use Enum and Init.
1264         (arm_fp16_format_type): New Enum and EnumValue entries.
1265         (mstructure-size-boundary=): Use UInteger and Init.
1266         (mtp=): Use Enum and Init.
1267         (arm_tp_type): New Enum and EnumValue entries.
1268
1269 2011-05-18  Richard Guenther  <rguenther@suse.de>
1270
1271         PR tree-optimization/49018
1272         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1273         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1274         gimple_has_side_effects.
1275
1276 2011-05-18  Richard Guenther  <rguenther@suse.de>
1277
1278         * gimple.c (gimple_register_type_1): New function, split out from ...
1279         (gimple_register_type): ... here.  Avoid infinite recursion.
1280
1281 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1282
1283         PR tree-optimization/41881
1284         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1285         reduction_chains along with a macro for its access.
1286         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1287         (destroy_loop_vec_info): Free reduction chains.
1288         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1289         (vect_is_slp_reduction): New function.
1290         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1291         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1292         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1293         definition types for reduction chains.
1294         (vect_supported_load_permutation_p): Don't allow permutations for
1295         reduction chains.
1296         (vect_analyze_slp_instance): Support reduction chains.
1297         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1298         (vect_get_constant_vectors):  Handle reduction chains.
1299         (vect_schedule_slp_instance): Mark the first statement of the
1300         reduction chain as reduction.
1301
1302 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1303
1304         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1305         names for group elements access.
1306         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1307         reduction chains as well.  Remove data reference and interleaving
1308         related words from the fields names.
1309         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1310         elements access.
1311         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1312         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1313         vect_update_interleaving_chain, vect_same_range_drs,
1314         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1315         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1316         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1317         vect_analyze_group_access, vect_analyze_data_ref_access,
1318         vect_create_data_ref_ptr, vect_transform_strided_load,
1319         vect_record_strided_load_vectors): Likewise.
1320         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1321         vect_model_load_cost, vectorizable_store, vectorizable_load,
1322         vect_remove_stores, new_stmt_vec_info): Likewise.
1323         * tree-vect-slp.c (vect_build_slp_tree,
1324         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1325
1326 2011-05-18  Richard Guenther  <rguenther@suse.de>
1327
1328         PR middle-end/48989
1329         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1330         operand verification.
1331         (verify_gimple_assign_binary): Likewise.
1332         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1333         to non-1-precision BOOLEAN_TYPEs.
1334
1335 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1336
1337         PR target/45098
1338         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1339
1340 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1341
1342         PR tree-optimization/49000
1343         * tree-ssa.c (execute_update_addresses_taken): Call
1344         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1345         be rewritten and decl has been marked for renaming, reset
1346         the debug stmt.
1347
1348 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1349
1350         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1351         enum_opts_set when testing if attributes have set -mfpmath=.
1352
1353 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1354
1355         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1356
1357 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1358
1359         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1360         info->entry with 0
1361         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1362         id.transform_lang_insert_block with NULL.
1363
1364 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1365
1366         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1367         (output_fp_compare): Change args 3 and 4 to bool.
1368         (ix86_expand_call): Change arg 6 to bool.
1369         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1370         (ix86_attr_length_vex_default): Change arg 3 to bool.
1371         * config/i386/i386.md: Update all uses.
1372         * config/i386/i386.c: Ditto.
1373         (ix86_flags_dependent): Change return type to bool.
1374
1375 2011-05-17  Richard Guenther  <rguenther@suse.de>
1376
1377         * gimple.c (type_hash_pair_compare): Fix comparison.
1378
1379 2011-05-17  Richard Guenther  <rguenther@suse.de>
1380
1381         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1382         case some more, fix final hash value of the non-singleton case.
1383
1384 2011-05-17  Richard Guenther  <rguenther@suse.de>
1385
1386         PR bootstrap/49013
1387         Revert
1388         2011-05-16  Richard Guenther  <rguenther@suse.de>
1389
1390         * gimple.c (gimple_types_compatible_p_1): Use names of the
1391         type itself, not its main variant.
1392         (iterative_hash_gimple_type): Likewise.
1393
1394 2011-05-17  Richard Guenther  <rguenther@suse.de>
1395
1396         * gimple.c (gimple_register_canonical_type): Use the main-variant
1397         leader for computing the canonical type.
1398
1399 2011-05-17  Nick Clifton  <nickc@redhat.com>
1400
1401         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1402         moves.
1403
1404         * config/rx/rx.md: Add peephole to remove redundant extensions
1405         after loads.
1406         (bitset_in_memory): Use rx_restricted_mem_operand.
1407         (bitinvert_in_memory): Likewise.
1408         (bitclr_in_memory): Likewise.
1409
1410 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1411             Nick Clifton  <nickc@redhat.com>
1412
1413         * config/rx/rx.md: Add peepholes to match a register move followed
1414         by a comparison of the moved register.  Replace these with an
1415         addition of zero that does both actions in one instruction.
1416
1417 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1418
1419         PR target/48986
1420         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1421         predicate to allow CONST_INT.
1422         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1423
1424 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1425
1426         * opts-common.c (opt_enum_arg_to_value): New.
1427         * opts.h (opt_enum_arg_to_value): Declare.
1428         * config/i386/i386.opt (fpmath): Remove.
1429         (mfpmath=): Use Enum, Init and Save.
1430         (fpmath_unit): New Enum and EnumValue entries.
1431         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1432         name for function fpmath state.
1433         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1434         * config/i386/i386.c: Include diagnostic.h.
1435         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1436         (ix86_target_string): Take enum fpmath_unit value instead of string.
1437         (ix86_debug_options): Update call to ix86_target_string.
1438         (ix86_option_override_internal): Don't process fpmath strings here.
1439         (x86_function_specific_save, ix86_function_specific_restore):
1440         Don't handle fpmath state specially.
1441         (ix86_function_specific_print): Pass fpmath state to
1442         ix86_target_string instead of printing in this function.
1443         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1444         Handle enum attributes.
1445         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1446         (ix86_valid_target_attribute_tree): Update option_strings
1447         handling.  Handle fpmath as enum option.
1448         (ix86_can_inline_p): Update field names for function fpmath state.
1449         (ix86_expand_builtin): Update call to ix86_target_string.
1450         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1451         (ix86_fpmath): Remove.
1452         * config/i386/t-i386 (i386.o): Update dependencies.
1453
1454 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1455
1456         PR preprocessor/48677
1457         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1458         from decoded_options[0], not from itself.
1459
1460 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1461
1462         * config/i386/constraints.md (z): New constraint.
1463         * config/i386/i386.c (c): New mode attribute.
1464         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1465         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1466         constraint for operand 0.
1467         (*call_vzeroupper): Ditto.
1468         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1469         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1470         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1471         Use "lzm" constraint for operand 0.
1472         (*call_pop_vzeroupper): Ditto.
1473         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1474         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1475         constraint for operand 0.
1476         (*sibcall_vzeroupper): Ditto.
1477         (*sibcall_rex64_ms_sysv): Ditto.
1478         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1479         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1480         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1481         (*sibcall_pop_vzeroupper): Ditto.
1482         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1483         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1484         mode iterator.  Use "<c>zm" constraint for operand 1.
1485         (*call_value_vzeroupper): Ditto.
1486         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1487         for operand 1.
1488         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1489         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1490         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1491         (*call_value_pop_vzeroupper): Ditto.
1492         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1493         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1494         mode iterator.  Use "Uz" constraint for operand 1.
1495         (*sibcall_value_vzeroupper): Ditto.
1496         (*sibcall_value_rex64_ms_sysv): Ditto.
1497         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1498         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1499         constraint for operand 1.
1500         (*sibcall_value_pop_vzeroupper): Ditto.
1501         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1502         and "z" constraint for operand 2.
1503         (*tls_global_dynamic_32_gnu): Ditto.
1504         (*tls_local_dynamic_base_32_gnu): Ditto.
1505         (*tls_local_dynamic_base_64): Ditto.
1506         (*tls_local_dynamic_32_once): Ditto.
1507         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1508         Update all callers.
1509         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1510
1511 2011-05-16  Richard Guenther  <rguenther@suse.de>
1512
1513         * gimple.c (gimple_types_compatible_p_1): Use names of the
1514         type itself, not its main variant.
1515         (iterative_hash_gimple_type): Likewise.
1516
1517 2011-05-16  Richard Guenther  <rguenther@suse.de>
1518
1519         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1520         always visit pointer target and function result and argument types.
1521
1522 2011-05-16  Jason Merrill  <jason@redhat.com>
1523
1524         PR c++/48999
1525         * tree-inline.c (copy_statement_list): Put back recursion.
1526
1527 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1528
1529         PR target/27663
1530         PR target/41076
1531         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1532         * config/avr/avr.md ("*ior<mode>qi.byte0",
1533         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1534
1535 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1536
1537         PR target/45099
1538         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1539         register is needed for a function argument.
1540
1541 2011-05-16  Richard Guenther  <rguenther@suse.de>
1542
1543         * gimple.c (struct type_hash_pair): New type.
1544         (type_hash_pair_compare): New function.
1545         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1546
1547 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1548
1549         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1550
1551 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1552
1553         * config/i386/i386.md (floating point move splitters): Fix
1554         usage of standard_80387_constant_p.
1555         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1556
1557 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1558
1559         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1560
1561 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1562
1563         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1564         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1565         (tree_ssa_lim_finalize): Likewise.
1566
1567 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1568
1569         * config/i386/constraint.md (Yd, Yx): New register constraints.
1570         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1571         Yd conditional register constraint.
1572         (*movtf_internal): Use standard_sse_constant_opcode.
1573         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1574         Yx conditional register constraint.
1575         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1576         Yd conditional register constraint.  Use standard_sse_constant_p to
1577         check for valid SSE constants and call standard_sse_constant_opcode to
1578         output SSE insn.
1579         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1580         constants and call standard_sse_constant_opcode to output SSE insn.
1581         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1582         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1583         optimize_size is set.
1584         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1585
1586 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1587
1588         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1589
1590 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1591
1592         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1593         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1594         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1595         (evaluate_conditions_for_ipcp_clone): Removed.
1596         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1597         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1598         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1599
1600 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1601
1602         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1603         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1604         lieu of MAY_HAVE_DEBUG_STMTS.
1605         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1606         debug statements if !MAY_HAVE_DEBUG_STMTS.
1607
1608 2011-05-13  Martin Thuresson  <martint@google.com>
1609
1610         PR gcov-profile/47793
1611         * libgcov.c (gcov_exit): Support relative profile paths.
1612         * doc/invoke.texi (-fprofile-dir): Update for above change.
1613
1614 2011-05-13  Richard Guenther  <rguenther@suse.de>
1615
1616         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1617         type-pair caching, do not compare hashes.
1618
1619 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1620
1621         PR middle-end/48965
1622         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1623         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1624
1625 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1626
1627         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1628         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1629         compatible type for TRUTH_NOT_EXPR.
1630
1631 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1632
1633         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1634         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1635         can_create_pseudo_p ().
1636
1637 2011-05-13  Richard Guenther  <rguenther@suse.de>
1638
1639         PR lto/48978
1640         * gimple.c (iterative_hash_gimple_type): Revert change in
1641         pointer target and function result and argument hashing.
1642
1643 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1644
1645         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1646         (*movxf_internal_nointeger): Ditto.
1647         (*movdf_internal_rex64): Ditto.
1648         (*movdf_internal): Ditto.
1649         (*movdf_internal_nointeger): Ditto.
1650         (*movsf_internal): Ditto.
1651         (sincos splitters): Use can_create_pseudo ().
1652
1653 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1654
1655         * config/i386/i386-opts.h: New.
1656         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1657         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1658         ix86_section_threshold): Remove.
1659         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1660         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1661         OPT_mbranch_cost_.
1662         (ix86_option_override_internal): Don't decode strings for options
1663         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1664         __attribute__ uses in remaining diagnostics for options with
1665         string arguments.  Don't check for integer arguments being negative.
1666         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1667         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1668         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1669         ix86_branch_cost, ix86_section_threshold): Remove.
1670         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1671         HeaderInclude.
1672         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1673         but not Var.
1674         (masm=): Use Enum and Init.
1675         (asm_dialect): New Enum and EnumValue entries.
1676         (mbranch-cost=): Use UInteger.
1677         (mlarge-data-threshold=): Use UInteger and Init.
1678         (mcmodel=): Use Enum and Init.
1679         (cmodel): New Enum and EnumValue entries.
1680         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1681         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1682         mregparm=): Use UInteger.
1683         (mstringop-strategy=): Use Enum and Init.
1684         (stringop_alg): New Enum and EnumValue entries.
1685         (mtls-dialect=): Use Enum and Init.
1686         (tls_dialect): New Enum and EnumValue entries.
1687         (mabi=): Use Enum and Init.
1688         (calling_abi): New Enum and EnumValue entries.
1689         (mveclibabi=): Use Enum and Init.
1690         (ix86_veclibabi): New Enum and EnumValue entries.
1691
1692 2011-05-13  Nick Clifton  <nickc@redhat.com>
1693
1694         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1695         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1696
1697 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1698
1699         PR middle-end/48984
1700         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1701         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1702         (gimple_boolify): Check for cast for boolean_type_node instead for
1703         BOOLEAN_TYPE.
1704
1705 2011-05-13  Richard Guenther  <rguenther@suse.de>
1706
1707         PR tree-optimization/48172
1708         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1709         multiplying by number of iterations for equal step.
1710         (vect_create_cond_for_alias_checks): Likewise.
1711
1712 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1713
1714         * configure.ac: Use AS_HELP_STRING throughout.
1715         * configure: Regenerate.
1716
1717 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1718
1719         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1720         (ix86_emit_restore_regs_using_mov): Likewise.
1721         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1722
1723 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1724
1725         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1726         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1727         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1728         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1729         RTX_OK_FOR_OLO10_P): ...here.
1730         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1731         SYMBOLIC_CONST.
1732
1733 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1734
1735         * gimplify.c (gimple_boolify): Re-boolify expression
1736         arguments even if expression type is of kind BOOLEAN_TYPE.
1737         (gimplify_boolean_expr): Removed.
1738         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1739         and XOR. Additional take care that we keep expression's type.
1740         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1741         of TRUTH_AND|OR|XOR_EXPR.
1742
1743 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1744
1745         PR tree-optimization/48975
1746         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1747         on all bbs here and free and clear ifc_bbs at the end.
1748
1749 2011-05-12  Richard Guenther  <rguenther@suse.de>
1750
1751         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1752         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1753         until after simple checks.
1754         (gimple_types_compatible_p): Likewise.
1755         (iterative_hash_gimple_type): Always hash pointer targets
1756         and function return and argument types.
1757         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1758         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1759         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1760         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1761         completely in the simple compare section.
1762         (gimple_register_canonical_type): Query the cache again after
1763         registering.
1764
1765 2011-05-12  Richard Guenther  <rguenther@suse.de>
1766
1767         PR tree-optimization/48172
1768         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1769         the number of iterations from the segment size calculation.
1770         (vect_create_cond_for_alias_checks): Adjust.
1771
1772 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1773
1774         PR debug/48967
1775         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1776         if validate_subreg fails.
1777
1778 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1779
1780         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1781         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1782         early.
1783
1784 2011-05-12  DJ Delorie  <dj@redhat.com>
1785
1786         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1787         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1788         created builtin into rx_builtins array.
1789         (rx_builtin_decl): New function.
1790         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1791
1792 2011-05-12  DJ Delorie  <dj@redhat.com>
1793             Nick Clifton  <nickc@redhat.com>
1794
1795         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1796         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1797         (rx_is_legitimate_address): Add pre-decrement and post-increment
1798         addressing in HImode and QImode.  Fix test for out of range
1799         REG+INT addressing.
1800         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1801         (rx_align_for_label): Test label before extracting its usage count.
1802         (rx_adjust_insn_lengths): Fix selection of insn codes.
1803         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1804
1805 2011-05-11  Jason Merrill  <jason@redhat.com>
1806
1807         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1808
1809 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1810
1811         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1812         reindent the subsequent block.
1813
1814 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1815             Paul Pluzhnikov  <ppluzhnikov@google.com>
1816
1817         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1818         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1819         * config.in: Add LINKER_HASH_STYLE.
1820         * configure.ac: Add --with-linker-hash-style.
1821         * configure: Regenerate.
1822
1823 2011-05-11  Richard Guenther  <rguenther@suse.de>
1824
1825         PR middle-end/48964
1826         * gimple.c (iterative_hash_canonical_type): Fix typo.
1827
1828 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1829
1830         * config/i386/i386.c (legitimize_tls_address)
1831         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1832         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1833         __tls_get_addr symbol reference here.  Update call to
1834         gen_tls_global_dynamic_{32,64} for added arguments.
1835         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1836         expanders directly for TARGET_GNU2_TLS.  Determine
1837         __tls_get_addr symbol reference here.  Update call to
1838         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1839         unique UNSPEC REG_EQUIV to libcall block.
1840         (ix86_tls_get_addr): Declare static.
1841         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1842         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1843         Do not determine pic and __tls_get_addr symbol reference here. Do not
1844         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1845         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1846         (tls_global_dynamic_64): Add operand 2.  Do not determine
1847         __tls_get_addr symbol reference here.  Do not call
1848         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1849         (tls_local_dynamic_base64): Ditto for operand 1.
1850
1851 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1852
1853         * function.c (expand_function_start): Initialize stack_check_probe_note
1854         only if the generic stack checking mechanism is used.
1855
1856 2011-05-11  Richard Guenther  <rguenther@suse.de>
1857
1858         PR tree-optimization/15256
1859         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1860         (A & B) | C, combine (A op CST1) op CST2.
1861         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1862         visit assigns that have uses.
1863
1864 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1865
1866         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1867         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1868         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1869         (unpack_value_fields): Adjust for renaming.
1870         (lto_input_ts_type_tree_pointers): Split into...
1871         (lto_input_ts_type_common_tree_pointer): ...this and...
1872         (lto_input_ts_type_non_common_tree_pointers): ...this.
1873         (lto_input_tree_pointers): Adjust for above split.
1874         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1875         (pack_ts_type_common_value_fields): ...this.  Update comment.
1876         (lto_output_ts_type_tree_pointers): Split into...
1877         (lto_output_ts_type_common_tree_pointers): ...this and...
1878         (lto_output_ts_type_non_common_tree_pointers): ...this.
1879         (lto_output_tree_pointers): Adjust for above split.
1880         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1881         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1882         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1883         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1884         Define.
1885         (struct tree_type): Split into...
1886         (struct tree_type_common: ...this and...
1887         (struct tree_type_with_lang_specific): ...this and...
1888         (struct tree_type_non_common): ...this.  Adjust accessor macros
1889         accordingly.
1890         (TYPE_VALUES_RAW): Define.
1891         (union tree_node): Update for above changes.
1892         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1893         TS_TYPE_NON_COMMON.
1894         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1895         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1896         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1897         * treestructu.def (TS_TYPE): Remove.
1898         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1899         Define.
1900
1901 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1902
1903         PR debug/48159
1904         * tree-ssa.c (reset_debug_uses): New function.
1905         * tree-flow.h (reset_debug_uses): New prototype.
1906         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1907         * tree-loop-distribution.c (generate_loops_for_partition): Call
1908         reset_debug_uses on the stmts that will be removed.  Keep around
1909         all debug stmts, don't count them as bits in partition bitmap.
1910         (generate_builtin): Don't count debug stmts or labels as bits in
1911         partition bitmap.
1912
1913 2011-05-11  Richard Guenther  <rguenther@suse.de>
1914
1915         * gimple.c (gimple_type_hash_1): Merge with ...
1916         (gimple_type_hash): ... this.
1917         (gtc_visit): Remove mode parameter and simplify accordingly.
1918         (gimple_types_compatible_p_1): Likewise.
1919         (gimple_types_compatible_p): Likewise.
1920         (iterative_hash_gimple_type): Likewise.
1921         (visit): Likewise.
1922         (gimple_type_eq): Adjust.
1923
1924 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1925
1926         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1927         enters the branch create an anti edge in the opposite direction
1928         to prevent the creation of reg-moves.
1929         * modulo-sched.c: Adjust comment to reflect the fact we are
1930         scheduling closing branch.
1931         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1932         (stage_count): New field in struct partial_schedule.
1933         (calculate_stage_count): New function.
1934         (normalize_sched_times): Rename to reset_sched_times and handle
1935         incrementing the sched time of the nodes by a constant value
1936         passed as parameter.
1937         (duplicate_insns_of_cycles): Skip closing branch.
1938         (sms_schedule_by_order): Schedule closing branch.
1939         (ps_insn_find_column): Handle closing branch.
1940         (sms_schedule): Call reset_sched_times and adjust the code to
1941         support scheduling of the closing branch.
1942         (ps_insert_empty_row): Update calls to normalize_sched_times
1943         and rotate_partial_schedule functions.
1944
1945 2011-05-11  Richard Guenther  <rguenther@suse.de>
1946
1947         PR middle-end/48953
1948         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1949
1950 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1951
1952         * opts.c (finish_options): Move warning settings from process_options.
1953         * toplev.c (process_options): Move warning settings to finish_options.
1954
1955 2011-05-11  Richard Guenther  <rguenther@suse.de>
1956
1957         PR tree-optimization/18041
1958         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1959         (simplify_bitwise_binary): ... this.  Handle operand conversions
1960         by applying them to the result instead.
1961         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1962
1963 2011-05-11  Richard Guenther  <rguenther@suse.de>
1964
1965         * gimple.c (gimple_canonical_types_compatible_p): Split out
1966         from gimple_types_compatible_p and friends.  Do not recurse
1967         to pointed-to types.
1968         (gimple_canonical_type_eq): Use it.
1969         (iterative_hash_canonical_type): Split out from
1970         iterative_hash_gimple_type and friends.  Do not recurse
1971         to pointed-to types.
1972         (gimple_canonical_type_hash): Use it, allocate the hash here.
1973
1974 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1975
1976         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1977         recognizing doloop.
1978
1979 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1980
1981         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1982         instead of PREV_INSN.
1983
1984 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1985
1986         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1987         * loop-doloop.c (doloop_condition_get): Likewise.
1988         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1989         (doloop_end): New.
1990         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1991
1992 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1993
1994         * tree.def (CASE_LABEL_EXPR): Add an operand.
1995         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1996
1997 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1998
1999         * c-decl.c (c_override_global_bindings_to_false): Remove.
2000         (global_bindings_p): Don't check
2001         c_override_global_bindings_to_false.
2002         * c-tree.h (c_override_global_bindings_to_false): Remove.
2003         * c-typeck.c (composite_type): Don't set
2004         c_override_global_bindings_to_false.
2005
2006 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2007
2008         PR target/48857, 48495
2009         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2010         (VSX_MODE): Ditto.
2011         (VSX_MOVE_MODE): Ditto.
2012         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2013         VSX vector types.  Add V2DImode.
2014         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2015         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2016         (MODES_TIEABLE_P): Ditto.
2017
2018         * config/rs6000/rs6000.c (rs6000_emit_move): Use
2019         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2020         VSX_VECTOR_MODE.
2021         (init_cumulative_args): Ditto.
2022         (rs6000_function_arg_boundary): Ditto.
2023         (rs6000_function_arg_advance_1): Ditto.
2024         (rs6000_function_arg): Ditto.
2025         (rs6000_function_ok_for_sibcall): Ditto.
2026         (emit_frame_save): Ditto.
2027         (rs6000_function_value): Ditto.
2028         (rs6000_libcall_value): Ditto.
2029
2030 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2031
2032         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2033         i386/darwin-lib.h to $libgcc_tm_file.
2034         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2035
2036 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2037
2038         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2039
2040 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2041
2042         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2043         * config/rs6000/rs6000-tables.opt: New file (generated).
2044         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2045         rs6000/rs6000-tables.opt to extra_options.
2046         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2047         * config/rs6000/rs6000.c (rs6000_select): Remove.
2048         (processor_target_table): Move contents to rs6000-cpus.def.
2049         (darwin_rs6000_override_options): Check
2050         global_options_set.x_rs6000_cpu_index instead of
2051         rs6000_select[1].string.
2052         (rs6000_option_override_internal): Likewise.
2053         (rs6000_handle_option): Don't assert that global structures are in
2054         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
2055         (rs6000_default_cpu): New variable.
2056         (rs6000_file_start): Set it instead of local default_cpu.  Check
2057         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2058         global_options_set.x_rs6000_tune_index instead of rs6000_select.
2059         (rs6000_darwin_file_start): Check rs6000_default_cpu and
2060         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2061         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2062         rs6000_select): Remove.
2063         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2064         Remove.
2065         (mcpu=, mtune=): Use Var, Init, Enum and Save.
2066         * config/rs6000/t-rs6000
2067         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2068         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2069         global_options_set.x_rs6000_cpu_index instead of
2070         rs6000_select[1].string.
2071         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2072         global_options_set.x_rs6000_cpu_index instead of
2073         rs6000_select[1].string.
2074
2075 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2076
2077         * config.gcc (libgcc_tm_file): Define instead of including files
2078         from ../../libgcc/config/ in tm_file.
2079         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2080         * configure: Regenerate.
2081         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2082         libgcc_tm.h, cs-libgcc_tm.h): New.
2083         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2084         (clean): Remove libgcc_tm.h.
2085         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2086         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2087         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2088
2089 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
2090
2091         PR target/48896
2092         * config/avr/avr.c (avr_ret_register): Return unsigned int
2093         instead of int.
2094         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2095         it to avr_libcall_value.
2096         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2097         expand_expr.
2098         (avr_expand_binop_builtin): Ditto.
2099         (avr_expand_unop_builtin): Ditto.
2100
2101 2011-05-10  DJ Delorie  <dj@redhat.com>
2102
2103         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2104         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2105         * config/rx/rx.c (rx_align_for_label): Add label and
2106         uses_threshold parameters.  Do not align when the label is not
2107         used enough.
2108         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2109
2110 2011-05-10  Richard Guenther  <rguenther@suse.de>
2111
2112         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2113         a series of conversions and apply foldings similar to what
2114         fold-const does.
2115         (tree_ssa_forward_propagate_single_use_vars): Call it.
2116
2117 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2118
2119         PR tree-optimization/48611
2120         PR tree-optimization/48794
2121         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2122         referenced from RESX or EH_DISPATCH arguments.
2123
2124         PR debug/48928
2125         * dfp.c (decimal_to_decnumber): Handle conversion from
2126         dconst{1,2,m1,half}.
2127
2128 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2129
2130         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2131         for !flag_prefer_avx128.
2132         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2133
2134 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2135
2136         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2137         (fold_ternary_loc): Use expr_location_or.
2138
2139 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2140
2141         PR debug/48853
2142         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2143         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2144         Pmode and mem_mode is not VOIDmode.
2145
2146 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
2147
2148         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2149         TYPE_QUAL_RESTRICT): Convert to enum.
2150
2151 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2152
2153         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2154         (const_pow2_1_to_8_operand): Ditto.
2155         (const_pow2_1_to_128_operand): Ditto.
2156         (const_pow2_1_to_32768_operand): Ditto.
2157         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2158         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
2159         in insn constraint to check integer value of operand 3.
2160         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2161
2162         (PINSR_MODE): New mode iterator.
2163         (sse2p4_1): New mode attribute.
2164         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2165         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2166         iterator.  Use const_int_operand instead of
2167         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
2168         exact_log2 in insn constraint to check integer value of operand 3.
2169
2170 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2171
2172         * config/i386/sse.md (blendbits): Remove mode attribute.
2173         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2174         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2175         Check integer value of operand 3 in insn constraint.
2176
2177 2011-05-09  Richard Guenther  <rguenther@suse.de>
2178
2179         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2180         for diagnostics.
2181         (lto_symtab_merge): Likewise.  Do not register types here.
2182         (lto_symtab_merge_decls_2): Likewise.
2183         (lto_symtab_merge_decls_1): Likewise.
2184         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2185         * gimple.c (enum gtc_mode): Declare.
2186         (gimple_types_compatible_p): Make static.
2187
2188 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2189
2190         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2191         temporary register to match Pmode.
2192
2193 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2194
2195         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2196         and *vec_concatv4si_1_avx.
2197
2198 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2199
2200         PR rtl-optimization/48927
2201         * ira-conflicts.c (commutative_constraint_p): Use
2202         recog_data.alternative_enabled_p to disable alternatives where
2203         "enabled" attribute is false.
2204         (get_dup_num): Ditto.
2205         * ira-lives.c (single_reg_class): Ditto.
2206         (ira_implicitly_set_insn_hard_regs): Ditto.
2207
2208 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2209
2210         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2211         (dataflow_set_preserve_mem_locs): Likewise.
2212
2213 2011-05-09  Philipp Thomas  <pth@suse.de>
2214
2215         * config/mep/mep.c (mep_validate_vliw): Syntax description
2216         should not be translated.
2217
2218 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2219
2220         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2221         * config/mips/mips-tables.opt: New file (generated).
2222         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2223         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2224         MIPS_ARCH_OPTION_NATIVE): Define.
2225         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2226         mips-cpus.def.
2227         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2228         mips_parse_cpu): Remove.
2229         (mips_cpu_info_from_opt, mips_default_arch): New.
2230         (mips_handle_option): Don't assert that global structures are in
2231         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2232         (mips_option_override): Use new variables and functions to set
2233         state of these options.  Use strcmp to check for individual CPU names.
2234         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2235         definition.
2236         * config/mips/mips.opt (march=): Use ToLower and Enum.
2237         (mips): Use ToLower, Enum and Var.
2238         (mtune=): Use ToLower and Enum.
2239         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2240
2241 2011-05-08  Jan Hubicka  <jh@suse.cz>
2242
2243         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2244         Arrange type pairs to be UID ordered.
2245         (gimple_lookup_type_leader): Make inline.
2246
2247 2011-05-09  Nick Clifton  <nickc@redhat.com>
2248
2249         PR target/48899
2250         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2251         PROCESSOR_DEFAULT.
2252
2253         PR target/48897
2254         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2255         variable 's'.
2256
2257 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2258
2259         * combine.c (simplify_comparison): Abstract out parts into...
2260         (simplify_compare_const): ... new function.
2261         (try_combine): Generalize parallel arithmetic/compare combining
2262         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2263
2264 2011-05-08  Jan Hubicka  <jh@suse.cz>
2265
2266         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2267         (cgraph_create_virtual_clone): Call hooks once virtual clone
2268         is finished.
2269         * cgraph.h (cgraph_clone_node): Update prototype.
2270         * ipa-cp.c (ipcp_estimate_growth): Use
2271         estimate_ipcp_clone_size_and_time.
2272         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2273         * lto-cgraph.c (input_node): Update.
2274         * ipa-inline.c (recursive_inlining): Update.
2275         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2276         (evaluate_conditions_for_known_args): Break out from ...
2277         (evaluate_conditions_for_edge): ... here.
2278         (evaluate_conditions_for_ipcp_clone): New function.
2279         (inline_node_duplication_hook): Update clone summary based
2280         on parameter map.
2281         (estimate_callee_size_and_time): Rename to ...
2282         (estimate_node_size_and_time): take NODE instead of EDGE;
2283         take POSSIBLE_TRUTHS as argument.
2284         (estimate_callee_size_and_time): Update.
2285         (estimate_ipcp_clone_size_and_time): New function.
2286         (do_estimate_edge_time): Update.
2287
2288 2011-05-08  Richard Guenther  <rguenther@suse.de>
2289
2290         PR middle-end/48908
2291         PR middle-end/48905
2292         * expmed.c (expand_shift_1): Compute adjusted constant shift
2293         amount manually.
2294
2295 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2296
2297         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2298
2299 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2300
2301         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2302
2303 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2304
2305         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2306
2307 2011-05-07  Jan Hubicka  <jh@suse.cz>
2308
2309         * ipa-inline-transform.c (inline_call): Account when program size
2310         decreases.
2311         * ipa-inline.c (relative_time_benefit): New function.
2312         (edge_badness): Reorganize to be power 2 based; fix thinko when
2313         computing badness for negative growth; update comments to match
2314         reality; better dumps.
2315
2316 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2317
2318         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2319         type to bool and adjust comment.
2320         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2321         (fold_mathfn_compare): Remove calls to global_bindings_p.
2322         (fold_inf_compare): Likewise.
2323         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2324         * c-tree.h (global_bindings_p): Adjust prototype.
2325         * c-decl.c (global_bindings_p): Return bool and simplify.
2326
2327 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2328
2329         PR tree-optimization/48837
2330         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2331         when accumulator transformation is performed.
2332
2333 2011-05-06  Jan Hubicka  <jh@suse.cz>
2334
2335         * i386.h (ix86_tune_indices): Add
2336         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2337         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2338         * i386.c (initial_ix86_tune_features): Add
2339         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2340         (software_prefetching_beneficial_p): Remove predicate.
2341         (ix86_option_override_internal): Use new macro.
2342
2343 2011-05-06  Jan Hubicka  <jh@suse.cz>
2344
2345         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2346
2347 2011-05-06  Jan Hubicka  <jh@suse.cz>
2348
2349         * cgraph.c (cgraph_add_thunk): Create real function node instead
2350         of alias node; finalize it and mark needed/reachale; arrange visibility
2351         to be right and add it into the corresponding same comdat group list.
2352         (dump_cgraph_node): Dump thunks.
2353         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2354         cgraph_function_with_gimple_body_p,
2355         cgraph_first_function_with_gimple_body,
2356         cgraph_next_function_with_gimple_body): New functions.
2357         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2358         New macros.
2359         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2360         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2361         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2362         devirtualization when optimizing.
2363         (verify_cgraph_node): Verify thunks.
2364         (cgraph_analyze_function): Analyze thunks.
2365         (cgraph_mark_functions_to_output): Output thunks only in combination
2366         with function they are assigned to.
2367         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2368         alias into normal node.
2369         (assemble_thunks): New functoin.
2370         (cgraph_expand_function): Use it.
2371         * lto-cgraph.c (lto_output_node): Stream thunks.
2372         (input_overwrite_node): Stream in thunks.
2373         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2374         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2375         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2376         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2377         (inline_analyze_function): Do not care about thunk jump functions.
2378         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2379         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2380         cgraph_function_with_gimple_body_p.
2381         * passes.c (do_per_function_toporder): Use
2382         cgraph_function_with_gimple_body_p.
2383         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2384         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2385         (function_called_by_processed_nodes_p): Likewise.
2386
2387 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2388
2389         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2390         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2391         entries.
2392         (mabi=): Replace with separate entries for mabi=altivec,
2393         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2394         mabi=ieeelongdouble and mabi=ibmlongdouble.
2395         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2396         check for -mabi=spe without SPE ABI support here.
2397         (rs6000_handle_option): Replace OPT_mabi_ handling with
2398         OPT_mabi_altivec and OPT_mabi_spe handling.
2399
2400 2011-05-06  Cary Coutant  <ccoutant@google.com>
2401
2402         * dwarf2out.c (contains_subprogram_definition): New function.
2403         (should_move_die_to_comdat): Call it.
2404
2405 2011-05-06  Jeff Law  <law@redhat.com>
2406
2407         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2408         remove_ctrl_stmt_and_useless_edges.
2409         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2410         (fixup_template_block, thread_single_edge): Likewise.
2411         (mark_threaded_blocks): Use THREAD_TARGET.
2412
2413 2011-05-06  Alan Modra  <amodra@gmail.com>
2414
2415         PR target/48900
2416         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2417         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2418
2419 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2420
2421         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2422         constraint modifier to "r".
2423
2424 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2425
2426         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2427         fall through for OPT_mcmodel_.
2428
2429 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2430
2431         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2432         instruction sizes.
2433         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2434
2435 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2436
2437         PR target/47930
2438         * config/arm/arm.opt (marm): Document it.
2439         (mthumb): Reject negative variant.
2440
2441 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2442
2443         PR target/48898
2444         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2445         Fix typo in "ccvt" variable name.
2446
2447 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2448
2449         PR target/48895
2450         * config/vms/vms-ar.c (main): Remove cwd variable.
2451
2452 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2453
2454         PR debug/48902
2455         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2456
2457 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2458
2459         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2460         * gimplify.c (gimplify_switch_expr): Likewise.
2461         * omp-low.c (expand_omp_sections): Likewise.
2462         * tree-eh.c (lower_try_finally_switch): Likewise.
2463         (lower_eh_dispatch): Likewise.
2464         * tree.h (build_case_label): Declare.
2465         * tree.c (build_case_label): Define.
2466
2467 2011-05-05  Jason Merrill  <jason@redhat.com>
2468
2469         PR c++/40975
2470         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2471         (copy_statement_list): Don't recurse.
2472         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2473         STATEMENT_LIST.
2474
2475 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2476
2477         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2478         through from -mfpu= handling.
2479         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2480
2481 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2482
2483         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2484         POST_MODIFY.
2485
2486 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2487
2488         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2489         for 11.31.
2490         (hppa[12]*-*-hpux11*): Ditto.
2491         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2492         * config/ia64/hpux-unix2003.h: New.
2493         * config/pa/pa-hpux1131.opt: New.
2494         * config/pa/pa-hpux1131.h: New.
2495         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2496         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2497         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2498
2499 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2500
2501         PR debug/48853
2502         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2503         instead of mode as 3rd argument to recursive call.
2504         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2505         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2506         VOIDmode.
2507         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2508         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2509         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2510         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2511
2512 2011-05-05  Julian Brown  <julian@codesourcery.com>
2513
2514         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2515         parenthesis in D-register case.
2516
2517 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2518
2519         * opt-functions.awk (var_type_struct): Handle Enum options.
2520         * optc-gen.awk: Don't check range of variables of character type.
2521         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2522         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2523         rs6000_sdata_name, rs6000_explicit_options): Remove.
2524         (rs6000_option_override_internal): Check for -malign-power here.
2525         Use global_options_set instead of rs6000_explicit_options.
2526         (rs6000_parse_fpu_option): Remove.
2527         (rs6000_handle_option): Access variables via opts and opts_set
2528         pointers.  Use error_at and warning_at.  Add fall-through
2529         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2530         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2531         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2532         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2533         here.  Don't use rs6000_parse_fpu_option.
2534         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2535         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2536         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2537         (mrecip=): Use Var.
2538         (mspe): Use Var and Save.
2539         (mtraceback=): Use Enum and Var.
2540         (rs6000_traceback_type): New Enum and EnumValue entries.
2541         (mfloat-gprs=): Use Enum, Var and Save.
2542         (rs6000_float_gprs): New Enum and EnumValue entries.
2543         (mlong-double-): use Var and Save.
2544         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2545         (malign-): Use Enum and Var.
2546         (rs6000_alignment_flags): New Enum and EnumValue entries.
2547         (mfpu=): Use Enum.
2548         (fpu_type_t): New Enum and EnumValue entries.
2549         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2550         global_options_set instead of rs6000_explicit_options.
2551         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2552         global_options_set instead of rs6000_explicit_options.
2553         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2554         global_options_set instead of rs6000_explicit_options.
2555         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2556         global_options_set instead of rs6000_explicit_options.
2557         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2558         global_options_set instead of rs6000_explicit_options.
2559         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2560         global_options_set instead of rs6000_explicit_options.
2561         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2562         definition.
2563         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2564         global_options_set instead of rs6000_explicit_options.
2565         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2566         (rs6000_cmodel): New Enum and EnumValue entries.
2567         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2568         global_options_set instead of rs6000_explicit_options.
2569         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2570         (mtls-size=): Use Enum and Var.
2571         (rs6000_tls_size): New Enum and EnumValue entries.
2572
2573 2011-05-05  Michael Matz  <matz@suse.de>
2574
2575         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2576         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2577         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2578         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2579         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2580         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2581         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2582         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2583         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2584         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2585         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2586         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2587         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2588         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2589         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2590         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2591
2592 2011-05-05  Richard Guenther  <rguenther@suse.de>
2593
2594         * expmed.c (expand_variable_shift): Rename to ...
2595         (expand_shift_1): ... this.  Take an expanded shift amount.
2596         For rotates recurse directly not building trees for the shift amount.
2597         (expand_variable_shift): Wrap around expand_shift_1.
2598         (expand_shift): Adjust.
2599
2600 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2601
2602         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2603
2604 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2605
2606         * tree.h (get_pending_sizes): Remove prototype.
2607         (put_pending_size): Likewise.
2608         (put_pending_sizes): Likewise.
2609         * stor-layout.c (pending_sizes): Delete.
2610         (get_pending_sizes): Likewise.
2611         (put_pending_size): Likewise.
2612         (put_pending_sizes): Likewise.
2613         (variable_size): Do not call put_pending_size and tidy up.
2614         * function.h (struct function): Remove dont_save_pending_sizes_p.
2615         * lto-streamer-in.c (input_function): Do not stream it.
2616         * lto-streamer-out.c (output_function): Likewise.
2617         * tree-inline.c (initialize_cfun): Do not copy it.
2618         * c-decl.c (store_parm_decls): Do not set it.
2619         * omp-low.c (create_task_copyfn): Likewise.
2620         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2621
2622 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2623
2624         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2625         conditions.
2626         (*movdf_internal): Ditto.
2627         (*movdf_internal_nointeger): Ditto.
2628         (*movsf_internal): Ditto.
2629
2630 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2631
2632         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2633         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2634         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2635         (c_variable_size): Remove.
2636         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2637         call put_pending_sizes.
2638         (get_parm_info): Add parameter expr.  Use it to set
2639         arg_info->pending_sizes.
2640         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2641         get_pending_sizes.
2642         * c-parser.c (c_parser_parms_declarator): Update call to
2643         c_parser_parms_list_declarator.
2644         (c_parser_parms_list_declarator): Take parameter expr.  Update
2645         call to push_parm_decl.  Update recursive call.  Don't call
2646         get_pending_sizes.  Update calls to get_parm_info.
2647         (c_parser_objc_method_definition): Update calls to
2648         c_parser_objc_method_decl and objc_start_method_definition.
2649         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2650         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2651         grokparm.
2652         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2653         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2654         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2655
2656 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2657
2658         PR pch/45979
2659         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2660         __ARM_EABI__ hosts.
2661
2662 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2663
2664         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2665         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2666         (spu_output_mi_thunk): New function.
2667
2668 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2669
2670         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2671         targetm.asm_out.print_operand.
2672         * config/sol2.c: Include target.h.
2673
2674 2011-05-04  Jan Hubicka  <jh@suse.cz>
2675
2676         * ipa-inline.c (reset_edge_caches): New function.
2677         (update_caller_keys): Add check_inlinablity_for; do not
2678         reset edge caches; remove now unnecesary loop.
2679         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2680         (update_all_callee_keys): Likewise.
2681         (inline_small_functions): Sanity check cache; update code
2682         recomputing it.
2683
2684 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2685
2686         PR rtl-optimization/47612
2687         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2688         as the last insn of the sequence to be moved.
2689
2690 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2691
2692         PR fortran/48864
2693         * doc/invoke.texi (Ofast): Document that it
2694         enables Fortran's -fno-protect-parens.
2695
2696 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2697
2698         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2699
2700 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2701
2702         * stor-layout.c (variable_size): Do not issue errors.
2703
2704 2011-05-04  Richard Guenther  <rguenther@suse.de>
2705
2706         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2707         for array-ref indices.
2708         (tree_coverage_counter_addr): Likewise.
2709         (build_fn_info_type): Use size_int for index types.
2710         (build_gcov_info): Likewise.
2711
2712 2011-05-04  Richard Guenther  <rguenther@suse.de>
2713
2714         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2715         to build_int_cst.
2716         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2717         for constructor indices.
2718         (push_init_level): Likewise.
2719
2720 2011-05-04  Richard Guenther  <rguenther@suse.de>
2721
2722         * explow.c (promote_mode): Move variable declarations before code.
2723
2724 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2725
2726         * tree.h (build_function_type_array): Declare.
2727         (build_varargs_function_type_array): Declare.
2728         (build_function_type_vec, build_varargs_function_type_vec): Define.
2729         * tree.c (build_function_type_array_1): New function.
2730         (build_function_type_array): New function.
2731         (build_varargs_function_type_array): New function.
2732
2733 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2734
2735         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2736         before setting STMT_VINFO_TYPE.
2737
2738 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2739
2740         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2741         instead of spu_pass_by_reference.
2742
2743 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2744
2745         * calls.c (emit_library_call_value_1): Invoke
2746         promote_function_mode hook on libcall arguments.
2747         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2748         argument being NULL.
2749         * targhooks.c (default_promote_function_mode): Lisewise.
2750         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2751         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2752
2753         * doc/tm.texi: Document that TYPE argument might be NULL.
2754
2755 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2756
2757         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2758
2759 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2760
2761         From Bernd Schmidt
2762         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2763
2764 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2765
2766         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2767         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2768         Move ...
2769         * mips-tfile.c: ... here.
2770         Don't include coretypes.h, tm.h, filenames.h.
2771         (saber_stop): Remove definition and all calls.
2772         [__SABER__]: Remove.
2773         (__LINE__): Remove default.
2774         (Size_t, Ptrdiff_t): Remove definitions.
2775         Replace by size_t, ptrdiff_t.
2776         [!MIPS_DEBUGGING_INFO]: Remove.
2777         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2778         (progname): Add const.
2779         (STATIC): Remove.
2780         Replace all uses by static.
2781         (ALIGN_SYMTABLE_OFFSET): Remove default.
2782         * mips-tdump.c: Don't include coretypes.h, tm.h.
2783         Remove !MIPS_IS_STAB guard.
2784         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2785         $(TM_H), filenames.h dependencies.
2786         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2787
2788 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2789
2790         From Jie Zhang
2791         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2792         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2793
2794 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2795
2796         From Bernd Schmidt
2797         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2798         account and save/restore RETS.
2799         (PROFILE_BEFORE_PROLOGUE): Define.
2800         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2801         the push insn to use predecrement.
2802
2803 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2804
2805         From Jie Zhang
2806         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2807
2808 2011-05-04  Nick Clifton  <nickc@redhat.com>
2809
2810         * config/mn10300/mn10300.c: Include cfgloop.h.
2811         (DUMP): New macro.
2812         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2813         Lcc or a FLcc insn into the instruction stream.
2814         (mn10300_block_contains_call): New function.  Returns true if the
2815         given basic block contains a CALL insn.
2816         (mn10300_loop_contains_call_insn): New function.  Returns true if
2817         the given loop contains a CALL insn.
2818         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2819         to use the SETLB and Lcc or FLcc insns.
2820         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2821         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2822         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2823         disable the SETLB optimization.
2824         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2825         __SETLB__ or __NO_SETLB__.
2826         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2827         (movsf_internal): Handle MDR register.
2828         (cmpsi): Make visible.
2829         (setlb): New pattern.
2830         (Lcc): New pattern.
2831         (FLcc): New pattern.
2832
2833 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2834
2835         PR target/48860
2836         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2837         for reg<->xmm moves.
2838         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2839         (vec_concatv2di_rex64_sse): Ditto.
2840         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2841         (*vec_extractv2di_1_rex64): Ditto.
2842
2843         Revert:
2844         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2845
2846         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2847         reg<->xmm moves.
2848         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2849
2850 2011-05-04  Richard Guenther  <rguenther@suse.de>
2851
2852         * tree.h (int_const_binop): Remove notrunc argument.
2853         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2854         create integer constants that are properly truncated.
2855         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2856         (const_binop): Remove zero notrunc argument to int_const_binop.
2857         (size_binop_loc): Likewise.
2858         (fold_div_compare): Likewise.
2859         (maybe_canonicalize_comparison_1): Likewise.
2860         (fold_comparison): Likewise.
2861         (fold_binary_loc): Likewise.
2862         (multiple_of_p): Likewise.
2863         * expr.c (store_constructor): Likewise.
2864         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2865         (maybe_fold_stmt_addition): Likewise.
2866         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2867         * stor-layout.c (layout_type): Likewise.
2868         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2869         * tree-sra.c (build_ref_for_offset): Likewise.
2870         (build_user_friendly_ref_for_offset): Likewise.
2871         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2872         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2873         * tree-ssa-loop-niter.c (inverse): Likewise.
2874         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2875         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2876         * tree-switch-conversion.c (check_range): Likewise.
2877         (build_constructors): Likewise.
2878         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2879         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2880         (extract_range_from_assert): Likewise.
2881         (vrp_int_const_binop): Likewise.
2882         (extract_range_from_binary_expr): Likewise.
2883         (extract_range_from_unary_expr): Likewise.
2884         (check_array_ref): Likewise.
2885         (find_case_label_range): Likewise.
2886         (simplify_div_or_mod_using_ranges): Likewise.
2887         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2888         comparing case labels for merging.
2889
2890 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2891
2892         * dwarf2out.c (debug_str_hash_forced): Removed.
2893         (gen_label_for_indirect_string): Removed.
2894         (get_debug_string_label): Removed.
2895         (AT_string_form): Generate label directly.
2896         (output_indirect_string): Test indirect_string_node for
2897         DW_FORM_strp instead of checking label and refcount.
2898         (prune_indirect_string): Removed.
2899         (prune_unused_types): Don't check debug_str_hash_forced or
2900         call prune_indirect_string.
2901
2902 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2903
2904         PR other/48093
2905         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2906
2907 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2908
2909         PR debug/47994
2910         PR debug/47919
2911         * combine.c (try_combine): Skip debug insns at m_split tests.
2912
2913 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2914
2915         PR42288
2916         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2917         when info_section_emitted.
2918
2919 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2920
2921         * config/mips/mips-opts.h: New.
2922         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2923         to mips-opts.h.
2924         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2925         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2926         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2927         via opts pointer.
2928         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2929         mips-opts.h.
2930         (mips_abi, mips_code_readable): Don't declare.
2931         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2932         (mabi=): Use Enum and Var.
2933         (mips_abi): New Enum and EnumValue entries.
2934         (mcode-readable=): Use Enum and Var.
2935         (mips_code_readable_setting): New Enum and EnumValue entries.
2936         (mr10k-cache-barrier=): Use Enum and Var.
2937         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2938
2939 2011-05-03  Jan Hubicka  <jh@suse.cz>
2940
2941         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2942         replace hash by pointer map.
2943         (cgraph_node_set_element_def, cgraph_node_set_element,
2944         const_cgraph_node_set_element, varpool_node_set_element_def,
2945         varpool_node_set_element, const_varpool_node_set_element): Remove.
2946         (free_cgraph_node_set, free_varpool_node_set): New function.
2947         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2948         * tree-emutls.c: Free varpool node set.
2949         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2950         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2951         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2952         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2953         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2954         Move here from ipa.c; implement using pointer_map
2955         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2956         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2957         debug_cgraph_node_set, varpool_node_set_new,
2958         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2959         dump_varpool_node_set, debug_varpool_node_set):
2960         Move to ipa-uitls.c.
2961         * passes.c (ipa_write_summaries): Update.
2962
2963 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2964
2965         From Mike Frysinger:
2966         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2967         bf542/bf544/bf547/bf548/bf549.
2968
2969 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2970
2971         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2972
2973 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2974
2975         From Bernd Schmidt:
2976         * config/bfin/bfin.md (MOVCC): New mode_macro.
2977         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2978         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2979         comments from generated assembly.
2980
2981 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2982
2983         From Bernd Schmidt
2984         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2985         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2986         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2987         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2988         * config/bfin/lib1funcs.asm (___muldi3): New function.
2989
2990 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2991
2992         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2993         build_function_type_list instead of build_function_type.
2994         Rearrange initialization of `args' to do so.
2995
2996 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2997
2998         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2999         instead of build_function_type.
3000
3001 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3002
3003         * config/rs6000/rs6000.c (spe_init_builtins): Call
3004         build_function_type_list instead of build_function_type.
3005         (paired_init_builtins, altivec_init_builtins): Likewise.
3006         (builtin_function_type): Likewise.
3007
3008 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3009
3010         * config/sh/sh.c (sh_media_init_builtins): Call
3011         build_function_type_list instead of build_function_type.
3012
3013 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3014
3015         * config/sparc/sparc.c (sparc_file_end): Call
3016         build_function_type_list instead of build_function_type.
3017
3018 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3019
3020         * config/alpha/alpha.c (alpha_init_builtins): Call
3021         build_function_type_list instead of build_function_type.
3022
3023 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3024
3025         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3026         build_function_type_list instead of build_function_type.
3027
3028 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3029
3030         * config/iq2000/i2000.c (iq2000_init_builtins): Call
3031         build_function_type_list instead of build_function_type.
3032         Delete `endlink' variable.
3033
3034 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3035
3036         * config/avr/avr.c (avr_init_builtins): Call
3037         build_function_type_list instead of build_function_type.
3038
3039 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3040
3041         * config/picochip/picochip.c (picochip_init_builtins): Call
3042         build_function_type_list instead of build_function_type.
3043         Delete `endlink' variable.
3044
3045 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3046
3047         * config/bfin/bfin.c (bfin_init_builtins): Call
3048         build_function_type_list instead of build_function_type.
3049
3050 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3051
3052         From Bernd Schmidt
3053         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3054         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
3055
3056 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3057
3058         From Jie Zhang:
3059         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3060         libbffastfp overrides libgcc when -mfast-fp.
3061
3062 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3063
3064         Originally from Bernd Schmidt
3065         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3066         * config/bfin/bfin.c (override_options): Test it and error if
3067         TARGET_FDPIC.
3068
3069 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3070
3071         Originally From Bernd Schmidt
3072         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3073         FD-PIC.
3074
3075 2011-05-03  Jeff Law  <law@redhat.com>
3076
3077         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3078         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3079         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3080         than accessing AUX field directly.  Free the AUX field before
3081         clearing it.
3082         (thread_block, thread_through_loop_header): Likewise.
3083         (thread_single_edge, mark_threaded_blocks): Likewise.
3084         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
3085         (register_jump_thread): Do not attempt to thread to a NULL edge.
3086
3087 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3088
3089         * function.c (init_function_start): Call decide_function_section.
3090         * varasm.c (decide_function_section): New function.
3091         (assemble_start_function): When not using
3092         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3093         or first_function_block_is_cold.
3094         * rtl.h (decide_function_section): Declare.
3095
3096 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3097             Jakub Jelinek  <jakub@redhat.com>
3098
3099         PR target/48774
3100         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3101         only succeed if req_mode is the same as set_mode.
3102
3103 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3104
3105         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3106         * genemit.c (gen_exp): Handle RETURN.
3107         * emit-rtl.c (verify_rtx_sharing): Likewise.
3108         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3109         * rtl.c (copy_rtx): RETURN is shared.
3110         * rtl.h (enum global_rtl_index): Add GR_RETURN.
3111         (ret_rtx): New.
3112         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3113         * config/s390/s390.c (s390_emit_epilogue): Likewise.
3114         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3115         * config/cris/cris.c (cris_expand_return): Likewise.
3116         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3117         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3118         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3119         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3120         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3121         Likewise.
3122         * config/v850/v850.c (expand_epilogue): Likewise.
3123         * config/bfin/bfin.c (bfin_expand_call): Likewise.
3124         * config/arm/arm.md (epilogue): Likewise.
3125         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3126         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3127         variable to ret_reg.
3128
3129 2011-05-03  Richard Guenther  <rguenther@suse.de>
3130
3131         PR lto/48846
3132         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3133         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3134         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3135
3136 2011-05-03  Richard Guenther  <rguenther@suse.de>
3137
3138         * c-decl.c (grokdeclarator): Instead of looking at
3139         TREE_OVERFLOW check if the constant fits in the index type.
3140
3141 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3142
3143         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3144         (vec_store_lanes<mode><mode>): Likewise.
3145
3146 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3147
3148         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3149         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3150         convert_optab_index values.
3151         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3152         * genopinit.c (optabs): Initialize the new optabs.
3153         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3154         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3155         (expand_STORE_LANES): New functions.
3156         * tree.h (build_array_type_nelts): Declare.
3157         * tree.c (build_array_type_nelts): New function.
3158         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3159         (vect_model_load_cost): Likewise.
3160         (vect_store_lanes_supported, vect_load_lanes_supported)
3161         (vect_record_strided_load_vectors): Declare.
3162         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3163         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3164         (vect_transform_strided_load): Split out statement recording into...
3165         (vect_record_strided_load_vectors): ...this new function.
3166         * tree-vect-stmts.c (create_vector_array, read_vector_array)
3167         (write_vector_array, create_array_ref): New functions.
3168         (vect_model_store_cost): Add store_lanes_p argument.
3169         (vect_model_load_cost): Add load_lanes_p argument.
3170         (vectorizable_store): Try to use store-lanes functions for
3171         interleaved stores.
3172         (vectorizable_load): Likewise load-lanes and loads.
3173         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3174         to vect_model_store_cost.
3175         (vect_build_slp_tree): Likewise vect_model_load_cost.
3176
3177 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3178
3179         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3180         * hooks.c (hook_bool_mode_uhwi_false): New function.
3181         * target.def (array_mode_supported_p): New hook.
3182         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3183         * doc/tm.texi: Regenerate.
3184         * stor-layout.c (mode_for_array): New function.
3185         (layout_type): Use it.
3186         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3187         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3188
3189 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3190
3191         PR target/48723
3192         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3193         for -fstack-check if the size to allocate is negative.
3194
3195 2011-05-02  Lawrence Crowl  <crowl@google.com>
3196
3197         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3198         (timevar_cond_start): New for starting a timer only when it is not
3199         already running.
3200         (timevar_cond_stop): New for stopping a timer when it was not already
3201         running.
3202
3203         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3204         (timevar_cond_start): New as above.
3205         (timevar_cond_stop): New as above.
3206
3207         * timevar.def: Add start/stop timers for compiler phases,
3208         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3209         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3210         and TV_PHASE_FINALIZE.
3211         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3212         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3213         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3214         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3215         Make unused TV_OVERLOAD into a start/stop timer.
3216
3217         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3218         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3219         to indicate that they are start/stop timers.
3220
3221         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3222         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3223         Move initialization to do_compile.
3224         (do_compile): Add initialization from above.
3225         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3226
3227         * c-decl.c (c_write_global_declarations): Add start/stop of
3228         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3229
3230         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3231         or TV_PARSE_INLINE, as appropriate.
3232         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3233         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3234
3235 2011-05-02  Jason Merrill  <jason@redhat.com>
3236
3237         PR c++/40975
3238         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3239
3240 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3241
3242         PR c/35445
3243         * c-decl.c (finish_decl): Only create a composite if the types are
3244         compatible.
3245
3246 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3247
3248         * config/fr30/fr30-protos.h (Mmode): Don't define.
3249         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3250         definition where used.
3251         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3252         define.  Expand definitions where used.
3253         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3254         Expand definitions where used.
3255         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3256         rx_function_arg, rx_function_arg_advance,
3257         rx_function_arg_boundary): Expand definitions of those macros.
3258         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3259         definition where used.
3260
3261 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3262
3263         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3264         reg<->xmm moves.
3265         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3266         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3267         with *movv2sf_internal_rex64_avx.
3268         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3269         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3270         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3271         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3272         "vex" in "prefix" attribute calculation.
3273         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3274
3275 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3276
3277         PR target/47951
3278         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3279         inputs match the output.
3280
3281 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3282
3283         PR target/47955
3284         * config/m68k/m68k.c (m68k_expand_prologue): Set
3285         current_function_static_stack_size.
3286
3287 2011-05-02   Jan Hubicka  <jh@suse.cz>
3288
3289         * lto-streamer.c (lto_streamer_cache_insert_1,
3290         lto_streamer_cache_lookup, lto_streamer_cache_create,
3291         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3292         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3293
3294 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3295
3296         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3297         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3298         config/m68k/t-opts: New files.
3299         * config/m68k/m68k-tables.opt: New file (generated).
3300         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3301         extra_options and m68k/t-opts to tmake_file.
3302         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3303         (all_isas): Initialize using m68k-isas.def.
3304         (all_microarchs): Initialize using m68k-microarchs.def.
3305         (m68k_find_selection): Remove.
3306         (m68k_handle_option): Don't assert that global structures are in
3307         use.  Use error_at.  Access variables via opts pointer.  Don't
3308         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3309         directly for -m68020-40 and -m68020-60.
3310         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3311         m68k_tune_entry here.
3312         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3313         to m68k-opts.h.
3314         (m68k_library_id_string): Remove declaration.
3315         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3316         (m68k_library_id_string): New Variable.
3317         (march=, mcpu=, mtune=): Use Enum and Var.
3318
3319 2011-05-02  Richard Guenther  <rguenther@suse.de>
3320
3321         * varasm.c (output_constructor_regular_field): Compute zero-based
3322         index with double-ints.  Make sure to ICE instead of producing
3323         wrong code.
3324         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3325         in asserts.  Properly use a signed type.
3326
3327 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3328
3329         * config/i386/sse.md (V): New mode iterator.
3330         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3331         TARGET_SSE2.
3332         (V_256): Rename from AVX256MODE.
3333         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3334         condition to all users.
3335         (VF1): Ditto.
3336         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3337         condition to all users.
3338         (VF_128): Make V4SF mode unconditional.
3339         (VF_256): Rename from AVX256MODEF2P.
3340         (VI4F_128): Rename from SSEMODE4S.
3341         (VI8F_128): Rename from SSEMODE2D.
3342         (VI4F_256): Rename from AVX256MODE8P.
3343         (VI8F_256): Rename from AVX256MODE4P.
3344         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3345         (ssescalarmodesuffix): Remove SF and DF modes.
3346         (SSEMODE124): Remove.
3347         (SSEMODE1248): Ditto.
3348         (SSEMODEF2P): Ditto.
3349         (AVXMODEF2P): Ditto.
3350         (AVXMODEFDP): Ditto.
3351         (AVXMODEFSP): Ditto.
3352         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3353         unconditional.
3354         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3355         unconditional.
3356         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3357         xop_pcmov_<mode>256.  Use V mode iterator.
3358
3359         Adjust RTX patterns globally for renamed mode attributes.
3360
3361 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3362
3363         * haifa-sched.c (sched_emit_insn): Emit insn before first
3364         non-scheduled insn.  Inform back-end about new insn.  Add
3365         new insn to scheduled_insns list.
3366
3367 2011-05-02  Richard Guenther  <rguenther@suse.de>
3368
3369         PR tree-optimization/48822
3370         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3371         (process_scc): Indicate which iteration we start.
3372
3373 2011-05-02  Jan Hubicka  <jh@suse.cz>
3374
3375         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3376         (lto_section_overrun): New.
3377         * lto-section-out.c (append_block): Rename to ...
3378         (lto_append_block): ... this one; export.
3379         (lto_output_1_stream): Move lto lto-streamer.h
3380         (lto_output_data_stream): Update.
3381         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3382         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3383         functions.
3384
3385 2011-05-02  Richard Guenther  <rguenther@suse.de>
3386
3387         * tree.c (tree_code_counts): New global array.
3388         (record_node_allocation_statistics): Count individual tree codes.
3389         (dump_tree_statistics): Dump individual code stats.
3390
3391 2011-05-01  Jan Hubicka  <jh@suse.cz>
3392
3393         * ipa-inline.c (caller_growth_limits): Fix thinko when
3394         looking for largest stack frame.
3395         * ipa-inline.h (dump_inline_summary): Declare.
3396         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3397         on stack usage.
3398         (dump_inline_summary): Export.
3399         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3400
3401 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3402
3403         * reginfo.c (memory_move_cost): Change rclass argument type form
3404         'enum reg_class' to reg_class_t.
3405         * reload.h (memory_move_cost): Update prototype.
3406         * postreload.c reload_cse_simplify_set): Change type dclass var to
3407         reg_class_t.
3408         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3409         Update prototype.
3410         (ira_allocate_and_set_costs): Change aclass argument type form
3411         'enum reg_class' to reg_class_t.
3412         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3413         Change aclass argument type to reg_class_t.
3414         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3415         to reg_class_t.
3416         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3417         memory_move_cost call.
3418
3419         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3420         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3421         Change type tmp var to reg_class_t.
3422
3423 2011-04-30  Jan Hubicka  <jh@suse.cz>
3424
3425         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3426         inlining into function with flatten attribute.
3427         (want_inline_small_function_p): Be more realistic about inlining
3428         cold calls where callee size grows.
3429
3430 2011-04-30  Jan Hubicka  <jh@suse.cz>
3431
3432         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3433         flags.
3434
3435 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3436
3437         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3438         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3439         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3440         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3441         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3442         (print_operand): Rename to...
3443         (sparc_print_operand): ...this. Make static. Adjust
3444         sparc_print_operand function call.
3445         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3446         functions.
3447
3448 2011-04-30  Jan Hubicka  <jh@suse.cz>
3449
3450         PR middle-end/48752
3451         * ipa-inline.c (early_inliner): Disable when doing late
3452         addition of function.
3453
3454 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3455
3456         * dwarf2out.c (get_address_mode): New inline.
3457         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3458         if not dwarf_strict emit
3459         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3460         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3461         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3462         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3463         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3464         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3465         mem_loc_descriptor callers.
3466         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3467         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3468         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3469         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3470         (base_types): New variable.
3471         (get_base_type_offset, calc_base_type_die_sizes,
3472         base_type_for_mode, mark_base_types, base_type_cmp,
3473         move_marked_base_types): New functions.
3474         (calc_die_sizes): Assert that die_offset is 0 or equal to
3475         next_die_offset.
3476         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3477         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3478         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3479         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3480         (gen_subprogram_die): Don't give up on call site parameters
3481         with non-integral or large integral modes.  Adjust
3482         mem_loc_descriptor callers.
3483         (prune_unused_types): Call prune_unused_types_mark on base_types
3484         vector entries.
3485         (resolve_addr): Call mark_base_types.
3486         (dwarf2out_finish): Call move_marked_base_types.
3487
3488         PR tree-optimization/48809
3489         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3490         type.
3491         (gen_inbound_check): Don't compute index_expr - range_min in utype
3492         again, instead reuse SSA_NAME initialized in build_arrays.
3493         Remove two useless gsi_for_stmt calls.
3494
3495 2011-04-29  Jeff Law  <law@redhat.com>
3496
3497         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3498
3499 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3500
3501         * cgraph.h (cgraph_postorder): Remove declaration.
3502         * ipa-utils.h (ipa_free_postorder_info): Declare.
3503         (ipa_reverse_postorder): Likewise.
3504         * cgraphunit.c: Include ipa-utils.h.
3505         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3506         * ipa-inline.c: Include ipa-utils.h.
3507         (ipa_inline): Update call to ipa_reverse_postorder.
3508         * ipa-pure-const.c (propagate_pure_const): Update call to
3509         ipa_reduced_postorder and ipa_print_order.  Call
3510         ipa_free_postorder_info to clean up.
3511         (propagate_nothrow): Likewise.
3512         * ipa-reference.c (propagate): Removed a useless call to
3513         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3514         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3515         * ipa.c: Include ipa-utils.h.
3516         (ipa_profile): Update call to ipa_reverse_postorder.
3517         (cgraph_postorder): Moved to...
3518         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3519         (ipa_utils_print_order): Renamed to ipa_print_order.
3520         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3521         comments.
3522         (ipa_free_postorder_info): New function.
3523         * passes.c: Include ipa-utils.h.
3524         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3525         (ipa_write_summaries): Likewise.
3526         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3527         (cgraphunit.o): Likewise.
3528         (ipa.o): Likewise.
3529         (ipa-inline.o): Likewise.
3530
3531 2011-04-29  Jan Hubicka  <jh@suse.cz>
3532
3533         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3534         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3535         * ipa-inline.h (clause_t): Turn into unsigned int.
3536         * ipa-inline-analysis.c (add_clause): Do more simplification.
3537         (and_predicates): Shortcut more cases.
3538         (predicates_equal_p): Move forward; check that clauses are properly
3539         ordered.
3540         (or_predicates): Shortcut more cases.
3541         (edge_execution_predicate): Rewrite as...
3542         (set_cond_stmt_execution_predicate): ... this function; handle
3543         __builtin_constant_p.
3544         (set_switch_stmt_execution_predicate): New .
3545         (compute_bb_predicates): New.
3546         (will_be_nonconstant_predicate): Update TODO.
3547         (estimate_function_body_sizes): Use compute_bb_predicates
3548         and free them later, always try to estimate if stmt is constant.
3549         (estimate_time_after_inlining, estimate_size_after_inlining):
3550         Gracefully handle optimized out edges.
3551         (read_predicate): Fix off by one error.
3552
3553 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3554
3555         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3556
3557 2011-04-27  Xinliang David Li  <davidxl@google.com>
3558
3559         * tree-profile.c (init_ic_make_global_vars): Set
3560         tls attribute on ic vars.
3561         * coverage.c (coverage_end_function): Initialize
3562         function_list with zero.
3563
3564 2011-04-29  Richard Guenther  <rguenther@suse.de>
3565
3566         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3567         for the type of the result.
3568         (fold_builtin_isascii): Likewise.
3569         (fold_builtin_toascii): Use integer_type_node where appropriate.
3570         (fold_builtin_logb): Likewise.
3571         (fold_builtin_frexp): Likewise.
3572         (fold_builtin_strstr): Likewise.
3573         (fold_builtin_strpbrk): Likewise.
3574         (fold_builtin_fputs): Likewise.
3575         (fold_builtin_sprintf): Likewise.
3576         (fold_builtin_snprintf): Likewise.
3577         (fold_builtin_printf): Likewise.
3578         (do_mpfr_remquo): Use a proper type for the assigned constant.
3579         (do_mpfr_lgamma_r): Likewise.
3580         * dwarf2out.c (resolve_one_addr): Use size_int.
3581         * except.c (init_eh): Likewise.
3582         (assign_filter_values): Use integer_type_node for filter values.
3583         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3584         indices.
3585         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3586         for EH region numbers.
3587         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3588         for the shift amount.
3589
3590 2011-04-29  Richard Guenther  <rguenther@suse.de>
3591
3592         * expr.h (expand_shift): Rename to ...
3593         (expand_variable_shift): ... this.
3594         (expand_shift): Take a constant shift amount.
3595         * expmed.c (expand_shift): Rename to ...
3596         (expand_variable_shift): ... this.
3597         (expand_shift): New wrapper around expand_variable_shift.
3598         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3599         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3600         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3601         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3602         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3603         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3604         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3605         emit_store_flag_1, emit_store_flag): Likewise.
3606         * builtins.c (expand_builtin_signbit): Likewise.
3607         * calls.c (load_register_parameters): Likewise.
3608         * function.c (assign_parm_setup_block): Likewise.
3609         * lower-subreg.c (resolve_shift_zext): Likewise.
3610         * optabs.c (widen_bswap, expand_abs_nojump,
3611         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3612         * spu/spu.c (spu_expand_extv): Likewise.
3613         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3614
3615 2011-04-29  Richard Guenther  <rguenther@suse.de>
3616
3617         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3618         for the remapped region number.
3619         * predict.c (build_predict_expr): Use integer_type_node for the
3620         predict kind.
3621         * fold-const.c (fold_binary_loc): Use integer_type_node for
3622         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3623
3624 2011-04-29  Michael Matz  <matz@suse.de>
3625
3626         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3627         other trees that just builtins.
3628         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3629
3630 2011-04-29  Richard Guenther  <rguenther@suse.de>
3631
3632         * tree-nested.c (get_trampoline_type): Use size_int.
3633         (get_nl_goto_field): Likewise.
3634         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3635         for all indexes.
3636         (lower_eh_constructs_2): Likewise.
3637         (lower_resx): Likewise.
3638         (lower_eh_dispatch): Likewise.
3639         * tree-mudflap.c (mf_build_string): Use size_int.
3640         (mudflap_register_call): Use integer_type_node for the flag.
3641         (mudflap_enqueue_constant): Use size_int.
3642         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3643         instead of rebuilding it.
3644
3645 2011-04-29  Richard Guenther  <rguenther@suse.de>
3646
3647         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3648         Handle OBJ_TYPE_REF.
3649         (find_func_aliases_for_call): Use it more consistently.
3650
3651 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3652
3653         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3654         (rank_for_schedule): Use it.
3655         (schedule_block): Set it.
3656
3657 2011-04-28  David Li  <davidxl@google.com>
3658
3659         * tree.c (crc32_string): Use crc32_byte.
3660         (crc32_byte): New function.
3661         * tree.h (crc32_byte): New function.
3662         * gcov.c (read_graph_file): Handle new cfg_cksum.
3663         (read_count_file): Ditto.
3664         * profile.c (instrument_values): Ditto.
3665         (get_exec_counts): Ditto.
3666         (read_profile_edge_counts): Ditto.
3667         (compute_branch_probabilities): Ditto.
3668         (compute_value_histograms): Ditto.
3669         (branch_prob): Ditto.
3670         (end_branch_prob): Ditto.
3671         * coverage.c (read_counts_file): Ditto.
3672         (get_coverage_counts): Ditto.
3673         (tree_coverage_counter_addr): Ditto.
3674         (coverage_checksum_string): Ditto.
3675         (coverage_begin_output): Ditto.
3676         (coverage_end_function): Ditto.
3677         (build_fn_info_type): Ditto.
3678         (build_fn_info_value): Ditto.
3679         * libgcov.c (gcov_exit): Ditto.
3680         * gcov-dump.c (tag_function): Ditto.
3681         (compute_checksum): Remove.
3682
3683 2011-04-29  Alan Modra  <amodra@gmail.com>
3684
3685         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3686         unspec plus offset.  Tidy macho code.
3687
3688 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3689
3690         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3691         node instead of a decl.  Update all callers.
3692         * cgraph.h: Update declaration.
3693
3694 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3695
3696         PR tree-optimization/48765
3697         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3698         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3699         to indicate if loop aware SLP is being used.  Scan the statements
3700         and update the vectorization factor according to the type of
3701         vectorization before statement analysis.
3702         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3703         pass it to vect_analyze_loop_operations.
3704         (vectorizable_reduction): Set number of copies to 1 in case of pure
3705         SLP statement.
3706         * tree-vect-stmts.c (vectorizable_conversion,
3707         vectorizable_assignment, vectorizable_shift,
3708         vectorizable_operation, vectorizable_type_demotion,
3709         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3710         Likewise.
3711         (vectorizable_condition): Move the check that it is not SLP
3712         vectorization before the number of copies check.
3713         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3714         to vectorize the loop using SLP.
3715
3716 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3717
3718         PR middle-end/48597
3719         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3720         inline asm.
3721
3722 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3723
3724         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3725         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3726         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3727         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3728         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3729         linux*.h headers.
3730         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3731         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3732         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3733         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3734         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3735         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3736         REG_NAME.
3737         * config/i386/linux.h (REG_NAME): Don't define.
3738         * config/i386/linux64.h (REG_NAME): Don't define.
3739         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3740         Undefine before defining.
3741
3742 2011-04-28  Jan Hubicka  <jh@suse.cz>
3743
3744         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3745         nonconstant_names array.
3746         (estimate_function_body_sizes): Build nonconstant_names array; handle
3747         BUILT_IN_CONSTANT_P.
3748
3749 2011-04-28  Richard Guenther  <rguenther@suse.de>
3750
3751         PR bootstrap/48804
3752         Revert
3753         2011-04-28  Richard Guenther  <rguenther@suse.de>
3754
3755         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3756         as late as possible.
3757
3758 2011-04-28  Richard Guenther  <rguenther@suse.de>
3759
3760         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3761         (debug_constraint): Do it here.
3762         (dump_constraints): And here.
3763         (rewrite_constraints): And here.
3764         (dump_constraint_edge): Remove.
3765         (dump_constraint_graph): Rewrite to produce DOT output.
3766         (solve_constraints): Build succ graph as late as possible.
3767         Dump constraint graphs before and after solving.
3768
3769 2011-04-28  Richard Guenther  <rguenther@suse.de>
3770
3771         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3772         New function split out from ...
3773         (find_func_aliases): ... here.  Call it.
3774         (find_func_aliases_for_call): Likewise.
3775
3776 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3777
3778         * internal-fn.h (internal_fn_name_array): Declare.
3779         (internal_fn_flags_array): Likewise.
3780
3781 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3782
3783         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3784         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3785         Move from sse.md.
3786         (ssemodefsuffix): Remove.
3787         (ssevecmodesuffix): New mode attribute.
3788         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3789         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3790         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3791         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3792         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3793         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3794         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3795         ssemodesuffix mode attribute.
3796         (float splitters): Use ssevecmodesuffix mode attribute.
3797         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3798         (sseinsmode): Rename from avxvecmode.
3799         (avxsizesuffix): Rename from avxmodesuffix.
3800         (sseintvecmode): Rename from avxpermvecmode.
3801         (ssedoublevecmode): Rename from ssedoublesizemode.
3802         (ssehalfvecmode): Rename from avxhalfvecmode.
3803         (ssescalarmode): Rename from avxscalarmode.
3804         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3805         templates for ssemodesuffix mode attribute.
3806         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3807         mode attribute.
3808
3809         Adjust RTX patterns globally for renamed mode attributes.
3810
3811 2011-04-27  Jan Hubcika  <jh@suse.cz>
3812
3813         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3814         * ipa-inline-analysis.c: Include alloc-pool.h.
3815         (edge_predicate_pool): New.
3816         (trye_predicate_p): New function
3817         (false_predicate_p): New function.
3818         (add_clause): Sanity check that false clauses are "optimized";
3819         never add clauses to predicate that is already known to be false.
3820         (and_predicate): Use flase_predicate_p.
3821         (evaulate_predicate): Rename to ...
3822         (evaluate_predicate): ... this one; update all callers; assert
3823         that false is not listed among possible truths.
3824         (dump_predicate): Use true_predicate_p.
3825         (account_size_time): Use false_predicate_p.
3826         (evaulate_conditions_for_edge): Rename to ...
3827         (evaluate_conditions_for_edge) ... this one.
3828         (edge_set_predicate): New function.
3829         (inline_edge_duplication_hook): Duplicate edge predicates.
3830         (inline_edge_removal_hook): Free edge predicates.
3831         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3832         (dump_inline_summary): Update.
3833         (estimate_function_body_sizes): Set edge predicates.
3834         (estimate_calls_size_and_time): Handle predicates.
3835         (estimate_callee_size_and_time): Update.
3836         (remap_predicate): Add toplev_predicate; update comment.
3837         (remap_edge_predicates): New function.
3838         (inline_merge_summary): Compute toplev predicate; update.
3839         (read_predicate): New function.
3840         (read_inline_edge_summary): Use it.
3841         (inline_read_section): Likewise.
3842         (write_predicate): New function.
3843         (write_inline_edge_summary): Use it.
3844         (inline_write_summary): Likewise.
3845         (inline_free_summary): Free alloc pool and edge summary vec.
3846
3847 2011-04-27  Richard Guenther  <rguenther@suse.de>
3848
3849         * tree-ssa-structalias.c (changed_count): Remove.
3850         (changed): Use a bitmap.
3851         (unify_nodes): Adjust.
3852         (do_sd_constraint): Likewise.
3853         (do_ds_constraint): Likewise.
3854         (do_complex_constraint): Likewise.
3855         (solve_graph): Likewise.
3856
3857 2011-04-27  Jan Hubicka  <jh@suse.cz>
3858
3859         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3860
3861 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3862
3863         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3864         (avx_vperm2f128_*_operand): Ditto.
3865         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3866         Use avx_vpermilp_parallel in insn condition.
3867         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3868         Use avx_vperm2f128_parallel in insn condition.
3869
3870 2011-04-27  Richard Guenther  <rguenther@suse.de>
3871
3872         * Makefile.in (tree-ssa-structalias.o): Remove
3873         gt-tree-ssa-structalias.h dependency.
3874         (GTFILES): Remove tree-ssa-structalias.c.
3875         * tree.c (allocate_decl_uid): New function.
3876         (make_node_stat): Use it.
3877         (copy_node_stat): Likewise.
3878         * tree.h (allocate_decl_uid): Declare.
3879         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3880         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3881         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3882         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3883         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3884         (struct heapvar_map): Likewise.
3885         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3886         heapvar_insert): Likewise.
3887         (make_heapvar_for): Rename to ...
3888         (make_heapvar): ... this.  Simplify.
3889         (fake_var_decl_obstack): New global var.
3890         (build_fake_var_decl): New function.
3891         (make_constraint_from_heapvar): Adjust.
3892         (handle_lhs_call): Likewise.
3893         (create_function_info_for): Likewise.
3894         (intra_create_variable_infos): Likewise.
3895         (init_alias_vars): Allocate fake_var_decl_obstack.
3896         (init_alias_heapvars, delete_alias_heapvars): Remove.
3897         (compute_points_to_sets): Do not call init_alias_heapvars.
3898         (ipa_pta_execute): Likewise.
3899         (delete_points_to_sets): Free fake_var_decl_obstack.
3900
3901 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3902
3903         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3904         (si_from_UTItype, si_to_UTItype): New functions.
3905         (__udivmodti4): Use them to implement type-punning.
3906         * config/spu/multi3.c (union qword_TItype): New data type.
3907         (si_from_TItype, si_to_TItype): New functions.
3908         (__multi3): Use them to implement type-punning.
3909
3910 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3911
3912         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3913
3914 2011-04-27  Jan Hubicka  <jh@suse.cz>
3915
3916         * ipa-prop.c (function_insertion_hook_holder): New holder.
3917         (ipa_add_new_function): New function.
3918         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3919         Register/deregister holder.
3920
3921 2011-04-27  Richard Guenther  <rguenther@suse.de>
3922
3923         PR tree-optimization/48772
3924         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3925
3926 2011-04-27  Richard Guenther  <rguenther@suse.de>
3927
3928         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3929         TARGET_MEM_REF handling.
3930
3931 2011-04-27  Nick Clifton  <nickc@redhat.com>
3932
3933         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3934         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3935         (REG_CLASS_NAMES): Likewise.
3936         (REG_CLASS_CONTENTS): Likewise.
3937         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3938         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3939         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3940         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3941         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3942         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3943         duplicate register classes.
3944         (frv_class_likely_spilled_p): Likewise.
3945         (frv_register_move_cost): Likewise.
3946
3947         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3948         end of the regno_reg_class array.
3949
3950 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3951
3952         PR c/48742
3953         * c-typeck.c (build_binary_op): Don't wrap arguments if
3954         int_operands is true.
3955
3956 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3957
3958         PR target/48767
3959         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3960         targetm.calls.must_pass_in_stack for void type.
3961
3962 2011-04-26  Jan Hubicka  <jh@suse.cz>
3963
3964         * cgraphbuild.c (build_cgraph_edges): Update call
3965         of cgraph_create_edge and cgraph_create_indirect_edge.
3966         * cgraph.c (cgraph_create_edge_including_clones,
3967         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3968         cgraph_update_edges_for_call_stmt_node): Do not take nest
3969         argument; do not initialize call_stmt_size/time.
3970         (dump_cgraph_node): Do not dump nest.
3971         (cgraph_clone_edge): Do not take loop_nest argument;
3972         do not propagate it; do not clone call_stmt_size/time.
3973         (cgraph_clone_node): Likewise.
3974         (cgraph_create_virtual_clone): Update.
3975         * cgraph.h (struct cgraph_edge): Remove
3976         call_stmt_size/call_stmt_time/loop_nest.
3977         (cgraph_create_edge, cgraph_create_indirect_edge,
3978         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3979         prototype.
3980         * tree-emutls.c (gen_emutls_addr): Update.
3981         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3982         loop_nest; handle indirect calls, too.
3983         (clone_inlined_nodes): Do not care about updating inline summaries.
3984         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3985         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3986         stream call_stmt_size/call_stmt_time/loop_nest.
3987         * ipa-inline.c (edge_badness): Update.
3988         (ipa_inline): dump summaries after inlining.
3989         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3990         New.
3991         (inline_edge_summary): New function.
3992         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3993         (inline_edge_removal_hook): Handle edge summaries.
3994         (inline_edge_duplication_hook): New hook.
3995         (inline_summary_alloc): Alloc hooks.
3996         (initialize_growth_caches): Do not register removal hooks.
3997         (free_growth_caches); Do not free removal hook.
3998         (dump_inline_edge_summary): New function.
3999         (dump_inline_summary): Use it.
4000         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4001         (inline_update_callee_summaries): New function.
4002         (inline_merge_summary): Use it.
4003         (do_estimate_edge_time, do_estimate_edge_growth): Update.
4004         (read_inline_edge_summary): New function.
4005         (inline_read_section): Use it.
4006         (write_inline_edge_summary): New function.
4007         (inline_write_summary): Use it.
4008         (inline_free_summary): Free edge new holders.
4009         * tree-inline.c (copy_bb): Update.
4010
4011 2011-04-26  Jason Merrill  <jason@redhat.com>
4012
4013         * tree-eh.c (lower_try_finally_switch): Create the label along with
4014         the CASE_LABEL_EXPR.
4015
4016 2011-04-26  David S. Miller  <davem@davemloft.net>
4017             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4018
4019         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4020         * configure: Regenerate.
4021
4022 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4023
4024         PR target/48258
4025         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4026         reduction.
4027         (VEC_reduc): New code iterator and splitters for vector reduction.
4028         (VEC_reduc_name): Ditto.
4029         (VEC_reduc_rtx): Ditto.
4030         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4031         (reduc_<VEC_reduc_name>_v4sf): Ditto.
4032
4033         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4034         support for extracting SF on VSX.
4035
4036         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4037         generating xscvspdp.
4038         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4039         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4040         double add, minimum, maximum vector reduction.
4041         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4042         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4043         optimize double vector reduction.
4044         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4045
4046 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
4047
4048         * config/fr30/fr30.h (inhibit_libc): Don't define.
4049         * config/m32r/m32r-protos.h: Correct comment.
4050         * config/v850/v850.h (GHS_default_section_names,
4051         GHS_current_section_names): Use tree, not union tree_node *.
4052
4053 2011-04-26  Xinliang David Li  <davidxl@google.com>
4054
4055         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4056         * c-family/c-opts.c (c_common_handle_option): Set
4057         warn_maybe_uninitialized.
4058         * opts.c (common_handle_option): Ditto.
4059         * common.opt:  New option.
4060         * tree-ssa.c (warn_uninit): Add one more parameter.
4061         (warn_uninitialized_var): Pass warning code.
4062         * tree-flow.h: Interface change.
4063
4064
4065 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4066
4067         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4068         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4069         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4070
4071 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4072
4073         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4074         * config/mips/mips.opt (mmips-tfile): Remove.
4075
4076         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4077         mips-tdump reference to ...
4078         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
4079         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4080         reference by Tru64 UNIX.
4081
4082 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
4083
4084         PR debug/48768
4085         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4086         is error_mark_node, set value to NULL.
4087
4088         PR tree-optimization/48734
4089         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4090         if return value from maybe_fold_*_comparsions isn't something
4091         the code is prepared to handle.
4092
4093 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
4094
4095         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4096         mode check.
4097         (ext_QIreg_nomode_operands): Remove.
4098         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4099         (*andsi_1): Ditto.
4100         (*andhi_1): Ditto.
4101
4102 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
4103
4104         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4105
4106 2011-04-26  Richard Guenther  <rguenther@suse.de>
4107
4108         * c-typeck.c (build_unary_op): Do not expand array-refs via
4109         pointer arithmetic.  Only adjust qualifiers for function types.
4110
4111 2011-04-26  Richard Guenther  <rguenther@suse.de>
4112
4113         PR middle-end/48694
4114         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4115         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4116         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
4117         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4118
4119 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4120
4121         * doc/extend.texi: Document __underlying_type.
4122
4123 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
4124
4125         * config/rs6000/titan.md (automata_option "progress"): Remove.
4126
4127 2011-04-25  Jeff Law  <law@redhat.com>
4128
4129         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4130
4131 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4132
4133         * system.h (ENUM_BITFIELD): Remove.
4134
4135 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
4136             Eric Botcazou  <ebotcazou@adacore.com>
4137
4138         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4139         for STORE_FLAG_VALUE==-1 case.
4140
4141 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
4142
4143         PR target/43804
4144         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4145         LEGITIMATE_PIC_OPERAND_P.
4146
4147 2011-04-24  Jan Hubicka  <jh@suse.cz>
4148
4149         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4150         WPA hack.
4151         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4152         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4153         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4154         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4155         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4156         Sanity check predicate length.
4157         (remap_predicate): Likewise; sanity check jump functions.
4158         (inline_read_section, inline_write_summary): Sanity check
4159         predicate length.
4160
4161 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4162
4163         PR other/48748
4164         * doc/extend.texi (Type Traits): Document __is_standard_layout,
4165         __is_literal_type, and __is_trivial; update throughout about
4166         possibly cv-qualified void types.
4167
4168 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4169
4170         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4171         testsuite and make it version agnostic.
4172
4173 2011-04-22  Jan Hubicka  <jh@suse.cz>
4174
4175         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4176
4177 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4178
4179         PR c/48685
4180         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4181         to VOID_TYPE even around MODIFY_EXPR.
4182
4183 2011-04-22  Mike Stump  <mikestump@comcast.net>
4184
4185         * gensupport.c (read_md_rtx): Fix typo in comment.
4186         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4187         comment.
4188
4189 2011-04-22  Jan Hubicka  <jh@suse.cz>
4190
4191         * gengtype.c (open_base_files): Add ipa-inline.h include.
4192         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4193         ipa-prop.c; update all uses.
4194         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4195         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4196         merge summary of inlined function into former caller.
4197         * ipa-inline.c (max_benefit): Remove.
4198         (edge_badness): Compensate for removal of benefits.
4199         (update_caller_keys): Use
4200         reset_node_growth_cache/reset_edge_growth_cache.
4201         (update_callee_keys): Likewise.
4202         (update_all_callee_keys): Likewise.
4203         (inline_small_functions): Do not collect max_benefit; do not reset
4204         estimated_growth; call free_growth_caches and initialize_growth_caches.
4205         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4206         struct size_time_entry): New structures.
4207         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4208         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4209         and estimated_growth.
4210         (edge_growth_cache_entry): New structure.
4211         (node_growth_cache, edge_growth_cache): New global vars.
4212         (estimate_growth): Turn into inline.
4213         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4214         initialize_growth_caches, free_growth_caches): Declare.
4215         (estimate_edge_growth): Rewrite.
4216         (estimate_edge_time): Implement as inline cache lookup.
4217         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4218         functions.
4219         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4220         (NUM_CONDITIONS): New constant.
4221         (predicate_conditions): New enum.
4222         (IS_NOT_CONSTANT): New constant.
4223         (edge_removal_hook_holder): New var.
4224         (node_growth_cache, edge_growth_cache): New global vars.
4225         (true_predicate, single_cond_predicate, false_predicate,
4226         not_inlined_predicate, add_condition, add_clause, and_predicates,
4227         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4228         dump_clause, dump_predicate, account_size_time,
4229         evaulate_conditions_for_edge): New functions.
4230         (inline_summary_alloc): Move to heap.
4231         (inline_node_removal_hook): Clear condition and entry vectors.
4232         (inline_edge_removal_hook): New function.
4233         (initialize_growth_caches, free_growth_caches): New function.
4234         (dump_inline_summary): Update.
4235         (edge_execution_predicate): New function.
4236         (will_be_nonconstant_predicate): New function.
4237         (estimate_function_body_sizes): Compute BB and constantness predicates.
4238         (compute_inline_parameters): Do not clear estimated_growth.
4239         (estimate_edge_size_and_time): New function.
4240         (estimate_calls_size_and_time): New function.
4241         (estimate_callee_size_and_time): New function.
4242         (remap_predicate): New function.
4243         (inline_merge_summary): New function.
4244         (do_estimate_edge_time): New function based on...
4245         (estimate_edge_time): ... this one.
4246         (do_estimate_edge_growth): New function.
4247         (do_estimate_growth): New function based on....
4248         (estimate_growth): ... this one.
4249         (inline_analyze_function): Analyze after deciding on jump functions.
4250         (inline_read_section): New function.
4251         (inline_read_summary): Use it.
4252         (inline_write_summary): Write all the new data.
4253         * ipa-prop.c (ipa_get_param_decl_index): Export.
4254         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4255         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4256         Declare.
4257         (ipa_get_lattice): Move here from ipa-cp.c
4258         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4259         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4260         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4261         cgraph_edge_inlinable_p): Remove.
4262         * cgraphunit.c: Include ipainline.h
4263         (cgraph_process_new_functions): Update call of
4264         compute_inline_parameters.
4265
4266 2011-04-22  Richard Guenther  <rguenther@suse.de>
4267
4268         * tree.c (build_int_cst): Properly create canonicalized integer
4269         constants.
4270         (build_int_cst_type): Remove scary comments.
4271
4272 2011-04-22  Xinliang David Li  <davidxl@google.com>
4273
4274         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4275         by default when -Wno-error is not specified.
4276         * opts-global.c (decode_options): Remove call to
4277         control_warning_options.
4278
4279 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4280
4281         PR tree-optimization/48717
4282         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4283         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4284
4285 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4286
4287         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4288         definition where used.
4289
4290 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4291
4292         PR c/48716
4293         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4294         TREE_STATIC variables declared inside of some OpenMP construct.
4295
4296 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4297
4298         PR middle-end/48585
4299         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4300
4301 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4302
4303         PR c/36750
4304         * c-typeck.c (pop_init_level): Do not warn about initializing
4305         with ` = {0}'.
4306
4307 2011-04-22  Alan Modra  <amodra@gmail.com>
4308
4309         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4310         when returning call_cookie.
4311         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4312         pointers, to functions with no more vector args than the current
4313         function, and some non-local calls for ABI_V4.
4314         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4315         sibcall_nonlocal_aix64): Combine to ..
4316         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4317         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4318         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4319         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4320         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4321         operand.
4322         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4323         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4324         sibcall_value_symbolic_64): Delete.
4325
4326 2011-04-21  Xinliang David Li  <davidxl@google.com>
4327
4328         * cgraph.h: Remove pid.
4329         * cgraph.c: Remove pid.
4330         * value-prof.c (init_node_map): New function.
4331         (del_node_map): New function.
4332         (find_func_by_funcdef_no): New function.
4333         (gimple_ic_transform): Call new function.
4334         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4335         * function.c (get_last_funcdef_no): New function.
4336         * function.h (get_last_funcdef_no): New function.
4337         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4338         to libgcov function.
4339         (tree-profiling): Call node map init and delete function.
4340
4341 2011-04-21  Ian Lance Taylor  <iant@google.com>
4342
4343         * godump.c (go_format_type): Use exported Go name for anonymous
4344         field name.
4345
4346 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4347
4348         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4349         Call builtin_function_type_list instead of builtin_function_type.
4350         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4351
4352 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4353
4354         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4355         build_function_type_list instead of build_function_type.
4356         Delete variable `endlink'.
4357
4358 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4359
4360         * config/s390/s390.c (s390_init_builtins): Call
4361         build_function_type_list instead of build_function_type.
4362
4363 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4364
4365         * config/ia64/ia64.c (ia64_init_builtins): Call
4366         build_function_type_list instead of builtin_function_type.
4367
4368 2011-04-21  Easwaran Raman  <eraman@google.com>
4369
4370         * cfgexpand.c (stack_var): Remove OFFSET...
4371         (add_stack_var): ...and its reference here...
4372         (expand_stack_vars): ...and here.
4373         (stack_var_cmp): Sort by descending order of size.
4374         (partition_stack_vars): Change heuristic.
4375         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4376         (dump_stack_var_partition): Add newline after each partition.
4377
4378 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4379             Jeff Law  <law@redhat.com>
4380
4381         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4382         * gengtype.c (matching_file_name_substitute): Likewise.
4383
4384 2011-04-21  Richard Guenther  <rguenther@suse.de>
4385
4386         PR lto/48703
4387         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4388
4389 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4390
4391         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4392
4393 2011-04-21  Richard Guenther  <rguenther@suse.de>
4394
4395         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4396         file name.
4397
4398 2011-04-21  Richard Guenther  <rguenther@suse.de>
4399
4400         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4401         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4402         Use DECL_P, not SSA_VAR_P.
4403         (ptr_derefs_may_alias_p): Likewise.
4404         (ptr_deref_may_alias_ref_p_1): Likewise.
4405         (decl_refs_may_alias_p): Likewise.
4406         (refs_may_alias_p_1): Likewise.
4407         (ref_maybe_used_by_call_p_1): Likewise.
4408         (call_may_clobber_ref_p_1): Likewise.
4409         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4410         are either MEM_REF or TARGET_MEM_REF.
4411         (indirect_refs_may_alias_p): Likewise.
4412         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4413         for MEM_EXPR of indirect calls.
4414
4415 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4416
4417         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4418         (dst_file_info_struct): Remove flen field.
4419         (lookup_filename): Remove code that set flen field.
4420
4421 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4422
4423         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4424
4425 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4426
4427         PR target/48708
4428         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4429         vec_extract and vec_concat for non-SSE4_1 targets.
4430
4431 2011-04-21  Richard Guenther  <rguenther@suse.de>
4432
4433         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4434         return statements.
4435
4436 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4437
4438         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4439         undefine.
4440         (FILE): Don't undefine.
4441
4442 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4443
4444         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4445         struct rtx_def *.
4446         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4447         struct rtx_def *.
4448         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4449         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4450         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4451         rtx_def *.
4452         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4453         definitions where used.
4454         * config/microblaze/microblaze.h (struct microblaze_args): Use
4455         rtx, not struct rtx_def *.
4456         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4457         rtx_def *.
4458         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4459         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4460         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4461         not struct rtx_def *.
4462         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4463         struct rtx_def *.
4464         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4465         rtx_def *.
4466         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4467
4468 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4469
4470         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4471         operand_equal_p to compare DR_BASE_ADDRESSes.
4472         (vect_check_interleaving): Likewise.
4473
4474 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4475
4476         PR target/46329
4477         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4478         for all Neon struct constants.
4479
4480 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4481
4482         * target.def (legitimate_constant_p): New hook.
4483         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4484         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4485         * doc/tm.texi: Regenerate.
4486         * hooks.h (hook_bool_mode_rtx_true): Declare.
4487         * hooks.c (hook_bool_mode_rtx_true): Define.
4488         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4489         * calls.c (precompute_register_parameters): Replace uses of
4490         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4491         (emit_library_call_value_1): Likewise.
4492         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4493         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4494         * ira-costs.c (scan_one_insn): Likewise.
4495         * recog.c (general_operand, immediate_operand): Likewise.
4496         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4497         * reload1.c (init_eliminable_invariants): Likewise.
4498
4499         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4500         mode argument.
4501         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4502         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4503         argument.
4504         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4505         * config/alpha/predicates.md (input_operand): Update call to
4506         alpha_legitimate_constant_p.
4507
4508         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4509         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4510         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4511         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4512         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4513         (arm_legitimate_constant_p): New functions.
4514         (arm_cannot_force_const_mem): Make static.
4515
4516         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4517
4518         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4519         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4520         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4521         instead of bfin_legitimate_constant_p.
4522         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4523         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4524
4525         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4526
4527         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4528
4529         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4530         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4531         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4532         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4533
4534         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4535         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4536         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4537
4538         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4539         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4540         * config/i386/i386.c (legitimate_constant_p): Rename to...
4541         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4542         argument.
4543         (ix86_cannot_force_const_mem): Update accordingly.
4544         (ix86_legitimate_address_p): Likewise.
4545         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4546         * config/i386/i386.md: Update commentary.
4547
4548         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4549         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4550         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4551         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4552
4553         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4554
4555         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4556         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4557         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4558         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4559
4560         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4561         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4562         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4563
4564         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4565         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4566         (m32r_legitimate_constant_p): New function.
4567
4568         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4569         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4570         LEGITIMATE_CONSTANT_P.
4571         (LEGITIMATE_CONSTANT_P): Delete.
4572         * config/m68k/m68k.c (m68k_expand_prologue): Call
4573         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4574         (m68k_legitimate_constant_p): New function.
4575         * config/m68k/m68k.md: Update comments.
4576
4577         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4578         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4579         (mcore_legitimate_constant_p): New function.
4580
4581         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4582         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4583         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4584         Add a mode argument.
4585         (mep_legitimate_address): Update accordingly.
4586         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4587
4588         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4589         Delete.
4590         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4591         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4592         static.  Check OP's mode for VOIDmode.
4593         (microblaze_legitimate_constant_p): New function.
4594         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4595
4596         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4597         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4598         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4599         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4600         * config/mips/predicates.md: Update comments.
4601
4602         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4603         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4604         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4605         (mmix_legitimate_constant_p): Make static, return a bool, and take
4606         a mode argument.
4607         (mmix_print_operand_address): Update accordingly.
4608
4609         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4610         Delete.
4611         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4612         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4613         static.  Add a mode argument.
4614         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4615
4616         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4617
4618         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4619         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4620         (pa_legitimate_constant_p): New function.
4621
4622         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4623
4624         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4625         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4626         (pdp11_legitimate_constant_p): New function.
4627
4628         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4629         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4630         (rs6000_legitimate_constant_p): New function.
4631
4632         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4633         (rx_legitimate_constant_p): ...this.
4634         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4635         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4636         (rx_legitimate_constant_p): ...this.
4637         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4638         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4639
4640         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4641         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4642         * config/s390/s390.c (legitimate_constant_p): Rename to...
4643         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4644         and add a mode argument.
4645         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4646
4647         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4648
4649         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4650         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4651         (sh_legitimate_constant_p): New function.
4652
4653         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4654         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4655         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4656         (legitimate_constant_p): Rename to...
4657         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4658         argument.
4659         (constant_address_p): Update accordingly.
4660
4661         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4662         argument and return a bool.
4663         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4664         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4665         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4666         (spu_rtx_costs): Update accordingly.
4667         * config/spu/predicates.md (vec_imm_operand): Likewise.
4668
4669         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4670
4671         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4672         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4673         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4674
4675         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4676         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4677         * config/vax/vax.c (legitimate_constant_p): Likewise.
4678
4679         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4680         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4681         (xtensa_legitimate_constant_p): New function.
4682
4683 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4684
4685         * target.def (cannot_force_const_mem): Add a mode argument.
4686         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4687         * doc/tm.texi: Regenerate.
4688         * hooks.h (hook_bool_mode_rtx_false): Declare.
4689         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4690         (hook_bool_mode_const_rtx_true): Likewise.
4691         (hook_bool_mode_rtx_false): New function.
4692         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4693         to be non-VOID.  Update call to cannot_force_const_mem.
4694         (find_reloads): Update accordingly.
4695         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4696         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4697         argument.
4698         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4699         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4700         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4701         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4702         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4703         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4704         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4705         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4706         (m68k_cannot_force_const_mem): ...this new function.
4707         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4708         argument.
4709         (mips_const_insns, mips_legitimize_const_move): Update calls.
4710         (mips_secondary_reload_class): Likewise.
4711         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4712         (pa_cannot_force_const_mem): ...this new function.
4713         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4714         (rs6000_cannot_force_const_mem): ...this new function.
4715         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4716         argument.
4717         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4718         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4719         to...
4720         (xtensa_cannot_force_const_mem): ...this new function.
4721
4722 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4723
4724         * config/mips/mips.c (mips16_build_function_stub): Call
4725         build_function_type_list instead of build_function_type.
4726         (mips16_build_call_stub): Likewise.
4727
4728 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4729
4730         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4731         instead of build_function_type.
4732
4733 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4734
4735         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4736         instead of build_function_type.
4737
4738 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4739
4740         PR target/48678
4741         * config/i386/i386.md (insv): Change operand 0 constraint to
4742         "register_operand".  Change operand 1 and 2 constraint to
4743         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4744         * config/i386/sse.md (sse4_1_pinsrb): Export.
4745         (sse2_pinsrw): Ditto.
4746         (sse4_1_pinsrd): Ditto.
4747         (sse4_1_pinsrq): Ditto.
4748         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4749         * config/i386/i386.c (ix86_expand_pinsr): New.
4750
4751 2011-04-20  Easwaran Raman  <eraman@google.com>
4752
4753         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4754         containing union type only with -fstrict-aliasing.
4755
4756 2011-04-20  Jim Meyering  <meyering@redhat.com>
4757
4758         Remove useless if-before-free tests.
4759         * calls.c (expand_call, save_area): Likewise.
4760         * cfgcleanup.c (try_forward_edges): Likewise.
4761         * collect2.c (collect_execute): Likewise.
4762         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4763         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4764         * coverage.c (coverage_checksum_string): Likewise.
4765         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4766         * cselib.c (cselib_init): Likewise.
4767         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4768         (df_set_clean_cfg): Likewise.
4769         * function.c (free_after_compilation): Likewise.
4770         * gcc.c (do_spec_1, main): Likewise.
4771         * gcov.c (create_file_names): Likewise.
4772         * gensupport.c (identify_predicable_attribute): Likewise.
4773         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4774         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4775         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4776         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4777         * ipa-pure-const.c (local_pure_const): Likewise.
4778         * ipa-reference.c (propagate): Likewise.
4779         * ira-costs.c (free_ira_costs): Likewise.
4780         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4781         * matrix-reorg.c (mat_free): Likewise.
4782         * prefix.c (get_key_value): Likewise.
4783         * profile.c (compute_value_histograms): Likewise.
4784         * reload1.c (free_reg_equiv): Likewise.
4785         * sched-deps.c (free_deps): Likewise.
4786         * sel-sched-ir.c (fence_clear): Likewise.
4787         * sese.c (set_rename, if_region_set_false_region): Likewise.
4788         * tree-data-ref.c (free_rdg): Likewise.
4789         * tree-eh.c (lower_try_finally): Likewise.
4790         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4791         * tree-ssa-live.c (delete_var_map): Likewise.
4792         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4793         * tree-ssa-pre.c (phi_trans_add): Likewise.
4794
4795 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4796
4797         PR tree-optimization/48611
4798         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4799         beyond ERT_MUST_NOT_THROW region.
4800
4801 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4802
4803         * config/mips/mips.opt (mfix-24k): New.
4804         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4805         * config/mips/mips.md (length): Increase by 4 for stores if
4806         fixing 24K errata.
4807         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4808         all noreorder if fixing 24K errata.
4809         * doc/invoke.texi: Document mfix-24k.
4810
4811 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4812
4813         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4814         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4815
4816 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4817
4818         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4819         (const_ok_for_op): ... to here.
4820
4821 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4822
4823         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4824         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4825
4826 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4827
4828         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4829
4830 2011-04-20  Richard Guenther  <rguenther@suse.de>
4831
4832         PR tree-optimization/47892
4833         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4834         are if-convertible.
4835
4836 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4837
4838         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4839
4840 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4841
4842         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4843
4844 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4845
4846         PR target/18145
4847
4848         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4849         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4850         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4851         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4852         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4853
4854         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4855         New prototype.
4856
4857         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4858         (avr_asm_named_section, avr_asm_output_aligned_common,
4859         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4860         New functions to update...
4861         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4862         (avr_asm_init_sections): Overwrite section callbacks for
4863         data_section, bss_section.
4864         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4865         from here to...
4866         (avr_file_end): ...here.
4867
4868 2011-04-20  Richard Guenther  <rguenther@suse.de>
4869
4870         PR middle-end/48695
4871         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4872         objects and types here.  Adjust for their offset before comparing.
4873
4874 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4875
4876         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4877         statement per copy.
4878
4879 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4880
4881         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4882         (GIMPLE_H): Include $(INTERNAL_FN_H).
4883         (OBJS-common): Add internal-fn.o.
4884         (internal-fn.o): New rule.
4885         * internal-fn.def: New file.
4886         * internal-fn.h: Likewise.
4887         * internal-fn.c: Likewise.
4888         * gimple.h: Include internal-fn.h.
4889         (GF_CALL_INTERNAL): New gf_mask.
4890         (gimple_statement_call): Put fntype into a union with a new
4891         internal_fn field.
4892         (gimple_build_call_internal): Declare.
4893         (gimple_build_call_internal_vec): Likewise.
4894         (gimple_call_same_target_p): Likewise.
4895         (gimple_call_internal_p): New function.
4896         (gimple_call_internal_fn): Likewise.
4897         (gimple_call_fntype): Return null for internal calls.
4898         (gimple_call_set_fntype): Assert that the function is not internal.
4899         (gimple_call_set_fn): Likewise.
4900         (gimple_call_set_fndecl): Likewise.
4901         (gimple_call_set_internal_fn): New function.
4902         (gimple_call_addr_fndecl): Handle null functions.
4903         (gimple_call_return_type): Likewise null types.
4904         * gimple.c (gimple_build_call_internal_1): New function.
4905         (gimple_build_call_internal): Likewise.
4906         (gimple_build_call_internal_vec): Likewise.
4907         (gimple_call_same_target_p): Likewise.
4908         (gimple_call_flags): Handle calls to internal functions.
4909         (gimple_call_fnspec): New function.
4910         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4911         (gimple_has_side_effects): Handle null functions.
4912         (gimple_rhs_has_side_effects): Likewise.
4913         (gimple_call_copy_skip_args): Handle calls to internal functions.
4914         * cfgexpand.c (expand_call_stmt): Likewise.
4915         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4916         * gimple-fold.c (gimple_fold_call): Handle null functions.
4917         (gimple_fold_stmt_to_constant_1): Don't fold
4918         calls to internal functions.
4919         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4920         functions.
4921         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4922         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4923         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4924         (do_warn_unused_result): Likewise.
4925         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4926         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4927         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4928         the target of a call.
4929         (initialize_hash_element): Update accordingly.
4930         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4931         (iterative_hash_hashable_expr): Handle calls to internal functions.
4932         (print_expr_hash_elt): Likewise.
4933         * tree-ssa-pre.c (can_value_number_call): Likewise.
4934         (eliminate): Handle null functions.
4935         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4936         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4937         (find_func_aliases): Likewise.
4938         * value-prof.c (gimple_ic_transform): Likewise.
4939         (gimple_indirect_call_to_profile): Likewise.
4940         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4941         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4942
4943 2011-04-19  Jan Hubicka  <jh@suse.cz>
4944
4945         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4946         * ipa-inline.c (inline_small_functions): Compute summaries first,
4947         populate heap later.
4948
4949 2011-04-19  Jan Hubicka  <jh@suse.cz>
4950
4951         * cgraph.h (save_inline_function_body): Remove.
4952         * ipa-inline-transform.c: New file, broke out of...
4953         * ipa-inline.c: ... this one; Update toplevel comment.
4954         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4955         make global.
4956         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4957         (cgraph_mark_inline_edge): Rename to inline_call; move to
4958         ipa-inline-transform.c.
4959         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4960         move to ipa-inline-transform.c
4961         (recursive_inlining, inline_small_functions, flatten_function,
4962         ipa_inline, inline_always_inline_functions,
4963         early_inline_small_functions): Update.
4964         (inline_transform): Move to ipa-inline-transform.c.
4965         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4966         Declare.
4967         * Makefile.in (ipa-inline-transform.o): New file.
4968         * cgraphunit.c (save_inline_function_body): Move to
4969         ipa-inline-transform.c
4970
4971 2011-04-19  DJ Delorie  <dj@redhat.com>
4972
4973         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4974         registers if we already know there aren't any.
4975         (m32c_emit_epilogue): Don't emit a barrier here.
4976         (m32c_emit_eh_epilogue): Likewise.
4977         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4978         operands at expand time.
4979         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4980         int" wchar type.
4981         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4982         duplicates.  Provide aliases instead.
4983         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4984         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4985         the compiler.
4986
4987 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4988
4989         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4990         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4991         (general_or_i64_p, sparc_register_move_cost): New function.
4992
4993 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4994
4995         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4996         Add lynx, mipssde.  Sort table.
4997
4998 2011-04-19  Xinliang David Li  <davidxl@google.com>
4999
5000         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5001         not negative.
5002
5003 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
5004
5005         PR target/48678
5006         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5007         is a SUBREG with non-MODE_INT mode inside of it.
5008
5009 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5010
5011         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5012         also according to actual contants.
5013         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5014         (gimple_fold_call): Use it.
5015         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5016
5017 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5018
5019         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5020         non-pointer assignments.
5021
5022 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5023
5024         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5025         account anc_offset and otr_type from the indirect edge info.
5026         * ipa-prop.c (get_ancestor_addr_info): New function.
5027         (compute_complex_ancestor_jump_func): Assignment analysis moved to
5028         get_ancestor_addr_info, call it.
5029         (ipa_note_param_call): Do not initialize information about polymorphic
5030         calls, return the indirect call graph edge.  Remove the last
5031         parameter, adjust all callers.
5032         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5033         parameters.  Initialize polymorphic information in the indirect edge.
5034
5035 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5036
5037         PR lto/48148
5038         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5039         the types if they have different enumeration identifiers.
5040
5041 2011-04-19  Jan Hubicka  <jh@suse.cz>
5042
5043         * cgraph.h (cgraph_optimize_for_size_p): Declare.
5044         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5045         * predict.c (cgraph_optimize_for_size_p): Break out from ...
5046         (optimize_function_for_size_p) ... here.
5047
5048 2011-04-19  Richard Guenther  <rguenther@suse.de>
5049
5050         PR lto/48207
5051         * tree.c (free_lang_data): Do not reset the decl-assembler-name
5052         langhook.
5053
5054 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5055
5056         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5057         if DECL_NO_INLINE_WARNING_P is set on the function.
5058
5059 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
5060
5061         PR fortran/47976
5062         * reload1.c (inc_for_reload): Return void. All callers changed.
5063         (emit_input_reload_insns): Don't try to delete previous output
5064         reloads to a register, or record spill_reg_store for autoincs.
5065
5066 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
5067
5068         * gengtype.h: Updated copyright year.
5069         (struct input_file_st): Add inpisplugin field.
5070         (type_fileloc): New function.
5071         * gengtype.c
5072         (write_typed_struct_alloc_def): Add gcc_assert.
5073         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5074         (write_typed_alloc_defns): Don't output for plugin files.
5075         (input_file_by_name): Clear inpisplugin field.
5076         (main): Set inpisplugin field for plugin files.
5077
5078 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
5079
5080         * gengtype-state.c (string_eq): New.
5081         (read_state): Use string_eq instead of strcmp when creating the
5082         state_ident_tab.
5083
5084 2011-04-19  Wei Guozhi  <carrot@google.com>
5085
5086         PR target/47855
5087         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5088         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5089         linkage.
5090         * config/arm/constraints.md (Uu): New constraint.
5091         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5092
5093 2011-04-19  Tristan Gingold  <gingold@adacore.com>
5094
5095         * config.gcc (-*-*-*vms): Added.
5096         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5097         definitions moved.
5098         * config/vms/vms-ld.c: New file.
5099         * config/vms/vms-ar.c: New file.
5100         * config/vms/t-vmsnative: New file.
5101
5102 2011-04-18  Xinliang David Li  <davidxl@google.com>
5103
5104         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5105
5106 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5107
5108         PR middle-end/48661
5109         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5110         if TREE_TYPE (v) is non-NULL.
5111
5112         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5113         gimple_get_virt_mehtod_for_binfo.
5114         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5115         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5116         callers.
5117         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5118
5119 2011-04-18  Michael Matz  <matz@suse.de>
5120             Steve Ellcey  <sje@cup.hp.com>
5121
5122         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5123         use its mode as source mode if it isn't VOIDmode.
5124
5125 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
5126
5127         * doc/passes.texi: Fill crossref nodes.
5128
5129 2011-04-18  Jim Meyering  <meyering@redhat.com>
5130
5131         Fix doubled-word typos in comments and strings
5132         * config/alpha/vms-unwind.h: s/for for/for/
5133         * config/arm/unwind-arm.h: Likewise.
5134         * config/microblaze/microblaze.c: Likewise.
5135         * config/sh/constraints.md: s/in in/in/
5136         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5137
5138 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
5139
5140         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5141         (AVX_FLOAT_MODE_P): Ditto.
5142         (AVX128_VEC_FLOAT_MODE_P): Ditto.
5143         (AVX256_VEC_FLOAT_MODE_P): Ditto.
5144         (AVX_VEC_FLOAT_MODE_P): Ditto.
5145         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5146         (UNSPEC_MASKSTORE): Ditto.
5147         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5148         Merge from <sse>_movmsk<ssemodesuffix> and
5149         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
5150         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
5151         iterator.
5152         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5153         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5154         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5155
5156 2011-04-18  Jan Hubicka  <jh@suse.cz>
5157
5158         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5159
5160         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5161         (want_inline_function_called_once_p): Break out the logic from
5162         ipa_inline.
5163         (edge_badness): Ensure that profile is not misupdated.
5164         (lookup_recursive_calls): Prioritize by call frequencies.
5165         (inline_small_functions): Move program size estimates here;
5166         actually process whole queue even when unit growth has been
5167         met. (to properly compute inline_failed reasons and for the
5168         case unit size decrease.) Revisit comments on recursive inlining.
5169         (ipa_inline): Remove unit summary code; first inline hot calls
5170         of functions called once, cold calls next.
5171         (order, nnodes): Remove unused variables.
5172         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5173         (GTFILES): Remove ipa-inline.c
5174         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5175
5176 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5177
5178         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5179
5180 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5181             Richard Earnshaw  <rearnsha@arm.com>
5182
5183         * arm.c (neon_builtin_type_bits): Remove.
5184         (typedef enum neon_builtin_mode): New.
5185         (T_MAX): Don't define.
5186         (typedef enum neon_builtin_datum): Remove bits, codes[],
5187         num_vars and base_fcode.  Add mode, code and fcode.
5188         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5189         VAR10): Change accordingly.
5190         (neon_builtin_data[]): Change accordingly
5191         (arm_init_neon_builtins): Change accordingly.
5192         (neon_builtin_compare): Remove.
5193         (locate_neon_builtin_icode): Remove.
5194         (arm_expand_neon_builtin): Change accordingly.
5195
5196         * arm.h (enum arm_builtins): Move to ...
5197         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5198
5199         * arm.c (arm_builtin_decl): Declare.
5200         (TARGET_BUILTIN_DECL): Define.
5201         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5202         (arm_builtin_decls[]): New.
5203         (arm_init_neon_builtins): Store builtin declarations in
5204         arm_builtin_decls[].
5205         (arm_init_tls_builtins): Likewise.
5206         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5207         (arm_builtin_decl): New.
5208
5209 2011-04-18  Richard Guenther  <rguenther@suse.de>
5210
5211         * tree.c (upper_bound_in_type): Build properly canonicalized
5212         INTEGER_CSTs.
5213         (lower_bound_in_type): Likewise.
5214
5215 2011-04-18  Richard Guenther  <rguenther@suse.de>
5216
5217         * gimple.h (gimple_call_addr_fndecl): New function.
5218         (gimple_call_fndecl): Use it.
5219         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5220         for direct calls.
5221         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5222         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5223
5224 2011-04-18  Richard Guenther  <rguenther@suse.de>
5225
5226         PR middle-end/48650
5227         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5228
5229 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5230
5231         PR lto/48492
5232         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5233         DECL_IN_CONSTANT_POOL without RTL.
5234
5235 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5236             Ira Rosen  <ira.rosen@linaro.org>
5237
5238         PR target/48252
5239         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5240         to match neon_vzip/vuzp/vtrn_internal.
5241         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5242         outputs explicitly dependent on both inputs.
5243         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5244
5245 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5246
5247         PR tree-optimization/48616
5248         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5249         whether the shift is by scalar or vector based on whether all SLP
5250         scalar stmts have the same rhs.
5251
5252 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5253
5254         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5255         memory operands.
5256
5257 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5258
5259         PR target/43700
5260         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5261         registers.
5262
5263 2011-04-17  Jan Hubicka  <jh@suse.cz>
5264
5265         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5266         * cgrpahunit.c (cgraph_finalize_function): Do not set
5267         finalized_by_frontend.
5268         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5269         finalized_by_frontend.
5270
5271 2011-04-17  Jan Hubicka  <jh@suse.cz>
5272
5273         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5274         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5275         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5276         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5277         method.
5278         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5279         gimple-fold.c
5280         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5281
5282 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5283
5284         PR lto/48538
5285         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5286         is non-null before accessing it.
5287         (input_cgraph): Remove trailing spaces.
5288
5289 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5290
5291         * params.def (sms-min-sc): New param flag.
5292         * modulo-sched.c (sms_schedule): Use it.
5293         * doc/invoke.texi (sms-min-sc): Document it.
5294
5295 2011-04-17  Jan Hubicka  <jh@suse.cz>
5296
5297         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5298         present, also set gimple_call_set_cannot_inline.
5299         * ipa-inline.c: Update toplevel comment.
5300         (MAX_TIME): Remove.
5301         (cgraph_clone_inlined_nodes): Fix linebreaks.
5302         (cgraph_check_inline_limits): Restructure to ...
5303         (caller_growth_limits): ... this one; be more tolerant
5304         on growth in nested inline chains; add explanatory comment;
5305         fix stack accounting thinko introduced by previous patch.
5306         (cgraph_default_inline_p): Remove.
5307         (report_inline_failed_reason): New function.
5308         (can_inline_edge_p): New function.
5309         (can_early_inline_edge_p): New function.
5310         (leaf_node_p): Move upwards in file.
5311         (want_early_inline_function_p): New function.
5312         (want_inline_small_function_p): New function.
5313         (want_inline_self_recursive_call_p): New function.
5314         (cgraph_edge_badness): Rename to ...
5315         (edge_badness) ... this one; fix linebreaks.
5316         (update_edge_key): Update call of edge_baddness; add
5317         detailed dump about queue updates.
5318         (update_caller_keys): Use can_inline_edge_p and
5319         want_inline_small_function_p.
5320         (cgraph_decide_recursive_inlining): Rename to...
5321         (recursive_inlining): Use can_inline_edge_p and
5322         want_inline_self_recursive_call_p; simplify and remove no longer
5323         valid FIXME.
5324         (cgraph_set_inline_failed): Remove.
5325         (add_new_edges_to_heap): Use can_inline_edge_p and
5326         want_inline_small_function_p.
5327         (cgraph_decide_inlining_of_small_functions): Rename to ...
5328         (inline_small_functions): ... this one; cleanup; use
5329         can/want predicates; cleanup debug ouput; work edges till fibheap
5330         is exhausted and do not stop once unit growth is reached; remove
5331         later loop processing remaining edges.
5332         (cgraph_flatten): Rename to ...
5333         (flatten_function): ... this one; use can_inline_edge_p
5334         and can_early_inline_edge_p predicates.
5335         (cgraph_decide_inlining): Rename to ...
5336         (ipa_inline): ... this one; remove unreachable nodes before
5337         inlining functions called once; simplify the pass.
5338         (cgraph_perform_always_inlining): Rename to ...
5339         (inline_always_inline_functions): ... this one; use
5340         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5341         (cgraph_decide_inlining_incrementally): Rename to ...
5342         (early_inline_small_functions): ... this one; simplify
5343         using new predicates; cleanup; make dumps prettier.
5344         (cgraph_early_inlining): Rename to ...
5345         (early_inliner): newer inline regular functions into always-inlines;
5346         fix updating of call stmt summaries.
5347         (pass_early_inline): Update for new names.
5348         (inline_transform): Fix formating.
5349         (gate_cgraph_decide_inlining): Rename to ...
5350         (pass_ipa_inline): ... this one.
5351         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5352         * ipa-inline-analysis.c (dump_inline_summary): Update.
5353         (compute_inline_parameters): Do not compute disregard_inline_limits;
5354         look for mismatching arguments.
5355         (estimate_growth): Fix handlig of non-trivial self recursion.
5356         (inline_read_summary): Do not read info->disregard_inline_limits.
5357         (inline_write_summary): Do not write info->disregard_inline_limits.
5358         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5359         and move all checks into can_inline_edge_p predicate; re-enable code
5360         comparing optimization levels.
5361         (expand_call_inline): Do not test inline_forbidden_into_p.
5362         * Makefile.in (ipa-inline.o): Update arguments.
5363
5364 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5365
5366         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5367
5368 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5369
5370         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5371
5372 2011-04-17  Michael Matz  <matz@suse.de>
5373
5374         PR tree-optimization/48622
5375         PR lto/48645
5376         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5377         in same order as they're written.
5378
5379 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5380
5381         * config/pa/predicates.md: Reorganize and simplify predicates.
5382         Eliminate duplicate code checks.
5383         (arith_operand): Rename to arith14_operand
5384         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5385         * config/pa/pa.md: Use renamed operands.
5386         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5387         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5388         arith11_operand, adddi3_operand, indexed_memory_operand,
5389         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5390         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5391         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5392         move_dest_operand, move_src_operand, prefetch_cc_operand,
5393         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5394         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5395         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5396         div_operand, int5_operand, movb_comparison_operator,
5397         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5398         arith_double_operand, ireg_operand, lhs_lshift_operand,
5399         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5400         integer_store_memory_operand): Likewise.
5401         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5402         (integer_store_memory_operand, read_only_operand,
5403         function_label_operand, borx_reg_operand,
5404         non_hard_reg_operand): Likewise.
5405         (eq_neq_comparison_operator): Delete unused operator.
5406         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5407         function_label_operand.
5408         (emit_move_sequence): Likewise.
5409
5410 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5411
5412         * config/i386/sse.md (sseunpackmode): New mode attribute.
5413         (ssepackmode): Ditto.
5414         (vec_pack_trunc_<mode>): Macroize expander from
5415         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5416         (vec_unpacks_lo_<mode>): Macroize expander from
5417         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5418         (vec_unpacks_hi_<mode>): Macroize expander from
5419         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5420         (vec_unpacku_lo_<mode>): Macroize expander from
5421         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5422         (vec_unpacku_hi_<mode>): Macroize expander from
5423         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5424         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5425         ix86_expand_sse4_unpack.
5426         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5427
5428 2011-04-16  Jan Hubicka  <jh@suse.cz>
5429
5430         * cgraphbuild.c: Include ipa-inline.h.
5431         (reset_inline_failed): Use initialize_inline_failed.
5432         * cgraph.c: Include ipa-inline.h.
5433         (cgraph_create_node_1): Do not initialize estimated_growth.
5434         (initialize_inline_failed): More to ipa-inline-analysis.c
5435         (dump_cgraph_node): Do not dump inline flags.
5436         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5437         and disregard_inline_limits flags.
5438         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5439         time, size, estimated_growth.
5440         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5441         Update.
5442         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5443         DECL_DISREGARD_INLINE_LIMITS.
5444         (cgraph_analyze_function): Do not initialize
5445         node->local.disregard_inline_limits.
5446         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5447         inlinable, versionable and disregard_inline_limits.
5448         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5449         cgraph_check_inline_limits, cgraph_default_inline_p,
5450         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5451         add_new_edges_to_heap): Update.
5452         (cgraph_decide_inlining_of_small_function): Update; set
5453         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5454         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5455         cgraph_decide_inlining_incrementally): Update.
5456         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5457         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5458         time, size and estimated_growth parameters.
5459         (estimate_edge_growth): Update.
5460         (initialize_inline_failed): Declare.
5461         * ipa-split.c: Include ipa-inline.h
5462         (execute_split_functions): Update.
5463         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5464         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5465         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5466         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5467         estimated_growth to INT_MIN.
5468         (inline_node_duplication_hook): Likewise.
5469         (dump_inline_summary): Dump new fields.
5470         (compute_inline_parameters): Update.
5471         (estimate_edge_time, estimate_time_after_inlining,
5472         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5473         inline_write_summary):
5474         (initialize_inline_failed): Move here from cgraph.c.
5475         * tree-sra.c: Include ipa-inline.h.
5476         (ipa_sra_preliminary_function_checks): Update.
5477         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5478         ipa-inline.h.
5479
5480 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5481
5482         * config/i386/sse.md (V16): New mode iterator.
5483         (VI1, VI8): Ditto.
5484         (AVXMODEQI, AVXMODEDI): Remove.
5485         (sse2, sse3): New mode attribute.
5486         (mov<mode>): Use V16 mode iterator.
5487         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5488         (push<mode>1): Use V16 mode iterator.
5489         (movmisalign<mode>): Ditto.
5490         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5491         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5492         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5493         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5494         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5495         avx_movdqu<avxmodesuffix>.
5496         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5497         *avx_movdqu<avxmodesuffix>.
5498         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5499         avx_lddqu<avxmodesuffix>.
5500         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5501         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5502         avx_movnt<AVXMODEDI:mode>.
5503         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5504         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5505
5506 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5507
5508         PR target/48629
5509         * haifa-sched.c (prune_ready_list, schedule_block): Use
5510         sched_pressure_p rather than flag_sched_pressure.
5511
5512 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5513
5514         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5515         cgraph_get_node instead of cgraph_get_create_node.
5516
5517 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5518
5519         * cfgexpand.c (expand_debug_expr): Use
5520         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5521
5522 2011-04-15  Michael Matz  <matz@suse.de>
5523
5524         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5525         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5526         * function.c (gimplify_parameters): Ditto.
5527         * gimplify.c (gimplify_vla_decl): Ditto.
5528
5529         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5530         (gimple_call_set_alloca_for_var): New inline function.
5531         (gimple_call_alloca_for_var_p): Ditto.
5532         * gimple.c (gimple_build_call_from_tree): Remember
5533         CALL_ALLOCA_FOR_VAR_P state.
5534         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5535
5536         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5537         calls if they were for VLA objects.
5538
5539 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5540
5541         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5542         of ADR_EXPRs.
5543
5544 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5545
5546         PR middle-end/48601
5547         * tree-emutls.c (lower_emutls_function_body): Call
5548         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5549         result is non-NULL.
5550
5551 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5552
5553         * c-decl.c (detect_field_duplicates): Call
5554         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5555
5556 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5557
5558         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5559         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5560         * ipa-pure-const.c (check_stmt): Call it.
5561         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5562
5563 2011-04-15  Richard Guenther  <rguenther@suse.de>
5564
5565         PR tree-optimization/48290
5566         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5567         Properly decide inhibiting propagation based on the valueized
5568         operand.  Do loop-closed SSA form preserving here ...
5569         (init_copy_prop): ... not here.
5570
5571 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         PR target/48612
5574         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5575         (*ieee_smax<mode>3): Likewise.
5576
5577 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5578
5579         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5580         Replace match_operand with match_dup for the third operand in
5581         these expanders.
5582
5583 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5584
5585         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5586         to track processing of conditionals.  Update all callers.
5587         (try_combine, simplify_if_then_else): Update.
5588
5589 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5590
5591         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5592         -fsched-pressure.
5593
5594 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5595
5596         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5597         instead of match_operand for operand 3.
5598
5599 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5600
5601         * recog.h (insn_operand_data): Add an "allows_mem" field.
5602         * genoutput.c (output_operand_data): Initialize it.
5603         * optabs.c (maybe_legitimize_operand_same_code): New function.
5604         (maybe_legitimize_operand): Use it when matching the original
5605         op->value.
5606
5607 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5608
5609         * gimplify.c: Fix issues in comments throughout.
5610         (voidify_wrapper_expr): Fix long line.
5611         (build_stack_save_restore): Likewise.
5612         (gimplify_loop_expr): Likewise.
5613         (gimplify_compound_lval): Likewise.
5614         (gimplify_init_ctor_eval): Likewise.
5615         (gimplify_modify_expr_rhs): Likewise.
5616         (omp_notice_threadprivate_variable): Likewise.
5617
5618 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5619
5620         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5621         original one if this is not a builtin function.
5622
5623 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5624
5625         PR target/48605
5626         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5627         offset it as needed based on top 2 bits in operands[3], change
5628         MEM mode to SFmode and mask those 2 bits away from operands[3].
5629
5630 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5631
5632         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5633         change from objc_declare_protocols() to objc_declare_protocol().
5634
5635 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5636
5637         * config/i386/sse.md (sse4_1): New mode attribute.
5638         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5639         avx_blend<ssemodesuffix><avxmodesuffix> and
5640         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5641         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5642         avx_blendv<ssemodesuffix><avxmodesuffix> and
5643         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5644         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5645         avx_dp<ssemodesuffix><avxmodesuffix> and
5646         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5647         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5648         (sse4_1_packusdw): Merge with *avx_packusdw.
5649         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5650         (sse4_1_pblendw): Merge with *avx_pblendw.
5651         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5652         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5653         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5654         VF mode iterator.
5655         (sse4_1_round<ssescalarmodesuffix>): Merge with
5656         *avx_round<ssescalarmodesuffix>.
5657         (aesenc): Merge with *avx_aesenc.
5658         (aesenclast): Merge with *avx_aesenclast.
5659         (aesdec): Merge with *avx_aesdec.
5660         (aesdeclast): Merge with *avx_aesdeclast.
5661         (pclmulqdq): Merge with *pclmulqdq.
5662         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5663         New predicate.
5664         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5665
5666 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5667
5668         PR middle-end/48608
5669         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5670         (align_local_variable): This.  Update DECL_ALIGN.
5671         (add_stack_var): Updated.
5672         (expand_one_stack_var): Likewise.
5673
5674 2011-04-14  Richard Guenther  <rguenther@suse.de>
5675
5676         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5677         Remove.
5678         (dse_initialize_block_local_data, dse_leave_block,
5679         record_voperand_set, get_stmt_uid): Likewise.
5680         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5681         (dse_optimize_stmt): Remove voperand set handling code.
5682         Simplify and improve to handle any kind of killing stmt.
5683         (dse_record_phi): Remove.
5684         (dse_enter_block): Simplify.
5685         (tree_ssa_dse): Likewise.
5686         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5687
5688 2011-04-14  Jan Hubicka  <jh@suse.cz>
5689
5690         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5691         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5692         (cgraph_local_info): Remove inline_summary.
5693         * ipa-cp.c: Include ipa-inline.h.
5694         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5695         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5696         accesor.
5697         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5698         (input_overwrite_node): Do not set inline summary.
5699         (input_node): Do not stream inline summary.
5700         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5701         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5702         growth; we do not have inline parameters computed for that anyway.
5703         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5704         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5705         (inline_summary_t): New type and VECtor.
5706         (debug_inline_summary, dump_inline_summaries): Declare.
5707         (inline_summary): Use VOCtor.
5708         (estimate_edge_growth): Kill hack computing call stmt size directly.
5709         * lto-section-in.c (lto_section_name): Add inline section.
5710         * ipa-inline-analysis.c: Include lto-streamer.h
5711         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5712         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5713         (inline_summary_vec): Define.
5714         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5715         dump_inline_summaries): New functions.
5716         (estimate_function_body_sizes): Properly compute size/time of outgoing
5717         calls.
5718         (compute_inline_parameters): Alloc inline_summary; do not compute
5719         size/time of incomming calls.
5720         (estimate_edge_time): Avoid missing time summary hack.
5721         (inline_read_summary): Read inline summary info.
5722         (inline_write_summary): Write inline summary info.
5723         (inline_free_summary): Free all hooks and inline summary vector.
5724         * lto-streamer.h: Add LTO_section_inline_summary section.
5725         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5726         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5727
5728 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5729
5730         * tree-vectorizer.h (vect_strided_store_supported): Add a
5731         HOST_WIDE_INT argument.
5732         (vect_strided_load_supported): Likewise.
5733         (vect_permute_store_chain): Return void.
5734         (vect_transform_strided_load): Likewise.
5735         (vect_permute_load_chain): Delete.
5736         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5737         count argument.  Check that the count is a power of two.
5738         (vect_strided_load_supported): Likewise.
5739         (vect_permute_store_chain): Return void.  Update after above changes.
5740         Assert that the access is supported.
5741         (vect_permute_load_chain): Likewise.
5742         (vect_transform_strided_load): Return void.
5743         * tree-vect-stmts.c (vectorizable_store): Update calls after
5744         above interface changes.
5745         (vectorizable_load): Likewise.
5746         (vect_analyze_stmt): Don't check for strided powers of two here.
5747
5748 2011-04-14  Richard Guenther  <rguenther@suse.de>
5749
5750         PR tree-optimization/48590
5751         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5752         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5753         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5754         BUILT_IN_STACK_SAVE.
5755         * tree-ssa-dce.c (propagate_necessity): Handle
5756         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5757
5758 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5759
5760         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5761         objc_declare_class.
5762
5763 2011-04-14  Richard Guenther  <rguenther@suse.de>
5764
5765         * tree.h (get_object_alignment_1): Declare.
5766         * builtins.c (get_object_alignment_1): Split out worker from ...
5767         (get_object_alignment): ... here.
5768         * fold-const.c (get_pointer_modulus_and_residue): Use
5769         get_object_alignment_1.
5770
5771 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5772
5773         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5774         type parameter.
5775         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5776         parameter.  Generalise code to handle arrays as well as vectors.
5777         (vect_setup_realignment): Update accordingly.
5778         * tree-vect-stmts.c (vectorizable_store): Likewise.
5779         (vectorizable_load): Likewise.
5780
5781 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5782
5783         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5784         within the per-copy loop.
5785
5786 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5787
5788         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5789         in the dump file.
5790
5791 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5792
5793         * doc/options.texi (Negative): Explicitly mention that the
5794         Negative chain must be circular.
5795
5796 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5797
5798         * function.h (block_chainon): Declare.
5799         * function.c (block_chainon): Define.
5800
5801 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5802             Eric Weddington  <eric.weddington@atmel.com>
5803             Georg-Johann Lay  <avr@gjlay.de>
5804
5805         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5806         New Includes
5807         (avr_init_builtins, avr_expand_builtin,
5808         avr_expand_delay_cycles, avr_expand_unop_builtin,
5809         avr_expand_binop_builtin ): New functions.
5810         (avr_builtin_id): New enum
5811         (struct avr_builtin_description): New struct
5812         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5813         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5814
5815         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5816         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5817         UNSPECV_DELAY_CYCLES): new enumeration values
5818         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5819         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5820         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5821         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5822         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5823         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5824         "fmulsu"): New insns
5825
5826         * config/avr/avr-c.c: fix line endings
5827         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5828         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5829         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5830         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5831         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5832
5833         * doc/extend.texi (AVR Built-in Functions): New node
5834         (Target Builtins): Add documentation of AVR
5835         built-in functions.
5836
5837 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5838
5839         PR target/44643
5840         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5841         alone. Error if non-const data has attribute progmem.
5842
5843 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5844
5845         * tree.h (struct tree_constructor): Include tree_typed instead of
5846         tree_common.
5847         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5848         TS_TYPED instead of TS_COMMON.
5849
5850 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5851
5852         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5853         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5854         (sse2_psadbw): Merge with *avx_psadbw.
5855         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5856         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5857         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5858         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5859         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5860         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5861         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5862         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5863         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5864         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5865         (ssse3_palignrti): Merge with *avx_palignrti.
5866
5867 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5868
5869         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5870         * tree-ssanames.c (fini_ssanames): VEC_free it.
5871         (make_ssa_name_fn): Update for VECness of free_ssanames.
5872         (release_ssa_name, release_dead_ssa_names): Likewise.
5873         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5874         tree_common.
5875         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5876         TS_TYPED instead of TS_COMMON.
5877
5878 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5879
5880         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5881         statistics_counter_event.
5882         * tree-ssa-copyrename.c (stats): Define.
5883         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5884         statistics_counter_event.
5885         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5886         (bswap_stats, widen_mul_stats): Define.
5887         (insert_reciprocals): Increment rdivs_inserted.
5888         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5889         rfuncs_inserted.  Add calls to statistics_counter_event.
5890         (execute_cse_sincos_1): Increment inserted.
5891         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5892         statistics_counter_event.
5893         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5894         of bswap_stats.  Add calls to statistics_counter_event.
5895         (convert_mult_to_widen): Increment widen_mults_inserted.
5896         (convert_plusminus_to_widen): Increment maccs_inserted.
5897         (convert_mult_to_fma): Increment fmas_inserted.
5898         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5899         calls to statistics_counter_event.
5900
5901 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5902
5903         PR rtl-optimization/48455
5904         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5905         `temp_costs->mem_cost'.
5906
5907 2011-04-13  Jan Hubicka  <jh@suse.cz>
5908
5909         * ipa-inline.h: New file.
5910         * ipa-inline-analysis.c: New file. Broken out of ...
5911         * ipa-inline.c: ... this file; update toplevel comment;
5912         include ipa-inline.h
5913         (inline_summary): Move to ipa-inline.h
5914         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5915         ipa-inline-analysis.c.
5916         (cgraph_estimate_time_after_inlining): Rename to
5917         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5918         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5919         to estimate_edge_growth.
5920         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5921         rename to estimate_size_after_inlining.
5922         (cgraph_mark_inline_edge): Update for new naming convention.
5923         (cgraph_check_inline_limits): Likewise.
5924         (cgraph_edge_badness): Likewise.
5925         (cgraph_decide_recursive_inlining): Likewise.
5926         (cgraph_decide_inlining_of_small_functions): Likewise.
5927         (cgraph_decide_inlining_incrementally): Likewise.
5928         (cgraph_estimate_growth): Rename to estimate_growth; move to
5929         ipa-inline-analysis.c.
5930         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5931         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5932         (compute_inline_parameters): Likewise.
5933         (compute_inline_parameters_for_current): Likewise.
5934         (pass_inline_parameters): Likewise.
5935         (inline_indirect_intraprocedural_analysis): Likewise.
5936         (analyze_function): Rename to inline_analyze_function; likewise.
5937         (add_new_function): Move to ipa-inline-analysis.c.
5938         (inline_generate_summary): Likewise.
5939         (inline_read_summary): Likewise.
5940         (inline_write_summary): Likewise.
5941         * Makefile.in (ipa-inline-analysis.c): New file.
5942
5943 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5944
5945         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5946         * configure: Regenerate.
5947
5948 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5949
5950         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5951         instead of tree_common.
5952         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5953         Likewise.
5954         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5955         TS_TYPED rather than TS_COMMON.
5956         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5957
5958 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5959
5960         PR target/45263
5961         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5962         r20 around calls of __tablejump_elpm__
5963
5964 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5965
5966         PR middle-end/48591
5967         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5968         NULL.
5969         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5970
5971 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5972
5973         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5974         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5975         (cfi_vec): New typedef.
5976         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5977         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5978         (cie_cfi_vec): New static variable.
5979         (cie_cfi_head): Delete.
5980         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5981         declaration changed. Use vector rather than list operations.
5982         (new_cfi): Don't initialize the dw_cfi_next field.
5983         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5984         rather than list operations.
5985         (lookup_cfa): Use vector rather than list operations.
5986         (output_cfis): New argument upto. Accept a cfi_vec rather than
5987         a dw_cfi_ref list head as argument. All callers changed.
5988         Iterate over the vector using upto as a maximum index.
5989         (output_all_cfis): New static function.
5990         (output_fde): Use vector rather than list operations. Use the
5991         new upto argument for output_cfis rather than manipulating a
5992         list.
5993         (dwarf2out_begin_prologue): Change initializations to match
5994         new struct members.
5995         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5996         from the vector length rather than searching for the end of a list.
5997         Use output_all_cfis.
5998         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5999
6000 2011-04-13  Nick Clifton  <nickc@redhat.com>
6001
6002         * config/rx/rx.md (movmemsi): Do not use this pattern when
6003         volatile pointers are involved.
6004
6005 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6006
6007         * config/i386/sse.md (pinsrbits): Remove.
6008         (sse2_packsswb): Merge with *avx_packsswb.
6009         (sse2_packssdw): Merge with *avx_packssdw.
6010         (sse2_packuswb): Merge with *avx_packuswb.
6011         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6012         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6013         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6014         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6015         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6016         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6017         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6018         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6019         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6020         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6021         (sse2_loadld): Merge with *avx_loadld.
6022         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6023         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6024         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6025         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6026         (vec_concatv2di): Merge with *vec_concatv2di_avx.
6027
6028 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
6029
6030         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6031         calling TREE_CHAIN.
6032         * print-tree.c (print_node): Likewise.
6033         * tree-inline.c (copy_tree_r): Likewise.
6034         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6035         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6036         instead of TS_COMMON.
6037         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6038         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6039         (copy_node_stat): Zero TREE_CHAIN only if necessary.
6040         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6041         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6042         ...and these...
6043         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6044         * tree.h: ...here.
6045         (TREE_CHAIN): Check for a TS_COMMON structure.
6046         (TREE_TYPE): Check for a TS_TYPED structure.
6047
6048 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
6049
6050         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6051         cgraph_get_create_node instead of cgraph_node.
6052
6053 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6054
6055         * c-parser.c (c_parser_initelt): Updated call to
6056         objc_build_message_expr.
6057         (c_parser_postfix_expression): Likewise.
6058
6059 2011-04-12  Kai Tietz  <ktietz@redhat.com>
6060
6061         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6062         MASK_MS_BITFIELD_LAYOUT bit.
6063
6064 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6065
6066         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6067         assert it is always true.
6068         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6069         moves.
6070
6071 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6072
6073         * c-parser.c (c_lex_one_token): Rewritten conditional used when
6074         compiling Objective-C to be more efficient.
6075
6076 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
6077
6078         * opts-common.c (decode_cmdline_options_to_array): Remove variable
6079         argv_copied.
6080
6081 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6082
6083         * recog.h, genoutput.c, optabs.c: Revert last patch.
6084
6085 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6086
6087         PR target/48090
6088         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6089
6090 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6091
6092         * recog.h (insn_operand_data): Add an "allows_mem" field.
6093         * genoutput.c (output_operand_data): Initialize it.
6094         * optabs.c (maybe_legitimize_operand_same_code): New function.
6095         (maybe_legitimize_operand): Use it when matching the original
6096         op->value.
6097
6098 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6099
6100         * genpreds.c (process_define_predicate): Move most processing
6101         to gensupport.c.  Continue to validate the expression.
6102         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6103         (process_define_predicate): Move processing to gensupport.c.
6104         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6105         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6106         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
6107         argument.
6108         (valid_predicate_name_p): New function, split out from old
6109         genpreds.c:process_define_predicate.
6110         (process_define_predicate): New function, combining code from
6111         old genpreds.c and genrecog.c functions.
6112         (process_rtx): Call it for DEFINE_PREDICATE and
6113         DEFINE_SPECIAL_PREDICATE.
6114
6115 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6116
6117         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6118         size of a '%A' memory reference.
6119         (T_DREG, T_QREG): New neon_builtin_type_bits.
6120         (arm_init_neon_builtins): Assert that the load and store operands
6121         are neon_struct_operands.
6122         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6123         (NEON_ARG_MEMORY): New builtin_arg.
6124         (neon_dereference_pointer): New function.
6125         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6126         Handle NEON_ARG_MEMORY.
6127         (arm_expand_neon_builtin): Update after above interface changes.
6128         Use NEON_ARG_MEMORY for loads and stores.
6129         * config/arm/predicates.md (neon_struct_operand): New predicate.
6130         * config/arm/iterators.md (V_two_elem): Tweak formatting.
6131         (V_three_elem): Use BLKmode for accesses that have no associated mode.
6132         (V_four_elem): Tweak formatting.
6133         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6134         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6135         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6136         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6137         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6138         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6139         (neon_vst4<mode>): Replace pointer operand with a memory operand.
6140         Use %A in the output template.
6141         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6142         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6143         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6144         the width of the memory access.  Remove post-increment.
6145         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6146
6147 2011-04-12  Nick Clifton  <nickc@redhat.com>
6148
6149         * config/v850/v850.c (expand_prologue): Do not use the CALLT
6150         instruction for interrupt handlers if the target is the basic V850
6151         architecture.
6152         (expand_epilogue): Likewise.
6153
6154 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6155
6156         PR rtl-optimization/48549
6157         * combine.c (propagate_for_debug): Also stop after BB_END of
6158         this_basic_block.  Process LAST and just stop processing after it.
6159         (combine_instructions): If last_combined_insn has been deleted,
6160         set last_combined_insn to its PREV_INSN.
6161
6162 2011-04-12  Richard Guenther  <rguenther@suse.de>
6163
6164         PR tree-optimization/46076
6165         * gimple.h (struct gimple_statement_call): Add fntype field.
6166         (gimple_call_fntype): Adjust.
6167         (gimple_call_set_fntype): New function.
6168         * gimple.c (gimple_build_call_1): Set the call function type.
6169         * gimplify.c (gimplify_call_expr): Preserve the function
6170         type the frontend used for the call.
6171         (gimplify_modify_expr): Likewise.
6172         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6173         function type.
6174         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6175         function type.
6176         * tree-ssa.c (useless_type_conversion_p): Function pointer
6177         conversions are useless.
6178
6179 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6180
6181         * cgraph.h (cgraph_node): Remove function declaration.
6182         (cgraph_create_node): Declare.
6183         (cgraph_get_create_node): Likewise.
6184         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6185         Updated all callers.
6186         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6187         the decl does not already exist.  Call cgraph_get_create_node instead
6188         of cgraph_node.
6189         (cgraph_get_create_node): New function.
6190         (cgraph_same_body_alias): Update comment.
6191         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6192         assert it does not return NULL.
6193         (cgraph_update_edges_for_call_stmt): Likewise.
6194         (cgraph_clone_edge): Likewise.
6195         (cgraph_create_virtual_clone): Likewise.
6196         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6197         instead of cgraph_node.
6198         (cgraph_add_new_function): Call cgraph_create_node or
6199         cgraph_get_create_node instead of cgraph_node.
6200         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6201         instead of cgraph_node.
6202         (record_eh_tables): Likewise.
6203         (mark_address): Likewise.
6204         (mark_load): Likewise.
6205         (build_cgraph_edges): Call cgraph_get_create_node instead
6206         of cgraph_node.
6207         (rebuild_cgraph_edges): Likewise.
6208         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6209         instead of cgraph_node.
6210         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6211         cgraph_node.
6212         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6213         cgraph_create_node instead of cgraph_node.
6214         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6215         of cgraph_node.
6216         * lto-cgraph.c (input_node): Likewise.
6217         * lto-streamer-in.c (input_function): Likewise.
6218         * varasm.c (mark_decl_referenced): Likewise.
6219         (assemble_alias): Likewise.
6220
6221 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6222
6223         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6224         instead of cgraph_node and assert it does not return NULL.
6225         * lto-streamer-in.c (lto_read_body): Likewise.
6226         * omp-low.c (new_omp_context): Likewise.
6227         (create_task_copyfn): Likewise.
6228         * tree-emutls.c (lower_emutls_function_body): Likewise.
6229         * matrix-reorg.c (transform_allocation_sites): Likewise.
6230
6231 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6232
6233         PR c/48552
6234         * c-typeck.c (build_asm_expr): Error out on attempts to use
6235         void type outputs or inputs for constraints that allow reg or
6236         don't allow memory.
6237
6238 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6239             Richard Earnshaw  <rearnsha@arm.com>
6240
6241         PR target/48250
6242         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6243         to use sign-magnitude offsets. Reject unsupported unaligned
6244         cases. Add detailed description in comments.
6245         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6246         condition from TARGET_32BIT to TARGET_ARM.
6247
6248 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6249
6250         * tree.h (struct typed_tree): New.
6251         (struct tree_common): Include it instead of tree_base.
6252         (TREE_TYPE): Update for new location of type field.
6253         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6254         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6255         (union tree_node): Add typed field.
6256         * treestruct.def (TS_TYPED): New.
6257         * lto-streamer.c (check_handled_ts_structures): Handle it.
6258         * tree.c (MARK_TS_TYPED): New macro.
6259         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6260
6261 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6262
6263         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6264         (force_nonfallthru): Do not alter the loop nest if no basic block
6265         was created.
6266
6267 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6268
6269         * config/i386/sse.md (VI): New mode iterator.
6270         (SSEMODEI): Remove.
6271         (AVX256MODEI): Ditto.
6272         (AVXMODEF4P): Ditto.
6273         (avxvecpsmode): Ditto.
6274         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6275         (sse2_andnot<mode>3): New expander.
6276         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6277         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6278         (<any_logic:code><mode>3): Use VI mode iterator.
6279         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6280         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6281         (*andnottf3): Handle AVX three-operand constraints.
6282         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6283
6284 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6285             Robert Millan  <rmh@gnu.org>
6286
6287         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6288         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6289         GNU_USER_DYNAMIC_LINKER64): Define.
6290         (REG_NAME): Don't undefine.
6291         (MD_UNWIND_SUPPORT): Undefine.
6292         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6293         (REG_NAME): Don't undefine.
6294         (MD_UNWIND_SUPPORT): Undefine.
6295         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6296
6297 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6298
6299         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6300         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6301
6302 2011-04-11  Xinliang David Li  <davidxl@google.com>
6303
6304         * value-profile.c (check_ic_target): New function.
6305         (gimple_ic_transform): Sanity check indirect call target.
6306         * gimple-low.c (gimple_check_call_args): Interface change.
6307         (gimple_check_call_matching_types): New function.
6308         * tree-inline.c (tree_can_inline_p): Call new function.
6309
6310 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6311
6312         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6313         tree-pretty-print.h & realmpfr.h.
6314
6315 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6316
6317         PR middle-end/48464
6318         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6319         (setup_allocno_and_important_classes): Ditto.
6320
6321 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6322
6323         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6324         GNU_USER_DYNAMIC_LINKER.
6325         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6326         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6327         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6328         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6329         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6330         GNU_USER_TARGET_OS_CPP_BUILTINS.
6331         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6332         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6333         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6334         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6335         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6336         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6337         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6338         GNU_USER_TARGET_OS_CPP_BUILTINS.
6339         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6340         GNU_USER_DYNAMIC_LINKER.
6341         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6342         GNU_USER_TARGET_OS_CPP_BUILTINS.
6343         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6344         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6345         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6346         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6347         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6348         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6349         GNU_USER_DYNAMIC_LINKER64): Remove.
6350         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6351         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6352         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6353         GNU_USER_DYNAMIC_LINKER.
6354         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6355         GNU_USER_TARGET_OS_CPP_BUILTINS.
6356         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6357         GNU_USER_TARGET_OS_CPP_BUILTINS.
6358         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6359         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6360         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6361         GNU_USER_TARGET_OS_CPP_BUILTINS.
6362         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6363         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6364         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6365         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6366         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6367         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6368         GNU_USER_DYNAMIC_LINKER.
6369         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6370         GNU_USER_TARGET_OS_CPP_BUILTINS.
6371         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6372         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6373         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6374         GNU_USER_DYNAMIC_LINKER.
6375         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6376         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6377         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6378         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6379         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6380         GNU_USER_DYNAMIC_LINKER.
6381         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6382         GNU_USER_DYNAMIC_LINKERN32.
6383         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6384         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6385         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6386         GNU_USER_DYNAMIC_LINKER32.
6387         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6388         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6389         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6390         GNU_USER_DYNAMIC_LINKER.
6391         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6392         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6393         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6394         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6395         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6396         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6397         GNU_USER_DYNAMIC_LINKER32.
6398         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6399         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6400         GNU_USER_DYNAMIC_LINKER.
6401         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6402         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6403         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6404         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6405         GNU_USER_DYNAMIC_LINKER64.
6406         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6407         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6408         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6409         GNU_USER_DYNAMIC_LINKER.
6410         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6411         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6412         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6413         GNU_USER_DYNAMIC_LINKER.
6414         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6415         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6416         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6417         GNU_USER_DYNAMIC_LINKER32.
6418         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6419         GNU_USER_DYNAMIC_LINKER64.
6420         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6421         GNU_USER_DYNAMIC_LINKER64.
6422         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6423         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6424         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6425         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6426         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6427
6428 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6429
6430         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6431         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6432         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6433         GNU_USER_DYNAMIC_LINKER.
6434         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6435         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6436         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6437         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6438         GNU_USER_DYNAMIC_LINKER64.
6439         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6440         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6441         GNU_USER_LINK_EMULATION.
6442         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6443         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6444         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6445         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6446         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6447         CPP_SPEC, CC1_SPEC): Remove.
6448         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6449         (GNU_USER_DYNAMIC_LINKER): Define.
6450         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6451         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6452         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6453         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6454         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6455         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6456         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6457         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6458         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6459         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6460         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6461         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6462         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6463         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6464         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6465         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6466         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6467         GNU_USER_DYNAMIC_LINKER.
6468         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6469         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6470         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6471         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6472         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6473         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6474         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6475         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6476         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6477         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6478
6479 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6480
6481         PR target/9601
6482         PR target/11772
6483         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6484         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6485         comment.
6486         (ix86_is_msabi_thiscall): Removed.
6487         (ix86_is_type_thiscall): Likewise.
6488         (ix86_get_callcvt): New function.
6489         (ix86_comp_type_attributes): Simplify check.
6490         (ix86_function_regparm): Use ix86_get_callcvt for calling
6491         convention attribute checks.
6492         (ix86_return_pops_args): Likewise.
6493         (ix86_static_chain): Likewise.
6494         (x86_this_parameter): Likewise.
6495         (x86_output_mi_thunk): Likewise.
6496         (ix86_function_type_abi): Optimize check for types without attributes.
6497         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6498         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6499         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6500         by flag-values.
6501         (IX86_BASE_CALLCVT): Helper macro.
6502         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6503         Use ix86_get_callcvt for calling convention attribute checks and avoid
6504         symbol-decoration for stdcall in TARGET_RTD case.
6505         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6506         Likewise.
6507         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6508         for declaration.
6509
6510 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6511
6512         * config/i386/sse.md (VI_128): New mode iterator.
6513         (VI12_128): Rename from SSEMODE12.
6514         (VI14_128): Rename from SSEMODE14.
6515         (VI124_128): New mode iterator.
6516         (VI24_128): Rename from SSEMODE248.
6517         (VI248_128): Rename from SSEMODE248.
6518         (SSEMODE124C8): Remove.
6519         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6520         (*sse2_<plusminus_insn><mode>3): Merge with
6521         *avx_<plusminus_insn><mode>3.
6522         (*mulv8hi3): Merge with *avx_mulv8hi3.
6523         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6524         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6525         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6526         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6527         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6528         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6529         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6530         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6531         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6532         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6533         (*<smaxmin:code>v8hi3): Ditto.
6534         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6535         (*<smaxmin:code>v16qi3): Ditto.
6536         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6537         (*sse2_eq<mode>3): Ditto.
6538         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6539         (*sse2_gt<mode>3): Ditto.
6540         (vcondv2di): Split out of vcond<mode>.
6541         (vconduv2di): Split out of vcondu<mode>.
6542
6543 2011-04-11  Richard Guenther  <rguenther@suse.de>
6544
6545         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6546         before calling tree_low_cst.
6547
6548 2011-04-11  Richard Guenther  <rguenther@suse.de>
6549
6550         * stor-layout.c (layout_type): Compute all array index size operations
6551         in the original type.
6552         (initialize_sizetypes): Add comment.
6553         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6554
6555 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6556
6557         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6558
6559 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6560
6561         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6562         of cgraph_node, handle NULL return value.
6563         (cgraph_global_info): Likewise.
6564         (cgraph_rtl_info): Likewise.
6565         * tree-inline.c (estimate_num_insns): Likewise.
6566         * gimplify.c (unshare_body): Likewise.
6567         (unvisit_body): Likewise.
6568         (gimplify_body): Likewise.
6569         * predict.c (optimize_function_for_size_p): Likewise.
6570         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6571         (call_may_clobber_ref_p_1): Likewise.
6572         * varasm.c (function_section_1): Likewise.
6573         (assemble_start_function): Likewise.
6574
6575 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6576
6577         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6578         of cgraph_node.
6579         * final.c (rest_of_clean_state): Likewise.
6580         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6581         * passes.c (pass_init_dump_file): Likewise.
6582         (execute_all_ipa_transforms): Likewise.
6583         (function_called_by_processed_nodes_p): Likewise.
6584         * predict.c (maybe_hot_frequency_p): Likewise.
6585         (probably_never_executed_bb_p): Likewise.
6586         (compute_function_frequency): Likewise.
6587         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6588         (unnest_nesting_tree_1): Likewise.
6589         (lower_nested_functions): Likewise.
6590         * tree-optimize.c (execute_fixup_cfg): Likewise.
6591         (tree_rest_of_compilation): Likewise.
6592         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6593         * tree-sra.c (ipa_early_sra): Likewise.
6594         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6595         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6596         * ipa.c (record_cdtor_fn): Likewise.
6597         * ipa-inline.c (cgraph_early_inlining): Likewise.
6598         (compute_inline_parameters_for_current): Likewise.
6599         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6600         * ipa-pure-const.c (local_pure_const): Likewise.
6601         * ipa-split.c (split_function): Likewise.
6602         (execute_split_functions): Likewise.
6603         * cgraphbuild.c (build_cgraph_edges): Likewise.
6604         (rebuild_cgraph_edges): Likewise.
6605         (cgraph_rebuild_references): Likewise.
6606         (remove_cgraph_callee_edges): Likewise.
6607         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6608         (verify_cgraph_node): Likewise.
6609         (cgraph_analyze_functions): Likewise.
6610         (cgraph_preserve_function_body_p): Likewise.
6611         (save_inline_function_body): Likewise.
6612         (save_inline_function_body): Likewise.
6613         * tree-inline.c (copy_bb): Likewise.
6614         (optimize_inline_calls): Likewise.
6615
6616 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6617
6618         PR tree-optimization/48195
6619         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6620         ipa_check_create_edge_args.
6621         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6622         ipa_check_create_edge_args.
6623         * ipa-inline.c (inline_generate_summary): Do not call
6624         ipa_check_create_node_params and ipa_check_create_edge_args.
6625         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6626         ipa_check_create_edge_args.
6627
6628 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6629
6630         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6631         instead of loop.
6632         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6633         * function.c (record_hard_reg_sets): Likewise.
6634         * ira.c (compute_regs_asm_clobbered): Likewise.
6635         * sched-deps.c (sched_analyze_1): Likewise.
6636         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6637
6638 2011-04-09  Xinliang David Li  <davidxl@google.com>
6639
6640         PR tree-optimization/PR48484
6641         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6642         has_valid_pred lazily
6643
6644 2011-04-09  Duncan Sands  <baldrick@free.fr>
6645
6646         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6647
6648 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6649
6650         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6651         cost of I0 to zero at the end, if any.
6652
6653 2011-04-08  Xinliang David Li  <davidxl@google.com>
6654
6655         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6656         to insane profile data.
6657
6658 2011-04-08  Xinliang David Li  <davidxl@google.com>
6659
6660         * ipa-cp.c (ipcp_update_profiling): Correct
6661          negative scale factor due to insane profile data.
6662
6663 2011-04-08  Xinliang David Li  <davidxl@google.com>
6664
6665         * final.c (dump_basic_block_info): New function.
6666         (final): Dump basic block.
6667         (final_scan_insn): Remove old dump.
6668
6669 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6670
6671         PR target/47829
6672         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6673         crtbegin/crtend.
6674
6675 2011-04-08  Michael Matz  <matz@suse.de>
6676
6677         PR middle-end/48389
6678         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6679         functions.
6680         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6681         * rtl.h (rebuild_jump_labels_chain): Declare.
6682         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6683         insns inserted on edges.
6684
6685 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6686
6687         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6688         * config/arm/arm-arches.def: New.
6689         * config/arm/arm-opts.h: New.
6690         * config/arm/genopt.sh: New.
6691         * config/arm/arm-tables.opt: New (generated).
6692         * config/arm/arm.c (arm_handle_option, arm_target_help,
6693         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6694         (all_architectures): Get most table contents from arm-arches.def.
6695         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6696         arm_selected_tune here.
6697         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6698         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6699         (march=, mcpu=, mtune=): Use Enum and Var.
6700         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6701         (arm.o): Update dependencies.
6702
6703 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6704
6705         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6706         of header_file.
6707         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6708         (write_typed_alloc_defns): Likewise.
6709         (main): Calls write_typed_alloc_defns with output_header.
6710
6711 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6712
6713         PR inline-asm/48435
6714         * ira-color.c (setup_profitable_hard_regs): Add comments.
6715         Don't take prohibited hard regs into account.
6716         (setup_conflict_profitable_regs): Rename to
6717         get_conflict_profitable_regs.
6718         (check_hard_reg_p): Check prohibited hard regs.
6719
6720 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6721
6722         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6723         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6724         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6725
6726 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6727
6728         PR target/48366
6729         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6730         move from floating point to shift amount register.
6731         (emit_move_sequence): Remove secondary reload support for floating
6732         point to shift amount amount register copies.
6733         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6734         amount register copies.
6735         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6736         register, return false if mode isn't a scalar integer mode.
6737         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6738
6739 2011-04-08  Richard Guenther  <rguenther@suse.de>
6740
6741         * gimple.c (gimple_call_flags): Remove kludge.
6742
6743 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6744
6745         * sel-sched.c (sel_region_init): Move call to
6746         sel_setup_region_sched_flags after setup_current_loop_nest.
6747
6748 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6749
6750         PR rtl-optimization/48272
6751         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6752         init_insn_reg_pressure_info.  Adjust a caller.
6753         * sched-int.h (init_insn_reg_pressure_info): Declare.
6754         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6755         when sched-pressure is enabled.
6756
6757 2011-04-08  Richard Guenther  <rguenther@suse.de>
6758
6759         * gimple.c (gimple_set_modified): Do not queue calls to
6760         MODIFIED_NORETURN_CALLS here ...
6761         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6762
6763 2011-04-08  Richard Guenther  <rguenther@suse.de>
6764
6765         PR lto/48467
6766         * toplev.c (lang_dependent_init): Do not open asm_out_file
6767         in WPA mode, nor perform debug machinery initialization.
6768         (finalize): Do not unlink asm_out_file in WPA mode.
6769
6770 2011-04-08  Richard Guenther  <rguenther@suse.de>
6771
6772         * gimple.h (gimple_call_fntype): New function.
6773         (gimple_call_return_type): Use it.
6774         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6775         * gimple-low.c (gimple_check_call_args): Likewise.
6776         * gimple.c (gimple_call_flags): Likewise.
6777         (gimple_call_arg_flags): Likewise.
6778         (gimple_call_return_flags): Likewise.
6779         * tree-cfg.c (verify_gimple_call): Likewise.
6780         (do_warn_unused_result): Likewise.
6781         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6782         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6783
6784 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6785
6786         PR rtl-optimization/48235
6787         * sel-sched.c (code_motion_process_successors): Recompute the last
6788         insn in basic block if control flow changed.
6789         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6790         Update condition for ilist_remove.
6791
6792 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6793
6794         PR rtl-optimization/48302
6795         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6796         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6797         it to record added preheader blocks.
6798         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6799         on to sel_add_loop_preheaders.
6800         (sel_region_init): Move call to setup_current_loop_nest after
6801         sel_init_bbs.
6802
6803 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6804
6805         PR target/48273
6806         * cfgloop.h (loop_has_exit_edges): New helper.
6807         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6808         non-clonable.
6809         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6810         that have no exit edges.
6811
6812 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6813
6814         PR rtl-optimization/48442
6815         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6816         all callers.  Adjust assert.
6817
6818 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6819
6820         PR tree-optimization/48377
6821         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6822         is_packed to true even for types with smaller TYPE_ALIGN than
6823         TYPE_SIZE.
6824
6825 2011-04-08  Richard Guenther  <rguenther@suse.de>
6826
6827         PR bootstrap/48513
6828         * doc/tm.texi: Re-generate.
6829
6830 2011-04-08  Wei Guozhi  <carrot@google.com>
6831
6832         PR target/47855
6833         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6834         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6835         * config/arm/arm.md (*push_multi): Change the length computation to
6836         call a C function.
6837
6838 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6839
6840         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6841         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6842         * doc/tm.texi: Regenerate.
6843         * system.h (ASM_OUTPUT_BSS): Poison.
6844         * varasm.c (asm_output_bss): Remove function.
6845         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6846
6847         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6848         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6849         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6850         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6851         Likewise.
6852         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6853         Likewise.
6854         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6855         Likewise.
6856         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6857
6858 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6859
6860         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6861         EnumValue lines.
6862
6863 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6864
6865         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6866         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6867         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6868         OPT_mcpu32.
6869         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6870         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6871         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6872         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6873         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6874         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6875         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6876         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6877         options.  Don't map other m68k options manually.  Don't handle
6878         old-style options as canonical.
6879         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6880         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6881
6882 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6883
6884         * basic-block.h (force_nonfallthru): Move to...
6885         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6886         (force_nonfallthru): ...here.
6887         * cfghooks.c (force_nonfallthru): New function.
6888         * cfgrtl.c (force_nonfallthru): Rename into...
6889         (rtl_force_nonfallthru): ...this.
6890         (commit_one_edge_insertion): Do not set AUX field.
6891         (commit_edge_insertions): Do not discover new basic blocks.
6892         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6893         (cfg_layout_rtl_cfg_hooks): Likewise.
6894         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6895         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6896         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6897
6898 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6899
6900         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6901         Remove macros.
6902
6903 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6904
6905         * config/i386/sse.md: Update copyright year.
6906         (avxcvtvecmode): Remove.
6907         (sse_movhlps): Merge with *avx_movhlps.
6908         (sse_movlhps): Merge with *avx_movlhps.
6909         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6910         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6911         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6912         (sse_loadhps): Merge with *avx_loadhps.
6913         (sse_storelps): Merge with *avx_storelps.
6914         (sse_loadlps): Merge with *avx_loadlps.
6915         (sse_movss): Merge with *avx_movss.
6916         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6917         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6918         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6919         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6920         (vec_set<mode>_0): Ditto.
6921         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6922         (sse4_1_insertps): Merge with *avx_insertps.
6923         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6924         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6925         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6926         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6927         (sse2_storehpd): Merge with *avx_storehpd.
6928         (sse2_loadhpd): Merge with *avx_loadhpd.
6929         (sse2_loadlpd): Merge with *avx_loadlpd.
6930         (sse2_movsd): Merge with *avx_movsd.
6931         (*vec_concatv2df): Merge with *vec_concatv2df.
6932
6933 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6934
6935         PR debug/48343
6936         * combine.c (combine_instructions): Add last_combined_insn,
6937         update it if insn is after it, pass it to all try_combine calls.
6938         (try_combine): Add last_combined_insn parameter, pass it instead of
6939         i3 to propagate_for_debug.
6940
6941 2011-04-07  Nick Clifton  <nickc@redhat.com>
6942
6943         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6944         to handle MDR <-> data register transfers.
6945         (movhi_internal): Likewise.
6946
6947 2011-04-07  Alan Modra  <amodra@gmail.com>
6948
6949         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6950         previous stack info.
6951
6952 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6953
6954         PR target/43920
6955         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6956         flow_find_cross_jump.  Swap variables to implement backward replacement.
6957         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6958
6959 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6960
6961         PR target/43920
6962         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6963         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6964         and bb2.
6965         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6966         src1 or src2.  Redirect edges to the last basic block.  Update
6967         frequency and count on multiple basic blocks in case of fallthru.
6968
6969 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6970
6971         PR target/43920
6972         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6973         function.
6974         (old_insns_match_p): Change return type.  Replace return false/true
6975         with return dir_none/dir_both.  Use can_replace_by.
6976         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6977         direction from dir_p.  Register replacement direction in dir, last_dir
6978         and afterlast_dir.  Handle new return type of old_insns_match_p using
6979         merge_dir.  Return replacement direction in dir_p.
6980         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6981         return type of old_insns_match_p.
6982         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6983         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6984         flow_find_cross_jump.
6985         * basic-block.h (enum replace_direction): New type.
6986         (flow_find_cross_jump): Add parameter to declaration.
6987
6988 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6989
6990         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6991         (AVXMODEDCVTPS2DQ): Ditto.
6992         (VEC_FLOAT_MODE): Ditto.
6993         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6994         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6995         (<any_logic:code><mode>3): Use VF mode iterator.
6996         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6997         Use VF mode iterator.
6998         (copysign<mode>3): Use VF mode iterator.
6999         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
7000         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7001         (*<any_logic:code><MODEF:mode>3): Merge with
7002         *avx_<any_logic:code><MODEF:mode>3.
7003         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7004         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7005         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7006         (avx_cvtdq2ps<avxmodesuffix>): Remove.
7007         (sse2_cvtdq2ps): Use %v modifier.
7008         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7009         (avx_cvtps2dq<avxmodesuffix>): Remove.
7010         (sse2_cvtps2dq): Use %v modifier.
7011         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7012         (avx_cvttps2dq<avxmodesuffix>): Remove.
7013         (sse2_cvttps2dq): Use %v modifier.
7014         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7015         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7016         (sse2_cvtsd2siq): Fix insn template.
7017         (sse2_cvtsd2siq_2): Ditto.
7018         (sse2_cvttsd2siq): Ditto.
7019         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7020         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7021
7022 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7023
7024         * gcov-io.c: Use GCC Runtime Library Exception.
7025
7026 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
7027
7028         PR debug/48466
7029         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7030         as base_reg whatever register reg has been eliminated to, instead
7031         of hardcoding STACK_POINTER_REGNUM.
7032
7033 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7034
7035         * doc/tm.texi.in: Document C target hooks as separate from general
7036         target hooks.
7037         * doc/tm.texi: Regenerate.
7038         * genhooks.c (struct hook_desc): Add docname field.
7039         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
7040         docname field.
7041         (hook_array): Include c-target.def.
7042         (emit_documentation): Use docname field in output.
7043         (emit_init_macros): Take docname argument.  Only emit definitions
7044         for hooks matching docname.
7045         (main): Expect additional arguments in all cases.  Pass argument
7046         to emit_init_macros.
7047         * target.def: Move initial macro definitions and comments to
7048         target-hooks-macros.h.
7049         (gcc_targetcm): Move to c-family/c-target.def.
7050         * target.h (targetcm): Move declaration to c-family/c-target.h.
7051         * targhooks.c (default_handle_c_option): Move to
7052         c-family/c-opts.c.
7053         * targhooks.h (default_handle_c_option): Move declaration to
7054         c-family/c-common.h.
7055         * target-hooks-macros.h: New file.
7056         * config.gcc (target_has_targetcm): Define and use to add to
7057         c_target_objs and cxx_target_objs.
7058         * config/default-c.c: New file.
7059         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7060         of target.h and target-def.h.
7061         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7062         (darwin_objc_construct_string, darwin_cfstring_ref_p,
7063         darwin_check_cfstring_format_arg): Make static.
7064         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7065         TARGET_STRING_OBJECT_REF_TYPE_P,
7066         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7067         * config/darwin-protos.h (darwin_objc_construct_string,
7068         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7069         declare.
7070         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7071         TARGET_STRING_OBJECT_REF_TYPE_P,
7072         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7073         * config/t-darwin (darwin-c.o): Update dependencies.
7074         * system.h (TARGET_HAS_TARGETCM): Poison.
7075         * Makefile.in (TARGET_H): Update.
7076         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7077         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7078         (default-c.o): New target.
7079         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7080         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7081         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
7082         c-target.def.
7083         (build/genhooks.o): Update dependencies.
7084
7085 2011-04-06  Richard Guenther  <rguenther@suse.de>
7086
7087         * ipa-inline.c (enum inlining_mode): Remove.
7088         (cgraph_flatten): Use some other token.
7089         (cgraph_edge_early_inlinable_p): New function, split out from ...
7090         (cgraph_perform_always_inlining): New function, split out from ...
7091         (cgraph_decide_inlining_incrementally): ... here.
7092         (cgraph_mark_inline_edge): Adjust.
7093         (cgraph_early_inlining): Re-structure.
7094         (pass_early_inline): Require SSA form.
7095
7096 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
7097             Julian Brown  <julian@codesourcery.com>
7098             Mark Shinwell  <shinwell@codesourcery.com>
7099
7100         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7101         LO_REGS only for Thumb-1.
7102         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7103         be used in short instructions when optimising for size on Thumb-2.
7104
7105 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7106
7107         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7108         associated with user returns to be preserved.
7109
7110 2011-04-06  Tristan Gingold  <gingold@adacore.com>
7111
7112         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7113         symbol_queue_size, DBXOUT_DECR_NESTING,
7114         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7115         if XCOFF_DEBUGGING_INFO.
7116
7117 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7118
7119         * config/i386/i386.md (attribute isa): New.
7120         (attribute enabled): New.
7121         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7122         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7123         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7124         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7125         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7126         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7127         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7128         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7129
7130         * config/i386/sse.md (VF): New mode iterator.
7131         (VF1): Ditto.
7132         (VF2): Ditto.
7133         (VF_128): Ditto.
7134         (SSEMODEF4): Remove.
7135         (attribute sse): Handle V8SF and V4DF modes.
7136         (<absneg:code><mode>2): Use VF mode iterator.
7137         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
7138         mode iterator.
7139         (<plusminus_insn><mode>3): Use VF mode iterator.
7140         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7141         Use VF mode iterator.
7142         (<sse>_vm<plusminus_insn><mode>3): Merge with
7143         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
7144         (mul<mode>3): Use VF mode iterator.
7145         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
7146         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
7147         mode iterator.
7148         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7149         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7150         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
7151         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
7152         mode iterator.
7153         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7154         Use VF1 mode iterator.
7155         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7156         (sqrt<VF2:mode>2): New expander.
7157         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7158         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7159         and sqrtv2df2.  Use VF mode iterator.
7160         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
7161         mode iterator.
7162         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7163         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7164         Use VF1 mode iterator.
7165         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7166         (<smaxmin:code><mode>3): Use VF mode iterator.
7167         (*<smaxmin:code><mode>3_finite): Merge with
7168         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
7169         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7170         (<sse>_vm<smaxmin:code><mode>2): Merge with
7171         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7172         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7173         mode iterator.
7174         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7175         mode iterator.
7176         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7177         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7178         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7179         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7180         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7181         VF mode iterator.
7182         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7183         Use VF_128 mode iterator.
7184         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7185         mode iterator.
7186         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7187         VF_128 mode iterator.
7188         (vcond<mode>): Use VF mode iterator.
7189         * config/i386/predicates.md (sse_comparison_operator): Merge with
7190         avx_comparison_float_operator.  Do not declare as special_predicate.
7191         * config/i386/i386.c (struct builtin_description): Update for renamed
7192         compare patterns.
7193         (ix86_expand_args_builtin): Ditto.
7194         (ix86_expand_sse_compare_mask): Ditto.
7195
7196 2011-04-06  Richard Guenther  <rguenther@suse.de>
7197
7198         * tree-inline.c (estimate_num_insns): For calls simply account
7199         for all passed arguments and a used return value.
7200
7201 2011-04-06  Richard Guenther  <rguenther@suse.de>
7202
7203         PR tree-optimization/47663
7204         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7205         call_stmt_time fields.
7206         (cgraph_edge_inlinable_p): Declare.
7207         (cgraph_edge_recursive_p): New inline function.
7208         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7209         (cgraph_clone_edge): Copy it.
7210         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7211         Account for call stmt time.
7212         (cgraph_estimate_time_after_inlining): Take edge argument.
7213         (cgraph_estimate_edge_growth): Account call stmt size.
7214         (cgraph_estimate_size_after_inlining): Take edge argument.
7215         (cgraph_mark_inline_edge): Adjust.
7216         (cgraph_check_inline_limits): Likewise.
7217         (cgraph_recursive_inlining_p): Remove.
7218         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7219         (cgraph_decide_recursive_inlining): Take edge argument and
7220         adjust.
7221         (cgraph_decide_inlining_of_small_functions): Do not avoid
7222         diags for recursive inlining here.
7223         (cgraph_flatten): Adjust.
7224         (cgraph_decide_inlining_incrementally): Likewise.
7225         (estimate_function_body_sizes): Remove call cost handling.
7226         (compute_inline_parameters): Initialize caller edge call costs.
7227         (cgraph_estimate_edge_growth): New function.
7228         (cgraph_estimate_growth): Use it.
7229         (cgraph_edge_badness): Likewise.
7230         (cgraph_check_inline_limits): Take an edge argument.
7231         (cgraph_decide_inlining_of_small_functions): Adjust.
7232         (cgraph_decide_inlining): Likewise.
7233         * tree-inline.c (estimate_num_insns): Only account for call
7234         return value if it is used.
7235         (expand_call_inline): Avoid diagnostics on recursive inline
7236         functions here.
7237         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7238         (input_edge): Input edge call costs.
7239
7240 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7241
7242         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7243
7244 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7245
7246         * doc/invoke.texi (Spec Files): Fix typo.
7247
7248 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7249
7250         * profile.c (branch_prob): Move declaration of local variable.  Remove
7251         obsolete ??? comment.  Expand the location explicitly instead of using
7252         the LOCATION_FILE and LOCATION_LINE macros.
7253
7254 2011-04-06  Wei Guozhi  <carrot@google.com>
7255
7256         PR target/47855
7257         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7258         (arm_cond_branch): Likewise.
7259         (arm_cond_branch_reversed): Likewise.
7260         (arm_jump): Likewise.
7261         (push_multi): Likewise.
7262         * config/arm/constraints.md (Py): New constraint.
7263
7264 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7265
7266         PR bootstrap/48471
7267         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7268         Move these...
7269         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7270         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7271         #ifdef DBX_DEBUGGING_INFO.
7272
7273 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7274
7275         PR bootstrap/48403
7276         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7277         if old and new states differ.
7278
7279 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7280
7281         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7282         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7283         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7284         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7285         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7286         mcfv4e): Use Alias.
7287         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7288         ColdFire options to -mcpu= options.
7289
7290 2011-04-05  Jeff Law  <law@redhat.com>
7291
7292         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7293         check if BB is a successor of LOOP->header and return
7294         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7295
7296 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7297
7298         * cprop.c (struct reg_use): Remove.
7299         (reg_use_table): Make an array of RTX.
7300         (find_used_regs, constprop_register, local_cprop_pass,
7301         bypass_block): Simplify users of reg_use_table.
7302         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7303         on one of the uses found by find_used_regs.
7304
7305 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7306
7307         PR bootstrap/48469
7308         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7309         declaration.
7310
7311 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7312
7313         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7314         as an rtx.
7315         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7316
7317 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7318
7319         PR middle-end/48441
7320         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7321
7322 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7323
7324         * combine.c: Include obstack.h.
7325         (struct insn_link): Define.
7326         (uid_log_links): Adjust type.
7327         (FOR_EACH_LOG_LINK): New macro.
7328         (insn_link_obstack): Declare.
7329         (alloc_insn_link): Define.
7330         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7331         type of link variables.
7332         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7333         (try_combine, record_promoted_values, distribute_notes): Likewise.
7334         (distribute_links): Likewise.  Tweak prototype.
7335         (clear_log_links): Delete.
7336         (adjust_for_new_dest): Call alloc_insn_link.
7337         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7338
7339 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7340
7341         * gcse.c (modify_mem_list): Convert to an array of VECs.
7342         (canon_modify_mem_list, compute_transp): Tweak formatting.
7343         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7344         (load_killed_in_block_p): Likewise.
7345         (record_last_mem_set_info): Likewise.
7346         (clear_modify_mem_tables): Likewise.
7347
7348 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7349
7350         PR middle-end/48461
7351         * function.c (emit_use_return_register_into_block): Only define if
7352         HAVE_return.
7353
7354 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7355
7356         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7357
7358 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7359
7360         * config/rx/rx-opts.h: New.
7361         * config/rx/rx.c (rx_cpu_type): Remove.
7362         (rx_handle_option): Don't assert that global structures are in
7363         use.  Access variables via opts pointer.  Defer most handling of
7364         OPT_mint_register_.  Use error_at.
7365         (rx_option_override): Handle deferred OPT_mint_register_ here.
7366         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7367         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7368         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7369         (rx_cpu_types): New Enum and EnumValue entries.
7370         (mint-register=): Use Defer and use Var accordingly.
7371
7372 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7373
7374         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7375         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7376         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7377         Move these...
7378         (debug_free_queue, debug_nesting, symbol_queue_index):
7379         ...and these...
7380         * dbxout.c: ...to here.  Make static.
7381
7382 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7383
7384         * gcse.c (modify_pair): Define.  Define a VEC of it.
7385         (canon_modify_mem_list): Convert to an array of VECs.
7386         (free_insn_expr_list_list): Delete.
7387         (clear_modify_mem_tables): Call VEC_free instead.
7388         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7389         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7390         (canon_list_insert, compute_transp): Likewise.
7391
7392 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7393
7394         PR target/43920
7395         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7396         for size.
7397
7398 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7399
7400         PR target/43920
7401         * function.c (emit_use_return_register_into_block): New function.
7402         (thread_prologue_and_epilogue_insns): Use
7403         emit_use_return_register_into_block.
7404
7405 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7406
7407         PR target/43920
7408         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7409         insn.
7410
7411 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7412
7413         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7414
7415 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7416
7417         * config/arm/arm.md (define_constants for unspec): Replace with
7418         define_c_enum.
7419         (define_constants for unspecv): Replace with define_c_enum.
7420         * config/arm/neon.md (define_constants for unspec): Replace with
7421         define_c_enum.
7422
7423 2011-04-04  Richard Henderson  <rth@redhat.com>
7424
7425         PR bootstrap/48400
7426         * dwarf2out.c (output_line_info): Always emit line info from
7427         at least one section.
7428         (dwarf2out_init): Create text_section_line_info here ...
7429         (set_cur_line_info_table): ... not here.
7430
7431 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7432
7433         PR target/48380
7434         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7435         not called.
7436
7437         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7438
7439 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7440
7441         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7442         (expr_equiv_p): Remove.
7443         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7444         (hash_scan_set): Update call to insert_set_in_table.
7445         (dump_hash_table): Dump <dest, src> pair.
7446         (lookup_set): Simplify.  Lookup <dest, src> pair.
7447         (compute_transp): Remove, fold heavily simplified code into...
7448         (compute_local_properties): ...here.  Expect COMP and TRANSP
7449         unconditionally.
7450         (find_avail_set): Take set directly from struct expr.
7451         (find_bypass-set): Likewise.
7452         (bypass_block): Likewise.
7453         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7454
7455         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7456         checks on form of COND from find_implicit_sets to here.
7457         (find_implicit_sets): Cleanup control flow. Split critical edges
7458         if it exposes implicit sets.  Allocate/resize implicit_sets as
7459         necessary.
7460         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7461         changed something.  Run df_analyze after find_implicit_sets if any
7462         edges were split.  Do not allocate implicit_sets here.
7463
7464         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7465         (gcse_obstack): Renamed to cprop_obstack.
7466         (GNEW, GNEWVEC, GNEWVAR): Remove.
7467         (gmalloc): Remove.
7468         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7469         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7470         (gcse_alloc): Likewise, and rename to cprop_alloc.
7471         (alloc_gcse_men, free_gcse_mem): Remove.
7472         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7473         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7474         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7475
7476         * cprop.c (oprs_not_set_p): Remove.
7477         (mark_set, mark_clobber): Remove.
7478         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7479         (reg_not_set_p): New function.
7480         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7481         (cprop_insn): Likewise.
7482         (cprop_jump): Use FOR_EACH_EDGE.
7483
7484 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7485
7486         PR bootstrap/48403
7487         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7488         (rank_for_schedule): Use scheduled_insns vector instead of
7489         last_scheduled_insn.
7490         (ok_for_early_queue_removal): Likewise.
7491         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7492         we have a dbg_cnt.
7493         (choose_ready): Likewise.
7494         (commit_schedule): Use VEC_iterate.
7495         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7496         a dbg_cnt, use it and ensure the first insn is in the ready list.
7497         (haifa_sched_init): Allocate scheduled_insns.
7498         (sched_extend_ready_list): Don't allocate it; reserve space.
7499         (haifa_sched_finish): Free it.
7500
7501 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7502
7503         * optc-gen.awk: Always remove type from Variable entry before
7504         recording in var_seen.
7505
7506 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7507
7508         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7509         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7510         call to tidy_fallthru_edges.
7511
7512 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7513
7514         * doc/options.texi (ToLower): Document.
7515         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7516         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7517         * opts.h (cl_option): Add cl_tolower field.
7518         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7519         arguments with lowercase strings.
7520         * config/rx/rx.opt (mcpu=): Add ToLower.
7521         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7522         argument.
7523
7524 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7525
7526         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7527
7528 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7529
7530         * config/vax/vax.c: Include reload.h.
7531
7532 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7533
7534         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7535         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7536         (sparc_preferred_reload_class): New function.
7537
7538 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7539
7540         PR debug/48401
7541         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7542         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7543
7544 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7545
7546         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7547         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7548
7549 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7550
7551         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7552         (ASM_OUTPUT_ALIGNED_BSS): Define.
7553
7554 2011-04-03  Michael Matz  <matz@suse.de>
7555
7556         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7557         and next_slot members.
7558         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7559         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7560         (lto_streamer_cache_append): Declare.
7561         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7562         unsigned index, remove offset parameter, ensure that we append
7563         or update existing entries.
7564         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7565         parameter, update next_slot for append.
7566         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7567         parameter.
7568         (lto_streamer_cache_insert_at): Likewise.
7569         (lto_streamer_cache_append): New function.
7570         (lto_streamer_cache_lookup): Use unsigned index.
7571         (lto_streamer_cache_get): Likewise.
7572         (lto_record_common_node): Don't test tree_node_can_be_shared.
7573         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7574         (lto_streamer_cache_delete): Don't free offsets member.
7575         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7576         (lto_output_string_with_length): Use lto_output_data_stream.
7577         (lto_output_tree_header): Remove ix parameter, don't write it.
7578         (lto_output_builtin_tree): Likewise.
7579         (lto_write_tree): Adjust callers to above, don't track and write
7580         offset, write unsigned index.
7581         (output_unreferenced_globals): Don't emit all global vars.
7582         (write_global_references): Use unsigned indices.
7583         (lto_output_decl_state_refs): Likewise.
7584         (write_symbol): Likewise.
7585         * lto-streamer-in.c (lto_input_chain): Move earlier.
7586         (input_function): Use unsigned index.
7587         (input_alias_pairs): Don't read and then ignore all global vars.
7588         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7589         don't pass it back, use lto_streamer_cache_append.
7590         (lto_register_var_decl_in_symtab): Use unsigned index.
7591         (lto_register_function_decl_in_symtab): Likewise.
7592         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7593         index.
7594         (lto_get_builtin_tree): Don't read index, use
7595         lto_streamer_cache_append.
7596         (lto_read_tree): Adjust call to lto_materialize_tree.
7597
7598         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7599         don't use function calls in arguments to MIN.
7600
7601         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7602         twice.
7603
7604         * gimple.c (gimple_type_leader_entry): Mark deletable.
7605
7606 2011-04-03  Alan Modra  <amodra@gmail.com>
7607
7608         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7609
7610 2011-04-03  Michael Matz  <matz@suse.de>
7611
7612         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7613         an integer.
7614         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7615
7616 2011-04-03  Michael Matz  <matz@suse.de>
7617
7618         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7619         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7620         without function context.
7621         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7622         current_function_decl and cfun.
7623
7624 2011-04-03  Michael Matz  <matz@suse.de>
7625
7626         * tree.c (decl_init_priority_insert): Don't create entry for
7627         default priority.
7628         (decl_fini_priority_insert): Ditto.
7629         (fields_compatible_p, find_compatible_field): Remove.
7630         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7631         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7632
7633 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7634
7635         * combine.c (try_combine): Remove useless local variable.
7636
7637 2011-04-03  Richard Guenther  <rguenther@suse.de>
7638             Ira Rosen  <ira.rosen@linaro.org>
7639
7640         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7641         non-variable offsets and compare the remaining bases of the two
7642         accesses instead of looking for exact same data-ref.
7643
7644 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7645
7646         PR target/48416
7647         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7648
7649         * i386.c (ix86_is_msabi_thiscall): New helper function.
7650         (ix86_is_type_thiscall): New helper function.
7651         (ix86_comp_type_attributes): Handle thiscall for method-functions
7652         special.
7653         (init_cumulative_args): Likewise.
7654         (find_drap_reg): Likewise.
7655         (ix86_static_chain): Likewise.
7656         (x86_this_parameter): Likewise.
7657         (x86_output_mi_thunk): Likewise.
7658
7659 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7660             Nicolas Setton  <setton@adacore.com>
7661             Eric Botcazou  <ebotcazou@adacore.com>
7662
7663         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7664         (add_gnat_descriptive_type_attribute): New function.
7665         (gen_array_type_die): Call it.
7666         (gen_enumeration_type_die): Likewise.
7667         (gen_struct_or_union_type_die): Likewise.
7668         (modified_type_die): Likewise.
7669         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7670         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7671         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7672
7673 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7674
7675         PR bootstrap/48148
7676         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7677         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7678
7679         Revert:
7680         2011-03-17  Richard Guenther  <rguenther@suse.de>
7681
7682         PR bootstrap/48148
7683         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7684         origin for decls in other ltrans units.
7685         (input_varpool_node): Likewise.
7686
7687 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7688
7689         PR middle-end/48335
7690         * expr.c (expand_assignment): Handle all possibilities
7691         if TO_RTX is CONCAT.
7692         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7693         (store_split_bit_field): If SUBREG_REG (op0) or
7694         op0 itself has smaller mode than word, return it
7695         for offset 0 and const0_rtx for out-of-bounds stores.
7696         If word is const0_rtx, skip it.
7697
7698 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7699
7700         * config/h8300/h8300.c (print_operand_address): Rename to...
7701         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7702         Call h8300_print_operand and h8300_print_operand_address instead of
7703         print_operand and print_operand_address. Declare.
7704         (print_operand): Renake to...
7705         (h8300_print_operand): ...this. Make static. Adjust comments.
7706         Call h8300_print_operand instead of print_operand. Declare.
7707         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7708         (h8300_register_move_cost): Likewise.
7709         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7710         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7711         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7712         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7713         * config/h8300/h8300-protos.h (print_operand): Delete.
7714         (print_operand_address): Delete.
7715
7716 2011-04-01  Richard Henderson  <rth@redhat.com>
7717
7718         PR 48400
7719         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7720         in strict mode before dwarf4.  Re-order tests to early out
7721         before switching sections.
7722
7723 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7724
7725         * config/h8300/constraints.md: New file.
7726         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7727         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7728         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7729         * config/h8300/predicates.md (bit_operand): Likewise.
7730         (incdec_operand): Use satisfies_constraint_M and
7731         satisfies_constraint_O.  Don't use C code block.
7732         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7733         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7734         (compute_mov_length): Use satisfies_constraint_G.
7735         (fix_bit_operand): Use satisfies_constraint_U.
7736         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7737         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7738         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7739         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7740         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7741         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7742         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7743         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7744         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7745         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7746         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7747         (EXTRA_MEMORY_CONSTRAINT): Delete.
7748
7749 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7750             Michael Meissner  <meissner@linux.vnet.ibm.com>
7751
7752         PR target/48262
7753         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7754         operands, as per the specifications.
7755
7756         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7757         (vec_extract_evenv4sf): Ditto.
7758         (vec_extract_evenv8hi): Ditto.
7759         (vec_extract_evenv16qi): Ditto.
7760         (vec_extract_oddv4si): Ditto.
7761
7762 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7763
7764         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7765         high_pc attribute if the CU has no associated code. Only output
7766         DW_AT_entry_pc for CU if not generating strict dwarf and
7767         dwarf_version < 4.
7768
7769 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7770
7771         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7772         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7773         out of ...
7774         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7775         * final.c (final_start_function): Call the new function rather
7776         than using a NULL argument for dwarf2out_frame_debug.
7777
7778         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7779         that contains the prologue.
7780
7781         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7782         changed.  Print it in debugging output.
7783
7784         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7785
7786         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7787         Split most of the code into...
7788         (begin_move_insn): ... here.  New function.
7789         (ebb_sched_info): Add a pointer to it.
7790         * haifa-sched.c (scheduled_insns): New static variable.
7791         (sched_extend_ready_list): Allocate it.
7792         (schedule_block): Use it to record the order of scheduled insns.
7793         Perform RTL changes to move insns only after all scheduling
7794         decisions have been made.
7795         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7796         begin_move_insn field.
7797         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7798         * sched-int.h (struct haifa_sched_info): Remove second argument
7799         from begin_schedule_ready hook.  Add new member begin_move_insn.
7800         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7801         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7802
7803         * haifa-sched.c (prune_ready_list): New function, broken out of
7804         schedule_block.
7805         (schedule_block): Use it.
7806
7807 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7808
7809         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7810
7811 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7812
7813         * config.gcc (*-*-mingw*): Allow as option the
7814         posix threading model.
7815         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7816         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7817         definition.
7818         (CPP_SPEC): Add pthread/no-pthread handling.
7819         (LIB_SPEC): Likewise.
7820         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7821         (LIB_SPEC): Likewise.
7822         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7823         flag to pass -pthread option for shared libgcc build.
7824         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7825         for shared libgcc build.
7826         * config/i386/t-mingw-pthread: New file.
7827         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7828         New define to enable use of library pthread by default.
7829         * config/i386/mingw.opt (pthread): New driver option.
7830         (no-pthread): New driver option.
7831         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7832         * config/i386/mingw-w64.opt: Likewise.
7833
7834 2011-04-01  Gary Funck  <gary@intrepid.com>
7835
7836         * c-decl.c (grokdeclarator): Fix formatting.
7837
7838 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7839
7840         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7841         instead of n_operands.
7842         (set_storage_via_setmem): Likewise.
7843         * optabs.c (maybe_gen_insn): Likewise.
7844         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7845         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7846         (mips_expand_builtin_direct): Likewise.
7847         * config/spu/spu.c (expand_builtin_args): Likewise.
7848
7849 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7850
7851         * recog.h (insn_data_d): Add n_generator_args.
7852         * genoutput.c (data): Likewise.
7853         (output_insn_data): Print it.
7854         (max_opno, num_dups): Delete.
7855         (scan_operands): Just fill in "d->operand[...]".
7856         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7857
7858 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7859
7860         * gensupport.h (pattern_stats): New structure.
7861         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7862         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7863         (max_operand_1, max_operand_vec): Delete.
7864         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7865
7866 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7867
7868         * emit-rtl.c (emit_pattern_after_setloc): New function.
7869         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7870         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7871         (emit_pattern_after): New function.
7872         (emit_insn_after, emit_jump_insn_after): Call it.
7873         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7874         (emit_pattern_before_setloc): New function.
7875         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7876         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7877         Likewise.
7878         (emit_pattern_before): New function.
7879         (emit_insn_before, emit_jump_insn_before): Call it.
7880         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7881
7882 2011-03-31  Richard Henderson  <rth@redhat.com>
7883
7884         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7885         (dw_separate_line_info_entry): Remove.
7886         (enum dw_line_info_opcode): New.
7887         (dw_line_info_entry): Use it.
7888         (dw_line_info_table, dw_line_info_table_p): New.
7889         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7890         (line_info_table, line_info_label_num): Remove.
7891         (line_info_table_in_use): Remove.
7892         (separate_line_info_table): Remove.
7893         (separate_line_info_table_allocated): Remove.
7894         (separate_line_info_table_in_use): Remove.
7895         (LINE_INFO_TABLE_INCREMENT): Remove.
7896         (line_info_label_num): New.
7897         (cur_line_info_table): New.
7898         (text_section_line_info, cold_text_section_line_info): New.
7899         (separate_line_info): New.
7900         (SEPARATE_LINE_CODE_LABEL): Remove.
7901         (print_dwarf_line_table): Remove.
7902         (debug_dwarf): Don't dump it.
7903         (output_one_line_info_table): New.
7904         (output_line_info): Use it.
7905         (new_line_info_table): New.
7906         (set_cur_line_info_table): New.
7907         (dwarf2out_switch_text_section): Use it.
7908         (dwarf2out_begin_function): Likewise.
7909         (push_dw_line_info_entry): New.
7910         (dwarf2out_source_line): Rewrite for new line info tables.
7911         (dwarf2out_init): Remove dead initailizations.
7912
7913 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7914
7915         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7916         various flags.
7917         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7918         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7919         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7920         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7921         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7922         * opt-functions.awk (flag_init, switch_bit_fields): New.
7923         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7924         generate CL_MISSING_OK or CL_SAVE.
7925         * optc-gen.awk: Update to generate bit-field output as well as
7926         flags field.
7927         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7928         bit-field instead of CL_REJECT_DRIVER flag.
7929         * opts-common.c (generate_canonical_option,
7930         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7931         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7932         instead of CL_REJECT_NEGATIVE flag.
7933         * toplev.c (print_switch_values): Use cl_report bit-field instead
7934         of CL_REPORT flag.
7935
7936 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7937
7938         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7939         a zero minimum index only if it is redundant.
7940
7941 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7942
7943         PR rtl-optimization/48381
7944         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7945         instead of ira_class_hard_reg_index for calculating conflicting
7946         hard registers.
7947
7948 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7949
7950         * cprop.c: Clean up hash table building.
7951         (reg_avail_info): Remove.
7952         (oprs_available_p): Remove.
7953         (record_last_reg_set_info): Remove.
7954         (record_last_set_info): Remove.
7955         (reg_available_p): New function.
7956         (gcse_constant_p): Do not treat unfolded conditions as constants.
7957         (make_set_regs_unavailable): New function.
7958         (hash_scan_set): Simplify with new reg_available_p.
7959         (compute_hash_table_work): Traverse insns stream only once.
7960         Do not compute reg_avail_info. Traverse insns in reverse order.
7961         Record implicit sets after recording explicit sets from the block.
7962
7963 2011-03-31  Michael Matz  <matz@suse.de>
7964
7965         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7966
7967 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7968
7969         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7970         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7971         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7972         (h8300_mode_dependent_address_p): New function.
7973         (h8300_get_index): Make static.
7974
7975 2011-03-31  Jeff Law  <law@redhat.com>
7976
7977         * reload1.c (elimination_effects): Fix typo in recent change.
7978
7979         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7980         typo potentially leading to null pointer dereference.
7981
7982         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7983         (setup_save_areas): Corresponding changes to avoid useless
7984         assignments.
7985
7986         * jump.c (reversed_comparison_code_parts): Avoid successive return
7987         statements when REVERSE_CONDITION is defined.
7988
7989         * expr.c (expand_assignment): Avoid useless assignments.
7990         (expand_expr_real_1): Likewise.
7991         (expand_expr_real_2): Avoid useless statements.
7992
7993         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7994
7995         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7996
7997         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7998         statements.
7999
8000         * stmt.c (expand_expr_stmt): Avoid useless assignment.
8001
8002 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8003
8004         PR target/47109
8005         * doc/tm.texi.in (TARGET_VERSION): Remove.
8006         * doc/tm.texi: Regenerate.
8007         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8008         * collect2.c (main): Don't use TARGET_VERSION.
8009         * mips-tdump.c (main): Don't use TARGET_VERSION.
8010         * mips-tfile.c (main): Don't use TARGET_VERSION.
8011         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8012         * config/rs6000/vxworksae.h: Remove.
8013         * config/alpha/alpha.h (TARGET_VERSION): Remove.
8014         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8015         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8016         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8017         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8018         * config/arm/arm.h (TARGET_VERSION): Remove.
8019         * config/arm/coff.h (TARGET_VERSION): Remove.
8020         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8021         * config/arm/elf.h (TARGET_VERSION): Remove.
8022         * config/arm/freebsd.h (TARGET_VERSION): Remove.
8023         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8024         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8025         * config/arm/pe.h (TARGET_VERSION): Remove.
8026         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8027         * config/arm/semi.h (TARGET_VERSION): Remove.
8028         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8029         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8030         * config/arm/vxworks.h (TARGET_VERSION): Remove.
8031         * config/avr/avr.h (TARGET_VERSION): Remove.
8032         * config/bfin/bfin.h (TARGET_VERSION): Remove.
8033         * config/fr30/fr30.h (TARGET_VERSION): Remove.
8034         * config/frv/frv.h (TARGET_VERSION): Remove.
8035         * config/h8300/h8300.h (TARGET_VERSION): Remove.
8036         * config/i386/cygwin.h (TARGET_VERSION): Remove.
8037         * config/i386/darwin.h (TARGET_VERSION): Remove.
8038         * config/i386/darwin64.h (TARGET_VERSION): Remove.
8039         * config/i386/djgpp.h (TARGET_VERSION): Remove.
8040         * config/i386/freebsd.h (TARGET_VERSION): Remove.
8041         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8042         * config/i386/gnu.h (TARGET_VERSION): Remove.
8043         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8044         * config/i386/i386elf.h (TARGET_VERSION): Remove.
8045         * config/i386/linux.h (TARGET_VERSION): Remove.
8046         * config/i386/linux64.h (TARGET_VERSION): Remove.
8047         * config/i386/lynx.h (TARGET_VERSION): Remove.
8048         * config/i386/mingw32.h (TARGET_VERSION): Remove.
8049         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8050         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8051         * config/i386/netware.h (TARGET_VERSION): Remove.
8052         * config/i386/nto.h (TARGET_VERSION): Remove.
8053         * config/i386/openbsd.h (TARGET_VERSION): Remove.
8054         * config/i386/vxworks.h (TARGET_VERSION): Remove.
8055         * config/ia64/elf.h (TARGET_VERSION): Remove.
8056         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8057         * config/ia64/hpux.h (TARGET_VERSION): Remove.
8058         * config/ia64/linux.h (TARGET_VERSION): Remove.
8059         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8060         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8061         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8062         * config/lm32/lm32.h (TARGET_VERSION): Remove.
8063         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8064         * config/m32c/m32c.h (TARGET_VERSION): Remove.
8065         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8066         * config/m32r/m32r.h (TARGET_VERSION): Remove.
8067         * config/m68k/linux.h (TARGET_VERSION): Remove.
8068         * config/m68k/m68k.h (TARGET_VERSION): Remove.
8069         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8070         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8071         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8072         * config/mep/mep.h (TARGET_VERSION): Remove.
8073         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8074         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8075         * config/mips/iris6.h (MACHINE_TYPE): Remove.
8076         * config/mips/linux.h (TARGET_VERSION): Remove.
8077         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8078         * config/mips/vxworks.h (TARGET_VERSION): Remove.
8079         * config/mmix/mmix.h (TARGET_VERSION): Remove.
8080         * config/mn10300/linux.h (TARGET_VERSION): Remove.
8081         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8082         * config/pa/pa.h (TARGET_VERSION): Remove.
8083         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8084         * config/picochip/picochip.h (TARGET_VERSION): Remove.
8085         * config/rs6000/aix.h (TARGET_VERSION): Remove.
8086         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8087         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8088         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8089         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8090         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8091         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8092         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8093         * config/rs6000/linux.h (TARGET_VERSION): Remove.
8094         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8095         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8096         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8097         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8098         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8099         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8100         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8101         * config/s390/linux.h (TARGET_VERSION): Remove.
8102         * config/s390/s390.h (TARGET_VERSION): Remove.
8103         * config/s390/tpf.h (TARGET_VERSION): Remove.
8104         * config/score/score.h (TARGET_VERSION): Remove.
8105         * config/sh/linux.h (TARGET_VERSION): Remove.
8106         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8107         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8108         * config/sh/sh.h (TARGET_VERSION): Remove.
8109         * config/sh/sh64.h (TARGET_VERSION): Remove.
8110         * config/sh/superh.h (TARGET_VERSION): Remove.
8111         * config/sh/vxworks.h (TARGET_VERSION): Remove.
8112         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8113         * config/sparc/linux.h (TARGET_VERSION): Remove.
8114         * config/sparc/linux64.h (TARGET_VERSION): Remove.
8115         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8116         TARGET_NAME32, TARGET_NAME): Remove.
8117         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8118         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8119         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8120         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8121         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8122         * config/spu/spu.h (TARGET_VERSION): Remove.
8123         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8124         * config/v850/v850.h (TARGET_VERSION): Remove.
8125         * config/vax/linux.h (TARGET_VERSION): Remove.
8126         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8127         * config/xtensa/elf.h (TARGET_VERSION): Remove.
8128         * config/xtensa/linux.h (TARGET_VERSION): Remove.
8129
8130 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8131
8132         PR target/48142
8133         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8134         frame-related from frame-unrelated adjustments to the stack pointer.
8135
8136 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
8137
8138         * common.opt (fdebug-types-section): Move earlier.
8139         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8140
8141 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
8142
8143         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8144         var.
8145
8146 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
8147
8148         * tree.h (CASE_CHAIN): Define.
8149         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8150         (gimple_redirect_edge_and_branch): Likewise.
8151
8152 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8153
8154         PR middle-end/48367
8155         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8156         calculation.
8157
8158 2011-03-30  Jeff Law  <law@redhat.com>
8159
8160         * PR bootstrap/48371
8161         * reload1.c (reload): Fix botch in last change.
8162
8163         * reload.h (struct reload): Fix typo introduced in last change.
8164
8165 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8166
8167         * config/arm/arm.opt (mhard-float, msoft-float): Mark
8168         Undocumented.  Remove help text.
8169         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8170         -mhard-float.
8171
8172 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8173
8174         * doc/options.texi (NegativeAlias): Document.
8175         (Alias): Mention NegativeAlias.
8176         * opt-functions.awk: Handle NegativeAlias.
8177         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8178         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8179         * opts.h (CL_NEGATIVE_ALIAS): Define.
8180         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8181         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8182         OPT_mspe_.
8183         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8184         Alias entries.
8185         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8186         mno-spe and mno-isel instead of mspe=no and -misel=no.
8187
8188 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8189
8190         * common.opt (fdebug-types-section): New flag.
8191         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8192         * dwarf2out.c (use_debug_types): New define.
8193         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8194         (print_die): Guard output of type unit signatures using
8195         use_debug_types.
8196         (build_abbrev_table): Replace assert of dwarf_version >= 4
8197         with assert on use_debug_types.
8198         (size_of_die): Likewise.
8199         (unmark_dies): Likewise.
8200         (value_format): Decide AT_ref_external form on use_debug_types.
8201         (output_die): Replace dwarf_version version check guard with
8202         use_debug_types where appropriate.
8203         (modified_type_die): Likewise.
8204         (gen_reference_type_die): Likewise.
8205         (dwarf2out_start_source_file): Likewise.
8206         (dwarf2out_end_source_file): Likewise.
8207         (prune_unused_types_walk_attribs): Likewise.
8208         (dwarf2out_finish): Likewise.
8209
8210 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8211
8212         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8213
8214 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8215
8216         PR rtl-optimization/48332
8217         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8218         mode of input operand N and modeN to its actual mode.
8219
8220 2011-03-30  Jeff Law  <law@redhat.com>
8221
8222         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8223         define accessor macro.
8224         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8225         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8226         (reg_equiv_init): Likewise.
8227         (reg_equivs_size): New variable.
8228         (reg_equiv_init_size): Remove.
8229         (allocate_initial_values): Move prototype to here from....
8230         * integrate.h (allocate_initial_values): Remove prototype.
8231         * integrate.c: Include reload.h.
8232         (allocate_initial_values): Corresponding changes.
8233         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8234         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8235         (update_equiv_regs): Corresponding changes.
8236         (ira): Corresponding changes.
8237         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8238         (push_secondary_reload): Corresponding changes.
8239         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8240         (make_memloc, find_reloads_address): Corresponding changes.
8241         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8242         (find_reloads_address_1): Corresponding changes.
8243         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8244         (refers_to_regno_for_reload_p): Corresponding changes.
8245         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8246         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8247         * reload1.c: Include ggc.h.
8248         (grow_reg_equivs): New function.
8249         (replace_pseudos_in, reload): Corresponding changes.
8250         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8251         (eliminate_regs_1, elimination_effects): Corresponding changes.
8252         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8253         (delete_output_reload): Likewise.
8254         * caller-save.c (mark_referenced_regs): Corresponding changes.
8255         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8256         * frv/predicates.md (frv_load_operand): Corresponding changes.
8257         * microblaze/microblaze.c (double_memory_operand): Corresponding
8258         changes.
8259         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8260         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8261         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8262         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8263         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8264         changes.
8265         * pa/pa.c (emit_move_sequence): Corresponding changes.
8266         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8267
8268 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8269
8270         PR target/47551
8271         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8272         structure modes.  Don't check neon_vector_mem_operand for
8273         vector or structure modes.
8274
8275 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8276             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8277
8278         PR target/43590
8279         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8280         operand 1 and reshuffle the operands to match.
8281         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8282
8283 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8284
8285         PR driver/48208
8286         * config/c.opt (F): Added 'Driver' to -F option.
8287
8288         PR driver/48260
8289         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8290           handler function.
8291         * config/darwin.opt: Added '-arch' option.
8292
8293 2011-03-30  Nick Clifton  <nickc@redhat.com>
8294
8295         * config/rx/rx.md: Add peepholes and patterns to combine
8296         extending loads and simple arithmetic instructions.
8297         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8298         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8299         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8300         modes to use pre-decrement and post-increment addressing.
8301         (rx_is_restricted_memory_address): Add range checking of REG+INT
8302         addresses.
8303         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8304         (rx_memory_move_cost): Adjust cost of stores.
8305         (rx_adjust_insn_length): New function.
8306
8307 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8308
8309         PR c/48305
8310         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8311         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8312         matching arg00/arg01 types.
8313
8314 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8315
8316         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8317         last_location to UNKNOWN_LOCATION.
8318
8319 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8320
8321         PR target/48349
8322         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8323         FLOAT_SSE_REGS.
8324
8325 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8326             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8327
8328         PR bootstrap/48337
8329         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8330         Init(PROCESSOR_V7).
8331         (sparc_cpu): Likewise.
8332         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8333         PROCESSOR_V7.
8334
8335 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8336
8337         PR target/48336
8338         PR middle-end/48342
8339         PR rtl-optimization/48345
8340         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8341         hard regs for given mode from profitable regs when doing secondary
8342         allocation.
8343
8344 2011-03-29  Jeff Law  <law@redhat.com>
8345
8346         PR bootstrap/48327
8347         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8348         do_not_duplicate field.
8349         (lookup_redirection_data): Corresponding changes.
8350         (create_duplicates): Always create a template block.
8351         (redirect_edges): Remove code which reused the original block
8352         when it was going to become unreachable code.
8353         (thread_block): Don't set do_not_duplicate field.
8354
8355 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8356
8357         * lto-opts.c (register_user_option_p, lto_register_user_option):
8358         Make type argument unsigned.
8359         * lto-streamer.h (lto_register_user_option): Make type argument
8360         unsigned.
8361         * opth-gen.awk: Make CL_* macros unsigned.
8362         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8363         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8364         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8365         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8366         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8367         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8368         (find_opt): Make lang_mask argument unsigned.
8369
8370 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8371
8372         PR rtl-optimization/48331
8373         PR rtl-optimization/48334
8374         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8375         for any used algorithm.
8376
8377 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8378
8379         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8380         to parent_max.
8381
8382 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8383
8384         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8385         (alpha_option_override): Don't set alpha_sr_alias_set.
8386         (emit_frame_store_1): Use gen_frame_mem rather than calling
8387         set_mem_alias_set.
8388         (alpha_expand_epilogue): Ditto.
8389
8390 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8391
8392         PR tree-optimization/48290
8393         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8394         vectorization, check that relevant phis in the basic block after
8395         the inner loop are really inner loop's exit phis.
8396
8397 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8398
8399         PR debug/48190
8400         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8401         (cached_dw_loc_list_def): New structure.
8402         (cached_dw_loc_list): New typedef.
8403         (cached_dw_loc_list_table): New variable.
8404         (cached_dw_loc_list_table_hash): New function.
8405         (cached_dw_loc_list_table_eq): Likewise.
8406         (add_location_or_const_value_attribute): Take a bool cache_p.
8407         Cache the list when the parameter is true.
8408         (gen_formal_parameter_die): Update caller.
8409         (gen_variable_die): Likewise.
8410         (dwarf2out_finish): Likewise.
8411         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8412         while generating debug info for the decl.
8413         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8414         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8415         (resolve_addr): Cache the result of resolving a chain of
8416         location lists.
8417
8418 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8419
8420         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8421         conflict object hard regset nodes have intersecting hard reg sets.
8422
8423         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8424         after regstat_init_n_sets_and_refs.
8425
8426         * ira.c: Add more comments at the top.
8427         (setup_stack_reg_pressure_class, setup_pressure_classes):
8428         Add comments how we compute the register pressure classes.
8429         (setup_allocno_and_important_classes): Add more comments.
8430         (setup_class_translate_array, reorder_important_classes)
8431         (setup_reg_class_relations): Add comments.
8432
8433         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8434         start of the file.
8435
8436         * ira-color.c: Add 2011 to the Copyright line.
8437         (assign_hard_reg):  Add more comments.
8438         (improve_allocation): Ditto.
8439
8440         * ira-costs.c: Add 2011 to the Copyright line.
8441         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8442         comments.
8443         (setup_regno_cost_classes_by_mode): Ditto.
8444
8445         Initial patches from ira-improv branch:
8446
8447         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8448
8449         * ira-build.c (ira_create_object): Remove initialization of
8450         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8451         (ira_create_allocno): Remove initialization of
8452         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8453         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8454         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8455         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8456         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8457         Initialize ALLOCNO_ADD_DATA.
8458         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8459         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8460         ALLOCNO_REG.
8461         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8462         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8463
8464         * ira.c (ira_reallocate): Remove.
8465         (setup_pressure_classes): Call
8466         ira_init_register_move_cost_if_necessary.  Use
8467         ira_register_move_cost instead of ira_get_register_move_cost.
8468         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8469         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8470
8471         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8472         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8473         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8474         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8475         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8476         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8477         Fix formatting.
8478         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8479         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8480         (struct allocno_color_data): New.
8481         (allocno_color_data_t): New typedef.
8482         (allocno_color_data): New definition.
8483         (ALLOCNO_COLOR_DATA): New macro.
8484         (struct object_color_data): New.
8485         (object_color_data_t): New typedef.
8486         (object_color_data): New definition.
8487         (OBJECT_COLOR_DATA): New macro.
8488         (update_copy_costs, calculate_allocno_spill_cost): Call
8489         ira_init_register_move_cost_if_necessary.  Use
8490         ira_register_move_cost instead of ira_get_register_move_cost.
8491         (move_spill_restore, update_curr_costs): Ditto.
8492         (allocno_spill_priority): Make it inline.
8493         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8494         (struct coalesce_data, coalesce_data_t): New.
8495         (allocno_coalesce_data): New definition.
8496         (ALLOCNO_COALESCE_DATA): New macro.
8497         (merge_allocnos, coalesced_allocno_conflict_p): Use
8498         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8499         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8500         (coalesce_allocnos): Ditto.
8501         (setup_coalesced_allocno_costs_and_nums): Ditto.
8502         (collect_spilled_coalesced_allocnos): Ditto.
8503         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8504         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8505         (coalesce_spill_slots): Ditto.
8506         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8507         free allocno_coalesce_data.
8508
8509         * ira-conflicts.c: Fix formatting.
8510         (process_regs_for_copy): Call
8511         ira_init_register_move_cost_if_necessary.  Use
8512         ira_register_move_cost instead of ira_get_register_move_cost.
8513         (build_object_conflicts): Optimize.
8514
8515         * ira-costs.c (record_reg_classes): Optimize.  Call
8516         ira_init_register_move_cost_if_necessary.  Use
8517         ira_register_move_cost, ira_may_move_in_cost, and
8518         ira_may_move_out_cost instead of ira_get_register_move_cost and
8519         ira_get_may_move_cost.
8520         (record_address_regs): Ditto.
8521         (scan_one_insn): Optimize.
8522         (find_costs_and_classes): Optimize.
8523         (process_bb_node_for_hard_reg_moves): Call
8524         ira_init_register_move_cost_if_necessary.  Use
8525         ira_register_move_cost instead of ira_get_register_move_cost.
8526
8527         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8528         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8529         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8530         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8531         definitions.
8532         (ira_initiate_emit_data, ira_finish_emit_data)
8533         (create_new_allocno): New functions.
8534         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8535         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8536         Use ira_register_move_cost instead of ira_get_register_move_cost.
8537
8538         * ira-int.h: Fix some comments.
8539         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8540         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8541         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8542         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8543         add_data.
8544         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8545         bitfield after mode.  Make hard_regno a short int.  Make
8546         hard_regno short.  Remove first_coalesced_allocno and
8547         next_coalesced_allocno.  Move mem_optimized_dest_p,
8548         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8549         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8550         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8551         temp, colorable_p.  Add new member add_data.
8552         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8553         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8554         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8555         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8556         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8557         (ALLOCNO_ADD_DATA): New macro.
8558         (ira_emit_data_t): New typedef.
8559         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8560         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8561         from struct ira_allocno.
8562         (ALLOCNO_EMIT_DATA): New macro.
8563         (ira_allocno_emit_data, allocno_emit_reg): New.
8564         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8565         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8566         (OBJECT_ADD_DATA): New macro.
8567         (ira_reallocate): Remove.
8568         (ira_initiate_emit_data, ira_finish_emit_data): New.
8569         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8570         (ira_init_register_move_cost_if_necessary): New.
8571         (ira_object_conflict_iter_next): Merge into
8572         ira_object_conflict_iter_cond.
8573         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8574
8575         * ira-live.c (process_single_reg_class_operands): Call
8576         ira_init_register_move_cost_if_necessary.  Use
8577         ira_register_move_cost instead of ira_get_register_move_cost.
8578
8579         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8580
8581         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8582
8583         * ira-costs.c: Fix formatting.
8584         (cost_classes, cost_classes_num): Remove.
8585         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8586         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8587         (cost_classes_del, cost_classes_htab): New.
8588         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8589         (initiate_regno_cost_classes, setup_cost_classes): New.
8590         (setup_regno_cost_classes_by_aclass): New.
8591         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8592         (record_reg_classes): Use regno_cost_classes instead of
8593         cost_classes.  Move checking opposite operand up.
8594         (record_address_regs): Use regno_cost_classes
8595         instead of cost_classes.
8596         (scan_one_insn): Ditto.  Use always general register.
8597         (print_allocno_costs): Use regno_cost_classes instead of
8598         cost_classes.
8599         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8600         (find_costs_and_classes): Set up cost classes for each registers.
8601         Use also their mode for this.  Use regno_cost_classes instead of
8602         cost_classes.
8603         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8604         cost_classes.
8605         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8606         (ira_costs, ira_set_pseudo_classes): Call
8607         initiate_regno_cost_classes and finish_regno_cost_classes.
8608
8609         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8610
8611         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8612
8613         * target.def (ira_cover_classes): Remove.
8614
8615         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8616
8617         * doc/tm.texi.in: Ditto.
8618
8619         * ira-conflicts.c: Remove mentioning cover classes from the file.
8620         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8621         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8622
8623         * targhooks.c (default_ira_cover_classes): Remove.
8624
8625         * targhooks.h (default_ira_cover_classes): Ditto.
8626
8627         * haifa-sched.c: Remove mentioning cover classes from the file.
8628         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8629         ira_pressure_classes and ira_pressure_classes_num instead of
8630         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8631         sched_regno_pressure_class instead of sched_regno_cover_class.
8632         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8633         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8634
8635         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8636         classes from the file.
8637         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8638         (struct object_hard_regs, struct object_hard_regs_node): New.
8639         (struct ira_object): New members profitable_hard_regs,
8640         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8641         (struct ira_allocno): Rename cover_class to aclass.  Rename
8642         cover_class_cost and updated_cover_class_cost to class_cost and
8643         updated_class_cost.  Remove splay_removed_p and
8644         left_conflict_size.  Add new members colorable_p.
8645         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8646         (ALLOCNO_COLORABLE_P): New macro.
8647         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8648         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8649         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8650         (OBJECT_...): Rename parameter C to O.
8651         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8652         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8653         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8654         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8655         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8656         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8657         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8658         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8659         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8660         x_ira_reg_class_subunion.
8661         (ira_max_memory_move_cost, ira_max_register_move_cost)
8662         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8663         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8664         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8665         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8666         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8667         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8668         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8669         (ira_tune_allocno_costs_and_cover_classes): Rename to
8670         ira_tune_allocno_costs.
8671         (ira_debug_hard_regs_forest): New.
8672         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8673         (ira_object_conflict_iter_next): Fix comments.
8674         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8675         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8676         cover_class to aclass.
8677         (ira_allocate_and_accumulate_costs): Ditto.
8678         (ira_allocate_and_set_or_copy_costs): Ditto.
8679
8680         * opts.c (decode_options): Remove ira_cover_class check.
8681
8682         * ira-color.c: Remove mentioning cover classes from the file.  Use
8683         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8684         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8685         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8686         (splay-tree.h): Remove include.
8687         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8688         before copy_freq_compare_func.
8689         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8690         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8691         New definitions.
8692         (hard_regs_roots, hard_regs_node_vec): Ditto.
8693         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8694         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8695         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8696         (create_new_object_hard_regs_node): Ditto.
8697         (add_new_object_hard_regs_node_to_forest): Ditto.
8698         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8699         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8700         Ditto.
8701         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8702         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8703         (remove_unused_object_hard_regs_nodes): Ditto.
8704         (enumerate_object_hard_regs_nodes): Ditto.
8705         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8706         (object_hard_regs_subnode_t): Ditto.
8707         (struct object_hard_regs_subnode): Ditto.
8708         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8709         (setup_object_hard_regs_subnode_index): Ditto.
8710         (get_object_hard_regs_subnodes_num): Ditto.
8711         (form_object_hard_regs_nodes_forest): Ditto.
8712         (finish_object_hard_regs_nodes_tree): Ditto.
8713         (finish_object_hard_regs_nodes_forest): Ditto.
8714         (allocnos_have_intersected_live_ranges_p): Rename to
8715         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8716         (pseudos_have_intersected_live_ranges_p): Rename to
8717         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8718         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8719         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8720         (update_copy_costs): Remove assert.  Skip cost update if the hard
8721         reg does not belong the class.
8722         (assign_hard_reg): Process only profitable hard regs.
8723         (uncolorable_allocnos_num): Make it scalar.
8724         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8725         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8726         and ira_reg_class_max_nregs.
8727         (bucket_allocno_compare_func): Check frequency first.
8728         (sort_bucket): Add compare function as a parameter.
8729         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8730         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8731         (push_allocno_to_stack): Rewrite for checking new allocno
8732         colorability.
8733         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8734         (push_only_colorable): Pass new parameter to sort_bucket.
8735         (push_allocno_to_spill): Remove.
8736         (allocno_spill_priority_compare): Make it inline and rewrite.
8737         (splay_tree_allocate, splay_tree_free): Remove.
8738         (allocno_spill_sort_compare): New function.
8739         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8740         build and use splay tree.  Choose first allocno in uncolorable
8741         allocno bucket to spill.  Remove setting spill cost.
8742         (all_conflicting_hard_regs): Remove.
8743         (setup_allocno_available_regs_num): Check only profitable hard
8744         regs.  Print info about hard regs nodes.
8745         (setup_allocno_left_conflicts_size): Remove.
8746         (put_allocno_into_bucket): Don't call
8747         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8748         (improve_allocation): New.
8749         (color_allocnos): Call setup_profitable_hard_regs,
8750         form_object_hard_regs_nodes_forest, improve_allocation,
8751         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8752         (print_loop_title): Use pressure classes.
8753         (color_allocnso): Ditto.
8754         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8755         and allocnos_for_spilling.
8756         (ira_sort_regnos_for_alter_reg): Don't setup members
8757         {first,next}_coalesced_allocno.
8758         (color): Remove allocating and freeing removed_splay_allocno_vec.
8759         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8760         prohibited_class_mode_regs.
8761
8762         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8763         formatting.
8764         (update_allocno_pressure_excess_length): Use pressure classes.
8765         (inc_register_pressure, dec_register_pressure): Check for pressure
8766         class.
8767         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8768         pressure class.  Use ira_reg_class_nregs instead of
8769         ira_reg_class_max_nregs.
8770         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8771         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8772         (single_reg_class): Use ira_reg_class_nregs instead of
8773         ira_reg_class_max_nregs.
8774         (process_bb_node_lives): Use pressure classes.
8775
8776         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8777         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8778         (change_loop): Use pressure classes.
8779         (modify_move_list): Call ira_set_allocno_class instead of
8780         ira_set_allocno_cover_class.
8781
8782         * ira-build.c: Remove mentioning cover classes from the file.  Use
8783         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8784         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8785         ALLOCNO_UPDATED_CLASS_COST instead of
8786         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8787         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8788         (ira_create_allocno): Remove initialization of
8789         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8790         ALLOCNO_COLORABLE_P.
8791         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8792         Update conflict regs for the objects.
8793         (create_cap_allocno): Remove assert.  Don't propagate
8794         ALLOCNO_AVAILABLE_REGS_NUM.
8795         (ira_free_allocno_costs): New function.
8796         (finish_allocno): Change a part of code into call of
8797         ira_free_allocno_costs.
8798         (low_pressure_loop_node_p): Use pressure classes.
8799         (object_range_compare_func): Don't compare classes.
8800         (setup_min_max_conflict_allocno_ids): Ditto.
8801
8802         * loop-invariant.c: Remove mentioning cover classes from the file.
8803         Use ira_pressure_classes and ira_pressure_classes_num instead of
8804         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8805         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8806         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8807         Use reg_allocno_class instead of reg_cover_class.
8808         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8809         STACK_REG_COVER_CLASS.
8810         (get_regno_cover_class): Rename to get_regno_pressure_class.
8811         (move_loop_invariants): Initialize and finalize regstat.
8812
8813         * ira.c: Remove mentioning cover classes from the file.  Add
8814         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8815         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8816         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8817         setup_class_subset_and_memory_move_costs.
8818         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8819         (setup_cover_and_important_classes): Rename to
8820         setup_allocno_and_important_classes.
8821         (setup_class_translate_array): New.
8822         (setup_class_translate): Call it for allocno and pressure classes.
8823         (cover_class_order): Rename to allocno_class_order.
8824         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8825         of ira_class_translate.
8826         (reorder_important_classes): Set up ira_important_class_nums.
8827         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8828         (print_class_cover): Rename to print_classes.  Add parameter.
8829         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8830         Print pressure classes too.
8831         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8832         setup_reg_subclasses.
8833         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8834         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8835         (setup_prohibited_class_mode_regs): Use
8836         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8837         (clarify_prohibited_class_mode_regs): New function.
8838         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8839         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8840         (ira_init_once): Initialize them.
8841         (free_register_move_costs): Process them.
8842         (ira_init): Move calls of find_reg_classes and
8843         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8844         Call clarify_prohibited_class_mode_regs.
8845         (ira_no_alloc_reg): Remove.
8846         (too_high_register_pressure_p): Use pressure classes.
8847
8848         * sched-deps.c: Remove mentioning cover classes from the file.
8849         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8850         ira_pressure_classes and ira_pressure_classes_num instead of
8851         ira_reg_class_cover_size and ira_reg_class_cover.
8852         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8853         sched_regno_pressure_class instead of sched_regno_cover_class.
8854         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8855         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8856
8857         * ira.h: Add 2010 to Copyright.
8858         (ira_no_alloc_reg): Remove external.
8859         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8860         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8861         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8862         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8863         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8864         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8865         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8866         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8867         x_ira_no_alloc_regs.
8868         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8869         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8870         ira_allocno_classes_num and ira_allocno_classes.
8871         (ira_class_translate): Rename to ira_allocno_class_translate.
8872         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8873         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8874         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8875         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8876         (ira_no_alloc_regs): New.
8877
8878         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8879         classes from the file.  Use ALLOCNO_CLASS instead of
8880         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8881         ALLOCNO_COVER_CLASS_COST.
8882         (regno_cover_class): Rename to regno_aclass.
8883         (record_reg_classes): Use ira_reg_class_subunion instead of
8884         ira_reg_class_union.
8885         (record_address_regs): Check overflow.
8886         (scan_one_insn): Ditto.
8887         (print_allocno_costs): Print total mem cost fore regional allocation.
8888         (print_pseudo_costs): Use REG_N_REFS.
8889         (find_costs_and_classes): Use classes intersected with them on the
8890         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8891         ira_reg_class_union.  Use ira_allocno_class_translate and
8892         regno_aclass instead of ira_class_translate and regno_cover_class.
8893         Modify code for finding regno_aclass.  Setup preferred classes for
8894         the next pass.
8895         (setup_allocno_cover_class_and_costs): Rename to
8896         setup_allocno_class_and_costs.  Use regno_aclass instead of
8897         regno_cover_class.  Use ira_set_allocno_class instead of
8898         ira_set_allocno_cover_class.
8899         (init_costs, finish_costs): Use regno_aclass instead of
8900         regno_cover_class.
8901         (ira_costs): Use setup_allocno_class_and_costs instead of
8902         setup_allocno_cover_class_and_costs.
8903         (ira_tune_allocno_costs_and_cover_classes): Rename to
8904         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8905         by processing objects.  Use ira_reg_class_max_nregs instead of
8906         ira_reg_class_nregs.
8907
8908         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8909
8910         * sched-int.h: Remove mentioning cover classes from the file.
8911         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8912
8913         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8914         classes from the file.
8915         (struct reg_pref): Rename coverclass into allocnoclass.
8916         (reg_cover_class): Rename to reg_allocno_class.
8917
8918         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8919
8920         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8921
8922         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8923
8924         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8925
8926         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8927
8928         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8929
8930         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8931
8932         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8933
8934         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8935
8936         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8937
8938         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8939         (i386_ira_cover_classes): Ditto.
8940
8941         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8942
8943         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8944
8945         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8946
8947         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8948
8949         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8950
8951         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8952
8953         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8954         (mips_ira_cover_classes): Ditto.
8955
8956         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8957
8958         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8959
8960         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8961
8962         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8963
8964         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8965
8966         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8967         (IRA_COVER_CLASSES_VSX): Ditto.
8968
8969         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8970         (rs6000_ira_cover_classes): Ditto.
8971
8972         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8973
8974         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8975
8976         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8977
8978         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8979
8980         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8981
8982         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8983
8984         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8985
8986         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8987
8988         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8989
8990         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8991
8992 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8993
8994         PR debug/48253
8995         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8996         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8997         dw_fde_unlikely_section_end_label, cold_in_std_section,
8998         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8999         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9000         fields.
9001         (output_fde): Use dw_fde_second_{begin,end} if second is
9002         true, otherwise dw_fde_{begin,end}.
9003         (output_call_frame_info): Test dw_fde_second_begin != NULL
9004         instead of dw_fde_switched_sections.
9005         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9006         fields, initialize new fields.  Initialize in_std_section
9007         unconditionally from the first partition.
9008         (dwarf2out_end_epilogue): Don't override dw_fde_end when
9009         dw_fde_second_begin is non-NULL.
9010         (dwarf2out_switch_text_section): Stop initializing removed
9011         dw_fde_struct fields, initialize new fields, initialize
9012         also dw_fde_end here.  Set dw_fde_switch_cfi even when
9013         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
9014         (struct var_loc_list_def): Add last_before_switch field.
9015         (arange_table, arange_table_allocated, arange_table_in_use,
9016         ARANGE_TABLE_INCREMENT, add_arange): Removed.
9017         (size_of_aranges): Count !in_std_section and !second_in_std_section
9018         hunks in fdes, instead of looking at arange_table_in_use.
9019         (output_aranges): Add aranges_length argument, don't call
9020         size_of_aranges here.  Instead of using aranges_table*
9021         emit ranges for fdes when !in_std_section resp.
9022         !second_in_std_section.
9023         (dw_loc_list): Break ranges crossing section switch.
9024         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
9025         use dw_fde_second_end instead of dw_fde_end as end of last range.
9026         (gen_subprogram_die): Don't call add_arange.  Use
9027         dw_fde_{begin,end} for first partition and if switched
9028         section dw_fde_second_{begin,end} for the second.
9029         (var_location_switch_text_section_1,
9030         var_location_switch_text_section): New functions.
9031         (dwarf2out_begin_function): Initialize cold_text_section even
9032         when function_section () isn't text_section.
9033         (prune_unused_types): Don't walk arange_table.
9034         (dwarf2out_finish): Don't needlessly test
9035         flag_reorder_blocks_and_partition when testing cold_text_section_used.
9036         If info_section_emitted, call size_of_aranges and if it indicates
9037         non-empty .debug_aranges, call output_aranges with the computed
9038         size.  Stop using removed dw_fde_struct fields, use
9039         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9040         for second.
9041
9042         PR debug/48203
9043         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9044         create ENTRY_VALUE if incoming or address of incoming's MEM
9045         is a hard REG.
9046         * dwarf2out.c (mem_loc_descriptor): Don't emit
9047         DW_OP_GNU_entry_value of DW_OP_fbreg.
9048         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9049         on ENTRY_VALUE is able to find the canonical parameter VALUE.
9050         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9051         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9052         ENTRY_VALUE_EXPs.
9053         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9054         is a REG_P or MEM_P with REG_P address, compute hash directly
9055         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9056         (preserve_only_constants): Don't clear VALUES forwaring
9057         ENTRY_VALUE to some other VALUE.
9058
9059 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
9060
9061         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9062         instead of GEN_INT.
9063
9064 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9065
9066         * cfgexpand.c (expand_gimple_cond): Always set the source location and
9067         block before expanding the statement.
9068         (expand_gimple_stmt_1): Likewise.  Set them here...
9069         (expand_gimple_stmt): ...and not here.  Tidy.
9070         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9071         unknown.
9072
9073 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9074
9075         * Makefile.in: New rule for cprop.o.
9076         * gcse.c: Move constant/copy propagation to cprop.c.
9077         (compute_local_properties): Only handle expression tables.
9078         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9079         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9080         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9081         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9082         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9083         compute_cprop_data, find_used_regs, try_replace_reg,
9084         find_avail_set, cprop_jump, constprop_register, cprop_insn,
9085         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9086         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9087         find_bypass_set, reg_killed_on_edge, bypass_block,
9088         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9089         execute_rtl_cprop, pass_rtl_cprop): Move to...
9090         * cprop.c: ...here.  New file, constant/copy propagation for RTL
9091         moved from gcse.c to here with minor cleanups in duplicated code.
9092
9093 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9094
9095         * config/i386/i386.c (flag_opts): Fix a typo in
9096         -mavx256-split-unaligned-store.
9097
9098 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9099
9100         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9101         LIBCALL_VALUE): Remove macros.
9102         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9103         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9104         (h8300_function_value, h8300_libcall_value,
9105         h8300_function_value_regno_p): New functions.
9106
9107 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9108
9109         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9110
9111 2011-03-28  Jeff Law  <law@redhat.com>
9112
9113         * tree-ssa-threadupdate.c (redirect_edges): Call
9114         create_edge_and_update_destination_phis as needed.
9115         (create_edge_and_update_destination_phis): Accept new BB argument.
9116         All callers updated.
9117         (thread_block): Do not update the profile when threading around
9118         intermediate blocks.
9119         (thread_single_edge): Likewise.
9120         (determine_bb_domination_status): If BB is not a successor of the
9121         loop header, return NONDOMINATING.
9122         (register_jump_thread): Note when we register a jump thread around
9123         an intermediate block.
9124         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9125         (thread_across_edge): Use it.
9126
9127 2011-03-28  Tristan Gingold  <gingold@adacore.com>
9128
9129         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9130         when for_return is 2.
9131
9132 2011-03-28  Jeff Law  <law@redhat.com>
9133
9134         * var-tracking.c (canonicalize_values_mark): Delete unused
9135         lhs assignment.
9136         (canonicalize_values_star, set_variable_part): Likewise.
9137         (clobber_variable_part, delete_variable_part): Likewise.
9138
9139 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9140
9141         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9142
9143 2011-03-28  Martin Jambor  <mjambor@suse.cz>
9144
9145         * tree-inline.c (expand_call_inline): Do not check that destination
9146         node is analyzed.
9147         (optimize_inline_calls): Assert that destination node is analyzed.
9148         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9149         not call tree_lowering_passes.
9150         * cgraph.h (cgraph_analyze_function): Declare.
9151         * cgraphunit.c (cgraph_analyze_function): Make public.
9152
9153 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
9154
9155         * config/sparc/sparc-opts.h: New.
9156         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9157         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9158         (sparc_option_override): Store processor_type enumeration rather
9159         than string in cpu_default.  Remove name and enumeration from
9160         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
9161         without using sparc_select.  Use target_flags_explicit instead of
9162         fpu_option_set.
9163         * config/sparc/sparc.h (enum processor_type): Move to
9164         sparc-opts.h.
9165         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9166         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9167         HeaderInclude entry.
9168         (mcpu=, mtune=): Use Var and Enum.
9169         (sparc_processor_type): New Enum and EnumValue entries.
9170
9171 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9172             Iain Sandoe  <iains@gcc.gnu.org>
9173
9174         PR target/48245
9175         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9176
9177 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9178
9179         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9180         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9181         Insert new statements at it in lieu of STMT.
9182         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9183         * tree-vect-stmts.c (vectorizable_store): Likewise.
9184         (vectorizable_load): Likewise.
9185
9186 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9187
9188         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9189         (divtf3): Ditto.
9190         (multf3): Ditto.
9191         (subtf3): Ditto.
9192
9193 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9194
9195         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9196         unaligned 256bit load/store.
9197         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9198         (*avx_movdqu<avxmodesuffix>): Likewise.
9199
9200 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9201
9202         PR target/48288
9203         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9204         * config/pa/pa.md (iordi3): Use new predicate in expander.
9205         (iorsi3): Likewise.
9206
9207 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9208
9209         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9210         FUNCTION_VALUE_REGNO_P): Remove macros.
9211         * config/mips/mips-protos.h (mips_function_value): Remove.
9212         * config/mips/mips.c (mips_function_value): Rename to...
9213         (mips_function_value_1): ... this. Make static.  Handle receiving
9214         the function type in 'fn_decl_or_type' argument.
9215         (mips_function_value, mips_libcall_value,
9216         mips_function_value_regno_p): New function.
9217         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9218         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9219
9220 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9221
9222         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9223         and -mavx256-split-unaligned-store.
9224         (ix86_option_override_internal): Split 32-byte AVX unaligned
9225         load/store by default.
9226         (ix86_avx256_split_vector_move_misalign): New.
9227         (ix86_expand_vector_move_misalign): Use it.
9228
9229         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9230         -mavx256-split-unaligned-store.
9231
9232         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9233         256bit load/store.  Generate unaligned store on misaligned memory
9234         operand.
9235         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9236         256bit load/store.
9237         (*avx_movdqu<avxmodesuffix>): Likewise.
9238
9239         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9240         -mavx256-split-unaligned-store.
9241
9242 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9243
9244         PR target/38598
9245         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9246         Update commentary.
9247
9248 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9249
9250         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9251         opno arguments with an expand_operand.  Use create_input_operand.
9252         (mips_prepare_builtin_target): Delete.
9253         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9254         functions.
9255         (mips_expand_builtin_direct): Use create_output_operand and
9256         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9257         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9258         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9259
9260 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9261
9262         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9263         function.
9264         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9265
9266 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9267
9268         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9269         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9270         basic blocks and call commit_edge_insertions directly.
9271         (fixup_abnormal_edges): Move from here to...
9272         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9273         on the edges and return whether some have actually been inserted.
9274         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9275         compensation code.
9276
9277 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9278
9279         PR rtl-optimization/48144
9280         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9281         (merge_expr_data): ... here.
9282         (av_set_intersect): Rename to av_set_code_motion_filter.
9283         Update all callers.  Call merge_history_vect when an expression
9284         is found in both sets.
9285         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9286
9287 2011-03-26  Alan Modra  <amodra@gmail.com>
9288
9289         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9290         cmodel medium addresses.
9291         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9292         64-bit gpr loads and stores.
9293         (rs6000_secondary_reload_ppc64): New function.
9294         * config/rs6000/rs6000-protos.h: Declare it.
9295         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9296
9297 2011-03-26  Alan Modra  <amodra@gmail.com>
9298
9299         PR target/47487
9300         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9301         GNU Go in traceback table.
9302
9303 2011-03-25  Richard Henderson  <rth@redhat.com>
9304
9305         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9306         if there are exactly 6 operands.
9307         (set_storage_via_setmem): Similarly.
9308
9309 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9310
9311         * collect2.c (write_c_file_stat): Handle backslash
9312         as right-hand directory separator.
9313         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9314         checking just for slash.
9315         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9316         instead of checking for trailing slash.
9317         * gcc.c (record_temp_file): Use filename_cmp instead
9318         of strcmp.
9319         (do_spec_1): Likewise.
9320         (replace_outfile_spec_function): Likewise.
9321         (is_directory): Use filename_ncmp instead of strncmp.
9322         (print_multilib_info): Likewise.
9323         * gcov.c (find_source): Use filename_cmp instead
9324         instead of strcmp.
9325         (make_gcov_file_name): Fix order of slash/backslash
9326         checks.
9327         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9328         (add_standard_paths): Likewise.
9329         * mips-tfile.c (saber_stop): Handle backslash.
9330         * prefix.c (update_path): Use filename_ncmp instead of
9331         strncmp.
9332         * profile.c (output_location): Use filename_cmp instead
9333         of strcmp.
9334         * read-md.c (handle_toplevel_file): Handle backslash.
9335         * tlink.c (frob_extension):  Likewise.
9336         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9337         strcmp.
9338         * tree-dump.c (dequeue_and_dump): Handle backslash.
9339         * tree.c (get_file_function_name): Likewise.
9340         * gengtype.c (read_input_list): Likewise.
9341         (get_file_realbasename): Likewise.
9342         (get_output_file_with_visibility): Use filename_cmp
9343         instead of strcmp.
9344
9345 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9346
9347         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9348         case to VFPv1.
9349
9350 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9351
9352         * fold-const.c (expr_location_or): New function.
9353         (fold_truth_not_expr): Call it.
9354
9355 2011-03-25  Jeff Law  <law@redhat.com>
9356
9357         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9358         va_end.
9359         * c-family/c-common.c (def_fn_type): Likewise.
9360         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9361         * emit-rtl.c (gen_rtvec): Likewise.
9362         * lto/lto-lang.c (def_fn_type): Likewise.
9363
9364 2011-03-25  Richard Guenther  <rguenther@suse.de>
9365
9366         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9367         also generate copies.
9368         (fini_copy_prop): Handle constant values properly.
9369
9370 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9371
9372         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9373         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9374         (hash_loc_operands, compare_loc_operands): Handle
9375         DW_OP_GNU_entry_value.
9376
9377 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9378
9379         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9380         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9381         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9382         comment and use macro TARGET_64BIT_MS_ABI instead.
9383         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9384         and change default behavior for 32-bit MS_ABI.
9385         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9386         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9387         32-bit, too.
9388         (ix86_cfun_abi): Likewise.
9389         (ix86_maybe_switch_abi): Adjust comment.
9390         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9391         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9392         instead of checking for SYSV_ABI.
9393         (ix86_nsaved_sseregs): Likewise.
9394         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9395         to 16 bytes.
9396         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9397         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9398         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9399         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9400         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9401
9402 2011-03-25  Richard Guenther  <rguenther@suse.de>
9403
9404         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9405         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9406         (verify_gimple): Remove.
9407         * tree-cfg.c (verify_gimple_call): Merge verification
9408         from verify_stmts.
9409         (verify_gimple_phi): Merge verification from verify_stmts.
9410         (verify_gimple_label): New function.
9411         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9412         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9413         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9414         (verify_stmts): Rename to verify_gimple_in_cfg.
9415         (verify_gimple_in_cfg): New function.
9416         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9417         * tree-ssa.c (verify_ssa): Likewise.
9418         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9419
9420 2011-03-25  Richard Guenther  <rguenther@suse.de>
9421
9422         * passes.c (init_optimization_passes): Add FRE pass after
9423         early SRA.
9424
9425 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9426             Andrew Stubbs  <ams@codesourcery.com>
9427
9428         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9429         for Cortex-A8.
9430         (arm_movdi_vfp_cortexa8): New pattern.
9431         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9432         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9433         instructions when tuning for Cortex-A8.  Set attribute "arch".
9434         * config/arm/arm.md: Move include arm-tune.md up a bit.
9435         (define_attr "arch"): Add "onlya8" and "nota8" values.
9436         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9437
9438 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9439
9440         PR bootstrap/48282
9441         Revert:
9442         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9443
9444         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9445         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9446         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9447         * passes.c (init_optimization_passes): Move
9448         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9449
9450 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9451
9452         * c-typeck.c (comptypes_internal): Replace target
9453         hook call of comp_type_attributes by version in tree.c file.
9454         * gimple.c (gimple_types_compatible_p_1): Likewise.
9455         * tree-ssa.c (useless_type_conversion_p): Likewise.
9456         * tree.c (build_type_attribute_qual_variant): Likewise.
9457         (attribute_value_equal): New static helper function.
9458         (comp_type_attributes): New function.
9459         (merge_attributes): Use attribute_value_equal for comparison.
9460         (attribute_list_contained): Likewise.
9461         * tree.h (comp_type_attributes): New prototype.
9462
9463 2011-03-25  Richard Guenther  <rguenther@suse.de>
9464
9465         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9466         of complex types at -O0.
9467         (verify_gimple_assign_binary): Likewise.
9468         (verify_gimple_assign_ternary): Likewise.
9469
9470 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9471
9472         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9473         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9474
9475 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9476
9477         PR debug/48041
9478         * dwarf2out.c (output_abbrev_section): Only write table when
9479         abbrev_die_table_in_use > 1.
9480
9481 2011-02-24  Richard Henderson  <rth@redhat.com>
9482
9483         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9484         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9485         (alpha_expand_unaligned_load_words): Use extql.
9486         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9487         (emit_insxl): Handle all modes for consistency.
9488
9489 2011-02-24  Richard Henderson  <rth@redhat.com>
9490
9491         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9492         (alpha_expand_unaligned_load): Likewise.
9493         (alpha_expand_unaligned_store): Likewise.
9494         (alpha_expand_unaligned_load_words): Likewise.
9495         (alpha_expand_unaligned_store_words): Likewise.
9496         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9497         (alpha_split_lock_test_and_set_12): Likewise.
9498         (print_operand, alpha_fold_builtin_extxx): Likewise.
9499         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9500         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9501         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9502         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9503         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9504         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9505         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9506         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9507         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9508         (extwl, extll, extql): Similarly.
9509         (inswh, inslh, insqh): Similarly.
9510         (mskbl, mskwl, mskll, mskql): Similarly.
9511         (mskwh, msklh, mskqh): Similarly.
9512
9513 2011-02-24  Richard Henderson  <rth@redhat.com>
9514
9515         * config/alpha/alpha.md (attribute isa): Add er, ner.
9516         (attribute enabled): Handle them.
9517         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9518
9519 2011-02-24  Richard Henderson  <rth@redhat.com>
9520
9521         * config/alpha/alpha.md (attribute isa): Add vms.
9522         (attribute enabled): Handle it.
9523         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9524         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9525         (*movtf): Rename from *movtf_internal for consistency.
9526         (*movsi): Merge with *movsi_nt_vms.
9527         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9528         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9529         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9530         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9531
9532 2011-02-24  Richard Henderson  <rth@redhat.com>
9533
9534         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9535         (extendqisi2, extendhisi2): Likewise.
9536         (extendqidi2): Simplify BWX/non-BWX expansions.
9537         (extendhidi2): Similarly.
9538
9539 2011-02-24  Richard Henderson  <rth@redhat.com>
9540
9541         * config/alpha/alpha.md (attribute isa): New.
9542         (attribute enabled): New.
9543         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9544         (zero_extendqisi2, zero_extendqidi2): Similarly.
9545         (zero_extendhisi2, zero_extendhidi2): Similarly.
9546         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9547
9548 2011-02-24  Richard Henderson  <rth@redhat.com>
9549
9550         * config/alpha/predicates.md (input_operand): Revert last change;
9551         update comment to mention 32-bit VMS rather than Windows.
9552
9553 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9554
9555         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9556         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9557         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9558         * passes.c (init_optimization_passes): Move
9559         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9560
9561 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9562
9563         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9564
9565 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9566
9567         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9568         correctly.
9569
9570 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9571
9572         PR debug/48204
9573         * simplify-rtx.c (simplify_const_unary_operation): Call
9574         real_convert when changing mode class with FLOAT_EXTEND.
9575
9576 2011-03-24  Nick Clifton  <nickc@redhat.com>
9577
9578         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9579         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9580         * config/rx/rx.c (rx_option_override): Set align_jumps,
9581         align_loops and align_labels if not set by the user.
9582         (rx_align_for_label): New function.
9583         (rx_max_skip_for_label): New function.
9584         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9585         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9586         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9587         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9588         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9589
9590 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9591
9592         PR rtl-optimization/48263
9593         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9594         and original commutative_p handling.  Use maybe_gen_insn.
9595
9596 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9597
9598         * reload.c (find_reloads_subreg_address): Add address_reloaded
9599         parameter and return true there if the full address has been
9600         reloaded.
9601         (find_reloads_toplev): Pass address_reloaded flag.
9602         (find_reloads_address_1): Don't use address_reloaded parameter.
9603
9604 2011-03-24  Jeff Law  <law@redhat.com>
9605
9606         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9607         unused variable "ann".
9608         (remove_unused_locals): Likewise.
9609
9610         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9611         statement.
9612
9613         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9614         after it is freed.
9615
9616 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9617
9618         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9619         for invalid symbolic addresses.
9620         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9621         larl operands.
9622
9623 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9624
9625         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9626         the argument in calls to fold_truth_not_expr.
9627
9628 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9629
9630         * tree.c (record_node_allocation_statistics): New function.
9631         (make_node_stat, copy_node_stat, build_string): Call it.
9632         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9633         (build1_stat, build_omp_clause): Likewise.
9634
9635 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9636
9637         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9638         last commit.
9639
9640 2011-03-24  Richard Guenther  <rguenther@suse.de>
9641
9642         PR tree-optimization/48271
9643         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9644         blocks that still exist.
9645
9646 2011-03-24  Richard Guenther  <rguenther@suse.de>
9647
9648         PR tree-optimization/48270
9649         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9650         not free datarefs before ddrs.
9651
9652 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9653
9654         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9655         from the address built for a reference with variable offset.
9656
9657 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9658
9659         PR target/48237
9660         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9661         alternatives that can be handled with movq or movabsq insn.
9662         (*movdf_internal): Disable for !TARGET_64BIT.
9663         (*movdf_internal_nointeger): Ditto.
9664         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9665
9666 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9667
9668         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9669         (FUNCTION_ARG_ADVANCE): Likewise.
9670         * tm.texi.in: Change references to them to hook references.
9671         * tm.texi: Regenerate.
9672         * targhooks.c (default_function_arg): Eliminate check for target macro.
9673         (default_function_incoming_arg): Likewise.
9674         (default_function_arg_advance): Likewise.
9675         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9676         (function_arg_advance): Likewise.
9677         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9678
9679 2011-03-24  Richard Guenther  <rguenther@suse.de>
9680
9681         PR middle-end/48269
9682         * tree-object-size.c (addr_object_size): Do not double-account
9683         for MEM_REF offsets.
9684
9685 2011-03-24  Diego Novillo  <dnovillo@google.com>
9686
9687         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9688         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9689         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9690         Update all users.
9691         (lto_input_string): Rename from input_string.  Make extern.
9692         Update all users.
9693         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9694         output_string_with_length.
9695         Output 0 to indicate a non-NULL string.  Update all callers to
9696         not emit 0.
9697         (lto_output_string): Rename from output_string.  Make extern.
9698         Update all users.
9699         (lto_output_decl_state_streams): Make extern.
9700         (lto_output_decl_state_refs): Make extern.
9701         * lto-streamer.h (lto_input_string): Declare.
9702         (lto_input_data_block): Declare.
9703         (lto_output_string): Declare.
9704         (lto_output_string_with_length): Declare.
9705         (lto_output_decl_state_streams): Declare.
9706         (lto_output_decl_state_refs): Declare.
9707
9708 2011-03-24  Richard Guenther  <rguenther@suse.de>
9709
9710         PR tree-optimization/46562
9711         * tree.c (build_invariant_address): New function.
9712         * tree.h (build_invariant_address): Declare.
9713         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9714         a renamed function moved ...
9715         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9716         Take valueization callback parameter.
9717         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9718         * gimple-fold.h: New file.
9719         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9720         (ccp_fold, fold_const_aggregate_ref,
9721         fold_ctor_reference, fold_nonarray_ctor_reference,
9722         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9723         get_base_constructor): Move ...
9724         * gimple-fold.c: ... here.
9725         (gimple_fold_stmt_to_constant_1): New function
9726         split out from ccp_fold.  Take a valueization callback parameter.
9727         Valueize all operands.
9728         (gimple_fold_stmt_to_constant): New wrapper function.
9729         (fold_const_aggregate_ref_1): New function split out from
9730         fold_const_aggregate_ref.  Take a valueization callback parameter.
9731         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9732         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9733         invariant POINTER_PLUS_EXPRs to invariant form.
9734         (vn_valueize): New function.
9735         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9736         * tree-vrp.c (vrp_valueize): New function.
9737         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9738         to fold statements to constants.
9739         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9740         function declarations.
9741         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9742         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9743
9744 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9745
9746         * config/h8300/predicates.md (jump_address_operand): Fix register
9747         mode check.
9748
9749 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9750
9751         * doc/invoke.texi (max-stores-to-sink): Document.
9752         * params.h (MAX_STORES_TO_SINK): Define.
9753         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9754         if either vectorization or if-conversion is disabled.
9755         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9756         tree-vect-data-refs.c vect_equal_offsets.
9757         (dr_equal_offsets_p): New function.
9758         (find_data_references_in_bb): Remove static.
9759         * tree-data-ref.h (find_data_references_in_bb): Declare.
9760         (dr_equal_offsets_p): Likewise.
9761         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9762         (vect_drs_dependent_in_basic_block): Update calls to
9763         vect_equal_offsets.
9764         (vect_check_interleaving): Likewise.
9765         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9766         (cond_if_else_store_replacement): Rename to...
9767         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9768         documentation.
9769         (cond_if_else_store_replacement): New function.
9770         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9771         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9772
9773 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9774
9775         PR target/46934
9776         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9777         to subtract lower bound instead of GEN_INT().
9778
9779 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9780
9781         PR other/48179
9782         PR other/48221
9783         PR other/48234
9784         * doc/extend.texi (Alignment): Move section to match order in TOC.
9785         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9786         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9787
9788 2011-03-23  Jeff Law  <law@redhat.com>
9789
9790         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9791         before removing the edge.
9792
9793         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9794         it may have been freed by redirect_branch_edge or
9795         redirect_edge_succ_nodup.
9796
9797 2011-03-23  Richard Guenther  <rguenther@suse.de>
9798
9799         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9800         (check_va_list_escapes): Likewise.
9801         (check_all_va_list_escapes): Likewise.
9802
9803 2011-03-23  Richard Guenther  <rguenther@suse.de>
9804
9805         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9806         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9807         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9808         (alias.o): Likewise.
9809         (ipa-type-escape.o): Remove.
9810         (ipa-struct-reorg.o): Likewise.
9811         (GTFILES): Remove ipa-struct-reorg.c.
9812         * alias.c: Do not include ipa-type-escape.h.
9813         * tree-ssa-alias.c: Likewise.
9814         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9815         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9816         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9817         and ipa-type-escape passes.
9818         * tree-pass.h (pass_ipa_type_escape): Remove.
9819         (pass_ipa_struct_reorg): Likewise.
9820         * ipa-struct-reorg.h: Remove.
9821         * ipa-struct-reorg.c: Likewise.
9822         * ipa-type-escape.h: Likewise.
9823         * ipa-type-escape.c: Likewise.
9824         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9825         (--param struct-reorg-cold-struct-ratio): Likewise.
9826         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9827         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9828         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9829
9830 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9831
9832         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9833         cpu attribute value.
9834         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9835         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9836         * config/s390/s390.c (processor_flags_table): New constant array.
9837         (s390_handle_arch_option): Remove.
9838         (s390_handle_option): Remove s390_handle_arch_option invocations
9839         and OPT_mwarn_framesize_ handling.
9840         (s390_option_override): Remove s390_handle_arch_option invocation.
9841         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9842         warnings.
9843         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9844         * config/s390/s390.opt (s390_tune, s390_arch)
9845         (march=): Replace s390_arch_option enum and values with
9846         processor_type.  Set variable name to s390_arch.  Set
9847         initialization value.
9848         (mtune=): Replace s390_arch_option with processor_type.  Set
9849         variable name to s390_tune.  Set initialization value.
9850
9851 2011-03-23  Julian Brown  <julian@codesourcery.com>
9852
9853         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9854         accesses which are not naturally aligned.
9855
9856 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9857
9858         PR target/47553
9859         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9860
9861 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9862
9863         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9864         parameter from "int" to "enum insn_code".
9865         (expand_operand_type): New enum.
9866         (expand_operand): New structure.
9867         (create_expand_operand): New function.
9868         (create_fixed_operand, create_output_operand): Likewise
9869         (create_input_operand, create_convert_operand_to): Likewise.
9870         (create_convert_operand_from, create_address_operand): Likewise.
9871         (create_integer_operand): Likewise.
9872         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9873         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9874         (expand_insn, expand_jump_insn): Likewise.
9875         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9876         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9877         (expand_movstr, expand_builtin___clear_cache): Likewise.
9878         (expand_builtin_lock_release): Likewise.
9879         * explow.c (allocate_dynamic_stack_space): Likewise.
9880         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9881         and use the default handling in that case.
9882         * expmed.c (check_predicate_volatile_ok): Delete.
9883         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9884         (emit_cstore): Likewise.
9885         * expr.c (emit_block_move_via_movmem): Likewise.
9886         (set_storage_via_setmem, expand_assignment): Likewise.
9887         (emit_storent_insn, try_casesi): Likewise.
9888         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9889         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9890         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9891         (expand_twoval_unop, expand_twoval_binop): Likewise.
9892         (expand_unop_direct, emit_indirect_jump): Likewise.
9893         (emit_conditional_move, vector_compare_rtx): Likewise.
9894         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9895         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9896         (expand_sync_lock_test_and_set): Likewise.
9897         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9898         (emit_unop_insn): Likewise.
9899         (expand_copysign_absneg): Change icode to an insn_code.
9900         (create_convert_operand_from_type): New function.
9901         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9902         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9903         (expand_insn, expand_jump_insn): Likewise.
9904         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9905         than const_int_operand for operand 2.
9906
9907 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9908
9909         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9910         if possible.
9911
9912 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9913
9914         * emit-rtl.c (emit_pattern_before_noloc): New function.
9915         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9916         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9917         (emit_pattern_after_noloc): New function.
9918         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9919         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9920
9921 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9922
9923         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9924         (__ffsDI2): Likewise.
9925
9926 2011-03-22  Richard Henderson  <rth@redhat.com>
9927
9928         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9929         of !TARGET_ABI_OPEN_VMS.
9930         (alpha_trampoline_init, alpha_start_function): Likewise.
9931         (alpha_expand_epilogue, alpha_file_start): Likewise.
9932         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9933         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9934         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9935         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9936         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9937
9938 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9939
9940         * config/s390/s390-opts.h: New.
9941         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9942         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9943         s390_stack_guard): Remove.
9944         (s390_handle_arch_option): Return void.  Take enum
9945         s390_arch_option value instead of string and searching array.
9946         (s390_handle_option): Don't assert that global structures are in
9947         use.  Access variables via opts pointer.  Use error_at.  Don't use
9948         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9949         s390_handle_arch_option.
9950         (s390_option_override): Update call to s390_handle_arch_option.
9951         (s390_emit_prologue): Use %d format for s390_stack_size in
9952         diagnostic.  Use %wd for HOST_WIDE_INT.
9953         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9954         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9955         * config/s390/s390.opt (config/s390/s390-opts.h): New
9956         HeaderInclude entry.
9957         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9958         s390_arch_flags, s390_warn_framesize): New Variable entries.
9959         (s390_arch_option): New Enum and EnumValue entries.
9960         (march=): Use Enum instead of Var.
9961         (mstack-guard=, mstack-size=): Use UInteger and Var.
9962         (mtune=): Use Enum.
9963
9964 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9965
9966         * config/score/score.c (score_handle_option): Don't assert that
9967         global structures are in use.  Access target_flags via opts
9968         pointer.  Use value of -march= option to determine target_flags
9969         settings.
9970         * config/score/score.opt (march=): Use Enum.
9971         (score_arch): New Enum and EnumValue entries.
9972
9973 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9974
9975         * config/mep/mep.c (option_mtiny_specified): Remove.
9976         (mep_option_override): Move register handling for -mivc2 from
9977         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9978         instead of option_mtiny_specified.
9979         (mep_handle_option): Access target_flags via opts pointer.  Don't
9980         assert that global structures are in use.  Defer part of -mivc2
9981         handling and move it to mep_option_override.
9982         * config/mep/mep.opt (IVC2): New Mask entry.
9983         (mivc2): Use Var and Defer instead of Mask.
9984
9985 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9986
9987         * config/v850/v850-opts.h: New.
9988         * config/v850/v850.c (small_memory): Replace with
9989         small_memory_physical_max array.  Make that array static const.
9990         (v850_handle_memory_option): Take integer value of argument.  Take
9991         gcc_options pointer, option text and location.  Return void.
9992         Update for changes to small memory structures.
9993         (v850_handle_option): Access target_flags via opts pointer.  Don't
9994         assert that global structures are in use.  Update calls to
9995         v850_handle_memory_option.
9996         (v850_encode_data_area): Update references to small memory settings.
9997         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9998         (enum small_memory_type): Move to v850-opts.h.
9999         * config/v850/v850.opt (config/v850/v850-opts.h): New
10000         HeaderInclude entry.
10001         (small_memory_max): New Variable entry.
10002         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
10003         (mtda, mzda): Likewise.
10004
10005 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10006
10007         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10008         pointer.  Don't assert that global structures are in use.
10009
10010 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10011
10012         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10013         via opts pointer.  Don't assert that global structures are in use.
10014
10015 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10016
10017         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10018         (munix=93): Use Var.
10019         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10020         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10021         * config/pa/pa-opts.h: New.
10022         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10023         (pa_handle_option): Don't assert that global structures are in
10024         use.  Access target_flags via opts pointer.  Don't handle
10025         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10026         OPT_munix_98 here.
10027         (pa_option_override): Handle deferred OPT_mfixed_range_.
10028
10029 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10030
10031         * config/mn10300/mn10300-opts.h: New.
10032         * config/mn10300/mn10300.c (mn10300_processor,
10033         mn10300_tune_string): Remove.
10034         (mn10300_handle_option): Don't assert that global structures are
10035         in use.  Access mn10300_processor via opts pointer.  Don't handle
10036         OPT_mtune_ here.
10037         * config/mn10300/mn10300.h (enum processor_type): Move to
10038         mn10300-opts.h.
10039         (mn10300_processor): Remove.
10040         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10041         HeaderInclude entry.
10042         (mn10300_processor): New Variable entry.
10043         (mtune=): Use Var.
10044
10045 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10046
10047         * config/microblaze/microblaze.c: Don't include opts.h.
10048         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10049         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10050         (mno-clearbss): Use Var and Warn.
10051
10052 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10053
10054         * config/m32r/m32r-opts.h: New.
10055         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10056         (m32r_handle_option): Don't assert that global structures are in
10057         use.  Access target_flags and m32r_cache_flush_func via opts
10058         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
10059         OPT_mno_flush_trap here.
10060         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10061         include of m32r-opts.h.
10062         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10063         HeaderInclude entry.
10064         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10065         (mmodel=): Use Enum and Var.
10066         (m32r_model): New Enum and EnumValue entries.
10067         (mno-flush-trap): Use Var.
10068         (msdata=): Use Enum and Var.
10069         (m32r_sdata): New Enum and EnumValue entries.
10070
10071 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10072
10073         * config/m32c/m32c.c: Don't include opts.h.
10074         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10075         m32c_handle_option): Remove.
10076         (m32c_option_override): Check global_options_set.x_target_memregs
10077         instead of target_memregs_set.
10078         * config/m32c/m32c.h (target_memregs): Remove.
10079         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10080         variable.
10081
10082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10083
10084         * config/iq2000/iq2000-opts.h: New.
10085         * config/iq2000/iq2000.c: Don't include opts.h.
10086         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10087         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10088         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10089         HeaderInclude entry.
10090         (iq2000_tune): New Variable entry.
10091         (march=): Add comment.  Use Enum.
10092         (iq2000_arch): New Enum and EnumValue entries.
10093         (mcpu=): Use Enum and Var.
10094         (iq2000_tune): New Enum and EnumValue entries.
10095
10096 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10097
10098         * config/ia64/ia64-opts.h: New.
10099         * config/ia64/ia64.c (ia64_tune): Remove.
10100         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10101         here.  Use error_at.
10102         (ia64_option_override): Handle deferred OPT_mfixed_range_.
10103         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10104         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10105         HeaderInclude entry.
10106         (ia64_tune): New Variable entry.
10107         (mfixed-range=): Use Defer and Var.
10108         (mtune=): Use Enum and Var.
10109         (ia64_tune): New Enum and EnumValue entries.
10110
10111 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10112
10113         * config/frv/frv-opts.h: New.
10114         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10115         frv-opts.h.
10116         (frv_cpu_type): Remove.
10117         * config/frv/frv.c: Don't include opts.h.
10118         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10119         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10120         (frv_cpu_type): New Variable entry.
10121         (frv_cpu): New Enum and EnumValue entries.
10122
10123 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10124
10125         * config/cris/cris.c (cris_handle_option): Access target_flags via
10126         opts pointer.  Don't assert that global structures are in use.
10127         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10128         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10129
10130 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10131
10132         * config/bfin/bfin-opts.h: New.
10133         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10134         bfin_si_revision, bfin_workarounds): Remove.
10135         (bfin_cpus): Make static const.
10136         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10137         not bfin_lib_id_given.
10138         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
10139         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10140         pointer. Use error_at.  Don't assert that global structures are in use.
10141         * config/bfin/bfin.h: Include bfin-opts.h.
10142         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10143         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10144         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10145         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10146         entries.
10147
10148 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10149
10150         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10151         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10152         or -msoft-float here.
10153         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10154         -msoft-float and -mhard-float.
10155         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10156         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10157         msoft-float.
10158         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10159         -msoft-float.
10160         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10161         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10162         not mhard-float.
10163         (LIBGCC_SPEC): Don't handle -msoft-float.
10164         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10165         -mhard-float.
10166         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10167         msoft-float.
10168         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10169         -mfloat-abi=*, not -msoft-float and -mhard-float.
10170         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10171         -msoft-float.
10172         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10173         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10174         mhard-float and msoft-float.
10175         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10176         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10177         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10178         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10179         mhard-float.
10180         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10181         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10182         msoft-float.
10183         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10184         not mhard-float.
10185         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10186         not msoft-float.
10187
10188 2011-03-22  Richard Henderson  <rth@redhat.com>
10189
10190         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10191         TARGET_ABI_WINDOWS_NT.
10192         (alpha_output_function_end_prologue): Likewise.
10193         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10194         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10195         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10196         (trap, *movsi_nt_vms): Likewise.
10197         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10198         (*tablejump_osf_nt_internal): Remove.
10199         * config/alpha/predicates.md (input_operand): Only test Pmode.
10200
10201 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10202
10203         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10204         via opts pointer.  Use error_at.  Don't assert that global
10205         structures are in use.
10206
10207 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10208
10209         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10210         (ix86_handle_option): Access ix86_isa_flags and
10211         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10212         global structures are in use.
10213         (ix86_function_specific_save, ix86_function_specific_restore):
10214         Update ix86_isa_flags_explicit field name.
10215         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10216         (ix86_isa_flags_explicit): Rename TargetSave entry to
10217         x_ix86_isa_flags_explicit.
10218
10219 2011-03-22  Richard Henderson  <rth@redhat.com>
10220
10221         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10222         (alpha_option_override, direct_return): Likewise.
10223         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10224         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10225         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10226         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10227         (alpha_expand_epilogue, alpha_end_function): Likewise.
10228         (alpha_init_libfuncs): Likewise.
10229         (struct machine_function): Remove unicosmk members.
10230         (print_operand) ['t']: Remove.
10231         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10232         unicosmk_output_module_name, unicosmk_output_common,
10233         current_section_align, unicosmk_output_text_section_asm_op,
10234         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10235         unicosmk_section_type_flags, unicosmk_unique_section,
10236         unicosmk_asm_named_section, unicosmk_insert_attributes,
10237         unicosmk_output_align, unicosmk_defer_case_vector,
10238         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10239         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10240         unicosmk_output_ssib, unicosmk_add_call_info_word,
10241         unicosmk_extern_head, unicosmk_output_default_externs,
10242         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10243         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10244         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10245         * config/alpha/alpha-protos.h: Update.
10246         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10247         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10248         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10249         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10250         (*mulsi_se, mulvsi3): Likewise.
10251         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10252         (*divmodsi_internal, call, call_value, realign): Likewise.
10253         (moddi3, umoddi3): Likewise; remove duplicate expander.
10254         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10255         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10256         (*movdi_nofix): Remove r/U alternative.
10257         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10258         * config/alpha/constraints.md ("U"): Remove.
10259         * config/alpha/predicates.md (call_operand"): Don't test
10260         TARGET_ABI_UNICOSMK.
10261
10262 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10263
10264         * target.def (handle_option): Take gcc_options and
10265         cl_decoded_option pointers and location_t.
10266         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10267         * doc/tm.texi: Regenerate.
10268         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10269         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10270         * lto-opts.c (lto_reissue_options): Generate option structure for
10271         targetm.handle_option call.
10272         * opts.c (target_handle_option): Update call to
10273         targetm.handle_option.  Remove assertions about values now passed
10274         down to hook.
10275         * targhooks.c (default_target_handle_option): New.
10276         * targhooks.h (default_target_handle_option): Declare.
10277         * config/alpha/alpha.c: Include opts.h.
10278         (alpha_handle_option): Update to new hook interface.
10279         * config/arm/arm.c: Include opts.h.
10280         (arm_handle_option): Update to new hook interface.
10281         * config/arm/t-arm (arm.o): Update dependencies.
10282         * config/bfin/bfin.c: Include opts.h.
10283         (bfin_handle_option): Update to new hook interface.
10284         * config/cris/cris.c: Include opts.h.
10285         (cris_handle_option): Update to new hook interface.
10286         * config/frv/frv.c: Include opts.h.
10287         (frv_handle_option): Update to new hook interface.
10288         * config/i386/i386.c: Include opts.h.
10289         (ix86_handle_option): Update to new hook interface.
10290         (ix86_valid_target_attribute_inner_p): Generate option structure
10291         for call to ix86_handle_option.
10292         * config/i386/t-i386 (i386.o): Update dependencies.
10293         * config/ia64/ia64.c: Include opts.h.
10294         (ia64_handle_option): Update to new hook interface.
10295         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10296         * config/iq2000/iq2000.c: Include opts.h.
10297         (iq2000_handle_option): Update to new hook interface.
10298         * config/m32c/m32c.c: Include opts.h.
10299         (m32c_handle_option): Update to new hook interface.
10300         * config/m32r/m32r.c: Include opts.h.
10301         (m32r_handle_option): Update to new hook interface.
10302         * config/m68k/m68k.c: Include opts.h.
10303         (m68k_handle_option): Update to new hook interface.
10304         * config/mep/mep.c: Include opts.h.
10305         (mep_handle_option): Update to new hook interface.
10306         * config/microblaze/microblaze.c: Include opts.h.
10307         (microblaze_handle_option): Update to new hook interface.
10308         * config/mips/mips.c: Include opts.h.
10309         (mips_handle_option): Update to new hook interface.
10310         * config/mn10300/mn10300.c: Include opts.h.
10311         (mn10300_handle_option): Update to new hook interface.
10312         * config/pa/pa.c: Include opts.h.
10313         (pa_handle_option): Update to new hook interface.
10314         * config/pdp11/pdp11.c: Include opts.h.
10315         (pdp11_handle_option): Update to new hook interface.
10316         * config/rs6000/rs6000.c: Include opts.h.
10317         (rs6000_handle_option): Update to new hook interface.
10318         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10319         * config/rx/rx.c: Include opts.h.
10320         (rx_handle_option): Update to new hook interface.
10321         * config/s390/s390.c: Include opts.h.
10322         (s390_handle_option): Update to new hook interface.
10323         * config/score/score.c: Include opts.h.
10324         (score_handle_option): Update to new hook interface.
10325         * config/sh/sh.c: Include opts.h.
10326         (sh_handle_option): Update to new hook interface.
10327         * config/sparc/sparc.c: Include opts.h.
10328         (sparc_handle_option): Update to new hook interface.
10329         * config/v850/v850.c: Include opts.h.
10330         (v850_handle_option): Update to new hook interface.
10331
10332 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10333
10334         * gcc.c (driver_unknown_option_callback): Only permit and save
10335         unknown -Wno- options.
10336         (driver_wrong_lang_callback): Save options directly instead of via
10337         driver_unknown_option_callback.
10338
10339 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10340
10341         * combine.c (simplify_set): Try harder to find the best CC mode when
10342         simplifying a nested COMPARE on the RHS.
10343
10344 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10345
10346         * config/alpha/gnu.h: Remove.
10347         * config/arc: Remove directory.
10348         * config/arm/netbsd.h: Remove.
10349         * config/arm/t-pe: Remove.
10350         * config/crx: Remove directory.
10351         * config/i386/netbsd.h: Remove.
10352         * config/m68hc11: Remove directory.
10353         * config/m68k/uclinux-oldabi.h: Remove.
10354         * config/mcore/mcore-pe.h: Remove.
10355         * config/mcore/t-mcore-pe: Remove.
10356         * config/netbsd-aout.h: Remove.
10357         * config/rs6000/gnu.h: Remove.
10358         * config/sh/sh-symbian.h: Remove.
10359         * config/sh/symbian-base.c: Remove.
10360         * config/sh/symbian-c.c: Remove.
10361         * config/sh/symbian-cxx.c: Remove.
10362         * config/sh/symbian-post.h: Remove.
10363         * config/sh/symbian-pre.h: Remove.
10364         * config/sh/t-symbian: Remove.
10365         * config/svr3.h: Remove.
10366         * config/vax/netbsd.h: Remove.
10367         * config.build: Don't handle i[34567]86-*-pe.
10368         * config.gcc: Remove handling of deprecations for most deprecated
10369         targets.
10370         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10371         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10372         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10373         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10374         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10375         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10376         Remove cases.
10377         * config.host: Don't handle i[34567]86-*-pe.
10378         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10379         (ASM_SPEC32): Don't handle -mcall-gnu.
10380         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10381         -mcall-gnu.
10382         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10383         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10384         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10385         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10386         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10387         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10388         conditional on SYMBIAN.
10389         * configure.ac: Don't handle powerpc*-*-gnu*.
10390         * configure: Regenerate.
10391         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10392         * doc/install-old.texi (m6811, m6812): Don't mention.
10393         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10394         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10395         (m68k-uclinuxoldabi): Don't mention.
10396         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10397         Remove.
10398         (-mcall-gnu): Remove.
10399         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10400         families): Remove constraint documentation.
10401
10402 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10403
10404         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10405         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10406         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10407
10408 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10409
10410         PR target/48226
10411         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10412         vector when peeking at the next token for vector, don't expand the
10413         keywords.
10414
10415 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10416
10417         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10418         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10419         * config/avr/avr.c (init_cumulative_args)
10420         (avr_function_arg_advance): Use it.
10421         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10422         sibcall epilogues.
10423         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10424         (avr_function_ok_for_sibcall): ...this new function.
10425         (avr_lookup_function_attribute1): New static Function.
10426         (avr_naked_function_p, interrupt_function_p)
10427         (signal_function_p, avr_OS_task_function_p)
10428         (avr_OS_main_function_p): Use it.
10429         * config/avr/avr.md ("sibcall", "sibcall_value")
10430         ("sibcall_epilogue"): New expander.
10431         ("*call_insn", "*call_value_insn"): New insn.
10432         ("call_insn", "call_value_insn"): Remove
10433         ("call", "call_value", "epilogue"): Change expander to handle
10434         sibling calls.
10435
10436 2011-03-21  Nick Clifton  <nickc@redhat.com>
10437
10438         * doc/invoke.texi (Overall Options): Move closing brace to end of
10439         options list.
10440         (Optimization Options): Add missing @gol.
10441         (Directory Options): Likewise.
10442         (i386 and x86-64 Options): Likewise.
10443         (RS6000 and PowerPC Options): Likewise.
10444         (i386 and x86-64 Windows Options): Likewise.
10445         (V850 Options): Add text missing from descriptions.
10446
10447 2011-03-22  Richard Henderson  <rth@redhat.com>
10448
10449         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10450         (avr_incoming_return_addr_rtx): New.
10451         (emit_push_byte): New.
10452         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10453         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10454         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10455         (emit_pop_byte): New.
10456         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10457         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10458         (INCOMING_RETURN_ADDR_RTX): New.
10459         (INCOMING_FRAME_SP_OFFSET): New.
10460         (ARG_POINTER_CFA_OFFSET): New.
10461         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10462         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10463         (pophi): Remove.
10464
10465         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10466
10467 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10468
10469         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10470         (FUNCTION_ARG_ADVANCE): Likewise.
10471         * tm.texi.in: Change references to them to hook references.
10472         * tm.texi: Regenerate.
10473         * targhooks.c (default_function_arg): Eliminate check for target
10474         macro.
10475         (default_function_incoming_arg): Likewise.
10476         (default_function_arg_advance): Likewise.
10477         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10478         (function_arg_advance): Likewise.
10479         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10480
10481 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10482
10483         * tree.c (build_call_1): New function.
10484         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10485
10486 2011-03-22  Richard Guenther  <rguenther@suse.de>
10487
10488         PR tree-optimization/48228
10489         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10490         for single-arg PHIs.
10491
10492 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10493
10494         PR rtl-optimization/48143
10495         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10496         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10497         sse2_cvtps2pd): Likewise.
10498
10499 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10500
10501         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10502
10503 2011-03-22  Richard Guenther  <rguenther@suse.de>
10504
10505         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10506         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10507         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10508         and REALIGN_LOAD_EXPR.
10509         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10510         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10511         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10512         DOT_PROD_EXPR case ...
10513         (expand_expr_real_2): ... here.
10514         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10515         and REALIGN_LOAD_EXPR.
10516         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10517         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10518         (vect_create_epilog_for_reduction): Likewise.
10519         (vectorizable_reduction): Likewise.
10520         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10521         * tree-vect-stmts.c (vectorizable_load): Likewise.
10522
10523 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10524
10525         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10526
10527 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10528
10529         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10530         handling for PLTOFF/GOTOFF.
10531
10532 2011-03-22  Nick Clifton  <nickc@redhat.com>
10533
10534         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10535         trailing backslash from the end of the macro definition.
10536
10537 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10538
10539         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10540         and PLT unspecs.
10541
10542 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10543
10544         * expr.h (prepare_operand): Move to...
10545         * optabs.h (prepare_operand): ...here and change the insn code
10546         parameter from "int" to "enum insn_code".
10547         (insn_operand_matches): Declare.
10548         * expr.c (init_expr_target): Use insn_operand_matches.
10549         (compress_float_constant): Likewise.
10550         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10551         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10552         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10553         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10554         Likewise.
10555         (gen_cond_trap): Likewise.
10556         (prepare_operand): Likewise.  Change icode to an insn_code.
10557         (insn_operand_matches): New function.
10558         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10559         * reload1.c (gen_reload): Likewise.
10560         * targhooks.c (default_secondary_reload): Likewise.
10561
10562 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10563
10564         * config/alpha/alpha.md (unspec): New define_c_enum.
10565         (unspecv): Ditto.
10566
10567 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10568
10569         PR debug/48214
10570         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10571         between a call and its CALL_ARG_LOCATION note.
10572
10573 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10574
10575         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10576
10577 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10578
10579         PR c/42544
10580         PR c/48197
10581         * c-common.c (shorten_compare): If primopN is first sign-extended
10582         to opN and then zero-extended to result type, set primopN to opN.
10583
10584 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10585
10586         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10587         for barrier handlers.
10588
10589 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10590
10591         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10592         UNSPEC constants to be in the unspec enumeration, and redefine
10593         all UNSPECV constants to be in the unspecv enumeration, so that
10594         dumps print which unspec/unspec_volatile this is.
10595         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10596         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10597         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10598         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10599         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10600
10601         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10602         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10603         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10604         * config/rs6000/sync.md (isync, lwsync): Ditto.
10605
10606 2011-03-21  Richard Guenther  <rguenther@suse.de>
10607
10608         * params.def (lto-min-partition): Fix typo.
10609
10610 2011-03-21  Richard Guenther  <rguenther@suse.de>
10611
10612         PR c/47939
10613         * c-decl.c (grokdeclarator): Drop to the main variant only
10614         for array types.  Drop flag_gen_aux_info check.
10615
10616 2011-03-21  Richard Guenther  <rguenther@suse.de>
10617
10618         PR translation/47911
10619         * params.def (lto-partitions): Fix typo.
10620         (lto-min-partition): Fix wording.
10621
10622 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10623
10624         * config/rs6000/t-freebsd: Remove duplication from file.
10625
10626 2011-03-21  Richard Guenther  <rguenther@suse.de>
10627
10628         PR middle-end/47661
10629         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10630
10631 2011-03-21  Richard Guenther  <rguenther@suse.de>
10632
10633         PR lto/48210
10634         * params.def (lto-partitions): Require at least 1 partition.
10635
10636 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10637
10638         * gthr-solaris.h: Remove.
10639         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10640         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10641         (LIB_SPEC): Likewise.
10642         * config/sol2.opt (threads): Remove.
10643         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10644         (sparc*-*-solaris2*): Likewise.
10645         * configure.ac (enable_threads): Enable solaris support.
10646         * configure: Regenerate.
10647         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10648         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10649         solaris.
10650
10651 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10652
10653         * config.gcc: Obsolete *-*-solaris2.8*.
10654         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10655
10656 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10657
10658         PR bootstrap/48135
10659         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10660         reference.  Solaris 8 perl works.
10661
10662 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10663
10664         PR bootstrap/48135
10665         * doc/install.texi (Prerequisites): Move jar etc. up.
10666         Explain support library version requirements.
10667
10668 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10669
10670         PR bootstrap/48135
10671         * doc/install.texi (Prerequisites): Move Perl to build
10672         requirements.  Always necessary on Solaris 2 with Sun ld.
10673
10674 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10675
10676         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10677         binutils 2.21.
10678         (Specific, i?86-*-solaris2.[89]): Likewise.
10679         (Specific, i?86-*-solaris2.10): Likewise.
10680         (Specific, mips-sgi-irix6): Likewise.
10681         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10682         Update for binutils 2.21.
10683
10684 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10685
10686         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10687         Allow -fuse-linker-plugin for non-default plugin linker.
10688         * configure: Regenerate.
10689
10690 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10691
10692         PR bootstrap/48167
10693         * gengtype.c (files_rules): Added rule for cp/parser.h.
10694
10695 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10696
10697         PR target/48213
10698         * config/s390/s390.c (s390_delegitimize_address): Don't call
10699         lowpart_subreg if orig_x has BLKmode.
10700
10701 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10702
10703         PR target/12171
10704         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10705         * tree.h (attribute_spec): Add new member affects_type_identity.
10706         * attribs.c (empty_attribute_table): Adjust attribute_spec
10707         initializers.
10708         * config/alpha/alpha.c: Likewise.
10709         * config/arc/arc.c: Likewise.
10710         * config/arm/arm.c: Likewise.
10711         * config/avr/avr.c: Likewise.
10712         * config/bfin/bfin.c: Likewise.
10713         * config/crx/crx.c: Likewise.
10714         * config/darwin.h: Likewise.
10715         * config/h8300/h8300.c: Likewise.
10716         * config/i386/cygming.h: Likewise.
10717         * config/i386/i386.c: Likewise.
10718         * config/ia64/ia64.c: Likewise.
10719         * config/m32c/m32c.c: Likewise.
10720         * config/m32r/m32r.c: Likewise.
10721         * config/m68hc11/m68hc11.c: Likewise.
10722         * config/m68k/m68k.c: Likewise.
10723         * config/mcore/mcore.c: Likewise.
10724         * config/mep/mep.c: Likewise.
10725         * config/microblaze/microblaze.c: Likewise.
10726         * config/mips/mips.c: Likewise.
10727         * config/rs6000/rs6000.c: Likewise.
10728         * config/rx/rx.c: Likewise.
10729         * config/sh/sh.c: Likewise.
10730         * config/sol2.h: Likewise.
10731         * config/sparc/sparc.c: Likewise.
10732         * config/spu/spu.c: Likewise.
10733         * config/stormy16/stormy16.c: Likewise.
10734         * config/v850/v850.c: Likewise.
10735
10736 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10737
10738         * simplify-rtx.c (simplify_binary_operation_1): Handle
10739         (xor (and A B) C) case when B and C are both constants.
10740
10741 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10742
10743         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10744
10745 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10746
10747         PR bootstrap/48168
10748         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10749
10750 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10751
10752         PR rtl-optimization/48156
10753         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10754         assume df and df_lr are not NULL.
10755
10756 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10757
10758         PR debug/48023
10759         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10760         between a call and its CALL_ARG_LOCATION note.
10761
10762 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10763
10764         PR debug/48178
10765         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10766         between a call and its corresponding CALL_ARG_LOCATION note.
10767
10768 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10769
10770         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10771         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10772         * haifa-sched.c (setup_ref_regs): Ditto.
10773         * caller-save.c (add_used_regs_1): Ditto.
10774         * dse.c (look_for_hardregs): Ditto.
10775         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10776         * sched-rgn.c (check_live_1): Ditto.
10777
10778 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10779
10780         * c-decl.c (diagnose_mismatched_decls): Give an error for
10781         redefining a typedef with variably modified type.
10782
10783 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10784
10785         * c-decl.c (grokfield): Don't allow typedefs for structures or
10786         unions with no tag by default.
10787         * doc/extend.texi (Unnamed Fields): Update.
10788
10789 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10790
10791         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10792         Rewrite using indirect functions.
10793         (lwp_slwpcb): Ditto.
10794         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10795         (avx_vinsertf128<mode>): Ditto.
10796
10797 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10798
10799         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10800         unspecs.
10801
10802 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10803
10804         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10805         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10806
10807 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10808
10809         PR rtl-optimization/48170
10810         * gcse.c (hoist_code): Remove bogus asserts.
10811
10812 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10813
10814         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10815         computation for prologue/epilogue.
10816
10817 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10818
10819         * Makefile.in (check-consistency): Remove.
10820
10821 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10822
10823         PR debug/48176
10824         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10825         arange_table_in_use is 0, but either text_section_used or
10826         cold_text_section_used is true.  Don't call it if
10827         !info_section_emitted.
10828
10829 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10830
10831         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10832         FUNCTION_VALUE_REGNO_P): Remove.
10833         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10834         Remove.
10835         * config/avr/avr.c (avr_ret_register): Make static inline.
10836         (avr_function_value_regno_p): New function.
10837         (avr_libcall_value): Make static. Add 'func' argument.
10838         (avr_function_value): Make static. Rename 'func' argument to
10839         'fn_decl_or_type', forward it to avr_libcall_value. Call
10840         avr_ret_register function instead of RET_REGISTER macro.
10841         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10842
10843 2011-03-18  Jason Merrill  <jason@redhat.com>
10844
10845         PR c++/23372
10846         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10847
10848 2011-03-18  Richard Guenther  <rguenther@suse.de>
10849
10850         * doc/install.texi (--enable-gold): Remove.
10851         (--with-plugin-ld): Document.
10852         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10853
10854 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10855
10856         PR middle-end/47790
10857         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10858         again after expansion changes.
10859
10860 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10861
10862         * combine.c (try_combine): Do simplification only call of
10863         subst() on i2 even when i1 is present. Update comments.
10864
10865 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10866
10867         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10868         and UNSPEC_PCREL_SYMOFF.
10869
10870 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10871
10872         * config/s390/s390.md: Use define_c_enum for the unspec constant
10873         definitions.
10874
10875 2011-03-18  Richard Henderson  <rth@redhat.com>
10876             Jakub Jelinek  <jakub@redhat.com>
10877
10878         PR bootstrap/48161
10879         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10880         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10881
10882 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10883
10884         PR middle-end/47725
10885         * combine.c (cant_combine_insn_p): Don't check zero/sign
10886         extended hard registers.
10887
10888 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10889
10890         PR middle-end/47725
10891         * combine.c (cant_combine_insn_p): Check zero/sign extended
10892         hard registers.
10893
10894 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10895
10896         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10897         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10898         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10899         Change return type to bool.
10900         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10901
10902 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10903
10904         PR debug/48163
10905         * var-tracking.c (prepare_call_arguments): If CALL target
10906         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10907         pc instead of looking it up using cselib_lookup and use
10908         Pmode for it if x has VOIDmode.
10909         * dwarf2out.c (gen_subprogram_die): If also both first and
10910         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10911
10912         PR debug/48163
10913         * function.c (assign_parms): For data.passed_pointer parms
10914         use MEM of data.entry_parm instead of data.entry_parm itself
10915         as DECL_INCOMING_RTL.
10916         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10917         also when passed and declared mode is the same, DECL_RTL
10918         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10919         a MEM too.
10920
10921 2011-03-16  Jeff Law  <law@redhat.com>
10922
10923         PR rtl-optimization/37273
10924         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10925         handle them like argument loads from stack slots.  Do not double
10926         count memory for memory constants and argument loads from stack slots.
10927
10928 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10929
10930         PR debug/48160
10931         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10932
10933 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10934
10935         PR target/48171
10936         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10937
10938 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10939
10940         PR bootstrap/48153
10941         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10942         if dwarf_strict.
10943         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10944         Clear call_arg_locations and call_arg_loc_last always.
10945
10946         PR middle-end/48152
10947         * var-tracking.c (prepare_call_arguments): If argument needs to be
10948         passed by reference, adjust argtype and mode.
10949
10950 2011-03-17  Richard Guenther  <rguenther@suse.de>
10951
10952         PR middle-end/48134
10953         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10954         a value make sure to fold the statement.
10955
10956 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10957
10958         PR target/43872
10959         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10960         return condition with !cfun->calls_alloca.
10961
10962 2011-03-17  Richard Guenther  <rguenther@suse.de>
10963
10964         PR bootstrap/48148
10965         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10966         origin for decls in other ltrans units.
10967         (input_varpool_node): Likewise.
10968
10969 2011-03-17  Richard Guenther  <rguenther@suse.de>
10970
10971         PR middle-end/48165
10972         * tree-object-size.c (compute_object_offset): Properly return
10973         the offset operand of MEM_REFs as sizetype.
10974
10975 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10976
10977         PR rtl-optimization/48141
10978         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10979         * dse.c: Include params.h.
10980         (active_local_stores_len): New variable.
10981         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10982         to NULL.
10983         (record_store, check_mem_read_rtx): Decrease it when removing
10984         from the chain.
10985         (scan_insn): Likewise.  Increase it when adding to chain, if it
10986         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10987         set active_local_stores to NULL before the addition.
10988         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10989
10990         PR rtl-optimization/48141
10991         * dse.c (record_store): If no positions are needed in an insn
10992         that cannot be deleted, at least unchain it from active_local_stores.
10993
10994 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10995
10996         PR debug/47510
10997         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10998         (lookup_type_die_strip_naming_typedef): ... here.
10999         (get_context_die): Use it.
11000         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11001         the anonymous struct named by the naming typedef.
11002
11003 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11004
11005         PR target/48154
11006         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11007         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11008
11009 2011-03-16  Jeff Law  <law@redhat.com>
11010
11011         * tree-vrp.c (identify_jump_threads): Slightly simplify type
11012         check for operands of conditional.  Allow type to be a pointer.
11013
11014 2011-03-16  Richard Guenther  <rguenther@suse.de>
11015
11016         PR tree-optimization/48149
11017         * fold-const.c (fold_binary_loc): Fold
11018         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11019
11020 2011-03-16  Richard Guenther  <rguenther@suse.de>
11021
11022         PR tree-optimization/26134
11023         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11024         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11025         (non_rewritable_mem_ref_base): Handle complex type component
11026         accesses, constrain offsets for vector and complex extracts
11027         more properly.
11028
11029 2011-03-16  Richard Guenther  <rguenther@suse.de>
11030
11031         PR tree-optimization/48146
11032         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11033         operands avoiding the need for renaming.
11034
11035 2011-03-16  Richard Guenther  <rguenther@suse.de>
11036
11037         * gimple-fold.c (maybe_fold_reference): Open-code relevant
11038         constant folding.  Move MEM_REF canonicalization first.
11039         Rely on fold_const_aggregate_ref for initializer folding.
11040         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11041
11042 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11043
11044         PR middle-end/48136
11045         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11046         arg0/arg1 or their arguments are always fold converted to matching
11047         types.
11048
11049         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11050         to nargs.
11051
11052 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11053
11054         PR lto/46944
11055         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11056         Handle in-tree gold.
11057         (ld_vers): Extract binutils version for gold.
11058         (gcc_cv_ld_hidden): Handle gold here.
11059         (gcc_cv_lto_plugin): Determine level of linker plugin support.
11060         * configure: Regenerate.
11061         * config.in: Regenerate.
11062         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11063         -fuse-linker-plugin otherwise.
11064         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
11065         (LINK_COMMAND_SPEC): Use it.
11066         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11067
11068 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11069
11070         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11071         * calls.c: Remove debug.h include.
11072         (emit_call_1): Don't call virtual_call_token debug hook.
11073         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11074         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11075         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11076         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11077         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11078         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11079         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11080         dwarf2out_virtual_call): Remove.
11081         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11082         copy_call_info and virtual_call hooks.
11083         (dwarf2out_init): Don't initialize vcall_insn_table,
11084         debug_dcall_section and debug_vcall_section.
11085         (prune_unused_types): Don't mark nodes from dcall_table.
11086         (dwarf2out_finish): Don't output dcall or vcall tables.
11087         * final.c (final_scan_insn): Don't call direct_call or
11088         virtual_call debug hooks.
11089         * debug.h (struct gcc_debug_hooks): Remove direct_call,
11090         virtual_call_token, copy_call_info and virtual_call hooks.
11091         (debug_nothing_uid): Remove prototype.
11092         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11093         copy_call_info and virtual_call hooks.
11094         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11095         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11096         * debug.c (do_nothing_debug_hooks): Likewise.
11097         (debug_nothing_uid): Remove.
11098         * doc/invoke.texi (-fenable-icf-debug): Remove.
11099         * common.opt (-fenable-icf-debug): Likewise.
11100
11101         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11102         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11103         call's MEM.  Handle functions returning aggregate through a hidden
11104         first pointer.  For virtual calls add clobbered pc to call arguments
11105         chain.
11106         * dwarf2out.c (gen_subprogram_die): Emit
11107         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11108         can't be emitted.
11109
11110         PR debug/45882
11111         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11112         * rtl.h (ENTRY_VALUE_EXP): Define.
11113         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11114         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11115         * print-rtl.c (print_rtx): Likewise.
11116         * gengtype.c (adjust_field_rtx_def): Likewise.
11117         * var-tracking.c (vt_add_function_parameter): Adjust
11118         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11119         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11120         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11121         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11122         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11123
11124         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11125         Call var_location debug hook even on CALL_INSNs.
11126         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11127         * rtl.def (ENTRY_VALUE): New.
11128         * dwarf2out.c: Include cfglayout.h.
11129         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11130         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11131         (struct call_arg_loc_node): New type.
11132         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11133         tail_call_site_count): New variables.
11134         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11135         DW_TAG_GNU_call_site_parameter.
11136         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11137         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11138         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11139         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11140         and DW_AT_GNU_all_source_call_sites.
11141         (mem_loc_descriptor): Handle ENTRY_VALUE.
11142         (add_src_coords_attributes): Don't add enything if
11143         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11144         (dwarf2out_abstract_function): Save and clear call_arg_location,
11145         call_site_count and tail_call_site_count around dwarf2out_decl call.
11146         (gen_call_site_die): New function.
11147         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11148         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11149         (dwarf2out_function_decl): Clear call_arg_locations,
11150         call_arg_loc_last, set call_site_count and tail_call_site_count
11151         to -1 and free block_map.
11152         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11153         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
11154         followed by any real instructions.
11155         (dwarf2out_begin_function): Set call_site_count and
11156         tail_call_site_count to 0.
11157         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11158         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11159         attempt to force a DIE for it and worst case remove the attribute.
11160         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11161         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11162         the decl itself.
11163         * var-tracking.c: Include tm_p.h.
11164         (vt_stack_adjustments): For calls call note_register_arguments.
11165         (argument_reg_set): New variable.
11166         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11167         ensure the VALUE is resolved.
11168         (call_arguments): New variable.
11169         (prepare_call_arguments): New function.
11170         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11171         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11172         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11173         always use the best expression.
11174         (vt_expand_loc): Add ignore_cur_loc argument.
11175         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11176         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11177         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11178         note for all calls.
11179         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11180         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11181         argument.  Don't call cselib_preserve_only_values and
11182         cselib_reset_table.
11183         (note_register_arguments): New function.
11184         (vt_initialize): Compute argument_reg_set.  Call
11185         vt_add_function_parameters before processing basic blocks instead of
11186         afterwards.  For calls call prepare_call_arguments before calling
11187         cselib_process_insn.
11188         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11189         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11190         (var-tracking.o): Depend on $(TM_P_H).
11191         * cfglayout.h (insn_scope): New prototype.
11192         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11193         * cfglayout.c (insn_scope): No longer static.
11194         * insn-notes.def (CALL_ARG_LOCATION): New.
11195         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11196         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11197         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11198         nothing for DECL_EXTERNAL BLOCK_VARS.
11199
11200 2011-03-16  Alan Modra  <amodra@gmail.com>
11201
11202         PR target/45844
11203         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11204         create invalid offset address for vsx splat insn.
11205         * config/rs6000/predicates.md (splat_input_operand): New.
11206         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11207
11208 2011-03-15  Xinliang David Li  <davidxl@google.com>
11209
11210         PR c/47837
11211         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11212         (normalize_preds): New function.
11213         (is_use_properly_guarded): Normalize def predicates.
11214
11215 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11216
11217         PR target/46788
11218         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11219         in the output template.
11220
11221 2011-03-15  Richard Guenther  <rguenther@suse.de>
11222
11223         PR middle-end/47650
11224         * tree-pretty-print.c (dump_function_declaration): Properly
11225         dump unprototyped and varargs function types.
11226
11227 2011-03-15  Richard Guenther  <rguenther@suse.de>
11228
11229         PR tree-optimization/13954
11230         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11231         and friends.
11232
11233 2011-03-15  Richard Guenther  <rguenther@suse.de>
11234
11235         PR tree-optimization/48037
11236         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11237         selects into BIT_FIELD_REFs.
11238         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11239         vector select.
11240
11241 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11242
11243         PR tree-optimization/48129
11244         * builtins.c (fold_builtin_snprintf): Convert to type of
11245         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11246         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11247
11248 2011-03-15  Richard Guenther  <rguenther@suse.de>
11249
11250         PR tree-optimization/41490
11251         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11252         value but with VUSE.
11253         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11254         return statements.
11255         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11256         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11257         * tree-tailcall.c (find_tail_calls): Ignore returns.
11258
11259 2011-03-15  Richard Guenther  <rguenther@suse.de>
11260
11261         PR middle-end/48031
11262         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11263         or variable-indexed array accesses when in gimple form.
11264
11265 2011-03-15  Richard Guenther  <rguenther@suse.de>
11266
11267         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11268
11269 2011-03-15  Alan Modra  <amodra@gmail.com>
11270
11271         PR target/48032
11272         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11273         presume symbol_refs without a symbol_ref_decl are suitably
11274         aligned, nor other trees we may see here.  Handle anchor symbols.
11275         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11276         Check cmodel=medium addresses.  Adjust all calls.
11277         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11278         creating cmodel=medium optimized access to locals.
11279         * config/rs6000/constraints.md (R): Pass QImode to
11280         legitimate_constant_pool_address_p.
11281         * config/rs6000/predicates.md (input_operand): Pass mode to
11282         legitimate_constant_pool_address_p.
11283         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11284         Update prototype.
11285
11286 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11287
11288         PR target/48053
11289         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11290         64-bit constants being loaded into registers other than GPRs such
11291         as loading 0 into a VSX register.
11292
11293 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11294
11295         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11296
11297 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11298
11299         PR middle-end/47917
11300         * builtins.c (fold_builtin_snprintf): New function.
11301         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11302         (fold_builtin_4): Likewise.
11303
11304         PR middle-end/38878
11305         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11306         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11307         and C - X == X also strip nops from +/-/p+ operand.
11308         When optimizing -X == C, fold C to arg0's type.
11309
11310         PR debug/47946
11311         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11312         emit it as add_AT_int instead of add_AT_unsigned.
11313
11314 2011-03-14  Tom Tromey  <tromey@redhat.com>
11315
11316         * unwind-dw2.c: Include sys/sdt.h if it exists.
11317         (_Unwind_DebugHook): Use STAP_PROBE2.
11318         * config.in, configure: Rebuild.
11319         * configure.ac: Check for sys/sdt.h.
11320
11321 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11322
11323         * config/i386/i386.md (ROUND_FLOOR): New constant.
11324         (ROUND_CEIL): Ditto.
11325         (ROUND_TRUNC): Ditto.
11326         (ROUND_MXCSR): Ditto.
11327         (ROUND_NO_EXC): Ditto.
11328         (rint<mode>2): Use new defines instead of numerical constants.
11329         (floor<mode>2): Ditto.
11330         (ceil<mode>2): Ditto.
11331         (btrunc<mode>2): Ditto.
11332         * config/i386/i386-builtin-types.def: Define ROUND function type
11333         aliases.
11334         * config/i386/i386.c (enum ix86_builtins): Add
11335         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11336         (struct builtin_description): Add
11337         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11338         (ix86_expand_sse_round): New static function.
11339         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11340         function types.
11341         (ix86_builtin_vectorized_function): Handle
11342         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11343
11344 2011-03-14  Tom Tromey  <tromey@redhat.com>
11345
11346         * c-parser.c (c_parser_asm_string_literal): Clear
11347         warn_overlength_strings.
11348
11349 2011-03-14  Tom Tromey  <tromey@redhat.com>
11350
11351         * c-parser.c (disable_extension_diagnostics): Save
11352         warn_overlength_strings.
11353         (restore_extension_diagnostics): Restore warn_overlength_strings.
11354
11355 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11356
11357         * BASE-VER: Change to 4.7.0.
11358
11359 2011-03-14  Richard Guenther  <rguenther@suse.de>
11360
11361         PR middle-end/48098
11362         * tree.c (build_vector_from_val): Adjust assert to requirements
11363         and reality.
11364
11365 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11366
11367         PR bootstrap/48102
11368         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11369
11370 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11371
11372         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11373         terms of target_flags_explicit. Adjust copyright year.
11374
11375         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11376         * config/rs6000/t-freebsd: New file. Add override for
11377         LIB2FUNCS_EXTRA.
11378
11379 2011-03-13  Chris Demetriou  <cgd@google.com>
11380
11381         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11382         (-fno-diagnostics-show-option): this, to reflect current default.
11383         (-Werror=): Update text about -fno-diagnostics-show-option.
11384
11385 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11386
11387         PR target/48053
11388         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11389         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11390         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11391         mode is not V2DImode or V2DFmode.
11392         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11393         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11394         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11395         registers to 0.
11396         (movdi_internal64): Likewise.
11397
11398 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11399
11400         PR tree-optimization/47127
11401         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11402         parameter.
11403         (set_cloog_options): Same.
11404         (scop_to_clast): Same.
11405         (print_clast_stmt): Do not call cloog_state_malloc and
11406         cloog_state_free.
11407         (print_generated_program): Same.
11408         (gloog): Same.
11409         * graphite-clast-to-gimple.h (cloog_state): Declared.
11410         (scop_to_clast): Adjust declaration.
11411         * graphite.c (cloog_state): Defined here.
11412         (graphite_initialize): Call cloog_state_malloc.
11413         (graphite_finalize): Call cloog_state_free.
11414
11415 2011-03-11  Jason Merrill  <jason@redhat.com>
11416
11417         * attribs.c (lookup_attribute_spec): Take const_tree.
11418         * tree.h: Adjust.
11419
11420 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11421
11422         * config/sparc/sparc.c (sparc_option_override): Use
11423         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11424
11425 2011-03-11  Richard Guenther  <rguenther@suse.de>
11426
11427         PR tree-optimization/48067
11428         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11429         multiplication result will be only used once on the target
11430         stmt.
11431
11432 2011-03-11  Richard Guenther  <rguenther@suse.de>
11433
11434         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11435
11436 2011-03-11  Richard Guenther  <rguenther@suse.de>
11437
11438         PR lto/48073
11439         * tree.c (find_decls_types_r): Do not walk types only reachable
11440         from IDENTIFIER_NODEs.
11441
11442 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11443
11444         PR middle-end/48044
11445         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11446         all vnode->force_output nodes as needed.
11447
11448 2011-03-11  Jason Merrill  <jason@redhat.com>
11449
11450         PR c++/48069
11451         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11452         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11453
11454 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11455
11456         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11457         cgraph_node.
11458
11459 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11460
11461         PR tree-optimization/48063
11462         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11463         inline functions called once if !tree_can_inline_p (node->callers).
11464
11465 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11466
11467         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11468         extra_objs.
11469         * config/score/score3.c: Delete.
11470         * config/score/score3.h: Delete.
11471         * config/score/mul-div.S: Delete.
11472         * config/score/sfp-machine.h: Add new file.
11473         * config/score/constraints.md: Add new file.
11474         * config/score/t-score-softfp: Add new file.
11475         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11476         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11477         (score7_extra_constraint): Delete.
11478         (score7_option_override): Remove unused code.
11479         * config/score/score.c: Remove score3 and score5 define and code.
11480         * config/score/score.h: Remove score3 and score5 define and code.
11481         * config/score/score.md: Remove score3 template and unusual insn.
11482         * config/score/score.opt: Remove score3 and score5 options.
11483
11484 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11485
11486         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11487         when _HPUX_SOURCE is defined.
11488         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11489
11490 2011-03-10  Jason Merrill  <jason@redhat.com>
11491
11492         PR c++/48029
11493         * stor-layout.c (layout_type): Don't set structural equality
11494         on arrays of incomplete type.
11495         * tree.c (type_hash_eq): Handle comparing them properly.
11496
11497 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11498
11499         PR debug/48043
11500         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11501         result mode matches original rtl mode.
11502
11503 2011-03-10  Nick Clifton  <nickc@redhat.com>
11504
11505         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11506         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11507
11508 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11509
11510         PR rtl-optimization/47866
11511         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11512         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11513         if target wasn't scalar.
11514         * function.c (assign_stack_temp_for_type): Assert that neither
11515         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11516         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11517         macro.
11518         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11519
11520 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11521
11522         * config/s390/s390-protos.h (s390_label_align): New prototype.
11523         * config/s390/s390.c (s390_label_align): New function.
11524         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11525
11526 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11527
11528         PR target/47755
11529         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11530         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11531         (output_vec_const_move): Ditto.
11532
11533 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11534
11535         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11536         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11537         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11538         Change 'rclass' argument and result type to reg_class_t.
11539         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11540
11541 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11542
11543         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11544         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11545         (TARGET_MEMORY_MOVE_COST): Define.
11546         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11547
11548 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11549
11550         PR debug/47881
11551         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11552         removed anything.
11553
11554         PR tree-optimization/48022
11555         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11556         for EQ/NE_EXPR.
11557
11558 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11559
11560         PR debug/47991
11561         * var-tracking.c (find_use_val): Return NULL for
11562         cui->sets && cui->store_p BLKmode MEMs.
11563
11564 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11565
11566         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11567         Remove.
11568         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11569         xstormy16_print_operand_address): Remove.
11570         * config/stormy16/stormy16.c (xstormy16_print_operand,
11571         xstormy16_print_operand_address): Make static.
11572         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11573
11574 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11575
11576         PR target/47862
11577         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11578         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11579         before definition.
11580
11581 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11582
11583         PR bootstrap/48000
11584         * cfgloopmanip.c (fix_bb_placements): Return immediately
11585         if FROM is BASE_LOOP's header.
11586
11587 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11588
11589         * gimplify.c (gimplify_function_tree): Fix building calls
11590         to __builtin_return_address.
11591
11592 2011-03-07  Alan Modra  <amodra@gmail.com>
11593
11594         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11595         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11596         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11597         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11598         return_mode args.
11599         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11600         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11601         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11602         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11603         * config/rs6000/rs6000.c
11604         (rs6000_elf_end_indicate_exec_stack): Rename to..
11605         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11606         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11607         (rs6000_file_start): ..here.
11608         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11609         file scope variables.
11610         (call_ABI_of_interest): New function.
11611         (init_cumulative_args): Set above vars when function return value
11612         is a float, vector, or small struct.
11613         (rs6000_function_arg_advance_1): Likewise for function args.
11614         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11615         references float args.
11616
11617 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11618
11619         * doc/cfg.texi: Remove "See" before @ref.
11620         * doc/invoke.texi: Likewise.
11621
11622 2011-03-05  Jason Merrill  <jason@redhat.com>
11623
11624         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11625
11626 2011-03-05  Anthony Green  <green@moxielogic.com>
11627
11628         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11629
11630 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11631
11632         PR rtl-optimization/47899
11633         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11634         to flow_loop_nested_p when moving the loop upward.
11635
11636 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11637
11638         PR target/47719
11639         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11640
11641 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11642
11643         PR tree-optimization/47967
11644         * ipa-cp.c (build_const_val): Return NULL instead of creating
11645         VIEW_CONVERT_EXPR for mismatching sizes.
11646         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11647         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11648         give up on versioning.
11649
11650 2011-03-05  Alan Modra  <amodra@gmail.com>
11651
11652         PR target/47986
11653         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11654         full cmodel medium/large lo_sum + high addresses.
11655
11656 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11657
11658         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11659         pool references in UNSPEC_LTREL_OFFSET.
11660
11661 2011-03-04  Jan Hubicka  <jh@suse.cz>
11662
11663         PR lto/47497
11664         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11665         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11666         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11667         Add node pointers.
11668         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11669         cgraph_add_thunk): Add node pointers.
11670         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11671         associated to right node.
11672         (input_node): Update use of cgraph_same_body_alias
11673         and cgraph_add_thunk.
11674
11675 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11676
11677         * config/i386/i386.opt (mprefer-avx128): New flag.
11678         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11679         modes when the flag -mprefer-avx128 is on.
11680
11681 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11682
11683         * dwarf2out.c (compare_loc_operands): Fix address handling.
11684
11685 2011-03-04  Alan Modra  <amodra@gmail.com>
11686
11687         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11688
11689 2011-03-04  Richard Guenther  <rguenther@suse.de>
11690
11691         PR middle-end/47968
11692         * expmed.c (extract_bit_field_1): Prefer vector modes that
11693         vec_extract patterns can handle.
11694
11695 2011-03-04  Richard Guenther  <rguenther@suse.de>
11696
11697         PR middle-end/47975
11698         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11699
11700 2011-03-04  Richard Henderson  <rth@redhat.com>
11701
11702         * explow.c (emit_stack_save): Remove 'after' parameter.
11703         (emit_stack_restore): Likewise.
11704         * expr.h: Update to match.
11705         * builtins.c, calls.c, stmt.c: Likewise.
11706         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11707         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11708         * function.c (expand_function_end): Insert the emit_stack_save
11709         sequence before parm_birth_insn instead of after.
11710
11711 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11712
11713         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11714         (ssse3_pmaddubsw128): Ditto.
11715         (ssse3_pmaddubsw): Ditto.
11716
11717 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11718
11719         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11720
11721 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11722
11723         PR c/47963
11724         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11725         on TYPE_SIZE_UNIT if it is a DECL.
11726
11727         PR debug/47283
11728         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11729         first operand is not is_gimple_mem_ref_addr, try to fold it.
11730         If the operand still isn't is_gimple_mem_ref_addr, clear
11731         MEM_EXPR on op0.
11732
11733 2011-03-03  Richard Guenther  <rguenther@suse.de>
11734
11735         PR middle-end/47283
11736         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11737         match comment.
11738         (refs_may_alias_p_1): For release branches return true if
11739         we are confused by our input.
11740
11741 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11742
11743         * config/s390/s390.c (s390_function_value): Rename to ...
11744         (s390_function_and_libcall_value): ... this.
11745         (s390_function_value): New function.
11746         (s390_libcall_value): New function.
11747         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11748         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11749         target macro definitions.
11750         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11751
11752 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11753
11754         * config/i386/freebsd64.h (CC1_SPEC): Define.
11755         * config/i386/linux64.h (CC1_SPEC): Define.
11756         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11757
11758 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11759
11760         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11761         Remove.
11762         * config/stormy16/stormy16.c: Include reload.h.
11763         (xstormy16_memory_move_cost): New function.
11764         (TARGET_MEMORY_MOVE_COST): Define.
11765
11766 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11767
11768         PR rtl-optimization/47925
11769         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11770         with side effects.  Remove the more-specific check for volatile asms.
11771
11772 2011-03-02  Alan Modra  <amodra@gmail.com>
11773
11774         PR target/47935
11775         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11776         toc relative addresses for valid offsets.
11777
11778 2011-03-01  Richard Guenther  <rguenther@suse.de>
11779
11780         PR tree-optimization/47890
11781         * tree-vect-loop.c (get_initial_def_for_induction): Set
11782         related stmt properly.
11783
11784 2011-03-01  Richard Guenther  <rguenther@suse.de>
11785
11786         PR lto/47924
11787         * lto-streamer.c (lto_record_common_node): Also register
11788         the canonical type.
11789
11790 2011-03-01  Richard Guenther  <rguenther@suse.de>
11791
11792         PR lto/46911
11793         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11794         Do not stream DECL_ABSTRACT_ORIGIN.
11795         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11796         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11797         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11798         Do not stream DECL_ABSTRACT_ORIGIN.
11799         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11800         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11801
11802 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11803
11804         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11805         FUNCTION_VALUE_REGNO_P): Remove.
11806         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11807         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11808         Add 'outgoing' argument.
11809         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11810         function.
11811         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11812         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11813
11814 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11815
11816         PR debug/28047
11817         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11818         (lookup_filename): Likewise.
11819         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11820
11821 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11822             Jakub Jelinek  <jakub@redhat.com>
11823
11824         PR middle-end/47893
11825         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11826         (assign_stack_local_1): Change last argument type to int.
11827         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11828         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11829         don't record padding space into frame_space_list nor use those areas.
11830         (assign_stack_local): Adjust caller.
11831         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11832         of assign_stack_local, pass 0 as last argument.
11833         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11834         callers.
11835
11836 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11837
11838         PR debug/47283
11839         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11840         Use target address_mode and pointer_mode hooks instead of hardcoded
11841         Pmode and ptr_mode.  Handle some simple cases of extending if
11842         POINTERS_EXTEND_UNSIGNED < 0.
11843         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11844         Call convert_debug_memory_address.
11845         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11846         convert_debug_memory_address.
11847
11848         PR middle-end/46790
11849         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11850         * configure: Regenerated.
11851         * config.in: Regenerated.
11852         * varasm.c (default_function_section): Return NULL
11853         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11854
11855 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11856
11857         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11858         the description to match the printed values.
11859
11860 2011-02-28  Richard Guenther  <rguenther@suse.de>
11861
11862         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11863         of the copied scope tree.
11864
11865 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11866
11867         * doc/extend.texi (Function Attributes): Avoid deeply (and
11868         wrongly) nested tables.
11869
11870 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11871
11872         PR middle-end/47903
11873         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11874         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11875         r isn't op0 nor op1.
11876
11877 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11878
11879         * config/avr/avr.md: Remove magic comment for emacs.
11880
11881 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11882
11883         PR target/45261
11884         * config/avr/avr.c (avr_option_override): Use error on bad options.
11885         (avr_help): New function.
11886         (TARGET_HELP): Define.
11887
11888 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11889
11890         PR target/42240
11891         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11892         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11893
11894 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11895
11896         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11897         (ARM Options): Ditto.
11898         (i386 and x86-64 Options): Ditto.
11899         (RX Options): Ditto.
11900         (SPARC Options): Ditto.
11901
11902 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11903
11904         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11905         FreeBSD 6 and later.  Generally use cpu generic.
11906
11907 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11908
11909         * doc/cpp.texi: Update copyright years.
11910
11911 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11912
11913         PR target/46898
11914         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11915
11916 2011-02-25  Jon Beniston  <jon@beniston.com>
11917
11918         PR target/46898
11919         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11920         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11921         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11922         (lm32_block_move_inline): Add type cast to remove warning.
11923         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11924         (gen_int_relational): Move declarations to start of function.
11925
11926 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11927
11928         PR tree-optimization/45470
11929         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11930         can throw internally only.
11931         * tree-vect-stmts.c (vectorizable_call): Likewise.
11932
11933 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11934
11935         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11936         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11937         * config/stormy16/stormy16-protos.h
11938         (xstormy16_preferred_reload_class): Remove.
11939         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11940         static. Change 'rclass' argument and return type to reg_class_t.
11941         (TARGET_PREFERRED_RELOAD_CLASS,
11942         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11943
11944 2011-02-24  Richard Guenther  <rguenther@suse.de>
11945
11946         * lto-streamer-in.c (input_bb): Do not find referenced vars
11947         in debug statements.
11948
11949 2011-02-23  Jason Merrill  <jason@redhat.com>
11950
11951         * common.opt (fabi-version): Document v5 and v6.
11952
11953 2011-02-23  Richard Guenther  <rguenther@suse.de>
11954
11955         PR tree-optimization/47849
11956         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11957
11958 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11959
11960         * opts-common.c (decode_cmdline_option): Print empty string
11961         argument as "" in decoded->orig_option_with_args_text.
11962         * gcc.c (execute): Print empty string argument as ""
11963         in the verbose output.
11964         (do_spec_1): Keep empty string argument.
11965
11966 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11967
11968         * config.gcc: Declare score-* and crx-* obsolete.
11969
11970 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11971
11972         PR rtl-optimization/47763
11973         * web.c (web_main): Ignore naked clobber when replacing register.
11974
11975 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11976
11977         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11978         Remove.
11979
11980 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11981
11982         PR doc/47848
11983         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11984
11985 2011-02-22  Mike Stump  <mikestump@comcast.net>
11986
11987         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11988         assembler.
11989         * configure: Regenerate.
11990
11991 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11992
11993         PR rtl-optimization/46002
11994         * ira-color.c (update_copy_costs): Change class intersection
11995         test to reg_class_contents[] test of 'hard_regno'.
11996
11997 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11998
11999         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12000         than Driver option.
12001         * config/hpux11.opt (mt): Likewise.
12002         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12003         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12004         * config/vax/elf.opt (mno-asm-pic): Likewise.
12005         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12006
12007 2011-02-21  Mike Stump  <mikestump@comcast.net>
12008
12009         PR target/47822
12010         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12011         tree so we can get save the type.
12012         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12013         for CFString instead of trying to use past the end of the builtins.
12014         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12015         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12016         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12017         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12018         Rename to darwin_builtin_cfstring.
12019         (darwin_init_cfstring_builtins): Return the built type.
12020
12021 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
12022
12023         PR target/47840
12024         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12025         (_mm256_insert_epi64): Use _mm_insert_epi64.
12026
12027 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
12028
12029         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12030         * config/stormy16/stormy16-protos.h
12031         (xstormy16_mode_dependent_address_p): Remove.
12032         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12033         Make static. Change return type to bool. Change argument type to
12034         const_rtx. Remove dead code.
12035         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12036
12037 2011-02-21  Richard Guenther  <rguenther@suse.de>
12038
12039         PR lto/47820
12040         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12041         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12042         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12043         TUs context.
12044         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12045         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12046
12047 2011-02-20  Richard Guenther  <rguenther@suse.de>
12048
12049         PR lto/47822
12050         * tree.c (free_lang_data_in_decl): Clean builtins from
12051         the TU decl BLOCK_VARS.
12052
12053 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
12054
12055         PR debug/47620
12056         PR debug/47630
12057         * haifa-sched.c (fix_tick_ready): Skip tick computation
12058         for debug insns.
12059
12060 2011-02-19  Richard Guenther  <rguenther@suse.de>
12061
12062         PR lto/47647
12063         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12064         Remove lazy BLOCK_VARS streaming.
12065         (lto_input_ts_block_tree_pointers): Likewise.
12066         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12067
12068 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12069
12070         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12071
12072 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12073
12074         * config/i386/biarch32.h, config/i386/mach.h,
12075         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12076
12077 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
12078
12079         PR target/47800
12080         * config/i386/i386.md (peephole2 for shift and plus): Use
12081         operands[1] original mode in the first insn.
12082
12083 2011-02-18  Mike Stump  <mikestump@comcast.net>
12084
12085         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12086
12087 2011-02-18  Jan Hubicka  <jh@suse.cz>
12088
12089         PR middle-end/47788
12090         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12091         to zero when the function is not inlinable at all.
12092
12093 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12094
12095         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12096         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12097         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12098         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12099         * config/pa/t-pa64: Likewise.
12100         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12101
12102 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12103
12104         PR driver/47787
12105         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12106
12107 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12108
12109         PR target/47792
12110         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12111
12112 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
12113
12114         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12115         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12116         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12117         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12118         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12119         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12120         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12121         m32r_load_postinc_p, m32r_store_preinc_predec_p,
12122         m32r_legitimate_address_p): New functions.
12123         * config/m32r/constraints.md (constraint "S"): Don't use
12124         STORE_PREINC_PREDEC_P.
12125         (constraint "U"): Don't use LOAD_POSTINC_P.
12126
12127 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
12128
12129         PR rtl-optimization/46178
12130         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12131         compute ira_hard_regno_cover_class[].
12132
12133 2011-02-18  Richard Guenther  <rguenther@suse.de>
12134
12135         PR lto/47798
12136         * lto-streamer.h (lto_global_var_decls): Declare.
12137         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12138         statics for global var processing.
12139
12140 2011-02-18  Richard Guenther  <rguenther@suse.de>
12141
12142         PR tree-optimization/47737
12143         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12144         edge dominance check.
12145
12146 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12147
12148         PR debug/47780
12149         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12150         avoid invalid rtx sharing.
12151
12152 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
12153
12154         * doc/cpp.texi (Obsolete Features): Add background on the
12155         origin of assertions.
12156
12157 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
12158
12159         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12160         objc_abi == 2.
12161         * config/darwin.c (output_objc_section_asm_op): Added support for
12162         ABI v1 and v2.
12163         (is_objc_metadata): New.
12164         (darwin_objc2_section): New.
12165         (darwin_objc1_section): New.
12166         (machopic_select_section): Added support for ABI v1 and v2.
12167         (darwin_emit_objc_zeroed): New.
12168         (darwin_output_aligned_bss): Detect objc metadata and treat it
12169         appropriately.
12170         (darwin_asm_output_aligned_decl_common): Same.
12171         (darwin_asm_output_aligned_decl_local): Same.
12172         * config/darwin-sections.def: Updated for ABI v1 and v2.
12173         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12174         compiling Objective-C code for the NeXT runtime, default to using
12175         ABI version 0 for 32-bit, and version 2 for 64-bit.
12176
12177 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12178
12179         * common.opt (optimize_fast): New Variable.
12180         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12181         instead of local variable ofast.
12182
12183 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12184
12185         * doc/invoke.texi (fobjc-abi-version): Documented.
12186         (fobjc-nilcheck): Documented.
12187         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12188         version.
12189
12190 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12191
12192         PR driver/47390
12193         * common.opt (export-dynamic): New Driver option.
12194         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12195
12196 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12197
12198         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12199
12200 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12201             Jan Hubicka  <jh@suse.cz>
12202
12203         PR debug/47106
12204         PR debug/47402
12205         * cfgexpand.c (account_used_vars_for_block): Remove.
12206         (estimated_stack_frame_size): Use referenced vars.
12207         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12208         that were referenced in the original function.  Test src_fn
12209         rather than cfun.  Drop redundant get_var_ann.
12210         (setup_one_parameter): Drop redundant get_var_ann.
12211         (declare_return_variable): Likewise.
12212         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12213         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12214         * ipa-inline.c (compute_inline_parameters): Do not compute
12215         disregard_inline_limits here.
12216         (compute_inlinable_for_current, pass_inlinable): New.
12217         (pass_inline_parameters): Require PROP_referenced_vars.
12218         * cgraphunit.c (cgraph_process_new_functions): Don't run
12219         compute_inline_parameters explicitly unless function is in SSA form.
12220         (cgraph_analyze_function): Set .disregard_inline_limits.
12221         * tree-sra.c (convert_callers): Compute inliner parameters
12222         only for functions already in SSA form.
12223
12224 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12225
12226         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12227         -mlittle-endian-data.
12228
12229 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12230
12231         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12232         -mno-fpu, not -fpu and -no-fpu.
12233         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12234         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12235
12236 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12237
12238         PR target/43653
12239         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12240         input reload with PLUS RTX.
12241
12242 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12243
12244         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12245         of InverseVar(MDMX).
12246
12247 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12248
12249         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12250         --m4-340.
12251
12252 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12253
12254         * config/mn10300/mn10300.opt (mno-crt0): New.
12255
12256 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12257
12258         * config/m68k/uclinux.opt (static-libc): New Driver option.
12259
12260 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12261
12262         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12263
12264 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12265
12266         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12267         %{muser-extend-enabled}.
12268
12269 2011-02-16  Richard Guenther  <rguenther@suse.de>
12270
12271         PR tree-optimization/47738
12272         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12273         the TODO from tree_predictive_commoning.
12274
12275 2011-02-15  Jeff Law  <law@redhat.com>
12276
12277         Revert
12278         2011-01-25  Jeff Law  <law@redhat.com>
12279
12280         PR rtl-optimization/37273
12281         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12282         handle them like argument loads from stack slots.  Do not double
12283         count memory for memory constants and argument loads from stack slots.
12284
12285 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12286
12287         PR middle-end/47725
12288         * combine.c (cant_combine_insn_p): Revert the last change.
12289
12290 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12291
12292         PR target/47755
12293         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12294         mode for vector constants.  Remove code that checks for TImode.
12295
12296 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12297
12298         PR debug/47106
12299         PR debug/47402
12300         * cgraph.h (compute_inline_parameters): Return void.
12301         * ipa-inline.c (compute_inline_parameters): Adjust.
12302
12303 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12304
12305         PR debug/47106
12306         PR debug/47402
12307         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12308         rather than decl.
12309         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12310         * ipa-inline.c (compute_inline_parameters): Adjust.
12311
12312 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12313
12314         PR debug/47106
12315         PR debug/47402
12316         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12317         Adjust all users.  Pass FN to...
12318         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12319         fn argument.
12320         * ipa-struct-reorg.c: Adjust.
12321         * tree-dfa.c: Adjust.
12322         * tree-into-ssa.c: Adjust.
12323         * tree-sra.c: Adjust.
12324         * tree-ssa-alias.c: Adjust.
12325         * tree-ssa-live.c: Adjust.
12326         * tree-ssa.c: Adjust.
12327         * tree-ssanames.c: Adjust.
12328         * tree-tailcall.c: Adjust.
12329
12330 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12331
12332         PR debug/47106
12333         PR debug/47402
12334         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12335         Adjust all callers.
12336         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12337         * tree-flow-inline.h: Adjust.
12338         * gimple-pretty-print.c: Adjust.
12339         * tree-into-ssa.c: Adjust.
12340         * tree-ssa.c: Adjust.
12341         * cfgexpand.c: Adjust.
12342
12343 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12344
12345         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12346         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12347         (EXTRA_CONSTRAINT): Delete.
12348         * config/iq2000/constraints.md: New file.
12349         * config/iq2000/iq2000.md: Include it.
12350         (define_insn ""): Delete.
12351         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12352         unsupported constraint letters from patterns.
12353         (call_value, call_value_internal1): Likewise.
12354         (call_value_multiple_internal1): Likewise.
12355
12356 2011-02-15  Nick Clifton  <nickc@redhat.com>
12357
12358         * config/mn10300/mn10300.c: Include tm-constrs.h.
12359         (struct liw_data): New data structure describing an LIW candidate
12360         instruction.
12361         (extract_bundle): Use struct liw_data.  Allow small integer
12362         operands for some instructions.
12363         (check_liw_constraints): Use struct liw_data.  Remove swapped
12364         parameter.  Add comments describing the checks.  Fix bug when
12365         assigning the source of liw1 to the source of liw2.
12366         (liw_candidate): Delete.  Code moved into extract_bundle.
12367         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12368         before swapping.
12369         * config/mn10300/predicates.md (liw_operand): New predicate.
12370         Allows registers and small integer constants.
12371         * config/mn10300/constraints.md (O): New constraint.  Accetps
12372         integers in the range -8 to +7 inclusive.
12373         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12374         for moving a small integer into a register.  Give this alternative
12375         LIW attributes.
12376         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12377         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12378         using the J,K,L and M constraints,
12379         (liw): Remove SI mode on second operands to allow for HI and QI
12380         mode values.
12381         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12382         instruction.
12383
12384 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12385
12386         PR middle-end/47725
12387         * combine.c (cant_combine_insn_p): Check zero/sign extended
12388         hard registers.
12389
12390 2011-02-15  Richard Guenther  <rguenther@suse.de>
12391
12392         PR tree-optimization/47743
12393         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12394         for a non-type-compatible VN lookup bail out.
12395
12396 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12397
12398         * config/fr30/constraints.md: New file.
12399         * config/fr30/fr30.md: Include it.
12400         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12401         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12402         (EXTRA_CONSTRAINT): Delete.
12403
12404 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12405
12406         * config/frv/constraints.md: New file.
12407         * config/frv/predicates.md: Include it.
12408         * config/frv/frv.c (reg_class_from_letter): Delete.
12409         (frv_option_override): Don't initialize it.
12410         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12411         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12412         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12413         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12414         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12415         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12416         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12417         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12418         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12419         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12420         (REG_CLASS_FROM_CONSTRAINT): Delete.
12421
12422 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12423
12424         PR middle-end/47581
12425         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12426         if frame size is 0 in a leaf function.
12427
12428 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12429
12430         PR pch/14940
12431         * config/alpha/host-osf.c: New file.
12432         * config/alpha/x-osf: New file.
12433         * config.host (alpha*-dec-osf*): Use it.
12434
12435 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12436
12437         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12438         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12439         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12440         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12441         type to const_rtx.
12442         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12443
12444 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12445
12446         * config/stormy16/constraints.md: New file.
12447         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12448         Use satisfies_constraint_Q and satisfies_constraint_R.
12449         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12450         Delete.
12451         (xstormy16_legitiamte_address_p): Declare.
12452         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12453         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12454         (EXTRA_CONSTRAINT): Delete.
12455         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12456         Un-staticize.
12457         (xstormy16_extra_constraint_p): Delete.
12458
12459 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12460
12461         PR tree-optimization/46494
12462         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12463         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12464         (pass_rtl_loop_done): Add TODO_verify_flow.
12465         * fwprop.c (pass_rtl_fwprop): Likewise.
12466         * modulo-sched.c (pass_sms): Likewise.
12467         * tree-ssa-dom.c (pass_dominator): Likewise.
12468         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12469         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12470         (pass_tree_loop_done): Likewise.
12471         * tree-ssa-pre.c (execute_pre): Likewise.
12472         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12473         * tree-ssa-sink.c (pass_sink_code): Likewise.
12474         * tree-vrp.c (pass_vrp): Likewise.
12475
12476 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12477
12478         * config/v850/constraints.md: New file.
12479         * config/v850/v850.md: Include it.
12480         * config/v850/predicates.md (reg_or_0_operand): Use
12481         satisfies_constraint_G.
12482         (special_symbolref_operand): Use satisfies_constraint_K.
12483         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12484         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12485         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12486         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12487         (EXTRA_CONSTRAINT): Delete.
12488         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12489         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12490         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12491
12492 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12493
12494         PR target/47696
12495         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12496         description.
12497
12498 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12499
12500         * config/mcore/constraints.md: New file.
12501         * config/mcore/mcore.md: Include it.
12502         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12503         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12504         (REG_CLASS_FROM_LETTER): Delete.
12505         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12506         insn_const_int_ok_for_constraint.
12507         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12508         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12509         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12510         (EXTRA_CONSTRAINT): Delete.
12511
12512 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12513
12514         PR ada/41929
12515         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12516         (IS_SIGHANDLER): Define.
12517         (sparc64_is_sighandler): New function, split off from
12518         sparc64_fallback_frame_state.
12519         (sparc_is_sighandler): New function, split off from
12520         sparc_fallback_frame_state.
12521         (sparc64_fallback_frame_state): Merge with ...
12522         (sparc_fallback_frame_state): ... this into ...
12523         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12524         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12525         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12526         stack instead of hardcoded offsets.
12527
12528 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12529
12530         PR target/45808
12531         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12532
12533 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12534
12535         * configure: Regenerate.
12536
12537 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12538
12539         PR driver/45731
12540         * gcc.c (asm_options): Correct spec matching --target-help.
12541
12542 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12543
12544         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12545         to gimple call error.
12546
12547 2011-02-12  Mike Stump  <mikestump@comcast.net>
12548
12549         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12550         comments in backslash regions.
12551
12552 2011-02-12  Mike Stump  <mikestump@comcast.net>
12553             Jakub Jelinek  <jakub@redhat.com>
12554             Iain Sandoe  <iains@gcc.gnu.org>
12555
12556         PR target/47324
12557         * dwarf2out.c (output_cfa_loc): When required, apply the
12558         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12559         (output_loc_sequence): Likewise.
12560         (output_loc_operands_raw): Likewise.
12561         (output_loc_sequence_raw): Likewise.
12562         (output_cfa_loc): Likewise.
12563         (output_loc_list): Suppress register number adjustment when
12564         calling output_loc_sequence()
12565         (output_die): Likewise.
12566
12567 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12568
12569         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12570         Remove macros.
12571         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12572         xtensa_memory_move_cost): New functions.
12573         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12574
12575 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12576
12577         PR lto/47225
12578         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12579         in the current directory.
12580         * configure: Rebuilt.
12581
12582 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12583
12584         * config/darwin.c (darwin_override_options): Add a hunk missed
12585         from the commit of r168571.  Trim comment line lengths and
12586         correct indents of the preceding block.
12587
12588 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12589
12590         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12591         the switch.
12592
12593 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12594
12595         * common.opt (nostartfiles): New Driver option.
12596
12597 2011-02-11  Xinliang David Li  <davidxl@google.com>
12598
12599         PR tree-optimization/47707
12600         * tree-chrec.c (convert_affine_scev): Keep type precision.
12601
12602 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12603
12604         PR tree-optimization/47420
12605         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12606
12607 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12608
12609         PR rtl-optimization/47614
12610         * rtl.h (check_for_inc_dec): Declare.
12611         * dse.c (check_for_inc_dec): Externalize...
12612         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12613         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12614
12615 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12616
12617         PR driver/47678
12618         * gcc.c (main): Do not compile inputs if there were errors in
12619         option handling.
12620         * opts-common.c (read_cmdline_option): Check for wrong language
12621         after other error checks.
12622
12623 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12624
12625         * cgraph.c: Fix comment typos.
12626         * cgraph.h: Likewise.
12627         * cgraphunit.c: Likewise.
12628         * ipa-cp.c: Likewise.
12629         * ipa-inline.c: Likewise.
12630         * ipa-prop.c: Likewise.
12631         * ipa-pure-const.c: Likewise.
12632         * ipa-ref.c: Likewise.
12633         * ipa-reference.c: Likewise.
12634
12635 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12636
12637         PR debug/47684
12638         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12639
12640 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12641
12642         PR testsuite/47400
12643         * doc/sourcebuild.texi (Require Support): Document
12644         dg-require-ascii-locale.
12645
12646 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12647
12648         * doc/lto.texi (Write summary): Fix missing parentheses.
12649
12650 2011-02-10  DJ Delorie  <dj@redhat.com>
12651
12652         * config/m32c/m32c.c (m32c_option_override): Disable
12653         -fcombine-stack-adjustments until flag value tracking and compare
12654         optimization can be rewritten.
12655
12656 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12657
12658         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12659         PROCESSOR_POWER7.
12660         (PROCESSOR_DEFAULT64): Likewise.
12661
12662 2011-02-10  Richard Henderson  <rth@redhat.com>
12663
12664         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12665         change from 2011-02-03.
12666         * config/rx/rx.c (flags_from_code): Likewise.
12667         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12668         is valid, n/pz otherwise.
12669         (rx_select_cc_mode): Return CCmode if Y is not zero.
12670
12671 2011-02-10  Richard Guenther  <rguenther@suse.de>
12672
12673         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12674
12675 2011-02-10  Richard Guenther  <rguenther@suse.de>
12676
12677         PR tree-optimization/47677
12678         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12679
12680 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12681
12682         PR target/47665
12683         * combine.c (make_compound_operation): Only change shifts into
12684         multiplication for SCALAR_INT_MODE_P.
12685
12686 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12687
12688         PR testsuite/47622
12689         Revert
12690         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12691         PR debug/42631
12692         * web.c (entry_register): Don't clobber the number of the
12693         first uninitialized reference in used[].
12694
12695 2011-02-09  Richard Guenther  <rguenther@suse.de>
12696
12697         PR tree-optimization/47664
12698         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12699         all edges again.
12700
12701 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12702
12703         PR target/46481
12704         PR target/47032
12705         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12706         PROCESSOR_POWER7.
12707         (PROCESSOR_DEFAULT64): Same.
12708         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12709
12710 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12711
12712         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12713
12714 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12715
12716         PR middle-end/45505
12717         * tree-sra.c (struct access): New flags grp_scalar_read and
12718         grp_scalar_write.  Changed description of assignment read and write
12719         flags.
12720         (dump_access): Dump new flags, reorder all of them.
12721         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12722         to detect multiple scalar reads.
12723         (analyze_access_subtree): Use the new scalar read write flags instead
12724         of the old flags.  Adjusted comments.
12725
12726 2011-02-08  DJ Delorie  <dj@redhat.com>
12727
12728         PR target/47548
12729         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12730         patterns.
12731
12732 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12733
12734         * config/m68k/uclinux.opt: New.
12735         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12736
12737 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12738
12739         * config/cris/elf.opt (sim): New Driver option.
12740
12741 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12742
12743         * config/xtensa/elf.opt: New.
12744         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12745
12746 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12747
12748         * config/vax/elf.opt: New.
12749         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12750
12751 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12752
12753         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12754
12755 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12756
12757         * config/gnu-user.opt: New.
12758         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12759         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12760         *-*-uclinux*): Use gnu-user.opt.
12761
12762 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12763
12764         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12765         * config/i386/gnu.h (CPP_SPEC): Likewise.
12766
12767 2011-02-08  Ian Lance Taylor  <iant@google.com>
12768
12769         * common.opt (fcx-limited-range): Add SetByCombined flag.
12770         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12771         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12772         (fassociative-math, freciprocal-math): Likewise.
12773         (funsafe-math-optimizations): Likewise.
12774         * opth-gen.awk: Handle SetByCombined.
12775         * optc-gen.awk: Likewise.
12776         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12777         (set_unsafe_math_optimizations_flags): Likewise.
12778         * doc/options.texi (Option properties): Document SetByCombined.
12779
12780 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12781
12782         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12783         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12784         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12785         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12786         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12787
12788 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12789
12790         PR tree-optimization/46834
12791         PR tree-optimization/46994
12792         PR tree-optimization/46995
12793         * graphite-sese-to-poly.c (used_outside_reduction): New.
12794         (detect_commutative_reduction): Call used_outside_reduction.
12795         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12796         translate_scalar_reduction_to_array only when at least one
12797         loop-phi/close-phi tuple has been detected.
12798
12799 2011-02-08  Richard Guenther  <rguenther@suse.de>
12800
12801         PR middle-end/47639
12802         * tree-vect-generic.c (expand_vector_operations_1): Update
12803         stmts here ...
12804         (expand_vector_operations): ... not here.  Cleanup EH info
12805         and the CFG if required.
12806
12807 2011-02-08  Richard Guenther  <rguenther@suse.de>
12808
12809         PR tree-optimization/47641
12810         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12811         require type compatibility.
12812
12813 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12814
12815         * gimple-low.c (lower_function_body): Don't remove the location of
12816         the return statement here.
12817         (lower_gimple_return): Do it here instead but only if the return
12818         statement is actually used twice.
12819
12820 2011-02-08  Richard Guenther  <rguenther@suse.de>
12821
12822         PR tree-optimization/47632
12823         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12824         unused up_to_stmt parameter, return whether cfg-cleanup is
12825         necessary, remove EH info properly.
12826         (forward_propagate_into_gimple_cond): Adjust caller.
12827         (forward_propagate_into_cond): Likewise.
12828         (forward_propagate_comparison): Likewise.
12829         (tree_ssa_forward_propagate_single_use_vars): Make
12830         forward_propagate_comparison case similar to the two others.
12831
12832 2011-02-08  Nick Clifton  <nickc@redhat.com>
12833
12834         * config/mn10300/mn10300.opt (mliw): New command line option.
12835         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12836         (liw_bundling): New automaton.
12837         (liw): New attribute.
12838         (liw_op): New attribute.
12839         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12840         (movsi_internal): Add LIW attributes.
12841         (andsi3): Likewise.
12842         (iorsi3): Likewise.
12843         (xorsi3): Likewise.
12844         (addsi3): Separate register and immediate alternatives.
12845         Add LIW attributes.
12846         (subsi3): Likewise.
12847         (cmpsi): Likewise.
12848         (aslsi3): Likewise.
12849         (lshrsi3): Likewise.
12850         (ashrsi3): Likewise.
12851         (liw): New pattern.
12852         * config/mn10300/mn10300.c (liw_op_names): New
12853         (mn10300_print_operand): Handle 'W' operand descriptor.
12854         (extract_bundle): New function.
12855         (check_liw_constraints): New function.
12856         (liw_candidate): New function.
12857         (mn10300_bundle_liw): New function.
12858         (mn10300_reorg): New function.
12859         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12860         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12861         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12862         __LIW__ or __NO_LIW__.
12863         * doc/invoke.texi: Describe the -mliw command line option.
12864
12865 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12866
12867         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12868         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12869         pthread_mutex_unlock): Remove.
12870         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12871         * config/pa/t-pa64: Likewise.
12872         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12873         shared libc if not linking against libpthread.
12874         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12875
12876 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12877
12878         PR target/47558
12879         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12880         on 10.6 and later to ensure that we always use the unwinder from
12881         the system.  Only add -no_compact_unwind when tarteting darwin
12882         10.6 or later.
12883
12884 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12885
12886         PR target/46997
12887         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12888         (vec_interleave_lowv2sf): Ditto.
12889         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12890         (vec_extract_oddv2sf): Ditto.
12891
12892 2011-02-07  Mike Stump  <mikestump@comcast.net>
12893
12894         PR target/42333
12895         Add __ieee_divdc3 entry point.
12896         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12897         entry point.
12898         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12899         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12900         * config/darwin.c (darwin_rename_builtins): Add.
12901         * config/darwin-protos.h (darwin_rename_builtins): Add.
12902
12903 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12904
12905         PR target/47636
12906         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12907         for the condition.
12908
12909 2011-02-07  Mike Stump  <mikestump@comcast.net>
12910
12911         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12912
12913 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12914
12915         PR target/47534
12916         * config/avr/libgcc.S (exit): Move .endfunc
12917
12918 2011-02-07  Richard Guenther  <rguenther@suse.de>
12919
12920         PR tree-optimization/47615
12921         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12922         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12923         (run_scc_vn): Initialize it.
12924         (visit_reference_op_load): Use it.
12925         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12926
12927 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12928
12929         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12930         DImode trapping arithmetic libfuncs.
12931
12932 2011-02-07  Richard Guenther  <rguenther@suse.de>
12933
12934         PR tree-optimization/47621
12935         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12936         two duplicates ...
12937         (execute_update_addresses_taken): ... here.  Make it more
12938         conservative in what we accept.
12939
12940 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12941
12942         * config/sparc/freebsd.h (ASM_SPEC): Define.
12943         * config/sparc/vxworks.h (ASM_SPEC): Define.
12944
12945 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12946
12947         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12948
12949 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12950
12951         * doc/invoke.texi: Remove reference to compiler internals from
12952         user documentation.
12953
12954         * reg-notes.def: Remove REG_VALUE_PROFILE.
12955         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12956
12957 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12958
12959         PR middle-end/47610
12960         * varasm.c (default_section_type_flags): If decl is NULL,
12961         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12962
12963 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12964
12965         PR debug/42631
12966         * web.c (entry_register): Don't clobber the number of the
12967         first uninitialized reference in used[].
12968
12969 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12970
12971         PR tree-optimization/46194
12972         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12973         (build_classic_dist_vector_1): Do not represent classic distance
12974         vectors when the access functions are variating in different loops.
12975
12976 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12977
12978         * config/mips/iris6.opt: New.
12979         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12980
12981 2011-02-04  Richard Henderson  <rth@redhat.com>
12982             Steve Ellcey  <sje@cup.hp.com>
12983
12984         PR target/46997
12985         * config/ia64/predicates.md (mux1_brcst_element): New.
12986         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12987         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12988         (ia64_unpack_sign): New.
12989         (ia64_expand_unpack): Rewrite using new routines.
12990         (ia64_expand_widen_sum): Ditto.
12991         (ia64_expand_dot_prod_v8qi): Ditto.
12992         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12993         routines, add endian check.
12994         (pmpy2_even): Rename from pmpy2_r, add endian check.
12995         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12996         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12997         (vec_widen_smult_hi_v4hi): Ditto.
12998         (vec_widen_umult_lo_v4hi): Ditto.
12999         (vec_widen_umult_hi_v4hi): Ditto.
13000         (mulv2si3): Change endian checks.
13001         (sdot_prodv4hi): Rewrite with new calls.
13002         (udot_prodv4hi): New.
13003         (vec_pack_ssat_v4hi): Add endian check.
13004         (vec_pack_usat_v4hi): Ditto.
13005         (vec_pack_ssat_v2si): Ditto.
13006         (max1_even): Rename from max1_r, add endian check.
13007         (max1_odd): Rename from max1_l, add endian check.
13008         (*mux1_rev): Format change.
13009         (*mux1_mix): Ditto.
13010         (*mux1_shuf): Ditto.
13011         (*mux1_alt): Ditto.
13012         (*mux1_brcst_v8qi): Use new predicate.
13013         (vec_extract_evenv8qi): Remove endian check.
13014         (vec_extract_oddv8qi): Ditto.
13015         (vec_interleave_lowv4hi): Format change.
13016         (vec_interleave_highv4hi): Ditto.
13017         (mix2_even): Rename from mix2_r, add endian check.
13018         (mix2_odd): Rename from mux2_l, add endian check.
13019         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13020         (vec_extract_evenodd_helper): Format change.
13021         (vec_extract_evenv4hi): Remove endian check.
13022         (vec_extract_oddv4hi): Remove endian check.
13023         (vec_interleave_lowv2si): Format change.
13024         (vec_interleave_highv2si): Format change.
13025         (vec_initv2si): Remove endian check.
13026         (vecinit_v2si): Add endian check.
13027         (reduc_splus_v2sf): Add endian check.
13028         (reduc_smax_v2sf): Ditto.
13029         (reduc_smin_v2sf): Ditto.
13030         (vec_initv2sf): Remove endian check.
13031         (fpack): Add endian check.
13032         (fswap): Add endian check.
13033         (vec_interleave_highv2sf): Add endian check.
13034         (vec_interleave_lowv2sf): Add endian check.
13035         (fmix_lr): Add endian check.
13036         (vec_setv2sf): Format change.
13037         (*vec_extractv2sf_0_be): Use shift to extract operand.
13038         (*vec_extractv2sf_1_be): New.
13039         (vec_pack_trunc_v4hi): Add endian check.
13040         (vec_pack_trunc_v2si): Format change.
13041
13042 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
13043
13044         PR inline-asm/23200
13045         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
13046         do bb, locus and block comparison and disallow loads if it is not set.
13047         (stmt_is_replaceable_p): New function.
13048         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13049         callers.
13050         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13051         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13052         SSA_NAME_DEF_STMT.
13053         * tree-flow.h (stmt_is_replaceable_p): New prototype.
13054
13055 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13056
13057         * config/rs6000/xilinx.opt: New.
13058         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13059
13060 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13061
13062         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13063
13064 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
13065
13066         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13067         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13068         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13069         secondary_reload_info, xtensa_secondary_reload): Remove.
13070         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13071         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13072         (xtensa_preferred_reload_class): Make static. Change return and
13073         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13074         Use CONST_DOUBLE_P predicate.
13075         (xtensa_preferred_output_reload_class): New function.
13076         (xtensa_secondary_reload): Make static.
13077
13078 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
13079
13080         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13081         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13082         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13083
13084 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13085
13086         PR middle-end/31490
13087         * output.h (SECTION_RELRO): Define.
13088         (SECTION_MACH_DEP): Adjust.
13089         (get_variable_section): New prototype.
13090         * varpool.c (varpool_finalize_named_section_flags): New function.
13091         (varpool_assemble_pending_decls): Call it.
13092         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13093         * cgraphunit.c (cgraph_output_in_order): Call
13094         varpool_finalize_named_section_flags.
13095         * varasm.c (get_section): Allow section flags conflicts between
13096         relro and read-only sections if the section hasn't been declared yet.
13097         Set SECTION_OVERRIDE after diagnosing section type conflict.
13098         (get_variable_section): No longer static.
13099         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13100         readonly sections that need relocations.
13101         (decl_readonly_section_1): New function.
13102         (decl_readonly_section): Use it.
13103
13104         Revert:
13105         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
13106                     Steve Ellcey  <sje@cup.hp.com>
13107
13108         PR middle-end/31490
13109         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13110         if section attribute used.
13111
13112 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13113
13114         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13115         * config/darwin.c (SECTION_NO_ANCHOR): Define.
13116         (darwin_init_sections): Remove assertion.
13117
13118 2011-02-03  Nick Clifton  <nickc@redhat.com>
13119
13120         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13121         lt and ge.
13122         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13123         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13124         instead of "n" and "pz".
13125         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13126         CC_FLAG_S.
13127
13128 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13129
13130         PR target/47312
13131         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13132         fma, expand FMA_EXPR as fma{,f,l} call.
13133
13134         PR lto/47274
13135         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13136         copy them into a unsigned char variable and pass address of it to
13137         lto_output_data_stream.
13138
13139         PR target/47564
13140         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13141         around backend_init_target and lang_dependent_init_target calls.
13142         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13143         (verify_cgraph_node): Don't call set_cfun here.  Use
13144         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13145         Set error_found for incorrectly represented calls to thunks.
13146
13147 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13148
13149         PR debug/43092
13150         PR rtl-optimization/43494
13151         * rtl.h (for_each_inc_dec_fn): New type.
13152         (for_each_inc_dec): Declare.
13153         * rtlanal.c (struct for_each_inc_dec_ops): New type.
13154         (for_each_inc_dec_find_inc_dec): New fn.
13155         (for_each_inc_dec_find_mem): New fn.
13156         (for_each_inc_dec): New fn.
13157         * dse.c (struct insn_size): Remove.
13158         (replace_inc_dec, replace_inc_dec_mem): Remove.
13159         (emit_inc_dec_insn_before): New fn.
13160         (check_for_inc_dec): Use it, along with for_each_inc_dec.
13161         (canon_address): Pass mem modes to cselib_lookup.
13162         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
13163         (cselib_lookup_from_insn): Likewise.
13164         (cselib_subst_to_values): Likewise.
13165         * cselib.c (find_slot_memmode): New var.
13166         (cselib_find_slot): New fn.  Use it instead of
13167         htab_find_slot_with_hash everywhere.
13168         (entry_and_rtx_equal_p): Use find_slot_memmode.
13169         (autoinc_split): New fn.
13170         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13171         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13172         Deal with autoinc.  Special-case recursion into MEMs.
13173         (cselib_hash_rtx): Likewise.
13174         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13175         address and MEM modes.
13176         (cselib_subst_to_values): Add memmode, pass it on.
13177         Deal with autoinc.
13178         (cselib_lookup): Add memmode argument, pass it on.
13179         (cselib_lookup_from_insn): Add memmode.
13180         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13181         (struct cselib_record_autoinc_data): New.
13182         (cselib_record_autoinc_cb): New fn.
13183         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13184         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13185         (cselib_process_insn): ... here.
13186         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13187         to cselib_lookup.
13188         (add_uses): Likewise, also to cselib_subst_to_values.
13189         (add_stores): Likewise.
13190         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13191         cselib_subst_to_values.
13192         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13193         * gcse.c (do_local_cprop): Adjusted.
13194         * postreload.c (reload_cse_simplify_set): Adjusted.
13195         (reload_cse_simplify_operands): Adjusted.
13196         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13197
13198 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13199
13200         PR tree-optimization/45122
13201         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13202         unsafe assumptions when there's more than one loop exit.
13203
13204 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13205
13206         PR target/47272
13207         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13208         Document using vector double with the load/store builtins, and
13209         that the load/store builtins always use Altivec instructions.
13210
13211         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13212         to use altivec memory instructions, even on VSX.
13213         (vector_altivec_store_<mode>): Ditto.
13214
13215         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13216         function.
13217
13218         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13219         V2DF, V2DI support to load/store overloaded builtins.
13220
13221         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13222         altivec load/store builtins for V2DF/V2DI types.
13223
13224         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13225         set avoid indexed addresses on power6 if -maltivec.
13226         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13227         vector_altivec_load/vector_altivec_store builtins.
13228         (altivec_expand_st_builtin): Ditto.
13229         (altivec_expand_builtin): Add VSX memory builtins.
13230         (rs6000_init_builtins): Add V2DI types to internal types.
13231         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13232         load/store builtins.
13233         (rs6000_address_for_altivec): Insure memory address is appropriate
13234         for Altivec.
13235
13236         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13237         vec_vsx_ld and vec_vsx_st.
13238         (vsx_store_<mode>): Ditto.
13239
13240         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13241         variables to hold long long types for VSX vector memory builtins.
13242         (RS6000_BTI_unsigned_long_long): Ditto.
13243         (long_long_integer_type_internal_node): Ditti.
13244         (long_long_unsigned_type_internal_node): Ditti.
13245
13246         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13247         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13248         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13249
13250         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13251         short cuts.
13252         (vec_vsx_st): Ditto.
13253
13254 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13255
13256         * config/pa/pa-hpux10.opt: New.
13257         * config/hpux11.opt (pthread): New Driver option.
13258         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13259         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13260
13261 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13262
13263         * config/ia64/vms.opt: New.
13264         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13265
13266 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13267
13268         PR target/47580
13269         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13270         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13271         generator functions.
13272         (vsx_floatuns<VSi><mode>2): Ditto.
13273         (vsx_fix_trunc<mode><VSi>2): Ditto.
13274         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13275
13276 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13277
13278         * config/i386/djgpp.opt (posix): New Driver option.
13279
13280 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13281
13282         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13283         Move to the unsupported targets list.
13284
13285 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13286
13287         PR rtl-optimization/47525
13288         * df-scan.c: Update copyright years.
13289         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13290         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13291
13292 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13293
13294         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13295         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13296         (ASM_OUTPUT_ASCII): Remove.
13297         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13298
13299 2011-02-02  Jeff Law  <law@redhat.com>
13300
13301         PR middle-end/47543
13302         * reload.c (find_reloads_address): Handle reg+d address where both
13303         components are invalid by reloading the entire address.
13304
13305 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13306             Richard Guenther  <rguenther@suse.de>
13307
13308         PR tree-optimization/40979
13309         PR bootstrap/47044
13310         * passes.c (init_optimization_passes): After LIM call copy_prop
13311         and DCE to clean up.
13312         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13313
13314 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13315
13316         PR tree-optimization/47576
13317         PR tree-optimization/47555
13318         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13319         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13320         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13321         * tree-scalar-evolution.c (follow_ssa_edge): Use
13322         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13323
13324 2011-02-02  Richard Guenther  <rguenther@suse.de>
13325
13326         PR tree-optimization/47566
13327         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13328
13329 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13330
13331         PR debug/47106
13332         PR debug/47402
13333         * tree-inline.c (declare_return_variable): Remove unused caller
13334         variable.
13335
13336         PR debug/47106
13337         PR debug/47402
13338         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13339         * cfgexpand.c (account_used_vars_for_block): Use them.
13340         * tree-nrv.c (tree_nrv): Likewise.
13341         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13342         (dump_scope_block): Likewise.
13343         (remove_unused_locals): Likewise.
13344
13345         PR debug/47106
13346         PR debug/47402
13347         * tree-inline.c (declare_return_variable): Add result decl to
13348         local decls only once.
13349         * gimple-low.c (record_vars_into): Mark newly-created variables
13350         as referenced.
13351
13352 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13353
13354         PR debug/47498
13355         PR debug/47501
13356         PR debug/45136
13357         PR debug/45130
13358         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13359         debug insns.
13360         (no_real_insns_p, schedule_block, set_priorities): Drop special
13361         treatment of boundary debug insns.
13362         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13363         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13364         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13365         (BOUNDARY_DEBUG_INSN_P): Likewise.
13366         (SCHEDULE_DEBUG_INSN_P): Likewise.
13367         * sched-rgn.c (init_ready_list): Drop special treatment of
13368         boundary debug insns.
13369         * final.c (rest_of_clean_state): Clear notes' BB.
13370
13371 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13372
13373         * config/openbsd.opt (assert=): New Driver option.
13374
13375 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13376
13377         * config/i386/nto.opt: New.
13378         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13379
13380 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13381
13382         * config/i386/netware.opt: New.
13383         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13384
13385 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13386
13387         * config/interix.opt (posix): New Driver option.
13388
13389 2011-02-01  DJ Delorie  <dj@redhat.com>
13390
13391         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13392
13393         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13394         class for A0/A1.
13395
13396 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13397
13398         PR tree-optimization/47561
13399         * toplev.c (process_options): Print the Graphite flags.  Add
13400         flag_loop_flatten to the list of options requiring Graphite.
13401
13402 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13403
13404         * config/i386/cygming.opt (posix): New Driver option.
13405
13406 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13407
13408         * config/arm/vxworks.opt: New.
13409         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13410
13411 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13412
13413         * config/alpha/elf.opt: New.
13414         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13415         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13416
13417 2011-02-01  Richard Guenther  <rguenther@suse.de>
13418
13419         PR tree-optimization/47559
13420         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13421         store-motion on references that can throw.
13422
13423 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13424
13425         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13426         * tree-pass.h (TDF_CSELIB): New macro.
13427         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13428         cselib_lookup): Check for it rather than for TDF_DETAILS.
13429
13430 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13431
13432         PR driver/47547
13433         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13434         is HOST_BIT_BUCKET.
13435
13436         * opts.c (finish_options): Don't add x_aux_base_name if it is
13437         HOST_BIT_BUCKET.
13438
13439 2011-02-01  Richard Guenther  <rguenther@suse.de>
13440
13441         PR tree-optimization/47555
13442         Revert
13443         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13444
13445         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13446
13447 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13448
13449         PR gcc/46692
13450         * config/lm32/t-lm32: Add multilib for all CPU options.
13451
13452 2011-02-01  Richard Guenther  <rguenther@suse.de>
13453
13454         PR tree-optimization/47541
13455         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13456         sure to have a field at offset zero.
13457
13458 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13459
13460         * config/arc/arc.opt (EB, EL): New Driver options.
13461
13462 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13463
13464         * config/alpha/osf5.opt: New.
13465         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13466
13467 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13468
13469         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13470
13471 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13472
13473         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13474         -floop-interchange.
13475         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13476         is an alias of -floop-interchange and that it requires the
13477         Graphite infrastructure.
13478         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13479         flag_loop_interchange based on the value of flag_tree_loop_linear.
13480
13481 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13482             Richard Guenther  <rguenther@suse.de>
13483
13484         PR tree-optimization/47538
13485         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13486         type instead of r1type, except for comparisons.  For right
13487         shifts and comparisons punt if there are mismatches in
13488         sizetype vs. non-sizetype types.
13489
13490 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13491
13492         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13493         avx_runtime.
13494
13495 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13496
13497         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13498         version number.
13499         * configure: Regenerate.
13500
13501 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13502
13503         * configure.ac (gcc_cv_ld_static_option): Define.
13504         (gcc_cv_ld_dynamic_option): Define.
13505         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13506         instead.
13507         (HAVE_LD_STATIC_DYNAMIC): Update message.
13508         (LD_STATIC_OPTION): Define.
13509         (LD_DYNAMIC_OPTION): Define.
13510         * configure: Regenerate.
13511         * config.in: Regenerate.
13512         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13513         HAVE_LD_STATIC_DYNAMIC]: Use them.
13514
13515 2011-01-31  Nick Clifton  <nickc@redhat.com>
13516
13517         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13518         registers inside interrupt handlers if the handler is not a leaf
13519         function.
13520
13521 2011-01-31  Nick Clifton  <nickc@redhat.com>
13522
13523         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13524         reg_renumber returning an INVALID_REGNUM.
13525
13526 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13527
13528         PR libgcj/44341
13529         * doc/install.texi: Document host options discarded when cross
13530         configuring target libraries.
13531
13532 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13533
13534         Reverted:
13535         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13536         PR debug/45136
13537         PR debug/45130
13538         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13539         debug insns.
13540         (no_real_insns_p, schedule_block, set_priorities): Drop special
13541         treatment of boundary debug insns.
13542         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13543         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13544         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13545         (BOUNDARY_DEBUG_INSN_P): Likewise.
13546         (SCHEDULE_DEBUG_INSN_P): Likewise.
13547         * sched-rgn.c (init_ready_list): Drop special treatment of
13548         boundary debug insns.
13549         * final.c (rest_of_clean-state): Clear notes' BB.
13550
13551 2011-01-31  Alan Modra  <amodra@gmail.com>
13552
13553         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13554         toc relative expressions as we do in print_operand_address.
13555
13556 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13557
13558         * doc/extend.texi: Follow spelling conventions.
13559         * doc/invoke.texi: Fix a typo.
13560
13561 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13562
13563         * config/hpux11.opt: New.
13564         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13565         ia64*-*-hpux*): Use hpux11.opt.
13566
13567 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13568
13569         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13570         to tmake_file.
13571
13572 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13573
13574         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13575         support sites.
13576
13577 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13578
13579         * doc/install.texi (Binaries): Remove outdated reference for
13580         Motorola 68HC11/68HC12 downloads.
13581
13582 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13583
13584         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13585         Drepper's paper.
13586
13587 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13588
13589         PR bootstrap/47147
13590         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13591         used by NetBSD.
13592
13593 2011-01-28  Ahmad Sharif  <asharif@google.com>
13594
13595         * value-prof.c (check_counter): Corrected error message.
13596
13597 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13598
13599         * config/arm/arm.c (arm_legitimize_reload_address): New.
13600         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13601         arm_legitimize_reload_address.
13602         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13603
13604 2011-01-28  Ian Lance Taylor  <iant@google.com>
13605
13606         * godump.c (go_define): Ignore macros whose definitions include
13607         two adjacent operands.
13608
13609 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13610
13611         PR target/42894
13612         * varasm.c (force_const_mem): Store copy of x in desc->constant
13613         instead of x itself.
13614         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13615         itself into REG_EQUAL note.
13616
13617 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13618
13619         * config/freebsd.opt (posix, rdynamic): New Driver options.
13620
13621 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13622
13623         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13624         -Bstatic/-Bdynamic.
13625         * configure: Regenerate.
13626
13627 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13628
13629         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13630         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13631
13632 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13633
13634         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13635         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13636         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13637         (s390_preferred_reload_class): Make static. Change return and
13638         'rclass' argument type to reg_class_t.
13639
13640 2011-01-27  Jan Hubicka  <jh@suse.cz>
13641
13642         PR middle-end/46949
13643         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13644         (process_function_and_variable_attributes): Check defined weakrefs.
13645
13646 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13647
13648         PR tree-optimization/47228
13649         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13650         build_ref_for_offset.
13651
13652 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13653
13654         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13655
13656 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13657
13658         PR rtl-optimization/46856
13659         * postreload.c (reload_combine_recognize_const_pattern): Do not
13660         separate cc0 setter and user on cc0 targets.
13661
13662 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13663
13664         PR c/43082
13665         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13666         passed a VOID_TYPE expression, immediately emit an error and
13667         return error_mark_node.
13668
13669 2011-01-26  Jeff Law  <law@redhat.com>
13670
13671         PR rtl-optimization/47464
13672         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13673         rather than may_trap_p as needed.
13674
13675 2011-01-26  DJ Delorie  <dj@redhat.com>
13676
13677         PR rtl-optimization/46878
13678         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13679         setter/user dependency as well.
13680
13681 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13682
13683         PR rtl-optimization/44469
13684         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13685         after removing trivially dead basic blocks.
13686
13687 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13688
13689         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13690         * config/frv/frv.h (LINK_SPEC): Likewise.
13691         * config/i386/netware.h (LINK_SPEC): Likewise.
13692         * config/m68k/linux.h (ASM_SPEC): Likewise.
13693         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13694         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13695         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13696         * config/sparc/linux.h (ASM_SPEC): Likewise.
13697         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13698         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13699
13700 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13701
13702         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13703         * config/frv/frv.h (ASM_SPEC): Likewise.
13704         * config/m68k/linux.h (ASM_SPEC): Likewise.
13705         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13706         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13707         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13708         * config/sparc/linux.h (ASM_SPEC): Likewise.
13709         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13710         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13711
13712 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13713
13714         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13715         * config/frv/frv.h (LINK_SPEC): Likewise.
13716         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13717
13718 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13719
13720         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13721         * config/frv/frv.h (ASM_SPEC): Likewise.
13722         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13723         * config/m68k/linux.h (ASM_SPEC): Likewise.
13724         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13725         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13726         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13727         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13728         * config/sparc/linux.h (ASM_SPEC): Likewise.
13729         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13730         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13731         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13732
13733 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13734
13735         PR target/46997
13736         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13737         (*mux2): Ditto.
13738         (vec_extract_evenodd_help): Ditto.
13739         (vec_extract_evenv4hi): Ditto.
13740         (vec_extract_oddv4hi): Ditto.
13741         (vec_interleave_lowv2si): Ditto.
13742         (vec_interleave_highv2si): Ditto.
13743         (vec_extract_evenv2si): Ditto.
13744         (vec_extract_oddv2si: Ditto.
13745         (vec_pack_trunc_v2si): Ditto.
13746
13747 2011-01-22  Jan Hubicka  <jh@suse.cz>
13748
13749         PR target/47237
13750         * cgraph.h (cgraph_local_info): New field can_change_signature.
13751         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13752         signature can change.
13753         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13754         can change.
13755         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13756         (cgraph_function_versioning): We can not change signature of functions
13757         that don't allow that.
13758         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13759         (lto_input_node): Likewise.
13760         * ipa-inline.c (compute_inline_parameters): Compute
13761         local.can_change_signature.
13762         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13763         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13764         functions that can not change signature.
13765         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13766         init_cumulative_args): Do not use local calling conventions
13767         for functions that can not change signature.
13768
13769 2011-01-22  Jan Hubicka  <jh@suse.cz>
13770
13771         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13772
13773 2011-01-26  Richard Guenther  <rguenther@suse.de>
13774
13775         PR tree-optimization/47190
13776         * cgraphunit.c (process_common_attributes): New function.
13777         (process_function_and_variable_attributes): Use it.
13778
13779 2011-01-26  Richard Guenther  <rguenther@suse.de>
13780
13781         PR lto/47423
13782         * cgraphbuild.c (record_eh_tables): Record reference to personality
13783         function.
13784
13785 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13786
13787         PR debug/45454
13788         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13789         non-debug insns from moving up.
13790
13791 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13792
13793         PR target/40125
13794         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13795         t-dlldir{,-x} fragment for build and add it to tmake_file.
13796         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13797         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13798         * config/i386/t-dlldir: New file.
13799         (SHLIB_DLLDIR): Define.
13800         * config/i386/t-dlldir-x: New file.
13801         (SHLIB_DLLDIR): Define.
13802         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13803         (SHLIB_INSTALL): Use it.
13804
13805 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13806
13807         PR target/47246
13808         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13809         lower bound of the allowed Thumb-2 coprocessor load/store
13810         index range to -256. Add explaining comment.
13811
13812 2011-01-25  Ian Lance Taylor  <iant@google.com>
13813
13814         * godump.c (go_define): Improve lexing of macro expansion to only
13815         accept expressions which match Go spec.
13816
13817 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13818
13819         PR c++/43601
13820         * tree.c (handle_dll_attribute): Handle it.
13821         * doc/extend.texi (@item dllexport): Mention it.
13822         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13823
13824 2011-01-25  Ian Lance Taylor  <iant@google.com>
13825
13826         PR tree-optimization/26854
13827         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13828         (decl_jump_unsafe): Move higher in file, with no other change.
13829         (bind): Set has_jump_unsafe_decl if appropriate.
13830         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13831         (check_earlier_gotos): Likewise.
13832         (c_check_switch_jump_warnings): Likewise.
13833
13834 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13835
13836         * doc/invoke.texi (Warning Options): Add missing hyphen.
13837         (-fprofile-dir): Minor grammatical fixes.
13838         (-fbranch-probabilities): Likewise.
13839
13840 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13841
13842         PR debug/45136
13843         PR debug/45130
13844         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13845         debug insns.
13846         (no_real_insns_p, schedule_block, set_priorities): Drop special
13847         treatment of boundary debug insns.
13848         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13849         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13850         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13851         (BOUNDARY_DEBUG_INSN_P): Likewise.
13852         (SCHEDULE_DEBUG_INSN_P): Likewise.
13853         * sched-rgn.c (init_ready_list): Drop special treatment of
13854         boundary debug insns.
13855         * final.c (rest_of_clean-state): Clear notes' BB.
13856
13857 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13858
13859         * Makefile.in (LAMBDA_H): Removed.
13860         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13861         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13862         lambda-trans.o, and tree-loop-linear.o.
13863         (lto-symtab.o): Remove dependence on LAMBDA_H.
13864         (tree-loop-linear.o): Remove rule.
13865         (lambda-mat.o): Same.
13866         (lambda-trans.o): Same.
13867         (lambda-code.o): Same.
13868         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13869         (tree-vect-slp.o): Same.
13870         * hwint.h (gcd): Moved here.
13871         (least_common_multiple): Same.
13872         * lambda-code.c: Removed.
13873         * lambda-mat.c: Removed.
13874         * lambda-trans.c: Removed.
13875         * lambda.h: Removed.
13876         * tree-loop-linear.c: Removed.
13877         * lto-symtab.c: Do not include lambda.h.
13878         * omega.c (gcd): Removed.
13879         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13880         * tree-data-ref.c (print_lambda_vector): Moved here.
13881         (lambda_vector_copy): Same.
13882         (lambda_matrix_copy): Same.
13883         (lambda_matrix_id): Same.
13884         (lambda_vector_first_nz): Same.
13885         (lambda_matrix_row_add): Same.
13886         (lambda_matrix_row_exchange): Same.
13887         (lambda_vector_mult_const): Same.
13888         (lambda_vector_negate): Same.
13889         (lambda_matrix_row_negate): Same.
13890         (lambda_vector_equal): Same.
13891         (lambda_matrix_right_hermite): Same.
13892         * tree-data-ref.h: Do not include lambda.h.
13893         (lambda_vector): Moved here.
13894         (lambda_matrix): Same.
13895         (dependence_level): Same.
13896         (lambda_transform_legal_p): Removed declaration.
13897         (lambda_collect_parameters): Same.
13898         (lambda_compute_access_matrices): Same.
13899         (lambda_vector_gcd): Same.
13900         (lambda_vector_new): Same.
13901         (lambda_vector_clear): Same.
13902         (lambda_vector_lexico_pos): Same.
13903         (lambda_vector_zerop): Same.
13904         (lambda_matrix_new): Same.
13905         * tree-flow.h (least_common_multiple): Removed declaration.
13906         * tree-parloops.c (lambda_trans_matrix): Moved here.
13907         (LTM_MATRIX): Same.
13908         (LTM_ROWSIZE): Same.
13909         (LTM_COLSIZE): Same.
13910         (LTM_DENOMINATOR): Same.
13911         (lambda_trans_matrix_new): Same.
13912         (lambda_matrix_vector_mult): Same.
13913         (lambda_transform_legal_p): Same.
13914         * tree-pass.h (pass_linear_transform): Removed declaration.
13915         * tree-ssa-loop.c (tree_linear_transform): Removed.
13916         (gate_tree_linear_transform): Removed.
13917         (pass_linear_transform): Removed.
13918         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13919         flag_loop_interchange.
13920
13921 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13922
13923         PR tree-optimization/47265
13924         PR tree-optimization/47443
13925         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13926         if name still has some uses.
13927
13928 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13929
13930         PR tree-optimization/47382
13931         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13932         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13933
13934 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13935
13936         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13937         sjlj_except_unwind_info.
13938
13939 2011-01-25  Richard Guenther  <rguenther@suse.de>
13940
13941         PR tree-optimization/47426
13942         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13943         visible functions results escape.
13944
13945 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13946
13947         PR target/45701
13948         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13949         (arm_get_frame_offsets): Use it.
13950
13951 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13952             Jakub Jelinek  <jakub@redhat.com>
13953
13954         PR tree-optimization/47271
13955         * tree-if-conv.c (bb_postdominates_preds): New.
13956         (if_convertible_bb_p): Call bb_postdominates_preds.
13957         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13958         (predicate_scalar_phi): Call bb_postdominates_preds.
13959
13960 2011-01-25  Nick Clifton  <nickc@redhat.com>
13961
13962         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13963         * config/rx/rx.c (rx_function_value): Likewise.
13964         (rx_promote_function_mode): Likewise.
13965         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13966         in order to make it legitimate.
13967         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13968         make sure that the first operand is the same as the result register.
13969         (addsi3_unspec): Delete.
13970         (subdi3): Do not accept immediate operands.
13971         (subdi3_internal): Likewise.
13972
13973 2011-01-25  Jeff Law  <law@redhat.com>
13974
13975         PR rtl-optimization/37273
13976         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13977         handle them like argument loads from stack slots.  Do not double
13978         count memory for memory constants and argument loads from stack slots.
13979
13980 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13981
13982         PR tree-optimization/47427
13983         PR tree-optimization/47428
13984         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13985         coalesce if the new root var would be TREE_READONLY.
13986
13987 2011-01-25  Richard Guenther  <rguenther@suse.de>
13988
13989         PR middle-end/47414
13990         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13991         correct type for TBAA.
13992
13993 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13994
13995         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13996         (close_phi_written_to_memory): Call for_each_index with
13997         dr_indices_valid_in_loop.
13998
13999 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14000
14001         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14002         when it is initialized.
14003
14004 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14005
14006         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14007         call to graphite_find_data_references_in_stmt.
14008         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14009         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
14010         call to graphite_find_data_references_in_stmt.
14011         (analyze_drs_in_stmts): Same.
14012         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14013         in which the scalar analysis of indices is performed.
14014         (create_data_ref): Same.  Update call to dr_analyze_indices.
14015         (find_data_references_in_stmt): Update call to create_data_ref.
14016         (graphite_find_data_references_in_stmt): Same.
14017         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14018         declaration.
14019         (create_data_ref): Same.
14020         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14021         call to create_data_ref.
14022
14023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14024
14025         * graphite-sese-to-poly.c (build_poly_scop): Move
14026         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14027
14028 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14029
14030         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14031         VAR_DECL, PARM_DECL, and RESULT_DECL.
14032
14033 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14034
14035         * graphite-dependences.c (reduction_dr_1): Allow several reductions
14036         in a reduction PBB.
14037         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14038         that have already been marked as PBB_IS_REDUCTION.
14039
14040 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14041
14042         * graphite-scop-detection.c (same_close_phi_node): New.
14043         (remove_duplicate_close_phi): New.
14044         (make_close_phi_nodes_unique): New.
14045         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14046
14047 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14048
14049         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14050         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14051         of both data references to be the same.
14052
14053 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14054
14055         * graphite-dependences.c (build_lexicographical_constraint): Remove
14056         the gdim parameter.
14057         (build_lexicographical_constraint): Adjust call to
14058         ppl_powerset_is_empty.
14059         (dependence_polyhedron): Same.
14060         (graphite_legal_transform_dr): Same.
14061         (graphite_carried_dependence_level_k): Same.
14062         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14063         parameter.
14064         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14065
14066 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14067
14068         * graphite-sese-to-poly.c
14069         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14070         (close_phi_written_to_memory): New.
14071         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14072         and unshare_expr.
14073
14074 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14075
14076         * doc/install.texi: Update the expected version number of PPL to 0.11.
14077         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14078         #if PPL_VERSION_MINOR < 11.
14079
14080 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14081
14082         * graphite-dependences.c: Include graphite-cloog-util.h.
14083         (new_poly_ddr): Inlined into dependence_polyhedron.
14084         (free_poly_ddr): Moved close by new_poly_ddr.
14085         (dependence_polyhedron_1): Renamed dependence_polyhedron.
14086         Early return NULL when ppl_powerset_is_empty returns true.
14087         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
14088         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
14089         (graphite_legal_transform_dr): Call new_poly_ddr.
14090         (graphite_carried_dependence_level_k): Same.
14091         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
14092         (dot_transformed_deps_stmt_1): Removed.
14093         (dot_deps_stmt_1): Call dot_deps_stmt_2.
14094         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
14095         (dot_deps_1): Call dot_deps_2.
14096         * Makefile.in (graphite-dependences.o): Add missing dependence on
14097         graphite-cloog-util.h.
14098
14099 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14100
14101         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14102         (build_lexicographical_constraint): Same.
14103         (dependence_polyhedron_1): Same.
14104         (graphite_legal_transform_dr): Same.
14105         (graphite_carried_dependence_level_k): Same.
14106         * graphite-ppl.c (ppl_powerset_is_empty): New.
14107         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14108         * tree-data-ref.c (dump_data_reference): Print the basic block index.
14109
14110 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14111
14112         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14113         the "a followed by b" relation and document it.
14114
14115 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14116
14117         * graphite-dependences.c (build_lexicographical_constraint): Stop the
14118         iteration when the bag of constraints is empty.
14119
14120 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14121
14122         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14123
14124 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14125
14126         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14127         nest and two loop depths as parameters.
14128         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14129         lst_perfect_nestify.
14130
14131 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14132
14133         * graphite-dependences.c (print_pddr): Call
14134         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14135
14136 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14137
14138         * graphite-ppl.c (debug_gmp_value): New.
14139         * graphite-ppl.h (debug_gmp_value): Declared.
14140
14141 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
14142
14143         * doc/install.texi: Document availability of cloog-0.16.
14144
14145 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
14146
14147         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14148         invalid postdominance info.
14149
14150 2011-01-24  Jan Hubicka  <jh@suse.cz>
14151
14152         PR c/21659
14153         * doc/extend.texi (weak pragma): Drop claim that it must
14154         appear before definition.
14155         * varasm.c (merge_weak, declare_weak): Only sanity check
14156         that DECL is not output at a time it is declared weak.
14157
14158 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
14159
14160         * machmode.def: Fixed comments.
14161
14162 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
14163
14164         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14165
14166 2011-01-24  Paul Koning  <ni1d@arrl.net>
14167
14168         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14169         WORDS_BIG_ENDIAN.
14170
14171 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14172
14173         PR target/46519
14174         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14175         (block_info): Add scanned and prev.
14176         (move_or_delete_vzeroupper_2): Return if the basic block
14177         has been scanned and the upper 128bit state is unchanged
14178         from the last scan.
14179         (move_or_delete_vzeroupper_1): Return true if the exit
14180         state is changed.
14181         (move_or_delete_vzeroupper): Visit basic blocks using the
14182         work-list based algorithm based on vt_find_locations in
14183         var-tracking.c.
14184
14185         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14186
14187 2011-01-24  Nick Clifton  <nickc@redhat.com>
14188
14189         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14190         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14191         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14192         then define __v850e1__.
14193         * doc/invoke.texi: Document -mv850es.
14194
14195 2011-01-24  Richard Henderson  <rth@redhat.com>
14196
14197         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14198         compound unordered comparisons.
14199         * config/rx/rx.c (rx_split_fp_compare): Remove.
14200         * config/rx/rx-protos.h: Update.
14201         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14202         (cbranchsf4): Don't call rx_split_fp_compare.
14203         (*cbranchsf4): Use rx_split_cbranch.
14204         (*cmpsf): Don't accept "i" constraint.
14205         (*conditional_branch): Only valid after reload.
14206         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14207
14208 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14209
14210         PR target/47385
14211         * config/rs6000/altivec.md (vector constant splitters): Add
14212         support for creating vector single precision constants if -mvsx is
14213         used and we would create the constant using Altivec primitives.
14214
14215 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14216             Richard Sandiford  <rdsandiford@googlemail.com>
14217
14218         PR rtl-optimization/47166
14219         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14220         mechanism for PRE_MODIFY and POST_MODIFY.
14221         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14222         reloadreg.
14223
14224 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14225
14226         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14227
14228 2011-01-22  Jan Hubicka  <jh@suse.cz>
14229
14230         PR lto/47333
14231         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14232
14233 2011-01-22  Jan Hubicka  <jh@suse.cz>
14234
14235         PR tree-optimization/43884
14236         PR lto/44334
14237         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14238         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14239
14240 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14241
14242         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14243         * config/s390/s390.c (s390_register_move_cost,
14244         s390_memory_move_cost): New.
14245         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14246
14247 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14248
14249         PR middle-end/47401
14250         * except.c (sjlj_assign_call_site_values): Move setting the
14251         crtl->uses_eh_lsda flag to ...
14252         (sjlj_mark_call_sites): ... here.
14253         (sjlj_emit_function_enter): Support NULL dispatch label.
14254         (sjlj_build_landing_pads): In a function with no landing pads
14255         that still has must-not-throw regions, generate code to register
14256         a personality function with empty LSDA.
14257
14258 2011-01-21  Richard Henderson  <rth@redhat.com>
14259
14260         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14261
14262         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14263
14264         * compare-elim.c: New file.
14265         * Makefile.in (OBJS-common): Add it.
14266         (compare-elim.o): New.
14267         * common.opt (fcompare-elim): New.
14268         * opts.c (default_options_table): Add OPT_fcompare_elim.
14269         * tree-pass.h (pass_compare_elim_after_reload): New.
14270         * passes.c (init_optimization_passes): Add it.
14271         * recog.h: Protect against re-inclusion.
14272         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14273         * doc/invoke.texi (-fcompare-elim): Document it.
14274         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14275         * doc/tm.texi: Rebuild.
14276
14277 2011-01-22  Nick Clifton  <nickc@redhat.com>
14278
14279         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14280         rx_split_fp_compare.
14281
14282 2011-01-22  Nick Clifton  <nickc@redhat.com>
14283
14284         * config/rx/rx.md (UNSPEC_CONST): New.
14285         (deallocate_and_return): Wrap the amount popped off the stack in
14286         an UNSPEC_CONST in order to stop it being rejected by
14287         -mmax-constant-size.
14288         (pop_and_return): Add a "(return)" rtx.
14289         (call): Drop the immediate operand.
14290         (call_internal): Likewise.
14291         (call_value): Likewise.
14292         (call_value_internal): Likewise.
14293         (sibcall_internal): Likewise.
14294         (sibcall_value_internal): Likewise.
14295         (sibcall): Likewise.  Generate an explicit call using
14296         sibcall_internal.
14297         (sibcall_value): Likewise.
14298         (mov<>): FAIL if a constant operand is not legitimate.
14299         (addsi3_unpsec): New pattern.
14300
14301         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14302         (ok_for_max_constant): New function.
14303         (gen_safe_add): New function.
14304         (rx_expand_prologue): Use gen_safe_add.
14305         (rx_expand_epilogue): Likewise.
14306         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14307         UNSPEC CONSTs.
14308
14309 2011-01-21  Jeff Law  <law@redhat.com>
14310
14311         PR tree-optimization/47053
14312         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14313         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14314         statements are deleted.
14315         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14316         is nonempty, then purge dead edges and cleanup the CFG.
14317
14318 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14319
14320         PR debug/47402
14321         Temporarily revert:
14322         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14323         PR debug/47106
14324         * tree-dfa.c (create_var_ann): Mark variable as used.
14325
14326 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14327
14328         PR middle-end/45566
14329         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14330         notes from other section in hot/cold partitioning even if
14331         last_action is -3.  Increment call_site_base.
14332
14333         PR rtl-optimization/47366
14334         * fwprop.c (forward_propagate_into): Return bool.  If
14335         any changes are made, -fnon-call-exceptions is used and
14336         REG_EH_REGION note is present, call purge_dead_edges
14337         and return true if it purged anything.
14338         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14339         any EH edges were purged.
14340
14341 2011-01-21  Jeff Law  <law@redhat.com>
14342
14343         PR rtl-optimization/41619
14344         * caller-save.c (setup_save_areas): Break out code to determine
14345         which hard regs are live across calls by examining the reload chains
14346         so that it is always used.
14347         Eliminate code which checked REG_N_CALLS_CROSSED.
14348
14349 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14350
14351         PR tree-optimization/47355
14352         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14353         NOP has non-debug uses beyond PHIs in new_bb.
14354
14355 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14356
14357         PR debug/47106
14358         * cfgexpand.c (account_used_vars_for_block): Only account vars
14359         that are annotated as used.
14360         (estimated_stack_frame_size): Don't set TREE_USED.
14361         * tree-dfa.c (create_var_ann): Mark variable as used.
14362
14363 2011-01-21  Richard Guenther  <rguenther@suse.de>
14364
14365         PR middle-end/47395
14366         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14367
14368 2011-01-21  Richard Guenther  <rguenther@suse.de>
14369
14370         PR tree-optimization/47365
14371         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14372         (vn_reference_lookup_pieces): Adjust.
14373         (vn_reference_lookup): Likewise.
14374         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14375         (vn_reference_lookup_3): Only look through kills if in
14376         VN_WALKREWRITE mode.
14377         (vn_reference_lookup_pieces): Adjust.
14378         (vn_reference_lookup): Likewise.
14379         (visit_reference_op_load): Likewise.
14380         (visit_reference_op_store): Likewise.
14381         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14382         (compute_avail): Likewise.
14383         (eliminate): Likewise.
14384
14385 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14386
14387         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14388         DECL_IGNORED_P non-reg vars if they are used.
14389
14390         PR tree-optimization/47391
14391         * varpool.c (const_value_known_p): Return false if
14392         decl is volatile.
14393
14394 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14395
14396         PR bootstrap/47215
14397         * config/i386/i386.c (ix86_local_alignment): Handle
14398         case for va_list_type_node is nil.
14399         (ix86_canonical_va_list_type): Likewise.
14400
14401 2011-01-21  Alan Modra  <amodra@gmail.com>
14402
14403         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14404         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14405
14406 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14407
14408         * config/arm/arm.md (define_attr type): Rename f_load
14409         and f_store to f_fpa_load and f_fpa_store. Update.
14410         (write_conflict): Deal with rename fallout.
14411         (*push_fp_multi): Likewise.
14412         * config/arm/fpa.md (f_load): Use f_fpa_load.
14413         (f_store): Use f_fpa_store.
14414         (*movsf_fpa): Likewise.
14415         (*movdf_fpa): Likewise.
14416         (*movxf_fpa): Likewise.
14417         (*thumb2_movsf_fpa): Likewise.
14418         (*thumb2_movdf_fpa): Likewise.
14419         (*thumb2_movxf_fpa): Likewise.
14420         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14421         f_loadd and f_stored.
14422         (*thumb2_movdi_vfp): Likewise.
14423         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14424         (*thumb2_movsi_vfp): Likewise.
14425         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14426         Use f_loads instead of f_load.
14427         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14428
14429 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14430
14431         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14432         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14433         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14434         (xtensa_mode_dependent_address_p): New function.
14435         (constantpool_address_p): Make static. Change return type to bool.
14436         Change argument type to const_rtx. Use CONST_INT_P predicate.
14437
14438 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14439
14440         PR debug/46583
14441         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14442
14443 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14444
14445         PR debug/47283
14446         * cfgexpand.c (expand_debug_expr): Instead of generating
14447         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14448         etc. handling.
14449
14450 2011-01-20  Richard Guenther  <rguenther@suse.de>
14451
14452         PR middle-end/47370
14453         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14454         the pointer operand of MEM_REFs.
14455
14456 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14457
14458         PR tree-optimization/46130
14459         * ipa-split.c (consider_split): If return_bb contains non-virtual
14460         PHIs other than for retval or if split_function would not adjust it,
14461         refuse to split.
14462
14463 2011-01-20  Richard Guenther  <rguenther@suse.de>
14464
14465         PR tree-optimization/47167
14466         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14467         Revert previous change, only avoid enumeral type changes.
14468
14469 2011-01-19  Mike Stump  <mikestump@comcast.net>
14470
14471         * doc/tm.texi.in (BRANCH_COST): Englishify.
14472         * doc/tm.texi (BRANCH_COST): Likewise.
14473
14474 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14475
14476         PR c++/47291
14477         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14478         (gen_scheduled_generic_parms_dies): New functions.
14479         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14480         generation for the end of CU compilation.
14481         (dwarf2out_finish): Generate template parameters DIEs here.
14482
14483 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14484
14485         PR debug/46240
14486         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14487         debug bind stmt on merge edges.
14488
14489 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14490
14491         PR debug/47079
14492         PR debug/46724
14493         * function.c (instantiate_expr): Instantiate incoming rtl of
14494         implicit arguments, and recurse on VALUE_EXPRs.
14495         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14496         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14497
14498 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14499
14500         * c-parser.c (c_parser_for_statement): Initialize
14501         collection_expression.
14502
14503 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14504
14505         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14506
14507 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14508
14509         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14510         (LINK_SHLIB_SPEC): Don't use %(link_path).
14511         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14512
14513 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14514
14515         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14516         (NO_SHARED_LIB_SUPPORT): Remove.
14517         (LINK_SHLIB_SPEC): Remove one conditional definition.
14518
14519 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14520
14521         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14522         %{call_shared}.
14523         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14524         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14525         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14526         %{call_shared} and conditionals on these options not being passed.
14527         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14528         %{call_shared}.
14529
14530 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14531
14532         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14533         simplify.
14534
14535         * ipa-split.c: Spelling fixes.
14536
14537 2011-01-19  Richard Henderson  <rth@redhat.com>
14538
14539         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14540         (*mulsi3): Likewise.
14541
14542         * longlong.h [__mn10300__] (count_leading_zeros): New.
14543         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14544         [__mn10300__] (add_ssaaaa, subddmmss): New.
14545         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14546         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14547
14548 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14549
14550         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14551
14552 2011-01-19  Richard Henderson  <rth@redhat.com>
14553
14554         * config/mn10300/mn10300.md (addsi3_flags): New.
14555         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14556         (subsi3_flags, subc_internal, subdi3): New.
14557         (subdi3_internal, *subdi3_degenerate): New.
14558         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14559
14560         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14561         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14562         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14563         * config/mn10300/mn10300-protos.h: Update.
14564         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14565         (return_ret): Likewise.  Rename from return_internal_regs.
14566         (return_internal): Remove.
14567
14568         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14569         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14570         (mn10300_legitimate_constant_p): Likewise.
14571         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14572         (mn10300_frame_size): New.
14573         (mn10300_expand_prologue): Use it.
14574         (mn10300_expand_epilogue): Likewise.
14575         (mn10300_initial_offset): Likewise.
14576         * config/mn10300/mn10300-protos.h: Update.
14577         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14578         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14579         (prologue, epilogue, return_internal): Tidy output code.
14580         (mn10300_store_multiple_operation, return): Likewise.
14581         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14582         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14583         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14584         (load_pic, am33_load_pic): New.
14585         (mn10300_load_pic0, mn10300_load_pic1): New.
14586
14587         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14588         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14589         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14590         (cc_flags_for_mode, cc_flags_for_code): New.
14591         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14592         overflow flag is not valid.  Validate that the flags we need
14593         for the comparison are valid.
14594         (mn10300_output_cmp): Remove.
14595         (mn10300_output_add): New.
14596         (mn10300_select_cc_mode): Use cc_flags_for_code.
14597         (mn10300_split_cbranch): New.
14598         (mn10300_match_ccmode): New.
14599         (mn10300_split_and_operand_count): New.
14600         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14601         to the function.
14602         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14603         (addsi3): ... here.  Use mn10300_output_add.
14604         (*addsi3_flags): New.
14605         (*am33_subsi3, *mn10300_subsi3): Merge...
14606         (subsi3): ... here.  Use attribute isa.
14607         (*subsi3_flags): New.
14608         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14609         when possible.
14610         (*am33_andsi3, *mn10300_andsi3): Merge...
14611         (andsi3): ... here.
14612         (*andsi3_flags): New.
14613         (andsi3 splitters): New.
14614         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14615         (iorsi3): ... here.
14616         (*iorsi3_flags): New.
14617         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14618         (xorsi3): ... here.
14619         (*xorsi3_flags): New.
14620         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14621         (one_cmplsi2): ... here.
14622         (*one_cmplsi2_flags): New.
14623         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14624         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14625         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14626         use matching constraints to eliminate a self-comparison.
14627         (*integer_conditional_branch): Rename from integer_conditional_branch.
14628         Use int_mode_flags to match CC_REG.
14629         (*cbranchsi4_btst, *btstsi): New.
14630         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14631         mn10300_split_cbranch.
14632         (*am33_cmpsf): Rename from am33_cmpsf.
14633         (*float_conditional_branch): Rename from float_conditional_branch.
14634         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14635         (zero_extendqisi2): ... here.
14636         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14637         (zero_extendhisi2): ... here.
14638         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14639         (extendqisi2): ... here.
14640         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14641         (extendhisi2): ... here.
14642         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14643         (ashlsi3): ... here.
14644         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14645         (lshrsi3): ... here.
14646         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14647         (ashrsi3): ... here.
14648         (consecutive add peephole): Remove.
14649         * config/mn10300/predicates.md (label_ref_operand): New.
14650         (int_mode_flags): New.
14651         (CCZN_comparison_operator): New.
14652
14653         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14654         (throughput_42_latency_43): New reservation.
14655         (mulsidi3, umulsidi3): New expanders.
14656         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14657         the MDR register to allocation; separately allocate the low and
14658         high parts of the DImode result.
14659         (umulsidi3_internal): Similarly.
14660         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14661         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14662         (udivsi3, umodsi3): Remove.
14663         (udivmodsi4, divmodsi4): New expanders.
14664         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14665         (*divmodsi4): Simiarly.
14666         (ext_internal): New.
14667
14668         * config/mn10300/constraints.md ("z"): New constraint.
14669         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14670         (FIXED_REGISTERS): Don't fix MDR.
14671         (CALL_USED_REGSITERS): Reformat nicely.
14672         (REG_ALLOC_ORDER): Add MDR.
14673         (enum regclass): Add MDR_REGS.
14674         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14675         (IRA_COVER_CLASSES): Add MDR_REGS.
14676         (REGNO_REG_CLASS): Handle MDR_REG.
14677         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14678         (mn10300_register_move_cost): Likewise.
14679         * config/mn10300/mn10300.md (MDR_REG): New.
14680         (*movsi_internal): Handle moves to/from MDR_REGS.
14681
14682         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14683         POST_MODIFY.
14684         (mn10300_secondary_reload): Tidy combination reload classes.
14685         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14686         addresses for AM33.  Allow symbolic offsets for reg+imm.
14687         (mn10300_regno_in_class_p): New.
14688         (mn10300_legitimize_reload_address): New.
14689         * config/mn10300/mn10300.h (enum reg_class): Remove
14690         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14691         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14692         SP_OR_GENERAL_REGS.
14693         (REG_CLASS_NAMES): Update to match.
14694         (REG_CLASS_CONTENTS): Likewise.
14695         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14696         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14697         (REGNO_IN_RANGE_P): Remove.
14698         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14699         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14700         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14701         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14702         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14703         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14704         (REGNO_GENERAL_P): New.
14705         (HAVE_POST_MODIFY_DISP): New.
14706         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14707         (LEGITIMIZE_RELOAD_ADDRESS): New.
14708         * config/mn10300/mn10300-protos.h: Update.
14709
14710         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14711         DATA_REGS for AM33 stack-pointer destination.
14712         (mn10300_preferred_output_reload_class): Likewise.
14713         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14714         into a form appropriate for ...
14715         (TARGET_SECONDARY_RELOAD): New.
14716         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14717         * config/mn10300/mn10300-protos.h: Update.
14718         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14719         reload_insi; use the "A" constraint for the scratch; handle AM33
14720         moves of sp to non-address registers.
14721
14722         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14723         (*movqi_internal): ... here.
14724         (*am33_movhi, *mn10300_movhi): Merge into...
14725         (*movhi_internal): ... here.
14726         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14727         as the source/destination of moves from/to SP.
14728         (movsf): Only allow for AM33-2.
14729         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14730         any integer constant constraint.  Only allow for AM33-2.  Tidy
14731         all of the alternative outputs.
14732         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14733         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14734         for MN103.
14735         (udivsi3, umodsi3): New patterns for MN103 only.
14736
14737 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14738
14739         * doc/tm.texi.in: Spell out that a lack of register class unions
14740         can lead to ICEs.
14741         * doc/tm.texi: Regenerate.
14742
14743 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14744
14745         PR rtl-optimization/47337
14746         * dce.c (check_argument_store): New function.
14747         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14748
14749         PR tree-optimization/47290
14750         * tree-eh.c (infinite_empty_loop_p): New function.
14751         (cleanup_empty_eh): Use it.
14752
14753 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14754
14755         PR target/46997
14756         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14757         (a64_expand_widen_sum): Ditto.
14758         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14759         (vec_extract_evenodd_help): Ditto.
14760         (vec_extract_evenv4hi): Ditto.
14761         (vec_extract_oddv4hi): Ditto.
14762         (vec_extract_evenv2si): Ditto.
14763         (vec_extract_oddv2si): Ditto.
14764         (vec_extract_evenv2sf): Ditto.
14765         (vec_extract_oddv2sf): Ditto.
14766         (vec_pack_trunc_v4hi: Ditto.
14767         (vec_pack_trunc_v2si): Ditto.
14768         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14769         (vec_interleave_highv8qi): Ditto.
14770         (mix1_r): Ditto.
14771         (vec_extract_oddv8qi): Ditto.
14772         (vec_interleave_lowv4hi): Ditto.
14773         (vec_interleave_highv4hi): Ditto.
14774         (vec_interleave_lowv2si): Ditto.
14775         (vec_interleave_highv2si): Ditto.
14776
14777 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14778
14779         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14780         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14781         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14782         (pa_c_mode_for_suffix): New.
14783         (TARGET_EXPAND_BUILTIN): Define.
14784         (TARGET_C_MODE_FOR_SUFFIX): Define.
14785         (pa_builtins): Define.
14786         (pa_init_builtins): Register __float128 type and init new support
14787         builtins.
14788         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14789         * config/pa/quadlib.c (_U_Qfcopysign): New.
14790
14791 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14792
14793         PR middle-end/46894
14794         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14795         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14796         are defined.
14797
14798 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14799
14800         PR tree-optimization/47179
14801         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14802         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14803
14804 2011-01-18  Richard Guenther  <rguenther@suse.de>
14805
14806         PR rtl-optimization/47216
14807         * emit-rtl.c: Include tree-flow.h.
14808         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14809         of replicating it with different semantics.
14810         * Makefile.in (emit-rtl.o): Adjust.
14811
14812 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14813
14814         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14815         (cortex_a9_dp): Handle neon types correctly.
14816
14817 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14818
14819         PR rtl-optimization/47299
14820         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14821         subtarget.  Use normal multiplication if both operands are constants.
14822         * expmed.c (expand_widening_mult): Don't try to optimize constant
14823         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14824         before using it.
14825
14826 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14827
14828         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14829         spacing after 'e.g.', typos, comma, hyphenation.
14830
14831 2011-01-17  Richard Henderson  <rth@redhat.com>
14832
14833         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14834         (rx_restricted_mem_operand): New.
14835         (rx_shift_operand): Use register_operand.
14836         (rx_source_operand, rx_compare_operand): Likewise.
14837         * config/rx/rx.md (addsi3_flags): New expander.
14838         (adddi3): Rewrite as expander.
14839         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14840         (subsi3_flags): New expander.
14841         (subdi3): Rewrite as expander.
14842         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14843
14844         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14845         (rx_init_builtins): Remove sat builtin.
14846         (rx_expand_builtin): Likewise.
14847         * config/rx/rx.md (ssaddsi3): New.
14848         (*sat): Rename from sat.  Represent the CC_REG input.
14849
14850         * config/rx/predicates.md (rshift_operator): New.
14851         * config/rx/rx.c (rx_expand_insv): Remove.
14852         * config/rx/rx-protos.h: Update.
14853         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14854         operand to the canonical position.
14855         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14856         (*bitclr, *bitclr_in_memory): Similarly.
14857         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14858         (insv): Retain the zero_extract in the expansion.
14859
14860         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14861         (bswaphi2, bitinvert, revw): Likewise.
14862
14863         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14864         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14865         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14866         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14867         (bitset, bitset_in_memory): Likewise.
14868         (bitinvert, bitinvert_in_memory): Likewise.
14869         (bitclr, bitclr_in_memory): Likewise.
14870         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14871         (rx_strend, rx_cmpstrn): Likewise.
14872         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14873         (bitop peep2 patterns): Remove.
14874
14875         * config/rx/rx.c (rx_match_ccmode): New.
14876         * config/rx/rx-protos.h: Update.
14877         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14878         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14879         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14880         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14881         (fix_truncsfsi2, floatsisf2): Likewise.
14882         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14883         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14884         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14885         (*subsi3_flags, *xorsi3_flags): New.
14886
14887         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14888
14889         * config/rx/rx.c (rx_print_operand): Remove workaround for
14890         unsplit comparison operations.
14891
14892         * config/rx/rx.md (movsicc): Split after reload.
14893         (*movsicc): Merge *movsieq and *movsine via match_operator.
14894         (*stcc): New pattern.
14895
14896         * config/rx/rx.c (rx_float_compare_mode): Remove.
14897         * config/rx/rx.h (rx_float_compare_mode): Remove.
14898         * config/rx/rx.md (cstoresi4): Split after reload.
14899         (*sccc): New pattern.
14900
14901         * config/rx/predicates.md (label_ref_operand): New.
14902         (rx_z_comparison_operator): New.
14903         (rx_zs_comparison_operator): New.
14904         (rx_fp_comparison_operator): New.
14905         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14906         Validate that the flags are set properly for the comparison.
14907         (rx_gen_cond_branch_template): Remove.
14908         (rx_cc_modes_compatible): Remove.
14909         (mode_from_flags): New.
14910         (flags_from_code): Rename from flags_needed_for_conditional.
14911         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14912         (rx_select_cc_mode): Likewise.
14913         (rx_split_fp_compare): New.
14914         (rx_split_cbranch): New.
14915         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14916         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14917         (*cbranchsf4): Similarly.
14918         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14919         match_operator and rx_split_cbranch.
14920         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14921         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14922         (*cmpsi): Rename from cmpsi.
14923         (*tstsi): Rename from tstsi.
14924         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14925         (*conditional_branch): Rename from conditional_branch.
14926         (*reveresed_conditional_branch): Remove.
14927         (b<code>): Remove expander.
14928         * config/rx/rx-protos.h: Update.
14929
14930         * config/rx/rx.c (rx_compare_redundant): Remove.
14931         * config/rx/rx.md (cmpsi): Don't use it.
14932         * config/rx/rx-protos.h: Update.
14933
14934         * config/rx/rx-modes.def (CC_F): New mode.
14935         * config/rx/rx.c (rx_select_cc_mode): New.
14936         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14937         * config/rx/rx-protos.h: Update.
14938
14939 2011-01-17  Richard Henderson  <rth@redhat.com>
14940
14941         * except.c (dump_eh_tree): Fix stray ; after for statement.
14942
14943 2011-01-17  Richard Guenther  <rguenther@suse.de>
14944
14945         PR tree-optimization/47313
14946         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14947         handling before copying the body.  Properly deal with
14948         by-reference result in SSA form.
14949
14950 2011-01-17  Ian Lance Taylor  <iant@google.com>
14951
14952         PR target/47219
14953         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14954         (struct_value_alias_set): Don't define.
14955         (sparc_option_override): Don't set sparc_sr_alias_set and
14956         struct_value_alias_set.
14957         (save_or_restore_regs): Use gen_frame_mem rather than calling
14958         set_mem_alias_set.
14959         (sparc_struct_value_rtx): Likewise.
14960
14961 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14962
14963         PR target/47318
14964         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14965         (_mm_maskstore_pd): Likewise.
14966         (_mm_maskload_ps): Likewise.
14967         (_mm_maskstore_ps): Likewise.
14968         (_mm256_maskload_pd): Change mask to __m256i.
14969         (_mm256_maskstore_pd): Likewise.
14970         (_mm256_maskload_ps): Likewise.
14971         (_mm256_maskstore_ps): Likewise.
14972
14973         * config/i386/i386-builtin-types.def: Updated.
14974         (ix86_expand_special_args_builtin): Likewise.
14975
14976         * config/i386/i386.c (bdesc_special_args): Update
14977         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14978         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14979         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14980         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14981
14982         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14983         Use <avxpermvecmode> on mask register.
14984         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14985
14986 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14987             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14988             Eric Botcazou  <ebotcazou@adacore.com>
14989
14990         PR target/46655
14991         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14992         if <= USHRT_MAX in 32-bit mode.
14993
14994 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14995
14996         * doc/install.texi (Configuration, Specific): Wrap long
14997         lines in examples.  Allow line wrapping in long options
14998         and URLs where beneficial for PDF output.
14999
15000 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
15001
15002         * config/mips/mips.c (mips_classify_symbol): Don't return
15003         SYMBOL_PC_RELATIVE for nonlocal labels.
15004
15005 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15006
15007         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15008
15009 2011-01-15  Jan Hubicka  <jh@suse.cz>
15010
15011         PR tree-optimization/47276
15012         * ipa.c (function_and_variable_visibility): Do not try to mark alias
15013         declarations as needed.
15014
15015 2011-01-15  Martin Jambor  <mjambor@suse.cz>
15016
15017         * common.opt (fdevirtualize): New flag.
15018         * doc/invoke.texi (Option Summary): Document it.
15019         * opts.c (default_options_table): Add devirtualize flag.
15020         * ipa-prop.c (detect_type_change): Return immediately if
15021         devirtualize flag is not set.
15022         (detect_type_change_ssa): Likewise.
15023         (compute_known_type_jump_func): Likewise.
15024         (ipa_analyze_virtual_call_uses): Likewise.
15025
15026 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15027
15028         PR tree-optimization/45934
15029         PR tree-optimization/46302
15030         * ipa-prop.c (type_change_info): New type.
15031         (stmt_may_be_vtbl_ptr_store): New function.
15032         (check_stmt_for_type_change): Likewise.
15033         (detect_type_change): Likewise.
15034         (detect_type_change_ssa): Likewise.
15035         (compute_complex_assign_jump_func): Check for dynamic type change.
15036         (compute_complex_ancestor_jump_func): Likewise.
15037         (compute_known_type_jump_func): Likewise.
15038         (compute_scalar_jump_functions): Likewise.
15039         (ipa_analyze_virtual_call_uses): Likewise.
15040         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15041
15042 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15043
15044         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15045         * config/i386/i386.opt (msse5): New Alias.
15046
15047 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15048
15049         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15050         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15051         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15052         * config/sparc/sparc.h (CC1_SPEC): Likewise.
15053
15054 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15055
15056         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15057         -mcpu options.
15058         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15059         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15060         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15061         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15062         Likewise.
15063         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15064
15065 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15066
15067         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15068
15069 2011-01-14  Mike Stump  <mikestump@comcast.net>
15070
15071         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15072         * config/fr30/fr30.md: Likweise
15073         (movsi_push): Likewise.
15074         (movsi_pop): Likewise.
15075         (enter_func): Likewise.
15076         * config/moxie/moxie.md (movsi_push): Likewise.
15077         (movsi_pop): Likewise.
15078
15079 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15080
15081         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15082         %{no_archive} %{exact_version}.
15083         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15084         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15085         %{no_archive} %{exact_version}.
15086         * config/mips/openbsd.h (LINK_SPEC): Likewise.
15087         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15088         * config/mips/vxworks.h: Likewise.
15089
15090 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15091
15092         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15093
15094 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15095
15096         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15097         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15098
15099 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15100
15101         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15102         -nodefaultlib.
15103
15104 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15105
15106         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15107         for mcpu not cpu.
15108         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15109         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15110         not cpu.
15111         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15112         Don't handle -shlib.
15113
15114 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15115
15116         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15117         (CC1_SPEC): Don't handle -profile.
15118
15119 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15120
15121         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15122         * config/mips/mips.h (CC1_SPEC): Likewise.
15123
15124 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15125
15126         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15127         * config/mips/mips.h (CC1_SPEC): Likewise.
15128
15129 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15130
15131         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15132         * config/m32r/linux.h (LINK_SPEC): Likewise.
15133         * config/mips/linux.h (LINK_SPEC): Likewise.
15134         * config/mips/linux64.h (LINK_SPEC): Likewise.
15135         * config/sparc/linux.h (LINK_SPEC): Likewise.
15136         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15137         LINK_SPEC): Likewise.
15138         * config/xtensa/linux.h (LINK_SPEC): Likewise.
15139
15140 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15141
15142         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15143         %{version:-v}.
15144         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15145
15146 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15147
15148         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15149         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15150
15151 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15152
15153         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15154
15155 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15156
15157         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15158         supports -Bstatic/-Bdynamic.
15159         * configure: Regenerate.
15160
15161 2011-01-14  Jan Hubicka  <jh@suse.cz>
15162             Jack Howarth  <howarth@bromo.med.uc.edu>
15163
15164         PR target/46037
15165         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15166         when checking debug_info_level. Test write_symbols instead of
15167         debug_hooks->var_location when setting flag_var_tracking_uninit.
15168
15169 2011-01-14  Richard Guenther  <rguenther@suse.de>
15170
15171         PR tree-optimization/47179
15172         * target.def (ref_may_alias_errno): New target hook.
15173         * targhooks.h (default_ref_may_alias_errno): Declare.
15174         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15175         (default_ref_may_alias_errno): New function.
15176         * target.h (struct ao_ref_s): Declare.
15177         * tree-ssa-alias.c: Include target.h.
15178         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15179         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15180         (targhooks.o): Likewise.
15181         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15182         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15183
15184 2011-01-14  Richard Guenther  <rguenther@suse.de>
15185
15186         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15187
15188 2011-01-14  Richard Guenther  <rguenther@suse.de>
15189
15190         PR tree-optimization/47280
15191         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15192         return CFG changes.
15193         (tree_ssa_forward_propagate_single_use_vars): Deal with
15194         CFG changes from associate_plusminus.
15195
15196 2011-01-14  Richard Guenther  <rguenther@suse.de>
15197
15198         PR middle-end/47281
15199         Revert
15200         2011-01-11  Richard Guenther  <rguenther@suse.de>
15201
15202         PR tree-optimization/46076
15203         * tree-ssa.c (useless_type_conversion_p): Conversions from
15204         unprototyped to empty argument list function types are useless.
15205
15206 2011-01-14  Richard Guenther  <rguenther@suse.de>
15207
15208         PR tree-optimization/47286
15209         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15210
15211 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15212
15213         PR middle-end/46823
15214         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15215
15216 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15217
15218         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15219         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15220         * config/xtensa/xtensa.c (xtensa_libcall_value,
15221         xtensa_function_value_regno_p): New functions.
15222         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15223
15224 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15225
15226         PR c++/47213
15227         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15228         PE specific hook.
15229         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15230         New function prototype.
15231         * config/i386/winnt.c (i386_pe_assemble_visibility):
15232         Warn only if attribute was specified by user.
15233
15234 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15235
15236         PR target/47251
15237         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15238         floating point.
15239         (floatunsdidf2_fcfidu): Ditto.
15240
15241 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15242
15243         * config/s390/s390.c (print_operand_address): Replace 'error' with
15244         'output_operand_lossage'.
15245         (print_operand): Likewise.
15246
15247 2011-01-13  Jeff Law  <law@redhat.com>
15248
15249         PR rtl-optimization/39077
15250         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15251         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15252         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15253         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15254         * gcse.c (prune_insertions_deletions): New function.
15255         (compute_pre_data): Use it.
15256
15257 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15258
15259         PR debug/PR46973
15260         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15261         static function.
15262         (prune_unused_types_mark): Use it.
15263
15264 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15265
15266         PR rtl-optimization/45352
15267         * sel-sched.c: Update copyright years.
15268         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15269         in the advancing loop when we have issued issue_rate insns.
15270
15271 2011-01-12  Richard Henderson  <rth@redhat.com>
15272
15273         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15274         (TARGET_MD_ASM_CLOBBERS): New.
15275
15276         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15277         (TARGET_DELEGITIMIZE_ADDRESS): New.
15278
15279         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15280         (clzsi2, *bsch): New patterns.
15281
15282         * config/mn10300/mn10300.md (INT): New mode iterator.
15283         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15284
15285         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15286         flag_split_wide_types.
15287
15288         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15289         (mn10300_trampoline_init): Rewrite without a template, an immediate
15290         load and a direct branch.
15291         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15292
15293 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15294
15295         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15296         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15297         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15298         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15299
15300 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15301
15302         PR debug/47209
15303         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15304         of type.
15305
15306 2011-01-12  Jan Hubicka  <jh@suse.cz>
15307
15308         PR driver/47244
15309         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15310         (PLUGIN_COND_CLOSE): New macro.
15311         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15312
15313 2011-01-12  Richard Guenther  <rguenther@suse.de>
15314
15315         PR lto/47259
15316         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15317         register variables in a MEM_REF.
15318
15319 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15320
15321         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15322         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15323         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15324         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15325         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15326         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15327         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15328         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15329         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15330         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15331         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15332         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15333         * config/gnu-user.h: New.  Copied from linux.h.
15334         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15335         GNU_USER_TARGET_STARTFILE_SPEC.
15336         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15337         GNU_USER_TARGET_ENDFILE_SPEC.
15338         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15339         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15340         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15341         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15342         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15343         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15344         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15345         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15346         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15347         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15348         * config/arm/linux-eabi.h (CC1_SPEC): Use
15349         GNU_USER_TARGET_CC1_SPEC.
15350         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15351         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15352         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15353         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15354         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15355         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15356         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15357         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15358
15359 2011-01-12  Richard Guenther  <rguenther@suse.de>
15360
15361         PR other/46946
15362         * doc/invoke.texi (ffast-math): Document it is turned on
15363         with -Ofast.
15364
15365 2011-01-12  Jan Hubicka  <jh@suse.cz>
15366
15367         PR tree-optimization/47233
15368         * opts.c (common_handle_option): Disable ipa-reference with profile
15369         feedback.
15370
15371 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15372
15373         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15374         error message.
15375
15376 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15377
15378         * c-parser.c (c_lex_one_token): Updated and reindented some
15379         comments.  No changes in code.
15380
15381 2011-01-11  Ian Lance Taylor  <iant@google.com>
15382
15383         * godump.c (go_output_var): Don't output the variable if there is
15384         already a type with the same name.
15385
15386 2011-01-11  Ian Lance Taylor  <iant@google.com>
15387
15388         * godump.c (go_format_type): Don't generate float80.
15389
15390 2011-01-11  Richard Henderson  <rth@redhat.com>
15391
15392         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15393         declaration.  Rewrite for both speed and size.
15394         (mn10300_address_cost_1): Remove.
15395         (mn10300_register_move_cost): New.
15396         (mn10300_memory_move_cost): New.
15397         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15398         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15399         extensions, shifts, BSWAP, CLZ.
15400         (mn10300_wide_const_load_uses_clr): Remove.
15401         (TARGET_REGISTER_MOVE_COST): New.
15402         (TARGET_MEMORY_MOVE_COST): New.
15403         * config/mn10300/mn10300-protos.h: Update.
15404         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15405
15406         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15407         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15408         * config/mn10300/mn10300-protos.h: Update.
15409         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15410         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15411         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15412         (*test_int_bitfield, *test_byte_bitfield): Remove.
15413         (*bit_test, *subreg_bit_test): Remove.
15414         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15415
15416         * config/mn10300/constraints.md ("c"): Rename from "A".
15417         ("A", "D"): New constraint letters.
15418         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15419         (fmssf4, fnmasf4, fnmssf4): Likewise.
15420
15421         * config/mn10300/mn10300.md (isa): New attribute.
15422         (enabled): New attribute.
15423
15424         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15425         (abssf2, negsf2): Define only for hardware fp.
15426         (sqrtsf2): Reformat.
15427         (addsf3, subsf3, mulsf3): Merge expander and insn.
15428
15429         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15430         (DEBUGGER_AUTO_OFFSET): Remove.
15431         (DEBUGGER_ARG_OFFSET): Remove.
15432
15433         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15434         Emit register stores with the same offsets as the hardware.
15435         (mn10300_store_multiple_operation): Don't check that the register
15436         save offsets are monotonic.
15437         * config/mn10300/mn10300-protos.h: Update.
15438
15439         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15440
15441         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15442         in terms of the value on the stack, not the MDR register.
15443
15444 2011-01-11  Jan Hubicka  <jh@suse.cz>
15445
15446         PR lto/45721
15447         PR lto/45375
15448         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15449         (symbol_alias_set_destroy, symbol_alias_set_contains,
15450         propagate_aliases_backward): Declare.
15451         * lto-streamer-out.c (struct sets): New sturcture.
15452         (trivally_defined_alias): New function.
15453         (output_alias_pair_p): Rewrite.
15454         (output_unreferenced_globals): Fix output of alias pairs.
15455         (produce_symtab): Likewise.
15456         * ipa.c (function_and_variable_visibility): Set weak alias destination
15457         as needed in lto.
15458         * varasm.c (symbol_alias_set_t): Remove.
15459         (symbol_alias_set_destroy): Export.
15460         (propagate_aliases_forward, propagate_aliases_backward): New functions
15461         based on ...
15462         (compute_visible_aliases): ... this one; remove.
15463         (trivially_visible_alias): New
15464         (trivially_defined_alias): New.
15465         (remove_unreachable_alias_pairs): Rewrite.
15466         (finish_aliases_1): Reorganize code checking if alias is defined.
15467         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15468         in LTO mode.
15469
15470 2011-01-11  Richard Guenther  <rguenther@suse.de>
15471
15472         PR tree-optimization/46076
15473         * tree-ssa.c (useless_type_conversion_p): Conversions from
15474         unprototyped to empty argument list function types are useless.
15475
15476 2011-01-11  Richard Guenther  <rguenther@suse.de>
15477
15478         PR middle-end/45235
15479         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15480         volatile MEMs as MEM_READONLY_P.
15481
15482 2011-01-11  Richard Guenther  <rguenther@suse.de>
15483
15484         PR tree-optimization/47239
15485         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15486
15487 2011-01-11  Jeff Law  <law@redhat.com>
15488
15489         PR tree-optimization/47086
15490         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15491         IVs from statements that might throw.
15492
15493 2011-01-10  Jan Hubicka  <jh@suse.cz>
15494
15495         PR lto/45375
15496         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15497
15498 2011-01-10  Jan Hubicka  <jh@suse.cz>
15499
15500         PR lto/45375
15501         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15502         when correcting profile.
15503
15504 2011-01-10  Jan Hubicka  <jh@suse.cz>
15505
15506         PR lto/46083
15507         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15508         DECL_FINI_PRIORITY.
15509         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15510         Restore DECL_FINI_PRIORITY.
15511
15512 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15513
15514         * doc/gimple.texi: Fix quoting of multi-word return values in
15515         @deftypefn statements.  Ensure presence of return value.  Wrap
15516         overlong @deftypefn lines.
15517         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15518         descriptions of removed functions.
15519         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15520         of multi-word return value in @deftypefn statement.
15521
15522 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15523
15524         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15525         (Conditional Expressions, Logical Operators)
15526         (Statement and operand traversals): Do not indent smallexample
15527         code.  Fix duplicate function argument in example.
15528
15529 2011-01-10  Jeff Law  <law@redhat.com>
15530
15531         PR tree-optimization/47141
15532         * ipa-split.c (split_function): Handle case where we are
15533         returning a value and the return block has a virtual operand phi.
15534
15535 2011-01-10  Jan Hubicka  <jh@suse.cz>
15536
15537         PR tree-optimization/47234
15538         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15539         (pass_feedback_split_functions): Declare.
15540         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15541         tree-profile.
15542         * ipa-split.c (gate_split_functions): Update comments; disable
15543         split-functions for profile_arc_flag and branch_probabilities.
15544         (gate_feedback_split_functions): New function.
15545         (execute_feedback_split_functions): New function.
15546         (pass_feedback_split_functions): New global var.
15547
15548 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15549
15550         PR lto/46760
15551         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15552         calling gimple_call_set_cannot_inline.
15553
15554 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15555
15556         * config/darwin-sections.def: Remove unused section.
15557
15558 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15559
15560         PR c++/47218
15561         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15562
15563 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15564
15565         PR objc/47232
15566         * c-parser.c (c_parser_declaration_or_fndef): Improved
15567         error message.
15568
15569 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15570
15571         * config/i386/winnt.c (i386_pe_start_function): Make sure
15572         to switch back to function's section.
15573
15574 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15575
15576         PR gcc/46902
15577         PR testsuite/46912
15578         * plugin.c: Move include of dlfcn.h from here...
15579         * system.h: ... to here.
15580
15581 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15582
15583         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15584         file name.
15585         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15586         two extra empty pages in PDF output.
15587
15588 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15589
15590         PR objc/47078
15591         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15592         for error recovery purposes behave as if it was not specified so
15593         that the default type is usd.
15594
15595 2011-01-07  Jan Hubicka  <jh@suse.cz>
15596
15597         PR tree-optmization/46469
15598         * ipa.c (function_and_variable_visibility): Clear needed flags on
15599         nodes with external decls; handle weakrefs merging correctly.
15600
15601 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15602
15603         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15604         not false.
15605
15606 2011-01-07  Jan Hubicka  <jh@suse.cz>
15607
15608         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15609         and no longer claim that gold is required for linker plugin.
15610         * configure: Regenerate.
15611         * gcc.c (PLUGIN_COND): New macro.
15612         (LINK_COMMAND_SPEC): Use it.
15613         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15614         * config.in (HAVE_LTO_PLUGIN): New.
15615         * configure.ac (--with-lto-plugin): New parameter; autodetect
15616         HAVE_LTO_PLUGIN.
15617
15618 2011-01-07  Jan Hubicka  <jh@suse.cz>
15619
15620         PR tree-optimization/46367
15621         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15622         when we can update original.
15623         (cgraph_mark_inline_edge): Sanity check.
15624         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15625
15626 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15627
15628         * config/spu/spu.h (ASM_COMMENT_START): Define.
15629
15630 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15631
15632         PR driver/42445
15633         * gcc.c (%>S): New.
15634         (SWITCH_KEEP_FOR_GCC): Likewise.
15635         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15636         (do_spec_1): Handle "%>".
15637
15638         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15639
15640 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15641
15642         PR target/47201
15643         * config/i386/i386.c (ix86_delegitimize_address): If
15644         simplify_gen_subreg fails, return orig_x.
15645
15646         PR bootstrap/47187
15647         * value-prof.c (gimple_stringop_fixed_value): Handle
15648         lhs of the call properly.
15649
15650 2011-01-07  Jan Hubicka  <jh@suse.cz>
15651
15652         PR lto/45375
15653         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15654
15655 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15656
15657         * target.def (function_switched_text_sections): New hook.
15658         * doc/tm.texi: Regenerated.
15659         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15660         * final.c (default_function_switched_text_sections): New.
15661         (final_scan_insn): Call function_switched_text_sections when a
15662         mid-function section change occurs.
15663         * output.h (default_function_switched_text_sections): Declare.
15664         * config/darwin-protos.h (darwin_function_switched_text_sections):
15665         Likewise.
15666         * config/darwin.c (darwin_function_switched_text_sections): New.
15667         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15668
15669 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15670
15671         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15672         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15673         the secondary code fragment when outputting for DWARF == 2.
15674
15675 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15676
15677         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15678         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15679         Remove.
15680         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15681         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15682
15683 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15684
15685         PR debug/46704
15686         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15687         when it is not empty.
15688
15689 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15690
15691         Bobcat Enablement
15692         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15693         (case ${target}): Add btver1.
15694         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15695         -march=native recognize btver1 processors.
15696         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15697         btver1 def_and_undef
15698         * config/i386/i386.c (struct processor_costs btver1_cost): New
15699         btver1 cost table.
15700         (m_BTVER1): New definition.
15701         (m_AMD_MULTIPLE): Includes m_BTVER1.
15702         (initial_ix86_tune_features): Add btver1 tune.
15703         (processor_target_table): Add btver1 entry.
15704         (static const char *const cpu_names): Add btver1 entry.
15705         (software_prefetching_beneficial_p): Add btver1.
15706         (ix86_option_override_internal): Add btver1 instruction sets.
15707         (ix86_issue_rate): Add btver1.
15708         (ix86_adjust_cost): Add btver1.
15709         * config/i386/i386.h (TARGET_BTVER1): New definition.
15710         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15711         (enum processor_type): Add PROCESSOR_BTVER1.
15712         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15713
15714 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15715
15716         PR target/43309
15717         * config/i386/i386.c (legitimize_tls_address)
15718         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15719         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15720         (tls_initial_exec_64_sun): New pattern.
15721
15722 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15723
15724         * doc/invoke.texi (Overall Options): Improve wording and markup
15725         of the description of -wrapper.
15726
15727 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15728
15729         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15730         rdynamic, threads): New Driver options.
15731
15732 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15733
15734         PR target/38118
15735         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15736         if coming from .tdata.
15737         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15738
15739 2011-01-06  Jan Hubicka  <jh@suse.cz>
15740
15741         PR lto/47188
15742         * collect2.c (main): Do not enable LTOmode when plugin is active.
15743
15744 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15745
15746         PR other/45915
15747         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15748         --version output if supported.
15749         * configure: Regenerate.
15750
15751 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15752
15753         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15754         Driver options.
15755
15756 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15757
15758         PR c/47150
15759         * c-convert.c (convert): When converting a complex expression
15760         other than COMPLEX_EXPR to a different complex type, ensure
15761         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15762         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15763         when converting COMPLEX_TYPE.
15764
15765 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15766
15767         PR tree-optimization/47139
15768         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15769         only the last reduction value is used outside the loop.  Update
15770         documentation.
15771
15772 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15773
15774         * config/rtems.opt: New.
15775         * config.gcc (*-*-rtems*): Use rtems.opt.
15776
15777 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15778
15779         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15780         processors do not support 3DNow instructions.
15781
15782 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15783
15784         * config/spu/spu.c (spu_option_override): Set parameter
15785         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15786
15787 2011-01-05  Jan Hubicka  <jh@suse.cz>
15788
15789         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15790         at the command line.
15791
15792 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15793
15794         PR lto/47162
15795         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15796         deltas on streamed outgoing edges.
15797         (output_node_opt_summary): Output info for outgoing edges only when
15798         the node is in new parameter set.
15799         (output_cgraph_opt_summary): New parameter set, passed to the two
15800         aforementioned functions.  Update its forward declaration and its
15801         callee too.
15802
15803 2011-01-05  Tom Tromey  <tromey@redhat.com>
15804
15805         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15806         operator to c_finish_omp_atomic.
15807         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15808         (build_unary_op): Update.
15809         (build_modify_expr): Update.
15810         (build_asm_expr): Update.
15811
15812 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15813
15814         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15815         newly inserted insns.
15816         (pad_bb): Likewise.
15817         (spu_emit_branch_hint): Likewise.
15818         (insert_hbrp_for_ilb_runout): Likewise.
15819         (spu_machine_dependent_reorg): Call df_finish_pass after
15820         schedule_insns returns.
15821
15822 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15823
15824         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15825
15826 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15827
15828         PR tree-optimization/47005
15829         * tree-sra.c (struct access): Add 'non_addressable' bit.
15830         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15831         (decide_one_param_reduction): Return 0 if the parameter is passed by
15832         reference and one of the accesses in the group is non_addressable.
15833
15834 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15835
15836         PR tree-optimization/47056
15837         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15838         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15839         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15840
15841 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15842
15843         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15844         initializer.  Skip view conversions from aggregate types.
15845
15846 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15847
15848         PR bootstrap/47055
15849         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15850
15851 2011-01-04  Philipp Thomas  <pth@suse.de>
15852
15853         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15854         obvious typo.
15855
15856 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15857
15858         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15859         on empty epilogue sequences.
15860
15861 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15862
15863         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15864         non-static): New Driver options.
15865
15866 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15867
15868         PR driver/47137
15869         * gcc.c (default_compilers[]): Set combinable field to 0
15870         for all assembly languages.
15871
15872 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15873
15874         * config/mips/loongson3a.md: New file.
15875         * config/mips/mips.md: Include loongson3a.md.
15876         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15877         TUNE_LOONGSON_3A.
15878
15879 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15880
15881         PR middle-end/47017
15882         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15883         instead of convert_memory_address_addr_space on the base expression.
15884
15885 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15886
15887         * config/spu/spu.c (spu_option_override): Update error text
15888         for bad -march= / -mtune= values.
15889
15890 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15891
15892         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15893         if branch-hint optimization will be performed.
15894
15895 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15896
15897         PR tree-optimization/47148
15898         * ipa-split.c (split_function): Convert arguments to
15899         DECL_ARG_TYPE if possible.
15900
15901         PR tree-optimization/47155
15902         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15903         when computing uns.
15904
15905         PR rtl-optimization/47157
15906         * combine.c (try_combine): If undobuf.other_insn becomes
15907         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15908         and set *new_direct_jump_p too.
15909
15910 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15911
15912         PR tree-optimization/47021
15913         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15914
15915 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15916
15917         * gcc.c (process_command): Update copyright notice dates.
15918         * gcov.c (print_version): Likewise.
15919         * gcov-dump.c (print_version): Likewise.
15920         * mips-tfile.c (main): Likewise.
15921         * mips-tdump.c (main): Likewise.
15922
15923 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15924
15925         PR tree-optimization/46801
15926         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15927         aggregate fields start at byte boundary instead of the bit-field flag.
15928
15929 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15930
15931         PR driver/47137
15932         * gcc.c (main): Revert revision 168407.
15933
15934 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15935
15936         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15937
15938 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15939
15940         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15941         vector optab to expand vector/scalar shift, update gimple to vector.
15942
15943 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15944
15945         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15946         a thunk.
15947
15948 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15949
15950         PR tree-optimization/46984
15951         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15952         HOST_WIDE_INT.
15953         (cgraph_create_indirect_edge): Fixed line length.
15954         (cgraph_indirect_call_info): Declare.
15955         (cgraph_make_edge_direct) Update declaration.
15956         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15957         (cgraph_create_indirect_edge): Use it.
15958         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15959         callees.
15960         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15961         the new thunk_delta representation.
15962         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15963         HOST_WIDE_INT.
15964         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15965         (ipa_read_indirect_edge_info): Likewise.
15966         * lto-cgraph.c (output_edge_opt_summary): New function.
15967         (output_node_opt_summary): Call it on all outgoing edges.
15968         (input_edge_opt_summary): New function.
15969         (input_node_opt_summary): Call it on all outgoing edges.
15970
15971 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15972
15973         PR driver/47137
15974         * gcc.c (main): Don't check have_o when settting combine_inputs.
15975
15976 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15977
15978         * regrename.c: Add general comment describing the pass.
15979         (struct du_head): Remove 'length' field.
15980         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15981         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15982         Force renaming to the preferred class (if any) in the first pass and do
15983         not consider registers that belong to it in the second pass.
15984         (create_new_chain): Do not set 'length' field.
15985         (scan_rtx_reg): Likewise.
15986
15987 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15988
15989         PR tree-optimization/47140
15990         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15991         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15992         to bit_value_binop.
15993
15994         PR rtl-optimization/47028
15995         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15996         parm_birth_insn instead of at the beginning of first bb.
15997
15998 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15999
16000         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16001         Remove the word "see" before "@pxref".
16002         * doc/rtl.texi: Remove the word "see" before "@pxref".
16003
16004 2011-01-01  Jan Hubicka  <jh@suse.cz>
16005
16006         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16007         memory.
16008
16009 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
16010
16011         PR target/38662
16012         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16013
16014 \f
16015 Copyright (C) 2011 Free Software Foundation, Inc.
16016
16017 Copying and distribution of this file, with or without modification,
16018 are permitted in any medium without royalty provided the copyright
16019 notice and this notice are preserved.