OSDN Git Service

* config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
2
3         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4         moves expensive on Power7 also.
5
6 2011-05-26  Richard Guenther  <rguenther@suse.de>
7
8         * fold-const.c (fold_unary_loc): Remove bogus code.
9
10 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11
12         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13         tree_common.
14         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16         TS_BASE instead of TS_COMMON.
17         * varasm.c (assemble_name): Remove assert.
18
19 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
20
21         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
22         substituted first.
23         * libgcc-std.ver: Delete file.
24
25 2011-05-26  Richard Guenther  <rguenther@suse.de>
26
27         PR tree-optimization/48702
28         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
29         only when we know the base address is within bounds.
30         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
31         assume the base address of TARGET_MEM_REFs is in bounds.
32
33 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34
35         PR target/49099
36         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
37         declaration in TARGET_SOLARIS.
38
39 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
40
41         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
42           The instruction is then expanded explicitly.
43         (supported_compare): Callable instruction.
44         (compare): Likewise.
45
46 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
47
48         PR c++/49165
49         * gimplify.c (shortcut_cond_r): Don't special case
50         COND_EXPRs if they have void type on one of their arms.
51
52 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
53
54         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
55         to reduce duplication, and to achieve a slightly more logical order
56         of operations.
57
58 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
59
60         PR tree-optimization/49161
61         * tree-vrp.c (struct case_info): New type.
62         (compare_case_labels): Sort case_info structs instead of
63         trees, and not primarily by CASE_LABEL uids but by
64         label_for_block indexes.
65         (find_switch_asserts): Put case labels into struct case_info
66         array instead of TREE_VEC, adjust sorting, compare label_for_block
67         values instead of CASE_LABELs.
68
69 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
70
71         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
72         ("orndi3_neon"): Likewise.
73         ("bic<mode>3_neon"): Likewise.
74
75 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
76
77         PR tree-optimization/49038
78         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
79         Ensure at least one epilogue iteration if required by data
80         accesses with gaps.
81         * tree-vectorizer.h (struct _loop_vec_info): Add new field
82         to mark loops that require peeling for gaps.
83         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
84         (vect_get_known_peeling_cost): Take peeling for gaps into
85         account.
86         (vect_transform_loop): Generate epilogue if required by data
87         access with gaps.
88         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
89         loop as requiring an epilogue if there are gaps in the end of
90         the strided group.
91
92 2011-05-25  Ian Lance Taylor  <iant@google.com>
93
94         * godump.c (go_format_type): Output the first field with a usable
95         Go type, if any.
96
97 2011-05-25  Ian Lance Taylor  <iant@google.com>
98
99         * godump.c (go_format_type): Check for invalid type names, pointer
100         target types, and struct field types.
101
102 2011-05-25  Jason Merrill  <jason@redhat.com>
103
104         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
105
106 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
107
108         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
109
110 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * config/i386/i386.md (*movqi_extv_1)): Put back
113         "register_operand" check in "type" calculation.
114         (*movqi_extzv_2): Likewise.
115
116 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
117
118         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
119
120 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
121
122         PR bootstrap/49160
123         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
124         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
125         __divxc3, __divtc3): Wrap definitions in #ifndef.
126
127 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
128
129         PR target/49142
130         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
131         "register_operand" check and replace q_regs_operand with
132         QIreg_operand in "type" calculation.
133         (*movqi_extv_1): Likewise.
134         (*movqi_extzv_2_rex64): Likewise.
135         (*movqi_extzv_2): Likewise.
136
137         * config/i386/predicates.md (QIreg_operand): New.
138
139 2011-05-25  Richard Guenther  <rguenther@suse.de>
140
141         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
142         type-based offset disambiguation, streamline MEM_REF and
143         TARGET_MEM_REF handling.
144
145 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
146
147         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
148         (bdesc_special_args): Add pause intrinsic.
149
150         * config/i386/i386.md (UNSPEC_PAUSE): New.
151         (pause): Likewise.
152         (*pause): Likewise.
153         * config/i386/ia32intrin.h (__pause): Likewise.
154
155         * doc/extend.texi (X86 Built-in Functions): Add documentation for
156         pause intrinsic.
157
158 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
159
160         PR tree-optimization/46728
161         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
162         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
163
164 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
165
166         * tree.h (struct tree_exp): Inherit from struct tree_typed.
167         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
168         instead of TS_COMMON.
169
170 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
171
172         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
173         LIBGCC2_GNU_PREFIX is defined.
174         (__N): New macro.
175         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
176         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
177         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
178         __clz_tab): Define using __N.
179         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
180         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
181         * target.def (libfunc_gnu_prefix): New hook.
182         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
183         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
184         * doc/tm.texi: Regenerate.
185         * system.h (LIBGCC2_GNU_PREFIX): Poison.
186         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
187         account.
188         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
189         (init_optabs): Likewise for the bswap libfuncs.
190         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
191         and divide.
192         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
193         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
194         * libgcc-std.ver: Remove.
195         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
196         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
197         libgcc-std.ver.
198         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
199         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
200         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
201         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
202         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
203         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
204         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
205         * config/fixed-bit.h (FIXED_OP): Define differently depending on
206         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
207         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
208
209 2011-05-25  Jan Hubicka  <jh@suse.cz>
210
211         * lto-streamer-out.c (output_record_start): Use lto_output_enum
212         (lto_output_tree): Use output_record_start.
213         * lto-streamer-in.c (input_record_start): Use lto_input_enum
214         (lto_get_pickled_tree): Use input_record_start.
215         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
216         (lto_value_range_error): New function.
217         * lto-streamer.h (lto_value_range_error): Declare.
218         (lto_output_int_in_range, lto_input_int_in_range): New functions.
219         (lto_output_enum, lto_input_enum): New macros.
220
221 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
222
223         * common.opt (flag_stack_usage_info): New variable.
224         (-Wstack-usage): New option.
225         * doc/invoke.texi (Warning options): Document -Wstack-usage.
226         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
227         <OPT_fstack_usage>: Likewise.
228         * toplev.c (output_stack_usage): Handle -Wstack-usage.
229         * calls.c (expand_call): Test flag_stack_usage_info variable instead
230         of flag_stack_usage.
231         (emit_library_call_value_1): Likewise.
232         * explow.c (allocate_dynamic_stack_space): Likewise.
233         * function.c (instantiate_virtual_regs ): Likewise.
234         (prepare_function_start): Likewise.
235         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
236         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
237         * config/arm/arm.c (arm_expand_prologue): Likewise.
238         (thumb1_expand_prologue): Likewise.
239         * config/avr/avr.c (expand_prologue): Likewise.
240         * config/i386/i386.c (ix86_expand_prologue): Likewise.
241         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
242         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
243         * config/mips/mips.c (mips_expand_prologue): Likewise.
244         * config/pa/pa.c (hppa_expand_prologue): Likewise.
245         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
246         * config/s390/s390.c (s390_emit_prologue): Likewise.
247         * config/sh/sh.c (sh_expand_prologue): Likewise.
248         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
249         * config/spu/spu.c (spu_expand_prologue): Likewise.
250
251 2011-05-25  Richard Guenther  <rguenther@suse.de>
252
253         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
254         (gimple_canonical_types_compatible_p): Likewise.
255
256 2011-05-25  Jan Hubicka  <jh@suse.cz>
257
258         PR middle-end/49062
259         * ipa.c (function_and_variable_visibility): Only add to same
260         comdat group list if DECL_ONE_ONLY.
261
262 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
263
264         PR rtl-optimization/49014
265         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
266
267 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
268
269         PR target/49128
270         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
271
272 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
273
274         PR rtl-optimization/48757
275         * ira-build.c (loop_with_eh_edge_p): Rename to
276         loop_with_complex_edge_p, check edges on complexity, make function
277         conditional.
278         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
279         conditional.
280
281 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
282
283         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
284         force flag_ira_share_save_slots to 0.
285
286 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
287
288         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
289         (vt_initialize): Set PROLOGUE_BB unconditionally.
290         Add block comment about CFA_BASE_RTX machinery.
291         Reset FP_CFA_OFFSET to -1 on all invalid paths.
292         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
293
294 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
295
296         PR objc/48187
297         * c-parser.c (c_parser_objc_class_instance_variables): More robust
298         parsing of syntax error in ObjC instance variable lists.  In
299         particular, avoid an infinite loop if there is a stray ']'.
300         Updated error message.
301
302 2011-05-24  Ian Lance Taylor  <iant@google.com>
303
304         * godump.c (go_define): Don't accept a string immediately after
305         another operand.
306
307 2011-05-24  Ian Lance Taylor  <iant@google.com>
308
309         * godump.c (struct godump_container): Add invalid_hash field.
310         (go_format_type): Return false if type is found in invalid_hash.
311         (go_output_typedef): Add invalid type to invalid_hash.
312         (go_finish): Create and delete invalid_hash.
313
314 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
315
316         PR tree-optimization/46728
317         * tree-ssa-math-opts.c (powi_table): New.
318         (powi_lookup_cost): New.
319         (powi_cost): New.
320         (powi_as_mults_1): New.
321         (powi_as_mults): New.
322         (gimple_expand_builtin_powi): New.
323         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
324         (gate_cse_sincos): Remove sincos/cexp restriction.
325
326 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
327
328         PR target/3746
329         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
330         mips-tdump native.
331         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
332         * mips-tdump.c: Likewise.
333
334 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
335
336         PR target/49128
337         * config/i386/driver-i386.c (host_detect_local_cpu): Always
338         add -mno-XXX.  Handle FMA.
339
340 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
341
342         PR rtl-optimization/48633
343         * ira-build.c (loop_with_eh_edge_p): New function.
344         (mark_loops_for_removal): Use it.
345
346 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
347
348         PR rtl-optimization/48971
349         * ira.c (setup_pressure_classes): Don't check register move cost
350         for classes with one registers.  Don't add pressure class if there
351         is a pressure class with the same available hard registers.
352         Check contains_reg_of_mode.  Fix a typo in collecting
353         temp_hard_regset.  Ignore hard registers not belonging to a class.
354
355 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
356
357         PR target/49133
358         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
359
360 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
361             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
362
363         PR gcov-profile/48845
364         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
365
366 2011-05-24  Richard Guenther  <rguenther@suse.de>
367
368         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
369         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
370         (gimple_types_compatible_p_1): Adjust.
371         (iterative_hash_canonical_type): Do not bother about complete vs.
372         incomplete types.
373         (gimple_canonical_types_compatible_p): Likewise.
374
375 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
376
377         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
378
379 2011-05-24  Richard Guenther  <rguenther@suse.de>
380
381         PR bootstrap/49078
382         * gimple.c (gimple_register_canonical_type): Revert
383         previous change.
384         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
385         does not for a tree for the case where it matters.  Cache
386         pointer-type alias-sets.
387
388 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
389
390         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
391         (OBJS): Remove options.o, opts-common.o and prefix.o.
392         (OBJS-libcommon-target): New.
393         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
394         (BACKEND): Include libcommon-target.a.
395         (MOSTLYCLEANFILES): Include libcommon-target.a.
396         (libcommon-target.a): New.
397         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
398         prefix.o.
399
400 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
401
402         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
403         parts of output shared with the driver.
404         * optc-gen.awk: Don't generate parts of output not shared with the
405         driver.
406         * opth-gen.awk: Remove GCC_DRIVER conditionals.
407         * doc/options.texi (SourcerInclude): Mention options-save.c.
408         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
409         (OBJS): Add options-save.o.
410         (options-save.c, options-save.o): New.
411         (options.o): Update dependencies.
412         (gcc-options.o): Remove.
413         (mostlyclean): Remove options-save.c.
414
415 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
416
417         PR debug/49032
418         * dbxout.c: Include cgraph.h.
419         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
420         and without value expr, return NULL if no varpool node exists for
421         it or if it is not needed.
422         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
423
424         PR c/49120
425         * c-decl.c (start_decl): Convert expr to void_type_node.
426
427 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
428
429         PR rtl-optimization/48826
430         * emit-rtl.c (try_split): When splitting a call that is followed
431         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
432
433 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
434
435         * cfgexpand.c (expand_debug_expr): For unused non-addressable
436         parameters passed in memory prefer using DECL_INCOMING_RTL over
437         the pseudos it will be copied into.
438
439 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
440
441         PR target/47315
442         * config/i386/i386.c (ix86_option_override_internal): Save the
443         initial options after checking vzeroupper.
444
445 2011-05-23  David Li  <davidxl@google.com>
446
447         PR tree-optimization/48988
448         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
449         Initialize has_valid_pred for each pred chain.
450
451 2011-05-23  Richard Guenther  <rguenther@suse.de>
452
453         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
454         (iterative_hash_gimple_type): Always hash type names.
455
456 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
457
458         * c-typeck.c (build_function_call_vec): Tweak call to
459         check_function_arguments.
460
461 2011-05-23  Richard Guenther  <rguenther@suse.de>
462
463         PR tree-optimization/49115
464         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
465         is not necessarily carried out, do not claim it kills the ref.
466         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
467
468 2011-05-23  Richard Guenther  <rguenther@suse.de>
469
470         PR middle-end/15419
471         * builtins.c (fold_builtin_memory_op): Be less restrictive about
472         what pointer types we accept for folding.
473
474 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
475
476         * gthr-gnat.c: Remove.
477         * gthr-gnat.h: Remove.
478         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
479         * config/t-freebsd (LIB2ADDEH): Likewise.
480         * config/t-linux (LIB2ADDEH): Likewise.
481         * config/t-sol2 (LIB2ADDEH): Likewise.
482         * config/ia64/t-vms (LIB2ADDEH): Likewise.
483         * configure.ac (target_thread_file): Remove gnat handling.
484         * configure: Regenerate.
485         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
486
487 2011-05-23  Tristan Gingold  <gingold@adacore.com>
488             Eric Botcazou  <ebotcazou@adacore.com>
489
490         * gcov.c (create_file_names): If no object directory is specified,
491         keep the directory of the file.
492
493 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
494
495         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
496         * configure: Regenerate.
497
498 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
499
500         PR middle-end/48973
501         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
502         failed and the comparison has a single bit signed type, use
503         constm1_rtx instead of const1_rtx for true value.
504         (do_store_flag): If ops->type is single bit signed type, disable
505         signel bit test optimization and pass -1 instead of 1 as last
506         parameter to emit_store_flag_force.
507
508 2011-05-23  Tom de Vries  <tom@codesourcery.com>
509
510         PR target/45098
511         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
512         function.
513         (infer_loop_bounds_from_undefined): Use new function.
514
515 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
516
517         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
518         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
519         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
520         and -O0 otherwise.
521         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
522
523 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
524
525         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
526         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
527         returns true.
528
529 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
530
531         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
532
533 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
534
535         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
536         UNSPEC_MOVE_PIC pattern.
537
538 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
539
540         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
541         (sparc-*-rtems*): Likewise.
542         (sparc64-*-elf*): Likewise.
543         (sparc64-*-rtems*): Likewise.
544         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
545         * config/sparc/t-crtin: New file.
546         * config/sparc/t-sol2 (crti.o): Delete rule.
547         (crtn.o): Likewise.
548         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
549         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
550         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
551         (ENDFILE_SPEC): Add crtn.o.
552
553 2011-05-22  Tom de Vries  <tom@codesourcery.com>
554
555         PR middle-end/48689
556         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
557         CODE_CONTAINS_STRUCT (TS_COMMON).
558
559 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
560
561         PR middle-end/49029
562         * expmed.c (extract_fixed_bit_field): Test whether target can be used
563         only after deciding which mode to use.
564
565 2011-05-22  Tom de Vries  <tom@codesourcery.com>
566
567         PR target/45098
568         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
569         for call to get_shiftadd_cost.
570
571 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
572
573         PR target/49104
574         * config/i386/cpuid.h (bit_MMXEXT): New define.
575
576 2011-05-22  Nick Clifton  <nickc@redhat.com>
577
578         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
579         initialisation of non-existant args[2] element.  Use args[] array
580         not arg[] array to pass arguments to build_function_type_list.
581
582 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
583
584         PR tree-optimization/49087
585         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
586
587 2011-05-21  Jason Merrill  <jason@redhat.com>
588
589         PR c++/49092
590         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
591         static storage duration.
592
593 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
594
595         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
596         frame pointer.
597
598 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
599
600         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
601         false if there are call-saved registers here...
602         (sparc_can_use_return_insn_p): ...but here instead.
603         (save_or_restore_regs): Fix thinko.
604         (sparc_expand_prologue): Use current_function_is_leaf.
605         (sparc_frame_pointer_required): Likewise.
606
607 2011-05-21  Nick Clifton  <nickc@redhat.com>
608
609         PR target/49098
610         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
611
612 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
613
614         * gengtype.c (walk_type): Implemented "atomic" GTY option.
615         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
616
617 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
618
619         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
620         * optc-gen.awk: Move common code to opt-read.awk.
621         * opth-gen.awk: Likewise.
622         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
623
624 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
625
626         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
627
628 2011-05-20  Tom de Vries  <tom@codesourcery.com>
629
630         PR target/45098
631         * tree-ssa-loop-ivopts.c: Include expmed.h.
632         (get_shiftadd_cost): New function.
633         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
634
635 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
636
637         PR bootstrap/49086
638         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
639         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
640
641 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
642
643         * Makefile.in: Update comment referring to $(OBJS-common).
644
645 2011-05-20  Ian Lance Taylor  <iant@google.com>
646
647         * godump.c (go_output_typedef): Put enum constants in the macro
648         hash table to avoid duplicate Go const definitions.
649
650 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
651
652         * Makefile.in (LIBDEPS): Add libcommon.a.
653         (LIBS): Likewise.
654         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
655         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
656         pretty-print.o and version.o.
657         (OBJS-libcommon): New.
658         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
659         (BACKEND): Add libcommon.a.
660         (MOSTLYCLEANFILES): Likewise.
661         (libcommon.a): New.
662         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
663         (cpp$(exeext)): Likewise.
664         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
665         pretty-print.o and input.o.
666         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
667         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
668         (errors.o): Remove.
669         (mips-tfile): Don't explicitly use version.o.
670         (mips-tdump): Likewise.
671         (gcov.o): Depend on $(DIAGNOSTIC_H).
672         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
673         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
674         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
675         * gcov-dump.c: Include intl.h and diagnostic.h.
676         (main): Initialize diagnostics.
677         * gcov.c: Include diagnostic.h.
678         (fnotice): Remove.
679         (main): Initialize diagnostics.
680         * lto-wrapper.c: Include diagnostic.h.
681         (main): Initialize diagnostics.
682
683 2011-05-20  Michael Matz  <matz@suse.de>
684
685         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
686
687 2011-05-20  Michael Matz  <matz@suse.de>
688             Richard Guenther  <rguenther@suse.de>
689
690         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
691         use lto_streamer_cache_append directly instead of returning a VEC.
692         (preload_common_node): Remove.
693         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
694         track seen nodes.
695         (lto_streamer_cache_create): Call lto_preload_common_nodes.
696
697 2011-05-20  Richard Guenther  <rguenther@suse.de>
698
699         PR tree-optimization/49079
700         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
701         MEM_REFs correctly for the trailing array access detection.
702         Special case constants the same way as decls for overall size
703         constraining.
704
705 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
706
707         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
708         argument expansion.
709
710 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
711
712         PR tree-optimization/49073
713         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
714         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
715         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
716
717 2011-05-20  Richard Guenther  <rguenther@suse.de>
718
719         PR middle-end/48849
720         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
721         of pointer types the same way the middle-end does.
722
723 2011-05-20  Richard Guenther  <rguenther@suse.de>
724
725         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
726         or pointer-to chains.  Delay all fixup to uniquify_nodes.
727
728 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
729
730         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
731         (fma4_fmaddsub): Likewise
732
733 2011-05-19  Jan Hubicka  <jh@suse.cz>
734
735         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
736         (GIMPLE_TYPE_PAIR_SIZE): New macro.
737         (type_pair_cache): New static var.
738         (lookup_type_pair): Use fixed sized custom hash; make inline.
739         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
740         calls of lookup_type_pair.
741         (print_gimple_types_stats): Remove cache stats.
742         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
743         and gtc_ob.
744
745 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
746
747         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
748         when TARGET_RDRND is active.
749         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
750         Generate dummy SImode target register when target is NULL.
751
752 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
753
754         * config/arm/arm-fpus.def: New.
755         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
756         arm-fpus.def.
757         * config/arm/arm-tables.opt: Regenerate.
758         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
759         (arm_option_override): Don't decode FPU name to string here.
760         * config/arm/arm.opt (mfpu=): Use Enum.
761         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
762         Update dependencies.
763
764 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
765
766         * collect2.c: Include diagnostic.h.
767         (fatal_perror, fatal, error, fancy_abort): Remove.
768         (main): Set progname.  Call xmalloc_set_program_name and
769         diagnostic_initialize.
770         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
771         scan_libraries, resolve_lib_name): Call fatal_error instead of
772         fatal and fatal_perror.
773         * collect2.h (error, fatal, fatal_perror): Don't declare.
774         * tlink.c: Include diagnostic-core.h.
775         (recompile_files): Call fatal_error instead of fatal_perror.
776         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
777         pretty-print.o and input.o.
778         (collect2.o, tlink.o): Update dependencies.
779
780 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
781
782         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
783
784 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
785
786         PR target/40483
787         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
788         COMDAT group syntax, both SPARC and x86 variants.
789         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
790         * configure: Regenerate.
791         * config/sol2.h (TARGET_SOLARIS): Define.
792         (PUSHSECTION_FORMAT): Remove.
793         (SECTION_NAME_FORMAT): Define.
794         * config/sol2.c: Include hashtab.h.
795         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
796         expansion, using SECTION_NAME_FORMAT.
797         (solaris_comdat_htab): New variable.
798         (struct comdat_entry): Define.
799         (comdat_hash): New function.
800         (comdat_eq): New function.
801         (solaris_elf_asm_comdat_section): New function.
802         (solaris_define_comdat_signature): New function.
803         (solaris_code_end): New function.
804         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
805         (solaris_code_end): Declare.
806         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
807         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
808         solaris_code_end.
809         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
810         Remove ATTRIBUTE_UNUSED.
811         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
812         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
813         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
814         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
815         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
816         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
817         (PUSHSECTION_FORMAT): Remove.
818         (SECTION_NAME_FORMAT): Redefine.
819
820 2011-05-19  Kai Tietz  <ktietz@redhat.com>
821
822         * tree-cfg.c (verify_gimple_assign_binary): Barf on
823         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
824         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
825
826 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
827             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
828
829         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
830
831 2011-05-19  Richard Guenther  <rguenther@suse.de>
832
833         PR middle-end/48985
834         * tree-object-size.c (addr_object_size): If the pointed-to
835         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
836
837 2011-05-19  Richard Guenther  <rguenther@suse.de>
838
839         * gimple.c (gimple_types_compatible_p_1): Compare names of
840         the types themselves.
841         (iterative_hash_gimple_type): And hash them that way.
842         (gimple_register_type_1): If we register a main variant properly
843         initialize the leader to ourselves.
844
845 2011-05-19  Tom de Vries  <tom@codesourcery.com>
846
847         PR target/45098
848         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
849         get_loop_invariant_expr_id.
850         (get_loop_invariant_expr_id): Use get_expr_id.
851         (parm_decl_cost): New function.
852         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
853         Improve bound cost estimation.  Use different inv_expr_id for elim and
854         express cases.
855
856 2011-05-19  Tom de Vries  <tom@codesourcery.com>
857
858         PR target/45098
859         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
860         cost_base.cost == 0.
861
862 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
863
864         PR target/49002
865         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
866         Properly handle load cast.
867
868 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
869
870         PR tree-optimization/49039
871         * tree-vrp.c (extract_range_from_binary_expr): For
872         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
873         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
874
875 2011-05-18  Tom de Vries  <tom@codesourcery.com>
876
877         PR target/45098
878         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
879
880 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
881
882         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
883         (*tls_global_dynamic_64): Ditto.
884         (*tls_local_dynamic_base_32_gnu): Ditto.
885         (*tls_local_dynamic_base_64): Ditto.
886         (tls_initial_exec_64_sun): Ditto.
887
888 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
889
890         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
891         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
892         bf592-none.
893         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
894         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
895         * config/bfin/bfin.c (bfin_cpus): Add bf592.
896         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
897         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
898         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
899         * config/bfin/elf.h (LIB_SPEC): Add bf592.
900
901 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
902
903         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
904         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
905         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
906         target_thread_pointer, arm_structure_size_boundary, struct
907         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
908         struct abi_name, arm_all_abis): Remove.
909         (arm_option_override) Don't process most enumerated option values here.
910         Don't process target_fpe_name here.  Work with integer not string for
911         structure size boundary; use separate diagnostics for each case.
912         * config/arm/arm.h (enum float_abi_type, enum
913         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
914         to arm-opts.h.
915         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
916         arm_structure_size_boundary): Remove.
917         * config/arm/arm.opt (mabi=): Use Enum and Init.
918         (arm_abi_type): New Enum and EnumValue entries.
919         (mfloat-abi=): Use Enum and Init.
920         (float_abi_type): New Enum and EnumValue entries.
921         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
922         (mfp16-format=): Use Enum and Init.
923         (arm_fp16_format_type): New Enum and EnumValue entries.
924         (mstructure-size-boundary=): Use UInteger and Init.
925         (mtp=): Use Enum and Init.
926         (arm_tp_type): New Enum and EnumValue entries.
927
928 2011-05-18  Richard Guenther  <rguenther@suse.de>
929
930         PR tree-optimization/49018
931         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
932         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
933         gimple_has_side_effects.
934
935 2011-05-18  Richard Guenther  <rguenther@suse.de>
936
937         * gimple.c (gimple_register_type_1): New function, split out from ...
938         (gimple_register_type): ... here.  Avoid infinite recursion.
939
940 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
941
942         PR tree-optimization/41881
943         * tree-vectorizer.h (struct _loop_vec_info): Add new field
944         reduction_chains along with a macro for its access.
945         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
946         (destroy_loop_vec_info): Free reduction chains.
947         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
948         (vect_is_slp_reduction): New function.
949         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
950         (vect_create_epilog_for_reduction): Support SLP reduction chains.
951         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
952         definition types for reduction chains.
953         (vect_supported_load_permutation_p): Don't allow permutations for
954         reduction chains.
955         (vect_analyze_slp_instance): Support reduction chains.
956         (vect_analyze_slp): Try to build SLP instance from reduction chains.
957         (vect_get_constant_vectors):  Handle reduction chains.
958         (vect_schedule_slp_instance): Mark the first statement of the
959         reduction chain as reduction.
960
961 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
962
963         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
964         names for group elements access.
965         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
966         reduction chains as well.  Remove data reference and interleaving
967         related words from the fields names.
968         * tree-vect-loop.c (vect_transform_loop): Use new names for group
969         elements access.
970         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
971         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
972         vect_update_interleaving_chain, vect_same_range_drs,
973         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
974         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
975         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
976         vect_analyze_group_access, vect_analyze_data_ref_access,
977         vect_create_data_ref_ptr, vect_transform_strided_load,
978         vect_record_strided_load_vectors): Likewise.
979         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
980         vect_model_load_cost, vectorizable_store, vectorizable_load,
981         vect_remove_stores, new_stmt_vec_info): Likewise.
982         * tree-vect-slp.c (vect_build_slp_tree,
983         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
984
985 2011-05-18  Richard Guenther  <rguenther@suse.de>
986
987         PR middle-end/48989
988         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
989         operand verification.
990         (verify_gimple_assign_binary): Likewise.
991         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
992         to non-1-precision BOOLEAN_TYPEs.
993
994 2011-05-18  Tom de Vries  <tom@codesourcery.com>
995
996         PR target/45098
997         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
998
999 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1000
1001         PR tree-optimization/49000
1002         * tree-ssa.c (execute_update_addresses_taken): Call
1003         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1004         be rewritten and decl has been marked for renaming, reset
1005         the debug stmt.
1006
1007 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1008
1009         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1010         enum_opts_set when testing if attributes have set -mfpmath=.
1011
1012 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1013
1014         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1015
1016 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1017
1018         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1019         info->entry with 0
1020         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1021         id.transform_lang_insert_block with NULL.
1022
1023 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1024
1025         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1026         (output_fp_compare): Change args 3 and 4 to bool.
1027         (ix86_expand_call): Change arg 6 to bool.
1028         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1029         (ix86_attr_length_vex_default): Change arg 3 to bool.
1030         * config/i386/i386.md: Update all uses.
1031         * config/i386/i386.c: Ditto.
1032         (ix86_flags_dependent): Change return type to bool.
1033
1034 2011-05-17  Richard Guenther  <rguenther@suse.de>
1035
1036         * gimple.c (type_hash_pair_compare): Fix comparison.
1037
1038 2011-05-17  Richard Guenther  <rguenther@suse.de>
1039
1040         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1041         case some more, fix final hash value of the non-singleton case.
1042
1043 2011-05-17  Richard Guenther  <rguenther@suse.de>
1044
1045         PR bootstrap/49013
1046         Revert
1047         2011-05-16  Richard Guenther  <rguenther@suse.de>
1048
1049         * gimple.c (gimple_types_compatible_p_1): Use names of the
1050         type itself, not its main variant.
1051         (iterative_hash_gimple_type): Likewise.
1052
1053 2011-05-17  Richard Guenther  <rguenther@suse.de>
1054
1055         * gimple.c (gimple_register_canonical_type): Use the main-variant
1056         leader for computing the canonical type.
1057
1058 2011-05-17  Nick Clifton  <nickc@redhat.com>
1059
1060         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1061         moves.
1062
1063         * config/rx/rx.md: Add peephole to remove redundant extensions
1064         after loads.
1065         (bitset_in_memory): Use rx_restricted_mem_operand.
1066         (bitinvert_in_memory): Likewise.
1067         (bitclr_in_memory): Likewise.
1068
1069 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1070             Nick Clifton  <nickc@redhat.com>
1071
1072         * config/rx/rx.md: Add peepholes to match a register move followed
1073         by a comparison of the moved register.  Replace these with an
1074         addition of zero that does both actions in one instruction.
1075
1076 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1077
1078         PR target/48986
1079         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1080         predicate to allow CONST_INT.
1081         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1082
1083 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1084
1085         * opts-common.c (opt_enum_arg_to_value): New.
1086         * opts.h (opt_enum_arg_to_value): Declare.
1087         * config/i386/i386.opt (fpmath): Remove.
1088         (mfpmath=): Use Enum, Init and Save.
1089         (fpmath_unit): New Enum and EnumValue entries.
1090         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1091         name for function fpmath state.
1092         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1093         * config/i386/i386.c: Include diagnostic.h.
1094         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1095         (ix86_target_string): Take enum fpmath_unit value instead of string.
1096         (ix86_debug_options): Update call to ix86_target_string.
1097         (ix86_option_override_internal): Don't process fpmath strings here.
1098         (x86_function_specific_save, ix86_function_specific_restore):
1099         Don't handle fpmath state specially.
1100         (ix86_function_specific_print): Pass fpmath state to
1101         ix86_target_string instead of printing in this function.
1102         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1103         Handle enum attributes.
1104         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1105         (ix86_valid_target_attribute_tree): Update option_strings
1106         handling.  Handle fpmath as enum option.
1107         (ix86_can_inline_p): Update field names for function fpmath state.
1108         (ix86_expand_builtin): Update call to ix86_target_string.
1109         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1110         (ix86_fpmath): Remove.
1111         * config/i386/t-i386 (i386.o): Update dependencies.
1112
1113 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1114
1115         PR preprocessor/48677
1116         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1117         from decoded_options[0], not from itself.
1118
1119 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1120
1121         * config/i386/constraints.md (z): New constraint.
1122         * config/i386/i386.c (c): New mode attribute.
1123         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1124         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1125         constraint for operand 0.
1126         (*call_vzeroupper): Ditto.
1127         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1128         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1129         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1130         Use "lzm" constraint for operand 0.
1131         (*call_pop_vzeroupper): Ditto.
1132         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1133         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1134         constraint for operand 0.
1135         (*sibcall_vzeroupper): Ditto.
1136         (*sibcall_rex64_ms_sysv): Ditto.
1137         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1138         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1139         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1140         (*sibcall_pop_vzeroupper): Ditto.
1141         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1142         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1143         mode iterator.  Use "<c>zm" constraint for operand 1.
1144         (*call_value_vzeroupper): Ditto.
1145         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1146         for operand 1.
1147         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1148         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1149         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1150         (*call_value_pop_vzeroupper): Ditto.
1151         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1152         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1153         mode iterator.  Use "Uz" constraint for operand 1.
1154         (*sibcall_value_vzeroupper): Ditto.
1155         (*sibcall_value_rex64_ms_sysv): Ditto.
1156         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1157         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1158         constraint for operand 1.
1159         (*sibcall_value_pop_vzeroupper): Ditto.
1160         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1161         and "z" constraint for operand 2.
1162         (*tls_global_dynamic_32_gnu): Ditto.
1163         (*tls_local_dynamic_base_32_gnu): Ditto.
1164         (*tls_local_dynamic_base_64): Ditto.
1165         (*tls_local_dynamic_32_once): Ditto.
1166         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1167         Update all callers.
1168         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1169
1170 2011-05-16  Richard Guenther  <rguenther@suse.de>
1171
1172         * gimple.c (gimple_types_compatible_p_1): Use names of the
1173         type itself, not its main variant.
1174         (iterative_hash_gimple_type): Likewise.
1175
1176 2011-05-16  Richard Guenther  <rguenther@suse.de>
1177
1178         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1179         always visit pointer target and function result and argument types.
1180
1181 2011-05-16  Jason Merrill  <jason@redhat.com>
1182
1183         PR c++/48999
1184         * tree-inline.c (copy_statement_list): Put back recursion.
1185
1186 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1187
1188         PR target/27663
1189         PR target/41076
1190         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1191         * config/avr/avr.md ("*ior<mode>qi.byte0",
1192         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1193
1194 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1195
1196         PR target/45099
1197         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1198         register is needed for a function argument.
1199
1200 2011-05-16  Richard Guenther  <rguenther@suse.de>
1201
1202         * gimple.c (struct type_hash_pair): New type.
1203         (type_hash_pair_compare): New function.
1204         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1205
1206 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1207
1208         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1209
1210 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1211
1212         * config/i386/i386.md (floating point move splitters): Fix
1213         usage of standard_80387_constant_p.
1214         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1215
1216 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1217
1218         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1219
1220 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1221
1222         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1223         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1224         (tree_ssa_lim_finalize): Likewise.
1225
1226 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1227
1228         * config/i386/constraint.md (Yd, Yx): New register constraints.
1229         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1230         Yd conditional register constraint.
1231         (*movtf_internal): Use standard_sse_constant_opcode.
1232         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1233         Yx conditional register constraint.
1234         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1235         Yd conditional register constraint.  Use standard_sse_constant_p to
1236         check for valid SSE constants and call standard_sse_constant_opcode to
1237         output SSE insn.
1238         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1239         constants and call standard_sse_constant_opcode to output SSE insn.
1240         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1241         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1242         optimize_size is set.
1243         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1244
1245 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1246
1247         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1248
1249 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1250
1251         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1252         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1253         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1254         (evaluate_conditions_for_ipcp_clone): Removed.
1255         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1256         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1257         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1258
1259 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1260
1261         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1262         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1263         lieu of MAY_HAVE_DEBUG_STMTS.
1264         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1265         debug statements if !MAY_HAVE_DEBUG_STMTS.
1266
1267 2011-05-13  Martin Thuresson  <martint@google.com>
1268
1269         PR gcov-profile/47793
1270         * libgcov.c (gcov_exit): Support relative profile paths.
1271         * doc/invoke.texi (-fprofile-dir): Update for above change.
1272
1273 2011-05-13  Richard Guenther  <rguenther@suse.de>
1274
1275         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1276         type-pair caching, do not compare hashes.
1277
1278 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1279
1280         PR middle-end/48965
1281         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1282         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1283
1284 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1285
1286         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1287         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1288         compatible type for TRUTH_NOT_EXPR.
1289
1290 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1291
1292         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1293         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1294         can_create_pseudo_p ().
1295
1296 2011-05-13  Richard Guenther  <rguenther@suse.de>
1297
1298         PR lto/48978
1299         * gimple.c (iterative_hash_gimple_type): Revert change in
1300         pointer target and function result and argument hashing.
1301
1302 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1303
1304         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1305         (*movxf_internal_nointeger): Ditto.
1306         (*movdf_internal_rex64): Ditto.
1307         (*movdf_internal): Ditto.
1308         (*movdf_internal_nointeger): Ditto.
1309         (*movsf_internal): Ditto.
1310         (sincos splitters): Use can_create_pseudo ().
1311
1312 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1313
1314         * config/i386/i386-opts.h: New.
1315         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1316         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1317         ix86_section_threshold): Remove.
1318         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1319         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1320         OPT_mbranch_cost_.
1321         (ix86_option_override_internal): Don't decode strings for options
1322         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1323         __attribute__ uses in remaining diagnostics for options with
1324         string arguments.  Don't check for integer arguments being negative.
1325         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1326         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1327         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1328         ix86_branch_cost, ix86_section_threshold): Remove.
1329         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1330         HeaderInclude.
1331         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1332         but not Var.
1333         (masm=): Use Enum and Init.
1334         (asm_dialect): New Enum and EnumValue entries.
1335         (mbranch-cost=): Use UInteger.
1336         (mlarge-data-threshold=): Use UInteger and Init.
1337         (mcmodel=): Use Enum and Init.
1338         (cmodel): New Enum and EnumValue entries.
1339         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1340         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1341         mregparm=): Use UInteger.
1342         (mstringop-strategy=): Use Enum and Init.
1343         (stringop_alg): New Enum and EnumValue entries.
1344         (mtls-dialect=): Use Enum and Init.
1345         (tls_dialect): New Enum and EnumValue entries.
1346         (mabi=): Use Enum and Init.
1347         (calling_abi): New Enum and EnumValue entries.
1348         (mveclibabi=): Use Enum and Init.
1349         (ix86_veclibabi): New Enum and EnumValue entries.
1350
1351 2011-05-13  Nick Clifton  <nickc@redhat.com>
1352
1353         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1354         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1355
1356 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1357
1358         PR middle-end/48984
1359         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1360         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1361         (gimple_boolify): Check for cast for boolean_type_node instead for
1362         BOOLEAN_TYPE.
1363
1364 2011-05-13  Richard Guenther  <rguenther@suse.de>
1365
1366         PR tree-optimization/48172
1367         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1368         multiplying by number of iterations for equal step.
1369         (vect_create_cond_for_alias_checks): Likewise.
1370
1371 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1372
1373         * configure.ac: Use AS_HELP_STRING throughout.
1374         * configure: Regenerate.
1375
1376 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1377
1378         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1379         (ix86_emit_restore_regs_using_mov): Likewise.
1380         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1381
1382 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1383
1384         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1385         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1386         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1387         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1388         RTX_OK_FOR_OLO10_P): ...here.
1389         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1390         SYMBOLIC_CONST.
1391
1392 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1393
1394         * gimplify.c (gimple_boolify): Re-boolify expression
1395         arguments even if expression type is of kind BOOLEAN_TYPE.
1396         (gimplify_boolean_expr): Removed.
1397         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1398         and XOR. Additional take care that we keep expression's type.
1399         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1400         of TRUTH_AND|OR|XOR_EXPR.
1401
1402 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1403
1404         PR tree-optimization/48975
1405         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1406         on all bbs here and free and clear ifc_bbs at the end.
1407
1408 2011-05-12  Richard Guenther  <rguenther@suse.de>
1409
1410         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1411         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1412         until after simple checks.
1413         (gimple_types_compatible_p): Likewise.
1414         (iterative_hash_gimple_type): Always hash pointer targets
1415         and function return and argument types.
1416         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1417         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1418         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1419         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1420         completely in the simple compare section.
1421         (gimple_register_canonical_type): Query the cache again after
1422         registering.
1423
1424 2011-05-12  Richard Guenther  <rguenther@suse.de>
1425
1426         PR tree-optimization/48172
1427         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1428         the number of iterations from the segment size calculation.
1429         (vect_create_cond_for_alias_checks): Adjust.
1430
1431 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1432
1433         PR debug/48967
1434         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1435         if validate_subreg fails.
1436
1437 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1438
1439         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1440         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1441         early.
1442
1443 2011-05-12  DJ Delorie  <dj@redhat.com>
1444
1445         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1446         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1447         created builtin into rx_builtins array.
1448         (rx_builtin_decl): New function.
1449         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1450
1451 2011-05-12  DJ Delorie  <dj@redhat.com>
1452             Nick Clifton  <nickc@redhat.com>
1453
1454         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1455         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1456         (rx_is_legitimate_address): Add pre-decrement and post-increment
1457         addressing in HImode and QImode.  Fix test for out of range
1458         REG+INT addressing.
1459         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1460         (rx_align_for_label): Test label before extracting its usage count.
1461         (rx_adjust_insn_lengths): Fix selection of insn codes.
1462         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1463
1464 2011-05-11  Jason Merrill  <jason@redhat.com>
1465
1466         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1467
1468 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1469
1470         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1471         reindent the subsequent block.
1472
1473 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1474             Paul Pluzhnikov  <ppluzhnikov@google.com>
1475
1476         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1477         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1478         * config.in: Add LINKER_HASH_STYLE.
1479         * configure.ac: Add --with-linker-hash-style.
1480         * configure: Regenerate.
1481
1482 2011-05-11  Richard Guenther  <rguenther@suse.de>
1483
1484         PR middle-end/48964
1485         * gimple.c (iterative_hash_canonical_type): Fix typo.
1486
1487 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1488
1489         * config/i386/i386.c (legitimize_tls_address)
1490         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1491         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1492         __tls_get_addr symbol reference here.  Update call to
1493         gen_tls_global_dynamic_{32,64} for added arguments.
1494         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1495         expanders directly for TARGET_GNU2_TLS.  Determine
1496         __tls_get_addr symbol reference here.  Update call to
1497         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1498         unique UNSPEC REG_EQUIV to libcall block.
1499         (ix86_tls_get_addr): Declare static.
1500         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1501         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1502         Do not determine pic and __tls_get_addr symbol reference here. Do not
1503         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1504         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1505         (tls_global_dynamic_64): Add operand 2.  Do not determine
1506         __tls_get_addr symbol reference here.  Do not call
1507         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1508         (tls_local_dynamic_base64): Ditto for operand 1.
1509
1510 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1511
1512         * function.c (expand_function_start): Initialize stack_check_probe_note
1513         only if the generic stack checking mechanism is used.
1514
1515 2011-05-11  Richard Guenther  <rguenther@suse.de>
1516
1517         PR tree-optimization/15256
1518         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1519         (A & B) | C, combine (A op CST1) op CST2.
1520         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1521         visit assigns that have uses.
1522
1523 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1524
1525         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1526         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1527         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1528         (unpack_value_fields): Adjust for renaming.
1529         (lto_input_ts_type_tree_pointers): Split into...
1530         (lto_input_ts_type_common_tree_pointer): ...this and...
1531         (lto_input_ts_type_non_common_tree_pointers): ...this.
1532         (lto_input_tree_pointers): Adjust for above split.
1533         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1534         (pack_ts_type_common_value_fields): ...this.  Update comment.
1535         (lto_output_ts_type_tree_pointers): Split into...
1536         (lto_output_ts_type_common_tree_pointers): ...this and...
1537         (lto_output_ts_type_non_common_tree_pointers): ...this.
1538         (lto_output_tree_pointers): Adjust for above split.
1539         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1540         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1541         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1542         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1543         Define.
1544         (struct tree_type): Split into...
1545         (struct tree_type_common: ...this and...
1546         (struct tree_type_with_lang_specific): ...this and...
1547         (struct tree_type_non_common): ...this.  Adjust accessor macros
1548         accordingly.
1549         (TYPE_VALUES_RAW): Define.
1550         (union tree_node): Update for above changes.
1551         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1552         TS_TYPE_NON_COMMON.
1553         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1554         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1555         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1556         * treestructu.def (TS_TYPE): Remove.
1557         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1558         Define.
1559
1560 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1561
1562         PR debug/48159
1563         * tree-ssa.c (reset_debug_uses): New function.
1564         * tree-flow.h (reset_debug_uses): New prototype.
1565         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1566         * tree-loop-distribution.c (generate_loops_for_partition): Call
1567         reset_debug_uses on the stmts that will be removed.  Keep around
1568         all debug stmts, don't count them as bits in partition bitmap.
1569         (generate_builtin): Don't count debug stmts or labels as bits in
1570         partition bitmap.
1571
1572 2011-05-11  Richard Guenther  <rguenther@suse.de>
1573
1574         * gimple.c (gimple_type_hash_1): Merge with ...
1575         (gimple_type_hash): ... this.
1576         (gtc_visit): Remove mode parameter and simplify accordingly.
1577         (gimple_types_compatible_p_1): Likewise.
1578         (gimple_types_compatible_p): Likewise.
1579         (iterative_hash_gimple_type): Likewise.
1580         (visit): Likewise.
1581         (gimple_type_eq): Adjust.
1582
1583 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1584
1585         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1586         enters the branch create an anti edge in the opposite direction
1587         to prevent the creation of reg-moves.
1588         * modulo-sched.c: Adjust comment to reflect the fact we are
1589         scheduling closing branch.
1590         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1591         (stage_count): New field in struct partial_schedule.
1592         (calculate_stage_count): New function.
1593         (normalize_sched_times): Rename to reset_sched_times and handle
1594         incrementing the sched time of the nodes by a constant value
1595         passed as parameter.
1596         (duplicate_insns_of_cycles): Skip closing branch.
1597         (sms_schedule_by_order): Schedule closing branch.
1598         (ps_insn_find_column): Handle closing branch.
1599         (sms_schedule): Call reset_sched_times and adjust the code to
1600         support scheduling of the closing branch.
1601         (ps_insert_empty_row): Update calls to normalize_sched_times
1602         and rotate_partial_schedule functions.
1603
1604 2011-05-11  Richard Guenther  <rguenther@suse.de>
1605
1606         PR middle-end/48953
1607         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1608
1609 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1610
1611         * opts.c (finish_options): Move warning settings from process_options.
1612         * toplev.c (process_options): Move warning settings to finish_options.
1613
1614 2011-05-11  Richard Guenther  <rguenther@suse.de>
1615
1616         PR tree-optimization/18041
1617         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1618         (simplify_bitwise_binary): ... this.  Handle operand conversions
1619         by applying them to the result instead.
1620         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1621
1622 2011-05-11  Richard Guenther  <rguenther@suse.de>
1623
1624         * gimple.c (gimple_canonical_types_compatible_p): Split out
1625         from gimple_types_compatible_p and friends.  Do not recurse
1626         to pointed-to types.
1627         (gimple_canonical_type_eq): Use it.
1628         (iterative_hash_canonical_type): Split out from
1629         iterative_hash_gimple_type and friends.  Do not recurse
1630         to pointed-to types.
1631         (gimple_canonical_type_hash): Use it, allocate the hash here.
1632
1633 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1634
1635         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1636         recognizing doloop.
1637
1638 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1639
1640         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1641         instead of PREV_INSN.
1642
1643 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1644
1645         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1646         * loop-doloop.c (doloop_condition_get): Likewise.
1647         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1648         (doloop_end): New.
1649         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1650
1651 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1652
1653         * tree.def (CASE_LABEL_EXPR): Add an operand.
1654         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1655
1656 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1657
1658         * c-decl.c (c_override_global_bindings_to_false): Remove.
1659         (global_bindings_p): Don't check
1660         c_override_global_bindings_to_false.
1661         * c-tree.h (c_override_global_bindings_to_false): Remove.
1662         * c-typeck.c (composite_type): Don't set
1663         c_override_global_bindings_to_false.
1664
1665 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1666
1667         PR target/48857, 48495
1668         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1669         (VSX_MODE): Ditto.
1670         (VSX_MOVE_MODE): Ditto.
1671         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1672         VSX vector types.  Add V2DImode.
1673         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1674         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1675         (MODES_TIEABLE_P): Ditto.
1676
1677         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1678         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1679         VSX_VECTOR_MODE.
1680         (init_cumulative_args): Ditto.
1681         (rs6000_function_arg_boundary): Ditto.
1682         (rs6000_function_arg_advance_1): Ditto.
1683         (rs6000_function_arg): Ditto.
1684         (rs6000_function_ok_for_sibcall): Ditto.
1685         (emit_frame_save): Ditto.
1686         (rs6000_function_value): Ditto.
1687         (rs6000_libcall_value): Ditto.
1688
1689 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1690
1691         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1692         i386/darwin-lib.h to $libgcc_tm_file.
1693         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1694
1695 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1696
1697         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1698
1699 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1700
1701         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1702         * config/rs6000/rs6000-tables.opt: New file (generated).
1703         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1704         rs6000/rs6000-tables.opt to extra_options.
1705         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1706         * config/rs6000/rs6000.c (rs6000_select): Remove.
1707         (processor_target_table): Move contents to rs6000-cpus.def.
1708         (darwin_rs6000_override_options): Check
1709         global_options_set.x_rs6000_cpu_index instead of
1710         rs6000_select[1].string.
1711         (rs6000_option_override_internal): Likewise.
1712         (rs6000_handle_option): Don't assert that global structures are in
1713         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1714         (rs6000_default_cpu): New variable.
1715         (rs6000_file_start): Set it instead of local default_cpu.  Check
1716         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1717         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1718         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1719         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1720         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1721         rs6000_select): Remove.
1722         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1723         Remove.
1724         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1725         * config/rs6000/t-rs6000
1726         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1727         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1728         global_options_set.x_rs6000_cpu_index instead of
1729         rs6000_select[1].string.
1730         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1731         global_options_set.x_rs6000_cpu_index instead of
1732         rs6000_select[1].string.
1733
1734 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1735
1736         * config.gcc (libgcc_tm_file): Define instead of including files
1737         from ../../libgcc/config/ in tm_file.
1738         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1739         * configure: Regenerate.
1740         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1741         libgcc_tm.h, cs-libgcc_tm.h): New.
1742         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1743         (clean): Remove libgcc_tm.h.
1744         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1745         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1746         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1747
1748 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1749
1750         PR target/48896
1751         * config/avr/avr.c (avr_ret_register): Return unsigned int
1752         instead of int.
1753         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1754         it to avr_libcall_value.
1755         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1756         expand_expr.
1757         (avr_expand_binop_builtin): Ditto.
1758         (avr_expand_unop_builtin): Ditto.
1759
1760 2011-05-10  DJ Delorie  <dj@redhat.com>
1761
1762         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1763         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1764         * config/rx/rx.c (rx_align_for_label): Add label and
1765         uses_threshold parameters.  Do not align when the label is not
1766         used enough.
1767         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1768
1769 2011-05-10  Richard Guenther  <rguenther@suse.de>
1770
1771         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1772         a series of conversions and apply foldings similar to what
1773         fold-const does.
1774         (tree_ssa_forward_propagate_single_use_vars): Call it.
1775
1776 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1777
1778         PR tree-optimization/48611
1779         PR tree-optimization/48794
1780         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1781         referenced from RESX or EH_DISPATCH arguments.
1782
1783         PR debug/48928
1784         * dfp.c (decimal_to_decnumber): Handle conversion from
1785         dconst{1,2,m1,half}.
1786
1787 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1788
1789         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1790         for !flag_prefer_avx128.
1791         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1792
1793 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1794
1795         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1796         (fold_ternary_loc): Use expr_location_or.
1797
1798 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1799
1800         PR debug/48853
1801         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1802         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1803         Pmode and mem_mode is not VOIDmode.
1804
1805 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1806
1807         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1808         TYPE_QUAL_RESTRICT): Convert to enum.
1809
1810 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1811
1812         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1813         (const_pow2_1_to_8_operand): Ditto.
1814         (const_pow2_1_to_128_operand): Ditto.
1815         (const_pow2_1_to_32768_operand): Ditto.
1816         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1817         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1818         in insn constraint to check integer value of operand 3.
1819         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1820
1821         (PINSR_MODE): New mode iterator.
1822         (sse2p4_1): New mode attribute.
1823         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1824         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1825         iterator.  Use const_int_operand instead of
1826         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1827         exact_log2 in insn constraint to check integer value of operand 3.
1828
1829 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1830
1831         * config/i386/sse.md (blendbits): Remove mode attribute.
1832         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1833         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1834         Check integer value of operand 3 in insn constraint.
1835
1836 2011-05-09  Richard Guenther  <rguenther@suse.de>
1837
1838         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1839         for diagnostics.
1840         (lto_symtab_merge): Likewise.  Do not register types here.
1841         (lto_symtab_merge_decls_2): Likewise.
1842         (lto_symtab_merge_decls_1): Likewise.
1843         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1844         * gimple.c (enum gtc_mode): Declare.
1845         (gimple_types_compatible_p): Make static.
1846
1847 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1848
1849         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1850         temporary register to match Pmode.
1851
1852 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1853
1854         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1855         and *vec_concatv4si_1_avx.
1856
1857 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1858
1859         PR rtl-optimization/48927
1860         * ira-conflicts.c (commutative_constraint_p): Use
1861         recog_data.alternative_enabled_p to disable alternatives where
1862         "enabled" attribute is false.
1863         (get_dup_num): Ditto.
1864         * ira-lives.c (single_reg_class): Ditto.
1865         (ira_implicitly_set_insn_hard_regs): Ditto.
1866
1867 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1868
1869         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1870         (dataflow_set_preserve_mem_locs): Likewise.
1871
1872 2011-05-09  Philipp Thomas  <pth@suse.de>
1873
1874         * config/mep/mep.c (mep_validate_vliw): Syntax description
1875         should not be translated.
1876
1877 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1878
1879         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1880         * config/mips/mips-tables.opt: New file (generated).
1881         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1882         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1883         MIPS_ARCH_OPTION_NATIVE): Define.
1884         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1885         mips-cpus.def.
1886         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1887         mips_parse_cpu): Remove.
1888         (mips_cpu_info_from_opt, mips_default_arch): New.
1889         (mips_handle_option): Don't assert that global structures are in
1890         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1891         (mips_option_override): Use new variables and functions to set
1892         state of these options.  Use strcmp to check for individual CPU names.
1893         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1894         definition.
1895         * config/mips/mips.opt (march=): Use ToLower and Enum.
1896         (mips): Use ToLower, Enum and Var.
1897         (mtune=): Use ToLower and Enum.
1898         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1899
1900 2011-05-08  Jan Hubicka  <jh@suse.cz>
1901
1902         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1903         Arrange type pairs to be UID ordered.
1904         (gimple_lookup_type_leader): Make inline.
1905
1906 2011-05-09  Nick Clifton  <nickc@redhat.com>
1907
1908         PR target/48899
1909         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1910         PROCESSOR_DEFAULT.
1911
1912         PR target/48897
1913         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1914         variable 's'.
1915
1916 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1917
1918         * combine.c (simplify_comparison): Abstract out parts into...
1919         (simplify_compare_const): ... new function.
1920         (try_combine): Generalize parallel arithmetic/compare combining
1921         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1922
1923 2011-05-08  Jan Hubicka  <jh@suse.cz>
1924
1925         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1926         (cgraph_create_virtual_clone): Call hooks once virtual clone
1927         is finished.
1928         * cgraph.h (cgraph_clone_node): Update prototype.
1929         * ipa-cp.c (ipcp_estimate_growth): Use
1930         estimate_ipcp_clone_size_and_time.
1931         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1932         * lto-cgraph.c (input_node): Update.
1933         * ipa-inline.c (recursive_inlining): Update.
1934         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1935         (evaluate_conditions_for_known_args): Break out from ...
1936         (evaluate_conditions_for_edge): ... here.
1937         (evaluate_conditions_for_ipcp_clone): New function.
1938         (inline_node_duplication_hook): Update clone summary based
1939         on parameter map.
1940         (estimate_callee_size_and_time): Rename to ...
1941         (estimate_node_size_and_time): take NODE instead of EDGE;
1942         take POSSIBLE_TRUTHS as argument.
1943         (estimate_callee_size_and_time): Update.
1944         (estimate_ipcp_clone_size_and_time): New function.
1945         (do_estimate_edge_time): Update.
1946
1947 2011-05-08  Richard Guenther  <rguenther@suse.de>
1948
1949         PR middle-end/48908
1950         PR middle-end/48905
1951         * expmed.c (expand_shift_1): Compute adjusted constant shift
1952         amount manually.
1953
1954 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1955
1956         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1957
1958 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1959
1960         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1961
1962 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1963
1964         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1965
1966 2011-05-07  Jan Hubicka  <jh@suse.cz>
1967
1968         * ipa-inline-transform.c (inline_call): Account when program size
1969         decreases.
1970         * ipa-inline.c (relative_time_benefit): New function.
1971         (edge_badness): Reorganize to be power 2 based; fix thinko when
1972         computing badness for negative growth; update comments to match
1973         reality; better dumps.
1974
1975 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1976
1977         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1978         type to bool and adjust comment.
1979         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1980         (fold_mathfn_compare): Remove calls to global_bindings_p.
1981         (fold_inf_compare): Likewise.
1982         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1983         * c-tree.h (global_bindings_p): Adjust prototype.
1984         * c-decl.c (global_bindings_p): Return bool and simplify.
1985
1986 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1987
1988         PR tree-optimization/48837
1989         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1990         when accumulator transformation is performed.
1991
1992 2011-05-06  Jan Hubicka  <jh@suse.cz>
1993
1994         * i386.h (ix86_tune_indices): Add
1995         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1996         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1997         * i386.c (initial_ix86_tune_features): Add
1998         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1999         (software_prefetching_beneficial_p): Remove predicate.
2000         (ix86_option_override_internal): Use new macro.
2001
2002 2011-05-06  Jan Hubicka  <jh@suse.cz>
2003
2004         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2005
2006 2011-05-06  Jan Hubicka  <jh@suse.cz>
2007
2008         * cgraph.c (cgraph_add_thunk): Create real function node instead
2009         of alias node; finalize it and mark needed/reachale; arrange visibility
2010         to be right and add it into the corresponding same comdat group list.
2011         (dump_cgraph_node): Dump thunks.
2012         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2013         cgraph_function_with_gimple_body_p,
2014         cgraph_first_function_with_gimple_body,
2015         cgraph_next_function_with_gimple_body): New functions.
2016         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2017         New macros.
2018         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2019         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2020         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2021         devirtualization when optimizing.
2022         (verify_cgraph_node): Verify thunks.
2023         (cgraph_analyze_function): Analyze thunks.
2024         (cgraph_mark_functions_to_output): Output thunks only in combination
2025         with function they are assigned to.
2026         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2027         alias into normal node.
2028         (assemble_thunks): New functoin.
2029         (cgraph_expand_function): Use it.
2030         * lto-cgraph.c (lto_output_node): Stream thunks.
2031         (input_overwrite_node): Stream in thunks.
2032         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2033         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2034         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2035         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2036         (inline_analyze_function): Do not care about thunk jump functions.
2037         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2038         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2039         cgraph_function_with_gimple_body_p.
2040         * passes.c (do_per_function_toporder): Use
2041         cgraph_function_with_gimple_body_p.
2042         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2043         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2044         (function_called_by_processed_nodes_p): Likewise.
2045
2046 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2047
2048         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2049         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2050         entries.
2051         (mabi=): Replace with separate entries for mabi=altivec,
2052         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2053         mabi=ieeelongdouble and mabi=ibmlongdouble.
2054         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2055         check for -mabi=spe without SPE ABI support here.
2056         (rs6000_handle_option): Replace OPT_mabi_ handling with
2057         OPT_mabi_altivec and OPT_mabi_spe handling.
2058
2059 2011-05-06  Cary Coutant  <ccoutant@google.com>
2060
2061         * dwarf2out.c (contains_subprogram_definition): New function.
2062         (should_move_die_to_comdat): Call it.
2063
2064 2011-05-06  Jeff Law  <law@redhat.com>
2065
2066         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2067         remove_ctrl_stmt_and_useless_edges.
2068         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2069         (fixup_template_block, thread_single_edge): Likewise.
2070         (mark_threaded_blocks): Use THREAD_TARGET.
2071
2072 2011-05-06  Alan Modra  <amodra@gmail.com>
2073
2074         PR target/48900
2075         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2076         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2077
2078 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2079
2080         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2081         constraint modifier to "r".
2082
2083 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2084
2085         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2086         fall through for OPT_mcmodel_.
2087
2088 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2089
2090         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2091         instruction sizes.
2092         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2093
2094 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2095
2096         PR target/47930
2097         * config/arm/arm.opt (marm): Document it.
2098         (mthumb): Reject negative variant.
2099
2100 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2101
2102         PR target/48898
2103         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2104         Fix typo in "ccvt" variable name.
2105
2106 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2107
2108         PR target/48895
2109         * config/vms/vms-ar.c (main): Remove cwd variable.
2110
2111 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2112
2113         PR debug/48902
2114         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2115
2116 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2117
2118         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2119         * gimplify.c (gimplify_switch_expr): Likewise.
2120         * omp-low.c (expand_omp_sections): Likewise.
2121         * tree-eh.c (lower_try_finally_switch): Likewise.
2122         (lower_eh_dispatch): Likewise.
2123         * tree.h (build_case_label): Declare.
2124         * tree.c (build_case_label): Define.
2125
2126 2011-05-05  Jason Merrill  <jason@redhat.com>
2127
2128         PR c++/40975
2129         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2130         (copy_statement_list): Don't recurse.
2131         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2132         STATEMENT_LIST.
2133
2134 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2135
2136         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2137         through from -mfpu= handling.
2138         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2139
2140 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2141
2142         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2143         POST_MODIFY.
2144
2145 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2146
2147         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2148         for 11.31.
2149         (hppa[12]*-*-hpux11*): Ditto.
2150         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2151         * config/ia64/hpux-unix2003.h: New.
2152         * config/pa/pa-hpux1131.opt: New.
2153         * config/pa/pa-hpux1131.h: New.
2154         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2155         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2156         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2157
2158 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2159
2160         PR debug/48853
2161         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2162         instead of mode as 3rd argument to recursive call.
2163         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2164         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2165         VOIDmode.
2166         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2167         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2168         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2169         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2170
2171 2011-05-05  Julian Brown  <julian@codesourcery.com>
2172
2173         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2174         parenthesis in D-register case.
2175
2176 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2177
2178         * opt-functions.awk (var_type_struct): Handle Enum options.
2179         * optc-gen.awk: Don't check range of variables of character type.
2180         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2181         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2182         rs6000_sdata_name, rs6000_explicit_options): Remove.
2183         (rs6000_option_override_internal): Check for -malign-power here.
2184         Use global_options_set instead of rs6000_explicit_options.
2185         (rs6000_parse_fpu_option): Remove.
2186         (rs6000_handle_option): Access variables via opts and opts_set
2187         pointers.  Use error_at and warning_at.  Add fall-through
2188         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2189         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2190         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2191         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2192         here.  Don't use rs6000_parse_fpu_option.
2193         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2194         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2195         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2196         (mrecip=): Use Var.
2197         (mspe): Use Var and Save.
2198         (mtraceback=): Use Enum and Var.
2199         (rs6000_traceback_type): New Enum and EnumValue entries.
2200         (mfloat-gprs=): Use Enum, Var and Save.
2201         (rs6000_float_gprs): New Enum and EnumValue entries.
2202         (mlong-double-): use Var and Save.
2203         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2204         (malign-): Use Enum and Var.
2205         (rs6000_alignment_flags): New Enum and EnumValue entries.
2206         (mfpu=): Use Enum.
2207         (fpu_type_t): New Enum and EnumValue entries.
2208         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2209         global_options_set instead of rs6000_explicit_options.
2210         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2211         global_options_set instead of rs6000_explicit_options.
2212         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2213         global_options_set instead of rs6000_explicit_options.
2214         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2215         global_options_set instead of rs6000_explicit_options.
2216         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2217         global_options_set instead of rs6000_explicit_options.
2218         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2219         global_options_set instead of rs6000_explicit_options.
2220         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2221         definition.
2222         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2223         global_options_set instead of rs6000_explicit_options.
2224         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2225         (rs6000_cmodel): New Enum and EnumValue entries.
2226         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2227         global_options_set instead of rs6000_explicit_options.
2228         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2229         (mtls-size=): Use Enum and Var.
2230         (rs6000_tls_size): New Enum and EnumValue entries.
2231
2232 2011-05-05  Michael Matz  <matz@suse.de>
2233
2234         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2235         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2236         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2237         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2238         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2239         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2240         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2241         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2242         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2243         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2244         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2245         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2246         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2247         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2248         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2249         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2250
2251 2011-05-05  Richard Guenther  <rguenther@suse.de>
2252
2253         * expmed.c (expand_variable_shift): Rename to ...
2254         (expand_shift_1): ... this.  Take an expanded shift amount.
2255         For rotates recurse directly not building trees for the shift amount.
2256         (expand_variable_shift): Wrap around expand_shift_1.
2257         (expand_shift): Adjust.
2258
2259 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2260
2261         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2262
2263 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2264
2265         * tree.h (get_pending_sizes): Remove prototype.
2266         (put_pending_size): Likewise.
2267         (put_pending_sizes): Likewise.
2268         * stor-layout.c (pending_sizes): Delete.
2269         (get_pending_sizes): Likewise.
2270         (put_pending_size): Likewise.
2271         (put_pending_sizes): Likewise.
2272         (variable_size): Do not call put_pending_size and tidy up.
2273         * function.h (struct function): Remove dont_save_pending_sizes_p.
2274         * lto-streamer-in.c (input_function): Do not stream it.
2275         * lto-streamer-out.c (output_function): Likewise.
2276         * tree-inline.c (initialize_cfun): Do not copy it.
2277         * c-decl.c (store_parm_decls): Do not set it.
2278         * omp-low.c (create_task_copyfn): Likewise.
2279         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2280
2281 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2282
2283         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2284         conditions.
2285         (*movdf_internal): Ditto.
2286         (*movdf_internal_nointeger): Ditto.
2287         (*movsf_internal): Ditto.
2288
2289 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2290
2291         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2292         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2293         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2294         (c_variable_size): Remove.
2295         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2296         call put_pending_sizes.
2297         (get_parm_info): Add parameter expr.  Use it to set
2298         arg_info->pending_sizes.
2299         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2300         get_pending_sizes.
2301         * c-parser.c (c_parser_parms_declarator): Update call to
2302         c_parser_parms_list_declarator.
2303         (c_parser_parms_list_declarator): Take parameter expr.  Update
2304         call to push_parm_decl.  Update recursive call.  Don't call
2305         get_pending_sizes.  Update calls to get_parm_info.
2306         (c_parser_objc_method_definition): Update calls to
2307         c_parser_objc_method_decl and objc_start_method_definition.
2308         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2309         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2310         grokparm.
2311         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2312         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2313         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2314
2315 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2316
2317         PR pch/45979
2318         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2319         __ARM_EABI__ hosts.
2320
2321 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2322
2323         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2324         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2325         (spu_output_mi_thunk): New function.
2326
2327 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2328
2329         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2330         targetm.asm_out.print_operand.
2331         * config/sol2.c: Include target.h.
2332
2333 2011-05-04  Jan Hubicka  <jh@suse.cz>
2334
2335         * ipa-inline.c (reset_edge_caches): New function.
2336         (update_caller_keys): Add check_inlinablity_for; do not
2337         reset edge caches; remove now unnecesary loop.
2338         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2339         (update_all_callee_keys): Likewise.
2340         (inline_small_functions): Sanity check cache; update code
2341         recomputing it.
2342
2343 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2344
2345         PR rtl-optimization/47612
2346         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2347         as the last insn of the sequence to be moved.
2348
2349 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2350
2351         PR fortran/48864
2352         * doc/invoke.texi (Ofast): Document that it
2353         enables Fortran's -fno-protect-parens.
2354
2355 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2356
2357         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2358
2359 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2360
2361         * stor-layout.c (variable_size): Do not issue errors.
2362
2363 2011-05-04  Richard Guenther  <rguenther@suse.de>
2364
2365         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2366         for array-ref indices.
2367         (tree_coverage_counter_addr): Likewise.
2368         (build_fn_info_type): Use size_int for index types.
2369         (build_gcov_info): Likewise.
2370
2371 2011-05-04  Richard Guenther  <rguenther@suse.de>
2372
2373         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2374         to build_int_cst.
2375         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2376         for constructor indices.
2377         (push_init_level): Likewise.
2378
2379 2011-05-04  Richard Guenther  <rguenther@suse.de>
2380
2381         * explow.c (promote_mode): Move variable declarations before code.
2382
2383 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2384
2385         * tree.h (build_function_type_array): Declare.
2386         (build_varargs_function_type_array): Declare.
2387         (build_function_type_vec, build_varargs_function_type_vec): Define.
2388         * tree.c (build_function_type_array_1): New function.
2389         (build_function_type_array): New function.
2390         (build_varargs_function_type_array): New function.
2391
2392 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2393
2394         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2395         before setting STMT_VINFO_TYPE.
2396
2397 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2398
2399         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2400         instead of spu_pass_by_reference.
2401
2402 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2403
2404         * calls.c (emit_library_call_value_1): Invoke
2405         promote_function_mode hook on libcall arguments.
2406         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2407         argument being NULL.
2408         * targhooks.c (default_promote_function_mode): Lisewise.
2409         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2410         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2411
2412         * doc/tm.texi: Document that TYPE argument might be NULL.
2413
2414 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2415
2416         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2417
2418 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2419
2420         From Bernd Schmidt
2421         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2422
2423 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2424
2425         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2426         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2427         Move ...
2428         * mips-tfile.c: ... here.
2429         Don't include coretypes.h, tm.h, filenames.h.
2430         (saber_stop): Remove definition and all calls.
2431         [__SABER__]: Remove.
2432         (__LINE__): Remove default.
2433         (Size_t, Ptrdiff_t): Remove definitions.
2434         Replace by size_t, ptrdiff_t.
2435         [!MIPS_DEBUGGING_INFO]: Remove.
2436         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2437         (progname): Add const.
2438         (STATIC): Remove.
2439         Replace all uses by static.
2440         (ALIGN_SYMTABLE_OFFSET): Remove default.
2441         * mips-tdump.c: Don't include coretypes.h, tm.h.
2442         Remove !MIPS_IS_STAB guard.
2443         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2444         $(TM_H), filenames.h dependencies.
2445         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2446
2447 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2448
2449         From Jie Zhang
2450         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2451         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2452
2453 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2454
2455         From Bernd Schmidt
2456         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2457         account and save/restore RETS.
2458         (PROFILE_BEFORE_PROLOGUE): Define.
2459         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2460         the push insn to use predecrement.
2461
2462 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2463
2464         From Jie Zhang
2465         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2466
2467 2011-05-04  Nick Clifton  <nickc@redhat.com>
2468
2469         * config/mn10300/mn10300.c: Include cfgloop.h.
2470         (DUMP): New macro.
2471         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2472         Lcc or a FLcc insn into the instruction stream.
2473         (mn10300_block_contains_call): New function.  Returns true if the
2474         given basic block contains a CALL insn.
2475         (mn10300_loop_contains_call_insn): New function.  Returns true if
2476         the given loop contains a CALL insn.
2477         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2478         to use the SETLB and Lcc or FLcc insns.
2479         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2480         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2481         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2482         disable the SETLB optimization.
2483         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2484         __SETLB__ or __NO_SETLB__.
2485         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2486         (movsf_internal): Handle MDR register.
2487         (cmpsi): Make visible.
2488         (setlb): New pattern.
2489         (Lcc): New pattern.
2490         (FLcc): New pattern.
2491
2492 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2493
2494         PR target/48860
2495         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2496         for reg<->xmm moves.
2497         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2498         (vec_concatv2di_rex64_sse): Ditto.
2499         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2500         (*vec_extractv2di_1_rex64): Ditto.
2501
2502         Revert:
2503         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2504
2505         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2506         reg<->xmm moves.
2507         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2508
2509 2011-05-04  Richard Guenther  <rguenther@suse.de>
2510
2511         * tree.h (int_const_binop): Remove notrunc argument.
2512         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2513         create integer constants that are properly truncated.
2514         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2515         (const_binop): Remove zero notrunc argument to int_const_binop.
2516         (size_binop_loc): Likewise.
2517         (fold_div_compare): Likewise.
2518         (maybe_canonicalize_comparison_1): Likewise.
2519         (fold_comparison): Likewise.
2520         (fold_binary_loc): Likewise.
2521         (multiple_of_p): Likewise.
2522         * expr.c (store_constructor): Likewise.
2523         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2524         (maybe_fold_stmt_addition): Likewise.
2525         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2526         * stor-layout.c (layout_type): Likewise.
2527         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2528         * tree-sra.c (build_ref_for_offset): Likewise.
2529         (build_user_friendly_ref_for_offset): Likewise.
2530         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2531         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2532         * tree-ssa-loop-niter.c (inverse): Likewise.
2533         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2534         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2535         * tree-switch-conversion.c (check_range): Likewise.
2536         (build_constructors): Likewise.
2537         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2538         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2539         (extract_range_from_assert): Likewise.
2540         (vrp_int_const_binop): Likewise.
2541         (extract_range_from_binary_expr): Likewise.
2542         (extract_range_from_unary_expr): Likewise.
2543         (check_array_ref): Likewise.
2544         (find_case_label_range): Likewise.
2545         (simplify_div_or_mod_using_ranges): Likewise.
2546         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2547         comparing case labels for merging.
2548
2549 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2550
2551         * dwarf2out.c (debug_str_hash_forced): Removed.
2552         (gen_label_for_indirect_string): Removed.
2553         (get_debug_string_label): Removed.
2554         (AT_string_form): Generate label directly.
2555         (output_indirect_string): Test indirect_string_node for
2556         DW_FORM_strp instead of checking label and refcount.
2557         (prune_indirect_string): Removed.
2558         (prune_unused_types): Don't check debug_str_hash_forced or
2559         call prune_indirect_string.
2560
2561 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2562
2563         PR other/48093
2564         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2565
2566 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2567
2568         PR debug/47994
2569         PR debug/47919
2570         * combine.c (try_combine): Skip debug insns at m_split tests.
2571
2572 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2573
2574         PR42288
2575         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2576         when info_section_emitted.
2577
2578 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2579
2580         * config/mips/mips-opts.h: New.
2581         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2582         to mips-opts.h.
2583         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2584         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2585         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2586         via opts pointer.
2587         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2588         mips-opts.h.
2589         (mips_abi, mips_code_readable): Don't declare.
2590         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2591         (mabi=): Use Enum and Var.
2592         (mips_abi): New Enum and EnumValue entries.
2593         (mcode-readable=): Use Enum and Var.
2594         (mips_code_readable_setting): New Enum and EnumValue entries.
2595         (mr10k-cache-barrier=): Use Enum and Var.
2596         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2597
2598 2011-05-03  Jan Hubicka  <jh@suse.cz>
2599
2600         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2601         replace hash by pointer map.
2602         (cgraph_node_set_element_def, cgraph_node_set_element,
2603         const_cgraph_node_set_element, varpool_node_set_element_def,
2604         varpool_node_set_element, const_varpool_node_set_element): Remove.
2605         (free_cgraph_node_set, free_varpool_node_set): New function.
2606         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2607         * tree-emutls.c: Free varpool node set.
2608         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2609         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2610         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2611         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2612         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2613         Move here from ipa.c; implement using pointer_map
2614         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2615         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2616         debug_cgraph_node_set, varpool_node_set_new,
2617         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2618         dump_varpool_node_set, debug_varpool_node_set):
2619         Move to ipa-uitls.c.
2620         * passes.c (ipa_write_summaries): Update.
2621
2622 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2623
2624         From Mike Frysinger:
2625         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2626         bf542/bf544/bf547/bf548/bf549.
2627
2628 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2629
2630         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2631
2632 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2633
2634         From Bernd Schmidt:
2635         * config/bfin/bfin.md (MOVCC): New mode_macro.
2636         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2637         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2638         comments from generated assembly.
2639
2640 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2641
2642         From Bernd Schmidt
2643         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2644         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2645         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2646         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2647         * config/bfin/lib1funcs.asm (___muldi3): New function.
2648
2649 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2650
2651         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2652         build_function_type_list instead of build_function_type.
2653         Rearrange initialization of `args' to do so.
2654
2655 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2656
2657         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2658         instead of build_function_type.
2659
2660 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2661
2662         * config/rs6000/rs6000.c (spe_init_builtins): Call
2663         build_function_type_list instead of build_function_type.
2664         (paired_init_builtins, altivec_init_builtins): Likewise.
2665         (builtin_function_type): Likewise.
2666
2667 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2668
2669         * config/sh/sh.c (sh_media_init_builtins): Call
2670         build_function_type_list instead of build_function_type.
2671
2672 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2673
2674         * config/sparc/sparc.c (sparc_file_end): Call
2675         build_function_type_list instead of build_function_type.
2676
2677 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2678
2679         * config/alpha/alpha.c (alpha_init_builtins): Call
2680         build_function_type_list instead of build_function_type.
2681
2682 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2683
2684         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2685         build_function_type_list instead of build_function_type.
2686
2687 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2688
2689         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2690         build_function_type_list instead of build_function_type.
2691         Delete `endlink' variable.
2692
2693 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2694
2695         * config/avr/avr.c (avr_init_builtins): Call
2696         build_function_type_list instead of build_function_type.
2697
2698 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2699
2700         * config/picochip/picochip.c (picochip_init_builtins): Call
2701         build_function_type_list instead of build_function_type.
2702         Delete `endlink' variable.
2703
2704 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2705
2706         * config/bfin/bfin.c (bfin_init_builtins): Call
2707         build_function_type_list instead of build_function_type.
2708
2709 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2710
2711         From Bernd Schmidt
2712         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2713         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2714
2715 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2716
2717         From Jie Zhang:
2718         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2719         libbffastfp overrides libgcc when -mfast-fp.
2720
2721 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2722
2723         Originally from Bernd Schmidt
2724         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2725         * config/bfin/bfin.c (override_options): Test it and error if
2726         TARGET_FDPIC.
2727
2728 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2729
2730         Originally From Bernd Schmidt
2731         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2732         FD-PIC.
2733
2734 2011-05-03  Jeff Law  <law@redhat.com>
2735
2736         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2737         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2738         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2739         than accessing AUX field directly.  Free the AUX field before
2740         clearing it.
2741         (thread_block, thread_through_loop_header): Likewise.
2742         (thread_single_edge, mark_threaded_blocks): Likewise.
2743         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2744         (register_jump_thread): Do not attempt to thread to a NULL edge.
2745
2746 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2747
2748         * function.c (init_function_start): Call decide_function_section.
2749         * varasm.c (decide_function_section): New function.
2750         (assemble_start_function): When not using
2751         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2752         or first_function_block_is_cold.
2753         * rtl.h (decide_function_section): Declare.
2754
2755 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2756             Jakub Jelinek  <jakub@redhat.com>
2757
2758         PR target/48774
2759         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2760         only succeed if req_mode is the same as set_mode.
2761
2762 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2763
2764         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2765         * genemit.c (gen_exp): Handle RETURN.
2766         * emit-rtl.c (verify_rtx_sharing): Likewise.
2767         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2768         * rtl.c (copy_rtx): RETURN is shared.
2769         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2770         (ret_rtx): New.
2771         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2772         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2773         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2774         * config/cris/cris.c (cris_expand_return): Likewise.
2775         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2776         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2777         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2778         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2779         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2780         Likewise.
2781         * config/v850/v850.c (expand_epilogue): Likewise.
2782         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2783         * config/arm/arm.md (epilogue): Likewise.
2784         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2785         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2786         variable to ret_reg.
2787
2788 2011-05-03  Richard Guenther  <rguenther@suse.de>
2789
2790         PR lto/48846
2791         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2792         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2793         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2794
2795 2011-05-03  Richard Guenther  <rguenther@suse.de>
2796
2797         * c-decl.c (grokdeclarator): Instead of looking at
2798         TREE_OVERFLOW check if the constant fits in the index type.
2799
2800 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2801
2802         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2803         (vec_store_lanes<mode><mode>): Likewise.
2804
2805 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2806
2807         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2808         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2809         convert_optab_index values.
2810         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2811         * genopinit.c (optabs): Initialize the new optabs.
2812         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2813         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2814         (expand_STORE_LANES): New functions.
2815         * tree.h (build_array_type_nelts): Declare.
2816         * tree.c (build_array_type_nelts): New function.
2817         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2818         (vect_model_load_cost): Likewise.
2819         (vect_store_lanes_supported, vect_load_lanes_supported)
2820         (vect_record_strided_load_vectors): Declare.
2821         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2822         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2823         (vect_transform_strided_load): Split out statement recording into...
2824         (vect_record_strided_load_vectors): ...this new function.
2825         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2826         (write_vector_array, create_array_ref): New functions.
2827         (vect_model_store_cost): Add store_lanes_p argument.
2828         (vect_model_load_cost): Add load_lanes_p argument.
2829         (vectorizable_store): Try to use store-lanes functions for
2830         interleaved stores.
2831         (vectorizable_load): Likewise load-lanes and loads.
2832         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2833         to vect_model_store_cost.
2834         (vect_build_slp_tree): Likewise vect_model_load_cost.
2835
2836 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2837
2838         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2839         * hooks.c (hook_bool_mode_uhwi_false): New function.
2840         * target.def (array_mode_supported_p): New hook.
2841         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2842         * doc/tm.texi: Regenerate.
2843         * stor-layout.c (mode_for_array): New function.
2844         (layout_type): Use it.
2845         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2846         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2847
2848 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2849
2850         PR target/48723
2851         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2852         for -fstack-check if the size to allocate is negative.
2853
2854 2011-05-02  Lawrence Crowl  <crowl@google.com>
2855
2856         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2857         (timevar_cond_start): New for starting a timer only when it is not
2858         already running.
2859         (timevar_cond_stop): New for stopping a timer when it was not already
2860         running.
2861
2862         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2863         (timevar_cond_start): New as above.
2864         (timevar_cond_stop): New as above.
2865
2866         * timevar.def: Add start/stop timers for compiler phases,
2867         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2868         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2869         and TV_PHASE_FINALIZE.
2870         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2871         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2872         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2873         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2874         Make unused TV_OVERLOAD into a start/stop timer.
2875
2876         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2877         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2878         to indicate that they are start/stop timers.
2879
2880         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2881         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2882         Move initialization to do_compile.
2883         (do_compile): Add initialization from above.
2884         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2885
2886         * c-decl.c (c_write_global_declarations): Add start/stop of
2887         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2888
2889         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2890         or TV_PARSE_INLINE, as appropriate.
2891         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2892         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2893
2894 2011-05-02  Jason Merrill  <jason@redhat.com>
2895
2896         PR c++/40975
2897         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2898
2899 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2900
2901         PR c/35445
2902         * c-decl.c (finish_decl): Only create a composite if the types are
2903         compatible.
2904
2905 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2906
2907         * config/fr30/fr30-protos.h (Mmode): Don't define.
2908         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2909         definition where used.
2910         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2911         define.  Expand definitions where used.
2912         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2913         Expand definitions where used.
2914         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2915         rx_function_arg, rx_function_arg_advance,
2916         rx_function_arg_boundary): Expand definitions of those macros.
2917         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2918         definition where used.
2919
2920 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2921
2922         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2923         reg<->xmm moves.
2924         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2925         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2926         with *movv2sf_internal_rex64_avx.
2927         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2928         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2929         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2930         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2931         "vex" in "prefix" attribute calculation.
2932         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2933
2934 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2935
2936         PR target/47951
2937         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2938         inputs match the output.
2939
2940 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2941
2942         PR target/47955
2943         * config/m68k/m68k.c (m68k_expand_prologue): Set
2944         current_function_static_stack_size.
2945
2946 2011-05-02   Jan Hubicka  <jh@suse.cz>
2947
2948         * lto-streamer.c (lto_streamer_cache_insert_1,
2949         lto_streamer_cache_lookup, lto_streamer_cache_create,
2950         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2951         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2952
2953 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2954
2955         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2956         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2957         config/m68k/t-opts: New files.
2958         * config/m68k/m68k-tables.opt: New file (generated).
2959         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2960         extra_options and m68k/t-opts to tmake_file.
2961         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2962         (all_isas): Initialize using m68k-isas.def.
2963         (all_microarchs): Initialize using m68k-microarchs.def.
2964         (m68k_find_selection): Remove.
2965         (m68k_handle_option): Don't assert that global structures are in
2966         use.  Use error_at.  Access variables via opts pointer.  Don't
2967         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2968         directly for -m68020-40 and -m68020-60.
2969         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2970         m68k_tune_entry here.
2971         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2972         to m68k-opts.h.
2973         (m68k_library_id_string): Remove declaration.
2974         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2975         (m68k_library_id_string): New Variable.
2976         (march=, mcpu=, mtune=): Use Enum and Var.
2977
2978 2011-05-02  Richard Guenther  <rguenther@suse.de>
2979
2980         * varasm.c (output_constructor_regular_field): Compute zero-based
2981         index with double-ints.  Make sure to ICE instead of producing
2982         wrong code.
2983         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2984         in asserts.  Properly use a signed type.
2985
2986 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2987
2988         * config/i386/sse.md (V): New mode iterator.
2989         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2990         TARGET_SSE2.
2991         (V_256): Rename from AVX256MODE.
2992         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2993         condition to all users.
2994         (VF1): Ditto.
2995         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2996         condition to all users.
2997         (VF_128): Make V4SF mode unconditional.
2998         (VF_256): Rename from AVX256MODEF2P.
2999         (VI4F_128): Rename from SSEMODE4S.
3000         (VI8F_128): Rename from SSEMODE2D.
3001         (VI4F_256): Rename from AVX256MODE8P.
3002         (VI8F_256): Rename from AVX256MODE4P.
3003         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3004         (ssescalarmodesuffix): Remove SF and DF modes.
3005         (SSEMODE124): Remove.
3006         (SSEMODE1248): Ditto.
3007         (SSEMODEF2P): Ditto.
3008         (AVXMODEF2P): Ditto.
3009         (AVXMODEFDP): Ditto.
3010         (AVXMODEFSP): Ditto.
3011         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3012         unconditional.
3013         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3014         unconditional.
3015         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3016         xop_pcmov_<mode>256.  Use V mode iterator.
3017
3018         Adjust RTX patterns globally for renamed mode attributes.
3019
3020 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3021
3022         * haifa-sched.c (sched_emit_insn): Emit insn before first
3023         non-scheduled insn.  Inform back-end about new insn.  Add
3024         new insn to scheduled_insns list.
3025
3026 2011-05-02  Richard Guenther  <rguenther@suse.de>
3027
3028         PR tree-optimization/48822
3029         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3030         (process_scc): Indicate which iteration we start.
3031
3032 2011-05-02  Jan Hubicka  <jh@suse.cz>
3033
3034         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3035         (lto_section_overrun): New.
3036         * lto-section-out.c (append_block): Rename to ...
3037         (lto_append_block): ... this one; export.
3038         (lto_output_1_stream): Move lto lto-streamer.h
3039         (lto_output_data_stream): Update.
3040         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3041         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3042         functions.
3043
3044 2011-05-02  Richard Guenther  <rguenther@suse.de>
3045
3046         * tree.c (tree_code_counts): New global array.
3047         (record_node_allocation_statistics): Count individual tree codes.
3048         (dump_tree_statistics): Dump individual code stats.
3049
3050 2011-05-01  Jan Hubicka  <jh@suse.cz>
3051
3052         * ipa-inline.c (caller_growth_limits): Fix thinko when
3053         looking for largest stack frame.
3054         * ipa-inline.h (dump_inline_summary): Declare.
3055         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3056         on stack usage.
3057         (dump_inline_summary): Export.
3058         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3059
3060 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3061
3062         * reginfo.c (memory_move_cost): Change rclass argument type form
3063         'enum reg_class' to reg_class_t.
3064         * reload.h (memory_move_cost): Update prototype.
3065         * postreload.c reload_cse_simplify_set): Change type dclass var to
3066         reg_class_t.
3067         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3068         Update prototype.
3069         (ira_allocate_and_set_costs): Change aclass argument type form
3070         'enum reg_class' to reg_class_t.
3071         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3072         Change aclass argument type to reg_class_t.
3073         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3074         to reg_class_t.
3075         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3076         memory_move_cost call.
3077
3078         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3079         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3080         Change type tmp var to reg_class_t.
3081
3082 2011-04-30  Jan Hubicka  <jh@suse.cz>
3083
3084         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3085         inlining into function with flatten attribute.
3086         (want_inline_small_function_p): Be more realistic about inlining
3087         cold calls where callee size grows.
3088
3089 2011-04-30  Jan Hubicka  <jh@suse.cz>
3090
3091         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3092         flags.
3093
3094 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3095
3096         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3097         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3098         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3099         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3100         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3101         (print_operand): Rename to...
3102         (sparc_print_operand): ...this. Make static. Adjust
3103         sparc_print_operand function call.
3104         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3105         functions.
3106
3107 2011-04-30  Jan Hubicka  <jh@suse.cz>
3108
3109         PR middle-end/48752
3110         * ipa-inline.c (early_inliner): Disable when doing late
3111         addition of function.
3112
3113 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3114
3115         * dwarf2out.c (get_address_mode): New inline.
3116         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3117         if not dwarf_strict emit
3118         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3119         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3120         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3121         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3122         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3123         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3124         mem_loc_descriptor callers.
3125         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3126         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3127         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3128         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3129         (base_types): New variable.
3130         (get_base_type_offset, calc_base_type_die_sizes,
3131         base_type_for_mode, mark_base_types, base_type_cmp,
3132         move_marked_base_types): New functions.
3133         (calc_die_sizes): Assert that die_offset is 0 or equal to
3134         next_die_offset.
3135         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3136         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3137         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3138         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3139         (gen_subprogram_die): Don't give up on call site parameters
3140         with non-integral or large integral modes.  Adjust
3141         mem_loc_descriptor callers.
3142         (prune_unused_types): Call prune_unused_types_mark on base_types
3143         vector entries.
3144         (resolve_addr): Call mark_base_types.
3145         (dwarf2out_finish): Call move_marked_base_types.
3146
3147         PR tree-optimization/48809
3148         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3149         type.
3150         (gen_inbound_check): Don't compute index_expr - range_min in utype
3151         again, instead reuse SSA_NAME initialized in build_arrays.
3152         Remove two useless gsi_for_stmt calls.
3153
3154 2011-04-29  Jeff Law  <law@redhat.com>
3155
3156         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3157
3158 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3159
3160         * cgraph.h (cgraph_postorder): Remove declaration.
3161         * ipa-utils.h (ipa_free_postorder_info): Declare.
3162         (ipa_reverse_postorder): Likewise.
3163         * cgraphunit.c: Include ipa-utils.h.
3164         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3165         * ipa-inline.c: Include ipa-utils.h.
3166         (ipa_inline): Update call to ipa_reverse_postorder.
3167         * ipa-pure-const.c (propagate_pure_const): Update call to
3168         ipa_reduced_postorder and ipa_print_order.  Call
3169         ipa_free_postorder_info to clean up.
3170         (propagate_nothrow): Likewise.
3171         * ipa-reference.c (propagate): Removed a useless call to
3172         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3173         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3174         * ipa.c: Include ipa-utils.h.
3175         (ipa_profile): Update call to ipa_reverse_postorder.
3176         (cgraph_postorder): Moved to...
3177         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3178         (ipa_utils_print_order): Renamed to ipa_print_order.
3179         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3180         comments.
3181         (ipa_free_postorder_info): New function.
3182         * passes.c: Include ipa-utils.h.
3183         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3184         (ipa_write_summaries): Likewise.
3185         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3186         (cgraphunit.o): Likewise.
3187         (ipa.o): Likewise.
3188         (ipa-inline.o): Likewise.
3189
3190 2011-04-29  Jan Hubicka  <jh@suse.cz>
3191
3192         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3193         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3194         * ipa-inline.h (clause_t): Turn into unsigned int.
3195         * ipa-inline-analysis.c (add_clause): Do more simplification.
3196         (and_predicates): Shortcut more cases.
3197         (predicates_equal_p): Move forward; check that clauses are properly
3198         ordered.
3199         (or_predicates): Shortcut more cases.
3200         (edge_execution_predicate): Rewrite as...
3201         (set_cond_stmt_execution_predicate): ... this function; handle
3202         __builtin_constant_p.
3203         (set_switch_stmt_execution_predicate): New .
3204         (compute_bb_predicates): New.
3205         (will_be_nonconstant_predicate): Update TODO.
3206         (estimate_function_body_sizes): Use compute_bb_predicates
3207         and free them later, always try to estimate if stmt is constant.
3208         (estimate_time_after_inlining, estimate_size_after_inlining):
3209         Gracefully handle optimized out edges.
3210         (read_predicate): Fix off by one error.
3211
3212 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3213
3214         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3215
3216 2011-04-27  Xinliang David Li  <davidxl@google.com>
3217
3218         * tree-profile.c (init_ic_make_global_vars): Set
3219         tls attribute on ic vars.
3220         * coverage.c (coverage_end_function): Initialize
3221         function_list with zero.
3222
3223 2011-04-29  Richard Guenther  <rguenther@suse.de>
3224
3225         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3226         for the type of the result.
3227         (fold_builtin_isascii): Likewise.
3228         (fold_builtin_toascii): Use integer_type_node where appropriate.
3229         (fold_builtin_logb): Likewise.
3230         (fold_builtin_frexp): Likewise.
3231         (fold_builtin_strstr): Likewise.
3232         (fold_builtin_strpbrk): Likewise.
3233         (fold_builtin_fputs): Likewise.
3234         (fold_builtin_sprintf): Likewise.
3235         (fold_builtin_snprintf): Likewise.
3236         (fold_builtin_printf): Likewise.
3237         (do_mpfr_remquo): Use a proper type for the assigned constant.
3238         (do_mpfr_lgamma_r): Likewise.
3239         * dwarf2out.c (resolve_one_addr): Use size_int.
3240         * except.c (init_eh): Likewise.
3241         (assign_filter_values): Use integer_type_node for filter values.
3242         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3243         indices.
3244         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3245         for EH region numbers.
3246         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3247         for the shift amount.
3248
3249 2011-04-29  Richard Guenther  <rguenther@suse.de>
3250
3251         * expr.h (expand_shift): Rename to ...
3252         (expand_variable_shift): ... this.
3253         (expand_shift): Take a constant shift amount.
3254         * expmed.c (expand_shift): Rename to ...
3255         (expand_variable_shift): ... this.
3256         (expand_shift): New wrapper around expand_variable_shift.
3257         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3258         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3259         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3260         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3261         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3262         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3263         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3264         emit_store_flag_1, emit_store_flag): Likewise.
3265         * builtins.c (expand_builtin_signbit): Likewise.
3266         * calls.c (load_register_parameters): Likewise.
3267         * function.c (assign_parm_setup_block): Likewise.
3268         * lower-subreg.c (resolve_shift_zext): Likewise.
3269         * optabs.c (widen_bswap, expand_abs_nojump,
3270         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3271         * spu/spu.c (spu_expand_extv): Likewise.
3272         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3273
3274 2011-04-29  Richard Guenther  <rguenther@suse.de>
3275
3276         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3277         for the remapped region number.
3278         * predict.c (build_predict_expr): Use integer_type_node for the
3279         predict kind.
3280         * fold-const.c (fold_binary_loc): Use integer_type_node for
3281         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3282
3283 2011-04-29  Michael Matz  <matz@suse.de>
3284
3285         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3286         other trees that just builtins.
3287         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3288
3289 2011-04-29  Richard Guenther  <rguenther@suse.de>
3290
3291         * tree-nested.c (get_trampoline_type): Use size_int.
3292         (get_nl_goto_field): Likewise.
3293         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3294         for all indexes.
3295         (lower_eh_constructs_2): Likewise.
3296         (lower_resx): Likewise.
3297         (lower_eh_dispatch): Likewise.
3298         * tree-mudflap.c (mf_build_string): Use size_int.
3299         (mudflap_register_call): Use integer_type_node for the flag.
3300         (mudflap_enqueue_constant): Use size_int.
3301         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3302         instead of rebuilding it.
3303
3304 2011-04-29  Richard Guenther  <rguenther@suse.de>
3305
3306         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3307         Handle OBJ_TYPE_REF.
3308         (find_func_aliases_for_call): Use it more consistently.
3309
3310 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3311
3312         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3313         (rank_for_schedule): Use it.
3314         (schedule_block): Set it.
3315
3316 2011-04-28  David Li  <davidxl@google.com>
3317
3318         * tree.c (crc32_string): Use crc32_byte.
3319         (crc32_byte): New function.
3320         * tree.h (crc32_byte): New function.
3321         * gcov.c (read_graph_file): Handle new cfg_cksum.
3322         (read_count_file): Ditto.
3323         * profile.c (instrument_values): Ditto.
3324         (get_exec_counts): Ditto.
3325         (read_profile_edge_counts): Ditto.
3326         (compute_branch_probabilities): Ditto.
3327         (compute_value_histograms): Ditto.
3328         (branch_prob): Ditto.
3329         (end_branch_prob): Ditto.
3330         * coverage.c (read_counts_file): Ditto.
3331         (get_coverage_counts): Ditto.
3332         (tree_coverage_counter_addr): Ditto.
3333         (coverage_checksum_string): Ditto.
3334         (coverage_begin_output): Ditto.
3335         (coverage_end_function): Ditto.
3336         (build_fn_info_type): Ditto.
3337         (build_fn_info_value): Ditto.
3338         * libgcov.c (gcov_exit): Ditto.
3339         * gcov-dump.c (tag_function): Ditto.
3340         (compute_checksum): Remove.
3341
3342 2011-04-29  Alan Modra  <amodra@gmail.com>
3343
3344         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3345         unspec plus offset.  Tidy macho code.
3346
3347 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3348
3349         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3350         node instead of a decl.  Update all callers.
3351         * cgraph.h: Update declaration.
3352
3353 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3354
3355         PR tree-optimization/48765
3356         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3357         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3358         to indicate if loop aware SLP is being used.  Scan the statements
3359         and update the vectorization factor according to the type of
3360         vectorization before statement analysis.
3361         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3362         pass it to vect_analyze_loop_operations.
3363         (vectorizable_reduction): Set number of copies to 1 in case of pure
3364         SLP statement.
3365         * tree-vect-stmts.c (vectorizable_conversion,
3366         vectorizable_assignment, vectorizable_shift,
3367         vectorizable_operation, vectorizable_type_demotion,
3368         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3369         Likewise.
3370         (vectorizable_condition): Move the check that it is not SLP
3371         vectorization before the number of copies check.
3372         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3373         to vectorize the loop using SLP.
3374
3375 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3376
3377         PR middle-end/48597
3378         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3379         inline asm.
3380
3381 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3382
3383         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3384         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3385         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3386         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3387         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3388         linux*.h headers.
3389         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3390         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3391         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3392         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3393         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3394         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3395         REG_NAME.
3396         * config/i386/linux.h (REG_NAME): Don't define.
3397         * config/i386/linux64.h (REG_NAME): Don't define.
3398         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3399         Undefine before defining.
3400
3401 2011-04-28  Jan Hubicka  <jh@suse.cz>
3402
3403         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3404         nonconstant_names array.
3405         (estimate_function_body_sizes): Build nonconstant_names array; handle
3406         BUILT_IN_CONSTANT_P.
3407
3408 2011-04-28  Richard Guenther  <rguenther@suse.de>
3409
3410         PR bootstrap/48804
3411         Revert
3412         2011-04-28  Richard Guenther  <rguenther@suse.de>
3413
3414         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3415         as late as possible.
3416
3417 2011-04-28  Richard Guenther  <rguenther@suse.de>
3418
3419         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3420         (debug_constraint): Do it here.
3421         (dump_constraints): And here.
3422         (rewrite_constraints): And here.
3423         (dump_constraint_edge): Remove.
3424         (dump_constraint_graph): Rewrite to produce DOT output.
3425         (solve_constraints): Build succ graph as late as possible.
3426         Dump constraint graphs before and after solving.
3427
3428 2011-04-28  Richard Guenther  <rguenther@suse.de>
3429
3430         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3431         New function split out from ...
3432         (find_func_aliases): ... here.  Call it.
3433         (find_func_aliases_for_call): Likewise.
3434
3435 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3436
3437         * internal-fn.h (internal_fn_name_array): Declare.
3438         (internal_fn_flags_array): Likewise.
3439
3440 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3441
3442         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3443         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3444         Move from sse.md.
3445         (ssemodefsuffix): Remove.
3446         (ssevecmodesuffix): New mode attribute.
3447         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3448         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3449         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3450         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3451         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3452         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3453         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3454         ssemodesuffix mode attribute.
3455         (float splitters): Use ssevecmodesuffix mode attribute.
3456         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3457         (sseinsmode): Rename from avxvecmode.
3458         (avxsizesuffix): Rename from avxmodesuffix.
3459         (sseintvecmode): Rename from avxpermvecmode.
3460         (ssedoublevecmode): Rename from ssedoublesizemode.
3461         (ssehalfvecmode): Rename from avxhalfvecmode.
3462         (ssescalarmode): Rename from avxscalarmode.
3463         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3464         templates for ssemodesuffix mode attribute.
3465         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3466         mode attribute.
3467
3468         Adjust RTX patterns globally for renamed mode attributes.
3469
3470 2011-04-27  Jan Hubcika  <jh@suse.cz>
3471
3472         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3473         * ipa-inline-analysis.c: Include alloc-pool.h.
3474         (edge_predicate_pool): New.
3475         (trye_predicate_p): New function
3476         (false_predicate_p): New function.
3477         (add_clause): Sanity check that false clauses are "optimized";
3478         never add clauses to predicate that is already known to be false.
3479         (and_predicate): Use flase_predicate_p.
3480         (evaulate_predicate): Rename to ...
3481         (evaluate_predicate): ... this one; update all callers; assert
3482         that false is not listed among possible truths.
3483         (dump_predicate): Use true_predicate_p.
3484         (account_size_time): Use false_predicate_p.
3485         (evaulate_conditions_for_edge): Rename to ...
3486         (evaluate_conditions_for_edge) ... this one.
3487         (edge_set_predicate): New function.
3488         (inline_edge_duplication_hook): Duplicate edge predicates.
3489         (inline_edge_removal_hook): Free edge predicates.
3490         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3491         (dump_inline_summary): Update.
3492         (estimate_function_body_sizes): Set edge predicates.
3493         (estimate_calls_size_and_time): Handle predicates.
3494         (estimate_callee_size_and_time): Update.
3495         (remap_predicate): Add toplev_predicate; update comment.
3496         (remap_edge_predicates): New function.
3497         (inline_merge_summary): Compute toplev predicate; update.
3498         (read_predicate): New function.
3499         (read_inline_edge_summary): Use it.
3500         (inline_read_section): Likewise.
3501         (write_predicate): New function.
3502         (write_inline_edge_summary): Use it.
3503         (inline_write_summary): Likewise.
3504         (inline_free_summary): Free alloc pool and edge summary vec.
3505
3506 2011-04-27  Richard Guenther  <rguenther@suse.de>
3507
3508         * tree-ssa-structalias.c (changed_count): Remove.
3509         (changed): Use a bitmap.
3510         (unify_nodes): Adjust.
3511         (do_sd_constraint): Likewise.
3512         (do_ds_constraint): Likewise.
3513         (do_complex_constraint): Likewise.
3514         (solve_graph): Likewise.
3515
3516 2011-04-27  Jan Hubicka  <jh@suse.cz>
3517
3518         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3519
3520 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3521
3522         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3523         (avx_vperm2f128_*_operand): Ditto.
3524         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3525         Use avx_vpermilp_parallel in insn condition.
3526         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3527         Use avx_vperm2f128_parallel in insn condition.
3528
3529 2011-04-27  Richard Guenther  <rguenther@suse.de>
3530
3531         * Makefile.in (tree-ssa-structalias.o): Remove
3532         gt-tree-ssa-structalias.h dependency.
3533         (GTFILES): Remove tree-ssa-structalias.c.
3534         * tree.c (allocate_decl_uid): New function.
3535         (make_node_stat): Use it.
3536         (copy_node_stat): Likewise.
3537         * tree.h (allocate_decl_uid): Declare.
3538         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3539         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3540         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3541         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3542         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3543         (struct heapvar_map): Likewise.
3544         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3545         heapvar_insert): Likewise.
3546         (make_heapvar_for): Rename to ...
3547         (make_heapvar): ... this.  Simplify.
3548         (fake_var_decl_obstack): New global var.
3549         (build_fake_var_decl): New function.
3550         (make_constraint_from_heapvar): Adjust.
3551         (handle_lhs_call): Likewise.
3552         (create_function_info_for): Likewise.
3553         (intra_create_variable_infos): Likewise.
3554         (init_alias_vars): Allocate fake_var_decl_obstack.
3555         (init_alias_heapvars, delete_alias_heapvars): Remove.
3556         (compute_points_to_sets): Do not call init_alias_heapvars.
3557         (ipa_pta_execute): Likewise.
3558         (delete_points_to_sets): Free fake_var_decl_obstack.
3559
3560 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3561
3562         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3563         (si_from_UTItype, si_to_UTItype): New functions.
3564         (__udivmodti4): Use them to implement type-punning.
3565         * config/spu/multi3.c (union qword_TItype): New data type.
3566         (si_from_TItype, si_to_TItype): New functions.
3567         (__multi3): Use them to implement type-punning.
3568
3569 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3570
3571         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3572
3573 2011-04-27  Jan Hubicka  <jh@suse.cz>
3574
3575         * ipa-prop.c (function_insertion_hook_holder): New holder.
3576         (ipa_add_new_function): New function.
3577         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3578         Register/deregister holder.
3579
3580 2011-04-27  Richard Guenther  <rguenther@suse.de>
3581
3582         PR tree-optimization/48772
3583         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3584
3585 2011-04-27  Richard Guenther  <rguenther@suse.de>
3586
3587         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3588         TARGET_MEM_REF handling.
3589
3590 2011-04-27  Nick Clifton  <nickc@redhat.com>
3591
3592         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3593         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3594         (REG_CLASS_NAMES): Likewise.
3595         (REG_CLASS_CONTENTS): Likewise.
3596         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3597         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3598         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3599         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3600         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3601         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3602         duplicate register classes.
3603         (frv_class_likely_spilled_p): Likewise.
3604         (frv_register_move_cost): Likewise.
3605
3606         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3607         end of the regno_reg_class array.
3608
3609 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3610
3611         PR c/48742
3612         * c-typeck.c (build_binary_op): Don't wrap arguments if
3613         int_operands is true.
3614
3615 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3616
3617         PR target/48767
3618         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3619         targetm.calls.must_pass_in_stack for void type.
3620
3621 2011-04-26  Jan Hubicka  <jh@suse.cz>
3622
3623         * cgraphbuild.c (build_cgraph_edges): Update call
3624         of cgraph_create_edge and cgraph_create_indirect_edge.
3625         * cgraph.c (cgraph_create_edge_including_clones,
3626         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3627         cgraph_update_edges_for_call_stmt_node): Do not take nest
3628         argument; do not initialize call_stmt_size/time.
3629         (dump_cgraph_node): Do not dump nest.
3630         (cgraph_clone_edge): Do not take loop_nest argument;
3631         do not propagate it; do not clone call_stmt_size/time.
3632         (cgraph_clone_node): Likewise.
3633         (cgraph_create_virtual_clone): Update.
3634         * cgraph.h (struct cgraph_edge): Remove
3635         call_stmt_size/call_stmt_time/loop_nest.
3636         (cgraph_create_edge, cgraph_create_indirect_edge,
3637         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3638         prototype.
3639         * tree-emutls.c (gen_emutls_addr): Update.
3640         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3641         loop_nest; handle indirect calls, too.
3642         (clone_inlined_nodes): Do not care about updating inline summaries.
3643         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3644         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3645         stream call_stmt_size/call_stmt_time/loop_nest.
3646         * ipa-inline.c (edge_badness): Update.
3647         (ipa_inline): dump summaries after inlining.
3648         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3649         New.
3650         (inline_edge_summary): New function.
3651         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3652         (inline_edge_removal_hook): Handle edge summaries.
3653         (inline_edge_duplication_hook): New hook.
3654         (inline_summary_alloc): Alloc hooks.
3655         (initialize_growth_caches): Do not register removal hooks.
3656         (free_growth_caches); Do not free removal hook.
3657         (dump_inline_edge_summary): New function.
3658         (dump_inline_summary): Use it.
3659         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3660         (inline_update_callee_summaries): New function.
3661         (inline_merge_summary): Use it.
3662         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3663         (read_inline_edge_summary): New function.
3664         (inline_read_section): Use it.
3665         (write_inline_edge_summary): New function.
3666         (inline_write_summary): Use it.
3667         (inline_free_summary): Free edge new holders.
3668         * tree-inline.c (copy_bb): Update.
3669
3670 2011-04-26  Jason Merrill  <jason@redhat.com>
3671
3672         * tree-eh.c (lower_try_finally_switch): Create the label along with
3673         the CASE_LABEL_EXPR.
3674
3675 2011-04-26  David S. Miller  <davem@davemloft.net>
3676             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3677
3678         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3679         * configure: Regenerate.
3680
3681 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3682
3683         PR target/48258
3684         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3685         reduction.
3686         (VEC_reduc): New code iterator and splitters for vector reduction.
3687         (VEC_reduc_name): Ditto.
3688         (VEC_reduc_rtx): Ditto.
3689         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3690         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3691
3692         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3693         support for extracting SF on VSX.
3694
3695         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3696         generating xscvspdp.
3697         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3698         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3699         double add, minimum, maximum vector reduction.
3700         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3701         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3702         optimize double vector reduction.
3703         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3704
3705 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3706
3707         * config/fr30/fr30.h (inhibit_libc): Don't define.
3708         * config/m32r/m32r-protos.h: Correct comment.
3709         * config/v850/v850.h (GHS_default_section_names,
3710         GHS_current_section_names): Use tree, not union tree_node *.
3711
3712 2011-04-26  Xinliang David Li  <davidxl@google.com>
3713
3714         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3715         * c-family/c-opts.c (c_common_handle_option): Set
3716         warn_maybe_uninitialized.
3717         * opts.c (common_handle_option): Ditto.
3718         * common.opt:  New option.
3719         * tree-ssa.c (warn_uninit): Add one more parameter.
3720         (warn_uninitialized_var): Pass warning code.
3721         * tree-flow.h: Interface change.
3722
3723
3724 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3725
3726         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3727         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3728         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3729
3730 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3731
3732         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3733         * config/mips/mips.opt (mmips-tfile): Remove.
3734
3735         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3736         mips-tdump reference to ...
3737         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3738         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3739         reference by Tru64 UNIX.
3740
3741 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3742
3743         PR debug/48768
3744         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3745         is error_mark_node, set value to NULL.
3746
3747         PR tree-optimization/48734
3748         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3749         if return value from maybe_fold_*_comparsions isn't something
3750         the code is prepared to handle.
3751
3752 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3753
3754         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3755         mode check.
3756         (ext_QIreg_nomode_operands): Remove.
3757         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3758         (*andsi_1): Ditto.
3759         (*andhi_1): Ditto.
3760
3761 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3762
3763         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3764
3765 2011-04-26  Richard Guenther  <rguenther@suse.de>
3766
3767         * c-typeck.c (build_unary_op): Do not expand array-refs via
3768         pointer arithmetic.  Only adjust qualifiers for function types.
3769
3770 2011-04-26  Richard Guenther  <rguenther@suse.de>
3771
3772         PR middle-end/48694
3773         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3774         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3775         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3776         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3777
3778 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3779
3780         * doc/extend.texi: Document __underlying_type.
3781
3782 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3783
3784         * config/rs6000/titan.md (automata_option "progress"): Remove.
3785
3786 2011-04-25  Jeff Law  <law@redhat.com>
3787
3788         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3789
3790 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3791
3792         * system.h (ENUM_BITFIELD): Remove.
3793
3794 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3795             Eric Botcazou  <ebotcazou@adacore.com>
3796
3797         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3798         for STORE_FLAG_VALUE==-1 case.
3799
3800 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3801
3802         PR target/43804
3803         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3804         LEGITIMATE_PIC_OPERAND_P.
3805
3806 2011-04-24  Jan Hubicka  <jh@suse.cz>
3807
3808         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3809         WPA hack.
3810         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3811         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3812         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3813         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3814         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3815         Sanity check predicate length.
3816         (remap_predicate): Likewise; sanity check jump functions.
3817         (inline_read_section, inline_write_summary): Sanity check
3818         predicate length.
3819
3820 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3821
3822         PR other/48748
3823         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3824         __is_literal_type, and __is_trivial; update throughout about
3825         possibly cv-qualified void types.
3826
3827 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3828
3829         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3830         testsuite and make it version agnostic.
3831
3832 2011-04-22  Jan Hubicka  <jh@suse.cz>
3833
3834         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3835
3836 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3837
3838         PR c/48685
3839         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3840         to VOID_TYPE even around MODIFY_EXPR.
3841
3842 2011-04-22  Mike Stump  <mikestump@comcast.net>
3843
3844         * gensupport.c (read_md_rtx): Fix typo in comment.
3845         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3846         comment.
3847
3848 2011-04-22  Jan Hubicka  <jh@suse.cz>
3849
3850         * gengtype.c (open_base_files): Add ipa-inline.h include.
3851         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3852         ipa-prop.c; update all uses.
3853         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3854         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3855         merge summary of inlined function into former caller.
3856         * ipa-inline.c (max_benefit): Remove.
3857         (edge_badness): Compensate for removal of benefits.
3858         (update_caller_keys): Use
3859         reset_node_growth_cache/reset_edge_growth_cache.
3860         (update_callee_keys): Likewise.
3861         (update_all_callee_keys): Likewise.
3862         (inline_small_functions): Do not collect max_benefit; do not reset
3863         estimated_growth; call free_growth_caches and initialize_growth_caches.
3864         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3865         struct size_time_entry): New structures.
3866         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3867         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3868         and estimated_growth.
3869         (edge_growth_cache_entry): New structure.
3870         (node_growth_cache, edge_growth_cache): New global vars.
3871         (estimate_growth): Turn into inline.
3872         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3873         initialize_growth_caches, free_growth_caches): Declare.
3874         (estimate_edge_growth): Rewrite.
3875         (estimate_edge_time): Implement as inline cache lookup.
3876         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3877         functions.
3878         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3879         (NUM_CONDITIONS): New constant.
3880         (predicate_conditions): New enum.
3881         (IS_NOT_CONSTANT): New constant.
3882         (edge_removal_hook_holder): New var.
3883         (node_growth_cache, edge_growth_cache): New global vars.
3884         (true_predicate, single_cond_predicate, false_predicate,
3885         not_inlined_predicate, add_condition, add_clause, and_predicates,
3886         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3887         dump_clause, dump_predicate, account_size_time,
3888         evaulate_conditions_for_edge): New functions.
3889         (inline_summary_alloc): Move to heap.
3890         (inline_node_removal_hook): Clear condition and entry vectors.
3891         (inline_edge_removal_hook): New function.
3892         (initialize_growth_caches, free_growth_caches): New function.
3893         (dump_inline_summary): Update.
3894         (edge_execution_predicate): New function.
3895         (will_be_nonconstant_predicate): New function.
3896         (estimate_function_body_sizes): Compute BB and constantness predicates.
3897         (compute_inline_parameters): Do not clear estimated_growth.
3898         (estimate_edge_size_and_time): New function.
3899         (estimate_calls_size_and_time): New function.
3900         (estimate_callee_size_and_time): New function.
3901         (remap_predicate): New function.
3902         (inline_merge_summary): New function.
3903         (do_estimate_edge_time): New function based on...
3904         (estimate_edge_time): ... this one.
3905         (do_estimate_edge_growth): New function.
3906         (do_estimate_growth): New function based on....
3907         (estimate_growth): ... this one.
3908         (inline_analyze_function): Analyze after deciding on jump functions.
3909         (inline_read_section): New function.
3910         (inline_read_summary): Use it.
3911         (inline_write_summary): Write all the new data.
3912         * ipa-prop.c (ipa_get_param_decl_index): Export.
3913         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3914         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3915         Declare.
3916         (ipa_get_lattice): Move here from ipa-cp.c
3917         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3918         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3919         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3920         cgraph_edge_inlinable_p): Remove.
3921         * cgraphunit.c: Include ipainline.h
3922         (cgraph_process_new_functions): Update call of
3923         compute_inline_parameters.
3924
3925 2011-04-22  Richard Guenther  <rguenther@suse.de>
3926
3927         * tree.c (build_int_cst): Properly create canonicalized integer
3928         constants.
3929         (build_int_cst_type): Remove scary comments.
3930
3931 2011-04-22  Xinliang David Li  <davidxl@google.com>
3932
3933         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3934         by default when -Wno-error is not specified.
3935         * opts-global.c (decode_options): Remove call to
3936         control_warning_options.
3937
3938 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3939
3940         PR tree-optimization/48717
3941         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3942         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3943
3944 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3945
3946         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3947         definition where used.
3948
3949 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3950
3951         PR c/48716
3952         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3953         TREE_STATIC variables declared inside of some OpenMP construct.
3954
3955 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3956
3957         PR middle-end/48585
3958         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3959
3960 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3961
3962         PR c/36750
3963         * c-typeck.c (pop_init_level): Do not warn about initializing
3964         with ` = {0}'.
3965
3966 2011-04-22  Alan Modra  <amodra@gmail.com>
3967
3968         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3969         when returning call_cookie.
3970         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3971         pointers, to functions with no more vector args than the current
3972         function, and some non-local calls for ABI_V4.
3973         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3974         sibcall_nonlocal_aix64): Combine to ..
3975         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3976         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3977         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3978         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3979         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3980         operand.
3981         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3982         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3983         sibcall_value_symbolic_64): Delete.
3984
3985 2011-04-21  Xinliang David Li  <davidxl@google.com>
3986
3987         * cgraph.h: Remove pid.
3988         * cgraph.c: Remove pid.
3989         * value-prof.c (init_node_map): New function.
3990         (del_node_map): New function.
3991         (find_func_by_funcdef_no): New function.
3992         (gimple_ic_transform): Call new function.
3993         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3994         * function.c (get_last_funcdef_no): New function.
3995         * function.h (get_last_funcdef_no): New function.
3996         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3997         to libgcov function.
3998         (tree-profiling): Call node map init and delete function.
3999
4000 2011-04-21  Ian Lance Taylor  <iant@google.com>
4001
4002         * godump.c (go_format_type): Use exported Go name for anonymous
4003         field name.
4004
4005 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4006
4007         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4008         Call builtin_function_type_list instead of builtin_function_type.
4009         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4010
4011 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4012
4013         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4014         build_function_type_list instead of build_function_type.
4015         Delete variable `endlink'.
4016
4017 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4018
4019         * config/s390/s390.c (s390_init_builtins): Call
4020         build_function_type_list instead of build_function_type.
4021
4022 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4023
4024         * config/ia64/ia64.c (ia64_init_builtins): Call
4025         build_function_type_list instead of builtin_function_type.
4026
4027 2011-04-21  Easwaran Raman  <eraman@google.com>
4028
4029         * cfgexpand.c (stack_var): Remove OFFSET...
4030         (add_stack_var): ...and its reference here...
4031         (expand_stack_vars): ...and here.
4032         (stack_var_cmp): Sort by descending order of size.
4033         (partition_stack_vars): Change heuristic.
4034         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4035         (dump_stack_var_partition): Add newline after each partition.
4036
4037 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4038             Jeff Law  <law@redhat.com>
4039
4040         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4041         * gengtype.c (matching_file_name_substitute): Likewise.
4042
4043 2011-04-21  Richard Guenther  <rguenther@suse.de>
4044
4045         PR lto/48703
4046         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4047
4048 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4049
4050         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4051
4052 2011-04-21  Richard Guenther  <rguenther@suse.de>
4053
4054         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4055         file name.
4056
4057 2011-04-21  Richard Guenther  <rguenther@suse.de>
4058
4059         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4060         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4061         Use DECL_P, not SSA_VAR_P.
4062         (ptr_derefs_may_alias_p): Likewise.
4063         (ptr_deref_may_alias_ref_p_1): Likewise.
4064         (decl_refs_may_alias_p): Likewise.
4065         (refs_may_alias_p_1): Likewise.
4066         (ref_maybe_used_by_call_p_1): Likewise.
4067         (call_may_clobber_ref_p_1): Likewise.
4068         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4069         are either MEM_REF or TARGET_MEM_REF.
4070         (indirect_refs_may_alias_p): Likewise.
4071         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4072         for MEM_EXPR of indirect calls.
4073
4074 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4075
4076         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4077         (dst_file_info_struct): Remove flen field.
4078         (lookup_filename): Remove code that set flen field.
4079
4080 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4081
4082         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4083
4084 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4085
4086         PR target/48708
4087         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4088         vec_extract and vec_concat for non-SSE4_1 targets.
4089
4090 2011-04-21  Richard Guenther  <rguenther@suse.de>
4091
4092         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4093         return statements.
4094
4095 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4096
4097         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4098         undefine.
4099         (FILE): Don't undefine.
4100
4101 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4102
4103         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4104         struct rtx_def *.
4105         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4106         struct rtx_def *.
4107         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4108         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4109         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4110         rtx_def *.
4111         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4112         definitions where used.
4113         * config/microblaze/microblaze.h (struct microblaze_args): Use
4114         rtx, not struct rtx_def *.
4115         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4116         rtx_def *.
4117         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4118         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4119         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4120         not struct rtx_def *.
4121         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4122         struct rtx_def *.
4123         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4124         rtx_def *.
4125         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4126
4127 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4128
4129         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4130         operand_equal_p to compare DR_BASE_ADDRESSes.
4131         (vect_check_interleaving): Likewise.
4132
4133 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4134
4135         PR target/46329
4136         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4137         for all Neon struct constants.
4138
4139 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4140
4141         * target.def (legitimate_constant_p): New hook.
4142         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4143         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4144         * doc/tm.texi: Regenerate.
4145         * hooks.h (hook_bool_mode_rtx_true): Declare.
4146         * hooks.c (hook_bool_mode_rtx_true): Define.
4147         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4148         * calls.c (precompute_register_parameters): Replace uses of
4149         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4150         (emit_library_call_value_1): Likewise.
4151         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4152         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4153         * ira-costs.c (scan_one_insn): Likewise.
4154         * recog.c (general_operand, immediate_operand): Likewise.
4155         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4156         * reload1.c (init_eliminable_invariants): Likewise.
4157
4158         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4159         mode argument.
4160         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4161         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4162         argument.
4163         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4164         * config/alpha/predicates.md (input_operand): Update call to
4165         alpha_legitimate_constant_p.
4166
4167         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4168         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4169         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4170         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4171         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4172         (arm_legitimate_constant_p): New functions.
4173         (arm_cannot_force_const_mem): Make static.
4174
4175         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4176
4177         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4178         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4179         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4180         instead of bfin_legitimate_constant_p.
4181         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4182         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4183
4184         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4185
4186         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4187
4188         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4189         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4190         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4191         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4192
4193         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4194         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4195         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4196
4197         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4198         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4199         * config/i386/i386.c (legitimate_constant_p): Rename to...
4200         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4201         argument.
4202         (ix86_cannot_force_const_mem): Update accordingly.
4203         (ix86_legitimate_address_p): Likewise.
4204         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4205         * config/i386/i386.md: Update commentary.
4206
4207         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4208         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4209         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4210         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4211
4212         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4213
4214         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4215         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4216         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4217         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4218
4219         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4220         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4221         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4222
4223         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4224         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4225         (m32r_legitimate_constant_p): New function.
4226
4227         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4228         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4229         LEGITIMATE_CONSTANT_P.
4230         (LEGITIMATE_CONSTANT_P): Delete.
4231         * config/m68k/m68k.c (m68k_expand_prologue): Call
4232         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4233         (m68k_legitimate_constant_p): New function.
4234         * config/m68k/m68k.md: Update comments.
4235
4236         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4237         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4238         (mcore_legitimate_constant_p): New function.
4239
4240         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4241         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4242         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4243         Add a mode argument.
4244         (mep_legitimate_address): Update accordingly.
4245         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4246
4247         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4248         Delete.
4249         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4250         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4251         static.  Check OP's mode for VOIDmode.
4252         (microblaze_legitimate_constant_p): New function.
4253         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4254
4255         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4256         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4257         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4258         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4259         * config/mips/predicates.md: Update comments.
4260
4261         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4262         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4263         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4264         (mmix_legitimate_constant_p): Make static, return a bool, and take
4265         a mode argument.
4266         (mmix_print_operand_address): Update accordingly.
4267
4268         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4269         Delete.
4270         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4271         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4272         static.  Add a mode argument.
4273         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4274
4275         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4276
4277         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4278         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4279         (pa_legitimate_constant_p): New function.
4280
4281         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4282
4283         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4284         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4285         (pdp11_legitimate_constant_p): New function.
4286
4287         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4288         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4289         (rs6000_legitimate_constant_p): New function.
4290
4291         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4292         (rx_legitimate_constant_p): ...this.
4293         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4294         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4295         (rx_legitimate_constant_p): ...this.
4296         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4297         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4298
4299         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4300         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4301         * config/s390/s390.c (legitimate_constant_p): Rename to...
4302         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4303         and add a mode argument.
4304         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4305
4306         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4307
4308         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4309         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4310         (sh_legitimate_constant_p): New function.
4311
4312         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4313         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4314         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4315         (legitimate_constant_p): Rename to...
4316         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4317         argument.
4318         (constant_address_p): Update accordingly.
4319
4320         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4321         argument and return a bool.
4322         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4323         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4324         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4325         (spu_rtx_costs): Update accordingly.
4326         * config/spu/predicates.md (vec_imm_operand): Likewise.
4327
4328         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4329
4330         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4331         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4332         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4333
4334         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4335         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4336         * config/vax/vax.c (legitimate_constant_p): Likewise.
4337
4338         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4339         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4340         (xtensa_legitimate_constant_p): New function.
4341
4342 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4343
4344         * target.def (cannot_force_const_mem): Add a mode argument.
4345         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4346         * doc/tm.texi: Regenerate.
4347         * hooks.h (hook_bool_mode_rtx_false): Declare.
4348         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4349         (hook_bool_mode_const_rtx_true): Likewise.
4350         (hook_bool_mode_rtx_false): New function.
4351         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4352         to be non-VOID.  Update call to cannot_force_const_mem.
4353         (find_reloads): Update accordingly.
4354         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4355         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4356         argument.
4357         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4358         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4359         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4360         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4361         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4362         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4363         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4364         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4365         (m68k_cannot_force_const_mem): ...this new function.
4366         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4367         argument.
4368         (mips_const_insns, mips_legitimize_const_move): Update calls.
4369         (mips_secondary_reload_class): Likewise.
4370         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4371         (pa_cannot_force_const_mem): ...this new function.
4372         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4373         (rs6000_cannot_force_const_mem): ...this new function.
4374         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4375         argument.
4376         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4377         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4378         to...
4379         (xtensa_cannot_force_const_mem): ...this new function.
4380
4381 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4382
4383         * config/mips/mips.c (mips16_build_function_stub): Call
4384         build_function_type_list instead of build_function_type.
4385         (mips16_build_call_stub): Likewise.
4386
4387 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4388
4389         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4390         instead of build_function_type.
4391
4392 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4393
4394         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4395         instead of build_function_type.
4396
4397 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4398
4399         PR target/48678
4400         * config/i386/i386.md (insv): Change operand 0 constraint to
4401         "register_operand".  Change operand 1 and 2 constraint to
4402         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4403         * config/i386/sse.md (sse4_1_pinsrb): Export.
4404         (sse2_pinsrw): Ditto.
4405         (sse4_1_pinsrd): Ditto.
4406         (sse4_1_pinsrq): Ditto.
4407         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4408         * config/i386/i386.c (ix86_expand_pinsr): New.
4409
4410 2011-04-20  Easwaran Raman  <eraman@google.com>
4411
4412         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4413         containing union type only with -fstrict-aliasing.
4414
4415 2011-04-20  Jim Meyering  <meyering@redhat.com>
4416
4417         Remove useless if-before-free tests.
4418         * calls.c (expand_call, save_area): Likewise.
4419         * cfgcleanup.c (try_forward_edges): Likewise.
4420         * collect2.c (collect_execute): Likewise.
4421         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4422         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4423         * coverage.c (coverage_checksum_string): Likewise.
4424         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4425         * cselib.c (cselib_init): Likewise.
4426         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4427         (df_set_clean_cfg): Likewise.
4428         * function.c (free_after_compilation): Likewise.
4429         * gcc.c (do_spec_1, main): Likewise.
4430         * gcov.c (create_file_names): Likewise.
4431         * gensupport.c (identify_predicable_attribute): Likewise.
4432         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4433         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4434         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4435         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4436         * ipa-pure-const.c (local_pure_const): Likewise.
4437         * ipa-reference.c (propagate): Likewise.
4438         * ira-costs.c (free_ira_costs): Likewise.
4439         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4440         * matrix-reorg.c (mat_free): Likewise.
4441         * prefix.c (get_key_value): Likewise.
4442         * profile.c (compute_value_histograms): Likewise.
4443         * reload1.c (free_reg_equiv): Likewise.
4444         * sched-deps.c (free_deps): Likewise.
4445         * sel-sched-ir.c (fence_clear): Likewise.
4446         * sese.c (set_rename, if_region_set_false_region): Likewise.
4447         * tree-data-ref.c (free_rdg): Likewise.
4448         * tree-eh.c (lower_try_finally): Likewise.
4449         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4450         * tree-ssa-live.c (delete_var_map): Likewise.
4451         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4452         * tree-ssa-pre.c (phi_trans_add): Likewise.
4453
4454 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4455
4456         PR tree-optimization/48611
4457         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4458         beyond ERT_MUST_NOT_THROW region.
4459
4460 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4461
4462         * config/mips/mips.opt (mfix-24k): New.
4463         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4464         * config/mips/mips.md (length): Increase by 4 for stores if
4465         fixing 24K errata.
4466         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4467         all noreorder if fixing 24K errata.
4468         * doc/invoke.texi: Document mfix-24k.
4469
4470 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4471
4472         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4473         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4474
4475 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4476
4477         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4478         (const_ok_for_op): ... to here.
4479
4480 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4481
4482         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4483         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4484
4485 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4486
4487         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4488
4489 2011-04-20  Richard Guenther  <rguenther@suse.de>
4490
4491         PR tree-optimization/47892
4492         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4493         are if-convertible.
4494
4495 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4496
4497         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4498
4499 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4500
4501         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4502
4503 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4504
4505         PR target/18145
4506
4507         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4508         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4509         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4510         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4511         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4512
4513         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4514         New prototype.
4515
4516         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4517         (avr_asm_named_section, avr_asm_output_aligned_common,
4518         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4519         New functions to update...
4520         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4521         (avr_asm_init_sections): Overwrite section callbacks for
4522         data_section, bss_section.
4523         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4524         from here to...
4525         (avr_file_end): ...here.
4526
4527 2011-04-20  Richard Guenther  <rguenther@suse.de>
4528
4529         PR middle-end/48695
4530         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4531         objects and types here.  Adjust for their offset before comparing.
4532
4533 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4534
4535         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4536         statement per copy.
4537
4538 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4539
4540         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4541         (GIMPLE_H): Include $(INTERNAL_FN_H).
4542         (OBJS-common): Add internal-fn.o.
4543         (internal-fn.o): New rule.
4544         * internal-fn.def: New file.
4545         * internal-fn.h: Likewise.
4546         * internal-fn.c: Likewise.
4547         * gimple.h: Include internal-fn.h.
4548         (GF_CALL_INTERNAL): New gf_mask.
4549         (gimple_statement_call): Put fntype into a union with a new
4550         internal_fn field.
4551         (gimple_build_call_internal): Declare.
4552         (gimple_build_call_internal_vec): Likewise.
4553         (gimple_call_same_target_p): Likewise.
4554         (gimple_call_internal_p): New function.
4555         (gimple_call_internal_fn): Likewise.
4556         (gimple_call_fntype): Return null for internal calls.
4557         (gimple_call_set_fntype): Assert that the function is not internal.
4558         (gimple_call_set_fn): Likewise.
4559         (gimple_call_set_fndecl): Likewise.
4560         (gimple_call_set_internal_fn): New function.
4561         (gimple_call_addr_fndecl): Handle null functions.
4562         (gimple_call_return_type): Likewise null types.
4563         * gimple.c (gimple_build_call_internal_1): New function.
4564         (gimple_build_call_internal): Likewise.
4565         (gimple_build_call_internal_vec): Likewise.
4566         (gimple_call_same_target_p): Likewise.
4567         (gimple_call_flags): Handle calls to internal functions.
4568         (gimple_call_fnspec): New function.
4569         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4570         (gimple_has_side_effects): Handle null functions.
4571         (gimple_rhs_has_side_effects): Likewise.
4572         (gimple_call_copy_skip_args): Handle calls to internal functions.
4573         * cfgexpand.c (expand_call_stmt): Likewise.
4574         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4575         * gimple-fold.c (gimple_fold_call): Handle null functions.
4576         (gimple_fold_stmt_to_constant_1): Don't fold
4577         calls to internal functions.
4578         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4579         functions.
4580         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4581         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4582         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4583         (do_warn_unused_result): Likewise.
4584         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4585         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4586         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4587         the target of a call.
4588         (initialize_hash_element): Update accordingly.
4589         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4590         (iterative_hash_hashable_expr): Handle calls to internal functions.
4591         (print_expr_hash_elt): Likewise.
4592         * tree-ssa-pre.c (can_value_number_call): Likewise.
4593         (eliminate): Handle null functions.
4594         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4595         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4596         (find_func_aliases): Likewise.
4597         * value-prof.c (gimple_ic_transform): Likewise.
4598         (gimple_indirect_call_to_profile): Likewise.
4599         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4600         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4601
4602 2011-04-19  Jan Hubicka  <jh@suse.cz>
4603
4604         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4605         * ipa-inline.c (inline_small_functions): Compute summaries first,
4606         populate heap later.
4607
4608 2011-04-19  Jan Hubicka  <jh@suse.cz>
4609
4610         * cgraph.h (save_inline_function_body): Remove.
4611         * ipa-inline-transform.c: New file, broke out of...
4612         * ipa-inline.c: ... this one; Update toplevel comment.
4613         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4614         make global.
4615         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4616         (cgraph_mark_inline_edge): Rename to inline_call; move to
4617         ipa-inline-transform.c.
4618         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4619         move to ipa-inline-transform.c
4620         (recursive_inlining, inline_small_functions, flatten_function,
4621         ipa_inline, inline_always_inline_functions,
4622         early_inline_small_functions): Update.
4623         (inline_transform): Move to ipa-inline-transform.c.
4624         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4625         Declare.
4626         * Makefile.in (ipa-inline-transform.o): New file.
4627         * cgraphunit.c (save_inline_function_body): Move to
4628         ipa-inline-transform.c
4629
4630 2011-04-19  DJ Delorie  <dj@redhat.com>
4631
4632         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4633         registers if we already know there aren't any.
4634         (m32c_emit_epilogue): Don't emit a barrier here.
4635         (m32c_emit_eh_epilogue): Likewise.
4636         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4637         operands at expand time.
4638         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4639         int" wchar type.
4640         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4641         duplicates.  Provide aliases instead.
4642         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4643         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4644         the compiler.
4645
4646 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4647
4648         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4649         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4650         (general_or_i64_p, sparc_register_move_cost): New function.
4651
4652 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4653
4654         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4655         Add lynx, mipssde.  Sort table.
4656
4657 2011-04-19  Xinliang David Li  <davidxl@google.com>
4658
4659         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4660         not negative.
4661
4662 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4663
4664         PR target/48678
4665         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4666         is a SUBREG with non-MODE_INT mode inside of it.
4667
4668 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4669
4670         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4671         also according to actual contants.
4672         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4673         (gimple_fold_call): Use it.
4674         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4675
4676 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4677
4678         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4679         non-pointer assignments.
4680
4681 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4682
4683         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4684         account anc_offset and otr_type from the indirect edge info.
4685         * ipa-prop.c (get_ancestor_addr_info): New function.
4686         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4687         get_ancestor_addr_info, call it.
4688         (ipa_note_param_call): Do not initialize information about polymorphic
4689         calls, return the indirect call graph edge.  Remove the last
4690         parameter, adjust all callers.
4691         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4692         parameters.  Initialize polymorphic information in the indirect edge.
4693
4694 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4695
4696         PR lto/48148
4697         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4698         the types if they have different enumeration identifiers.
4699
4700 2011-04-19  Jan Hubicka  <jh@suse.cz>
4701
4702         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4703         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4704         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4705         (optimize_function_for_size_p) ... here.
4706
4707 2011-04-19  Richard Guenther  <rguenther@suse.de>
4708
4709         PR lto/48207
4710         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4711         langhook.
4712
4713 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4714
4715         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4716         if DECL_NO_INLINE_WARNING_P is set on the function.
4717
4718 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4719
4720         PR fortran/47976
4721         * reload1.c (inc_for_reload): Return void. All callers changed.
4722         (emit_input_reload_insns): Don't try to delete previous output
4723         reloads to a register, or record spill_reg_store for autoincs.
4724
4725 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4726
4727         * gengtype.h: Updated copyright year.
4728         (struct input_file_st): Add inpisplugin field.
4729         (type_fileloc): New function.
4730         * gengtype.c
4731         (write_typed_struct_alloc_def): Add gcc_assert.
4732         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4733         (write_typed_alloc_defns): Don't output for plugin files.
4734         (input_file_by_name): Clear inpisplugin field.
4735         (main): Set inpisplugin field for plugin files.
4736
4737 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4738
4739         * gengtype-state.c (string_eq): New.
4740         (read_state): Use string_eq instead of strcmp when creating the
4741         state_ident_tab.
4742
4743 2011-04-19  Wei Guozhi  <carrot@google.com>
4744
4745         PR target/47855
4746         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4747         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4748         linkage.
4749         * config/arm/constraints.md (Uu): New constraint.
4750         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4751
4752 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4753
4754         * config.gcc (-*-*-*vms): Added.
4755         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4756         definitions moved.
4757         * config/vms/vms-ld.c: New file.
4758         * config/vms/vms-ar.c: New file.
4759         * config/vms/t-vmsnative: New file.
4760
4761 2011-04-18  Xinliang David Li  <davidxl@google.com>
4762
4763         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4764
4765 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4766
4767         PR middle-end/48661
4768         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4769         if TREE_TYPE (v) is non-NULL.
4770
4771         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4772         gimple_get_virt_mehtod_for_binfo.
4773         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4774         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4775         callers.
4776         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4777
4778 2011-04-18  Michael Matz  <matz@suse.de>
4779             Steve Ellcey  <sje@cup.hp.com>
4780
4781         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4782         use its mode as source mode if it isn't VOIDmode.
4783
4784 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4785
4786         * doc/passes.texi: Fill crossref nodes.
4787
4788 2011-04-18  Jim Meyering  <meyering@redhat.com>
4789
4790         Fix doubled-word typos in comments and strings
4791         * config/alpha/vms-unwind.h: s/for for/for/
4792         * config/arm/unwind-arm.h: Likewise.
4793         * config/microblaze/microblaze.c: Likewise.
4794         * config/sh/constraints.md: s/in in/in/
4795         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4796
4797 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4798
4799         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4800         (AVX_FLOAT_MODE_P): Ditto.
4801         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4802         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4803         (AVX_VEC_FLOAT_MODE_P): Ditto.
4804         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4805         (UNSPEC_MASKSTORE): Ditto.
4806         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4807         Merge from <sse>_movmsk<ssemodesuffix> and
4808         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4809         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4810         iterator.
4811         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4812         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4813         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4814
4815 2011-04-18  Jan Hubicka  <jh@suse.cz>
4816
4817         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4818
4819         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4820         (want_inline_function_called_once_p): Break out the logic from
4821         ipa_inline.
4822         (edge_badness): Ensure that profile is not misupdated.
4823         (lookup_recursive_calls): Prioritize by call frequencies.
4824         (inline_small_functions): Move program size estimates here;
4825         actually process whole queue even when unit growth has been
4826         met. (to properly compute inline_failed reasons and for the
4827         case unit size decrease.) Revisit comments on recursive inlining.
4828         (ipa_inline): Remove unit summary code; first inline hot calls
4829         of functions called once, cold calls next.
4830         (order, nnodes): Remove unused variables.
4831         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4832         (GTFILES): Remove ipa-inline.c
4833         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4834
4835 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4836
4837         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4838
4839 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4840             Richard Earnshaw  <rearnsha@arm.com>
4841
4842         * arm.c (neon_builtin_type_bits): Remove.
4843         (typedef enum neon_builtin_mode): New.
4844         (T_MAX): Don't define.
4845         (typedef enum neon_builtin_datum): Remove bits, codes[],
4846         num_vars and base_fcode.  Add mode, code and fcode.
4847         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4848         VAR10): Change accordingly.
4849         (neon_builtin_data[]): Change accordingly
4850         (arm_init_neon_builtins): Change accordingly.
4851         (neon_builtin_compare): Remove.
4852         (locate_neon_builtin_icode): Remove.
4853         (arm_expand_neon_builtin): Change accordingly.
4854
4855         * arm.h (enum arm_builtins): Move to ...
4856         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4857
4858         * arm.c (arm_builtin_decl): Declare.
4859         (TARGET_BUILTIN_DECL): Define.
4860         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4861         (arm_builtin_decls[]): New.
4862         (arm_init_neon_builtins): Store builtin declarations in
4863         arm_builtin_decls[].
4864         (arm_init_tls_builtins): Likewise.
4865         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4866         (arm_builtin_decl): New.
4867
4868 2011-04-18  Richard Guenther  <rguenther@suse.de>
4869
4870         * tree.c (upper_bound_in_type): Build properly canonicalized
4871         INTEGER_CSTs.
4872         (lower_bound_in_type): Likewise.
4873
4874 2011-04-18  Richard Guenther  <rguenther@suse.de>
4875
4876         * gimple.h (gimple_call_addr_fndecl): New function.
4877         (gimple_call_fndecl): Use it.
4878         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4879         for direct calls.
4880         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4881         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4882
4883 2011-04-18  Richard Guenther  <rguenther@suse.de>
4884
4885         PR middle-end/48650
4886         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4887
4888 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4889
4890         PR lto/48492
4891         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4892         DECL_IN_CONSTANT_POOL without RTL.
4893
4894 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4895             Ira Rosen  <ira.rosen@linaro.org>
4896
4897         PR target/48252
4898         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4899         to match neon_vzip/vuzp/vtrn_internal.
4900         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4901         outputs explicitly dependent on both inputs.
4902         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4903
4904 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4905
4906         PR tree-optimization/48616
4907         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4908         whether the shift is by scalar or vector based on whether all SLP
4909         scalar stmts have the same rhs.
4910
4911 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4912
4913         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4914         memory operands.
4915
4916 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4917
4918         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4919         registers.
4920
4921 2011-04-17  Jan Hubicka  <jh@suse.cz>
4922
4923         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4924         * cgrpahunit.c (cgraph_finalize_function): Do not set
4925         finalized_by_frontend.
4926         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4927         finalized_by_frontend.
4928
4929 2011-04-17  Jan Hubicka  <jh@suse.cz>
4930
4931         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4932         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4933         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4934         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4935         method.
4936         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4937         gimple-fold.c
4938         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4939
4940 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4941
4942         PR lto/48538
4943         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4944         is non-null before accessing it.
4945         (input_cgraph): Remove trailing spaces.
4946
4947 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4948
4949         * params.def (sms-min-sc): New param flag.
4950         * modulo-sched.c (sms_schedule): Use it.
4951         * doc/invoke.texi (sms-min-sc): Document it.
4952
4953 2011-04-17  Jan Hubicka  <jh@suse.cz>
4954
4955         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4956         present, also set gimple_call_set_cannot_inline.
4957         * ipa-inline.c: Update toplevel comment.
4958         (MAX_TIME): Remove.
4959         (cgraph_clone_inlined_nodes): Fix linebreaks.
4960         (cgraph_check_inline_limits): Restructure to ...
4961         (caller_growth_limits): ... this one; be more tolerant
4962         on growth in nested inline chains; add explanatory comment;
4963         fix stack accounting thinko introduced by previous patch.
4964         (cgraph_default_inline_p): Remove.
4965         (report_inline_failed_reason): New function.
4966         (can_inline_edge_p): New function.
4967         (can_early_inline_edge_p): New function.
4968         (leaf_node_p): Move upwards in file.
4969         (want_early_inline_function_p): New function.
4970         (want_inline_small_function_p): New function.
4971         (want_inline_self_recursive_call_p): New function.
4972         (cgraph_edge_badness): Rename to ...
4973         (edge_badness) ... this one; fix linebreaks.
4974         (update_edge_key): Update call of edge_baddness; add
4975         detailed dump about queue updates.
4976         (update_caller_keys): Use can_inline_edge_p and
4977         want_inline_small_function_p.
4978         (cgraph_decide_recursive_inlining): Rename to...
4979         (recursive_inlining): Use can_inline_edge_p and
4980         want_inline_self_recursive_call_p; simplify and remove no longer
4981         valid FIXME.
4982         (cgraph_set_inline_failed): Remove.
4983         (add_new_edges_to_heap): Use can_inline_edge_p and
4984         want_inline_small_function_p.
4985         (cgraph_decide_inlining_of_small_functions): Rename to ...
4986         (inline_small_functions): ... this one; cleanup; use
4987         can/want predicates; cleanup debug ouput; work edges till fibheap
4988         is exhausted and do not stop once unit growth is reached; remove
4989         later loop processing remaining edges.
4990         (cgraph_flatten): Rename to ...
4991         (flatten_function): ... this one; use can_inline_edge_p
4992         and can_early_inline_edge_p predicates.
4993         (cgraph_decide_inlining): Rename to ...
4994         (ipa_inline): ... this one; remove unreachable nodes before
4995         inlining functions called once; simplify the pass.
4996         (cgraph_perform_always_inlining): Rename to ...
4997         (inline_always_inline_functions): ... this one; use
4998         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4999         (cgraph_decide_inlining_incrementally): Rename to ...
5000         (early_inline_small_functions): ... this one; simplify
5001         using new predicates; cleanup; make dumps prettier.
5002         (cgraph_early_inlining): Rename to ...
5003         (early_inliner): newer inline regular functions into always-inlines;
5004         fix updating of call stmt summaries.
5005         (pass_early_inline): Update for new names.
5006         (inline_transform): Fix formating.
5007         (gate_cgraph_decide_inlining): Rename to ...
5008         (pass_ipa_inline): ... this one.
5009         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5010         * ipa-inline-analysis.c (dump_inline_summary): Update.
5011         (compute_inline_parameters): Do not compute disregard_inline_limits;
5012         look for mismatching arguments.
5013         (estimate_growth): Fix handlig of non-trivial self recursion.
5014         (inline_read_summary): Do not read info->disregard_inline_limits.
5015         (inline_write_summary): Do not write info->disregard_inline_limits.
5016         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5017         and move all checks into can_inline_edge_p predicate; re-enable code
5018         comparing optimization levels.
5019         (expand_call_inline): Do not test inline_forbidden_into_p.
5020         * Makefile.in (ipa-inline.o): Update arguments.
5021
5022 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5023
5024         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5025
5026 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5027
5028         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5029
5030 2011-04-17  Michael Matz  <matz@suse.de>
5031
5032         PR tree-optimization/48622
5033         PR lto/48645
5034         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5035         in same order as they're written.
5036
5037 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5038
5039         * config/pa/predicates.md: Reorganize and simplify predicates.
5040         Eliminate duplicate code checks.
5041         (arith_operand): Rename to arith14_operand
5042         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5043         * config/pa/pa.md: Use renamed operands.
5044         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5045         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5046         arith11_operand, adddi3_operand, indexed_memory_operand,
5047         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5048         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5049         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5050         move_dest_operand, move_src_operand, prefetch_cc_operand,
5051         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5052         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5053         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5054         div_operand, int5_operand, movb_comparison_operator,
5055         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5056         arith_double_operand, ireg_operand, lhs_lshift_operand,
5057         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5058         integer_store_memory_operand): Likewise.
5059         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5060         (integer_store_memory_operand, read_only_operand,
5061         function_label_operand, borx_reg_operand,
5062         non_hard_reg_operand): Likewise.
5063         (eq_neq_comparison_operator): Delete unused operator.
5064         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5065         function_label_operand.
5066         (emit_move_sequence): Likewise.
5067
5068 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5069
5070         * config/i386/sse.md (sseunpackmode): New mode attribute.
5071         (ssepackmode): Ditto.
5072         (vec_pack_trunc_<mode>): Macroize expander from
5073         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5074         (vec_unpacks_lo_<mode>): Macroize expander from
5075         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5076         (vec_unpacks_hi_<mode>): Macroize expander from
5077         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5078         (vec_unpacku_lo_<mode>): Macroize expander from
5079         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5080         (vec_unpacku_hi_<mode>): Macroize expander from
5081         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5082         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5083         ix86_expand_sse4_unpack.
5084         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5085
5086 2011-04-16  Jan Hubicka  <jh@suse.cz>
5087
5088         * cgraphbuild.c: Include ipa-inline.h.
5089         (reset_inline_failed): Use initialize_inline_failed.
5090         * cgraph.c: Include ipa-inline.h.
5091         (cgraph_create_node_1): Do not initialize estimated_growth.
5092         (initialize_inline_failed): More to ipa-inline-analysis.c
5093         (dump_cgraph_node): Do not dump inline flags.
5094         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5095         and disregard_inline_limits flags.
5096         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5097         time, size, estimated_growth.
5098         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5099         Update.
5100         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5101         DECL_DISREGARD_INLINE_LIMITS.
5102         (cgraph_analyze_function): Do not initialize
5103         node->local.disregard_inline_limits.
5104         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5105         inlinable, versionable and disregard_inline_limits.
5106         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5107         cgraph_check_inline_limits, cgraph_default_inline_p,
5108         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5109         add_new_edges_to_heap): Update.
5110         (cgraph_decide_inlining_of_small_function): Update; set
5111         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5112         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5113         cgraph_decide_inlining_incrementally): Update.
5114         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5115         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5116         time, size and estimated_growth parameters.
5117         (estimate_edge_growth): Update.
5118         (initialize_inline_failed): Declare.
5119         * ipa-split.c: Include ipa-inline.h
5120         (execute_split_functions): Update.
5121         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5122         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5123         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5124         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5125         estimated_growth to INT_MIN.
5126         (inline_node_duplication_hook): Likewise.
5127         (dump_inline_summary): Dump new fields.
5128         (compute_inline_parameters): Update.
5129         (estimate_edge_time, estimate_time_after_inlining,
5130         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5131         inline_write_summary):
5132         (initialize_inline_failed): Move here from cgraph.c.
5133         * tree-sra.c: Include ipa-inline.h.
5134         (ipa_sra_preliminary_function_checks): Update.
5135         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5136         ipa-inline.h.
5137
5138 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5139
5140         * config/i386/sse.md (V16): New mode iterator.
5141         (VI1, VI8): Ditto.
5142         (AVXMODEQI, AVXMODEDI): Remove.
5143         (sse2, sse3): New mode attribute.
5144         (mov<mode>): Use V16 mode iterator.
5145         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5146         (push<mode>1): Use V16 mode iterator.
5147         (movmisalign<mode>): Ditto.
5148         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5149         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5150         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5151         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5152         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5153         avx_movdqu<avxmodesuffix>.
5154         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5155         *avx_movdqu<avxmodesuffix>.
5156         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5157         avx_lddqu<avxmodesuffix>.
5158         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5159         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5160         avx_movnt<AVXMODEDI:mode>.
5161         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5162         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5163
5164 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5165
5166         PR target/48629
5167         * haifa-sched.c (prune_ready_list, schedule_block): Use
5168         sched_pressure_p rather than flag_sched_pressure.
5169
5170 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5171
5172         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5173         cgraph_get_node instead of cgraph_get_create_node.
5174
5175 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5176
5177         * cfgexpand.c (expand_debug_expr): Use
5178         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5179
5180 2011-04-15  Michael Matz  <matz@suse.de>
5181
5182         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5183         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5184         * function.c (gimplify_parameters): Ditto.
5185         * gimplify.c (gimplify_vla_decl): Ditto.
5186
5187         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5188         (gimple_call_set_alloca_for_var): New inline function.
5189         (gimple_call_alloca_for_var_p): Ditto.
5190         * gimple.c (gimple_build_call_from_tree): Remember
5191         CALL_ALLOCA_FOR_VAR_P state.
5192         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5193
5194         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5195         calls if they were for VLA objects.
5196
5197 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5198
5199         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5200         of ADR_EXPRs.
5201
5202 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5203
5204         PR middle-end/48601
5205         * tree-emutls.c (lower_emutls_function_body): Call
5206         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5207         result is non-NULL.
5208
5209 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5210
5211         * c-decl.c (detect_field_duplicates): Call
5212         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5213
5214 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5215
5216         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5217         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5218         * ipa-pure-const.c (check_stmt): Call it.
5219         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5220
5221 2011-04-15  Richard Guenther  <rguenther@suse.de>
5222
5223         PR tree-optimization/48290
5224         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5225         Properly decide inhibiting propagation based on the valueized
5226         operand.  Do loop-closed SSA form preserving here ...
5227         (init_copy_prop): ... not here.
5228
5229 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5230
5231         PR target/48612
5232         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5233         (*ieee_smax<mode>3): Likewise.
5234
5235 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5236
5237         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5238         Replace match_operand with match_dup for the third operand in
5239         these expanders.
5240
5241 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5242
5243         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5244         to track processing of conditionals.  Update all callers.
5245         (try_combine, simplify_if_then_else): Update.
5246
5247 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5248
5249         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5250         -fsched-pressure.
5251
5252 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5253
5254         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5255         instead of match_operand for operand 3.
5256
5257 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5258
5259         * recog.h (insn_operand_data): Add an "allows_mem" field.
5260         * genoutput.c (output_operand_data): Initialize it.
5261         * optabs.c (maybe_legitimize_operand_same_code): New function.
5262         (maybe_legitimize_operand): Use it when matching the original
5263         op->value.
5264
5265 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5266
5267         * gimplify.c: Fix issues in comments throughout.
5268         (voidify_wrapper_expr): Fix long line.
5269         (build_stack_save_restore): Likewise.
5270         (gimplify_loop_expr): Likewise.
5271         (gimplify_compound_lval): Likewise.
5272         (gimplify_init_ctor_eval): Likewise.
5273         (gimplify_modify_expr_rhs): Likewise.
5274         (omp_notice_threadprivate_variable): Likewise.
5275
5276 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5277
5278         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5279         original one if this is not a builtin function.
5280
5281 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5282
5283         PR target/48605
5284         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5285         offset it as needed based on top 2 bits in operands[3], change
5286         MEM mode to SFmode and mask those 2 bits away from operands[3].
5287
5288 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5289
5290         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5291         change from objc_declare_protocols() to objc_declare_protocol().
5292
5293 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5294
5295         * config/i386/sse.md (sse4_1): New mode attribute.
5296         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5297         avx_blend<ssemodesuffix><avxmodesuffix> and
5298         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5299         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5300         avx_blendv<ssemodesuffix><avxmodesuffix> and
5301         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5302         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5303         avx_dp<ssemodesuffix><avxmodesuffix> and
5304         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5305         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5306         (sse4_1_packusdw): Merge with *avx_packusdw.
5307         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5308         (sse4_1_pblendw): Merge with *avx_pblendw.
5309         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5310         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5311         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5312         VF mode iterator.
5313         (sse4_1_round<ssescalarmodesuffix>): Merge with
5314         *avx_round<ssescalarmodesuffix>.
5315         (aesenc): Merge with *avx_aesenc.
5316         (aesenclast): Merge with *avx_aesenclast.
5317         (aesdec): Merge with *avx_aesdec.
5318         (aesdeclast): Merge with *avx_aesdeclast.
5319         (pclmulqdq): Merge with *pclmulqdq.
5320         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5321         New predicate.
5322         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5323
5324 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5325
5326         PR middle-end/48608
5327         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5328         (align_local_variable): This.  Update DECL_ALIGN.
5329         (add_stack_var): Updated.
5330         (expand_one_stack_var): Likewise.
5331
5332 2011-04-14  Richard Guenther  <rguenther@suse.de>
5333
5334         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5335         Remove.
5336         (dse_initialize_block_local_data, dse_leave_block,
5337         record_voperand_set, get_stmt_uid): Likewise.
5338         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5339         (dse_optimize_stmt): Remove voperand set handling code.
5340         Simplify and improve to handle any kind of killing stmt.
5341         (dse_record_phi): Remove.
5342         (dse_enter_block): Simplify.
5343         (tree_ssa_dse): Likewise.
5344         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5345
5346 2011-04-14  Jan Hubicka  <jh@suse.cz>
5347
5348         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5349         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5350         (cgraph_local_info): Remove inline_summary.
5351         * ipa-cp.c: Include ipa-inline.h.
5352         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5353         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5354         accesor.
5355         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5356         (input_overwrite_node): Do not set inline summary.
5357         (input_node): Do not stream inline summary.
5358         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5359         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5360         growth; we do not have inline parameters computed for that anyway.
5361         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5362         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5363         (inline_summary_t): New type and VECtor.
5364         (debug_inline_summary, dump_inline_summaries): Declare.
5365         (inline_summary): Use VOCtor.
5366         (estimate_edge_growth): Kill hack computing call stmt size directly.
5367         * lto-section-in.c (lto_section_name): Add inline section.
5368         * ipa-inline-analysis.c: Include lto-streamer.h
5369         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5370         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5371         (inline_summary_vec): Define.
5372         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5373         dump_inline_summaries): New functions.
5374         (estimate_function_body_sizes): Properly compute size/time of outgoing
5375         calls.
5376         (compute_inline_parameters): Alloc inline_summary; do not compute
5377         size/time of incomming calls.
5378         (estimate_edge_time): Avoid missing time summary hack.
5379         (inline_read_summary): Read inline summary info.
5380         (inline_write_summary): Write inline summary info.
5381         (inline_free_summary): Free all hooks and inline summary vector.
5382         * lto-streamer.h: Add LTO_section_inline_summary section.
5383         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5384         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5385
5386 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5387
5388         * tree-vectorizer.h (vect_strided_store_supported): Add a
5389         HOST_WIDE_INT argument.
5390         (vect_strided_load_supported): Likewise.
5391         (vect_permute_store_chain): Return void.
5392         (vect_transform_strided_load): Likewise.
5393         (vect_permute_load_chain): Delete.
5394         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5395         count argument.  Check that the count is a power of two.
5396         (vect_strided_load_supported): Likewise.
5397         (vect_permute_store_chain): Return void.  Update after above changes.
5398         Assert that the access is supported.
5399         (vect_permute_load_chain): Likewise.
5400         (vect_transform_strided_load): Return void.
5401         * tree-vect-stmts.c (vectorizable_store): Update calls after
5402         above interface changes.
5403         (vectorizable_load): Likewise.
5404         (vect_analyze_stmt): Don't check for strided powers of two here.
5405
5406 2011-04-14  Richard Guenther  <rguenther@suse.de>
5407
5408         PR tree-optimization/48590
5409         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5410         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5411         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5412         BUILT_IN_STACK_SAVE.
5413         * tree-ssa-dce.c (propagate_necessity): Handle
5414         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5415
5416 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5417
5418         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5419         objc_declare_class.
5420
5421 2011-04-14  Richard Guenther  <rguenther@suse.de>
5422
5423         * tree.h (get_object_alignment_1): Declare.
5424         * builtins.c (get_object_alignment_1): Split out worker from ...
5425         (get_object_alignment): ... here.
5426         * fold-const.c (get_pointer_modulus_and_residue): Use
5427         get_object_alignment_1.
5428
5429 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5430
5431         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5432         type parameter.
5433         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5434         parameter.  Generalise code to handle arrays as well as vectors.
5435         (vect_setup_realignment): Update accordingly.
5436         * tree-vect-stmts.c (vectorizable_store): Likewise.
5437         (vectorizable_load): Likewise.
5438
5439 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5440
5441         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5442         within the per-copy loop.
5443
5444 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5445
5446         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5447         in the dump file.
5448
5449 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5450
5451         * doc/options.texi (Negative): Explicitly mention that the
5452         Negative chain must be circular.
5453
5454 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5455
5456         * function.h (block_chainon): Declare.
5457         * function.c (block_chainon): Define.
5458
5459 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5460             Eric Weddington  <eric.weddington@atmel.com>
5461             Georg-Johann Lay  <avr@gjlay.de>
5462
5463         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5464         New Includes
5465         (avr_init_builtins, avr_expand_builtin,
5466         avr_expand_delay_cycles, avr_expand_unop_builtin,
5467         avr_expand_binop_builtin ): New functions.
5468         (avr_builtin_id): New enum
5469         (struct avr_builtin_description): New struct
5470         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5471         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5472
5473         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5474         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5475         UNSPECV_DELAY_CYCLES): new enumeration values
5476         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5477         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5478         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5479         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5480         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5481         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5482         "fmulsu"): New insns
5483
5484         * config/avr/avr-c.c: fix line endings
5485         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5486         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5487         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5488         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5489         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5490
5491         * doc/extend.texi (AVR Built-in Functions): New node
5492         (Target Builtins): Add documentation of AVR
5493         built-in functions.
5494
5495 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5496
5497         PR target/44643
5498         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5499         alone. Error if non-const data has attribute progmem.
5500
5501 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5502
5503         * tree.h (struct tree_constructor): Include tree_typed instead of
5504         tree_common.
5505         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5506         TS_TYPED instead of TS_COMMON.
5507
5508 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5509
5510         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5511         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5512         (sse2_psadbw): Merge with *avx_psadbw.
5513         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5514         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5515         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5516         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5517         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5518         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5519         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5520         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5521         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5522         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5523         (ssse3_palignrti): Merge with *avx_palignrti.
5524
5525 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5526
5527         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5528         * tree-ssanames.c (fini_ssanames): VEC_free it.
5529         (make_ssa_name_fn): Update for VECness of free_ssanames.
5530         (release_ssa_name, release_dead_ssa_names): Likewise.
5531         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5532         tree_common.
5533         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5534         TS_TYPED instead of TS_COMMON.
5535
5536 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5537
5538         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5539         statistics_counter_event.
5540         * tree-ssa-copyrename.c (stats): Define.
5541         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5542         statistics_counter_event.
5543         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5544         (bswap_stats, widen_mul_stats): Define.
5545         (insert_reciprocals): Increment rdivs_inserted.
5546         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5547         rfuncs_inserted.  Add calls to statistics_counter_event.
5548         (execute_cse_sincos_1): Increment inserted.
5549         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5550         statistics_counter_event.
5551         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5552         of bswap_stats.  Add calls to statistics_counter_event.
5553         (convert_mult_to_widen): Increment widen_mults_inserted.
5554         (convert_plusminus_to_widen): Increment maccs_inserted.
5555         (convert_mult_to_fma): Increment fmas_inserted.
5556         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5557         calls to statistics_counter_event.
5558
5559 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5560
5561         PR rtl-optimization/48455
5562         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5563         `temp_costs->mem_cost'.
5564
5565 2011-04-13  Jan Hubicka  <jh@suse.cz>
5566
5567         * ipa-inline.h: New file.
5568         * ipa-inline-analysis.c: New file. Broken out of ...
5569         * ipa-inline.c: ... this file; update toplevel comment;
5570         include ipa-inline.h
5571         (inline_summary): Move to ipa-inline.h
5572         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5573         ipa-inline-analysis.c.
5574         (cgraph_estimate_time_after_inlining): Rename to
5575         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5576         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5577         to estimate_edge_growth.
5578         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5579         rename to estimate_size_after_inlining.
5580         (cgraph_mark_inline_edge): Update for new naming convention.
5581         (cgraph_check_inline_limits): Likewise.
5582         (cgraph_edge_badness): Likewise.
5583         (cgraph_decide_recursive_inlining): Likewise.
5584         (cgraph_decide_inlining_of_small_functions): Likewise.
5585         (cgraph_decide_inlining_incrementally): Likewise.
5586         (cgraph_estimate_growth): Rename to estimate_growth; move to
5587         ipa-inline-analysis.c.
5588         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5589         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5590         (compute_inline_parameters): Likewise.
5591         (compute_inline_parameters_for_current): Likewise.
5592         (pass_inline_parameters): Likewise.
5593         (inline_indirect_intraprocedural_analysis): Likewise.
5594         (analyze_function): Rename to inline_analyze_function; likewise.
5595         (add_new_function): Move to ipa-inline-analysis.c.
5596         (inline_generate_summary): Likewise.
5597         (inline_read_summary): Likewise.
5598         (inline_write_summary): Likewise.
5599         * Makefile.in (ipa-inline-analysis.c): New file.
5600
5601 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5602
5603         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5604         * configure: Regenerate.
5605
5606 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5607
5608         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5609         instead of tree_common.
5610         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5611         Likewise.
5612         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5613         TS_TYPED rather than TS_COMMON.
5614         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5615
5616 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5617
5618         PR target/45263
5619         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5620         r20 around calls of __tablejump_elpm__
5621
5622 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5623
5624         PR middle-end/48591
5625         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5626         NULL.
5627         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5628
5629 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5630
5631         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5632         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5633         (cfi_vec): New typedef.
5634         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5635         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5636         (cie_cfi_vec): New static variable.
5637         (cie_cfi_head): Delete.
5638         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5639         declaration changed. Use vector rather than list operations.
5640         (new_cfi): Don't initialize the dw_cfi_next field.
5641         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5642         rather than list operations.
5643         (lookup_cfa): Use vector rather than list operations.
5644         (output_cfis): New argument upto. Accept a cfi_vec rather than
5645         a dw_cfi_ref list head as argument. All callers changed.
5646         Iterate over the vector using upto as a maximum index.
5647         (output_all_cfis): New static function.
5648         (output_fde): Use vector rather than list operations. Use the
5649         new upto argument for output_cfis rather than manipulating a
5650         list.
5651         (dwarf2out_begin_prologue): Change initializations to match
5652         new struct members.
5653         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5654         from the vector length rather than searching for the end of a list.
5655         Use output_all_cfis.
5656         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5657
5658 2011-04-13  Nick Clifton  <nickc@redhat.com>
5659
5660         * config/rx/rx.md (movmemsi): Do not use this pattern when
5661         volatile pointers are involved.
5662
5663 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5664
5665         * config/i386/sse.md (pinsrbits): Remove.
5666         (sse2_packsswb): Merge with *avx_packsswb.
5667         (sse2_packssdw): Merge with *avx_packssdw.
5668         (sse2_packuswb): Merge with *avx_packuswb.
5669         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5670         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5671         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5672         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5673         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5674         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5675         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5676         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5677         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5678         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5679         (sse2_loadld): Merge with *avx_loadld.
5680         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5681         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5682         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5683         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5684         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5685
5686 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5687
5688         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5689         calling TREE_CHAIN.
5690         * print-tree.c (print_node): Likewise.
5691         * tree-inline.c (copy_tree_r): Likewise.
5692         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5693         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5694         instead of TS_COMMON.
5695         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5696         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5697         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5698         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5699         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5700         ...and these...
5701         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5702         * tree.h: ...here.
5703         (TREE_CHAIN): Check for a TS_COMMON structure.
5704         (TREE_TYPE): Check for a TS_TYPED structure.
5705
5706 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5707
5708         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5709         cgraph_get_create_node instead of cgraph_node.
5710
5711 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5712
5713         * c-parser.c (c_parser_initelt): Updated call to
5714         objc_build_message_expr.
5715         (c_parser_postfix_expression): Likewise.
5716
5717 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5718
5719         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5720         MASK_MS_BITFIELD_LAYOUT bit.
5721
5722 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5723
5724         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5725         assert it is always true.
5726         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5727         moves.
5728
5729 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5730
5731         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5732         compiling Objective-C to be more efficient.
5733
5734 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5735
5736         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5737         argv_copied.
5738
5739 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5740
5741         * recog.h, genoutput.c, optabs.c: Revert last patch.
5742
5743 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5744
5745         PR target/48090
5746         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5747
5748 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5749
5750         * recog.h (insn_operand_data): Add an "allows_mem" field.
5751         * genoutput.c (output_operand_data): Initialize it.
5752         * optabs.c (maybe_legitimize_operand_same_code): New function.
5753         (maybe_legitimize_operand): Use it when matching the original
5754         op->value.
5755
5756 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5757
5758         * genpreds.c (process_define_predicate): Move most processing
5759         to gensupport.c.  Continue to validate the expression.
5760         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5761         (process_define_predicate): Move processing to gensupport.c.
5762         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5763         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5764         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5765         argument.
5766         (valid_predicate_name_p): New function, split out from old
5767         genpreds.c:process_define_predicate.
5768         (process_define_predicate): New function, combining code from
5769         old genpreds.c and genrecog.c functions.
5770         (process_rtx): Call it for DEFINE_PREDICATE and
5771         DEFINE_SPECIAL_PREDICATE.
5772
5773 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5774
5775         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5776         size of a '%A' memory reference.
5777         (T_DREG, T_QREG): New neon_builtin_type_bits.
5778         (arm_init_neon_builtins): Assert that the load and store operands
5779         are neon_struct_operands.
5780         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5781         (NEON_ARG_MEMORY): New builtin_arg.
5782         (neon_dereference_pointer): New function.
5783         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5784         Handle NEON_ARG_MEMORY.
5785         (arm_expand_neon_builtin): Update after above interface changes.
5786         Use NEON_ARG_MEMORY for loads and stores.
5787         * config/arm/predicates.md (neon_struct_operand): New predicate.
5788         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5789         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5790         (V_four_elem): Tweak formatting.
5791         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5792         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5793         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5794         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5795         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5796         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5797         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5798         Use %A in the output template.
5799         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5800         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5801         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5802         the width of the memory access.  Remove post-increment.
5803         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5804
5805 2011-04-12  Nick Clifton  <nickc@redhat.com>
5806
5807         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5808         instruction for interrupt handlers if the target is the basic V850
5809         architecture.
5810         (expand_epilogue): Likewise.
5811
5812 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5813
5814         PR rtl-optimization/48549
5815         * combine.c (propagate_for_debug): Also stop after BB_END of
5816         this_basic_block.  Process LAST and just stop processing after it.
5817         (combine_instructions): If last_combined_insn has been deleted,
5818         set last_combined_insn to its PREV_INSN.
5819
5820 2011-04-12  Richard Guenther  <rguenther@suse.de>
5821
5822         PR tree-optimization/46076
5823         * gimple.h (struct gimple_statement_call): Add fntype field.
5824         (gimple_call_fntype): Adjust.
5825         (gimple_call_set_fntype): New function.
5826         * gimple.c (gimple_build_call_1): Set the call function type.
5827         * gimplify.c (gimplify_call_expr): Preserve the function
5828         type the frontend used for the call.
5829         (gimplify_modify_expr): Likewise.
5830         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5831         function type.
5832         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5833         function type.
5834         * tree-ssa.c (useless_type_conversion_p): Function pointer
5835         conversions are useless.
5836
5837 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5838
5839         * cgraph.h (cgraph_node): Remove function declaration.
5840         (cgraph_create_node): Declare.
5841         (cgraph_get_create_node): Likewise.
5842         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5843         Updated all callers.
5844         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5845         the decl does not already exist.  Call cgraph_get_create_node instead
5846         of cgraph_node.
5847         (cgraph_get_create_node): New function.
5848         (cgraph_same_body_alias): Update comment.
5849         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5850         assert it does not return NULL.
5851         (cgraph_update_edges_for_call_stmt): Likewise.
5852         (cgraph_clone_edge): Likewise.
5853         (cgraph_create_virtual_clone): Likewise.
5854         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5855         instead of cgraph_node.
5856         (cgraph_add_new_function): Call cgraph_create_node or
5857         cgraph_get_create_node instead of cgraph_node.
5858         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5859         instead of cgraph_node.
5860         (record_eh_tables): Likewise.
5861         (mark_address): Likewise.
5862         (mark_load): Likewise.
5863         (build_cgraph_edges): Call cgraph_get_create_node instead
5864         of cgraph_node.
5865         (rebuild_cgraph_edges): Likewise.
5866         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5867         instead of cgraph_node.
5868         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5869         cgraph_node.
5870         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5871         cgraph_create_node instead of cgraph_node.
5872         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5873         of cgraph_node.
5874         * lto-cgraph.c (input_node): Likewise.
5875         * lto-streamer-in.c (input_function): Likewise.
5876         * varasm.c (mark_decl_referenced): Likewise.
5877         (assemble_alias): Likewise.
5878
5879 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5880
5881         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5882         instead of cgraph_node and assert it does not return NULL.
5883         * lto-streamer-in.c (lto_read_body): Likewise.
5884         * omp-low.c (new_omp_context): Likewise.
5885         (create_task_copyfn): Likewise.
5886         * tree-emutls.c (lower_emutls_function_body): Likewise.
5887         * matrix-reorg.c (transform_allocation_sites): Likewise.
5888
5889 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5890
5891         PR c/48552
5892         * c-typeck.c (build_asm_expr): Error out on attempts to use
5893         void type outputs or inputs for constraints that allow reg or
5894         don't allow memory.
5895
5896 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5897             Richard Earnshaw  <rearnsha@arm.com>
5898
5899         PR target/48250
5900         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5901         to use sign-magnitude offsets. Reject unsupported unaligned
5902         cases. Add detailed description in comments.
5903         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5904         condition from TARGET_32BIT to TARGET_ARM.
5905
5906 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5907
5908         * tree.h (struct typed_tree): New.
5909         (struct tree_common): Include it instead of tree_base.
5910         (TREE_TYPE): Update for new location of type field.
5911         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5912         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5913         (union tree_node): Add typed field.
5914         * treestruct.def (TS_TYPED): New.
5915         * lto-streamer.c (check_handled_ts_structures): Handle it.
5916         * tree.c (MARK_TS_TYPED): New macro.
5917         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5918
5919 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5920
5921         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5922         (force_nonfallthru): Do not alter the loop nest if no basic block
5923         was created.
5924
5925 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5926
5927         * config/i386/sse.md (VI): New mode iterator.
5928         (SSEMODEI): Remove.
5929         (AVX256MODEI): Ditto.
5930         (AVXMODEF4P): Ditto.
5931         (avxvecpsmode): Ditto.
5932         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5933         (sse2_andnot<mode>3): New expander.
5934         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5935         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5936         (<any_logic:code><mode>3): Use VI mode iterator.
5937         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5938         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5939         (*andnottf3): Handle AVX three-operand constraints.
5940         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5941
5942 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5943             Robert Millan  <rmh@gnu.org>
5944
5945         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5946         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5947         GNU_USER_DYNAMIC_LINKER64): Define.
5948         (REG_NAME): Don't undefine.
5949         (MD_UNWIND_SUPPORT): Undefine.
5950         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5951         (REG_NAME): Don't undefine.
5952         (MD_UNWIND_SUPPORT): Undefine.
5953         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5954
5955 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5956
5957         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5958         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5959
5960 2011-04-11  Xinliang David Li  <davidxl@google.com>
5961
5962         * value-profile.c (check_ic_target): New function.
5963         (gimple_ic_transform): Sanity check indirect call target.
5964         * gimple-low.c (gimple_check_call_args): Interface change.
5965         (gimple_check_call_matching_types): New function.
5966         * tree-inline.c (tree_can_inline_p): Call new function.
5967
5968 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5969
5970         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5971         tree-pretty-print.h & realmpfr.h.
5972
5973 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5974
5975         PR middle-end/48464
5976         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5977         (setup_allocno_and_important_classes): Ditto.
5978
5979 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5982         GNU_USER_DYNAMIC_LINKER.
5983         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5984         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5985         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5986         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5987         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5988         GNU_USER_TARGET_OS_CPP_BUILTINS.
5989         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5990         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5991         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5992         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5993         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5994         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5995         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5996         GNU_USER_TARGET_OS_CPP_BUILTINS.
5997         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5998         GNU_USER_DYNAMIC_LINKER.
5999         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6000         GNU_USER_TARGET_OS_CPP_BUILTINS.
6001         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6002         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6003         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6004         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6005         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6006         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6007         GNU_USER_DYNAMIC_LINKER64): Remove.
6008         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6009         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6010         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6011         GNU_USER_DYNAMIC_LINKER.
6012         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6013         GNU_USER_TARGET_OS_CPP_BUILTINS.
6014         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6015         GNU_USER_TARGET_OS_CPP_BUILTINS.
6016         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6017         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6018         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6019         GNU_USER_TARGET_OS_CPP_BUILTINS.
6020         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6021         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6022         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6023         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6024         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6025         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6026         GNU_USER_DYNAMIC_LINKER.
6027         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6028         GNU_USER_TARGET_OS_CPP_BUILTINS.
6029         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6030         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6031         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6032         GNU_USER_DYNAMIC_LINKER.
6033         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6034         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6035         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6036         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6037         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6038         GNU_USER_DYNAMIC_LINKER.
6039         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6040         GNU_USER_DYNAMIC_LINKERN32.
6041         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6042         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6043         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6044         GNU_USER_DYNAMIC_LINKER32.
6045         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6046         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6047         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6048         GNU_USER_DYNAMIC_LINKER.
6049         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6050         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6051         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6052         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6053         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6054         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6055         GNU_USER_DYNAMIC_LINKER32.
6056         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6057         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6058         GNU_USER_DYNAMIC_LINKER.
6059         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6060         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6061         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6062         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6063         GNU_USER_DYNAMIC_LINKER64.
6064         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6065         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6066         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6067         GNU_USER_DYNAMIC_LINKER.
6068         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6069         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6070         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6071         GNU_USER_DYNAMIC_LINKER.
6072         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6073         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6074         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6075         GNU_USER_DYNAMIC_LINKER32.
6076         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6077         GNU_USER_DYNAMIC_LINKER64.
6078         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6079         GNU_USER_DYNAMIC_LINKER64.
6080         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6082         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6083         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6084         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6085
6086 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6087
6088         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6089         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6090         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6091         GNU_USER_DYNAMIC_LINKER.
6092         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6093         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6094         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6095         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6096         GNU_USER_DYNAMIC_LINKER64.
6097         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6098         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6099         GNU_USER_LINK_EMULATION.
6100         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6101         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6102         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6103         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6104         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6105         CPP_SPEC, CC1_SPEC): Remove.
6106         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6107         (GNU_USER_DYNAMIC_LINKER): Define.
6108         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6109         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6110         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6111         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6112         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6113         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6114         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6115         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6116         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6117         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6118         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6119         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6120         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6121         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6122         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6123         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6124         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6125         GNU_USER_DYNAMIC_LINKER.
6126         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6127         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6128         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6129         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6130         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6131         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6132         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6133         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6134         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6135         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6136
6137 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6138
6139         PR target/9601
6140         PR target/11772
6141         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6142         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6143         comment.
6144         (ix86_is_msabi_thiscall): Removed.
6145         (ix86_is_type_thiscall): Likewise.
6146         (ix86_get_callcvt): New function.
6147         (ix86_comp_type_attributes): Simplify check.
6148         (ix86_function_regparm): Use ix86_get_callcvt for calling
6149         convention attribute checks.
6150         (ix86_return_pops_args): Likewise.
6151         (ix86_static_chain): Likewise.
6152         (x86_this_parameter): Likewise.
6153         (x86_output_mi_thunk): Likewise.
6154         (ix86_function_type_abi): Optimize check for types without attributes.
6155         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6156         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6157         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6158         by flag-values.
6159         (IX86_BASE_CALLCVT): Helper macro.
6160         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6161         Use ix86_get_callcvt for calling convention attribute checks and avoid
6162         symbol-decoration for stdcall in TARGET_RTD case.
6163         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6164         Likewise.
6165         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6166         for declaration.
6167
6168 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6169
6170         * config/i386/sse.md (VI_128): New mode iterator.
6171         (VI12_128): Rename from SSEMODE12.
6172         (VI14_128): Rename from SSEMODE14.
6173         (VI124_128): New mode iterator.
6174         (VI24_128): Rename from SSEMODE248.
6175         (VI248_128): Rename from SSEMODE248.
6176         (SSEMODE124C8): Remove.
6177         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6178         (*sse2_<plusminus_insn><mode>3): Merge with
6179         *avx_<plusminus_insn><mode>3.
6180         (*mulv8hi3): Merge with *avx_mulv8hi3.
6181         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6182         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6183         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6184         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6185         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6186         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6187         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6188         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6189         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6190         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6191         (*<smaxmin:code>v8hi3): Ditto.
6192         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6193         (*<smaxmin:code>v16qi3): Ditto.
6194         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6195         (*sse2_eq<mode>3): Ditto.
6196         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6197         (*sse2_gt<mode>3): Ditto.
6198         (vcondv2di): Split out of vcond<mode>.
6199         (vconduv2di): Split out of vcondu<mode>.
6200
6201 2011-04-11  Richard Guenther  <rguenther@suse.de>
6202
6203         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6204         before calling tree_low_cst.
6205
6206 2011-04-11  Richard Guenther  <rguenther@suse.de>
6207
6208         * stor-layout.c (layout_type): Compute all array index size operations
6209         in the original type.
6210         (initialize_sizetypes): Add comment.
6211         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6212
6213 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6214
6215         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6216
6217 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6218
6219         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6220         of cgraph_node, handle NULL return value.
6221         (cgraph_global_info): Likewise.
6222         (cgraph_rtl_info): Likewise.
6223         * tree-inline.c (estimate_num_insns): Likewise.
6224         * gimplify.c (unshare_body): Likewise.
6225         (unvisit_body): Likewise.
6226         (gimplify_body): Likewise.
6227         * predict.c (optimize_function_for_size_p): Likewise.
6228         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6229         (call_may_clobber_ref_p_1): Likewise.
6230         * varasm.c (function_section_1): Likewise.
6231         (assemble_start_function): Likewise.
6232
6233 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6234
6235         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6236         of cgraph_node.
6237         * final.c (rest_of_clean_state): Likewise.
6238         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6239         * passes.c (pass_init_dump_file): Likewise.
6240         (execute_all_ipa_transforms): Likewise.
6241         (function_called_by_processed_nodes_p): Likewise.
6242         * predict.c (maybe_hot_frequency_p): Likewise.
6243         (probably_never_executed_bb_p): Likewise.
6244         (compute_function_frequency): Likewise.
6245         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6246         (unnest_nesting_tree_1): Likewise.
6247         (lower_nested_functions): Likewise.
6248         * tree-optimize.c (execute_fixup_cfg): Likewise.
6249         (tree_rest_of_compilation): Likewise.
6250         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6251         * tree-sra.c (ipa_early_sra): Likewise.
6252         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6253         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6254         * ipa.c (record_cdtor_fn): Likewise.
6255         * ipa-inline.c (cgraph_early_inlining): Likewise.
6256         (compute_inline_parameters_for_current): Likewise.
6257         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6258         * ipa-pure-const.c (local_pure_const): Likewise.
6259         * ipa-split.c (split_function): Likewise.
6260         (execute_split_functions): Likewise.
6261         * cgraphbuild.c (build_cgraph_edges): Likewise.
6262         (rebuild_cgraph_edges): Likewise.
6263         (cgraph_rebuild_references): Likewise.
6264         (remove_cgraph_callee_edges): Likewise.
6265         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6266         (verify_cgraph_node): Likewise.
6267         (cgraph_analyze_functions): Likewise.
6268         (cgraph_preserve_function_body_p): Likewise.
6269         (save_inline_function_body): Likewise.
6270         (save_inline_function_body): Likewise.
6271         * tree-inline.c (copy_bb): Likewise.
6272         (optimize_inline_calls): Likewise.
6273
6274 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6275
6276         PR tree-optimization/48195
6277         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6278         ipa_check_create_edge_args.
6279         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6280         ipa_check_create_edge_args.
6281         * ipa-inline.c (inline_generate_summary): Do not call
6282         ipa_check_create_node_params and ipa_check_create_edge_args.
6283         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6284         ipa_check_create_edge_args.
6285
6286 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6287
6288         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6289         instead of loop.
6290         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6291         * function.c (record_hard_reg_sets): Likewise.
6292         * ira.c (compute_regs_asm_clobbered): Likewise.
6293         * sched-deps.c (sched_analyze_1): Likewise.
6294         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6295
6296 2011-04-09  Xinliang David Li  <davidxl@google.com>
6297
6298         PR tree-optimization/PR48484
6299         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6300         has_valid_pred lazily
6301
6302 2011-04-09  Duncan Sands  <baldrick@free.fr>
6303
6304         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6305
6306 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6307
6308         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6309         cost of I0 to zero at the end, if any.
6310
6311 2011-04-08  Xinliang David Li  <davidxl@google.com>
6312
6313         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6314         to insane profile data.
6315
6316 2011-04-08  Xinliang David Li  <davidxl@google.com>
6317
6318         * ipa-cp.c (ipcp_update_profiling): Correct
6319          negative scale factor due to insane profile data.
6320
6321 2011-04-08  Xinliang David Li  <davidxl@google.com>
6322
6323         * final.c (dump_basic_block_info): New function.
6324         (final): Dump basic block.
6325         (final_scan_insn): Remove old dump.
6326
6327 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6328
6329         PR target/47829
6330         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6331         crtbegin/crtend.
6332
6333 2011-04-08  Michael Matz  <matz@suse.de>
6334
6335         PR middle-end/48389
6336         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6337         functions.
6338         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6339         * rtl.h (rebuild_jump_labels_chain): Declare.
6340         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6341         insns inserted on edges.
6342
6343 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6344
6345         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6346         * config/arm/arm-arches.def: New.
6347         * config/arm/arm-opts.h: New.
6348         * config/arm/genopt.sh: New.
6349         * config/arm/arm-tables.opt: New (generated).
6350         * config/arm/arm.c (arm_handle_option, arm_target_help,
6351         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6352         (all_architectures): Get most table contents from arm-arches.def.
6353         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6354         arm_selected_tune here.
6355         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6356         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6357         (march=, mcpu=, mtune=): Use Enum and Var.
6358         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6359         (arm.o): Update dependencies.
6360
6361 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6362
6363         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6364         of header_file.
6365         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6366         (write_typed_alloc_defns): Likewise.
6367         (main): Calls write_typed_alloc_defns with output_header.
6368
6369 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6370
6371         PR inline-asm/48435
6372         * ira-color.c (setup_profitable_hard_regs): Add comments.
6373         Don't take prohibited hard regs into account.
6374         (setup_conflict_profitable_regs): Rename to
6375         get_conflict_profitable_regs.
6376         (check_hard_reg_p): Check prohibited hard regs.
6377
6378 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6379
6380         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6381         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6382         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6383
6384 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6385
6386         PR target/48366
6387         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6388         move from floating point to shift amount register.
6389         (emit_move_sequence): Remove secondary reload support for floating
6390         point to shift amount amount register copies.
6391         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6392         amount register copies.
6393         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6394         register, return false if mode isn't a scalar integer mode.
6395         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6396
6397 2011-04-08  Richard Guenther  <rguenther@suse.de>
6398
6399         * gimple.c (gimple_call_flags): Remove kludge.
6400
6401 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6402
6403         * sel-sched.c (sel_region_init): Move call to
6404         sel_setup_region_sched_flags after setup_current_loop_nest.
6405
6406 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6407
6408         PR rtl-optimization/48272
6409         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6410         init_insn_reg_pressure_info.  Adjust a caller.
6411         * sched-int.h (init_insn_reg_pressure_info): Declare.
6412         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6413         when sched-pressure is enabled.
6414
6415 2011-04-08  Richard Guenther  <rguenther@suse.de>
6416
6417         * gimple.c (gimple_set_modified): Do not queue calls to
6418         MODIFIED_NORETURN_CALLS here ...
6419         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6420
6421 2011-04-08  Richard Guenther  <rguenther@suse.de>
6422
6423         PR lto/48467
6424         * toplev.c (lang_dependent_init): Do not open asm_out_file
6425         in WPA mode, nor perform debug machinery initialization.
6426         (finalize): Do not unlink asm_out_file in WPA mode.
6427
6428 2011-04-08  Richard Guenther  <rguenther@suse.de>
6429
6430         * gimple.h (gimple_call_fntype): New function.
6431         (gimple_call_return_type): Use it.
6432         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6433         * gimple-low.c (gimple_check_call_args): Likewise.
6434         * gimple.c (gimple_call_flags): Likewise.
6435         (gimple_call_arg_flags): Likewise.
6436         (gimple_call_return_flags): Likewise.
6437         * tree-cfg.c (verify_gimple_call): Likewise.
6438         (do_warn_unused_result): Likewise.
6439         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6440         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6441
6442 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6443
6444         PR rtl-optimization/48235
6445         * sel-sched.c (code_motion_process_successors): Recompute the last
6446         insn in basic block if control flow changed.
6447         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6448         Update condition for ilist_remove.
6449
6450 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6451
6452         PR rtl-optimization/48302
6453         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6454         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6455         it to record added preheader blocks.
6456         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6457         on to sel_add_loop_preheaders.
6458         (sel_region_init): Move call to setup_current_loop_nest after
6459         sel_init_bbs.
6460
6461 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6462
6463         PR target/48273
6464         * cfgloop.h (loop_has_exit_edges): New helper.
6465         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6466         non-clonable.
6467         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6468         that have no exit edges.
6469
6470 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6471
6472         PR rtl-optimization/48442
6473         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6474         all callers.  Adjust assert.
6475
6476 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6477
6478         PR tree-optimization/48377
6479         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6480         is_packed to true even for types with smaller TYPE_ALIGN than
6481         TYPE_SIZE.
6482
6483 2011-04-08  Richard Guenther  <rguenther@suse.de>
6484
6485         PR bootstrap/48513
6486         * doc/tm.texi: Re-generate.
6487
6488 2011-04-08  Wei Guozhi  <carrot@google.com>
6489
6490         PR target/47855
6491         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6492         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6493         * config/arm/arm.md (*push_multi): Change the length computation to
6494         call a C function.
6495
6496 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6497
6498         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6499         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6500         * doc/tm.texi: Regenerate.
6501         * system.h (ASM_OUTPUT_BSS): Poison.
6502         * varasm.c (asm_output_bss): Remove function.
6503         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6504
6505         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6506         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6507         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6508         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6509         Likewise.
6510         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6511         Likewise.
6512         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6513         Likewise.
6514         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6515
6516 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6517
6518         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6519         EnumValue lines.
6520
6521 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6522
6523         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6524         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6525         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6526         OPT_mcpu32.
6527         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6528         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6529         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6530         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6531         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6532         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6533         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6534         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6535         options.  Don't map other m68k options manually.  Don't handle
6536         old-style options as canonical.
6537         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6538         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6539
6540 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6541
6542         * basic-block.h (force_nonfallthru): Move to...
6543         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6544         (force_nonfallthru): ...here.
6545         * cfghooks.c (force_nonfallthru): New function.
6546         * cfgrtl.c (force_nonfallthru): Rename into...
6547         (rtl_force_nonfallthru): ...this.
6548         (commit_one_edge_insertion): Do not set AUX field.
6549         (commit_edge_insertions): Do not discover new basic blocks.
6550         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6551         (cfg_layout_rtl_cfg_hooks): Likewise.
6552         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6553         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6554         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6555
6556 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6557
6558         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6559         Remove macros.
6560
6561 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6562
6563         * config/i386/sse.md: Update copyright year.
6564         (avxcvtvecmode): Remove.
6565         (sse_movhlps): Merge with *avx_movhlps.
6566         (sse_movlhps): Merge with *avx_movlhps.
6567         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6568         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6569         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6570         (sse_loadhps): Merge with *avx_loadhps.
6571         (sse_storelps): Merge with *avx_storelps.
6572         (sse_loadlps): Merge with *avx_loadlps.
6573         (sse_movss): Merge with *avx_movss.
6574         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6575         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6576         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6577         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6578         (vec_set<mode>_0): Ditto.
6579         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6580         (sse4_1_insertps): Merge with *avx_insertps.
6581         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6582         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6583         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6584         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6585         (sse2_storehpd): Merge with *avx_storehpd.
6586         (sse2_loadhpd): Merge with *avx_loadhpd.
6587         (sse2_loadlpd): Merge with *avx_loadlpd.
6588         (sse2_movsd): Merge with *avx_movsd.
6589         (*vec_concatv2df): Merge with *vec_concatv2df.
6590
6591 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6592
6593         PR debug/48343
6594         * combine.c (combine_instructions): Add last_combined_insn,
6595         update it if insn is after it, pass it to all try_combine calls.
6596         (try_combine): Add last_combined_insn parameter, pass it instead of
6597         i3 to propagate_for_debug.
6598
6599 2011-04-07  Nick Clifton  <nickc@redhat.com>
6600
6601         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6602         to handle MDR <-> data register transfers.
6603         (movhi_internal): Likewise.
6604
6605 2011-04-07  Alan Modra  <amodra@gmail.com>
6606
6607         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6608         previous stack info.
6609
6610 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6611
6612         PR target/43920
6613         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6614         flow_find_cross_jump.  Swap variables to implement backward replacement.
6615         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6616
6617 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6618
6619         PR target/43920
6620         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6621         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6622         and bb2.
6623         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6624         src1 or src2.  Redirect edges to the last basic block.  Update
6625         frequency and count on multiple basic blocks in case of fallthru.
6626
6627 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6628
6629         PR target/43920
6630         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6631         function.
6632         (old_insns_match_p): Change return type.  Replace return false/true
6633         with return dir_none/dir_both.  Use can_replace_by.
6634         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6635         direction from dir_p.  Register replacement direction in dir, last_dir
6636         and afterlast_dir.  Handle new return type of old_insns_match_p using
6637         merge_dir.  Return replacement direction in dir_p.
6638         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6639         return type of old_insns_match_p.
6640         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6641         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6642         flow_find_cross_jump.
6643         * basic-block.h (enum replace_direction): New type.
6644         (flow_find_cross_jump): Add parameter to declaration.
6645
6646 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6647
6648         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6649         (AVXMODEDCVTPS2DQ): Ditto.
6650         (VEC_FLOAT_MODE): Ditto.
6651         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6652         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6653         (<any_logic:code><mode>3): Use VF mode iterator.
6654         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6655         Use VF mode iterator.
6656         (copysign<mode>3): Use VF mode iterator.
6657         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6658         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6659         (*<any_logic:code><MODEF:mode>3): Merge with
6660         *avx_<any_logic:code><MODEF:mode>3.
6661         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6662         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6663         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6664         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6665         (sse2_cvtdq2ps): Use %v modifier.
6666         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6667         (avx_cvtps2dq<avxmodesuffix>): Remove.
6668         (sse2_cvtps2dq): Use %v modifier.
6669         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6670         (avx_cvttps2dq<avxmodesuffix>): Remove.
6671         (sse2_cvttps2dq): Use %v modifier.
6672         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6673         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6674         (sse2_cvtsd2siq): Fix insn template.
6675         (sse2_cvtsd2siq_2): Ditto.
6676         (sse2_cvttsd2siq): Ditto.
6677         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6678         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6679
6680 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6681
6682         * gcov-io.c: Use GCC Runtime Library Exception.
6683
6684 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6685
6686         PR debug/48466
6687         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6688         as base_reg whatever register reg has been eliminated to, instead
6689         of hardcoding STACK_POINTER_REGNUM.
6690
6691 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6692
6693         * doc/tm.texi.in: Document C target hooks as separate from general
6694         target hooks.
6695         * doc/tm.texi: Regenerate.
6696         * genhooks.c (struct hook_desc): Add docname field.
6697         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6698         docname field.
6699         (hook_array): Include c-target.def.
6700         (emit_documentation): Use docname field in output.
6701         (emit_init_macros): Take docname argument.  Only emit definitions
6702         for hooks matching docname.
6703         (main): Expect additional arguments in all cases.  Pass argument
6704         to emit_init_macros.
6705         * target.def: Move initial macro definitions and comments to
6706         target-hooks-macros.h.
6707         (gcc_targetcm): Move to c-family/c-target.def.
6708         * target.h (targetcm): Move declaration to c-family/c-target.h.
6709         * targhooks.c (default_handle_c_option): Move to
6710         c-family/c-opts.c.
6711         * targhooks.h (default_handle_c_option): Move declaration to
6712         c-family/c-common.h.
6713         * target-hooks-macros.h: New file.
6714         * config.gcc (target_has_targetcm): Define and use to add to
6715         c_target_objs and cxx_target_objs.
6716         * config/default-c.c: New file.
6717         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6718         of target.h and target-def.h.
6719         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6720         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6721         darwin_check_cfstring_format_arg): Make static.
6722         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6723         TARGET_STRING_OBJECT_REF_TYPE_P,
6724         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6725         * config/darwin-protos.h (darwin_objc_construct_string,
6726         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6727         declare.
6728         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6729         TARGET_STRING_OBJECT_REF_TYPE_P,
6730         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6731         * config/t-darwin (darwin-c.o): Update dependencies.
6732         * system.h (TARGET_HAS_TARGETCM): Poison.
6733         * Makefile.in (TARGET_H): Update.
6734         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6735         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6736         (default-c.o): New target.
6737         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6738         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6739         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6740         c-target.def.
6741         (build/genhooks.o): Update dependencies.
6742
6743 2011-04-06  Richard Guenther  <rguenther@suse.de>
6744
6745         * ipa-inline.c (enum inlining_mode): Remove.
6746         (cgraph_flatten): Use some other token.
6747         (cgraph_edge_early_inlinable_p): New function, split out from ...
6748         (cgraph_perform_always_inlining): New function, split out from ...
6749         (cgraph_decide_inlining_incrementally): ... here.
6750         (cgraph_mark_inline_edge): Adjust.
6751         (cgraph_early_inlining): Re-structure.
6752         (pass_early_inline): Require SSA form.
6753
6754 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6755             Julian Brown  <julian@codesourcery.com>
6756             Mark Shinwell  <shinwell@codesourcery.com>
6757
6758         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6759         LO_REGS only for Thumb-1.
6760         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6761         be used in short instructions when optimising for size on Thumb-2.
6762
6763 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6764
6765         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6766         associated with user returns to be preserved.
6767
6768 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6769
6770         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6771         symbol_queue_size, DBXOUT_DECR_NESTING,
6772         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6773         if XCOFF_DEBUGGING_INFO.
6774
6775 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6776
6777         * config/i386/i386.md (attribute isa): New.
6778         (attribute enabled): New.
6779         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6780         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6781         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6782         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6783         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6784         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6785         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6786         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6787
6788         * config/i386/sse.md (VF): New mode iterator.
6789         (VF1): Ditto.
6790         (VF2): Ditto.
6791         (VF_128): Ditto.
6792         (SSEMODEF4): Remove.
6793         (attribute sse): Handle V8SF and V4DF modes.
6794         (<absneg:code><mode>2): Use VF mode iterator.
6795         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6796         mode iterator.
6797         (<plusminus_insn><mode>3): Use VF mode iterator.
6798         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6799         Use VF mode iterator.
6800         (<sse>_vm<plusminus_insn><mode>3): Merge with
6801         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6802         (mul<mode>3): Use VF mode iterator.
6803         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6804         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6805         mode iterator.
6806         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6807         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6808         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6809         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6810         mode iterator.
6811         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6812         Use VF1 mode iterator.
6813         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6814         (sqrt<VF2:mode>2): New expander.
6815         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6816         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6817         and sqrtv2df2.  Use VF mode iterator.
6818         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6819         mode iterator.
6820         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6821         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6822         Use VF1 mode iterator.
6823         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6824         (<smaxmin:code><mode>3): Use VF mode iterator.
6825         (*<smaxmin:code><mode>3_finite): Merge with
6826         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6827         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6828         (<sse>_vm<smaxmin:code><mode>2): Merge with
6829         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6830         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6831         mode iterator.
6832         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6833         mode iterator.
6834         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6835         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6836         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6837         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6838         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6839         VF mode iterator.
6840         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6841         Use VF_128 mode iterator.
6842         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6843         mode iterator.
6844         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6845         VF_128 mode iterator.
6846         (vcond<mode>): Use VF mode iterator.
6847         * config/i386/predicates.md (sse_comparison_operator): Merge with
6848         avx_comparison_float_operator.  Do not declare as special_predicate.
6849         * config/i386/i386.c (struct builtin_description): Update for renamed
6850         compare patterns.
6851         (ix86_expand_args_builtin): Ditto.
6852         (ix86_expand_sse_compare_mask): Ditto.
6853
6854 2011-04-06  Richard Guenther  <rguenther@suse.de>
6855
6856         * tree-inline.c (estimate_num_insns): For calls simply account
6857         for all passed arguments and a used return value.
6858
6859 2011-04-06  Richard Guenther  <rguenther@suse.de>
6860
6861         PR tree-optimization/47663
6862         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6863         call_stmt_time fields.
6864         (cgraph_edge_inlinable_p): Declare.
6865         (cgraph_edge_recursive_p): New inline function.
6866         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6867         (cgraph_clone_edge): Copy it.
6868         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6869         Account for call stmt time.
6870         (cgraph_estimate_time_after_inlining): Take edge argument.
6871         (cgraph_estimate_edge_growth): Account call stmt size.
6872         (cgraph_estimate_size_after_inlining): Take edge argument.
6873         (cgraph_mark_inline_edge): Adjust.
6874         (cgraph_check_inline_limits): Likewise.
6875         (cgraph_recursive_inlining_p): Remove.
6876         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6877         (cgraph_decide_recursive_inlining): Take edge argument and
6878         adjust.
6879         (cgraph_decide_inlining_of_small_functions): Do not avoid
6880         diags for recursive inlining here.
6881         (cgraph_flatten): Adjust.
6882         (cgraph_decide_inlining_incrementally): Likewise.
6883         (estimate_function_body_sizes): Remove call cost handling.
6884         (compute_inline_parameters): Initialize caller edge call costs.
6885         (cgraph_estimate_edge_growth): New function.
6886         (cgraph_estimate_growth): Use it.
6887         (cgraph_edge_badness): Likewise.
6888         (cgraph_check_inline_limits): Take an edge argument.
6889         (cgraph_decide_inlining_of_small_functions): Adjust.
6890         (cgraph_decide_inlining): Likewise.
6891         * tree-inline.c (estimate_num_insns): Only account for call
6892         return value if it is used.
6893         (expand_call_inline): Avoid diagnostics on recursive inline
6894         functions here.
6895         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6896         (input_edge): Input edge call costs.
6897
6898 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6899
6900         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6901
6902 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6903
6904         * doc/invoke.texi (Spec Files): Fix typo.
6905
6906 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6907
6908         * profile.c (branch_prob): Move declaration of local variable.  Remove
6909         obsolete ??? comment.  Expand the location explicitly instead of using
6910         the LOCATION_FILE and LOCATION_LINE macros.
6911
6912 2011-04-06  Wei Guozhi  <carrot@google.com>
6913
6914         PR target/47855
6915         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6916         (arm_cond_branch): Likewise.
6917         (arm_cond_branch_reversed): Likewise.
6918         (arm_jump): Likewise.
6919         (push_multi): Likewise.
6920         * config/arm/constraints.md (Py): New constraint.
6921
6922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6923
6924         PR bootstrap/48471
6925         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6926         Move these...
6927         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6928         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6929         #ifdef DBX_DEBUGGING_INFO.
6930
6931 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6932
6933         PR bootstrap/48403
6934         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6935         if old and new states differ.
6936
6937 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6940         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6941         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6942         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6943         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6944         mcfv4e): Use Alias.
6945         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6946         ColdFire options to -mcpu= options.
6947
6948 2011-04-05  Jeff Law  <law@redhat.com>
6949
6950         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6951         check if BB is a successor of LOOP->header and return
6952         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6953
6954 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6955
6956         * cprop.c (struct reg_use): Remove.
6957         (reg_use_table): Make an array of RTX.
6958         (find_used_regs, constprop_register, local_cprop_pass,
6959         bypass_block): Simplify users of reg_use_table.
6960         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6961         on one of the uses found by find_used_regs.
6962
6963 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6964
6965         PR bootstrap/48469
6966         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6967         declaration.
6968
6969 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6970
6971         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6972         as an rtx.
6973         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6974
6975 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6976
6977         PR middle-end/48441
6978         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6979
6980 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6981
6982         * combine.c: Include obstack.h.
6983         (struct insn_link): Define.
6984         (uid_log_links): Adjust type.
6985         (FOR_EACH_LOG_LINK): New macro.
6986         (insn_link_obstack): Declare.
6987         (alloc_insn_link): Define.
6988         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6989         type of link variables.
6990         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6991         (try_combine, record_promoted_values, distribute_notes): Likewise.
6992         (distribute_links): Likewise.  Tweak prototype.
6993         (clear_log_links): Delete.
6994         (adjust_for_new_dest): Call alloc_insn_link.
6995         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6996
6997 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6998
6999         * gcse.c (modify_mem_list): Convert to an array of VECs.
7000         (canon_modify_mem_list, compute_transp): Tweak formatting.
7001         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7002         (load_killed_in_block_p): Likewise.
7003         (record_last_mem_set_info): Likewise.
7004         (clear_modify_mem_tables): Likewise.
7005
7006 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7007
7008         PR middle-end/48461
7009         * function.c (emit_use_return_register_into_block): Only define if
7010         HAVE_return.
7011
7012 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7013
7014         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7015
7016 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7017
7018         * config/rx/rx-opts.h: New.
7019         * config/rx/rx.c (rx_cpu_type): Remove.
7020         (rx_handle_option): Don't assert that global structures are in
7021         use.  Access variables via opts pointer.  Defer most handling of
7022         OPT_mint_register_.  Use error_at.
7023         (rx_option_override): Handle deferred OPT_mint_register_ here.
7024         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7025         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7026         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7027         (rx_cpu_types): New Enum and EnumValue entries.
7028         (mint-register=): Use Defer and use Var accordingly.
7029
7030 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7031
7032         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7033         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7034         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7035         Move these...
7036         (debug_free_queue, debug_nesting, symbol_queue_index):
7037         ...and these...
7038         * dbxout.c: ...to here.  Make static.
7039
7040 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7041
7042         * gcse.c (modify_pair): Define.  Define a VEC of it.
7043         (canon_modify_mem_list): Convert to an array of VECs.
7044         (free_insn_expr_list_list): Delete.
7045         (clear_modify_mem_tables): Call VEC_free instead.
7046         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7047         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7048         (canon_list_insert, compute_transp): Likewise.
7049
7050 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7051
7052         PR target/43920
7053         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7054         for size.
7055
7056 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7057
7058         PR target/43920
7059         * function.c (emit_use_return_register_into_block): New function.
7060         (thread_prologue_and_epilogue_insns): Use
7061         emit_use_return_register_into_block.
7062
7063 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7064
7065         PR target/43920
7066         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7067         insn.
7068
7069 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7070
7071         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7072
7073 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7074
7075         * config/arm/arm.md (define_constants for unspec): Replace with
7076         define_c_enum.
7077         (define_constants for unspecv): Replace with define_c_enum.
7078         * config/arm/neon.md (define_constants for unspec): Replace with
7079         define_c_enum.
7080
7081 2011-04-04  Richard Henderson  <rth@redhat.com>
7082
7083         PR bootstrap/48400
7084         * dwarf2out.c (output_line_info): Always emit line info from
7085         at least one section.
7086         (dwarf2out_init): Create text_section_line_info here ...
7087         (set_cur_line_info_table): ... not here.
7088
7089 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7090
7091         PR target/48380
7092         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7093         not called.
7094
7095         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7096
7097 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7098
7099         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7100         (expr_equiv_p): Remove.
7101         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7102         (hash_scan_set): Update call to insert_set_in_table.
7103         (dump_hash_table): Dump <dest, src> pair.
7104         (lookup_set): Simplify.  Lookup <dest, src> pair.
7105         (compute_transp): Remove, fold heavily simplified code into...
7106         (compute_local_properties): ...here.  Expect COMP and TRANSP
7107         unconditionally.
7108         (find_avail_set): Take set directly from struct expr.
7109         (find_bypass-set): Likewise.
7110         (bypass_block): Likewise.
7111         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7112
7113         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7114         checks on form of COND from find_implicit_sets to here.
7115         (find_implicit_sets): Cleanup control flow. Split critical edges
7116         if it exposes implicit sets.  Allocate/resize implicit_sets as
7117         necessary.
7118         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7119         changed something.  Run df_analyze after find_implicit_sets if any
7120         edges were split.  Do not allocate implicit_sets here.
7121
7122         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7123         (gcse_obstack): Renamed to cprop_obstack.
7124         (GNEW, GNEWVEC, GNEWVAR): Remove.
7125         (gmalloc): Remove.
7126         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7127         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7128         (gcse_alloc): Likewise, and rename to cprop_alloc.
7129         (alloc_gcse_men, free_gcse_mem): Remove.
7130         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7131         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7132         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7133
7134         * cprop.c (oprs_not_set_p): Remove.
7135         (mark_set, mark_clobber): Remove.
7136         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7137         (reg_not_set_p): New function.
7138         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7139         (cprop_insn): Likewise.
7140         (cprop_jump): Use FOR_EACH_EDGE.
7141
7142 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7143
7144         PR bootstrap/48403
7145         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7146         (rank_for_schedule): Use scheduled_insns vector instead of
7147         last_scheduled_insn.
7148         (ok_for_early_queue_removal): Likewise.
7149         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7150         we have a dbg_cnt.
7151         (choose_ready): Likewise.
7152         (commit_schedule): Use VEC_iterate.
7153         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7154         a dbg_cnt, use it and ensure the first insn is in the ready list.
7155         (haifa_sched_init): Allocate scheduled_insns.
7156         (sched_extend_ready_list): Don't allocate it; reserve space.
7157         (haifa_sched_finish): Free it.
7158
7159 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7160
7161         * optc-gen.awk: Always remove type from Variable entry before
7162         recording in var_seen.
7163
7164 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7165
7166         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7167         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7168         call to tidy_fallthru_edges.
7169
7170 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7171
7172         * doc/options.texi (ToLower): Document.
7173         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7174         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7175         * opts.h (cl_option): Add cl_tolower field.
7176         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7177         arguments with lowercase strings.
7178         * config/rx/rx.opt (mcpu=): Add ToLower.
7179         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7180         argument.
7181
7182 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7183
7184         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7185
7186 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7187
7188         * config/vax/vax.c: Include reload.h.
7189
7190 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7191
7192         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7193         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7194         (sparc_preferred_reload_class): New function.
7195
7196 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7197
7198         PR debug/48401
7199         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7200         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7201
7202 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7203
7204         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7205         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7206
7207 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7208
7209         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7210         (ASM_OUTPUT_ALIGNED_BSS): Define.
7211
7212 2011-04-03  Michael Matz  <matz@suse.de>
7213
7214         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7215         and next_slot members.
7216         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7217         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7218         (lto_streamer_cache_append): Declare.
7219         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7220         unsigned index, remove offset parameter, ensure that we append
7221         or update existing entries.
7222         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7223         parameter, update next_slot for append.
7224         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7225         parameter.
7226         (lto_streamer_cache_insert_at): Likewise.
7227         (lto_streamer_cache_append): New function.
7228         (lto_streamer_cache_lookup): Use unsigned index.
7229         (lto_streamer_cache_get): Likewise.
7230         (lto_record_common_node): Don't test tree_node_can_be_shared.
7231         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7232         (lto_streamer_cache_delete): Don't free offsets member.
7233         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7234         (lto_output_string_with_length): Use lto_output_data_stream.
7235         (lto_output_tree_header): Remove ix parameter, don't write it.
7236         (lto_output_builtin_tree): Likewise.
7237         (lto_write_tree): Adjust callers to above, don't track and write
7238         offset, write unsigned index.
7239         (output_unreferenced_globals): Don't emit all global vars.
7240         (write_global_references): Use unsigned indices.
7241         (lto_output_decl_state_refs): Likewise.
7242         (write_symbol): Likewise.
7243         * lto-streamer-in.c (lto_input_chain): Move earlier.
7244         (input_function): Use unsigned index.
7245         (input_alias_pairs): Don't read and then ignore all global vars.
7246         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7247         don't pass it back, use lto_streamer_cache_append.
7248         (lto_register_var_decl_in_symtab): Use unsigned index.
7249         (lto_register_function_decl_in_symtab): Likewise.
7250         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7251         index.
7252         (lto_get_builtin_tree): Don't read index, use
7253         lto_streamer_cache_append.
7254         (lto_read_tree): Adjust call to lto_materialize_tree.
7255
7256         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7257         don't use function calls in arguments to MIN.
7258
7259         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7260         twice.
7261
7262         * gimple.c (gimple_type_leader_entry): Mark deletable.
7263
7264 2011-04-03  Alan Modra  <amodra@gmail.com>
7265
7266         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7267
7268 2011-04-03  Michael Matz  <matz@suse.de>
7269
7270         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7271         an integer.
7272         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7273
7274 2011-04-03  Michael Matz  <matz@suse.de>
7275
7276         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7277         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7278         without function context.
7279         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7280         current_function_decl and cfun.
7281
7282 2011-04-03  Michael Matz  <matz@suse.de>
7283
7284         * tree.c (decl_init_priority_insert): Don't create entry for
7285         default priority.
7286         (decl_fini_priority_insert): Ditto.
7287         (fields_compatible_p, find_compatible_field): Remove.
7288         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7289         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7290
7291 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7292
7293         * combine.c (try_combine): Remove useless local variable.
7294
7295 2011-04-03  Richard Guenther  <rguenther@suse.de>
7296             Ira Rosen  <ira.rosen@linaro.org>
7297
7298         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7299         non-variable offsets and compare the remaining bases of the two
7300         accesses instead of looking for exact same data-ref.
7301
7302 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7303
7304         PR target/48416
7305         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7306
7307         * i386.c (ix86_is_msabi_thiscall): New helper function.
7308         (ix86_is_type_thiscall): New helper function.
7309         (ix86_comp_type_attributes): Handle thiscall for method-functions
7310         special.
7311         (init_cumulative_args): Likewise.
7312         (find_drap_reg): Likewise.
7313         (ix86_static_chain): Likewise.
7314         (x86_this_parameter): Likewise.
7315         (x86_output_mi_thunk): Likewise.
7316
7317 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7318             Nicolas Setton  <setton@adacore.com>
7319             Eric Botcazou  <ebotcazou@adacore.com>
7320
7321         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7322         (add_gnat_descriptive_type_attribute): New function.
7323         (gen_array_type_die): Call it.
7324         (gen_enumeration_type_die): Likewise.
7325         (gen_struct_or_union_type_die): Likewise.
7326         (modified_type_die): Likewise.
7327         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7328         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7329         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7330
7331 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7332
7333         PR bootstrap/48148
7334         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7335         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7336
7337         Revert:
7338         2011-03-17  Richard Guenther  <rguenther@suse.de>
7339
7340         PR bootstrap/48148
7341         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7342         origin for decls in other ltrans units.
7343         (input_varpool_node): Likewise.
7344
7345 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7346
7347         PR middle-end/48335
7348         * expr.c (expand_assignment): Handle all possibilities
7349         if TO_RTX is CONCAT.
7350         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7351         (store_split_bit_field): If SUBREG_REG (op0) or
7352         op0 itself has smaller mode than word, return it
7353         for offset 0 and const0_rtx for out-of-bounds stores.
7354         If word is const0_rtx, skip it.
7355
7356 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7357
7358         * config/h8300/h8300.c (print_operand_address): Rename to...
7359         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7360         Call h8300_print_operand and h8300_print_operand_address instead of
7361         print_operand and print_operand_address. Declare.
7362         (print_operand): Renake to...
7363         (h8300_print_operand): ...this. Make static. Adjust comments.
7364         Call h8300_print_operand instead of print_operand. Declare.
7365         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7366         (h8300_register_move_cost): Likewise.
7367         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7368         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7369         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7370         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7371         * config/h8300/h8300-protos.h (print_operand): Delete.
7372         (print_operand_address): Delete.
7373
7374 2011-04-01  Richard Henderson  <rth@redhat.com>
7375
7376         PR 48400
7377         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7378         in strict mode before dwarf4.  Re-order tests to early out
7379         before switching sections.
7380
7381 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7382
7383         * config/h8300/constraints.md: New file.
7384         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7385         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7386         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7387         * config/h8300/predicates.md (bit_operand): Likewise.
7388         (incdec_operand): Use satisfies_constraint_M and
7389         satisfies_constraint_O.  Don't use C code block.
7390         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7391         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7392         (compute_mov_length): Use satisfies_constraint_G.
7393         (fix_bit_operand): Use satisfies_constraint_U.
7394         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7395         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7396         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7397         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7398         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7399         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7400         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7401         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7402         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7403         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7404         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7405         (EXTRA_MEMORY_CONSTRAINT): Delete.
7406
7407 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7408             Michael Meissner  <meissner@linux.vnet.ibm.com>
7409
7410         PR target/48262
7411         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7412         operands, as per the specifications.
7413
7414         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7415         (vec_extract_evenv4sf): Ditto.
7416         (vec_extract_evenv8hi): Ditto.
7417         (vec_extract_evenv16qi): Ditto.
7418         (vec_extract_oddv4si): Ditto.
7419
7420 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7421
7422         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7423         high_pc attribute if the CU has no associated code. Only output
7424         DW_AT_entry_pc for CU if not generating strict dwarf and
7425         dwarf_version < 4.
7426
7427 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7428
7429         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7430         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7431         out of ...
7432         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7433         * final.c (final_start_function): Call the new function rather
7434         than using a NULL argument for dwarf2out_frame_debug.
7435
7436         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7437         that contains the prologue.
7438
7439         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7440         changed.  Print it in debugging output.
7441
7442         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7443
7444         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7445         Split most of the code into...
7446         (begin_move_insn): ... here.  New function.
7447         (ebb_sched_info): Add a pointer to it.
7448         * haifa-sched.c (scheduled_insns): New static variable.
7449         (sched_extend_ready_list): Allocate it.
7450         (schedule_block): Use it to record the order of scheduled insns.
7451         Perform RTL changes to move insns only after all scheduling
7452         decisions have been made.
7453         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7454         begin_move_insn field.
7455         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7456         * sched-int.h (struct haifa_sched_info): Remove second argument
7457         from begin_schedule_ready hook.  Add new member begin_move_insn.
7458         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7459         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7460
7461         * haifa-sched.c (prune_ready_list): New function, broken out of
7462         schedule_block.
7463         (schedule_block): Use it.
7464
7465 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7466
7467         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7468
7469 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7470
7471         * config.gcc (*-*-mingw*): Allow as option the
7472         posix threading model.
7473         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7474         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7475         definition.
7476         (CPP_SPEC): Add pthread/no-pthread handling.
7477         (LIB_SPEC): Likewise.
7478         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7479         (LIB_SPEC): Likewise.
7480         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7481         flag to pass -pthread option for shared libgcc build.
7482         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7483         for shared libgcc build.
7484         * config/i386/t-mingw-pthread: New file.
7485         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7486         New define to enable use of library pthread by default.
7487         * config/i386/mingw.opt (pthread): New driver option.
7488         (no-pthread): New driver option.
7489         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7490         * config/i386/mingw-w64.opt: Likewise.
7491
7492 2011-04-01  Gary Funck  <gary@intrepid.com>
7493
7494         * c-decl.c (grokdeclarator): Fix formatting.
7495
7496 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7497
7498         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7499         instead of n_operands.
7500         (set_storage_via_setmem): Likewise.
7501         * optabs.c (maybe_gen_insn): Likewise.
7502         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7503         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7504         (mips_expand_builtin_direct): Likewise.
7505         * config/spu/spu.c (expand_builtin_args): Likewise.
7506
7507 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7508
7509         * recog.h (insn_data_d): Add n_generator_args.
7510         * genoutput.c (data): Likewise.
7511         (output_insn_data): Print it.
7512         (max_opno, num_dups): Delete.
7513         (scan_operands): Just fill in "d->operand[...]".
7514         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7515
7516 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7517
7518         * gensupport.h (pattern_stats): New structure.
7519         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7520         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7521         (max_operand_1, max_operand_vec): Delete.
7522         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7523
7524 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7525
7526         * emit-rtl.c (emit_pattern_after_setloc): New function.
7527         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7528         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7529         (emit_pattern_after): New function.
7530         (emit_insn_after, emit_jump_insn_after): Call it.
7531         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7532         (emit_pattern_before_setloc): New function.
7533         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7534         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7535         Likewise.
7536         (emit_pattern_before): New function.
7537         (emit_insn_before, emit_jump_insn_before): Call it.
7538         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7539
7540 2011-03-31  Richard Henderson  <rth@redhat.com>
7541
7542         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7543         (dw_separate_line_info_entry): Remove.
7544         (enum dw_line_info_opcode): New.
7545         (dw_line_info_entry): Use it.
7546         (dw_line_info_table, dw_line_info_table_p): New.
7547         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7548         (line_info_table, line_info_label_num): Remove.
7549         (line_info_table_in_use): Remove.
7550         (separate_line_info_table): Remove.
7551         (separate_line_info_table_allocated): Remove.
7552         (separate_line_info_table_in_use): Remove.
7553         (LINE_INFO_TABLE_INCREMENT): Remove.
7554         (line_info_label_num): New.
7555         (cur_line_info_table): New.
7556         (text_section_line_info, cold_text_section_line_info): New.
7557         (separate_line_info): New.
7558         (SEPARATE_LINE_CODE_LABEL): Remove.
7559         (print_dwarf_line_table): Remove.
7560         (debug_dwarf): Don't dump it.
7561         (output_one_line_info_table): New.
7562         (output_line_info): Use it.
7563         (new_line_info_table): New.
7564         (set_cur_line_info_table): New.
7565         (dwarf2out_switch_text_section): Use it.
7566         (dwarf2out_begin_function): Likewise.
7567         (push_dw_line_info_entry): New.
7568         (dwarf2out_source_line): Rewrite for new line info tables.
7569         (dwarf2out_init): Remove dead initailizations.
7570
7571 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7572
7573         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7574         various flags.
7575         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7576         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7577         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7578         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7579         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7580         * opt-functions.awk (flag_init, switch_bit_fields): New.
7581         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7582         generate CL_MISSING_OK or CL_SAVE.
7583         * optc-gen.awk: Update to generate bit-field output as well as
7584         flags field.
7585         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7586         bit-field instead of CL_REJECT_DRIVER flag.
7587         * opts-common.c (generate_canonical_option,
7588         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7589         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7590         instead of CL_REJECT_NEGATIVE flag.
7591         * toplev.c (print_switch_values): Use cl_report bit-field instead
7592         of CL_REPORT flag.
7593
7594 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7595
7596         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7597         a zero minimum index only if it is redundant.
7598
7599 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7600
7601         PR rtl-optimization/48381
7602         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7603         instead of ira_class_hard_reg_index for calculating conflicting
7604         hard registers.
7605
7606 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7607
7608         * cprop.c: Clean up hash table building.
7609         (reg_avail_info): Remove.
7610         (oprs_available_p): Remove.
7611         (record_last_reg_set_info): Remove.
7612         (record_last_set_info): Remove.
7613         (reg_available_p): New function.
7614         (gcse_constant_p): Do not treat unfolded conditions as constants.
7615         (make_set_regs_unavailable): New function.
7616         (hash_scan_set): Simplify with new reg_available_p.
7617         (compute_hash_table_work): Traverse insns stream only once.
7618         Do not compute reg_avail_info. Traverse insns in reverse order.
7619         Record implicit sets after recording explicit sets from the block.
7620
7621 2011-03-31  Michael Matz  <matz@suse.de>
7622
7623         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7624
7625 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7626
7627         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7628         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7629         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7630         (h8300_mode_dependent_address_p): New function.
7631         (h8300_get_index): Make static.
7632
7633 2011-03-31  Jeff Law  <law@redhat.com>
7634
7635         * reload1.c (elimination_effects): Fix typo in recent change.
7636
7637         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7638         typo potentially leading to null pointer dereference.
7639
7640         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7641         (setup_save_areas): Corresponding changes to avoid useless
7642         assignments.
7643
7644         * jump.c (reversed_comparison_code_parts): Avoid successive return
7645         statements when REVERSE_CONDITION is defined.
7646
7647         * expr.c (expand_assignment): Avoid useless assignments.
7648         (expand_expr_real_1): Likewise.
7649         (expand_expr_real_2): Avoid useless statements.
7650
7651         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7652
7653         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7654
7655         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7656         statements.
7657
7658         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7659
7660 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7661
7662         PR target/47109
7663         * doc/tm.texi.in (TARGET_VERSION): Remove.
7664         * doc/tm.texi: Regenerate.
7665         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7666         * collect2.c (main): Don't use TARGET_VERSION.
7667         * mips-tdump.c (main): Don't use TARGET_VERSION.
7668         * mips-tfile.c (main): Don't use TARGET_VERSION.
7669         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7670         * config/rs6000/vxworksae.h: Remove.
7671         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7672         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7673         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7674         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7675         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7676         * config/arm/arm.h (TARGET_VERSION): Remove.
7677         * config/arm/coff.h (TARGET_VERSION): Remove.
7678         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7679         * config/arm/elf.h (TARGET_VERSION): Remove.
7680         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7681         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7682         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7683         * config/arm/pe.h (TARGET_VERSION): Remove.
7684         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7685         * config/arm/semi.h (TARGET_VERSION): Remove.
7686         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7687         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7688         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7689         * config/avr/avr.h (TARGET_VERSION): Remove.
7690         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7691         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7692         * config/frv/frv.h (TARGET_VERSION): Remove.
7693         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7694         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7695         * config/i386/darwin.h (TARGET_VERSION): Remove.
7696         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7697         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7698         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7699         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7700         * config/i386/gnu.h (TARGET_VERSION): Remove.
7701         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7702         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7703         * config/i386/linux.h (TARGET_VERSION): Remove.
7704         * config/i386/linux64.h (TARGET_VERSION): Remove.
7705         * config/i386/lynx.h (TARGET_VERSION): Remove.
7706         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7707         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7708         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7709         * config/i386/netware.h (TARGET_VERSION): Remove.
7710         * config/i386/nto.h (TARGET_VERSION): Remove.
7711         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7712         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7713         * config/ia64/elf.h (TARGET_VERSION): Remove.
7714         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7715         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7716         * config/ia64/linux.h (TARGET_VERSION): Remove.
7717         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7718         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7719         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7720         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7721         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7722         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7723         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7724         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7725         * config/m68k/linux.h (TARGET_VERSION): Remove.
7726         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7727         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7728         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7729         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7730         * config/mep/mep.h (TARGET_VERSION): Remove.
7731         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7732         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7733         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7734         * config/mips/linux.h (TARGET_VERSION): Remove.
7735         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7736         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7737         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7738         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7739         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7740         * config/pa/pa.h (TARGET_VERSION): Remove.
7741         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7742         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7743         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7744         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7745         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7746         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7747         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7748         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7749         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7750         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7751         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7752         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7753         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7754         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7755         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7756         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7757         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7758         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7759         * config/s390/linux.h (TARGET_VERSION): Remove.
7760         * config/s390/s390.h (TARGET_VERSION): Remove.
7761         * config/s390/tpf.h (TARGET_VERSION): Remove.
7762         * config/score/score.h (TARGET_VERSION): Remove.
7763         * config/sh/linux.h (TARGET_VERSION): Remove.
7764         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7765         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7766         * config/sh/sh.h (TARGET_VERSION): Remove.
7767         * config/sh/sh64.h (TARGET_VERSION): Remove.
7768         * config/sh/superh.h (TARGET_VERSION): Remove.
7769         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7770         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7771         * config/sparc/linux.h (TARGET_VERSION): Remove.
7772         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7773         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7774         TARGET_NAME32, TARGET_NAME): Remove.
7775         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7776         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7777         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7778         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7779         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7780         * config/spu/spu.h (TARGET_VERSION): Remove.
7781         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7782         * config/v850/v850.h (TARGET_VERSION): Remove.
7783         * config/vax/linux.h (TARGET_VERSION): Remove.
7784         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7785         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7786         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7787
7788 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7789
7790         PR target/48142
7791         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7792         frame-related from frame-unrelated adjustments to the stack pointer.
7793
7794 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7795
7796         * common.opt (fdebug-types-section): Move earlier.
7797         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7798
7799 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7800
7801         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7802         var.
7803
7804 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7805
7806         * tree.h (CASE_CHAIN): Define.
7807         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7808         (gimple_redirect_edge_and_branch): Likewise.
7809
7810 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7811
7812         PR middle-end/48367
7813         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7814         calculation.
7815
7816 2011-03-30  Jeff Law  <law@redhat.com>
7817
7818         * PR bootstrap/48371
7819         * reload1.c (reload): Fix botch in last change.
7820
7821         * reload.h (struct reload): Fix typo introduced in last change.
7822
7823 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7824
7825         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7826         Undocumented.  Remove help text.
7827         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7828         -mhard-float.
7829
7830 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7831
7832         * doc/options.texi (NegativeAlias): Document.
7833         (Alias): Mention NegativeAlias.
7834         * opt-functions.awk: Handle NegativeAlias.
7835         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7836         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7837         * opts.h (CL_NEGATIVE_ALIAS): Define.
7838         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7839         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7840         OPT_mspe_.
7841         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7842         Alias entries.
7843         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7844         mno-spe and mno-isel instead of mspe=no and -misel=no.
7845
7846 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7847
7848         * common.opt (fdebug-types-section): New flag.
7849         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7850         * dwarf2out.c (use_debug_types): New define.
7851         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7852         (print_die): Guard output of type unit signatures using
7853         use_debug_types.
7854         (build_abbrev_table): Replace assert of dwarf_version >= 4
7855         with assert on use_debug_types.
7856         (size_of_die): Likewise.
7857         (unmark_dies): Likewise.
7858         (value_format): Decide AT_ref_external form on use_debug_types.
7859         (output_die): Replace dwarf_version version check guard with
7860         use_debug_types where appropriate.
7861         (modified_type_die): Likewise.
7862         (gen_reference_type_die): Likewise.
7863         (dwarf2out_start_source_file): Likewise.
7864         (dwarf2out_end_source_file): Likewise.
7865         (prune_unused_types_walk_attribs): Likewise.
7866         (dwarf2out_finish): Likewise.
7867
7868 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7869
7870         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7871
7872 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7873
7874         PR rtl-optimization/48332
7875         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7876         mode of input operand N and modeN to its actual mode.
7877
7878 2011-03-30  Jeff Law  <law@redhat.com>
7879
7880         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7881         define accessor macro.
7882         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7883         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7884         (reg_equiv_init): Likewise.
7885         (reg_equivs_size): New variable.
7886         (reg_equiv_init_size): Remove.
7887         (allocate_initial_values): Move prototype to here from....
7888         * integrate.h (allocate_initial_values): Remove prototype.
7889         * integrate.c: Include reload.h.
7890         (allocate_initial_values): Corresponding changes.
7891         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7892         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7893         (update_equiv_regs): Corresponding changes.
7894         (ira): Corresponding changes.
7895         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7896         (push_secondary_reload): Corresponding changes.
7897         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7898         (make_memloc, find_reloads_address): Corresponding changes.
7899         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7900         (find_reloads_address_1): Corresponding changes.
7901         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7902         (refers_to_regno_for_reload_p): Corresponding changes.
7903         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7904         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7905         * reload1.c: Include ggc.h.
7906         (grow_reg_equivs): New function.
7907         (replace_pseudos_in, reload): Corresponding changes.
7908         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7909         (eliminate_regs_1, elimination_effects): Corresponding changes.
7910         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7911         (delete_output_reload): Likewise.
7912         * caller-save.c (mark_referenced_regs): Corresponding changes.
7913         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7914         * frv/predicates.md (frv_load_operand): Corresponding changes.
7915         * microblaze/microblaze.c (double_memory_operand): Corresponding
7916         changes.
7917         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7918         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7919         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7920         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7921         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7922         changes.
7923         * pa/pa.c (emit_move_sequence): Corresponding changes.
7924         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7925
7926 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7927
7928         PR target/47551
7929         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7930         structure modes.  Don't check neon_vector_mem_operand for
7931         vector or structure modes.
7932
7933 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7934             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7935
7936         PR target/43590
7937         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7938         operand 1 and reshuffle the operands to match.
7939         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7940
7941 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7942
7943         PR driver/48208
7944         * config/c.opt (F): Added 'Driver' to -F option.
7945
7946         PR driver/48260
7947         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7948           handler function.
7949         * config/darwin.opt: Added '-arch' option.
7950
7951 2011-03-30  Nick Clifton  <nickc@redhat.com>
7952
7953         * config/rx/rx.md: Add peepholes and patterns to combine
7954         extending loads and simple arithmetic instructions.
7955         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7956         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7957         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7958         modes to use pre-decrement and post-increment addressing.
7959         (rx_is_restricted_memory_address): Add range checking of REG+INT
7960         addresses.
7961         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7962         (rx_memory_move_cost): Adjust cost of stores.
7963         (rx_adjust_insn_length): New function.
7964
7965 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7966
7967         PR c/48305
7968         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7969         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7970         matching arg00/arg01 types.
7971
7972 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7973
7974         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7975         last_location to UNKNOWN_LOCATION.
7976
7977 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7978
7979         PR target/48349
7980         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7981         FLOAT_SSE_REGS.
7982
7983 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7984             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7985
7986         PR bootstrap/48337
7987         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7988         Init(PROCESSOR_V7).
7989         (sparc_cpu): Likewise.
7990         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7991         PROCESSOR_V7.
7992
7993 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7994
7995         PR target/48336
7996         PR middle-end/48342
7997         PR rtl-optimization/48345
7998         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7999         hard regs for given mode from profitable regs when doing secondary
8000         allocation.
8001
8002 2011-03-29  Jeff Law  <law@redhat.com>
8003
8004         PR bootstrap/48327
8005         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8006         do_not_duplicate field.
8007         (lookup_redirection_data): Corresponding changes.
8008         (create_duplicates): Always create a template block.
8009         (redirect_edges): Remove code which reused the original block
8010         when it was going to become unreachable code.
8011         (thread_block): Don't set do_not_duplicate field.
8012
8013 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * lto-opts.c (register_user_option_p, lto_register_user_option):
8016         Make type argument unsigned.
8017         * lto-streamer.h (lto_register_user_option): Make type argument
8018         unsigned.
8019         * opth-gen.awk: Make CL_* macros unsigned.
8020         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8021         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8022         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8023         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8024         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8025         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8026         (find_opt): Make lang_mask argument unsigned.
8027
8028 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8029
8030         PR rtl-optimization/48331
8031         PR rtl-optimization/48334
8032         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8033         for any used algorithm.
8034
8035 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8036
8037         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8038         to parent_max.
8039
8040 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8041
8042         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8043         (alpha_option_override): Don't set alpha_sr_alias_set.
8044         (emit_frame_store_1): Use gen_frame_mem rather than calling
8045         set_mem_alias_set.
8046         (alpha_expand_epilogue): Ditto.
8047
8048 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8049
8050         PR tree-optimization/48290
8051         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8052         vectorization, check that relevant phis in the basic block after
8053         the inner loop are really inner loop's exit phis.
8054
8055 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8056
8057         PR debug/48190
8058         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8059         (cached_dw_loc_list_def): New structure.
8060         (cached_dw_loc_list): New typedef.
8061         (cached_dw_loc_list_table): New variable.
8062         (cached_dw_loc_list_table_hash): New function.
8063         (cached_dw_loc_list_table_eq): Likewise.
8064         (add_location_or_const_value_attribute): Take a bool cache_p.
8065         Cache the list when the parameter is true.
8066         (gen_formal_parameter_die): Update caller.
8067         (gen_variable_die): Likewise.
8068         (dwarf2out_finish): Likewise.
8069         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8070         while generating debug info for the decl.
8071         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8072         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8073         (resolve_addr): Cache the result of resolving a chain of
8074         location lists.
8075
8076 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8077
8078         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8079         conflict object hard regset nodes have intersecting hard reg sets.
8080
8081         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8082         after regstat_init_n_sets_and_refs.
8083
8084         * ira.c: Add more comments at the top.
8085         (setup_stack_reg_pressure_class, setup_pressure_classes):
8086         Add comments how we compute the register pressure classes.
8087         (setup_allocno_and_important_classes): Add more comments.
8088         (setup_class_translate_array, reorder_important_classes)
8089         (setup_reg_class_relations): Add comments.
8090
8091         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8092         start of the file.
8093
8094         * ira-color.c: Add 2011 to the Copyright line.
8095         (assign_hard_reg):  Add more comments.
8096         (improve_allocation): Ditto.
8097
8098         * ira-costs.c: Add 2011 to the Copyright line.
8099         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8100         comments.
8101         (setup_regno_cost_classes_by_mode): Ditto.
8102
8103         Initial patches from ira-improv branch:
8104
8105         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8106
8107         * ira-build.c (ira_create_object): Remove initialization of
8108         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8109         (ira_create_allocno): Remove initialization of
8110         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8111         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8112         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8113         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8114         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8115         Initialize ALLOCNO_ADD_DATA.
8116         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8117         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8118         ALLOCNO_REG.
8119         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8120         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8121
8122         * ira.c (ira_reallocate): Remove.
8123         (setup_pressure_classes): Call
8124         ira_init_register_move_cost_if_necessary.  Use
8125         ira_register_move_cost instead of ira_get_register_move_cost.
8126         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8127         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8128
8129         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8130         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8131         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8132         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8133         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8134         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8135         Fix formatting.
8136         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8137         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8138         (struct allocno_color_data): New.
8139         (allocno_color_data_t): New typedef.
8140         (allocno_color_data): New definition.
8141         (ALLOCNO_COLOR_DATA): New macro.
8142         (struct object_color_data): New.
8143         (object_color_data_t): New typedef.
8144         (object_color_data): New definition.
8145         (OBJECT_COLOR_DATA): New macro.
8146         (update_copy_costs, calculate_allocno_spill_cost): Call
8147         ira_init_register_move_cost_if_necessary.  Use
8148         ira_register_move_cost instead of ira_get_register_move_cost.
8149         (move_spill_restore, update_curr_costs): Ditto.
8150         (allocno_spill_priority): Make it inline.
8151         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8152         (struct coalesce_data, coalesce_data_t): New.
8153         (allocno_coalesce_data): New definition.
8154         (ALLOCNO_COALESCE_DATA): New macro.
8155         (merge_allocnos, coalesced_allocno_conflict_p): Use
8156         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8157         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8158         (coalesce_allocnos): Ditto.
8159         (setup_coalesced_allocno_costs_and_nums): Ditto.
8160         (collect_spilled_coalesced_allocnos): Ditto.
8161         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8162         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8163         (coalesce_spill_slots): Ditto.
8164         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8165         free allocno_coalesce_data.
8166
8167         * ira-conflicts.c: Fix formatting.
8168         (process_regs_for_copy): Call
8169         ira_init_register_move_cost_if_necessary.  Use
8170         ira_register_move_cost instead of ira_get_register_move_cost.
8171         (build_object_conflicts): Optimize.
8172
8173         * ira-costs.c (record_reg_classes): Optimize.  Call
8174         ira_init_register_move_cost_if_necessary.  Use
8175         ira_register_move_cost, ira_may_move_in_cost, and
8176         ira_may_move_out_cost instead of ira_get_register_move_cost and
8177         ira_get_may_move_cost.
8178         (record_address_regs): Ditto.
8179         (scan_one_insn): Optimize.
8180         (find_costs_and_classes): Optimize.
8181         (process_bb_node_for_hard_reg_moves): Call
8182         ira_init_register_move_cost_if_necessary.  Use
8183         ira_register_move_cost instead of ira_get_register_move_cost.
8184
8185         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8186         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8187         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8188         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8189         definitions.
8190         (ira_initiate_emit_data, ira_finish_emit_data)
8191         (create_new_allocno): New functions.
8192         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8193         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8194         Use ira_register_move_cost instead of ira_get_register_move_cost.
8195
8196         * ira-int.h: Fix some comments.
8197         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8198         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8199         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8200         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8201         add_data.
8202         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8203         bitfield after mode.  Make hard_regno a short int.  Make
8204         hard_regno short.  Remove first_coalesced_allocno and
8205         next_coalesced_allocno.  Move mem_optimized_dest_p,
8206         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8207         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8208         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8209         temp, colorable_p.  Add new member add_data.
8210         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8211         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8212         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8213         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8214         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8215         (ALLOCNO_ADD_DATA): New macro.
8216         (ira_emit_data_t): New typedef.
8217         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8218         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8219         from struct ira_allocno.
8220         (ALLOCNO_EMIT_DATA): New macro.
8221         (ira_allocno_emit_data, allocno_emit_reg): New.
8222         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8223         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8224         (OBJECT_ADD_DATA): New macro.
8225         (ira_reallocate): Remove.
8226         (ira_initiate_emit_data, ira_finish_emit_data): New.
8227         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8228         (ira_init_register_move_cost_if_necessary): New.
8229         (ira_object_conflict_iter_next): Merge into
8230         ira_object_conflict_iter_cond.
8231         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8232
8233         * ira-live.c (process_single_reg_class_operands): Call
8234         ira_init_register_move_cost_if_necessary.  Use
8235         ira_register_move_cost instead of ira_get_register_move_cost.
8236
8237         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8238
8239         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8240
8241         * ira-costs.c: Fix formatting.
8242         (cost_classes, cost_classes_num): Remove.
8243         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8244         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8245         (cost_classes_del, cost_classes_htab): New.
8246         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8247         (initiate_regno_cost_classes, setup_cost_classes): New.
8248         (setup_regno_cost_classes_by_aclass): New.
8249         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8250         (record_reg_classes): Use regno_cost_classes instead of
8251         cost_classes.  Move checking opposite operand up.
8252         (record_address_regs): Use regno_cost_classes
8253         instead of cost_classes.
8254         (scan_one_insn): Ditto.  Use always general register.
8255         (print_allocno_costs): Use regno_cost_classes instead of
8256         cost_classes.
8257         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8258         (find_costs_and_classes): Set up cost classes for each registers.
8259         Use also their mode for this.  Use regno_cost_classes instead of
8260         cost_classes.
8261         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8262         cost_classes.
8263         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8264         (ira_costs, ira_set_pseudo_classes): Call
8265         initiate_regno_cost_classes and finish_regno_cost_classes.
8266
8267         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8268
8269         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8270
8271         * target.def (ira_cover_classes): Remove.
8272
8273         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8274
8275         * doc/tm.texi.in: Ditto.
8276
8277         * ira-conflicts.c: Remove mentioning cover classes from the file.
8278         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8279         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8280
8281         * targhooks.c (default_ira_cover_classes): Remove.
8282
8283         * targhooks.h (default_ira_cover_classes): Ditto.
8284
8285         * haifa-sched.c: Remove mentioning cover classes from the file.
8286         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8287         ira_pressure_classes and ira_pressure_classes_num instead of
8288         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8289         sched_regno_pressure_class instead of sched_regno_cover_class.
8290         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8291         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8292
8293         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8294         classes from the file.
8295         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8296         (struct object_hard_regs, struct object_hard_regs_node): New.
8297         (struct ira_object): New members profitable_hard_regs,
8298         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8299         (struct ira_allocno): Rename cover_class to aclass.  Rename
8300         cover_class_cost and updated_cover_class_cost to class_cost and
8301         updated_class_cost.  Remove splay_removed_p and
8302         left_conflict_size.  Add new members colorable_p.
8303         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8304         (ALLOCNO_COLORABLE_P): New macro.
8305         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8306         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8307         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8308         (OBJECT_...): Rename parameter C to O.
8309         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8310         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8311         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8312         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8313         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8314         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8315         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8316         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8317         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8318         x_ira_reg_class_subunion.
8319         (ira_max_memory_move_cost, ira_max_register_move_cost)
8320         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8321         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8322         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8323         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8324         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8325         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8326         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8327         (ira_tune_allocno_costs_and_cover_classes): Rename to
8328         ira_tune_allocno_costs.
8329         (ira_debug_hard_regs_forest): New.
8330         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8331         (ira_object_conflict_iter_next): Fix comments.
8332         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8333         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8334         cover_class to aclass.
8335         (ira_allocate_and_accumulate_costs): Ditto.
8336         (ira_allocate_and_set_or_copy_costs): Ditto.
8337
8338         * opts.c (decode_options): Remove ira_cover_class check.
8339
8340         * ira-color.c: Remove mentioning cover classes from the file.  Use
8341         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8342         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8343         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8344         (splay-tree.h): Remove include.
8345         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8346         before copy_freq_compare_func.
8347         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8348         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8349         New definitions.
8350         (hard_regs_roots, hard_regs_node_vec): Ditto.
8351         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8352         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8353         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8354         (create_new_object_hard_regs_node): Ditto.
8355         (add_new_object_hard_regs_node_to_forest): Ditto.
8356         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8357         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8358         Ditto.
8359         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8360         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8361         (remove_unused_object_hard_regs_nodes): Ditto.
8362         (enumerate_object_hard_regs_nodes): Ditto.
8363         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8364         (object_hard_regs_subnode_t): Ditto.
8365         (struct object_hard_regs_subnode): Ditto.
8366         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8367         (setup_object_hard_regs_subnode_index): Ditto.
8368         (get_object_hard_regs_subnodes_num): Ditto.
8369         (form_object_hard_regs_nodes_forest): Ditto.
8370         (finish_object_hard_regs_nodes_tree): Ditto.
8371         (finish_object_hard_regs_nodes_forest): Ditto.
8372         (allocnos_have_intersected_live_ranges_p): Rename to
8373         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8374         (pseudos_have_intersected_live_ranges_p): Rename to
8375         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8376         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8377         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8378         (update_copy_costs): Remove assert.  Skip cost update if the hard
8379         reg does not belong the class.
8380         (assign_hard_reg): Process only profitable hard regs.
8381         (uncolorable_allocnos_num): Make it scalar.
8382         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8383         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8384         and ira_reg_class_max_nregs.
8385         (bucket_allocno_compare_func): Check frequency first.
8386         (sort_bucket): Add compare function as a parameter.
8387         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8388         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8389         (push_allocno_to_stack): Rewrite for checking new allocno
8390         colorability.
8391         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8392         (push_only_colorable): Pass new parameter to sort_bucket.
8393         (push_allocno_to_spill): Remove.
8394         (allocno_spill_priority_compare): Make it inline and rewrite.
8395         (splay_tree_allocate, splay_tree_free): Remove.
8396         (allocno_spill_sort_compare): New function.
8397         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8398         build and use splay tree.  Choose first allocno in uncolorable
8399         allocno bucket to spill.  Remove setting spill cost.
8400         (all_conflicting_hard_regs): Remove.
8401         (setup_allocno_available_regs_num): Check only profitable hard
8402         regs.  Print info about hard regs nodes.
8403         (setup_allocno_left_conflicts_size): Remove.
8404         (put_allocno_into_bucket): Don't call
8405         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8406         (improve_allocation): New.
8407         (color_allocnos): Call setup_profitable_hard_regs,
8408         form_object_hard_regs_nodes_forest, improve_allocation,
8409         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8410         (print_loop_title): Use pressure classes.
8411         (color_allocnso): Ditto.
8412         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8413         and allocnos_for_spilling.
8414         (ira_sort_regnos_for_alter_reg): Don't setup members
8415         {first,next}_coalesced_allocno.
8416         (color): Remove allocating and freeing removed_splay_allocno_vec.
8417         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8418         prohibited_class_mode_regs.
8419
8420         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8421         formatting.
8422         (update_allocno_pressure_excess_length): Use pressure classes.
8423         (inc_register_pressure, dec_register_pressure): Check for pressure
8424         class.
8425         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8426         pressure class.  Use ira_reg_class_nregs instead of
8427         ira_reg_class_max_nregs.
8428         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8429         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8430         (single_reg_class): Use ira_reg_class_nregs instead of
8431         ira_reg_class_max_nregs.
8432         (process_bb_node_lives): Use pressure classes.
8433
8434         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8435         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8436         (change_loop): Use pressure classes.
8437         (modify_move_list): Call ira_set_allocno_class instead of
8438         ira_set_allocno_cover_class.
8439
8440         * ira-build.c: Remove mentioning cover classes from the file.  Use
8441         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8442         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8443         ALLOCNO_UPDATED_CLASS_COST instead of
8444         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8445         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8446         (ira_create_allocno): Remove initialization of
8447         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8448         ALLOCNO_COLORABLE_P.
8449         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8450         Update conflict regs for the objects.
8451         (create_cap_allocno): Remove assert.  Don't propagate
8452         ALLOCNO_AVAILABLE_REGS_NUM.
8453         (ira_free_allocno_costs): New function.
8454         (finish_allocno): Change a part of code into call of
8455         ira_free_allocno_costs.
8456         (low_pressure_loop_node_p): Use pressure classes.
8457         (object_range_compare_func): Don't compare classes.
8458         (setup_min_max_conflict_allocno_ids): Ditto.
8459
8460         * loop-invariant.c: Remove mentioning cover classes from the file.
8461         Use ira_pressure_classes and ira_pressure_classes_num instead of
8462         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8463         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8464         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8465         Use reg_allocno_class instead of reg_cover_class.
8466         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8467         STACK_REG_COVER_CLASS.
8468         (get_regno_cover_class): Rename to get_regno_pressure_class.
8469         (move_loop_invariants): Initialize and finalize regstat.
8470
8471         * ira.c: Remove mentioning cover classes from the file.  Add
8472         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8473         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8474         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8475         setup_class_subset_and_memory_move_costs.
8476         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8477         (setup_cover_and_important_classes): Rename to
8478         setup_allocno_and_important_classes.
8479         (setup_class_translate_array): New.
8480         (setup_class_translate): Call it for allocno and pressure classes.
8481         (cover_class_order): Rename to allocno_class_order.
8482         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8483         of ira_class_translate.
8484         (reorder_important_classes): Set up ira_important_class_nums.
8485         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8486         (print_class_cover): Rename to print_classes.  Add parameter.
8487         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8488         Print pressure classes too.
8489         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8490         setup_reg_subclasses.
8491         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8492         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8493         (setup_prohibited_class_mode_regs): Use
8494         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8495         (clarify_prohibited_class_mode_regs): New function.
8496         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8497         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8498         (ira_init_once): Initialize them.
8499         (free_register_move_costs): Process them.
8500         (ira_init): Move calls of find_reg_classes and
8501         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8502         Call clarify_prohibited_class_mode_regs.
8503         (ira_no_alloc_reg): Remove.
8504         (too_high_register_pressure_p): Use pressure classes.
8505
8506         * sched-deps.c: Remove mentioning cover classes from the file.
8507         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8508         ira_pressure_classes and ira_pressure_classes_num instead of
8509         ira_reg_class_cover_size and ira_reg_class_cover.
8510         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8511         sched_regno_pressure_class instead of sched_regno_cover_class.
8512         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8513         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8514
8515         * ira.h: Add 2010 to Copyright.
8516         (ira_no_alloc_reg): Remove external.
8517         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8518         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8519         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8520         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8521         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8522         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8523         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8524         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8525         x_ira_no_alloc_regs.
8526         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8527         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8528         ira_allocno_classes_num and ira_allocno_classes.
8529         (ira_class_translate): Rename to ira_allocno_class_translate.
8530         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8531         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8532         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8533         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8534         (ira_no_alloc_regs): New.
8535
8536         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8537         classes from the file.  Use ALLOCNO_CLASS instead of
8538         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8539         ALLOCNO_COVER_CLASS_COST.
8540         (regno_cover_class): Rename to regno_aclass.
8541         (record_reg_classes): Use ira_reg_class_subunion instead of
8542         ira_reg_class_union.
8543         (record_address_regs): Check overflow.
8544         (scan_one_insn): Ditto.
8545         (print_allocno_costs): Print total mem cost fore regional allocation.
8546         (print_pseudo_costs): Use REG_N_REFS.
8547         (find_costs_and_classes): Use classes intersected with them on the
8548         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8549         ira_reg_class_union.  Use ira_allocno_class_translate and
8550         regno_aclass instead of ira_class_translate and regno_cover_class.
8551         Modify code for finding regno_aclass.  Setup preferred classes for
8552         the next pass.
8553         (setup_allocno_cover_class_and_costs): Rename to
8554         setup_allocno_class_and_costs.  Use regno_aclass instead of
8555         regno_cover_class.  Use ira_set_allocno_class instead of
8556         ira_set_allocno_cover_class.
8557         (init_costs, finish_costs): Use regno_aclass instead of
8558         regno_cover_class.
8559         (ira_costs): Use setup_allocno_class_and_costs instead of
8560         setup_allocno_cover_class_and_costs.
8561         (ira_tune_allocno_costs_and_cover_classes): Rename to
8562         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8563         by processing objects.  Use ira_reg_class_max_nregs instead of
8564         ira_reg_class_nregs.
8565
8566         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8567
8568         * sched-int.h: Remove mentioning cover classes from the file.
8569         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8570
8571         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8572         classes from the file.
8573         (struct reg_pref): Rename coverclass into allocnoclass.
8574         (reg_cover_class): Rename to reg_allocno_class.
8575
8576         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8577
8578         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8579
8580         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8581
8582         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8583
8584         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8585
8586         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8587
8588         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8589
8590         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8591
8592         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8593
8594         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8595
8596         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8597         (i386_ira_cover_classes): Ditto.
8598
8599         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8600
8601         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8602
8603         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8604
8605         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8606
8607         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8608
8609         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8610
8611         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8612         (mips_ira_cover_classes): Ditto.
8613
8614         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8615
8616         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8617
8618         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8619
8620         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8621
8622         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8623
8624         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8625         (IRA_COVER_CLASSES_VSX): Ditto.
8626
8627         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8628         (rs6000_ira_cover_classes): Ditto.
8629
8630         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8631
8632         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8633
8634         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8635
8636         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8637
8638         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8639
8640         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8641
8642         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8643
8644         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8645
8646         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8647
8648         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8649
8650 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8651
8652         PR debug/48253
8653         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8654         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8655         dw_fde_unlikely_section_end_label, cold_in_std_section,
8656         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8657         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8658         fields.
8659         (output_fde): Use dw_fde_second_{begin,end} if second is
8660         true, otherwise dw_fde_{begin,end}.
8661         (output_call_frame_info): Test dw_fde_second_begin != NULL
8662         instead of dw_fde_switched_sections.
8663         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8664         fields, initialize new fields.  Initialize in_std_section
8665         unconditionally from the first partition.
8666         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8667         dw_fde_second_begin is non-NULL.
8668         (dwarf2out_switch_text_section): Stop initializing removed
8669         dw_fde_struct fields, initialize new fields, initialize
8670         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8671         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8672         (struct var_loc_list_def): Add last_before_switch field.
8673         (arange_table, arange_table_allocated, arange_table_in_use,
8674         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8675         (size_of_aranges): Count !in_std_section and !second_in_std_section
8676         hunks in fdes, instead of looking at arange_table_in_use.
8677         (output_aranges): Add aranges_length argument, don't call
8678         size_of_aranges here.  Instead of using aranges_table*
8679         emit ranges for fdes when !in_std_section resp.
8680         !second_in_std_section.
8681         (dw_loc_list): Break ranges crossing section switch.
8682         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8683         use dw_fde_second_end instead of dw_fde_end as end of last range.
8684         (gen_subprogram_die): Don't call add_arange.  Use
8685         dw_fde_{begin,end} for first partition and if switched
8686         section dw_fde_second_{begin,end} for the second.
8687         (var_location_switch_text_section_1,
8688         var_location_switch_text_section): New functions.
8689         (dwarf2out_begin_function): Initialize cold_text_section even
8690         when function_section () isn't text_section.
8691         (prune_unused_types): Don't walk arange_table.
8692         (dwarf2out_finish): Don't needlessly test
8693         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8694         If info_section_emitted, call size_of_aranges and if it indicates
8695         non-empty .debug_aranges, call output_aranges with the computed
8696         size.  Stop using removed dw_fde_struct fields, use
8697         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8698         for second.
8699
8700         PR debug/48203
8701         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8702         create ENTRY_VALUE if incoming or address of incoming's MEM
8703         is a hard REG.
8704         * dwarf2out.c (mem_loc_descriptor): Don't emit
8705         DW_OP_GNU_entry_value of DW_OP_fbreg.
8706         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8707         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8708         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8709         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8710         ENTRY_VALUE_EXPs.
8711         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8712         is a REG_P or MEM_P with REG_P address, compute hash directly
8713         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8714         (preserve_only_constants): Don't clear VALUES forwaring
8715         ENTRY_VALUE to some other VALUE.
8716
8717 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8718
8719         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8720         instead of GEN_INT.
8721
8722 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8723
8724         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8725         block before expanding the statement.
8726         (expand_gimple_stmt_1): Likewise.  Set them here...
8727         (expand_gimple_stmt): ...and not here.  Tidy.
8728         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8729         unknown.
8730
8731 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8732
8733         * Makefile.in: New rule for cprop.o.
8734         * gcse.c: Move constant/copy propagation to cprop.c.
8735         (compute_local_properties): Only handle expression tables.
8736         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8737         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8738         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8739         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8740         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8741         compute_cprop_data, find_used_regs, try_replace_reg,
8742         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8743         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8744         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8745         find_bypass_set, reg_killed_on_edge, bypass_block,
8746         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8747         execute_rtl_cprop, pass_rtl_cprop): Move to...
8748         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8749         moved from gcse.c to here with minor cleanups in duplicated code.
8750
8751 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8752
8753         * config/i386/i386.c (flag_opts): Fix a typo in
8754         -mavx256-split-unaligned-store.
8755
8756 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8757
8758         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8759         LIBCALL_VALUE): Remove macros.
8760         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8761         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8762         (h8300_function_value, h8300_libcall_value,
8763         h8300_function_value_regno_p): New functions.
8764
8765 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8766
8767         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8768
8769 2011-03-28  Jeff Law  <law@redhat.com>
8770
8771         * tree-ssa-threadupdate.c (redirect_edges): Call
8772         create_edge_and_update_destination_phis as needed.
8773         (create_edge_and_update_destination_phis): Accept new BB argument.
8774         All callers updated.
8775         (thread_block): Do not update the profile when threading around
8776         intermediate blocks.
8777         (thread_single_edge): Likewise.
8778         (determine_bb_domination_status): If BB is not a successor of the
8779         loop header, return NONDOMINATING.
8780         (register_jump_thread): Note when we register a jump thread around
8781         an intermediate block.
8782         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8783         (thread_across_edge): Use it.
8784
8785 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8786
8787         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8788         when for_return is 2.
8789
8790 2011-03-28  Jeff Law  <law@redhat.com>
8791
8792         * var-tracking.c (canonicalize_values_mark): Delete unused
8793         lhs assignment.
8794         (canonicalize_values_star, set_variable_part): Likewise.
8795         (clobber_variable_part, delete_variable_part): Likewise.
8796
8797 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8798
8799         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8800
8801 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8802
8803         * tree-inline.c (expand_call_inline): Do not check that destination
8804         node is analyzed.
8805         (optimize_inline_calls): Assert that destination node is analyzed.
8806         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8807         not call tree_lowering_passes.
8808         * cgraph.h (cgraph_analyze_function): Declare.
8809         * cgraphunit.c (cgraph_analyze_function): Make public.
8810
8811 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8812
8813         * config/sparc/sparc-opts.h: New.
8814         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8815         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8816         (sparc_option_override): Store processor_type enumeration rather
8817         than string in cpu_default.  Remove name and enumeration from
8818         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8819         without using sparc_select.  Use target_flags_explicit instead of
8820         fpu_option_set.
8821         * config/sparc/sparc.h (enum processor_type): Move to
8822         sparc-opts.h.
8823         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8824         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8825         HeaderInclude entry.
8826         (mcpu=, mtune=): Use Var and Enum.
8827         (sparc_processor_type): New Enum and EnumValue entries.
8828
8829 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8830             Iain Sandoe  <iains@gcc.gnu.org>
8831
8832         PR target/48245
8833         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8834
8835 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8836
8837         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8838         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8839         Insert new statements at it in lieu of STMT.
8840         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8841         * tree-vect-stmts.c (vectorizable_store): Likewise.
8842         (vectorizable_load): Likewise.
8843
8844 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8845
8846         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8847         (divtf3): Ditto.
8848         (multf3): Ditto.
8849         (subtf3): Ditto.
8850
8851 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8852
8853         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8854         unaligned 256bit load/store.
8855         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8856         (*avx_movdqu<avxmodesuffix>): Likewise.
8857
8858 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8859
8860         PR target/48288
8861         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8862         * config/pa/pa.md (iordi3): Use new predicate in expander.
8863         (iorsi3): Likewise.
8864
8865 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8866
8867         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8868         FUNCTION_VALUE_REGNO_P): Remove macros.
8869         * config/mips/mips-protos.h (mips_function_value): Remove.
8870         * config/mips/mips.c (mips_function_value): Rename to...
8871         (mips_function_value_1): ... this. Make static.  Handle receiving
8872         the function type in 'fn_decl_or_type' argument.
8873         (mips_function_value, mips_libcall_value,
8874         mips_function_value_regno_p): New function.
8875         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8876         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8877
8878 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8879
8880         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8881         and -mavx256-split-unaligned-store.
8882         (ix86_option_override_internal): Split 32-byte AVX unaligned
8883         load/store by default.
8884         (ix86_avx256_split_vector_move_misalign): New.
8885         (ix86_expand_vector_move_misalign): Use it.
8886
8887         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8888         -mavx256-split-unaligned-store.
8889
8890         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8891         256bit load/store.  Generate unaligned store on misaligned memory
8892         operand.
8893         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8894         256bit load/store.
8895         (*avx_movdqu<avxmodesuffix>): Likewise.
8896
8897         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8898         -mavx256-split-unaligned-store.
8899
8900 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8901
8902         PR target/38598
8903         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8904         Update commentary.
8905
8906 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8907
8908         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8909         opno arguments with an expand_operand.  Use create_input_operand.
8910         (mips_prepare_builtin_target): Delete.
8911         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8912         functions.
8913         (mips_expand_builtin_direct): Use create_output_operand and
8914         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8915         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8916         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8917
8918 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8919
8920         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8921         function.
8922         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8923
8924 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8925
8926         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8927         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8928         basic blocks and call commit_edge_insertions directly.
8929         (fixup_abnormal_edges): Move from here to...
8930         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8931         on the edges and return whether some have actually been inserted.
8932         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8933         compensation code.
8934
8935 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8936
8937         PR rtl-optimization/48144
8938         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8939         (merge_expr_data): ... here.
8940         (av_set_intersect): Rename to av_set_code_motion_filter.
8941         Update all callers.  Call merge_history_vect when an expression
8942         is found in both sets.
8943         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8944
8945 2011-03-26  Alan Modra  <amodra@gmail.com>
8946
8947         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8948         cmodel medium addresses.
8949         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8950         64-bit gpr loads and stores.
8951         (rs6000_secondary_reload_ppc64): New function.
8952         * config/rs6000/rs6000-protos.h: Declare it.
8953         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8954
8955 2011-03-26  Alan Modra  <amodra@gmail.com>
8956
8957         PR target/47487
8958         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8959         GNU Go in traceback table.
8960
8961 2011-03-25  Richard Henderson  <rth@redhat.com>
8962
8963         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8964         if there are exactly 6 operands.
8965         (set_storage_via_setmem): Similarly.
8966
8967 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8968
8969         * collect2.c (write_c_file_stat): Handle backslash
8970         as right-hand directory separator.
8971         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8972         checking just for slash.
8973         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8974         instead of checking for trailing slash.
8975         * gcc.c (record_temp_file): Use filename_cmp instead
8976         of strcmp.
8977         (do_spec_1): Likewise.
8978         (replace_outfile_spec_function): Likewise.
8979         (is_directory): Use filename_ncmp instead of strncmp.
8980         (print_multilib_info): Likewise.
8981         * gcov.c (find_source): Use filename_cmp instead
8982         instead of strcmp.
8983         (make_gcov_file_name): Fix order of slash/backslash
8984         checks.
8985         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8986         (add_standard_paths): Likewise.
8987         * mips-tfile.c (saber_stop): Handle backslash.
8988         * prefix.c (update_path): Use filename_ncmp instead of
8989         strncmp.
8990         * profile.c (output_location): Use filename_cmp instead
8991         of strcmp.
8992         * read-md.c (handle_toplevel_file): Handle backslash.
8993         * tlink.c (frob_extension):  Likewise.
8994         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8995         strcmp.
8996         * tree-dump.c (dequeue_and_dump): Handle backslash.
8997         * tree.c (get_file_function_name): Likewise.
8998         * gengtype.c (read_input_list): Likewise.
8999         (get_file_realbasename): Likewise.
9000         (get_output_file_with_visibility): Use filename_cmp
9001         instead of strcmp.
9002
9003 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9004
9005         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9006         case to VFPv1.
9007
9008 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9009
9010         * fold-const.c (expr_location_or): New function.
9011         (fold_truth_not_expr): Call it.
9012
9013 2011-03-25  Jeff Law  <law@redhat.com>
9014
9015         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9016         va_end.
9017         * c-family/c-common.c (def_fn_type): Likewise.
9018         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9019         * emit-rtl.c (gen_rtvec): Likewise.
9020         * lto/lto-lang.c (def_fn_type): Likewise.
9021
9022 2011-03-25  Richard Guenther  <rguenther@suse.de>
9023
9024         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9025         also generate copies.
9026         (fini_copy_prop): Handle constant values properly.
9027
9028 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9029
9030         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9031         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9032         (hash_loc_operands, compare_loc_operands): Handle
9033         DW_OP_GNU_entry_value.
9034
9035 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9036
9037         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9038         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9039         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9040         comment and use macro TARGET_64BIT_MS_ABI instead.
9041         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9042         and change default behavior for 32-bit MS_ABI.
9043         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9044         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9045         32-bit, too.
9046         (ix86_cfun_abi): Likewise.
9047         (ix86_maybe_switch_abi): Adjust comment.
9048         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9049         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9050         instead of checking for SYSV_ABI.
9051         (ix86_nsaved_sseregs): Likewise.
9052         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9053         to 16 bytes.
9054         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9055         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9056         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9057         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9058         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9059
9060 2011-03-25  Richard Guenther  <rguenther@suse.de>
9061
9062         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9063         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9064         (verify_gimple): Remove.
9065         * tree-cfg.c (verify_gimple_call): Merge verification
9066         from verify_stmts.
9067         (verify_gimple_phi): Merge verification from verify_stmts.
9068         (verify_gimple_label): New function.
9069         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9070         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9071         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9072         (verify_stmts): Rename to verify_gimple_in_cfg.
9073         (verify_gimple_in_cfg): New function.
9074         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9075         * tree-ssa.c (verify_ssa): Likewise.
9076         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9077
9078 2011-03-25  Richard Guenther  <rguenther@suse.de>
9079
9080         * passes.c (init_optimization_passes): Add FRE pass after
9081         early SRA.
9082
9083 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9084             Andrew Stubbs  <ams@codesourcery.com>
9085
9086         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9087         for Cortex-A8.
9088         (arm_movdi_vfp_cortexa8): New pattern.
9089         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9090         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9091         instructions when tuning for Cortex-A8.  Set attribute "arch".
9092         * config/arm/arm.md: Move include arm-tune.md up a bit.
9093         (define_attr "arch"): Add "onlya8" and "nota8" values.
9094         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9095
9096 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9097
9098         PR bootstrap/48282
9099         Revert:
9100         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9101
9102         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9103         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9104         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9105         * passes.c (init_optimization_passes): Move
9106         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9107
9108 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9109
9110         * c-typeck.c (comptypes_internal): Replace target
9111         hook call of comp_type_attributes by version in tree.c file.
9112         * gimple.c (gimple_types_compatible_p_1): Likewise.
9113         * tree-ssa.c (useless_type_conversion_p): Likewise.
9114         * tree.c (build_type_attribute_qual_variant): Likewise.
9115         (attribute_value_equal): New static helper function.
9116         (comp_type_attributes): New function.
9117         (merge_attributes): Use attribute_value_equal for comparison.
9118         (attribute_list_contained): Likewise.
9119         * tree.h (comp_type_attributes): New prototype.
9120
9121 2011-03-25  Richard Guenther  <rguenther@suse.de>
9122
9123         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9124         of complex types at -O0.
9125         (verify_gimple_assign_binary): Likewise.
9126         (verify_gimple_assign_ternary): Likewise.
9127
9128 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9129
9130         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9131         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9132
9133 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9134
9135         PR debug/48041
9136         * dwarf2out.c (output_abbrev_section): Only write table when
9137         abbrev_die_table_in_use > 1.
9138
9139 2011-02-24  Richard Henderson  <rth@redhat.com>
9140
9141         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9142         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9143         (alpha_expand_unaligned_load_words): Use extql.
9144         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9145         (emit_insxl): Handle all modes for consistency.
9146
9147 2011-02-24  Richard Henderson  <rth@redhat.com>
9148
9149         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9150         (alpha_expand_unaligned_load): Likewise.
9151         (alpha_expand_unaligned_store): Likewise.
9152         (alpha_expand_unaligned_load_words): Likewise.
9153         (alpha_expand_unaligned_store_words): Likewise.
9154         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9155         (alpha_split_lock_test_and_set_12): Likewise.
9156         (print_operand, alpha_fold_builtin_extxx): Likewise.
9157         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9158         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9159         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9160         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9161         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9162         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9163         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9164         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9165         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9166         (extwl, extll, extql): Similarly.
9167         (inswh, inslh, insqh): Similarly.
9168         (mskbl, mskwl, mskll, mskql): Similarly.
9169         (mskwh, msklh, mskqh): Similarly.
9170
9171 2011-02-24  Richard Henderson  <rth@redhat.com>
9172
9173         * config/alpha/alpha.md (attribute isa): Add er, ner.
9174         (attribute enabled): Handle them.
9175         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9176
9177 2011-02-24  Richard Henderson  <rth@redhat.com>
9178
9179         * config/alpha/alpha.md (attribute isa): Add vms.
9180         (attribute enabled): Handle it.
9181         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9182         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9183         (*movtf): Rename from *movtf_internal for consistency.
9184         (*movsi): Merge with *movsi_nt_vms.
9185         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9186         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9187         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9188         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9189
9190 2011-02-24  Richard Henderson  <rth@redhat.com>
9191
9192         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9193         (extendqisi2, extendhisi2): Likewise.
9194         (extendqidi2): Simplify BWX/non-BWX expansions.
9195         (extendhidi2): Similarly.
9196
9197 2011-02-24  Richard Henderson  <rth@redhat.com>
9198
9199         * config/alpha/alpha.md (attribute isa): New.
9200         (attribute enabled): New.
9201         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9202         (zero_extendqisi2, zero_extendqidi2): Similarly.
9203         (zero_extendhisi2, zero_extendhidi2): Similarly.
9204         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9205
9206 2011-02-24  Richard Henderson  <rth@redhat.com>
9207
9208         * config/alpha/predicates.md (input_operand): Revert last change;
9209         update comment to mention 32-bit VMS rather than Windows.
9210
9211 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9212
9213         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9214         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9215         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9216         * passes.c (init_optimization_passes): Move
9217         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9218
9219 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9220
9221         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9222
9223 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9224
9225         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9226         correctly.
9227
9228 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9229
9230         PR debug/48204
9231         * simplify-rtx.c (simplify_const_unary_operation): Call
9232         real_convert when changing mode class with FLOAT_EXTEND.
9233
9234 2011-03-24  Nick Clifton  <nickc@redhat.com>
9235
9236         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9237         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9238         * config/rx/rx.c (rx_option_override): Set align_jumps,
9239         align_loops and align_labels if not set by the user.
9240         (rx_align_for_label): New function.
9241         (rx_max_skip_for_label): New function.
9242         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9243         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9244         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9245         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9246         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9247
9248 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9249
9250         PR rtl-optimization/48263
9251         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9252         and original commutative_p handling.  Use maybe_gen_insn.
9253
9254 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9255
9256         * reload.c (find_reloads_subreg_address): Add address_reloaded
9257         parameter and return true there if the full address has been
9258         reloaded.
9259         (find_reloads_toplev): Pass address_reloaded flag.
9260         (find_reloads_address_1): Don't use address_reloaded parameter.
9261
9262 2011-03-24  Jeff Law  <law@redhat.com>
9263
9264         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9265         unused variable "ann".
9266         (remove_unused_locals): Likewise.
9267
9268         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9269         statement.
9270
9271         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9272         after it is freed.
9273
9274 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9275
9276         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9277         for invalid symbolic addresses.
9278         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9279         larl operands.
9280
9281 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9282
9283         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9284         the argument in calls to fold_truth_not_expr.
9285
9286 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9287
9288         * tree.c (record_node_allocation_statistics): New function.
9289         (make_node_stat, copy_node_stat, build_string): Call it.
9290         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9291         (build1_stat, build_omp_clause): Likewise.
9292
9293 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9294
9295         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9296         last commit.
9297
9298 2011-03-24  Richard Guenther  <rguenther@suse.de>
9299
9300         PR tree-optimization/48271
9301         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9302         blocks that still exist.
9303
9304 2011-03-24  Richard Guenther  <rguenther@suse.de>
9305
9306         PR tree-optimization/48270
9307         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9308         not free datarefs before ddrs.
9309
9310 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9311
9312         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9313         from the address built for a reference with variable offset.
9314
9315 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9316
9317         PR target/48237
9318         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9319         alternatives that can be handled with movq or movabsq insn.
9320         (*movdf_internal): Disable for !TARGET_64BIT.
9321         (*movdf_internal_nointeger): Ditto.
9322         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9323
9324 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9325
9326         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9327         (FUNCTION_ARG_ADVANCE): Likewise.
9328         * tm.texi.in: Change references to them to hook references.
9329         * tm.texi: Regenerate.
9330         * targhooks.c (default_function_arg): Eliminate check for target macro.
9331         (default_function_incoming_arg): Likewise.
9332         (default_function_arg_advance): Likewise.
9333         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9334         (function_arg_advance): Likewise.
9335         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9336
9337 2011-03-24  Richard Guenther  <rguenther@suse.de>
9338
9339         PR middle-end/48269
9340         * tree-object-size.c (addr_object_size): Do not double-account
9341         for MEM_REF offsets.
9342
9343 2011-03-24  Diego Novillo  <dnovillo@google.com>
9344
9345         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9346         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9347         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9348         Update all users.
9349         (lto_input_string): Rename from input_string.  Make extern.
9350         Update all users.
9351         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9352         output_string_with_length.
9353         Output 0 to indicate a non-NULL string.  Update all callers to
9354         not emit 0.
9355         (lto_output_string): Rename from output_string.  Make extern.
9356         Update all users.
9357         (lto_output_decl_state_streams): Make extern.
9358         (lto_output_decl_state_refs): Make extern.
9359         * lto-streamer.h (lto_input_string): Declare.
9360         (lto_input_data_block): Declare.
9361         (lto_output_string): Declare.
9362         (lto_output_string_with_length): Declare.
9363         (lto_output_decl_state_streams): Declare.
9364         (lto_output_decl_state_refs): Declare.
9365
9366 2011-03-24  Richard Guenther  <rguenther@suse.de>
9367
9368         PR tree-optimization/46562
9369         * tree.c (build_invariant_address): New function.
9370         * tree.h (build_invariant_address): Declare.
9371         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9372         a renamed function moved ...
9373         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9374         Take valueization callback parameter.
9375         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9376         * gimple-fold.h: New file.
9377         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9378         (ccp_fold, fold_const_aggregate_ref,
9379         fold_ctor_reference, fold_nonarray_ctor_reference,
9380         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9381         get_base_constructor): Move ...
9382         * gimple-fold.c: ... here.
9383         (gimple_fold_stmt_to_constant_1): New function
9384         split out from ccp_fold.  Take a valueization callback parameter.
9385         Valueize all operands.
9386         (gimple_fold_stmt_to_constant): New wrapper function.
9387         (fold_const_aggregate_ref_1): New function split out from
9388         fold_const_aggregate_ref.  Take a valueization callback parameter.
9389         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9390         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9391         invariant POINTER_PLUS_EXPRs to invariant form.
9392         (vn_valueize): New function.
9393         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9394         * tree-vrp.c (vrp_valueize): New function.
9395         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9396         to fold statements to constants.
9397         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9398         function declarations.
9399         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9400         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9401
9402 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9403
9404         * config/h8300/predicates.md (jump_address_operand): Fix register
9405         mode check.
9406
9407 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9408
9409         * doc/invoke.texi (max-stores-to-sink): Document.
9410         * params.h (MAX_STORES_TO_SINK): Define.
9411         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9412         if either vectorization or if-conversion is disabled.
9413         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9414         tree-vect-data-refs.c vect_equal_offsets.
9415         (dr_equal_offsets_p): New function.
9416         (find_data_references_in_bb): Remove static.
9417         * tree-data-ref.h (find_data_references_in_bb): Declare.
9418         (dr_equal_offsets_p): Likewise.
9419         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9420         (vect_drs_dependent_in_basic_block): Update calls to
9421         vect_equal_offsets.
9422         (vect_check_interleaving): Likewise.
9423         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9424         (cond_if_else_store_replacement): Rename to...
9425         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9426         documentation.
9427         (cond_if_else_store_replacement): New function.
9428         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9429         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9430
9431 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9432
9433         PR target/46934
9434         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9435         to subtract lower bound instead of GEN_INT().
9436
9437 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9438
9439         PR other/48179
9440         PR other/48221
9441         PR other/48234
9442         * doc/extend.texi (Alignment): Move section to match order in TOC.
9443         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9444         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9445
9446 2011-03-23  Jeff Law  <law@redhat.com>
9447
9448         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9449         before removing the edge.
9450
9451         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9452         it may have been freed by redirect_branch_edge or
9453         redirect_edge_succ_nodup.
9454
9455 2011-03-23  Richard Guenther  <rguenther@suse.de>
9456
9457         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9458         (check_va_list_escapes): Likewise.
9459         (check_all_va_list_escapes): Likewise.
9460
9461 2011-03-23  Richard Guenther  <rguenther@suse.de>
9462
9463         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9464         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9465         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9466         (alias.o): Likewise.
9467         (ipa-type-escape.o): Remove.
9468         (ipa-struct-reorg.o): Likewise.
9469         (GTFILES): Remove ipa-struct-reorg.c.
9470         * alias.c: Do not include ipa-type-escape.h.
9471         * tree-ssa-alias.c: Likewise.
9472         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9473         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9474         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9475         and ipa-type-escape passes.
9476         * tree-pass.h (pass_ipa_type_escape): Remove.
9477         (pass_ipa_struct_reorg): Likewise.
9478         * ipa-struct-reorg.h: Remove.
9479         * ipa-struct-reorg.c: Likewise.
9480         * ipa-type-escape.h: Likewise.
9481         * ipa-type-escape.c: Likewise.
9482         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9483         (--param struct-reorg-cold-struct-ratio): Likewise.
9484         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9485         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9486         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9487
9488 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9489
9490         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9491         cpu attribute value.
9492         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9493         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9494         * config/s390/s390.c (processor_flags_table): New constant array.
9495         (s390_handle_arch_option): Remove.
9496         (s390_handle_option): Remove s390_handle_arch_option invocations
9497         and OPT_mwarn_framesize_ handling.
9498         (s390_option_override): Remove s390_handle_arch_option invocation.
9499         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9500         warnings.
9501         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9502         * config/s390/s390.opt (s390_tune, s390_arch)
9503         (march=): Replace s390_arch_option enum and values with
9504         processor_type.  Set variable name to s390_arch.  Set
9505         initialization value.
9506         (mtune=): Replace s390_arch_option with processor_type.  Set
9507         variable name to s390_tune.  Set initialization value.
9508
9509 2011-03-23  Julian Brown  <julian@codesourcery.com>
9510
9511         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9512         accesses which are not naturally aligned.
9513
9514 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9515
9516         PR target/47553
9517         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9518
9519 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9520
9521         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9522         parameter from "int" to "enum insn_code".
9523         (expand_operand_type): New enum.
9524         (expand_operand): New structure.
9525         (create_expand_operand): New function.
9526         (create_fixed_operand, create_output_operand): Likewise
9527         (create_input_operand, create_convert_operand_to): Likewise.
9528         (create_convert_operand_from, create_address_operand): Likewise.
9529         (create_integer_operand): Likewise.
9530         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9531         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9532         (expand_insn, expand_jump_insn): Likewise.
9533         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9534         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9535         (expand_movstr, expand_builtin___clear_cache): Likewise.
9536         (expand_builtin_lock_release): Likewise.
9537         * explow.c (allocate_dynamic_stack_space): Likewise.
9538         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9539         and use the default handling in that case.
9540         * expmed.c (check_predicate_volatile_ok): Delete.
9541         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9542         (emit_cstore): Likewise.
9543         * expr.c (emit_block_move_via_movmem): Likewise.
9544         (set_storage_via_setmem, expand_assignment): Likewise.
9545         (emit_storent_insn, try_casesi): Likewise.
9546         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9547         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9548         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9549         (expand_twoval_unop, expand_twoval_binop): Likewise.
9550         (expand_unop_direct, emit_indirect_jump): Likewise.
9551         (emit_conditional_move, vector_compare_rtx): Likewise.
9552         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9553         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9554         (expand_sync_lock_test_and_set): Likewise.
9555         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9556         (emit_unop_insn): Likewise.
9557         (expand_copysign_absneg): Change icode to an insn_code.
9558         (create_convert_operand_from_type): New function.
9559         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9560         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9561         (expand_insn, expand_jump_insn): Likewise.
9562         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9563         than const_int_operand for operand 2.
9564
9565 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9566
9567         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9568         if possible.
9569
9570 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9571
9572         * emit-rtl.c (emit_pattern_before_noloc): New function.
9573         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9574         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9575         (emit_pattern_after_noloc): New function.
9576         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9577         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9578
9579 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9580
9581         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9582         (__ffsDI2): Likewise.
9583
9584 2011-03-22  Richard Henderson  <rth@redhat.com>
9585
9586         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9587         of !TARGET_ABI_OPEN_VMS.
9588         (alpha_trampoline_init, alpha_start_function): Likewise.
9589         (alpha_expand_epilogue, alpha_file_start): Likewise.
9590         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9591         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9592         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9593         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9594         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9595
9596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9597
9598         * config/s390/s390-opts.h: New.
9599         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9600         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9601         s390_stack_guard): Remove.
9602         (s390_handle_arch_option): Return void.  Take enum
9603         s390_arch_option value instead of string and searching array.
9604         (s390_handle_option): Don't assert that global structures are in
9605         use.  Access variables via opts pointer.  Use error_at.  Don't use
9606         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9607         s390_handle_arch_option.
9608         (s390_option_override): Update call to s390_handle_arch_option.
9609         (s390_emit_prologue): Use %d format for s390_stack_size in
9610         diagnostic.  Use %wd for HOST_WIDE_INT.
9611         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9612         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9613         * config/s390/s390.opt (config/s390/s390-opts.h): New
9614         HeaderInclude entry.
9615         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9616         s390_arch_flags, s390_warn_framesize): New Variable entries.
9617         (s390_arch_option): New Enum and EnumValue entries.
9618         (march=): Use Enum instead of Var.
9619         (mstack-guard=, mstack-size=): Use UInteger and Var.
9620         (mtune=): Use Enum.
9621
9622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9623
9624         * config/score/score.c (score_handle_option): Don't assert that
9625         global structures are in use.  Access target_flags via opts
9626         pointer.  Use value of -march= option to determine target_flags
9627         settings.
9628         * config/score/score.opt (march=): Use Enum.
9629         (score_arch): New Enum and EnumValue entries.
9630
9631 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9632
9633         * config/mep/mep.c (option_mtiny_specified): Remove.
9634         (mep_option_override): Move register handling for -mivc2 from
9635         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9636         instead of option_mtiny_specified.
9637         (mep_handle_option): Access target_flags via opts pointer.  Don't
9638         assert that global structures are in use.  Defer part of -mivc2
9639         handling and move it to mep_option_override.
9640         * config/mep/mep.opt (IVC2): New Mask entry.
9641         (mivc2): Use Var and Defer instead of Mask.
9642
9643 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9644
9645         * config/v850/v850-opts.h: New.
9646         * config/v850/v850.c (small_memory): Replace with
9647         small_memory_physical_max array.  Make that array static const.
9648         (v850_handle_memory_option): Take integer value of argument.  Take
9649         gcc_options pointer, option text and location.  Return void.
9650         Update for changes to small memory structures.
9651         (v850_handle_option): Access target_flags via opts pointer.  Don't
9652         assert that global structures are in use.  Update calls to
9653         v850_handle_memory_option.
9654         (v850_encode_data_area): Update references to small memory settings.
9655         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9656         (enum small_memory_type): Move to v850-opts.h.
9657         * config/v850/v850.opt (config/v850/v850-opts.h): New
9658         HeaderInclude entry.
9659         (small_memory_max): New Variable entry.
9660         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9661         (mtda, mzda): Likewise.
9662
9663 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9664
9665         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9666         pointer.  Don't assert that global structures are in use.
9667
9668 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9669
9670         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9671         via opts pointer.  Don't assert that global structures are in use.
9672
9673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9674
9675         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9676         (munix=93): Use Var.
9677         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9678         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9679         * config/pa/pa-opts.h: New.
9680         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9681         (pa_handle_option): Don't assert that global structures are in
9682         use.  Access target_flags via opts pointer.  Don't handle
9683         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9684         OPT_munix_98 here.
9685         (pa_option_override): Handle deferred OPT_mfixed_range_.
9686
9687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9688
9689         * config/mn10300/mn10300-opts.h: New.
9690         * config/mn10300/mn10300.c (mn10300_processor,
9691         mn10300_tune_string): Remove.
9692         (mn10300_handle_option): Don't assert that global structures are
9693         in use.  Access mn10300_processor via opts pointer.  Don't handle
9694         OPT_mtune_ here.
9695         * config/mn10300/mn10300.h (enum processor_type): Move to
9696         mn10300-opts.h.
9697         (mn10300_processor): Remove.
9698         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9699         HeaderInclude entry.
9700         (mn10300_processor): New Variable entry.
9701         (mtune=): Use Var.
9702
9703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9704
9705         * config/microblaze/microblaze.c: Don't include opts.h.
9706         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9707         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9708         (mno-clearbss): Use Var and Warn.
9709
9710 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9711
9712         * config/m32r/m32r-opts.h: New.
9713         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9714         (m32r_handle_option): Don't assert that global structures are in
9715         use.  Access target_flags and m32r_cache_flush_func via opts
9716         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9717         OPT_mno_flush_trap here.
9718         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9719         include of m32r-opts.h.
9720         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9721         HeaderInclude entry.
9722         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9723         (mmodel=): Use Enum and Var.
9724         (m32r_model): New Enum and EnumValue entries.
9725         (mno-flush-trap): Use Var.
9726         (msdata=): Use Enum and Var.
9727         (m32r_sdata): New Enum and EnumValue entries.
9728
9729 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9730
9731         * config/m32c/m32c.c: Don't include opts.h.
9732         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9733         m32c_handle_option): Remove.
9734         (m32c_option_override): Check global_options_set.x_target_memregs
9735         instead of target_memregs_set.
9736         * config/m32c/m32c.h (target_memregs): Remove.
9737         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9738         variable.
9739
9740 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9741
9742         * config/iq2000/iq2000-opts.h: New.
9743         * config/iq2000/iq2000.c: Don't include opts.h.
9744         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9745         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9746         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9747         HeaderInclude entry.
9748         (iq2000_tune): New Variable entry.
9749         (march=): Add comment.  Use Enum.
9750         (iq2000_arch): New Enum and EnumValue entries.
9751         (mcpu=): Use Enum and Var.
9752         (iq2000_tune): New Enum and EnumValue entries.
9753
9754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9755
9756         * config/ia64/ia64-opts.h: New.
9757         * config/ia64/ia64.c (ia64_tune): Remove.
9758         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9759         here.  Use error_at.
9760         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9761         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9762         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9763         HeaderInclude entry.
9764         (ia64_tune): New Variable entry.
9765         (mfixed-range=): Use Defer and Var.
9766         (mtune=): Use Enum and Var.
9767         (ia64_tune): New Enum and EnumValue entries.
9768
9769 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9770
9771         * config/frv/frv-opts.h: New.
9772         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9773         frv-opts.h.
9774         (frv_cpu_type): Remove.
9775         * config/frv/frv.c: Don't include opts.h.
9776         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9777         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9778         (frv_cpu_type): New Variable entry.
9779         (frv_cpu): New Enum and EnumValue entries.
9780
9781 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9782
9783         * config/cris/cris.c (cris_handle_option): Access target_flags via
9784         opts pointer.  Don't assert that global structures are in use.
9785         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9786         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9787
9788 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9789
9790         * config/bfin/bfin-opts.h: New.
9791         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9792         bfin_si_revision, bfin_workarounds): Remove.
9793         (bfin_cpus): Make static const.
9794         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9795         not bfin_lib_id_given.
9796         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9797         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9798         pointer. Use error_at.  Don't assert that global structures are in use.
9799         * config/bfin/bfin.h: Include bfin-opts.h.
9800         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9801         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9802         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9803         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9804         entries.
9805
9806 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9807
9808         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9809         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9810         or -msoft-float here.
9811         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9812         -msoft-float and -mhard-float.
9813         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9814         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9815         msoft-float.
9816         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9817         -msoft-float.
9818         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9819         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9820         not mhard-float.
9821         (LIBGCC_SPEC): Don't handle -msoft-float.
9822         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9823         -mhard-float.
9824         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9825         msoft-float.
9826         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9827         -mfloat-abi=*, not -msoft-float and -mhard-float.
9828         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9829         -msoft-float.
9830         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9831         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9832         mhard-float and msoft-float.
9833         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9834         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9835         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9836         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9837         mhard-float.
9838         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9839         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9840         msoft-float.
9841         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9842         not mhard-float.
9843         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9844         not msoft-float.
9845
9846 2011-03-22  Richard Henderson  <rth@redhat.com>
9847
9848         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9849         TARGET_ABI_WINDOWS_NT.
9850         (alpha_output_function_end_prologue): Likewise.
9851         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9852         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9853         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9854         (trap, *movsi_nt_vms): Likewise.
9855         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9856         (*tablejump_osf_nt_internal): Remove.
9857         * config/alpha/predicates.md (input_operand): Only test Pmode.
9858
9859 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9860
9861         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9862         via opts pointer.  Use error_at.  Don't assert that global
9863         structures are in use.
9864
9865 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9866
9867         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9868         (ix86_handle_option): Access ix86_isa_flags and
9869         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9870         global structures are in use.
9871         (ix86_function_specific_save, ix86_function_specific_restore):
9872         Update ix86_isa_flags_explicit field name.
9873         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9874         (ix86_isa_flags_explicit): Rename TargetSave entry to
9875         x_ix86_isa_flags_explicit.
9876
9877 2011-03-22  Richard Henderson  <rth@redhat.com>
9878
9879         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9880         (alpha_option_override, direct_return): Likewise.
9881         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9882         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9883         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9884         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9885         (alpha_expand_epilogue, alpha_end_function): Likewise.
9886         (alpha_init_libfuncs): Likewise.
9887         (struct machine_function): Remove unicosmk members.
9888         (print_operand) ['t']: Remove.
9889         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9890         unicosmk_output_module_name, unicosmk_output_common,
9891         current_section_align, unicosmk_output_text_section_asm_op,
9892         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9893         unicosmk_section_type_flags, unicosmk_unique_section,
9894         unicosmk_asm_named_section, unicosmk_insert_attributes,
9895         unicosmk_output_align, unicosmk_defer_case_vector,
9896         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9897         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9898         unicosmk_output_ssib, unicosmk_add_call_info_word,
9899         unicosmk_extern_head, unicosmk_output_default_externs,
9900         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9901         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9902         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9903         * config/alpha/alpha-protos.h: Update.
9904         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9905         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9906         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9907         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9908         (*mulsi_se, mulvsi3): Likewise.
9909         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9910         (*divmodsi_internal, call, call_value, realign): Likewise.
9911         (moddi3, umoddi3): Likewise; remove duplicate expander.
9912         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9913         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9914         (*movdi_nofix): Remove r/U alternative.
9915         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9916         * config/alpha/constraints.md ("U"): Remove.
9917         * config/alpha/predicates.md (call_operand"): Don't test
9918         TARGET_ABI_UNICOSMK.
9919
9920 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9921
9922         * target.def (handle_option): Take gcc_options and
9923         cl_decoded_option pointers and location_t.
9924         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9925         * doc/tm.texi: Regenerate.
9926         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9927         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9928         * lto-opts.c (lto_reissue_options): Generate option structure for
9929         targetm.handle_option call.
9930         * opts.c (target_handle_option): Update call to
9931         targetm.handle_option.  Remove assertions about values now passed
9932         down to hook.
9933         * targhooks.c (default_target_handle_option): New.
9934         * targhooks.h (default_target_handle_option): Declare.
9935         * config/alpha/alpha.c: Include opts.h.
9936         (alpha_handle_option): Update to new hook interface.
9937         * config/arm/arm.c: Include opts.h.
9938         (arm_handle_option): Update to new hook interface.
9939         * config/arm/t-arm (arm.o): Update dependencies.
9940         * config/bfin/bfin.c: Include opts.h.
9941         (bfin_handle_option): Update to new hook interface.
9942         * config/cris/cris.c: Include opts.h.
9943         (cris_handle_option): Update to new hook interface.
9944         * config/frv/frv.c: Include opts.h.
9945         (frv_handle_option): Update to new hook interface.
9946         * config/i386/i386.c: Include opts.h.
9947         (ix86_handle_option): Update to new hook interface.
9948         (ix86_valid_target_attribute_inner_p): Generate option structure
9949         for call to ix86_handle_option.
9950         * config/i386/t-i386 (i386.o): Update dependencies.
9951         * config/ia64/ia64.c: Include opts.h.
9952         (ia64_handle_option): Update to new hook interface.
9953         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9954         * config/iq2000/iq2000.c: Include opts.h.
9955         (iq2000_handle_option): Update to new hook interface.
9956         * config/m32c/m32c.c: Include opts.h.
9957         (m32c_handle_option): Update to new hook interface.
9958         * config/m32r/m32r.c: Include opts.h.
9959         (m32r_handle_option): Update to new hook interface.
9960         * config/m68k/m68k.c: Include opts.h.
9961         (m68k_handle_option): Update to new hook interface.
9962         * config/mep/mep.c: Include opts.h.
9963         (mep_handle_option): Update to new hook interface.
9964         * config/microblaze/microblaze.c: Include opts.h.
9965         (microblaze_handle_option): Update to new hook interface.
9966         * config/mips/mips.c: Include opts.h.
9967         (mips_handle_option): Update to new hook interface.
9968         * config/mn10300/mn10300.c: Include opts.h.
9969         (mn10300_handle_option): Update to new hook interface.
9970         * config/pa/pa.c: Include opts.h.
9971         (pa_handle_option): Update to new hook interface.
9972         * config/pdp11/pdp11.c: Include opts.h.
9973         (pdp11_handle_option): Update to new hook interface.
9974         * config/rs6000/rs6000.c: Include opts.h.
9975         (rs6000_handle_option): Update to new hook interface.
9976         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9977         * config/rx/rx.c: Include opts.h.
9978         (rx_handle_option): Update to new hook interface.
9979         * config/s390/s390.c: Include opts.h.
9980         (s390_handle_option): Update to new hook interface.
9981         * config/score/score.c: Include opts.h.
9982         (score_handle_option): Update to new hook interface.
9983         * config/sh/sh.c: Include opts.h.
9984         (sh_handle_option): Update to new hook interface.
9985         * config/sparc/sparc.c: Include opts.h.
9986         (sparc_handle_option): Update to new hook interface.
9987         * config/v850/v850.c: Include opts.h.
9988         (v850_handle_option): Update to new hook interface.
9989
9990 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9991
9992         * gcc.c (driver_unknown_option_callback): Only permit and save
9993         unknown -Wno- options.
9994         (driver_wrong_lang_callback): Save options directly instead of via
9995         driver_unknown_option_callback.
9996
9997 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9998
9999         * combine.c (simplify_set): Try harder to find the best CC mode when
10000         simplifying a nested COMPARE on the RHS.
10001
10002 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10003
10004         * config/alpha/gnu.h: Remove.
10005         * config/arc: Remove directory.
10006         * config/arm/netbsd.h: Remove.
10007         * config/arm/t-pe: Remove.
10008         * config/crx: Remove directory.
10009         * config/i386/netbsd.h: Remove.
10010         * config/m68hc11: Remove directory.
10011         * config/m68k/uclinux-oldabi.h: Remove.
10012         * config/mcore/mcore-pe.h: Remove.
10013         * config/mcore/t-mcore-pe: Remove.
10014         * config/netbsd-aout.h: Remove.
10015         * config/rs6000/gnu.h: Remove.
10016         * config/sh/sh-symbian.h: Remove.
10017         * config/sh/symbian-base.c: Remove.
10018         * config/sh/symbian-c.c: Remove.
10019         * config/sh/symbian-cxx.c: Remove.
10020         * config/sh/symbian-post.h: Remove.
10021         * config/sh/symbian-pre.h: Remove.
10022         * config/sh/t-symbian: Remove.
10023         * config/svr3.h: Remove.
10024         * config/vax/netbsd.h: Remove.
10025         * config.build: Don't handle i[34567]86-*-pe.
10026         * config.gcc: Remove handling of deprecations for most deprecated
10027         targets.
10028         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10029         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10030         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10031         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10032         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10033         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10034         Remove cases.
10035         * config.host: Don't handle i[34567]86-*-pe.
10036         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10037         (ASM_SPEC32): Don't handle -mcall-gnu.
10038         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10039         -mcall-gnu.
10040         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10041         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10042         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10043         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10044         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10045         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10046         conditional on SYMBIAN.
10047         * configure.ac: Don't handle powerpc*-*-gnu*.
10048         * configure: Regenerate.
10049         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10050         * doc/install-old.texi (m6811, m6812): Don't mention.
10051         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10052         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10053         (m68k-uclinuxoldabi): Don't mention.
10054         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10055         Remove.
10056         (-mcall-gnu): Remove.
10057         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10058         families): Remove constraint documentation.
10059
10060 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10061
10062         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10063         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10064         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10065
10066 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10067
10068         PR target/48226
10069         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10070         vector when peeking at the next token for vector, don't expand the
10071         keywords.
10072
10073 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10074
10075         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10076         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10077         * config/avr/avr.c (init_cumulative_args)
10078         (avr_function_arg_advance): Use it.
10079         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10080         sibcall epilogues.
10081         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10082         (avr_function_ok_for_sibcall): ...this new function.
10083         (avr_lookup_function_attribute1): New static Function.
10084         (avr_naked_function_p, interrupt_function_p)
10085         (signal_function_p, avr_OS_task_function_p)
10086         (avr_OS_main_function_p): Use it.
10087         * config/avr/avr.md ("sibcall", "sibcall_value")
10088         ("sibcall_epilogue"): New expander.
10089         ("*call_insn", "*call_value_insn"): New insn.
10090         ("call_insn", "call_value_insn"): Remove
10091         ("call", "call_value", "epilogue"): Change expander to handle
10092         sibling calls.
10093
10094 2011-03-21  Nick Clifton  <nickc@redhat.com>
10095
10096         * doc/invoke.texi (Overall Options): Move closing brace to end of
10097         options list.
10098         (Optimization Options): Add missing @gol.
10099         (Directory Options): Likewise.
10100         (i386 and x86-64 Options): Likewise.
10101         (RS6000 and PowerPC Options): Likewise.
10102         (i386 and x86-64 Windows Options): Likewise.
10103         (V850 Options): Add text missing from descriptions.
10104
10105 2011-03-22  Richard Henderson  <rth@redhat.com>
10106
10107         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10108         (avr_incoming_return_addr_rtx): New.
10109         (emit_push_byte): New.
10110         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10111         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10112         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10113         (emit_pop_byte): New.
10114         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10115         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10116         (INCOMING_RETURN_ADDR_RTX): New.
10117         (INCOMING_FRAME_SP_OFFSET): New.
10118         (ARG_POINTER_CFA_OFFSET): New.
10119         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10120         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10121         (pophi): Remove.
10122
10123         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10124
10125 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10126
10127         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10128         (FUNCTION_ARG_ADVANCE): Likewise.
10129         * tm.texi.in: Change references to them to hook references.
10130         * tm.texi: Regenerate.
10131         * targhooks.c (default_function_arg): Eliminate check for target
10132         macro.
10133         (default_function_incoming_arg): Likewise.
10134         (default_function_arg_advance): Likewise.
10135         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10136         (function_arg_advance): Likewise.
10137         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10138
10139 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10140
10141         * tree.c (build_call_1): New function.
10142         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10143
10144 2011-03-22  Richard Guenther  <rguenther@suse.de>
10145
10146         PR tree-optimization/48228
10147         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10148         for single-arg PHIs.
10149
10150 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10151
10152         PR rtl-optimization/48143
10153         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10154         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10155         sse2_cvtps2pd): Likewise.
10156
10157 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10158
10159         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10160
10161 2011-03-22  Richard Guenther  <rguenther@suse.de>
10162
10163         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10164         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10165         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10166         and REALIGN_LOAD_EXPR.
10167         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10168         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10169         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10170         DOT_PROD_EXPR case ...
10171         (expand_expr_real_2): ... here.
10172         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10173         and REALIGN_LOAD_EXPR.
10174         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10175         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10176         (vect_create_epilog_for_reduction): Likewise.
10177         (vectorizable_reduction): Likewise.
10178         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10179         * tree-vect-stmts.c (vectorizable_load): Likewise.
10180
10181 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10182
10183         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10184
10185 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10186
10187         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10188         handling for PLTOFF/GOTOFF.
10189
10190 2011-03-22  Nick Clifton  <nickc@redhat.com>
10191
10192         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10193         trailing backslash from the end of the macro definition.
10194
10195 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10196
10197         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10198         and PLT unspecs.
10199
10200 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10201
10202         * expr.h (prepare_operand): Move to...
10203         * optabs.h (prepare_operand): ...here and change the insn code
10204         parameter from "int" to "enum insn_code".
10205         (insn_operand_matches): Declare.
10206         * expr.c (init_expr_target): Use insn_operand_matches.
10207         (compress_float_constant): Likewise.
10208         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10209         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10210         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10211         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10212         Likewise.
10213         (gen_cond_trap): Likewise.
10214         (prepare_operand): Likewise.  Change icode to an insn_code.
10215         (insn_operand_matches): New function.
10216         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10217         * reload1.c (gen_reload): Likewise.
10218         * targhooks.c (default_secondary_reload): Likewise.
10219
10220 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10221
10222         * config/alpha/alpha.md (unspec): New define_c_enum.
10223         (unspecv): Ditto.
10224
10225 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10226
10227         PR debug/48214
10228         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10229         between a call and its CALL_ARG_LOCATION note.
10230
10231 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10232
10233         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10234
10235 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10236
10237         PR c/42544
10238         PR c/48197
10239         * c-common.c (shorten_compare): If primopN is first sign-extended
10240         to opN and then zero-extended to result type, set primopN to opN.
10241
10242 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10243
10244         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10245         for barrier handlers.
10246
10247 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10248
10249         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10250         UNSPEC constants to be in the unspec enumeration, and redefine
10251         all UNSPECV constants to be in the unspecv enumeration, so that
10252         dumps print which unspec/unspec_volatile this is.
10253         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10254         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10255         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10256         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10257         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10258
10259         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10260         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10261         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10262         * config/rs6000/sync.md (isync, lwsync): Ditto.
10263
10264 2011-03-21  Richard Guenther  <rguenther@suse.de>
10265
10266         * params.def (lto-min-partition): Fix typo.
10267
10268 2011-03-21  Richard Guenther  <rguenther@suse.de>
10269
10270         PR c/47939
10271         * c-decl.c (grokdeclarator): Drop to the main variant only
10272         for array types.  Drop flag_gen_aux_info check.
10273
10274 2011-03-21  Richard Guenther  <rguenther@suse.de>
10275
10276         PR translation/47911
10277         * params.def (lto-partitions): Fix typo.
10278         (lto-min-partition): Fix wording.
10279
10280 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10281
10282         * config/rs6000/t-freebsd: Remove duplication from file.
10283
10284 2011-03-21  Richard Guenther  <rguenther@suse.de>
10285
10286         PR middle-end/47661
10287         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10288
10289 2011-03-21  Richard Guenther  <rguenther@suse.de>
10290
10291         PR lto/48210
10292         * params.def (lto-partitions): Require at least 1 partition.
10293
10294 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10295
10296         * gthr-solaris.h: Remove.
10297         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10298         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10299         (LIB_SPEC): Likewise.
10300         * config/sol2.opt (threads): Remove.
10301         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10302         (sparc*-*-solaris2*): Likewise.
10303         * configure.ac (enable_threads): Enable solaris support.
10304         * configure: Regenerate.
10305         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10306         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10307         solaris.
10308
10309 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10310
10311         * config.gcc: Obsolete *-*-solaris2.8*.
10312         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10313
10314 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10315
10316         PR bootstrap/48135
10317         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10318         reference.  Solaris 8 perl works.
10319
10320 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10321
10322         PR bootstrap/48135
10323         * doc/install.texi (Prerequisites): Move jar etc. up.
10324         Explain support library version requirements.
10325
10326 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10327
10328         PR bootstrap/48135
10329         * doc/install.texi (Prerequisites): Move Perl to build
10330         requirements.  Always necessary on Solaris 2 with Sun ld.
10331
10332 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10333
10334         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10335         binutils 2.21.
10336         (Specific, i?86-*-solaris2.[89]): Likewise.
10337         (Specific, i?86-*-solaris2.10): Likewise.
10338         (Specific, mips-sgi-irix6): Likewise.
10339         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10340         Update for binutils 2.21.
10341
10342 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10343
10344         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10345         Allow -fuse-linker-plugin for non-default plugin linker.
10346         * configure: Regenerate.
10347
10348 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10349
10350         PR bootstrap/48167
10351         * gengtype.c (files_rules): Added rule for cp/parser.h.
10352
10353 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10354
10355         PR target/48213
10356         * config/s390/s390.c (s390_delegitimize_address): Don't call
10357         lowpart_subreg if orig_x has BLKmode.
10358
10359 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10360
10361         PR target/12171
10362         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10363         * tree.h (attribute_spec): Add new member affects_type_identity.
10364         * attribs.c (empty_attribute_table): Adjust attribute_spec
10365         initializers.
10366         * config/alpha/alpha.c: Likewise.
10367         * config/arc/arc.c: Likewise.
10368         * config/arm/arm.c: Likewise.
10369         * config/avr/avr.c: Likewise.
10370         * config/bfin/bfin.c: Likewise.
10371         * config/crx/crx.c: Likewise.
10372         * config/darwin.h: Likewise.
10373         * config/h8300/h8300.c: Likewise.
10374         * config/i386/cygming.h: Likewise.
10375         * config/i386/i386.c: Likewise.
10376         * config/ia64/ia64.c: Likewise.
10377         * config/m32c/m32c.c: Likewise.
10378         * config/m32r/m32r.c: Likewise.
10379         * config/m68hc11/m68hc11.c: Likewise.
10380         * config/m68k/m68k.c: Likewise.
10381         * config/mcore/mcore.c: Likewise.
10382         * config/mep/mep.c: Likewise.
10383         * config/microblaze/microblaze.c: Likewise.
10384         * config/mips/mips.c: Likewise.
10385         * config/rs6000/rs6000.c: Likewise.
10386         * config/rx/rx.c: Likewise.
10387         * config/sh/sh.c: Likewise.
10388         * config/sol2.h: Likewise.
10389         * config/sparc/sparc.c: Likewise.
10390         * config/spu/spu.c: Likewise.
10391         * config/stormy16/stormy16.c: Likewise.
10392         * config/v850/v850.c: Likewise.
10393
10394 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10395
10396         * simplify-rtx.c (simplify_binary_operation_1): Handle
10397         (xor (and A B) C) case when B and C are both constants.
10398
10399 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10400
10401         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10402
10403 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10404
10405         PR bootstrap/48168
10406         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10407
10408 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10409
10410         PR rtl-optimization/48156
10411         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10412         assume df and df_lr are not NULL.
10413
10414 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10415
10416         PR debug/48023
10417         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10418         between a call and its CALL_ARG_LOCATION note.
10419
10420 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10421
10422         PR debug/48178
10423         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10424         between a call and its corresponding CALL_ARG_LOCATION note.
10425
10426 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10427
10428         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10429         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10430         * haifa-sched.c (setup_ref_regs): Ditto.
10431         * caller-save.c (add_used_regs_1): Ditto.
10432         * dse.c (look_for_hardregs): Ditto.
10433         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10434         * sched-rgn.c (check_live_1): Ditto.
10435
10436 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * c-decl.c (diagnose_mismatched_decls): Give an error for
10439         redefining a typedef with variably modified type.
10440
10441 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10442
10443         * c-decl.c (grokfield): Don't allow typedefs for structures or
10444         unions with no tag by default.
10445         * doc/extend.texi (Unnamed Fields): Update.
10446
10447 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10448
10449         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10450         Rewrite using indirect functions.
10451         (lwp_slwpcb): Ditto.
10452         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10453         (avx_vinsertf128<mode>): Ditto.
10454
10455 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10456
10457         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10458         unspecs.
10459
10460 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10461
10462         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10463         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10464
10465 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10466
10467         PR rtl-optimization/48170
10468         * gcse.c (hoist_code): Remove bogus asserts.
10469
10470 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10471
10472         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10473         computation for prologue/epilogue.
10474
10475 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10476
10477         * Makefile.in (check-consistency): Remove.
10478
10479 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10480
10481         PR debug/48176
10482         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10483         arange_table_in_use is 0, but either text_section_used or
10484         cold_text_section_used is true.  Don't call it if
10485         !info_section_emitted.
10486
10487 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10488
10489         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10490         FUNCTION_VALUE_REGNO_P): Remove.
10491         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10492         Remove.
10493         * config/avr/avr.c (avr_ret_register): Make static inline.
10494         (avr_function_value_regno_p): New function.
10495         (avr_libcall_value): Make static. Add 'func' argument.
10496         (avr_function_value): Make static. Rename 'func' argument to
10497         'fn_decl_or_type', forward it to avr_libcall_value. Call
10498         avr_ret_register function instead of RET_REGISTER macro.
10499         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10500
10501 2011-03-18  Jason Merrill  <jason@redhat.com>
10502
10503         PR c++/23372
10504         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10505
10506 2011-03-18  Richard Guenther  <rguenther@suse.de>
10507
10508         * doc/install.texi (--enable-gold): Remove.
10509         (--with-plugin-ld): Document.
10510         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10511
10512 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10513
10514         PR middle-end/47790
10515         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10516         again after expansion changes.
10517
10518 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10519
10520         * combine.c (try_combine): Do simplification only call of
10521         subst() on i2 even when i1 is present. Update comments.
10522
10523 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10524
10525         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10526         and UNSPEC_PCREL_SYMOFF.
10527
10528 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10529
10530         * config/s390/s390.md: Use define_c_enum for the unspec constant
10531         definitions.
10532
10533 2011-03-18  Richard Henderson  <rth@redhat.com>
10534             Jakub Jelinek  <jakub@redhat.com>
10535
10536         PR bootstrap/48161
10537         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10538         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10539
10540 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10541
10542         PR middle-end/47725
10543         * combine.c (cant_combine_insn_p): Don't check zero/sign
10544         extended hard registers.
10545
10546 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10547
10548         PR middle-end/47725
10549         * combine.c (cant_combine_insn_p): Check zero/sign extended
10550         hard registers.
10551
10552 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10553
10554         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10555         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10556         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10557         Change return type to bool.
10558         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10559
10560 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10561
10562         PR debug/48163
10563         * var-tracking.c (prepare_call_arguments): If CALL target
10564         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10565         pc instead of looking it up using cselib_lookup and use
10566         Pmode for it if x has VOIDmode.
10567         * dwarf2out.c (gen_subprogram_die): If also both first and
10568         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10569
10570         PR debug/48163
10571         * function.c (assign_parms): For data.passed_pointer parms
10572         use MEM of data.entry_parm instead of data.entry_parm itself
10573         as DECL_INCOMING_RTL.
10574         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10575         also when passed and declared mode is the same, DECL_RTL
10576         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10577         a MEM too.
10578
10579 2011-03-16  Jeff Law  <law@redhat.com>
10580
10581         PR rtl-optimization/37273
10582         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10583         handle them like argument loads from stack slots.  Do not double
10584         count memory for memory constants and argument loads from stack slots.
10585
10586 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10587
10588         PR debug/48160
10589         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10590
10591 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10592
10593         PR target/48171
10594         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10595
10596 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10597
10598         PR bootstrap/48153
10599         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10600         if dwarf_strict.
10601         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10602         Clear call_arg_locations and call_arg_loc_last always.
10603
10604         PR middle-end/48152
10605         * var-tracking.c (prepare_call_arguments): If argument needs to be
10606         passed by reference, adjust argtype and mode.
10607
10608 2011-03-17  Richard Guenther  <rguenther@suse.de>
10609
10610         PR middle-end/48134
10611         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10612         a value make sure to fold the statement.
10613
10614 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10615
10616         PR target/43872
10617         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10618         return condition with !cfun->calls_alloca.
10619
10620 2011-03-17  Richard Guenther  <rguenther@suse.de>
10621
10622         PR bootstrap/48148
10623         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10624         origin for decls in other ltrans units.
10625         (input_varpool_node): Likewise.
10626
10627 2011-03-17  Richard Guenther  <rguenther@suse.de>
10628
10629         PR middle-end/48165
10630         * tree-object-size.c (compute_object_offset): Properly return
10631         the offset operand of MEM_REFs as sizetype.
10632
10633 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10634
10635         PR rtl-optimization/48141
10636         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10637         * dse.c: Include params.h.
10638         (active_local_stores_len): New variable.
10639         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10640         to NULL.
10641         (record_store, check_mem_read_rtx): Decrease it when removing
10642         from the chain.
10643         (scan_insn): Likewise.  Increase it when adding to chain, if it
10644         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10645         set active_local_stores to NULL before the addition.
10646         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10647
10648         PR rtl-optimization/48141
10649         * dse.c (record_store): If no positions are needed in an insn
10650         that cannot be deleted, at least unchain it from active_local_stores.
10651
10652 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10653
10654         PR debug/47510
10655         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10656         (lookup_type_die_strip_naming_typedef): ... here.
10657         (get_context_die): Use it.
10658         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10659         the anonymous struct named by the naming typedef.
10660
10661 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10662
10663         PR target/48154
10664         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10665         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10666
10667 2011-03-16  Jeff Law  <law@redhat.com>
10668
10669         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10670         check for operands of conditional.  Allow type to be a pointer.
10671
10672 2011-03-16  Richard Guenther  <rguenther@suse.de>
10673
10674         PR tree-optimization/48149
10675         * fold-const.c (fold_binary_loc): Fold
10676         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10677
10678 2011-03-16  Richard Guenther  <rguenther@suse.de>
10679
10680         PR tree-optimization/26134
10681         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10682         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10683         (non_rewritable_mem_ref_base): Handle complex type component
10684         accesses, constrain offsets for vector and complex extracts
10685         more properly.
10686
10687 2011-03-16  Richard Guenther  <rguenther@suse.de>
10688
10689         PR tree-optimization/48146
10690         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10691         operands avoiding the need for renaming.
10692
10693 2011-03-16  Richard Guenther  <rguenther@suse.de>
10694
10695         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10696         constant folding.  Move MEM_REF canonicalization first.
10697         Rely on fold_const_aggregate_ref for initializer folding.
10698         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10699
10700 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10701
10702         PR middle-end/48136
10703         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10704         arg0/arg1 or their arguments are always fold converted to matching
10705         types.
10706
10707         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10708         to nargs.
10709
10710 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10711
10712         PR lto/46944
10713         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10714         Handle in-tree gold.
10715         (ld_vers): Extract binutils version for gold.
10716         (gcc_cv_ld_hidden): Handle gold here.
10717         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10718         * configure: Regenerate.
10719         * config.in: Regenerate.
10720         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10721         -fuse-linker-plugin otherwise.
10722         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10723         (LINK_COMMAND_SPEC): Use it.
10724         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10725
10726 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10727
10728         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10729         * calls.c: Remove debug.h include.
10730         (emit_call_1): Don't call virtual_call_token debug hook.
10731         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10732         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10733         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10734         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10735         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10736         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10737         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10738         dwarf2out_virtual_call): Remove.
10739         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10740         copy_call_info and virtual_call hooks.
10741         (dwarf2out_init): Don't initialize vcall_insn_table,
10742         debug_dcall_section and debug_vcall_section.
10743         (prune_unused_types): Don't mark nodes from dcall_table.
10744         (dwarf2out_finish): Don't output dcall or vcall tables.
10745         * final.c (final_scan_insn): Don't call direct_call or
10746         virtual_call debug hooks.
10747         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10748         virtual_call_token, copy_call_info and virtual_call hooks.
10749         (debug_nothing_uid): Remove prototype.
10750         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10751         copy_call_info and virtual_call hooks.
10752         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10753         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10754         * debug.c (do_nothing_debug_hooks): Likewise.
10755         (debug_nothing_uid): Remove.
10756         * doc/invoke.texi (-fenable-icf-debug): Remove.
10757         * common.opt (-fenable-icf-debug): Likewise.
10758
10759         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10760         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10761         call's MEM.  Handle functions returning aggregate through a hidden
10762         first pointer.  For virtual calls add clobbered pc to call arguments
10763         chain.
10764         * dwarf2out.c (gen_subprogram_die): Emit
10765         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10766         can't be emitted.
10767
10768         PR debug/45882
10769         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10770         * rtl.h (ENTRY_VALUE_EXP): Define.
10771         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10772         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10773         * print-rtl.c (print_rtx): Likewise.
10774         * gengtype.c (adjust_field_rtx_def): Likewise.
10775         * var-tracking.c (vt_add_function_parameter): Adjust
10776         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10777         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10778         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10779         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10780         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10781
10782         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10783         Call var_location debug hook even on CALL_INSNs.
10784         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10785         * rtl.def (ENTRY_VALUE): New.
10786         * dwarf2out.c: Include cfglayout.h.
10787         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10788         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10789         (struct call_arg_loc_node): New type.
10790         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10791         tail_call_site_count): New variables.
10792         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10793         DW_TAG_GNU_call_site_parameter.
10794         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10795         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10796         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10797         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10798         and DW_AT_GNU_all_source_call_sites.
10799         (mem_loc_descriptor): Handle ENTRY_VALUE.
10800         (add_src_coords_attributes): Don't add enything if
10801         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10802         (dwarf2out_abstract_function): Save and clear call_arg_location,
10803         call_site_count and tail_call_site_count around dwarf2out_decl call.
10804         (gen_call_site_die): New function.
10805         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10806         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10807         (dwarf2out_function_decl): Clear call_arg_locations,
10808         call_arg_loc_last, set call_site_count and tail_call_site_count
10809         to -1 and free block_map.
10810         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10811         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10812         followed by any real instructions.
10813         (dwarf2out_begin_function): Set call_site_count and
10814         tail_call_site_count to 0.
10815         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10816         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10817         attempt to force a DIE for it and worst case remove the attribute.
10818         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10819         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10820         the decl itself.
10821         * var-tracking.c: Include tm_p.h.
10822         (vt_stack_adjustments): For calls call note_register_arguments.
10823         (argument_reg_set): New variable.
10824         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10825         ensure the VALUE is resolved.
10826         (call_arguments): New variable.
10827         (prepare_call_arguments): New function.
10828         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10829         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10830         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10831         always use the best expression.
10832         (vt_expand_loc): Add ignore_cur_loc argument.
10833         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10834         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10835         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10836         note for all calls.
10837         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10838         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10839         argument.  Don't call cselib_preserve_only_values and
10840         cselib_reset_table.
10841         (note_register_arguments): New function.
10842         (vt_initialize): Compute argument_reg_set.  Call
10843         vt_add_function_parameters before processing basic blocks instead of
10844         afterwards.  For calls call prepare_call_arguments before calling
10845         cselib_process_insn.
10846         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10847         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10848         (var-tracking.o): Depend on $(TM_P_H).
10849         * cfglayout.h (insn_scope): New prototype.
10850         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10851         * cfglayout.c (insn_scope): No longer static.
10852         * insn-notes.def (CALL_ARG_LOCATION): New.
10853         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10854         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10855         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10856         nothing for DECL_EXTERNAL BLOCK_VARS.
10857
10858 2011-03-16  Alan Modra  <amodra@gmail.com>
10859
10860         PR target/45844
10861         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10862         create invalid offset address for vsx splat insn.
10863         * config/rs6000/predicates.md (splat_input_operand): New.
10864         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10865
10866 2011-03-15  Xinliang David Li  <davidxl@google.com>
10867
10868         PR c/47837
10869         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10870         (normalize_preds): New function.
10871         (is_use_properly_guarded): Normalize def predicates.
10872
10873 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10874
10875         PR target/46788
10876         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10877         in the output template.
10878
10879 2011-03-15  Richard Guenther  <rguenther@suse.de>
10880
10881         PR middle-end/47650
10882         * tree-pretty-print.c (dump_function_declaration): Properly
10883         dump unprototyped and varargs function types.
10884
10885 2011-03-15  Richard Guenther  <rguenther@suse.de>
10886
10887         PR tree-optimization/13954
10888         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10889         and friends.
10890
10891 2011-03-15  Richard Guenther  <rguenther@suse.de>
10892
10893         PR tree-optimization/48037
10894         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10895         selects into BIT_FIELD_REFs.
10896         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10897         vector select.
10898
10899 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10900
10901         PR tree-optimization/48129
10902         * builtins.c (fold_builtin_snprintf): Convert to type of
10903         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10904         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10905
10906 2011-03-15  Richard Guenther  <rguenther@suse.de>
10907
10908         PR tree-optimization/41490
10909         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10910         value but with VUSE.
10911         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10912         return statements.
10913         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10914         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10915         * tree-tailcall.c (find_tail_calls): Ignore returns.
10916
10917 2011-03-15  Richard Guenther  <rguenther@suse.de>
10918
10919         PR middle-end/48031
10920         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10921         or variable-indexed array accesses when in gimple form.
10922
10923 2011-03-15  Richard Guenther  <rguenther@suse.de>
10924
10925         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10926
10927 2011-03-15  Alan Modra  <amodra@gmail.com>
10928
10929         PR target/48032
10930         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10931         presume symbol_refs without a symbol_ref_decl are suitably
10932         aligned, nor other trees we may see here.  Handle anchor symbols.
10933         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10934         Check cmodel=medium addresses.  Adjust all calls.
10935         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10936         creating cmodel=medium optimized access to locals.
10937         * config/rs6000/constraints.md (R): Pass QImode to
10938         legitimate_constant_pool_address_p.
10939         * config/rs6000/predicates.md (input_operand): Pass mode to
10940         legitimate_constant_pool_address_p.
10941         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10942         Update prototype.
10943
10944 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10945
10946         PR target/48053
10947         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10948         64-bit constants being loaded into registers other than GPRs such
10949         as loading 0 into a VSX register.
10950
10951 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10952
10953         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10954
10955 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10956
10957         PR middle-end/47917
10958         * builtins.c (fold_builtin_snprintf): New function.
10959         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10960         (fold_builtin_4): Likewise.
10961
10962         PR middle-end/38878
10963         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10964         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10965         and C - X == X also strip nops from +/-/p+ operand.
10966         When optimizing -X == C, fold C to arg0's type.
10967
10968         PR debug/47946
10969         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10970         emit it as add_AT_int instead of add_AT_unsigned.
10971
10972 2011-03-14  Tom Tromey  <tromey@redhat.com>
10973
10974         * unwind-dw2.c: Include sys/sdt.h if it exists.
10975         (_Unwind_DebugHook): Use STAP_PROBE2.
10976         * config.in, configure: Rebuild.
10977         * configure.ac: Check for sys/sdt.h.
10978
10979 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10980
10981         * config/i386/i386.md (ROUND_FLOOR): New constant.
10982         (ROUND_CEIL): Ditto.
10983         (ROUND_TRUNC): Ditto.
10984         (ROUND_MXCSR): Ditto.
10985         (ROUND_NO_EXC): Ditto.
10986         (rint<mode>2): Use new defines instead of numerical constants.
10987         (floor<mode>2): Ditto.
10988         (ceil<mode>2): Ditto.
10989         (btrunc<mode>2): Ditto.
10990         * config/i386/i386-builtin-types.def: Define ROUND function type
10991         aliases.
10992         * config/i386/i386.c (enum ix86_builtins): Add
10993         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10994         (struct builtin_description): Add
10995         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10996         (ix86_expand_sse_round): New static function.
10997         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10998         function types.
10999         (ix86_builtin_vectorized_function): Handle
11000         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11001
11002 2011-03-14  Tom Tromey  <tromey@redhat.com>
11003
11004         * c-parser.c (c_parser_asm_string_literal): Clear
11005         warn_overlength_strings.
11006
11007 2011-03-14  Tom Tromey  <tromey@redhat.com>
11008
11009         * c-parser.c (disable_extension_diagnostics): Save
11010         warn_overlength_strings.
11011         (restore_extension_diagnostics): Restore warn_overlength_strings.
11012
11013 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11014
11015         * BASE-VER: Change to 4.7.0.
11016
11017 2011-03-14  Richard Guenther  <rguenther@suse.de>
11018
11019         PR middle-end/48098
11020         * tree.c (build_vector_from_val): Adjust assert to requirements
11021         and reality.
11022
11023 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11024
11025         PR bootstrap/48102
11026         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11027
11028 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11029
11030         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11031         terms of target_flags_explicit. Adjust copyright year.
11032
11033         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11034         * config/rs6000/t-freebsd: New file. Add override for
11035         LIB2FUNCS_EXTRA.
11036
11037 2011-03-13  Chris Demetriou  <cgd@google.com>
11038
11039         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11040         (-fno-diagnostics-show-option): this, to reflect current default.
11041         (-Werror=): Update text about -fno-diagnostics-show-option.
11042
11043 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11044
11045         PR target/48053
11046         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11047         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11048         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11049         mode is not V2DImode or V2DFmode.
11050         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11051         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11052         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11053         registers to 0.
11054         (movdi_internal64): Likewise.
11055
11056 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11057
11058         PR tree-optimization/47127
11059         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11060         parameter.
11061         (set_cloog_options): Same.
11062         (scop_to_clast): Same.
11063         (print_clast_stmt): Do not call cloog_state_malloc and
11064         cloog_state_free.
11065         (print_generated_program): Same.
11066         (gloog): Same.
11067         * graphite-clast-to-gimple.h (cloog_state): Declared.
11068         (scop_to_clast): Adjust declaration.
11069         * graphite.c (cloog_state): Defined here.
11070         (graphite_initialize): Call cloog_state_malloc.
11071         (graphite_finalize): Call cloog_state_free.
11072
11073 2011-03-11  Jason Merrill  <jason@redhat.com>
11074
11075         * attribs.c (lookup_attribute_spec): Take const_tree.
11076         * tree.h: Adjust.
11077
11078 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11079
11080         * config/sparc/sparc.c (sparc_option_override): Use
11081         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11082
11083 2011-03-11  Richard Guenther  <rguenther@suse.de>
11084
11085         PR tree-optimization/48067
11086         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11087         multiplication result will be only used once on the target
11088         stmt.
11089
11090 2011-03-11  Richard Guenther  <rguenther@suse.de>
11091
11092         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11093
11094 2011-03-11  Richard Guenther  <rguenther@suse.de>
11095
11096         PR lto/48073
11097         * tree.c (find_decls_types_r): Do not walk types only reachable
11098         from IDENTIFIER_NODEs.
11099
11100 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11101
11102         PR middle-end/48044
11103         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11104         all vnode->force_output nodes as needed.
11105
11106 2011-03-11  Jason Merrill  <jason@redhat.com>
11107
11108         PR c++/48069
11109         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11110         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11111
11112 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11113
11114         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11115         cgraph_node.
11116
11117 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11118
11119         PR tree-optimization/48063
11120         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11121         inline functions called once if !tree_can_inline_p (node->callers).
11122
11123 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11124
11125         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11126         extra_objs.
11127         * config/score/score3.c: Delete.
11128         * config/score/score3.h: Delete.
11129         * config/score/mul-div.S: Delete.
11130         * config/score/sfp-machine.h: Add new file.
11131         * config/score/constraints.md: Add new file.
11132         * config/score/t-score-softfp: Add new file.
11133         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11134         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11135         (score7_extra_constraint): Delete.
11136         (score7_option_override): Remove unused code.
11137         * config/score/score.c: Remove score3 and score5 define and code.
11138         * config/score/score.h: Remove score3 and score5 define and code.
11139         * config/score/score.md: Remove score3 template and unusual insn.
11140         * config/score/score.opt: Remove score3 and score5 options.
11141
11142 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11143
11144         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11145         when _HPUX_SOURCE is defined.
11146         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11147
11148 2011-03-10  Jason Merrill  <jason@redhat.com>
11149
11150         PR c++/48029
11151         * stor-layout.c (layout_type): Don't set structural equality
11152         on arrays of incomplete type.
11153         * tree.c (type_hash_eq): Handle comparing them properly.
11154
11155 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11156
11157         PR debug/48043
11158         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11159         result mode matches original rtl mode.
11160
11161 2011-03-10  Nick Clifton  <nickc@redhat.com>
11162
11163         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11164         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11165
11166 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11167
11168         PR rtl-optimization/47866
11169         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11170         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11171         if target wasn't scalar.
11172         * function.c (assign_stack_temp_for_type): Assert that neither
11173         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11174         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11175         macro.
11176         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11177
11178 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11179
11180         * config/s390/s390-protos.h (s390_label_align): New prototype.
11181         * config/s390/s390.c (s390_label_align): New function.
11182         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11183
11184 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11185
11186         PR target/47755
11187         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11188         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11189         (output_vec_const_move): Ditto.
11190
11191 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11192
11193         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11194         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11195         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11196         Change 'rclass' argument and result type to reg_class_t.
11197         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11198
11199 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11200
11201         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11202         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11203         (TARGET_MEMORY_MOVE_COST): Define.
11204         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11205
11206 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11207
11208         PR debug/47881
11209         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11210         removed anything.
11211
11212         PR tree-optimization/48022
11213         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11214         for EQ/NE_EXPR.
11215
11216 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11217
11218         PR debug/47991
11219         * var-tracking.c (find_use_val): Return NULL for
11220         cui->sets && cui->store_p BLKmode MEMs.
11221
11222 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11223
11224         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11225         Remove.
11226         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11227         xstormy16_print_operand_address): Remove.
11228         * config/stormy16/stormy16.c (xstormy16_print_operand,
11229         xstormy16_print_operand_address): Make static.
11230         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11231
11232 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11233
11234         PR target/47862
11235         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11236         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11237         before definition.
11238
11239 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11240
11241         PR bootstrap/48000
11242         * cfgloopmanip.c (fix_bb_placements): Return immediately
11243         if FROM is BASE_LOOP's header.
11244
11245 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11246
11247         * gimplify.c (gimplify_function_tree): Fix building calls
11248         to __builtin_return_address.
11249
11250 2011-03-07  Alan Modra  <amodra@gmail.com>
11251
11252         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11253         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11254         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11255         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11256         return_mode args.
11257         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11258         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11259         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11260         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11261         * config/rs6000/rs6000.c
11262         (rs6000_elf_end_indicate_exec_stack): Rename to..
11263         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11264         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11265         (rs6000_file_start): ..here.
11266         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11267         file scope variables.
11268         (call_ABI_of_interest): New function.
11269         (init_cumulative_args): Set above vars when function return value
11270         is a float, vector, or small struct.
11271         (rs6000_function_arg_advance_1): Likewise for function args.
11272         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11273         references float args.
11274
11275 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11276
11277         * doc/cfg.texi: Remove "See" before @ref.
11278         * doc/invoke.texi: Likewise.
11279
11280 2011-03-05  Jason Merrill  <jason@redhat.com>
11281
11282         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11283
11284 2011-03-05  Anthony Green  <green@moxielogic.com>
11285
11286         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11287
11288 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11289
11290         PR rtl-optimization/47899
11291         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11292         to flow_loop_nested_p when moving the loop upward.
11293
11294 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11295
11296         PR target/47719
11297         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11298
11299 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11300
11301         PR tree-optimization/47967
11302         * ipa-cp.c (build_const_val): Return NULL instead of creating
11303         VIEW_CONVERT_EXPR for mismatching sizes.
11304         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11305         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11306         give up on versioning.
11307
11308 2011-03-05  Alan Modra  <amodra@gmail.com>
11309
11310         PR target/47986
11311         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11312         full cmodel medium/large lo_sum + high addresses.
11313
11314 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11315
11316         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11317         pool references in UNSPEC_LTREL_OFFSET.
11318
11319 2011-03-04  Jan Hubicka  <jh@suse.cz>
11320
11321         PR lto/47497
11322         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11323         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11324         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11325         Add node pointers.
11326         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11327         cgraph_add_thunk): Add node pointers.
11328         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11329         associated to right node.
11330         (input_node): Update use of cgraph_same_body_alias
11331         and cgraph_add_thunk.
11332
11333 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11334
11335         * config/i386/i386.opt (mprefer-avx128): New flag.
11336         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11337         modes when the flag -mprefer-avx128 is on.
11338
11339 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11340
11341         * dwarf2out.c (compare_loc_operands): Fix address handling.
11342
11343 2011-03-04  Alan Modra  <amodra@gmail.com>
11344
11345         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11346
11347 2011-03-04  Richard Guenther  <rguenther@suse.de>
11348
11349         PR middle-end/47968
11350         * expmed.c (extract_bit_field_1): Prefer vector modes that
11351         vec_extract patterns can handle.
11352
11353 2011-03-04  Richard Guenther  <rguenther@suse.de>
11354
11355         PR middle-end/47975
11356         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11357
11358 2011-03-04  Richard Henderson  <rth@redhat.com>
11359
11360         * explow.c (emit_stack_save): Remove 'after' parameter.
11361         (emit_stack_restore): Likewise.
11362         * expr.h: Update to match.
11363         * builtins.c, calls.c, stmt.c: Likewise.
11364         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11365         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11366         * function.c (expand_function_end): Insert the emit_stack_save
11367         sequence before parm_birth_insn instead of after.
11368
11369 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11370
11371         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11372         (ssse3_pmaddubsw128): Ditto.
11373         (ssse3_pmaddubsw): Ditto.
11374
11375 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11376
11377         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11378
11379 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11380
11381         PR c/47963
11382         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11383         on TYPE_SIZE_UNIT if it is a DECL.
11384
11385         PR debug/47283
11386         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11387         first operand is not is_gimple_mem_ref_addr, try to fold it.
11388         If the operand still isn't is_gimple_mem_ref_addr, clear
11389         MEM_EXPR on op0.
11390
11391 2011-03-03  Richard Guenther  <rguenther@suse.de>
11392
11393         PR middle-end/47283
11394         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11395         match comment.
11396         (refs_may_alias_p_1): For release branches return true if
11397         we are confused by our input.
11398
11399 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11400
11401         * config/s390/s390.c (s390_function_value): Rename to ...
11402         (s390_function_and_libcall_value): ... this.
11403         (s390_function_value): New function.
11404         (s390_libcall_value): New function.
11405         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11406         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11407         target macro definitions.
11408         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11409
11410 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11411
11412         * config/i386/freebsd64.h (CC1_SPEC): Define.
11413         * config/i386/linux64.h (CC1_SPEC): Define.
11414         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11415
11416 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11417
11418         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11419         Remove.
11420         * config/stormy16/stormy16.c: Include reload.h.
11421         (xstormy16_memory_move_cost): New function.
11422         (TARGET_MEMORY_MOVE_COST): Define.
11423
11424 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11425
11426         PR rtl-optimization/47925
11427         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11428         with side effects.  Remove the more-specific check for volatile asms.
11429
11430 2011-03-02  Alan Modra  <amodra@gmail.com>
11431
11432         PR target/47935
11433         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11434         toc relative addresses for valid offsets.
11435
11436 2011-03-01  Richard Guenther  <rguenther@suse.de>
11437
11438         PR tree-optimization/47890
11439         * tree-vect-loop.c (get_initial_def_for_induction): Set
11440         related stmt properly.
11441
11442 2011-03-01  Richard Guenther  <rguenther@suse.de>
11443
11444         PR lto/47924
11445         * lto-streamer.c (lto_record_common_node): Also register
11446         the canonical type.
11447
11448 2011-03-01  Richard Guenther  <rguenther@suse.de>
11449
11450         PR lto/46911
11451         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11452         Do not stream DECL_ABSTRACT_ORIGIN.
11453         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11454         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11455         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11456         Do not stream DECL_ABSTRACT_ORIGIN.
11457         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11458         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11459
11460 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11461
11462         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11463         FUNCTION_VALUE_REGNO_P): Remove.
11464         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11465         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11466         Add 'outgoing' argument.
11467         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11468         function.
11469         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11470         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11471
11472 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11473
11474         PR debug/28047
11475         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11476         (lookup_filename): Likewise.
11477         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11478
11479 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11480             Jakub Jelinek  <jakub@redhat.com>
11481
11482         PR middle-end/47893
11483         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11484         (assign_stack_local_1): Change last argument type to int.
11485         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11486         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11487         don't record padding space into frame_space_list nor use those areas.
11488         (assign_stack_local): Adjust caller.
11489         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11490         of assign_stack_local, pass 0 as last argument.
11491         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11492         callers.
11493
11494 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11495
11496         PR debug/47283
11497         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11498         Use target address_mode and pointer_mode hooks instead of hardcoded
11499         Pmode and ptr_mode.  Handle some simple cases of extending if
11500         POINTERS_EXTEND_UNSIGNED < 0.
11501         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11502         Call convert_debug_memory_address.
11503         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11504         convert_debug_memory_address.
11505
11506         PR middle-end/46790
11507         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11508         * configure: Regenerated.
11509         * config.in: Regenerated.
11510         * varasm.c (default_function_section): Return NULL
11511         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11512
11513 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11514
11515         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11516         the description to match the printed values.
11517
11518 2011-02-28  Richard Guenther  <rguenther@suse.de>
11519
11520         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11521         of the copied scope tree.
11522
11523 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11524
11525         * doc/extend.texi (Function Attributes): Avoid deeply (and
11526         wrongly) nested tables.
11527
11528 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11529
11530         PR middle-end/47903
11531         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11532         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11533         r isn't op0 nor op1.
11534
11535 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11536
11537         * config/avr/avr.md: Remove magic comment for emacs.
11538
11539 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11540
11541         PR target/45261
11542         * config/avr/avr.c (avr_option_override): Use error on bad options.
11543         (avr_help): New function.
11544         (TARGET_HELP): Define.
11545
11546 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11547
11548         PR target/42240
11549         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11550         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11551
11552 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11553
11554         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11555         (ARM Options): Ditto.
11556         (i386 and x86-64 Options): Ditto.
11557         (RX Options): Ditto.
11558         (SPARC Options): Ditto.
11559
11560 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11561
11562         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11563         FreeBSD 6 and later.  Generally use cpu generic.
11564
11565 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11566
11567         * doc/cpp.texi: Update copyright years.
11568
11569 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11570
11571         PR target/46898
11572         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11573
11574 2011-02-25  Jon Beniston  <jon@beniston.com>
11575
11576         PR target/46898
11577         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11578         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11579         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11580         (lm32_block_move_inline): Add type cast to remove warning.
11581         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11582         (gen_int_relational): Move declarations to start of function.
11583
11584 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11585
11586         PR tree-optimization/45470
11587         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11588         can throw internally only.
11589         * tree-vect-stmts.c (vectorizable_call): Likewise.
11590
11591 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11592
11593         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11594         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11595         * config/stormy16/stormy16-protos.h
11596         (xstormy16_preferred_reload_class): Remove.
11597         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11598         static. Change 'rclass' argument and return type to reg_class_t.
11599         (TARGET_PREFERRED_RELOAD_CLASS,
11600         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11601
11602 2011-02-24  Richard Guenther  <rguenther@suse.de>
11603
11604         * lto-streamer-in.c (input_bb): Do not find referenced vars
11605         in debug statements.
11606
11607 2011-02-23  Jason Merrill  <jason@redhat.com>
11608
11609         * common.opt (fabi-version): Document v5 and v6.
11610
11611 2011-02-23  Richard Guenther  <rguenther@suse.de>
11612
11613         PR tree-optimization/47849
11614         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11615
11616 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11617
11618         * opts-common.c (decode_cmdline_option): Print empty string
11619         argument as "" in decoded->orig_option_with_args_text.
11620         * gcc.c (execute): Print empty string argument as ""
11621         in the verbose output.
11622         (do_spec_1): Keep empty string argument.
11623
11624 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11625
11626         * config.gcc: Declare score-* and crx-* obsolete.
11627
11628 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11629
11630         PR rtl-optimization/47763
11631         * web.c (web_main): Ignore naked clobber when replacing register.
11632
11633 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11634
11635         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11636         Remove.
11637
11638 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11639
11640         PR doc/47848
11641         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11642
11643 2011-02-22  Mike Stump  <mikestump@comcast.net>
11644
11645         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11646         assembler.
11647         * configure: Regenerate.
11648
11649 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11650
11651         PR rtl-optimization/46002
11652         * ira-color.c (update_copy_costs): Change class intersection
11653         test to reg_class_contents[] test of 'hard_regno'.
11654
11655 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11656
11657         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11658         than Driver option.
11659         * config/hpux11.opt (mt): Likewise.
11660         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11661         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11662         * config/vax/elf.opt (mno-asm-pic): Likewise.
11663         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11664
11665 2011-02-21  Mike Stump  <mikestump@comcast.net>
11666
11667         PR target/47822
11668         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11669         tree so we can get save the type.
11670         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11671         for CFString instead of trying to use past the end of the builtins.
11672         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11673         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11674         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11675         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11676         Rename to darwin_builtin_cfstring.
11677         (darwin_init_cfstring_builtins): Return the built type.
11678
11679 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11680
11681         PR target/47840
11682         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11683         (_mm256_insert_epi64): Use _mm_insert_epi64.
11684
11685 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11686
11687         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11688         * config/stormy16/stormy16-protos.h
11689         (xstormy16_mode_dependent_address_p): Remove.
11690         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11691         Make static. Change return type to bool. Change argument type to
11692         const_rtx. Remove dead code.
11693         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11694
11695 2011-02-21  Richard Guenther  <rguenther@suse.de>
11696
11697         PR lto/47820
11698         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11699         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11700         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11701         TUs context.
11702         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11703         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11704
11705 2011-02-20  Richard Guenther  <rguenther@suse.de>
11706
11707         PR lto/47822
11708         * tree.c (free_lang_data_in_decl): Clean builtins from
11709         the TU decl BLOCK_VARS.
11710
11711 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11712
11713         PR debug/47620
11714         PR debug/47630
11715         * haifa-sched.c (fix_tick_ready): Skip tick computation
11716         for debug insns.
11717
11718 2011-02-19  Richard Guenther  <rguenther@suse.de>
11719
11720         PR lto/47647
11721         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11722         Remove lazy BLOCK_VARS streaming.
11723         (lto_input_ts_block_tree_pointers): Likewise.
11724         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11725
11726 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11727
11728         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11729
11730 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11731
11732         * config/i386/biarch32.h, config/i386/mach.h,
11733         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11734
11735 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11736
11737         PR target/47800
11738         * config/i386/i386.md (peephole2 for shift and plus): Use
11739         operands[1] original mode in the first insn.
11740
11741 2011-02-18  Mike Stump  <mikestump@comcast.net>
11742
11743         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11744
11745 2011-02-18  Jan Hubicka  <jh@suse.cz>
11746
11747         PR middle-end/47788
11748         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11749         to zero when the function is not inlinable at all.
11750
11751 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11752
11753         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11754         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11755         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11756         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11757         * config/pa/t-pa64: Likewise.
11758         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11759
11760 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11761
11762         PR driver/47787
11763         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11764
11765 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11766
11767         PR target/47792
11768         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11769
11770 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11771
11772         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11773         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11774         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11775         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11776         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11777         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11778         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11779         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11780         m32r_legitimate_address_p): New functions.
11781         * config/m32r/constraints.md (constraint "S"): Don't use
11782         STORE_PREINC_PREDEC_P.
11783         (constraint "U"): Don't use LOAD_POSTINC_P.
11784
11785 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11786
11787         PR rtl-optimization/46178
11788         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11789         compute ira_hard_regno_cover_class[].
11790
11791 2011-02-18  Richard Guenther  <rguenther@suse.de>
11792
11793         PR lto/47798
11794         * lto-streamer.h (lto_global_var_decls): Declare.
11795         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11796         statics for global var processing.
11797
11798 2011-02-18  Richard Guenther  <rguenther@suse.de>
11799
11800         PR tree-optimization/47737
11801         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11802         edge dominance check.
11803
11804 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11805
11806         PR debug/47780
11807         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11808         avoid invalid rtx sharing.
11809
11810 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11811
11812         * doc/cpp.texi (Obsolete Features): Add background on the
11813         origin of assertions.
11814
11815 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11816
11817         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11818         objc_abi == 2.
11819         * config/darwin.c (output_objc_section_asm_op): Added support for
11820         ABI v1 and v2.
11821         (is_objc_metadata): New.
11822         (darwin_objc2_section): New.
11823         (darwin_objc1_section): New.
11824         (machopic_select_section): Added support for ABI v1 and v2.
11825         (darwin_emit_objc_zeroed): New.
11826         (darwin_output_aligned_bss): Detect objc metadata and treat it
11827         appropriately.
11828         (darwin_asm_output_aligned_decl_common): Same.
11829         (darwin_asm_output_aligned_decl_local): Same.
11830         * config/darwin-sections.def: Updated for ABI v1 and v2.
11831         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11832         compiling Objective-C code for the NeXT runtime, default to using
11833         ABI version 0 for 32-bit, and version 2 for 64-bit.
11834
11835 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11836
11837         * common.opt (optimize_fast): New Variable.
11838         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11839         instead of local variable ofast.
11840
11841 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11842
11843         * doc/invoke.texi (fobjc-abi-version): Documented.
11844         (fobjc-nilcheck): Documented.
11845         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11846         version.
11847
11848 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11849
11850         PR driver/47390
11851         * common.opt (export-dynamic): New Driver option.
11852         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11853
11854 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11855
11856         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11857
11858 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11859             Jan Hubicka  <jh@suse.cz>
11860
11861         PR debug/47106
11862         PR debug/47402
11863         * cfgexpand.c (account_used_vars_for_block): Remove.
11864         (estimated_stack_frame_size): Use referenced vars.
11865         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11866         that were referenced in the original function.  Test src_fn
11867         rather than cfun.  Drop redundant get_var_ann.
11868         (setup_one_parameter): Drop redundant get_var_ann.
11869         (declare_return_variable): Likewise.
11870         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11871         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11872         * ipa-inline.c (compute_inline_parameters): Do not compute
11873         disregard_inline_limits here.
11874         (compute_inlinable_for_current, pass_inlinable): New.
11875         (pass_inline_parameters): Require PROP_referenced_vars.
11876         * cgraphunit.c (cgraph_process_new_functions): Don't run
11877         compute_inline_parameters explicitly unless function is in SSA form.
11878         (cgraph_analyze_function): Set .disregard_inline_limits.
11879         * tree-sra.c (convert_callers): Compute inliner parameters
11880         only for functions already in SSA form.
11881
11882 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11883
11884         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11885         -mlittle-endian-data.
11886
11887 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11888
11889         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11890         -mno-fpu, not -fpu and -no-fpu.
11891         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11892         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11893
11894 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11895
11896         PR target/43653
11897         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11898         input reload with PLUS RTX.
11899
11900 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11901
11902         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11903         of InverseVar(MDMX).
11904
11905 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11906
11907         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11908         --m4-340.
11909
11910 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11911
11912         * config/mn10300/mn10300.opt (mno-crt0): New.
11913
11914 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11915
11916         * config/m68k/uclinux.opt (static-libc): New Driver option.
11917
11918 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11919
11920         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11921
11922 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11923
11924         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11925         %{muser-extend-enabled}.
11926
11927 2011-02-16  Richard Guenther  <rguenther@suse.de>
11928
11929         PR tree-optimization/47738
11930         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11931         the TODO from tree_predictive_commoning.
11932
11933 2011-02-15  Jeff Law  <law@redhat.com>
11934
11935         Revert
11936         2011-01-25  Jeff Law  <law@redhat.com>
11937
11938         PR rtl-optimization/37273
11939         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11940         handle them like argument loads from stack slots.  Do not double
11941         count memory for memory constants and argument loads from stack slots.
11942
11943 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11944
11945         PR middle-end/47725
11946         * combine.c (cant_combine_insn_p): Revert the last change.
11947
11948 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11949
11950         PR target/47755
11951         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11952         mode for vector constants.  Remove code that checks for TImode.
11953
11954 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11955
11956         PR debug/47106
11957         PR debug/47402
11958         * cgraph.h (compute_inline_parameters): Return void.
11959         * ipa-inline.c (compute_inline_parameters): Adjust.
11960
11961 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11962
11963         PR debug/47106
11964         PR debug/47402
11965         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11966         rather than decl.
11967         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11968         * ipa-inline.c (compute_inline_parameters): Adjust.
11969
11970 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11971
11972         PR debug/47106
11973         PR debug/47402
11974         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11975         Adjust all users.  Pass FN to...
11976         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11977         fn argument.
11978         * ipa-struct-reorg.c: Adjust.
11979         * tree-dfa.c: Adjust.
11980         * tree-into-ssa.c: Adjust.
11981         * tree-sra.c: Adjust.
11982         * tree-ssa-alias.c: Adjust.
11983         * tree-ssa-live.c: Adjust.
11984         * tree-ssa.c: Adjust.
11985         * tree-ssanames.c: Adjust.
11986         * tree-tailcall.c: Adjust.
11987
11988 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11989
11990         PR debug/47106
11991         PR debug/47402
11992         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11993         Adjust all callers.
11994         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11995         * tree-flow-inline.h: Adjust.
11996         * gimple-pretty-print.c: Adjust.
11997         * tree-into-ssa.c: Adjust.
11998         * tree-ssa.c: Adjust.
11999         * cfgexpand.c: Adjust.
12000
12001 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12002
12003         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12004         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12005         (EXTRA_CONSTRAINT): Delete.
12006         * config/iq2000/constraints.md: New file.
12007         * config/iq2000/iq2000.md: Include it.
12008         (define_insn ""): Delete.
12009         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12010         unsupported constraint letters from patterns.
12011         (call_value, call_value_internal1): Likewise.
12012         (call_value_multiple_internal1): Likewise.
12013
12014 2011-02-15  Nick Clifton  <nickc@redhat.com>
12015
12016         * config/mn10300/mn10300.c: Include tm-constrs.h.
12017         (struct liw_data): New data structure describing an LIW candidate
12018         instruction.
12019         (extract_bundle): Use struct liw_data.  Allow small integer
12020         operands for some instructions.
12021         (check_liw_constraints): Use struct liw_data.  Remove swapped
12022         parameter.  Add comments describing the checks.  Fix bug when
12023         assigning the source of liw1 to the source of liw2.
12024         (liw_candidate): Delete.  Code moved into extract_bundle.
12025         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12026         before swapping.
12027         * config/mn10300/predicates.md (liw_operand): New predicate.
12028         Allows registers and small integer constants.
12029         * config/mn10300/constraints.md (O): New constraint.  Accetps
12030         integers in the range -8 to +7 inclusive.
12031         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12032         for moving a small integer into a register.  Give this alternative
12033         LIW attributes.
12034         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12035         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12036         using the J,K,L and M constraints,
12037         (liw): Remove SI mode on second operands to allow for HI and QI
12038         mode values.
12039         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12040         instruction.
12041
12042 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12043
12044         PR middle-end/47725
12045         * combine.c (cant_combine_insn_p): Check zero/sign extended
12046         hard registers.
12047
12048 2011-02-15  Richard Guenther  <rguenther@suse.de>
12049
12050         PR tree-optimization/47743
12051         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12052         for a non-type-compatible VN lookup bail out.
12053
12054 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12055
12056         * config/fr30/constraints.md: New file.
12057         * config/fr30/fr30.md: Include it.
12058         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12059         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12060         (EXTRA_CONSTRAINT): Delete.
12061
12062 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12063
12064         * config/frv/constraints.md: New file.
12065         * config/frv/predicates.md: Include it.
12066         * config/frv/frv.c (reg_class_from_letter): Delete.
12067         (frv_option_override): Don't initialize it.
12068         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12069         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12070         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12071         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12072         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12073         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12074         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12075         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12076         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12077         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12078         (REG_CLASS_FROM_CONSTRAINT): Delete.
12079
12080 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12081
12082         PR middle-end/47581
12083         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12084         if frame size is 0 in a leaf function.
12085
12086 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12087
12088         PR pch/14940
12089         * config/alpha/host-osf.c: New file.
12090         * config/alpha/x-osf: New file.
12091         * config.host (alpha*-dec-osf*): Use it.
12092
12093 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12094
12095         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12096         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12097         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12098         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12099         type to const_rtx.
12100         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12101
12102 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12103
12104         * config/stormy16/constraints.md: New file.
12105         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12106         Use satisfies_constraint_Q and satisfies_constraint_R.
12107         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12108         Delete.
12109         (xstormy16_legitiamte_address_p): Declare.
12110         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12111         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12112         (EXTRA_CONSTRAINT): Delete.
12113         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12114         Un-staticize.
12115         (xstormy16_extra_constraint_p): Delete.
12116
12117 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12118
12119         PR tree-optimization/46494
12120         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12121         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12122         (pass_rtl_loop_done): Add TODO_verify_flow.
12123         * fwprop.c (pass_rtl_fwprop): Likewise.
12124         * modulo-sched.c (pass_sms): Likewise.
12125         * tree-ssa-dom.c (pass_dominator): Likewise.
12126         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12127         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12128         (pass_tree_loop_done): Likewise.
12129         * tree-ssa-pre.c (execute_pre): Likewise.
12130         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12131         * tree-ssa-sink.c (pass_sink_code): Likewise.
12132         * tree-vrp.c (pass_vrp): Likewise.
12133
12134 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12135
12136         * config/v850/constraints.md: New file.
12137         * config/v850/v850.md: Include it.
12138         * config/v850/predicates.md (reg_or_0_operand): Use
12139         satisfies_constraint_G.
12140         (special_symbolref_operand): Use satisfies_constraint_K.
12141         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12142         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12143         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12144         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12145         (EXTRA_CONSTRAINT): Delete.
12146         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12147         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12148         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12149
12150 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12151
12152         PR target/47696
12153         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12154         description.
12155
12156 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12157
12158         * config/mcore/constraints.md: New file.
12159         * config/mcore/mcore.md: Include it.
12160         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12161         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12162         (REG_CLASS_FROM_LETTER): Delete.
12163         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12164         insn_const_int_ok_for_constraint.
12165         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12166         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12167         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12168         (EXTRA_CONSTRAINT): Delete.
12169
12170 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12171
12172         PR ada/41929
12173         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12174         (IS_SIGHANDLER): Define.
12175         (sparc64_is_sighandler): New function, split off from
12176         sparc64_fallback_frame_state.
12177         (sparc_is_sighandler): New function, split off from
12178         sparc_fallback_frame_state.
12179         (sparc64_fallback_frame_state): Merge with ...
12180         (sparc_fallback_frame_state): ... this into ...
12181         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12182         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12183         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12184         stack instead of hardcoded offsets.
12185
12186 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12187
12188         PR target/45808
12189         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12190
12191 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12192
12193         * configure: Regenerate.
12194
12195 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12196
12197         PR driver/45731
12198         * gcc.c (asm_options): Correct spec matching --target-help.
12199
12200 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12201
12202         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12203         to gimple call error.
12204
12205 2011-02-12  Mike Stump  <mikestump@comcast.net>
12206
12207         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12208         comments in backslash regions.
12209
12210 2011-02-12  Mike Stump  <mikestump@comcast.net>
12211             Jakub Jelinek  <jakub@redhat.com>
12212             Iain Sandoe  <iains@gcc.gnu.org>
12213
12214         PR target/47324
12215         * dwarf2out.c (output_cfa_loc): When required, apply the
12216         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12217         (output_loc_sequence): Likewise.
12218         (output_loc_operands_raw): Likewise.
12219         (output_loc_sequence_raw): Likewise.
12220         (output_cfa_loc): Likewise.
12221         (output_loc_list): Suppress register number adjustment when
12222         calling output_loc_sequence()
12223         (output_die): Likewise.
12224
12225 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12226
12227         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12228         Remove macros.
12229         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12230         xtensa_memory_move_cost): New functions.
12231         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12232
12233 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12234
12235         PR lto/47225
12236         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12237         in the current directory.
12238         * configure: Rebuilt.
12239
12240 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12241
12242         * config/darwin.c (darwin_override_options): Add a hunk missed
12243         from the commit of r168571.  Trim comment line lengths and
12244         correct indents of the preceding block.
12245
12246 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12247
12248         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12249         the switch.
12250
12251 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12252
12253         * common.opt (nostartfiles): New Driver option.
12254
12255 2011-02-11  Xinliang David Li  <davidxl@google.com>
12256
12257         PR tree-optimization/47707
12258         * tree-chrec.c (convert_affine_scev): Keep type precision.
12259
12260 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12261
12262         PR tree-optimization/47420
12263         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12264
12265 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12266
12267         PR rtl-optimization/47614
12268         * rtl.h (check_for_inc_dec): Declare.
12269         * dse.c (check_for_inc_dec): Externalize...
12270         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12271         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12272
12273 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12274
12275         PR driver/47678
12276         * gcc.c (main): Do not compile inputs if there were errors in
12277         option handling.
12278         * opts-common.c (read_cmdline_option): Check for wrong language
12279         after other error checks.
12280
12281 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12282
12283         * cgraph.c: Fix comment typos.
12284         * cgraph.h: Likewise.
12285         * cgraphunit.c: Likewise.
12286         * ipa-cp.c: Likewise.
12287         * ipa-inline.c: Likewise.
12288         * ipa-prop.c: Likewise.
12289         * ipa-pure-const.c: Likewise.
12290         * ipa-ref.c: Likewise.
12291         * ipa-reference.c: Likewise.
12292
12293 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12294
12295         PR debug/47684
12296         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12297
12298 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12299
12300         PR testsuite/47400
12301         * doc/sourcebuild.texi (Require Support): Document
12302         dg-require-ascii-locale.
12303
12304 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12305
12306         * doc/lto.texi (Write summary): Fix missing parentheses.
12307
12308 2011-02-10  DJ Delorie  <dj@redhat.com>
12309
12310         * config/m32c/m32c.c (m32c_option_override): Disable
12311         -fcombine-stack-adjustments until flag value tracking and compare
12312         optimization can be rewritten.
12313
12314 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12315
12316         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12317         PROCESSOR_POWER7.
12318         (PROCESSOR_DEFAULT64): Likewise.
12319
12320 2011-02-10  Richard Henderson  <rth@redhat.com>
12321
12322         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12323         change from 2011-02-03.
12324         * config/rx/rx.c (flags_from_code): Likewise.
12325         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12326         is valid, n/pz otherwise.
12327         (rx_select_cc_mode): Return CCmode if Y is not zero.
12328
12329 2011-02-10  Richard Guenther  <rguenther@suse.de>
12330
12331         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12332
12333 2011-02-10  Richard Guenther  <rguenther@suse.de>
12334
12335         PR tree-optimization/47677
12336         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12337
12338 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12339
12340         PR target/47665
12341         * combine.c (make_compound_operation): Only change shifts into
12342         multiplication for SCALAR_INT_MODE_P.
12343
12344 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12345
12346         PR testsuite/47622
12347         Revert
12348         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12349         PR debug/42631
12350         * web.c (entry_register): Don't clobber the number of the
12351         first uninitialized reference in used[].
12352
12353 2011-02-09  Richard Guenther  <rguenther@suse.de>
12354
12355         PR tree-optimization/47664
12356         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12357         all edges again.
12358
12359 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12360
12361         PR target/46481
12362         PR target/47032
12363         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12364         PROCESSOR_POWER7.
12365         (PROCESSOR_DEFAULT64): Same.
12366         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12367
12368 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12369
12370         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12371
12372 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12373
12374         PR middle-end/45505
12375         * tree-sra.c (struct access): New flags grp_scalar_read and
12376         grp_scalar_write.  Changed description of assignment read and write
12377         flags.
12378         (dump_access): Dump new flags, reorder all of them.
12379         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12380         to detect multiple scalar reads.
12381         (analyze_access_subtree): Use the new scalar read write flags instead
12382         of the old flags.  Adjusted comments.
12383
12384 2011-02-08  DJ Delorie  <dj@redhat.com>
12385
12386         PR target/47548
12387         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12388         patterns.
12389
12390 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12391
12392         * config/m68k/uclinux.opt: New.
12393         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12394
12395 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12396
12397         * config/cris/elf.opt (sim): New Driver option.
12398
12399 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12400
12401         * config/xtensa/elf.opt: New.
12402         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12403
12404 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12405
12406         * config/vax/elf.opt: New.
12407         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12408
12409 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12410
12411         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12412
12413 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12414
12415         * config/gnu-user.opt: New.
12416         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12417         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12418         *-*-uclinux*): Use gnu-user.opt.
12419
12420 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12421
12422         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12423         * config/i386/gnu.h (CPP_SPEC): Likewise.
12424
12425 2011-02-08  Ian Lance Taylor  <iant@google.com>
12426
12427         * common.opt (fcx-limited-range): Add SetByCombined flag.
12428         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12429         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12430         (fassociative-math, freciprocal-math): Likewise.
12431         (funsafe-math-optimizations): Likewise.
12432         * opth-gen.awk: Handle SetByCombined.
12433         * optc-gen.awk: Likewise.
12434         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12435         (set_unsafe_math_optimizations_flags): Likewise.
12436         * doc/options.texi (Option properties): Document SetByCombined.
12437
12438 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12439
12440         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12441         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12442         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12443         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12444         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12445
12446 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12447
12448         PR tree-optimization/46834
12449         PR tree-optimization/46994
12450         PR tree-optimization/46995
12451         * graphite-sese-to-poly.c (used_outside_reduction): New.
12452         (detect_commutative_reduction): Call used_outside_reduction.
12453         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12454         translate_scalar_reduction_to_array only when at least one
12455         loop-phi/close-phi tuple has been detected.
12456
12457 2011-02-08  Richard Guenther  <rguenther@suse.de>
12458
12459         PR middle-end/47639
12460         * tree-vect-generic.c (expand_vector_operations_1): Update
12461         stmts here ...
12462         (expand_vector_operations): ... not here.  Cleanup EH info
12463         and the CFG if required.
12464
12465 2011-02-08  Richard Guenther  <rguenther@suse.de>
12466
12467         PR tree-optimization/47641
12468         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12469         require type compatibility.
12470
12471 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12472
12473         * gimple-low.c (lower_function_body): Don't remove the location of
12474         the return statement here.
12475         (lower_gimple_return): Do it here instead but only if the return
12476         statement is actually used twice.
12477
12478 2011-02-08  Richard Guenther  <rguenther@suse.de>
12479
12480         PR tree-optimization/47632
12481         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12482         unused up_to_stmt parameter, return whether cfg-cleanup is
12483         necessary, remove EH info properly.
12484         (forward_propagate_into_gimple_cond): Adjust caller.
12485         (forward_propagate_into_cond): Likewise.
12486         (forward_propagate_comparison): Likewise.
12487         (tree_ssa_forward_propagate_single_use_vars): Make
12488         forward_propagate_comparison case similar to the two others.
12489
12490 2011-02-08  Nick Clifton  <nickc@redhat.com>
12491
12492         * config/mn10300/mn10300.opt (mliw): New command line option.
12493         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12494         (liw_bundling): New automaton.
12495         (liw): New attribute.
12496         (liw_op): New attribute.
12497         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12498         (movsi_internal): Add LIW attributes.
12499         (andsi3): Likewise.
12500         (iorsi3): Likewise.
12501         (xorsi3): Likewise.
12502         (addsi3): Separate register and immediate alternatives.
12503         Add LIW attributes.
12504         (subsi3): Likewise.
12505         (cmpsi): Likewise.
12506         (aslsi3): Likewise.
12507         (lshrsi3): Likewise.
12508         (ashrsi3): Likewise.
12509         (liw): New pattern.
12510         * config/mn10300/mn10300.c (liw_op_names): New
12511         (mn10300_print_operand): Handle 'W' operand descriptor.
12512         (extract_bundle): New function.
12513         (check_liw_constraints): New function.
12514         (liw_candidate): New function.
12515         (mn10300_bundle_liw): New function.
12516         (mn10300_reorg): New function.
12517         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12518         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12519         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12520         __LIW__ or __NO_LIW__.
12521         * doc/invoke.texi: Describe the -mliw command line option.
12522
12523 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12524
12525         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12526         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12527         pthread_mutex_unlock): Remove.
12528         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12529         * config/pa/t-pa64: Likewise.
12530         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12531         shared libc if not linking against libpthread.
12532         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12533
12534 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12535
12536         PR target/47558
12537         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12538         on 10.6 and later to ensure that we always use the unwinder from
12539         the system.  Only add -no_compact_unwind when tarteting darwin
12540         10.6 or later.
12541
12542 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12543
12544         PR target/46997
12545         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12546         (vec_interleave_lowv2sf): Ditto.
12547         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12548         (vec_extract_oddv2sf): Ditto.
12549
12550 2011-02-07  Mike Stump  <mikestump@comcast.net>
12551
12552         PR target/42333
12553         Add __ieee_divdc3 entry point.
12554         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12555         entry point.
12556         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12557         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12558         * config/darwin.c (darwin_rename_builtins): Add.
12559         * config/darwin-protos.h (darwin_rename_builtins): Add.
12560
12561 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12562
12563         PR target/47636
12564         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12565         for the condition.
12566
12567 2011-02-07  Mike Stump  <mikestump@comcast.net>
12568
12569         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12570
12571 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12572
12573         PR target/47534
12574         * config/avr/libgcc.S (exit): Move .endfunc
12575
12576 2011-02-07  Richard Guenther  <rguenther@suse.de>
12577
12578         PR tree-optimization/47615
12579         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12580         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12581         (run_scc_vn): Initialize it.
12582         (visit_reference_op_load): Use it.
12583         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12584
12585 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12586
12587         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12588         DImode trapping arithmetic libfuncs.
12589
12590 2011-02-07  Richard Guenther  <rguenther@suse.de>
12591
12592         PR tree-optimization/47621
12593         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12594         two duplicates ...
12595         (execute_update_addresses_taken): ... here.  Make it more
12596         conservative in what we accept.
12597
12598 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12599
12600         * config/sparc/freebsd.h (ASM_SPEC): Define.
12601         * config/sparc/vxworks.h (ASM_SPEC): Define.
12602
12603 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12604
12605         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12606
12607 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12608
12609         * doc/invoke.texi: Remove reference to compiler internals from
12610         user documentation.
12611
12612         * reg-notes.def: Remove REG_VALUE_PROFILE.
12613         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12614
12615 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12616
12617         PR middle-end/47610
12618         * varasm.c (default_section_type_flags): If decl is NULL,
12619         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12620
12621 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12622
12623         PR debug/42631
12624         * web.c (entry_register): Don't clobber the number of the
12625         first uninitialized reference in used[].
12626
12627 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12628
12629         PR tree-optimization/46194
12630         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12631         (build_classic_dist_vector_1): Do not represent classic distance
12632         vectors when the access functions are variating in different loops.
12633
12634 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12635
12636         * config/mips/iris6.opt: New.
12637         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12638
12639 2011-02-04  Richard Henderson  <rth@redhat.com>
12640             Steve Ellcey  <sje@cup.hp.com>
12641
12642         PR target/46997
12643         * config/ia64/predicates.md (mux1_brcst_element): New.
12644         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12645         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12646         (ia64_unpack_sign): New.
12647         (ia64_expand_unpack): Rewrite using new routines.
12648         (ia64_expand_widen_sum): Ditto.
12649         (ia64_expand_dot_prod_v8qi): Ditto.
12650         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12651         routines, add endian check.
12652         (pmpy2_even): Rename from pmpy2_r, add endian check.
12653         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12654         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12655         (vec_widen_smult_hi_v4hi): Ditto.
12656         (vec_widen_umult_lo_v4hi): Ditto.
12657         (vec_widen_umult_hi_v4hi): Ditto.
12658         (mulv2si3): Change endian checks.
12659         (sdot_prodv4hi): Rewrite with new calls.
12660         (udot_prodv4hi): New.
12661         (vec_pack_ssat_v4hi): Add endian check.
12662         (vec_pack_usat_v4hi): Ditto.
12663         (vec_pack_ssat_v2si): Ditto.
12664         (max1_even): Rename from max1_r, add endian check.
12665         (max1_odd): Rename from max1_l, add endian check.
12666         (*mux1_rev): Format change.
12667         (*mux1_mix): Ditto.
12668         (*mux1_shuf): Ditto.
12669         (*mux1_alt): Ditto.
12670         (*mux1_brcst_v8qi): Use new predicate.
12671         (vec_extract_evenv8qi): Remove endian check.
12672         (vec_extract_oddv8qi): Ditto.
12673         (vec_interleave_lowv4hi): Format change.
12674         (vec_interleave_highv4hi): Ditto.
12675         (mix2_even): Rename from mix2_r, add endian check.
12676         (mix2_odd): Rename from mux2_l, add endian check.
12677         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12678         (vec_extract_evenodd_helper): Format change.
12679         (vec_extract_evenv4hi): Remove endian check.
12680         (vec_extract_oddv4hi): Remove endian check.
12681         (vec_interleave_lowv2si): Format change.
12682         (vec_interleave_highv2si): Format change.
12683         (vec_initv2si): Remove endian check.
12684         (vecinit_v2si): Add endian check.
12685         (reduc_splus_v2sf): Add endian check.
12686         (reduc_smax_v2sf): Ditto.
12687         (reduc_smin_v2sf): Ditto.
12688         (vec_initv2sf): Remove endian check.
12689         (fpack): Add endian check.
12690         (fswap): Add endian check.
12691         (vec_interleave_highv2sf): Add endian check.
12692         (vec_interleave_lowv2sf): Add endian check.
12693         (fmix_lr): Add endian check.
12694         (vec_setv2sf): Format change.
12695         (*vec_extractv2sf_0_be): Use shift to extract operand.
12696         (*vec_extractv2sf_1_be): New.
12697         (vec_pack_trunc_v4hi): Add endian check.
12698         (vec_pack_trunc_v2si): Format change.
12699
12700 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12701
12702         PR inline-asm/23200
12703         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12704         do bb, locus and block comparison and disallow loads if it is not set.
12705         (stmt_is_replaceable_p): New function.
12706         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12707         callers.
12708         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12709         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12710         SSA_NAME_DEF_STMT.
12711         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12712
12713 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12714
12715         * config/rs6000/xilinx.opt: New.
12716         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12717
12718 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12719
12720         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12721
12722 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12723
12724         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12725         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12726         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12727         secondary_reload_info, xtensa_secondary_reload): Remove.
12728         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12729         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12730         (xtensa_preferred_reload_class): Make static. Change return and
12731         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12732         Use CONST_DOUBLE_P predicate.
12733         (xtensa_preferred_output_reload_class): New function.
12734         (xtensa_secondary_reload): Make static.
12735
12736 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12737
12738         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12739         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12740         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12741
12742 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12743
12744         PR middle-end/31490
12745         * output.h (SECTION_RELRO): Define.
12746         (SECTION_MACH_DEP): Adjust.
12747         (get_variable_section): New prototype.
12748         * varpool.c (varpool_finalize_named_section_flags): New function.
12749         (varpool_assemble_pending_decls): Call it.
12750         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12751         * cgraphunit.c (cgraph_output_in_order): Call
12752         varpool_finalize_named_section_flags.
12753         * varasm.c (get_section): Allow section flags conflicts between
12754         relro and read-only sections if the section hasn't been declared yet.
12755         Set SECTION_OVERRIDE after diagnosing section type conflict.
12756         (get_variable_section): No longer static.
12757         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12758         readonly sections that need relocations.
12759         (decl_readonly_section_1): New function.
12760         (decl_readonly_section): Use it.
12761
12762         Revert:
12763         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12764                     Steve Ellcey  <sje@cup.hp.com>
12765
12766         PR middle-end/31490
12767         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12768         if section attribute used.
12769
12770 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12771
12772         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12773         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12774         (darwin_init_sections): Remove assertion.
12775
12776 2011-02-03  Nick Clifton  <nickc@redhat.com>
12777
12778         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12779         lt and ge.
12780         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12781         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12782         instead of "n" and "pz".
12783         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12784         CC_FLAG_S.
12785
12786 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12787
12788         PR target/47312
12789         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12790         fma, expand FMA_EXPR as fma{,f,l} call.
12791
12792         PR lto/47274
12793         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12794         copy them into a unsigned char variable and pass address of it to
12795         lto_output_data_stream.
12796
12797         PR target/47564
12798         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12799         around backend_init_target and lang_dependent_init_target calls.
12800         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12801         (verify_cgraph_node): Don't call set_cfun here.  Use
12802         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12803         Set error_found for incorrectly represented calls to thunks.
12804
12805 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12806
12807         PR debug/43092
12808         PR rtl-optimization/43494
12809         * rtl.h (for_each_inc_dec_fn): New type.
12810         (for_each_inc_dec): Declare.
12811         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12812         (for_each_inc_dec_find_inc_dec): New fn.
12813         (for_each_inc_dec_find_mem): New fn.
12814         (for_each_inc_dec): New fn.
12815         * dse.c (struct insn_size): Remove.
12816         (replace_inc_dec, replace_inc_dec_mem): Remove.
12817         (emit_inc_dec_insn_before): New fn.
12818         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12819         (canon_address): Pass mem modes to cselib_lookup.
12820         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12821         (cselib_lookup_from_insn): Likewise.
12822         (cselib_subst_to_values): Likewise.
12823         * cselib.c (find_slot_memmode): New var.
12824         (cselib_find_slot): New fn.  Use it instead of
12825         htab_find_slot_with_hash everywhere.
12826         (entry_and_rtx_equal_p): Use find_slot_memmode.
12827         (autoinc_split): New fn.
12828         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12829         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12830         Deal with autoinc.  Special-case recursion into MEMs.
12831         (cselib_hash_rtx): Likewise.
12832         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12833         address and MEM modes.
12834         (cselib_subst_to_values): Add memmode, pass it on.
12835         Deal with autoinc.
12836         (cselib_lookup): Add memmode argument, pass it on.
12837         (cselib_lookup_from_insn): Add memmode.
12838         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12839         (struct cselib_record_autoinc_data): New.
12840         (cselib_record_autoinc_cb): New fn.
12841         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12842         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12843         (cselib_process_insn): ... here.
12844         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12845         to cselib_lookup.
12846         (add_uses): Likewise, also to cselib_subst_to_values.
12847         (add_stores): Likewise.
12848         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12849         cselib_subst_to_values.
12850         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12851         * gcse.c (do_local_cprop): Adjusted.
12852         * postreload.c (reload_cse_simplify_set): Adjusted.
12853         (reload_cse_simplify_operands): Adjusted.
12854         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12855
12856 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12857
12858         PR tree-optimization/45122
12859         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12860         unsafe assumptions when there's more than one loop exit.
12861
12862 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12863
12864         PR target/47272
12865         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12866         Document using vector double with the load/store builtins, and
12867         that the load/store builtins always use Altivec instructions.
12868
12869         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12870         to use altivec memory instructions, even on VSX.
12871         (vector_altivec_store_<mode>): Ditto.
12872
12873         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12874         function.
12875
12876         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12877         V2DF, V2DI support to load/store overloaded builtins.
12878
12879         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12880         altivec load/store builtins for V2DF/V2DI types.
12881
12882         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12883         set avoid indexed addresses on power6 if -maltivec.
12884         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12885         vector_altivec_load/vector_altivec_store builtins.
12886         (altivec_expand_st_builtin): Ditto.
12887         (altivec_expand_builtin): Add VSX memory builtins.
12888         (rs6000_init_builtins): Add V2DI types to internal types.
12889         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12890         load/store builtins.
12891         (rs6000_address_for_altivec): Insure memory address is appropriate
12892         for Altivec.
12893
12894         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12895         vec_vsx_ld and vec_vsx_st.
12896         (vsx_store_<mode>): Ditto.
12897
12898         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12899         variables to hold long long types for VSX vector memory builtins.
12900         (RS6000_BTI_unsigned_long_long): Ditto.
12901         (long_long_integer_type_internal_node): Ditti.
12902         (long_long_unsigned_type_internal_node): Ditti.
12903
12904         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12905         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12906         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12907
12908         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12909         short cuts.
12910         (vec_vsx_st): Ditto.
12911
12912 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12913
12914         * config/pa/pa-hpux10.opt: New.
12915         * config/hpux11.opt (pthread): New Driver option.
12916         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12917         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12918
12919 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12920
12921         * config/ia64/vms.opt: New.
12922         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12923
12924 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12925
12926         PR target/47580
12927         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12928         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12929         generator functions.
12930         (vsx_floatuns<VSi><mode>2): Ditto.
12931         (vsx_fix_trunc<mode><VSi>2): Ditto.
12932         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12933
12934 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12935
12936         * config/i386/djgpp.opt (posix): New Driver option.
12937
12938 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12939
12940         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12941         Move to the unsupported targets list.
12942
12943 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12944
12945         PR rtl-optimization/47525
12946         * df-scan.c: Update copyright years.
12947         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12948         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12949
12950 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12951
12952         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12953         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12954         (ASM_OUTPUT_ASCII): Remove.
12955         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12956
12957 2011-02-02  Jeff Law  <law@redhat.com>
12958
12959         PR middle-end/47543
12960         * reload.c (find_reloads_address): Handle reg+d address where both
12961         components are invalid by reloading the entire address.
12962
12963 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12964             Richard Guenther  <rguenther@suse.de>
12965
12966         PR tree-optimization/40979
12967         PR bootstrap/47044
12968         * passes.c (init_optimization_passes): After LIM call copy_prop
12969         and DCE to clean up.
12970         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12971
12972 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12973
12974         PR tree-optimization/47576
12975         PR tree-optimization/47555
12976         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12977         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12978         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12979         * tree-scalar-evolution.c (follow_ssa_edge): Use
12980         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12981
12982 2011-02-02  Richard Guenther  <rguenther@suse.de>
12983
12984         PR tree-optimization/47566
12985         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12986
12987 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12988
12989         PR debug/47106
12990         PR debug/47402
12991         * tree-inline.c (declare_return_variable): Remove unused caller
12992         variable.
12993
12994         PR debug/47106
12995         PR debug/47402
12996         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12997         * cfgexpand.c (account_used_vars_for_block): Use them.
12998         * tree-nrv.c (tree_nrv): Likewise.
12999         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13000         (dump_scope_block): Likewise.
13001         (remove_unused_locals): Likewise.
13002
13003         PR debug/47106
13004         PR debug/47402
13005         * tree-inline.c (declare_return_variable): Add result decl to
13006         local decls only once.
13007         * gimple-low.c (record_vars_into): Mark newly-created variables
13008         as referenced.
13009
13010 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13011
13012         PR debug/47498
13013         PR debug/47501
13014         PR debug/45136
13015         PR debug/45130
13016         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13017         debug insns.
13018         (no_real_insns_p, schedule_block, set_priorities): Drop special
13019         treatment of boundary debug insns.
13020         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13021         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13022         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13023         (BOUNDARY_DEBUG_INSN_P): Likewise.
13024         (SCHEDULE_DEBUG_INSN_P): Likewise.
13025         * sched-rgn.c (init_ready_list): Drop special treatment of
13026         boundary debug insns.
13027         * final.c (rest_of_clean_state): Clear notes' BB.
13028
13029 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13030
13031         * config/openbsd.opt (assert=): New Driver option.
13032
13033 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13034
13035         * config/i386/nto.opt: New.
13036         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13037
13038 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13039
13040         * config/i386/netware.opt: New.
13041         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13042
13043 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13044
13045         * config/interix.opt (posix): New Driver option.
13046
13047 2011-02-01  DJ Delorie  <dj@redhat.com>
13048
13049         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13050
13051         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13052         class for A0/A1.
13053
13054 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13055
13056         PR tree-optimization/47561
13057         * toplev.c (process_options): Print the Graphite flags.  Add
13058         flag_loop_flatten to the list of options requiring Graphite.
13059
13060 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13061
13062         * config/i386/cygming.opt (posix): New Driver option.
13063
13064 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * config/arm/vxworks.opt: New.
13067         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13068
13069 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13070
13071         * config/alpha/elf.opt: New.
13072         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13073         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13074
13075 2011-02-01  Richard Guenther  <rguenther@suse.de>
13076
13077         PR tree-optimization/47559
13078         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13079         store-motion on references that can throw.
13080
13081 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13082
13083         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13084         * tree-pass.h (TDF_CSELIB): New macro.
13085         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13086         cselib_lookup): Check for it rather than for TDF_DETAILS.
13087
13088 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13089
13090         PR driver/47547
13091         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13092         is HOST_BIT_BUCKET.
13093
13094         * opts.c (finish_options): Don't add x_aux_base_name if it is
13095         HOST_BIT_BUCKET.
13096
13097 2011-02-01  Richard Guenther  <rguenther@suse.de>
13098
13099         PR tree-optimization/47555
13100         Revert
13101         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13102
13103         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13104
13105 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13106
13107         PR gcc/46692
13108         * config/lm32/t-lm32: Add multilib for all CPU options.
13109
13110 2011-02-01  Richard Guenther  <rguenther@suse.de>
13111
13112         PR tree-optimization/47541
13113         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13114         sure to have a field at offset zero.
13115
13116 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13117
13118         * config/arc/arc.opt (EB, EL): New Driver options.
13119
13120 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13121
13122         * config/alpha/osf5.opt: New.
13123         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13124
13125 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13126
13127         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13128
13129 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13130
13131         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13132         -floop-interchange.
13133         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13134         is an alias of -floop-interchange and that it requires the
13135         Graphite infrastructure.
13136         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13137         flag_loop_interchange based on the value of flag_tree_loop_linear.
13138
13139 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13140             Richard Guenther  <rguenther@suse.de>
13141
13142         PR tree-optimization/47538
13143         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13144         type instead of r1type, except for comparisons.  For right
13145         shifts and comparisons punt if there are mismatches in
13146         sizetype vs. non-sizetype types.
13147
13148 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13149
13150         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13151         avx_runtime.
13152
13153 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13154
13155         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13156         version number.
13157         * configure: Regenerate.
13158
13159 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13160
13161         * configure.ac (gcc_cv_ld_static_option): Define.
13162         (gcc_cv_ld_dynamic_option): Define.
13163         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13164         instead.
13165         (HAVE_LD_STATIC_DYNAMIC): Update message.
13166         (LD_STATIC_OPTION): Define.
13167         (LD_DYNAMIC_OPTION): Define.
13168         * configure: Regenerate.
13169         * config.in: Regenerate.
13170         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13171         HAVE_LD_STATIC_DYNAMIC]: Use them.
13172
13173 2011-01-31  Nick Clifton  <nickc@redhat.com>
13174
13175         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13176         registers inside interrupt handlers if the handler is not a leaf
13177         function.
13178
13179 2011-01-31  Nick Clifton  <nickc@redhat.com>
13180
13181         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13182         reg_renumber returning an INVALID_REGNUM.
13183
13184 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13185
13186         PR libgcj/44341
13187         * doc/install.texi: Document host options discarded when cross
13188         configuring target libraries.
13189
13190 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13191
13192         Reverted:
13193         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13194         PR debug/45136
13195         PR debug/45130
13196         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13197         debug insns.
13198         (no_real_insns_p, schedule_block, set_priorities): Drop special
13199         treatment of boundary debug insns.
13200         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13201         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13202         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13203         (BOUNDARY_DEBUG_INSN_P): Likewise.
13204         (SCHEDULE_DEBUG_INSN_P): Likewise.
13205         * sched-rgn.c (init_ready_list): Drop special treatment of
13206         boundary debug insns.
13207         * final.c (rest_of_clean-state): Clear notes' BB.
13208
13209 2011-01-31  Alan Modra  <amodra@gmail.com>
13210
13211         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13212         toc relative expressions as we do in print_operand_address.
13213
13214 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13215
13216         * doc/extend.texi: Follow spelling conventions.
13217         * doc/invoke.texi: Fix a typo.
13218
13219 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13220
13221         * config/hpux11.opt: New.
13222         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13223         ia64*-*-hpux*): Use hpux11.opt.
13224
13225 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13226
13227         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13228         to tmake_file.
13229
13230 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13231
13232         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13233         support sites.
13234
13235 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13236
13237         * doc/install.texi (Binaries): Remove outdated reference for
13238         Motorola 68HC11/68HC12 downloads.
13239
13240 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13241
13242         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13243         Drepper's paper.
13244
13245 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13246
13247         PR bootstrap/47147
13248         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13249         used by NetBSD.
13250
13251 2011-01-28  Ahmad Sharif  <asharif@google.com>
13252
13253         * value-prof.c (check_counter): Corrected error message.
13254
13255 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13256
13257         * config/arm/arm.c (arm_legitimize_reload_address): New.
13258         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13259         arm_legitimize_reload_address.
13260         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13261
13262 2011-01-28  Ian Lance Taylor  <iant@google.com>
13263
13264         * godump.c (go_define): Ignore macros whose definitions include
13265         two adjacent operands.
13266
13267 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13268
13269         PR target/42894
13270         * varasm.c (force_const_mem): Store copy of x in desc->constant
13271         instead of x itself.
13272         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13273         itself into REG_EQUAL note.
13274
13275 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13276
13277         * config/freebsd.opt (posix, rdynamic): New Driver options.
13278
13279 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13280
13281         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13282         -Bstatic/-Bdynamic.
13283         * configure: Regenerate.
13284
13285 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13286
13287         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13288         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13289
13290 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13291
13292         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13293         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13294         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13295         (s390_preferred_reload_class): Make static. Change return and
13296         'rclass' argument type to reg_class_t.
13297
13298 2011-01-27  Jan Hubicka  <jh@suse.cz>
13299
13300         PR middle-end/46949
13301         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13302         (process_function_and_variable_attributes): Check defined weakrefs.
13303
13304 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13305
13306         PR tree-optimization/47228
13307         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13308         build_ref_for_offset.
13309
13310 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13311
13312         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13313
13314 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13315
13316         PR rtl-optimization/46856
13317         * postreload.c (reload_combine_recognize_const_pattern): Do not
13318         separate cc0 setter and user on cc0 targets.
13319
13320 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13321
13322         PR c/43082
13323         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13324         passed a VOID_TYPE expression, immediately emit an error and
13325         return error_mark_node.
13326
13327 2011-01-26  Jeff Law  <law@redhat.com>
13328
13329         PR rtl-optimization/47464
13330         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13331         rather than may_trap_p as needed.
13332
13333 2011-01-26  DJ Delorie  <dj@redhat.com>
13334
13335         PR rtl-optimization/46878
13336         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13337         setter/user dependency as well.
13338
13339 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13340
13341         PR rtl-optimization/44469
13342         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13343         after removing trivially dead basic blocks.
13344
13345 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13346
13347         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13348         * config/frv/frv.h (LINK_SPEC): Likewise.
13349         * config/i386/netware.h (LINK_SPEC): Likewise.
13350         * config/m68k/linux.h (ASM_SPEC): Likewise.
13351         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13352         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13353         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13354         * config/sparc/linux.h (ASM_SPEC): Likewise.
13355         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13356         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13357
13358 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13359
13360         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13361         * config/frv/frv.h (ASM_SPEC): Likewise.
13362         * config/m68k/linux.h (ASM_SPEC): Likewise.
13363         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13364         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13365         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13366         * config/sparc/linux.h (ASM_SPEC): Likewise.
13367         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13368         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13369
13370 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13371
13372         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13373         * config/frv/frv.h (LINK_SPEC): Likewise.
13374         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13375
13376 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13377
13378         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13379         * config/frv/frv.h (ASM_SPEC): Likewise.
13380         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13381         * config/m68k/linux.h (ASM_SPEC): Likewise.
13382         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13383         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13384         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13385         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13386         * config/sparc/linux.h (ASM_SPEC): Likewise.
13387         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13388         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13389         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13390
13391 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13392
13393         PR target/46997
13394         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13395         (*mux2): Ditto.
13396         (vec_extract_evenodd_help): Ditto.
13397         (vec_extract_evenv4hi): Ditto.
13398         (vec_extract_oddv4hi): Ditto.
13399         (vec_interleave_lowv2si): Ditto.
13400         (vec_interleave_highv2si): Ditto.
13401         (vec_extract_evenv2si): Ditto.
13402         (vec_extract_oddv2si: Ditto.
13403         (vec_pack_trunc_v2si): Ditto.
13404
13405 2011-01-22  Jan Hubicka  <jh@suse.cz>
13406
13407         PR target/47237
13408         * cgraph.h (cgraph_local_info): New field can_change_signature.
13409         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13410         signature can change.
13411         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13412         can change.
13413         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13414         (cgraph_function_versioning): We can not change signature of functions
13415         that don't allow that.
13416         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13417         (lto_input_node): Likewise.
13418         * ipa-inline.c (compute_inline_parameters): Compute
13419         local.can_change_signature.
13420         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13421         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13422         functions that can not change signature.
13423         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13424         init_cumulative_args): Do not use local calling conventions
13425         for functions that can not change signature.
13426
13427 2011-01-22  Jan Hubicka  <jh@suse.cz>
13428
13429         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13430
13431 2011-01-26  Richard Guenther  <rguenther@suse.de>
13432
13433         PR tree-optimization/47190
13434         * cgraphunit.c (process_common_attributes): New function.
13435         (process_function_and_variable_attributes): Use it.
13436
13437 2011-01-26  Richard Guenther  <rguenther@suse.de>
13438
13439         PR lto/47423
13440         * cgraphbuild.c (record_eh_tables): Record reference to personality
13441         function.
13442
13443 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13444
13445         PR debug/45454
13446         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13447         non-debug insns from moving up.
13448
13449 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13450
13451         PR target/40125
13452         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13453         t-dlldir{,-x} fragment for build and add it to tmake_file.
13454         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13455         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13456         * config/i386/t-dlldir: New file.
13457         (SHLIB_DLLDIR): Define.
13458         * config/i386/t-dlldir-x: New file.
13459         (SHLIB_DLLDIR): Define.
13460         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13461         (SHLIB_INSTALL): Use it.
13462
13463 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13464
13465         PR target/47246
13466         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13467         lower bound of the allowed Thumb-2 coprocessor load/store
13468         index range to -256. Add explaining comment.
13469
13470 2011-01-25  Ian Lance Taylor  <iant@google.com>
13471
13472         * godump.c (go_define): Improve lexing of macro expansion to only
13473         accept expressions which match Go spec.
13474
13475 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13476
13477         PR c++/43601
13478         * tree.c (handle_dll_attribute): Handle it.
13479         * doc/extend.texi (@item dllexport): Mention it.
13480         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13481
13482 2011-01-25  Ian Lance Taylor  <iant@google.com>
13483
13484         PR tree-optimization/26854
13485         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13486         (decl_jump_unsafe): Move higher in file, with no other change.
13487         (bind): Set has_jump_unsafe_decl if appropriate.
13488         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13489         (check_earlier_gotos): Likewise.
13490         (c_check_switch_jump_warnings): Likewise.
13491
13492 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13493
13494         * doc/invoke.texi (Warning Options): Add missing hyphen.
13495         (-fprofile-dir): Minor grammatical fixes.
13496         (-fbranch-probabilities): Likewise.
13497
13498 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13499
13500         PR debug/45136
13501         PR debug/45130
13502         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13503         debug insns.
13504         (no_real_insns_p, schedule_block, set_priorities): Drop special
13505         treatment of boundary debug insns.
13506         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13507         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13508         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13509         (BOUNDARY_DEBUG_INSN_P): Likewise.
13510         (SCHEDULE_DEBUG_INSN_P): Likewise.
13511         * sched-rgn.c (init_ready_list): Drop special treatment of
13512         boundary debug insns.
13513         * final.c (rest_of_clean-state): Clear notes' BB.
13514
13515 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13516
13517         * Makefile.in (LAMBDA_H): Removed.
13518         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13519         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13520         lambda-trans.o, and tree-loop-linear.o.
13521         (lto-symtab.o): Remove dependence on LAMBDA_H.
13522         (tree-loop-linear.o): Remove rule.
13523         (lambda-mat.o): Same.
13524         (lambda-trans.o): Same.
13525         (lambda-code.o): Same.
13526         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13527         (tree-vect-slp.o): Same.
13528         * hwint.h (gcd): Moved here.
13529         (least_common_multiple): Same.
13530         * lambda-code.c: Removed.
13531         * lambda-mat.c: Removed.
13532         * lambda-trans.c: Removed.
13533         * lambda.h: Removed.
13534         * tree-loop-linear.c: Removed.
13535         * lto-symtab.c: Do not include lambda.h.
13536         * omega.c (gcd): Removed.
13537         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13538         * tree-data-ref.c (print_lambda_vector): Moved here.
13539         (lambda_vector_copy): Same.
13540         (lambda_matrix_copy): Same.
13541         (lambda_matrix_id): Same.
13542         (lambda_vector_first_nz): Same.
13543         (lambda_matrix_row_add): Same.
13544         (lambda_matrix_row_exchange): Same.
13545         (lambda_vector_mult_const): Same.
13546         (lambda_vector_negate): Same.
13547         (lambda_matrix_row_negate): Same.
13548         (lambda_vector_equal): Same.
13549         (lambda_matrix_right_hermite): Same.
13550         * tree-data-ref.h: Do not include lambda.h.
13551         (lambda_vector): Moved here.
13552         (lambda_matrix): Same.
13553         (dependence_level): Same.
13554         (lambda_transform_legal_p): Removed declaration.
13555         (lambda_collect_parameters): Same.
13556         (lambda_compute_access_matrices): Same.
13557         (lambda_vector_gcd): Same.
13558         (lambda_vector_new): Same.
13559         (lambda_vector_clear): Same.
13560         (lambda_vector_lexico_pos): Same.
13561         (lambda_vector_zerop): Same.
13562         (lambda_matrix_new): Same.
13563         * tree-flow.h (least_common_multiple): Removed declaration.
13564         * tree-parloops.c (lambda_trans_matrix): Moved here.
13565         (LTM_MATRIX): Same.
13566         (LTM_ROWSIZE): Same.
13567         (LTM_COLSIZE): Same.
13568         (LTM_DENOMINATOR): Same.
13569         (lambda_trans_matrix_new): Same.
13570         (lambda_matrix_vector_mult): Same.
13571         (lambda_transform_legal_p): Same.
13572         * tree-pass.h (pass_linear_transform): Removed declaration.
13573         * tree-ssa-loop.c (tree_linear_transform): Removed.
13574         (gate_tree_linear_transform): Removed.
13575         (pass_linear_transform): Removed.
13576         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13577         flag_loop_interchange.
13578
13579 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13580
13581         PR tree-optimization/47265
13582         PR tree-optimization/47443
13583         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13584         if name still has some uses.
13585
13586 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13587
13588         PR tree-optimization/47382
13589         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13590         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13591
13592 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13593
13594         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13595         sjlj_except_unwind_info.
13596
13597 2011-01-25  Richard Guenther  <rguenther@suse.de>
13598
13599         PR tree-optimization/47426
13600         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13601         visible functions results escape.
13602
13603 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13604
13605         PR target/45701
13606         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13607         (arm_get_frame_offsets): Use it.
13608
13609 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13610             Jakub Jelinek  <jakub@redhat.com>
13611
13612         PR tree-optimization/47271
13613         * tree-if-conv.c (bb_postdominates_preds): New.
13614         (if_convertible_bb_p): Call bb_postdominates_preds.
13615         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13616         (predicate_scalar_phi): Call bb_postdominates_preds.
13617
13618 2011-01-25  Nick Clifton  <nickc@redhat.com>
13619
13620         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13621         * config/rx/rx.c (rx_function_value): Likewise.
13622         (rx_promote_function_mode): Likewise.
13623         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13624         in order to make it legitimate.
13625         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13626         make sure that the first operand is the same as the result register.
13627         (addsi3_unspec): Delete.
13628         (subdi3): Do not accept immediate operands.
13629         (subdi3_internal): Likewise.
13630
13631 2011-01-25  Jeff Law  <law@redhat.com>
13632
13633         PR rtl-optimization/37273
13634         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13635         handle them like argument loads from stack slots.  Do not double
13636         count memory for memory constants and argument loads from stack slots.
13637
13638 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13639
13640         PR tree-optimization/47427
13641         PR tree-optimization/47428
13642         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13643         coalesce if the new root var would be TREE_READONLY.
13644
13645 2011-01-25  Richard Guenther  <rguenther@suse.de>
13646
13647         PR middle-end/47414
13648         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13649         correct type for TBAA.
13650
13651 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13652
13653         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13654         (close_phi_written_to_memory): Call for_each_index with
13655         dr_indices_valid_in_loop.
13656
13657 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13658
13659         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13660         when it is initialized.
13661
13662 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13663
13664         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13665         call to graphite_find_data_references_in_stmt.
13666         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13667         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13668         call to graphite_find_data_references_in_stmt.
13669         (analyze_drs_in_stmts): Same.
13670         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13671         in which the scalar analysis of indices is performed.
13672         (create_data_ref): Same.  Update call to dr_analyze_indices.
13673         (find_data_references_in_stmt): Update call to create_data_ref.
13674         (graphite_find_data_references_in_stmt): Same.
13675         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13676         declaration.
13677         (create_data_ref): Same.
13678         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13679         call to create_data_ref.
13680
13681 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13682
13683         * graphite-sese-to-poly.c (build_poly_scop): Move
13684         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13685
13686 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13687
13688         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13689         VAR_DECL, PARM_DECL, and RESULT_DECL.
13690
13691 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13692
13693         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13694         in a reduction PBB.
13695         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13696         that have already been marked as PBB_IS_REDUCTION.
13697
13698 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13699
13700         * graphite-scop-detection.c (same_close_phi_node): New.
13701         (remove_duplicate_close_phi): New.
13702         (make_close_phi_nodes_unique): New.
13703         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13704
13705 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13706
13707         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13708         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13709         of both data references to be the same.
13710
13711 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13712
13713         * graphite-dependences.c (build_lexicographical_constraint): Remove
13714         the gdim parameter.
13715         (build_lexicographical_constraint): Adjust call to
13716         ppl_powerset_is_empty.
13717         (dependence_polyhedron): Same.
13718         (graphite_legal_transform_dr): Same.
13719         (graphite_carried_dependence_level_k): Same.
13720         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13721         parameter.
13722         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13723
13724 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13725
13726         * graphite-sese-to-poly.c
13727         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13728         (close_phi_written_to_memory): New.
13729         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13730         and unshare_expr.
13731
13732 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13733
13734         * doc/install.texi: Update the expected version number of PPL to 0.11.
13735         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13736         #if PPL_VERSION_MINOR < 11.
13737
13738 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13739
13740         * graphite-dependences.c: Include graphite-cloog-util.h.
13741         (new_poly_ddr): Inlined into dependence_polyhedron.
13742         (free_poly_ddr): Moved close by new_poly_ddr.
13743         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13744         Early return NULL when ppl_powerset_is_empty returns true.
13745         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13746         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13747         (graphite_legal_transform_dr): Call new_poly_ddr.
13748         (graphite_carried_dependence_level_k): Same.
13749         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13750         (dot_transformed_deps_stmt_1): Removed.
13751         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13752         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13753         (dot_deps_1): Call dot_deps_2.
13754         * Makefile.in (graphite-dependences.o): Add missing dependence on
13755         graphite-cloog-util.h.
13756
13757 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13758
13759         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13760         (build_lexicographical_constraint): Same.
13761         (dependence_polyhedron_1): Same.
13762         (graphite_legal_transform_dr): Same.
13763         (graphite_carried_dependence_level_k): Same.
13764         * graphite-ppl.c (ppl_powerset_is_empty): New.
13765         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13766         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13767
13768 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13769
13770         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13771         the "a followed by b" relation and document it.
13772
13773 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13774
13775         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13776         iteration when the bag of constraints is empty.
13777
13778 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13779
13780         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13781
13782 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13783
13784         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13785         nest and two loop depths as parameters.
13786         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13787         lst_perfect_nestify.
13788
13789 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13790
13791         * graphite-dependences.c (print_pddr): Call
13792         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13793
13794 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13795
13796         * graphite-ppl.c (debug_gmp_value): New.
13797         * graphite-ppl.h (debug_gmp_value): Declared.
13798
13799 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13800
13801         * doc/install.texi: Document availability of cloog-0.16.
13802
13803 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13804
13805         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13806         invalid postdominance info.
13807
13808 2011-01-24  Jan Hubicka  <jh@suse.cz>
13809
13810         PR c/21659
13811         * doc/extend.texi (weak pragma): Drop claim that it must
13812         appear before definition.
13813         * varasm.c (merge_weak, declare_weak): Only sanity check
13814         that DECL is not output at a time it is declared weak.
13815
13816 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13817
13818         * machmode.def: Fixed comments.
13819
13820 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13821
13822         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13823
13824 2011-01-24  Paul Koning  <ni1d@arrl.net>
13825
13826         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13827         WORDS_BIG_ENDIAN.
13828
13829 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13830
13831         PR target/46519
13832         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13833         (block_info): Add scanned and prev.
13834         (move_or_delete_vzeroupper_2): Return if the basic block
13835         has been scanned and the upper 128bit state is unchanged
13836         from the last scan.
13837         (move_or_delete_vzeroupper_1): Return true if the exit
13838         state is changed.
13839         (move_or_delete_vzeroupper): Visit basic blocks using the
13840         work-list based algorithm based on vt_find_locations in
13841         var-tracking.c.
13842
13843         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13844
13845 2011-01-24  Nick Clifton  <nickc@redhat.com>
13846
13847         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13848         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13849         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13850         then define __v850e1__.
13851         * doc/invoke.texi: Document -mv850es.
13852
13853 2011-01-24  Richard Henderson  <rth@redhat.com>
13854
13855         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13856         compound unordered comparisons.
13857         * config/rx/rx.c (rx_split_fp_compare): Remove.
13858         * config/rx/rx-protos.h: Update.
13859         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13860         (cbranchsf4): Don't call rx_split_fp_compare.
13861         (*cbranchsf4): Use rx_split_cbranch.
13862         (*cmpsf): Don't accept "i" constraint.
13863         (*conditional_branch): Only valid after reload.
13864         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13865
13866 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13867
13868         PR target/47385
13869         * config/rs6000/altivec.md (vector constant splitters): Add
13870         support for creating vector single precision constants if -mvsx is
13871         used and we would create the constant using Altivec primitives.
13872
13873 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13874             Richard Sandiford  <rdsandiford@googlemail.com>
13875
13876         PR rtl-optimization/47166
13877         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13878         mechanism for PRE_MODIFY and POST_MODIFY.
13879         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13880         reloadreg.
13881
13882 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13883
13884         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13885
13886 2011-01-22  Jan Hubicka  <jh@suse.cz>
13887
13888         PR lto/47333
13889         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13890
13891 2011-01-22  Jan Hubicka  <jh@suse.cz>
13892
13893         PR tree-optimization/43884
13894         PR lto/44334
13895         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13896         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13897
13898 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13899
13900         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13901         * config/s390/s390.c (s390_register_move_cost,
13902         s390_memory_move_cost): New.
13903         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13904
13905 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13906
13907         PR middle-end/47401
13908         * except.c (sjlj_assign_call_site_values): Move setting the
13909         crtl->uses_eh_lsda flag to ...
13910         (sjlj_mark_call_sites): ... here.
13911         (sjlj_emit_function_enter): Support NULL dispatch label.
13912         (sjlj_build_landing_pads): In a function with no landing pads
13913         that still has must-not-throw regions, generate code to register
13914         a personality function with empty LSDA.
13915
13916 2011-01-21  Richard Henderson  <rth@redhat.com>
13917
13918         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13919
13920         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13921
13922         * compare-elim.c: New file.
13923         * Makefile.in (OBJS-common): Add it.
13924         (compare-elim.o): New.
13925         * common.opt (fcompare-elim): New.
13926         * opts.c (default_options_table): Add OPT_fcompare_elim.
13927         * tree-pass.h (pass_compare_elim_after_reload): New.
13928         * passes.c (init_optimization_passes): Add it.
13929         * recog.h: Protect against re-inclusion.
13930         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13931         * doc/invoke.texi (-fcompare-elim): Document it.
13932         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13933         * doc/tm.texi: Rebuild.
13934
13935 2011-01-22  Nick Clifton  <nickc@redhat.com>
13936
13937         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13938         rx_split_fp_compare.
13939
13940 2011-01-22  Nick Clifton  <nickc@redhat.com>
13941
13942         * config/rx/rx.md (UNSPEC_CONST): New.
13943         (deallocate_and_return): Wrap the amount popped off the stack in
13944         an UNSPEC_CONST in order to stop it being rejected by
13945         -mmax-constant-size.
13946         (pop_and_return): Add a "(return)" rtx.
13947         (call): Drop the immediate operand.
13948         (call_internal): Likewise.
13949         (call_value): Likewise.
13950         (call_value_internal): Likewise.
13951         (sibcall_internal): Likewise.
13952         (sibcall_value_internal): Likewise.
13953         (sibcall): Likewise.  Generate an explicit call using
13954         sibcall_internal.
13955         (sibcall_value): Likewise.
13956         (mov<>): FAIL if a constant operand is not legitimate.
13957         (addsi3_unpsec): New pattern.
13958
13959         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13960         (ok_for_max_constant): New function.
13961         (gen_safe_add): New function.
13962         (rx_expand_prologue): Use gen_safe_add.
13963         (rx_expand_epilogue): Likewise.
13964         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13965         UNSPEC CONSTs.
13966
13967 2011-01-21  Jeff Law  <law@redhat.com>
13968
13969         PR tree-optimization/47053
13970         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13971         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13972         statements are deleted.
13973         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13974         is nonempty, then purge dead edges and cleanup the CFG.
13975
13976 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13977
13978         PR debug/47402
13979         Temporarily revert:
13980         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13981         PR debug/47106
13982         * tree-dfa.c (create_var_ann): Mark variable as used.
13983
13984 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13985
13986         PR middle-end/45566
13987         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13988         notes from other section in hot/cold partitioning even if
13989         last_action is -3.  Increment call_site_base.
13990
13991         PR rtl-optimization/47366
13992         * fwprop.c (forward_propagate_into): Return bool.  If
13993         any changes are made, -fnon-call-exceptions is used and
13994         REG_EH_REGION note is present, call purge_dead_edges
13995         and return true if it purged anything.
13996         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13997         any EH edges were purged.
13998
13999 2011-01-21  Jeff Law  <law@redhat.com>
14000
14001         PR rtl-optimization/41619
14002         * caller-save.c (setup_save_areas): Break out code to determine
14003         which hard regs are live across calls by examining the reload chains
14004         so that it is always used.
14005         Eliminate code which checked REG_N_CALLS_CROSSED.
14006
14007 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14008
14009         PR tree-optimization/47355
14010         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14011         NOP has non-debug uses beyond PHIs in new_bb.
14012
14013 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14014
14015         PR debug/47106
14016         * cfgexpand.c (account_used_vars_for_block): Only account vars
14017         that are annotated as used.
14018         (estimated_stack_frame_size): Don't set TREE_USED.
14019         * tree-dfa.c (create_var_ann): Mark variable as used.
14020
14021 2011-01-21  Richard Guenther  <rguenther@suse.de>
14022
14023         PR middle-end/47395
14024         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14025
14026 2011-01-21  Richard Guenther  <rguenther@suse.de>
14027
14028         PR tree-optimization/47365
14029         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14030         (vn_reference_lookup_pieces): Adjust.
14031         (vn_reference_lookup): Likewise.
14032         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14033         (vn_reference_lookup_3): Only look through kills if in
14034         VN_WALKREWRITE mode.
14035         (vn_reference_lookup_pieces): Adjust.
14036         (vn_reference_lookup): Likewise.
14037         (visit_reference_op_load): Likewise.
14038         (visit_reference_op_store): Likewise.
14039         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14040         (compute_avail): Likewise.
14041         (eliminate): Likewise.
14042
14043 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14044
14045         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14046         DECL_IGNORED_P non-reg vars if they are used.
14047
14048         PR tree-optimization/47391
14049         * varpool.c (const_value_known_p): Return false if
14050         decl is volatile.
14051
14052 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14053
14054         PR bootstrap/47215
14055         * config/i386/i386.c (ix86_local_alignment): Handle
14056         case for va_list_type_node is nil.
14057         (ix86_canonical_va_list_type): Likewise.
14058
14059 2011-01-21  Alan Modra  <amodra@gmail.com>
14060
14061         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14062         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14063
14064 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14065
14066         * config/arm/arm.md (define_attr type): Rename f_load
14067         and f_store to f_fpa_load and f_fpa_store. Update.
14068         (write_conflict): Deal with rename fallout.
14069         (*push_fp_multi): Likewise.
14070         * config/arm/fpa.md (f_load): Use f_fpa_load.
14071         (f_store): Use f_fpa_store.
14072         (*movsf_fpa): Likewise.
14073         (*movdf_fpa): Likewise.
14074         (*movxf_fpa): Likewise.
14075         (*thumb2_movsf_fpa): Likewise.
14076         (*thumb2_movdf_fpa): Likewise.
14077         (*thumb2_movxf_fpa): Likewise.
14078         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14079         f_loadd and f_stored.
14080         (*thumb2_movdi_vfp): Likewise.
14081         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14082         (*thumb2_movsi_vfp): Likewise.
14083         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14084         Use f_loads instead of f_load.
14085         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14086
14087 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14088
14089         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14090         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14091         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14092         (xtensa_mode_dependent_address_p): New function.
14093         (constantpool_address_p): Make static. Change return type to bool.
14094         Change argument type to const_rtx. Use CONST_INT_P predicate.
14095
14096 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14097
14098         PR debug/46583
14099         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14100
14101 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14102
14103         PR debug/47283
14104         * cfgexpand.c (expand_debug_expr): Instead of generating
14105         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14106         etc. handling.
14107
14108 2011-01-20  Richard Guenther  <rguenther@suse.de>
14109
14110         PR middle-end/47370
14111         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14112         the pointer operand of MEM_REFs.
14113
14114 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14115
14116         PR tree-optimization/46130
14117         * ipa-split.c (consider_split): If return_bb contains non-virtual
14118         PHIs other than for retval or if split_function would not adjust it,
14119         refuse to split.
14120
14121 2011-01-20  Richard Guenther  <rguenther@suse.de>
14122
14123         PR tree-optimization/47167
14124         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14125         Revert previous change, only avoid enumeral type changes.
14126
14127 2011-01-19  Mike Stump  <mikestump@comcast.net>
14128
14129         * doc/tm.texi.in (BRANCH_COST): Englishify.
14130         * doc/tm.texi (BRANCH_COST): Likewise.
14131
14132 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14133
14134         PR c++/47291
14135         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14136         (gen_scheduled_generic_parms_dies): New functions.
14137         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14138         generation for the end of CU compilation.
14139         (dwarf2out_finish): Generate template parameters DIEs here.
14140
14141 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14142
14143         PR debug/46240
14144         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14145         debug bind stmt on merge edges.
14146
14147 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14148
14149         PR debug/47079
14150         PR debug/46724
14151         * function.c (instantiate_expr): Instantiate incoming rtl of
14152         implicit arguments, and recurse on VALUE_EXPRs.
14153         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14154         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14155
14156 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14157
14158         * c-parser.c (c_parser_for_statement): Initialize
14159         collection_expression.
14160
14161 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14162
14163         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14164
14165 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14166
14167         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14168         (LINK_SHLIB_SPEC): Don't use %(link_path).
14169         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14170
14171 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14172
14173         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14174         (NO_SHARED_LIB_SUPPORT): Remove.
14175         (LINK_SHLIB_SPEC): Remove one conditional definition.
14176
14177 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14178
14179         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14180         %{call_shared}.
14181         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14182         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14183         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14184         %{call_shared} and conditionals on these options not being passed.
14185         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14186         %{call_shared}.
14187
14188 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14189
14190         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14191         simplify.
14192
14193         * ipa-split.c: Spelling fixes.
14194
14195 2011-01-19  Richard Henderson  <rth@redhat.com>
14196
14197         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14198         (*mulsi3): Likewise.
14199
14200         * longlong.h [__mn10300__] (count_leading_zeros): New.
14201         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14202         [__mn10300__] (add_ssaaaa, subddmmss): New.
14203         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14204         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14205
14206 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14207
14208         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14209
14210 2011-01-19  Richard Henderson  <rth@redhat.com>
14211
14212         * config/mn10300/mn10300.md (addsi3_flags): New.
14213         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14214         (subsi3_flags, subc_internal, subdi3): New.
14215         (subdi3_internal, *subdi3_degenerate): New.
14216         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14217
14218         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14219         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14220         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14221         * config/mn10300/mn10300-protos.h: Update.
14222         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14223         (return_ret): Likewise.  Rename from return_internal_regs.
14224         (return_internal): Remove.
14225
14226         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14227         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14228         (mn10300_legitimate_constant_p): Likewise.
14229         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14230         (mn10300_frame_size): New.
14231         (mn10300_expand_prologue): Use it.
14232         (mn10300_expand_epilogue): Likewise.
14233         (mn10300_initial_offset): Likewise.
14234         * config/mn10300/mn10300-protos.h: Update.
14235         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14236         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14237         (prologue, epilogue, return_internal): Tidy output code.
14238         (mn10300_store_multiple_operation, return): Likewise.
14239         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14240         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14241         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14242         (load_pic, am33_load_pic): New.
14243         (mn10300_load_pic0, mn10300_load_pic1): New.
14244
14245         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14246         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14247         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14248         (cc_flags_for_mode, cc_flags_for_code): New.
14249         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14250         overflow flag is not valid.  Validate that the flags we need
14251         for the comparison are valid.
14252         (mn10300_output_cmp): Remove.
14253         (mn10300_output_add): New.
14254         (mn10300_select_cc_mode): Use cc_flags_for_code.
14255         (mn10300_split_cbranch): New.
14256         (mn10300_match_ccmode): New.
14257         (mn10300_split_and_operand_count): New.
14258         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14259         to the function.
14260         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14261         (addsi3): ... here.  Use mn10300_output_add.
14262         (*addsi3_flags): New.
14263         (*am33_subsi3, *mn10300_subsi3): Merge...
14264         (subsi3): ... here.  Use attribute isa.
14265         (*subsi3_flags): New.
14266         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14267         when possible.
14268         (*am33_andsi3, *mn10300_andsi3): Merge...
14269         (andsi3): ... here.
14270         (*andsi3_flags): New.
14271         (andsi3 splitters): New.
14272         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14273         (iorsi3): ... here.
14274         (*iorsi3_flags): New.
14275         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14276         (xorsi3): ... here.
14277         (*xorsi3_flags): New.
14278         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14279         (one_cmplsi2): ... here.
14280         (*one_cmplsi2_flags): New.
14281         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14282         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14283         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14284         use matching constraints to eliminate a self-comparison.
14285         (*integer_conditional_branch): Rename from integer_conditional_branch.
14286         Use int_mode_flags to match CC_REG.
14287         (*cbranchsi4_btst, *btstsi): New.
14288         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14289         mn10300_split_cbranch.
14290         (*am33_cmpsf): Rename from am33_cmpsf.
14291         (*float_conditional_branch): Rename from float_conditional_branch.
14292         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14293         (zero_extendqisi2): ... here.
14294         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14295         (zero_extendhisi2): ... here.
14296         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14297         (extendqisi2): ... here.
14298         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14299         (extendhisi2): ... here.
14300         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14301         (ashlsi3): ... here.
14302         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14303         (lshrsi3): ... here.
14304         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14305         (ashrsi3): ... here.
14306         (consecutive add peephole): Remove.
14307         * config/mn10300/predicates.md (label_ref_operand): New.
14308         (int_mode_flags): New.
14309         (CCZN_comparison_operator): New.
14310
14311         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14312         (throughput_42_latency_43): New reservation.
14313         (mulsidi3, umulsidi3): New expanders.
14314         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14315         the MDR register to allocation; separately allocate the low and
14316         high parts of the DImode result.
14317         (umulsidi3_internal): Similarly.
14318         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14319         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14320         (udivsi3, umodsi3): Remove.
14321         (udivmodsi4, divmodsi4): New expanders.
14322         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14323         (*divmodsi4): Simiarly.
14324         (ext_internal): New.
14325
14326         * config/mn10300/constraints.md ("z"): New constraint.
14327         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14328         (FIXED_REGISTERS): Don't fix MDR.
14329         (CALL_USED_REGSITERS): Reformat nicely.
14330         (REG_ALLOC_ORDER): Add MDR.
14331         (enum regclass): Add MDR_REGS.
14332         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14333         (IRA_COVER_CLASSES): Add MDR_REGS.
14334         (REGNO_REG_CLASS): Handle MDR_REG.
14335         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14336         (mn10300_register_move_cost): Likewise.
14337         * config/mn10300/mn10300.md (MDR_REG): New.
14338         (*movsi_internal): Handle moves to/from MDR_REGS.
14339
14340         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14341         POST_MODIFY.
14342         (mn10300_secondary_reload): Tidy combination reload classes.
14343         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14344         addresses for AM33.  Allow symbolic offsets for reg+imm.
14345         (mn10300_regno_in_class_p): New.
14346         (mn10300_legitimize_reload_address): New.
14347         * config/mn10300/mn10300.h (enum reg_class): Remove
14348         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14349         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14350         SP_OR_GENERAL_REGS.
14351         (REG_CLASS_NAMES): Update to match.
14352         (REG_CLASS_CONTENTS): Likewise.
14353         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14354         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14355         (REGNO_IN_RANGE_P): Remove.
14356         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14357         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14358         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14359         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14360         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14361         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14362         (REGNO_GENERAL_P): New.
14363         (HAVE_POST_MODIFY_DISP): New.
14364         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14365         (LEGITIMIZE_RELOAD_ADDRESS): New.
14366         * config/mn10300/mn10300-protos.h: Update.
14367
14368         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14369         DATA_REGS for AM33 stack-pointer destination.
14370         (mn10300_preferred_output_reload_class): Likewise.
14371         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14372         into a form appropriate for ...
14373         (TARGET_SECONDARY_RELOAD): New.
14374         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14375         * config/mn10300/mn10300-protos.h: Update.
14376         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14377         reload_insi; use the "A" constraint for the scratch; handle AM33
14378         moves of sp to non-address registers.
14379
14380         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14381         (*movqi_internal): ... here.
14382         (*am33_movhi, *mn10300_movhi): Merge into...
14383         (*movhi_internal): ... here.
14384         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14385         as the source/destination of moves from/to SP.
14386         (movsf): Only allow for AM33-2.
14387         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14388         any integer constant constraint.  Only allow for AM33-2.  Tidy
14389         all of the alternative outputs.
14390         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14391         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14392         for MN103.
14393         (udivsi3, umodsi3): New patterns for MN103 only.
14394
14395 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14396
14397         * doc/tm.texi.in: Spell out that a lack of register class unions
14398         can lead to ICEs.
14399         * doc/tm.texi: Regenerate.
14400
14401 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14402
14403         PR rtl-optimization/47337
14404         * dce.c (check_argument_store): New function.
14405         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14406
14407         PR tree-optimization/47290
14408         * tree-eh.c (infinite_empty_loop_p): New function.
14409         (cleanup_empty_eh): Use it.
14410
14411 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14412
14413         PR target/46997
14414         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14415         (a64_expand_widen_sum): Ditto.
14416         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14417         (vec_extract_evenodd_help): Ditto.
14418         (vec_extract_evenv4hi): Ditto.
14419         (vec_extract_oddv4hi): Ditto.
14420         (vec_extract_evenv2si): Ditto.
14421         (vec_extract_oddv2si): Ditto.
14422         (vec_extract_evenv2sf): Ditto.
14423         (vec_extract_oddv2sf): Ditto.
14424         (vec_pack_trunc_v4hi: Ditto.
14425         (vec_pack_trunc_v2si): Ditto.
14426         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14427         (vec_interleave_highv8qi): Ditto.
14428         (mix1_r): Ditto.
14429         (vec_extract_oddv8qi): Ditto.
14430         (vec_interleave_lowv4hi): Ditto.
14431         (vec_interleave_highv4hi): Ditto.
14432         (vec_interleave_lowv2si): Ditto.
14433         (vec_interleave_highv2si): Ditto.
14434
14435 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14436
14437         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14438         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14439         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14440         (pa_c_mode_for_suffix): New.
14441         (TARGET_EXPAND_BUILTIN): Define.
14442         (TARGET_C_MODE_FOR_SUFFIX): Define.
14443         (pa_builtins): Define.
14444         (pa_init_builtins): Register __float128 type and init new support
14445         builtins.
14446         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14447         * config/pa/quadlib.c (_U_Qfcopysign): New.
14448
14449 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14450
14451         PR middle-end/46894
14452         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14453         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14454         are defined.
14455
14456 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14457
14458         PR tree-optimization/47179
14459         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14460         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14461
14462 2011-01-18  Richard Guenther  <rguenther@suse.de>
14463
14464         PR rtl-optimization/47216
14465         * emit-rtl.c: Include tree-flow.h.
14466         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14467         of replicating it with different semantics.
14468         * Makefile.in (emit-rtl.o): Adjust.
14469
14470 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14471
14472         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14473         (cortex_a9_dp): Handle neon types correctly.
14474
14475 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14476
14477         PR rtl-optimization/47299
14478         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14479         subtarget.  Use normal multiplication if both operands are constants.
14480         * expmed.c (expand_widening_mult): Don't try to optimize constant
14481         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14482         before using it.
14483
14484 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14485
14486         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14487         spacing after 'e.g.', typos, comma, hyphenation.
14488
14489 2011-01-17  Richard Henderson  <rth@redhat.com>
14490
14491         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14492         (rx_restricted_mem_operand): New.
14493         (rx_shift_operand): Use register_operand.
14494         (rx_source_operand, rx_compare_operand): Likewise.
14495         * config/rx/rx.md (addsi3_flags): New expander.
14496         (adddi3): Rewrite as expander.
14497         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14498         (subsi3_flags): New expander.
14499         (subdi3): Rewrite as expander.
14500         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14501
14502         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14503         (rx_init_builtins): Remove sat builtin.
14504         (rx_expand_builtin): Likewise.
14505         * config/rx/rx.md (ssaddsi3): New.
14506         (*sat): Rename from sat.  Represent the CC_REG input.
14507
14508         * config/rx/predicates.md (rshift_operator): New.
14509         * config/rx/rx.c (rx_expand_insv): Remove.
14510         * config/rx/rx-protos.h: Update.
14511         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14512         operand to the canonical position.
14513         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14514         (*bitclr, *bitclr_in_memory): Similarly.
14515         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14516         (insv): Retain the zero_extract in the expansion.
14517
14518         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14519         (bswaphi2, bitinvert, revw): Likewise.
14520
14521         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14522         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14523         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14524         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14525         (bitset, bitset_in_memory): Likewise.
14526         (bitinvert, bitinvert_in_memory): Likewise.
14527         (bitclr, bitclr_in_memory): Likewise.
14528         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14529         (rx_strend, rx_cmpstrn): Likewise.
14530         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14531         (bitop peep2 patterns): Remove.
14532
14533         * config/rx/rx.c (rx_match_ccmode): New.
14534         * config/rx/rx-protos.h: Update.
14535         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14536         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14537         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14538         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14539         (fix_truncsfsi2, floatsisf2): Likewise.
14540         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14541         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14542         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14543         (*subsi3_flags, *xorsi3_flags): New.
14544
14545         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14546
14547         * config/rx/rx.c (rx_print_operand): Remove workaround for
14548         unsplit comparison operations.
14549
14550         * config/rx/rx.md (movsicc): Split after reload.
14551         (*movsicc): Merge *movsieq and *movsine via match_operator.
14552         (*stcc): New pattern.
14553
14554         * config/rx/rx.c (rx_float_compare_mode): Remove.
14555         * config/rx/rx.h (rx_float_compare_mode): Remove.
14556         * config/rx/rx.md (cstoresi4): Split after reload.
14557         (*sccc): New pattern.
14558
14559         * config/rx/predicates.md (label_ref_operand): New.
14560         (rx_z_comparison_operator): New.
14561         (rx_zs_comparison_operator): New.
14562         (rx_fp_comparison_operator): New.
14563         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14564         Validate that the flags are set properly for the comparison.
14565         (rx_gen_cond_branch_template): Remove.
14566         (rx_cc_modes_compatible): Remove.
14567         (mode_from_flags): New.
14568         (flags_from_code): Rename from flags_needed_for_conditional.
14569         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14570         (rx_select_cc_mode): Likewise.
14571         (rx_split_fp_compare): New.
14572         (rx_split_cbranch): New.
14573         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14574         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14575         (*cbranchsf4): Similarly.
14576         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14577         match_operator and rx_split_cbranch.
14578         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14579         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14580         (*cmpsi): Rename from cmpsi.
14581         (*tstsi): Rename from tstsi.
14582         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14583         (*conditional_branch): Rename from conditional_branch.
14584         (*reveresed_conditional_branch): Remove.
14585         (b<code>): Remove expander.
14586         * config/rx/rx-protos.h: Update.
14587
14588         * config/rx/rx.c (rx_compare_redundant): Remove.
14589         * config/rx/rx.md (cmpsi): Don't use it.
14590         * config/rx/rx-protos.h: Update.
14591
14592         * config/rx/rx-modes.def (CC_F): New mode.
14593         * config/rx/rx.c (rx_select_cc_mode): New.
14594         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14595         * config/rx/rx-protos.h: Update.
14596
14597 2011-01-17  Richard Henderson  <rth@redhat.com>
14598
14599         * except.c (dump_eh_tree): Fix stray ; after for statement.
14600
14601 2011-01-17  Richard Guenther  <rguenther@suse.de>
14602
14603         PR tree-optimization/47313
14604         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14605         handling before copying the body.  Properly deal with
14606         by-reference result in SSA form.
14607
14608 2011-01-17  Ian Lance Taylor  <iant@google.com>
14609
14610         PR target/47219
14611         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14612         (struct_value_alias_set): Don't define.
14613         (sparc_option_override): Don't set sparc_sr_alias_set and
14614         struct_value_alias_set.
14615         (save_or_restore_regs): Use gen_frame_mem rather than calling
14616         set_mem_alias_set.
14617         (sparc_struct_value_rtx): Likewise.
14618
14619 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14620
14621         PR target/47318
14622         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14623         (_mm_maskstore_pd): Likewise.
14624         (_mm_maskload_ps): Likewise.
14625         (_mm_maskstore_ps): Likewise.
14626         (_mm256_maskload_pd): Change mask to __m256i.
14627         (_mm256_maskstore_pd): Likewise.
14628         (_mm256_maskload_ps): Likewise.
14629         (_mm256_maskstore_ps): Likewise.
14630
14631         * config/i386/i386-builtin-types.def: Updated.
14632         (ix86_expand_special_args_builtin): Likewise.
14633
14634         * config/i386/i386.c (bdesc_special_args): Update
14635         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14636         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14637         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14638         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14639
14640         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14641         Use <avxpermvecmode> on mask register.
14642         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14643
14644 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14645             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14646             Eric Botcazou  <ebotcazou@adacore.com>
14647
14648         PR target/46655
14649         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14650         if <= USHRT_MAX in 32-bit mode.
14651
14652 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14653
14654         * doc/install.texi (Configuration, Specific): Wrap long
14655         lines in examples.  Allow line wrapping in long options
14656         and URLs where beneficial for PDF output.
14657
14658 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14659
14660         * config/mips/mips.c (mips_classify_symbol): Don't return
14661         SYMBOL_PC_RELATIVE for nonlocal labels.
14662
14663 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14664
14665         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14666
14667 2011-01-15  Jan Hubicka  <jh@suse.cz>
14668
14669         PR tree-optimization/47276
14670         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14671         declarations as needed.
14672
14673 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14674
14675         * common.opt (fdevirtualize): New flag.
14676         * doc/invoke.texi (Option Summary): Document it.
14677         * opts.c (default_options_table): Add devirtualize flag.
14678         * ipa-prop.c (detect_type_change): Return immediately if
14679         devirtualize flag is not set.
14680         (detect_type_change_ssa): Likewise.
14681         (compute_known_type_jump_func): Likewise.
14682         (ipa_analyze_virtual_call_uses): Likewise.
14683
14684 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14685
14686         PR tree-optimization/45934
14687         PR tree-optimization/46302
14688         * ipa-prop.c (type_change_info): New type.
14689         (stmt_may_be_vtbl_ptr_store): New function.
14690         (check_stmt_for_type_change): Likewise.
14691         (detect_type_change): Likewise.
14692         (detect_type_change_ssa): Likewise.
14693         (compute_complex_assign_jump_func): Check for dynamic type change.
14694         (compute_complex_ancestor_jump_func): Likewise.
14695         (compute_known_type_jump_func): Likewise.
14696         (compute_scalar_jump_functions): Likewise.
14697         (ipa_analyze_virtual_call_uses): Likewise.
14698         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14699
14700 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14701
14702         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14703         * config/i386/i386.opt (msse5): New Alias.
14704
14705 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14706
14707         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14708         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14709         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14710         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14711
14712 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14713
14714         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14715         -mcpu options.
14716         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14717         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14718         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14719         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14720         Likewise.
14721         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14722
14723 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14724
14725         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14726
14727 2011-01-14  Mike Stump  <mikestump@comcast.net>
14728
14729         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14730         * config/fr30/fr30.md: Likweise
14731         (movsi_push): Likewise.
14732         (movsi_pop): Likewise.
14733         (enter_func): Likewise.
14734         * config/moxie/moxie.md (movsi_push): Likewise.
14735         (movsi_pop): Likewise.
14736
14737 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14738
14739         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14740         %{no_archive} %{exact_version}.
14741         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14742         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14743         %{no_archive} %{exact_version}.
14744         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14745         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14746         * config/mips/vxworks.h: Likewise.
14747
14748 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14749
14750         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14751
14752 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14753
14754         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14755         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14756
14757 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14758
14759         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14760         -nodefaultlib.
14761
14762 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14763
14764         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14765         for mcpu not cpu.
14766         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14767         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14768         not cpu.
14769         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14770         Don't handle -shlib.
14771
14772 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14773
14774         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14775         (CC1_SPEC): Don't handle -profile.
14776
14777 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14778
14779         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14780         * config/mips/mips.h (CC1_SPEC): Likewise.
14781
14782 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14783
14784         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14785         * config/mips/mips.h (CC1_SPEC): Likewise.
14786
14787 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14788
14789         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14790         * config/m32r/linux.h (LINK_SPEC): Likewise.
14791         * config/mips/linux.h (LINK_SPEC): Likewise.
14792         * config/mips/linux64.h (LINK_SPEC): Likewise.
14793         * config/sparc/linux.h (LINK_SPEC): Likewise.
14794         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14795         LINK_SPEC): Likewise.
14796         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14797
14798 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14799
14800         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14801         %{version:-v}.
14802         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14803
14804 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14805
14806         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14807         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14808
14809 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14810
14811         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14812
14813 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14814
14815         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14816         supports -Bstatic/-Bdynamic.
14817         * configure: Regenerate.
14818
14819 2011-01-14  Jan Hubicka  <jh@suse.cz>
14820             Jack Howarth  <howarth@bromo.med.uc.edu>
14821
14822         PR target/46037
14823         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14824         when checking debug_info_level. Test write_symbols instead of
14825         debug_hooks->var_location when setting flag_var_tracking_uninit.
14826
14827 2011-01-14  Richard Guenther  <rguenther@suse.de>
14828
14829         PR tree-optimization/47179
14830         * target.def (ref_may_alias_errno): New target hook.
14831         * targhooks.h (default_ref_may_alias_errno): Declare.
14832         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14833         (default_ref_may_alias_errno): New function.
14834         * target.h (struct ao_ref_s): Declare.
14835         * tree-ssa-alias.c: Include target.h.
14836         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14837         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14838         (targhooks.o): Likewise.
14839         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14840         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14841
14842 2011-01-14  Richard Guenther  <rguenther@suse.de>
14843
14844         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14845
14846 2011-01-14  Richard Guenther  <rguenther@suse.de>
14847
14848         PR tree-optimization/47280
14849         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14850         return CFG changes.
14851         (tree_ssa_forward_propagate_single_use_vars): Deal with
14852         CFG changes from associate_plusminus.
14853
14854 2011-01-14  Richard Guenther  <rguenther@suse.de>
14855
14856         PR middle-end/47281
14857         Revert
14858         2011-01-11  Richard Guenther  <rguenther@suse.de>
14859
14860         PR tree-optimization/46076
14861         * tree-ssa.c (useless_type_conversion_p): Conversions from
14862         unprototyped to empty argument list function types are useless.
14863
14864 2011-01-14  Richard Guenther  <rguenther@suse.de>
14865
14866         PR tree-optimization/47286
14867         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14868
14869 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14870
14871         PR middle-end/46823
14872         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14873
14874 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14875
14876         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14877         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14878         * config/xtensa/xtensa.c (xtensa_libcall_value,
14879         xtensa_function_value_regno_p): New functions.
14880         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14881
14882 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14883
14884         PR c++/47213
14885         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14886         PE specific hook.
14887         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14888         New function prototype.
14889         * config/i386/winnt.c (i386_pe_assemble_visibility):
14890         Warn only if attribute was specified by user.
14891
14892 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14893
14894         PR target/47251
14895         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14896         floating point.
14897         (floatunsdidf2_fcfidu): Ditto.
14898
14899 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14900
14901         * config/s390/s390.c (print_operand_address): Replace 'error' with
14902         'output_operand_lossage'.
14903         (print_operand): Likewise.
14904
14905 2011-01-13  Jeff Law  <law@redhat.com>
14906
14907         PR rtl-optimization/39077
14908         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14909         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14910         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14911         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14912         * gcse.c (prune_insertions_deletions): New function.
14913         (compute_pre_data): Use it.
14914
14915 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14916
14917         PR debug/PR46973
14918         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14919         static function.
14920         (prune_unused_types_mark): Use it.
14921
14922 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14923
14924         PR rtl-optimization/45352
14925         * sel-sched.c: Update copyright years.
14926         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14927         in the advancing loop when we have issued issue_rate insns.
14928
14929 2011-01-12  Richard Henderson  <rth@redhat.com>
14930
14931         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14932         (TARGET_MD_ASM_CLOBBERS): New.
14933
14934         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14935         (TARGET_DELEGITIMIZE_ADDRESS): New.
14936
14937         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14938         (clzsi2, *bsch): New patterns.
14939
14940         * config/mn10300/mn10300.md (INT): New mode iterator.
14941         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14942
14943         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14944         flag_split_wide_types.
14945
14946         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14947         (mn10300_trampoline_init): Rewrite without a template, an immediate
14948         load and a direct branch.
14949         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14950
14951 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14952
14953         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14954         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14955         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14956         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14957
14958 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14959
14960         PR debug/47209
14961         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14962         of type.
14963
14964 2011-01-12  Jan Hubicka  <jh@suse.cz>
14965
14966         PR driver/47244
14967         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14968         (PLUGIN_COND_CLOSE): New macro.
14969         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14970
14971 2011-01-12  Richard Guenther  <rguenther@suse.de>
14972
14973         PR lto/47259
14974         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14975         register variables in a MEM_REF.
14976
14977 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14978
14979         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14980         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14981         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14982         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14983         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14984         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14985         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14986         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14987         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14988         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14989         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14990         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14991         * config/gnu-user.h: New.  Copied from linux.h.
14992         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14993         GNU_USER_TARGET_STARTFILE_SPEC.
14994         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14995         GNU_USER_TARGET_ENDFILE_SPEC.
14996         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14997         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14998         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14999         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15000         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15001         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15002         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15003         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15004         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15005         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15006         * config/arm/linux-eabi.h (CC1_SPEC): Use
15007         GNU_USER_TARGET_CC1_SPEC.
15008         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15009         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15010         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15011         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15012         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15013         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15014         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15015         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15016
15017 2011-01-12  Richard Guenther  <rguenther@suse.de>
15018
15019         PR other/46946
15020         * doc/invoke.texi (ffast-math): Document it is turned on
15021         with -Ofast.
15022
15023 2011-01-12  Jan Hubicka  <jh@suse.cz>
15024
15025         PR tree-optimization/47233
15026         * opts.c (common_handle_option): Disable ipa-reference with profile
15027         feedback.
15028
15029 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15030
15031         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15032         error message.
15033
15034 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15035
15036         * c-parser.c (c_lex_one_token): Updated and reindented some
15037         comments.  No changes in code.
15038
15039 2011-01-11  Ian Lance Taylor  <iant@google.com>
15040
15041         * godump.c (go_output_var): Don't output the variable if there is
15042         already a type with the same name.
15043
15044 2011-01-11  Ian Lance Taylor  <iant@google.com>
15045
15046         * godump.c (go_format_type): Don't generate float80.
15047
15048 2011-01-11  Richard Henderson  <rth@redhat.com>
15049
15050         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15051         declaration.  Rewrite for both speed and size.
15052         (mn10300_address_cost_1): Remove.
15053         (mn10300_register_move_cost): New.
15054         (mn10300_memory_move_cost): New.
15055         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15056         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15057         extensions, shifts, BSWAP, CLZ.
15058         (mn10300_wide_const_load_uses_clr): Remove.
15059         (TARGET_REGISTER_MOVE_COST): New.
15060         (TARGET_MEMORY_MOVE_COST): New.
15061         * config/mn10300/mn10300-protos.h: Update.
15062         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15063
15064         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15065         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15066         * config/mn10300/mn10300-protos.h: Update.
15067         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15068         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15069         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15070         (*test_int_bitfield, *test_byte_bitfield): Remove.
15071         (*bit_test, *subreg_bit_test): Remove.
15072         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15073
15074         * config/mn10300/constraints.md ("c"): Rename from "A".
15075         ("A", "D"): New constraint letters.
15076         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15077         (fmssf4, fnmasf4, fnmssf4): Likewise.
15078
15079         * config/mn10300/mn10300.md (isa): New attribute.
15080         (enabled): New attribute.
15081
15082         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15083         (abssf2, negsf2): Define only for hardware fp.
15084         (sqrtsf2): Reformat.
15085         (addsf3, subsf3, mulsf3): Merge expander and insn.
15086
15087         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15088         (DEBUGGER_AUTO_OFFSET): Remove.
15089         (DEBUGGER_ARG_OFFSET): Remove.
15090
15091         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15092         Emit register stores with the same offsets as the hardware.
15093         (mn10300_store_multiple_operation): Don't check that the register
15094         save offsets are monotonic.
15095         * config/mn10300/mn10300-protos.h: Update.
15096
15097         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15098
15099         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15100         in terms of the value on the stack, not the MDR register.
15101
15102 2011-01-11  Jan Hubicka  <jh@suse.cz>
15103
15104         PR lto/45721
15105         PR lto/45375
15106         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15107         (symbol_alias_set_destroy, symbol_alias_set_contains,
15108         propagate_aliases_backward): Declare.
15109         * lto-streamer-out.c (struct sets): New sturcture.
15110         (trivally_defined_alias): New function.
15111         (output_alias_pair_p): Rewrite.
15112         (output_unreferenced_globals): Fix output of alias pairs.
15113         (produce_symtab): Likewise.
15114         * ipa.c (function_and_variable_visibility): Set weak alias destination
15115         as needed in lto.
15116         * varasm.c (symbol_alias_set_t): Remove.
15117         (symbol_alias_set_destroy): Export.
15118         (propagate_aliases_forward, propagate_aliases_backward): New functions
15119         based on ...
15120         (compute_visible_aliases): ... this one; remove.
15121         (trivially_visible_alias): New
15122         (trivially_defined_alias): New.
15123         (remove_unreachable_alias_pairs): Rewrite.
15124         (finish_aliases_1): Reorganize code checking if alias is defined.
15125         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15126         in LTO mode.
15127
15128 2011-01-11  Richard Guenther  <rguenther@suse.de>
15129
15130         PR tree-optimization/46076
15131         * tree-ssa.c (useless_type_conversion_p): Conversions from
15132         unprototyped to empty argument list function types are useless.
15133
15134 2011-01-11  Richard Guenther  <rguenther@suse.de>
15135
15136         PR middle-end/45235
15137         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15138         volatile MEMs as MEM_READONLY_P.
15139
15140 2011-01-11  Richard Guenther  <rguenther@suse.de>
15141
15142         PR tree-optimization/47239
15143         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15144
15145 2011-01-11  Jeff Law  <law@redhat.com>
15146
15147         PR tree-optimization/47086
15148         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15149         IVs from statements that might throw.
15150
15151 2011-01-10  Jan Hubicka  <jh@suse.cz>
15152
15153         PR lto/45375
15154         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15155
15156 2011-01-10  Jan Hubicka  <jh@suse.cz>
15157
15158         PR lto/45375
15159         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15160         when correcting profile.
15161
15162 2011-01-10  Jan Hubicka  <jh@suse.cz>
15163
15164         PR lto/46083
15165         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15166         DECL_FINI_PRIORITY.
15167         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15168         Restore DECL_FINI_PRIORITY.
15169
15170 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15171
15172         * doc/gimple.texi: Fix quoting of multi-word return values in
15173         @deftypefn statements.  Ensure presence of return value.  Wrap
15174         overlong @deftypefn lines.
15175         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15176         descriptions of removed functions.
15177         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15178         of multi-word return value in @deftypefn statement.
15179
15180 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15181
15182         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15183         (Conditional Expressions, Logical Operators)
15184         (Statement and operand traversals): Do not indent smallexample
15185         code.  Fix duplicate function argument in example.
15186
15187 2011-01-10  Jeff Law  <law@redhat.com>
15188
15189         PR tree-optimization/47141
15190         * ipa-split.c (split_function): Handle case where we are
15191         returning a value and the return block has a virtual operand phi.
15192
15193 2011-01-10  Jan Hubicka  <jh@suse.cz>
15194
15195         PR tree-optimization/47234
15196         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15197         (pass_feedback_split_functions): Declare.
15198         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15199         tree-profile.
15200         * ipa-split.c (gate_split_functions): Update comments; disable
15201         split-functions for profile_arc_flag and branch_probabilities.
15202         (gate_feedback_split_functions): New function.
15203         (execute_feedback_split_functions): New function.
15204         (pass_feedback_split_functions): New global var.
15205
15206 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15207
15208         PR lto/46760
15209         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15210         calling gimple_call_set_cannot_inline.
15211
15212 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15213
15214         * config/darwin-sections.def: Remove unused section.
15215
15216 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15217
15218         PR c++/47218
15219         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15220
15221 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15222
15223         PR objc/47232
15224         * c-parser.c (c_parser_declaration_or_fndef): Improved
15225         error message.
15226
15227 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15228
15229         * config/i386/winnt.c (i386_pe_start_function): Make sure
15230         to switch back to function's section.
15231
15232 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15233
15234         PR gcc/46902
15235         PR testsuite/46912
15236         * plugin.c: Move include of dlfcn.h from here...
15237         * system.h: ... to here.
15238
15239 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15240
15241         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15242         file name.
15243         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15244         two extra empty pages in PDF output.
15245
15246 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15247
15248         PR objc/47078
15249         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15250         for error recovery purposes behave as if it was not specified so
15251         that the default type is usd.
15252
15253 2011-01-07  Jan Hubicka  <jh@suse.cz>
15254
15255         PR tree-optmization/46469
15256         * ipa.c (function_and_variable_visibility): Clear needed flags on
15257         nodes with external decls; handle weakrefs merging correctly.
15258
15259 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15260
15261         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15262         not false.
15263
15264 2011-01-07  Jan Hubicka  <jh@suse.cz>
15265
15266         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15267         and no longer claim that gold is required for linker plugin.
15268         * configure: Regenerate.
15269         * gcc.c (PLUGIN_COND): New macro.
15270         (LINK_COMMAND_SPEC): Use it.
15271         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15272         * config.in (HAVE_LTO_PLUGIN): New.
15273         * configure.ac (--with-lto-plugin): New parameter; autodetect
15274         HAVE_LTO_PLUGIN.
15275
15276 2011-01-07  Jan Hubicka  <jh@suse.cz>
15277
15278         PR tree-optimization/46367
15279         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15280         when we can update original.
15281         (cgraph_mark_inline_edge): Sanity check.
15282         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15283
15284 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15285
15286         * config/spu/spu.h (ASM_COMMENT_START): Define.
15287
15288 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15289
15290         PR driver/42445
15291         * gcc.c (%>S): New.
15292         (SWITCH_KEEP_FOR_GCC): Likewise.
15293         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15294         (do_spec_1): Handle "%>".
15295
15296         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15297
15298 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15299
15300         PR target/47201
15301         * config/i386/i386.c (ix86_delegitimize_address): If
15302         simplify_gen_subreg fails, return orig_x.
15303
15304         PR bootstrap/47187
15305         * value-prof.c (gimple_stringop_fixed_value): Handle
15306         lhs of the call properly.
15307
15308 2011-01-07  Jan Hubicka  <jh@suse.cz>
15309
15310         PR lto/45375
15311         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15312
15313 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15314
15315         * target.def (function_switched_text_sections): New hook.
15316         * doc/tm.texi: Regenerated.
15317         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15318         * final.c (default_function_switched_text_sections): New.
15319         (final_scan_insn): Call function_switched_text_sections when a
15320         mid-function section change occurs.
15321         * output.h (default_function_switched_text_sections): Declare.
15322         * config/darwin-protos.h (darwin_function_switched_text_sections):
15323         Likewise.
15324         * config/darwin.c (darwin_function_switched_text_sections): New.
15325         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15326
15327 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15328
15329         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15330         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15331         the secondary code fragment when outputting for DWARF == 2.
15332
15333 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15334
15335         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15336         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15337         Remove.
15338         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15339         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15340
15341 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15342
15343         PR debug/46704
15344         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15345         when it is not empty.
15346
15347 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15348
15349         Bobcat Enablement
15350         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15351         (case ${target}): Add btver1.
15352         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15353         -march=native recognize btver1 processors.
15354         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15355         btver1 def_and_undef
15356         * config/i386/i386.c (struct processor_costs btver1_cost): New
15357         btver1 cost table.
15358         (m_BTVER1): New definition.
15359         (m_AMD_MULTIPLE): Includes m_BTVER1.
15360         (initial_ix86_tune_features): Add btver1 tune.
15361         (processor_target_table): Add btver1 entry.
15362         (static const char *const cpu_names): Add btver1 entry.
15363         (software_prefetching_beneficial_p): Add btver1.
15364         (ix86_option_override_internal): Add btver1 instruction sets.
15365         (ix86_issue_rate): Add btver1.
15366         (ix86_adjust_cost): Add btver1.
15367         * config/i386/i386.h (TARGET_BTVER1): New definition.
15368         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15369         (enum processor_type): Add PROCESSOR_BTVER1.
15370         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15371
15372 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15373
15374         PR target/43309
15375         * config/i386/i386.c (legitimize_tls_address)
15376         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15377         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15378         (tls_initial_exec_64_sun): New pattern.
15379
15380 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15381
15382         * doc/invoke.texi (Overall Options): Improve wording and markup
15383         of the description of -wrapper.
15384
15385 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15386
15387         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15388         rdynamic, threads): New Driver options.
15389
15390 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15391
15392         PR target/38118
15393         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15394         if coming from .tdata.
15395         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15396
15397 2011-01-06  Jan Hubicka  <jh@suse.cz>
15398
15399         PR lto/47188
15400         * collect2.c (main): Do not enable LTOmode when plugin is active.
15401
15402 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15403
15404         PR other/45915
15405         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15406         --version output if supported.
15407         * configure: Regenerate.
15408
15409 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15410
15411         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15412         Driver options.
15413
15414 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15415
15416         PR c/47150
15417         * c-convert.c (convert): When converting a complex expression
15418         other than COMPLEX_EXPR to a different complex type, ensure
15419         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15420         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15421         when converting COMPLEX_TYPE.
15422
15423 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15424
15425         PR tree-optimization/47139
15426         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15427         only the last reduction value is used outside the loop.  Update
15428         documentation.
15429
15430 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15431
15432         * config/rtems.opt: New.
15433         * config.gcc (*-*-rtems*): Use rtems.opt.
15434
15435 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15436
15437         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15438         processors do not support 3DNow instructions.
15439
15440 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15441
15442         * config/spu/spu.c (spu_option_override): Set parameter
15443         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15444
15445 2011-01-05  Jan Hubicka  <jh@suse.cz>
15446
15447         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15448         at the command line.
15449
15450 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15451
15452         PR lto/47162
15453         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15454         deltas on streamed outgoing edges.
15455         (output_node_opt_summary): Output info for outgoing edges only when
15456         the node is in new parameter set.
15457         (output_cgraph_opt_summary): New parameter set, passed to the two
15458         aforementioned functions.  Update its forward declaration and its
15459         callee too.
15460
15461 2011-01-05  Tom Tromey  <tromey@redhat.com>
15462
15463         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15464         operator to c_finish_omp_atomic.
15465         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15466         (build_unary_op): Update.
15467         (build_modify_expr): Update.
15468         (build_asm_expr): Update.
15469
15470 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15471
15472         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15473         newly inserted insns.
15474         (pad_bb): Likewise.
15475         (spu_emit_branch_hint): Likewise.
15476         (insert_hbrp_for_ilb_runout): Likewise.
15477         (spu_machine_dependent_reorg): Call df_finish_pass after
15478         schedule_insns returns.
15479
15480 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15481
15482         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15483
15484 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15485
15486         PR tree-optimization/47005
15487         * tree-sra.c (struct access): Add 'non_addressable' bit.
15488         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15489         (decide_one_param_reduction): Return 0 if the parameter is passed by
15490         reference and one of the accesses in the group is non_addressable.
15491
15492 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15493
15494         PR tree-optimization/47056
15495         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15496         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15497         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15498
15499 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15500
15501         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15502         initializer.  Skip view conversions from aggregate types.
15503
15504 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15505
15506         PR bootstrap/47055
15507         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15508
15509 2011-01-04  Philipp Thomas  <pth@suse.de>
15510
15511         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15512         obvious typo.
15513
15514 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15515
15516         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15517         on empty epilogue sequences.
15518
15519 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15520
15521         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15522         non-static): New Driver options.
15523
15524 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15525
15526         PR driver/47137
15527         * gcc.c (default_compilers[]): Set combinable field to 0
15528         for all assembly languages.
15529
15530 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15531
15532         * config/mips/loongson3a.md: New file.
15533         * config/mips/mips.md: Include loongson3a.md.
15534         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15535         TUNE_LOONGSON_3A.
15536
15537 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15538
15539         PR middle-end/47017
15540         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15541         instead of convert_memory_address_addr_space on the base expression.
15542
15543 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15544
15545         * config/spu/spu.c (spu_option_override): Update error text
15546         for bad -march= / -mtune= values.
15547
15548 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15549
15550         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15551         if branch-hint optimization will be performed.
15552
15553 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15554
15555         PR tree-optimization/47148
15556         * ipa-split.c (split_function): Convert arguments to
15557         DECL_ARG_TYPE if possible.
15558
15559         PR tree-optimization/47155
15560         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15561         when computing uns.
15562
15563         PR rtl-optimization/47157
15564         * combine.c (try_combine): If undobuf.other_insn becomes
15565         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15566         and set *new_direct_jump_p too.
15567
15568 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15569
15570         PR tree-optimization/47021
15571         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15572
15573 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15574
15575         * gcc.c (process_command): Update copyright notice dates.
15576         * gcov.c (print_version): Likewise.
15577         * gcov-dump.c (print_version): Likewise.
15578         * mips-tfile.c (main): Likewise.
15579         * mips-tdump.c (main): Likewise.
15580
15581 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15582
15583         PR tree-optimization/46801
15584         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15585         aggregate fields start at byte boundary instead of the bit-field flag.
15586
15587 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15588
15589         PR driver/47137
15590         * gcc.c (main): Revert revision 168407.
15591
15592 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15593
15594         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15595
15596 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15597
15598         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15599         vector optab to expand vector/scalar shift, update gimple to vector.
15600
15601 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15602
15603         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15604         a thunk.
15605
15606 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15607
15608         PR tree-optimization/46984
15609         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15610         HOST_WIDE_INT.
15611         (cgraph_create_indirect_edge): Fixed line length.
15612         (cgraph_indirect_call_info): Declare.
15613         (cgraph_make_edge_direct) Update declaration.
15614         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15615         (cgraph_create_indirect_edge): Use it.
15616         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15617         callees.
15618         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15619         the new thunk_delta representation.
15620         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15621         HOST_WIDE_INT.
15622         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15623         (ipa_read_indirect_edge_info): Likewise.
15624         * lto-cgraph.c (output_edge_opt_summary): New function.
15625         (output_node_opt_summary): Call it on all outgoing edges.
15626         (input_edge_opt_summary): New function.
15627         (input_node_opt_summary): Call it on all outgoing edges.
15628
15629 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15630
15631         PR driver/47137
15632         * gcc.c (main): Don't check have_o when settting combine_inputs.
15633
15634 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15635
15636         * regrename.c: Add general comment describing the pass.
15637         (struct du_head): Remove 'length' field.
15638         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15639         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15640         Force renaming to the preferred class (if any) in the first pass and do
15641         not consider registers that belong to it in the second pass.
15642         (create_new_chain): Do not set 'length' field.
15643         (scan_rtx_reg): Likewise.
15644
15645 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15646
15647         PR tree-optimization/47140
15648         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15649         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15650         to bit_value_binop.
15651
15652         PR rtl-optimization/47028
15653         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15654         parm_birth_insn instead of at the beginning of first bb.
15655
15656 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15657
15658         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15659         Remove the word "see" before "@pxref".
15660         * doc/rtl.texi: Remove the word "see" before "@pxref".
15661
15662 2011-01-01  Jan Hubicka  <jh@suse.cz>
15663
15664         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15665         memory.
15666
15667 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15668
15669         PR target/38662
15670         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15671
15672 \f
15673 Copyright (C) 2011 Free Software Foundation, Inc.
15674
15675 Copying and distribution of this file, with or without modification,
15676 are permitted in any medium without royalty provided the copyright
15677 notice and this notice are preserved.